/* Teemine Quest Toolkit — frontend styles. Terminal / hacker monochrome,
   v2 "evolved terminal": depth, glow, cursor spotlights, giant outlined
   section numbers, and three.js scenes (teemine-3d.js) in the hero and the
   projects band. Anything that leads to projects.teemine.quest is drawn in
   --teemine-projects (that site's green), never in the visitor's accent.
   All selectors are namespaced under .teemine- and colors/fonts are exposed as
   CSS custom properties, so re-skinning means editing the :root block below
   (and the matching Teemine_Email::COLORS for notification emails).
   --teemine-accent / --teemine-accent-dim / --teemine-font-display are also
   set inline from Teemine Quest → Settings, and per visitor by the customize
   panel (teemine-frontend.js).
   File version: 02.02.00 */

:root {
	/* Monochrome ramp */
	--teemine-bg: #08080a;
	--teemine-bg-1: #101012;
	--teemine-bg-2: #16171a;
	--teemine-bg-3: #1c1e22;
	--teemine-line: #26282d;
	--teemine-line-soft: #1a1c20;
	--teemine-fg: #e7e7e5;
	--teemine-fg-dim: #a9abae;
	--teemine-fg-muted: #75787c;
	--teemine-fg-faint: #45484d;

	/* Signal accent — used sparingly */
	--teemine-accent: #ff6a6a;
	--teemine-accent-dim: #b44a4a;
	--teemine-accent-wash: color-mix(in srgb, var(--teemine-accent) 8%, transparent);
	--teemine-warn: #f5c26b;
	/* projects.teemine.quest's own green — every link to it uses this */
	--teemine-projects: #7cf29a;
	--teemine-danger: #ff6a6a;

	/* Type */
	--teemine-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	--teemine-font-sans: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
	--teemine-font-display: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

	--teemine-pad: 32px;
	--teemine-radius: 2px;
	--teemine-shadow: rgb(0 0 0 / 60%);
	--teemine-header-offset: 64px;
	--teemine-ease: cubic-bezier(.2,.7,.2,1);
}

/* Smooth in-page scrolling — scroll-padding-top keeps the sticky header from
   covering the target section. */
html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--teemine-header-offset);
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

/* Dark page behind the sections (added server-side when the page content uses
   a Teemine shortcode, and by teemine-frontend.js otherwise). */
body.teemine-site,
body.teemine-site #page-container,
body.teemine-site #main-content,
body.teemine-site .et_pb_section:has(.teemine-section) { background-color: var(--teemine-bg); }
/* Room for the fixed status bar. */
body:has(.teemine-statusbar) { padding-bottom: 28px; }

/* Every top-level element a shortcode renders. */
.teemine-section,
.teemine-header,
.teemine-chrome,
.teemine-feedback,
.teemine-signup {
	font-family: var(--teemine-font-sans);
	font-size: 15px;
	line-height: 1.55;
	color: var(--teemine-fg);
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
.teemine-section *, .teemine-header *, .teemine-chrome *, .teemine-signup * { box-sizing: border-box; }
.teemine-section { position: relative; background: var(--teemine-bg); overflow-x: clip; }
.teemine-section a, .teemine-header a, .teemine-chrome a { color: inherit; text-decoration: none; }
.teemine-section button, .teemine-header button, .teemine-chrome button {
	font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; border-radius: 0; cursor: pointer;
}
/* Page builders add their own spacing to every heading/paragraph/list. */
.teemine-section h1, .teemine-section h2, .teemine-section h3,
.teemine-section p, .teemine-section ul, .teemine-section ol, .teemine-section dl, .teemine-section pre {
	margin: 0; padding: 0;
}
.teemine-section ul, .teemine-section ol { list-style: none; }
.teemine-section ::selection, .teemine-header ::selection { background: var(--teemine-accent); color: var(--teemine-bg); }
.teemine-section :focus-visible, .teemine-header :focus-visible, .teemine-chrome :focus-visible {
	outline: 1px solid var(--teemine-accent);
	outline-offset: 3px;
}

/* ── Text atoms ─────────────────────────────────────────────────────────── */
.teemine-fg { color: var(--teemine-fg); }
.teemine-muted { color: var(--teemine-fg-muted); }
.teemine-faint { color: var(--teemine-fg-faint); }
.teemine-accent { color: var(--teemine-accent); }
.teemine-small { font-family: var(--teemine-font-mono); font-size: 11px; letter-spacing: 0.04em; }
.teemine-label {
	font-family: var(--teemine-font-mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--teemine-fg-muted);
}
.teemine-comment {
	font-family: var(--teemine-font-mono);
	font-size: 12px;
	color: var(--teemine-fg-muted);
}
.teemine-comment::before { content: "// "; color: var(--teemine-fg-faint); }
.teemine-caret {
	display: inline-block;
	width: 0.5em;
	height: 0.78em;
	margin-left: 10px;
	background: var(--teemine-accent);
	vertical-align: -0.04em;
	animation: teemine-blink 1.1s steps(1) infinite;
}
@keyframes teemine-blink { 50% { opacity: 0; } }
@keyframes teemine-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes teemine-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Stacked label + value (hero stats, case metrics, facts, service price). */
.teemine-stat .teemine-label { font-size: 10px; margin-bottom: 6px; }
.teemine-stat-value { font-family: var(--teemine-font-display); font-size: 22px; color: var(--teemine-fg); line-height: 1.2; }
.teemine-stat.is-accent .teemine-stat-value { color: var(--teemine-accent); }
.teemine-stat.is-right { text-align: right; }

/* Outlined tags */
.teemine-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.teemine-tags span {
	font-family: var(--teemine-font-mono); font-size: 11px; letter-spacing: 0.02em;
	color: var(--teemine-fg-dim); padding: 4px 8px; border: 1px solid var(--teemine-line);
}
.teemine-tags.is-small { gap: 4px; }
.teemine-tags.is-small span { font-size: 10.5px; color: var(--teemine-fg-muted); padding: 3px 7px; border-color: var(--teemine-line-soft); }

/* Fake window chrome: title bar with three square "traffic lights". */
.teemine-window { border: 1px solid var(--teemine-line); background: var(--teemine-bg-1); }
.teemine-window-bar {
	display: flex; align-items: center; gap: 14px;
	padding: 10px 14px; border-bottom: 1px solid var(--teemine-line);
	font-family: var(--teemine-font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--teemine-fg-muted);
	overflow-wrap: anywhere;
}
.teemine-dots { display: inline-flex; gap: 6px; flex: none; }
.teemine-dots i { width: 8px; height: 8px; background: var(--teemine-danger); }
.teemine-dots i:nth-child(2) { background: var(--teemine-warn); }
.teemine-dots i:nth-child(3) { background: var(--teemine-accent); }

/* Hatched placeholder until a real image exists (labelled in the corner). */
.teemine-placeholder {
	position: relative;
	background: repeating-linear-gradient(45deg, #141518 0 6px, #0f1012 6px 12px);
	border: 1px solid var(--teemine-line);
	overflow: hidden;
}
.teemine-placeholder::after {
	content: attr(data-label);
	position: absolute; left: 12px; bottom: 10px;
	font-family: var(--teemine-font-mono); font-size: 10.5px; letter-spacing: 0.05em;
	color: var(--teemine-fg-muted); background: rgb(10 10 11 / 85%);
	padding: 3px 6px; border: 1px solid var(--teemine-line);
}

/* Buttons */
.teemine-btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 14px 22px;
	font-family: var(--teemine-font-mono); font-size: 12.5px; font-weight: 500;
	letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.2;
	border: 1px solid var(--teemine-line); color: var(--teemine-fg-dim); background: transparent;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease;
	cursor: pointer;
}
.teemine-btn-accent { border-color: var(--teemine-accent); color: var(--teemine-accent); }
.teemine-btn-accent:hover, .teemine-btn-accent:focus-visible { background: var(--teemine-accent); color: var(--teemine-bg); box-shadow: 0 0 32px -6px var(--teemine-accent); }
.teemine-btn-ghost:hover, .teemine-btn-ghost:focus-visible { border-color: var(--teemine-fg); color: var(--teemine-fg); }
.teemine-btn-solid, .teemine-btn-primary { background: var(--teemine-accent); border-color: var(--teemine-accent); color: var(--teemine-bg); font-weight: 600; letter-spacing: 0.14em; }
.teemine-btn-solid:hover, .teemine-btn-primary:hover { background: var(--teemine-accent-dim); border-color: var(--teemine-accent-dim); color: var(--teemine-bg); }
.teemine-btn[disabled] { opacity: .6; cursor: progress; }

/* A link stretched over its whole card (position:relative parent), so the
   entire card is one click target that still works without JS. */
.teemine-stretch::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.teemine-stretch:focus-visible { outline: none; }
.teemine-stretch:focus-visible::after { outline: 1px solid var(--teemine-accent); outline-offset: -1px; }

/* Scroll-reveal: JS adds .teemine-will-reveal (only to elements below the
   fold) before observing, so everything stays visible if JS never runs. */
.teemine-will-reveal {
	opacity: 0; transform: translateY(14px);
	transition: opacity .7s var(--teemine-ease), transform .7s var(--teemine-ease);
	transition-delay: var(--teemine-delay, 0ms);
}
.teemine-will-reveal.is-in { opacity: 1; transform: none; }

/* ── Section scaffolding: sticky gutter + body ──────────────────────────── */
.teemine-frame {
	display: grid;
	grid-template-columns: 140px minmax(0, 1fr);
	gap: 48px;
	padding: 120px var(--teemine-pad);
	border-top: 1px solid var(--teemine-line);
}
/* accent hairline fading out across the top of each section */
.teemine-frame::before {
	content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 1px; pointer-events: none;
	background: linear-gradient(90deg, var(--teemine-accent), transparent 55%);
	opacity: .7;
}
.teemine-frame > .teemine-frame-body { position: relative; z-index: 1; }
.teemine-frame > .teemine-gutter { z-index: 1; }
/* The projects band's stage + ticker span the whole section, not the body. */
.teemine-projects.teemine-frame > .teemine-frame-body { position: static; z-index: auto; }
/* The 3D sections paint their own backdrop, so they sit above the fixed grid overlay. */
.teemine-hero, .teemine-projects { z-index: 2; }
/* Giant outlined section number behind the title. */
.teemine-ghost-num {
	position: absolute; right: calc(var(--teemine-pad) - 0.06em); top: 40px; z-index: 0;
	font-family: var(--teemine-font-display); font-size: clamp(120px, 22vw, 340px); font-weight: 700;
	line-height: .8; letter-spacing: -0.06em; color: transparent; pointer-events: none; user-select: none;
	-webkit-text-stroke: 1px color-mix(in srgb, var(--teemine-fg) 9%, transparent);
}
.teemine-gutter {
	position: sticky; top: calc(var(--teemine-header-offset) + 24px);
	align-self: start;
	display: flex; flex-direction: column; gap: 8px;
	font-family: var(--teemine-font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--teemine-fg-muted);
}
.teemine-num { color: var(--teemine-accent); }
.teemine-frame-body > .teemine-comment { margin-bottom: 18px; color: var(--teemine-fg-dim); }
.teemine-frame-body > .teemine-comment::before { content: "// "; color: var(--teemine-accent); }
.teemine-section .teemine-title {
	font-family: var(--teemine-font-display);
	font-size: clamp(32px, 5.4vw, 72px);
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.02;
	color: var(--teemine-fg);
	margin: 0 0 56px;
}
@media (max-width: 760px) {
	.teemine-frame { grid-template-columns: 1fr; gap: 24px; padding: 72px 20px; }
	.teemine-ghost-num { right: 12px; top: 28px; font-size: 38vw; }
	.teemine-gutter { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px 14px; }
	.teemine-section .teemine-title { margin-bottom: 36px; }
}

/* ── Header ([teemine_header]) ──────────────────────────────────────────── */
.teemine-header {
	position: sticky; top: 0; z-index: 100;
	box-shadow: 0 1px 0 rgb(255 255 255 / 2%), 0 12px 30px -18px rgb(0 0 0 / 80%);
	display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
	padding: 14px 20px;
	background: rgb(10 10 11 / 78%);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--teemine-line);
	font-family: var(--teemine-font-mono); font-size: 12px;
}
/* Divi's Theme Builder wraps a Global Header several .et_pb_section/row/column
   flex layers deep, and that nesting silently breaks position:sticky on
   elements nested that far down. Promoting the sticky behavior to Divi's own
   header wrapper fixes it without touching Divi's files. Harmless no-op when
   not placed via Theme Builder. */
.et-l--header:has(.teemine-header) { position: sticky; top: 0; z-index: 100; }
.et-l--header:has(.teemine-header) .teemine-header { position: relative; }
.et-l--header:has(.teemine-header) .et_pb_section,
.et-l--header:has(.teemine-header) .et_pb_row,
.et-l--header:has(.teemine-header) .et_pb_column { padding: 0 !important; margin: 0 !important; width: 100% !important; max-width: none !important; background: transparent !important; }
/* Divi "block" (pre-flex) rows float their columns and rely on Divi's own
   clearfix/width rules, which its per-page CSS sometimes omits. */
.et_block_row::after { content: ""; display: block; clear: both; }
.et_block_row > .et_pb_column_4_4 { width: 100%; }
/* Long unbroken strings (e.g. email addresses) otherwise push phone layouts sideways. */
.et-l--post .et_pb_text, [class*="teemine-"] a[href^="mailto:"] { overflow-wrap: anywhere; }

.teemine-brand { display: flex; align-items: center; gap: 14px; white-space: nowrap; color: var(--teemine-fg); }
.teemine-brand-dot { width: 10px; height: 10px; flex: none; background: var(--teemine-accent); box-shadow: 0 0 8px var(--teemine-accent); }
.teemine-nav { display: flex; justify-content: center; align-items: center; gap: 2px; min-width: 0; overflow: hidden; }
.teemine-nav a {
	display: inline-flex; gap: 8px; padding: 8px 14px;
	font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
	color: var(--teemine-fg-dim); border-left: 1px solid var(--teemine-line);
	transition: color .2s ease;
}
.teemine-nav a { position: relative; }
.teemine-nav a:hover, .teemine-nav a:focus-visible, .teemine-nav a.is-current { color: var(--teemine-accent); }
.teemine-nav a::after {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 1px;
	background: var(--teemine-accent); box-shadow: 0 0 8px var(--teemine-accent);
	transform: scaleX(0); transform-origin: left; transition: transform .3s var(--teemine-ease);
}
.teemine-nav a.is-current::after { transform: scaleX(1); }
.teemine-header-status { justify-self: end; display: flex; align-items: center; gap: 12px; white-space: nowrap; color: var(--teemine-fg-muted); }

/* Mobile menu button — hidden on desktop. */
.teemine-menu-toggle {
	display: none; flex-direction: column; justify-content: center; gap: 4px;
	width: 34px; height: 30px; padding: 0 7px !important;
	border: 1px solid var(--teemine-line) !important;
}
.teemine-menu-toggle span { display: block; height: 1px; background: var(--teemine-fg); transition: transform .2s ease, opacity .2s ease; }
.teemine-header.is-menu-open .teemine-menu-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.teemine-header.is-menu-open .teemine-menu-toggle span:nth-child(2) { opacity: 0; }
.teemine-header.is-menu-open .teemine-menu-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1080px) {
	.teemine-nav a { padding: 8px 9px; }
	.teemine-brand-sub { display: none; }
}
@media (max-width: 900px) {
	.teemine-nav-label, .teemine-header-status-label { display: none; }
}
/* Phones / small tablets: numbered links alone are cryptic, so the nav
   becomes a toggled panel under the bar instead. */
@media (max-width: 782px) {
	.teemine-header { grid-template-columns: 1fr auto; }
	.teemine-menu-toggle { display: inline-flex; }
	.teemine-nav {
		display: none; grid-column: 1 / -1;
		flex-direction: column; align-items: stretch; gap: 0;
		max-height: calc(100dvh - 80px); overflow-y: auto; overscroll-behavior: contain;
	}
	.teemine-header.is-menu-open .teemine-nav { display: flex; }
	.teemine-nav a { border-left: 0; border-top: 1px solid var(--teemine-line-soft); padding: 13px 0; font-size: 13px; }
	.teemine-nav a::after { left: 0; right: auto; width: 24px; }
	.teemine-nav-label { display: inline; }
}
@media (max-width: 520px) {
	[data-teemine-clock], .teemine-header-status-label { display: none; }
	.teemine-header .teemine-projects-btn { padding: 7px 9px; letter-spacing: .08em; }
}

/* ── Hero ([teemine_hero]) ──────────────────────────────────────────────── */
.teemine-hero {
	padding: 0; isolation: isolate;
	background:
		radial-gradient(ellipse 70% 60% at 22% 38%, color-mix(in srgb, var(--teemine-accent) 9%, transparent), transparent 70%),
		var(--teemine-bg);
}
/* three.js particle wordmark (teemine-3d.js): covers the whole hero so the
   particles can fly anywhere; the word itself is drawn over .teemine-wordmark. */
.teemine-hero-fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.teemine-hero-fx canvas { display: block; width: 100%; height: 100%; }
.teemine-hero > :not(.teemine-hero-fx) { position: relative; z-index: 1; }

.teemine-hero-chrome {
	display: grid; grid-template-columns: 1fr 1fr;
	border-bottom: 1px solid var(--teemine-line);
	font-family: var(--teemine-font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--teemine-fg-muted);
}
.teemine-hero-chrome > div { padding: 10px var(--teemine-pad); }
.teemine-hero-chrome > div:first-child { border-right: 1px solid var(--teemine-line); }
.teemine-hero-chrome > div:last-child { text-align: right; }
.teemine-hero-grid {
	display: grid; grid-template-columns: minmax(0, 1fr) 440px;
	min-height: calc(100vh - 104px);
	border-bottom: 1px solid var(--teemine-line);
}
.teemine-hero-main {
	display: flex; flex-direction: column; justify-content: center;
	padding: 56px var(--teemine-pad) 48px;
	border-right: 1px solid var(--teemine-line);
}
.teemine-section .teemine-boot {
	margin: 0 0 28px; min-height: 150px;
	font-family: var(--teemine-font-mono); font-size: 12.5px; line-height: 1.7;
	color: var(--teemine-fg-muted); background: none; border: 0; padding: 0;
	white-space: pre-wrap; overflow-wrap: anywhere;
}
.teemine-boot .teemine-caret { height: 0.9em; margin-left: 2px; }
.teemine-hero-label { margin-bottom: 10px; }

.teemine-section .teemine-hero-title {
	font-family: var(--teemine-font-display);
	font-weight: 700; line-height: 0.92; letter-spacing: -0.03em;
	color: var(--teemine-fg);
	margin: 0 0 8px;
}
/* The particle word's box. Its text is the fallback (no WebGL / 3D off) and
   stays readable to screen readers once the particles take over. */
.teemine-wordmark { position: relative; display: block; height: clamp(86px, 13.5vw, 196px); }
.teemine-wordmark-text {
	position: absolute; left: 0; top: 50%; transform: translateY(-50%);
	font-size: clamp(64px, 11.6vw, 170px); white-space: nowrap; text-transform: uppercase;
	text-shadow: 0 0 40px color-mix(in srgb, var(--teemine-accent) 35%, transparent);
	transition: opacity .5s ease;
}
/* While teemine-3d.js boots the text is held back, so it doesn't flash before
   the particles; if they never arrive it fades in after a few seconds. */
.teemine-hero:has(.teemine-hero-fx) .teemine-wordmark-text { opacity: 0.06; animation: teemine-wordmark-fallback .6s 3.5s ease forwards; }
html.teemine-no-3d .teemine-hero .teemine-wordmark-text { opacity: 1; animation: none; }
html.teemine-3d .teemine-hero .teemine-wordmark-text { opacity: 0; animation: none; }
@keyframes teemine-wordmark-fallback { to { opacity: 1; } }
.teemine-hero-title-dim {
	display: block; font-size: clamp(34px, 5.2vw, 72px); font-weight: 500; letter-spacing: -0.02em;
}
.teemine-hero-title-dim .teemine-caret { width: 0.36em; height: 0.66em; margin-left: 0.18em; }
.teemine-hero-hint { margin-top: 10px; color: var(--teemine-fg-faint); }
html.teemine-no-3d .teemine-hero-hint { display: none; }
.teemine-section .teemine-hero-intro {
	font-family: var(--teemine-font-mono); font-size: 15px; line-height: 1.7;
	color: var(--teemine-fg-dim); max-width: 560px; margin: 26px 0 36px;
}
.teemine-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.teemine-hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; border-top: 1px solid var(--teemine-line); }
.teemine-hero-stats .teemine-stat { padding: 18px 20px 14px 0; border-right: 1px solid var(--teemine-line-soft); }
.teemine-hero-stats .teemine-stat:last-child { border-right: 0; }
.teemine-hero-stats .teemine-stat + .teemine-stat { padding-left: 20px; }

/* Right column: projects portal on top, compact operator card below. */
.teemine-hero-side {
	display: flex; flex-direction: column; gap: 18px; padding: 28px;
	background: linear-gradient(180deg, rgb(10 10 11 / 55%), rgb(10 10 11 / 88%));
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.teemine-idcard {
	position: relative; display: flex; flex-direction: column; flex: 1; padding: 20px;
	border: 1px solid var(--teemine-line);
	background: repeating-linear-gradient(0deg, var(--teemine-bg) 0 23px, var(--teemine-line-soft) 23px 24px);
}
.teemine-idcard > .teemine-label { margin-bottom: 14px; }
.teemine-idcard-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: start; margin-bottom: 16px; }
.teemine-avatar { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border: 1px solid var(--teemine-line); background: var(--teemine-bg-1); }
.teemine-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.teemine-avatar-glyph {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	font-family: var(--teemine-font-mono); font-size: 46px; letter-spacing: -0.04em;
	color: var(--teemine-fg-muted);
	text-shadow: 0 0 24px color-mix(in srgb, var(--teemine-accent) 30%, transparent);
}
.teemine-tick { position: absolute; width: 8px; height: 8px; border: 0 solid var(--teemine-accent); z-index: 1; }
.teemine-tick.is-tl { left: 5px; top: 5px; border-top-width: 1px; border-left-width: 1px; }
.teemine-tick.is-tr { right: 5px; top: 5px; border-top-width: 1px; border-right-width: 1px; }
.teemine-tick.is-bl { left: 5px; bottom: 5px; border-bottom-width: 1px; border-left-width: 1px; }
.teemine-tick.is-br { right: 5px; bottom: 5px; border-bottom-width: 1px; border-right-width: 1px; }

.teemine-section .teemine-kv {
	display: grid; grid-template-columns: 62px 1fr; gap: 2px 12px;
	font-family: var(--teemine-font-mono); font-size: 11.5px;
}
.teemine-kv dt { color: var(--teemine-fg-muted); }
.teemine-kv dd { margin: 0; color: var(--teemine-fg); overflow-wrap: anywhere; }
.teemine-kv dd.teemine-accent { color: var(--teemine-accent); }
.teemine-signal { border-top: 1px dashed var(--teemine-line); padding-top: 12px; margin-bottom: 16px; }
.teemine-signal .teemine-comment { margin-bottom: 6px; }
.teemine-segments { display: flex; gap: 2px; margin-bottom: 8px; }
.teemine-segments i { flex: 1; max-width: 7px; height: 14px; background: var(--teemine-line); }
.teemine-segments i.is-on { background: var(--teemine-accent); box-shadow: 0 0 6px color-mix(in srgb, var(--teemine-accent) 50%, transparent); }
.teemine-idcard-email { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--teemine-line); color: var(--teemine-fg-muted); }
.teemine-idcard-email a:hover { color: var(--teemine-accent); }

.teemine-marquee { position: relative; padding: 14px 0; overflow: hidden; background: var(--teemine-bg-1); border-bottom: 1px solid var(--teemine-line); }
.teemine-marquee-track {
	display: flex; gap: 40px; width: max-content; white-space: nowrap;
	font-family: var(--teemine-font-mono); font-size: 13px; letter-spacing: 0.12em; color: var(--teemine-fg-dim);
	animation: teemine-marquee 48s linear infinite;
}

@media (max-width: 1180px) {
	.teemine-hero-grid { grid-template-columns: minmax(0, 1fr) 380px; }
	.teemine-hero-side { padding: 22px; }
}
@media (max-width: 960px) {
	.teemine-hero-grid { grid-template-columns: 1fr; min-height: 0; }
	.teemine-hero-main { border-right: 0; border-bottom: 1px solid var(--teemine-line); }
	.teemine-hero-side { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
}
@media (max-width: 680px) {
	.teemine-hero-chrome { grid-template-columns: 1fr; }
	.teemine-hero-chrome > div:first-child { border-right: 0; }
	.teemine-hero-chrome > div:last-child { display: none; }
	.teemine-hero-main { padding: 36px 20px 32px; }
	.teemine-section .teemine-boot { font-size: 11px; min-height: 0; }
	.teemine-hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
	.teemine-hero-stats .teemine-stat { padding: 16px 12px 12px 0 !important; border-right: 0; border-bottom: 1px solid var(--teemine-line-soft); }
	.teemine-hero-stats .teemine-stat:nth-child(even) { padding-left: 12px !important; border-left: 1px solid var(--teemine-line-soft); }
	.teemine-hero-side { display: flex; padding: 20px; }
	.teemine-btn { padding: 13px 16px; }
}

/* ── Projects portal card ([teemine_projects_portal], in the hero) ──────── */
.teemine-portal {
	position: relative; display: flex; flex-direction: column; justify-content: space-between;
	min-height: 290px; overflow: hidden; isolation: isolate;
	border: 1px solid color-mix(in srgb, var(--teemine-projects) 45%, transparent);
	background: radial-gradient(ellipse at 50% 45%, #0b1a10, #050806 72%);
	color: var(--teemine-fg);
	box-shadow: 0 0 0 1px rgb(0 0 0 / 40%), 0 24px 60px -20px rgb(0 0 0 / 80%), 0 0 40px -12px color-mix(in srgb, var(--teemine-projects) 45%, transparent);
	transform: perspective(900px) rotateX(var(--teemine-rx, 0deg)) rotateY(var(--teemine-ry, 0deg));
	transition: transform .25s var(--teemine-ease), box-shadow .3s ease, border-color .3s ease;
}
.teemine-section a.teemine-portal { color: var(--teemine-fg); }
.teemine-portal:hover, .teemine-portal:focus-visible {
	border-color: var(--teemine-projects);
	box-shadow: 0 0 0 1px rgb(0 0 0 / 40%), 0 30px 70px -20px rgb(0 0 0 / 85%), 0 0 70px -10px color-mix(in srgb, var(--teemine-projects) 70%, transparent);
}
.teemine-portal-stage { position: absolute; inset: 0; z-index: -1; }
.teemine-portal-stage canvas { display: block; width: 100%; height: 100%; }
/* No WebGL: nested CSS frames stand in for the tunnel. */
.teemine-portal-stage::before {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(var(--teemine-projects), var(--teemine-projects)) center / 36% 1px no-repeat,
		repeating-radial-gradient(ellipse at center, transparent 0 22px, color-mix(in srgb, var(--teemine-projects) 22%, transparent) 22px 23px);
	opacity: .5;
}
.teemine-portal-stage.is-3d::before { display: none; }
.teemine-portal::after {
	/* readable text over the tunnel */
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: linear-gradient(180deg, rgb(5 8 6 / 70%) 0%, transparent 28%, transparent 52%, rgb(5 8 6 / 92%) 100%);
}
.teemine-portal-top {
	display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px;
	font-family: var(--teemine-font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--teemine-projects);
}
.teemine-portal-live { display: inline-flex; align-items: center; gap: 6px; color: var(--teemine-fg-dim); }
.teemine-portal-live i { width: 6px; height: 6px; background: var(--teemine-projects); box-shadow: 0 0 8px var(--teemine-projects); animation: teemine-pulse 1.6s infinite; }
.teemine-portal-body { display: flex; flex-direction: column; gap: 6px; padding: 16px; }
.teemine-portal-kicker { font-family: var(--teemine-font-mono); font-size: 11px; color: var(--teemine-fg-muted); }
.teemine-portal-url {
	font-family: var(--teemine-font-display); font-size: clamp(19px, 2vw, 24px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1;
	color: var(--teemine-fg); overflow-wrap: anywhere;
	text-shadow: 0 0 22px color-mix(in srgb, var(--teemine-projects) 45%, transparent);
}
.teemine-portal-meta {
	display: flex; align-items: center; gap: 16px; margin-top: 8px; padding-top: 10px;
	border-top: 1px solid color-mix(in srgb, var(--teemine-projects) 25%, transparent);
	font-family: var(--teemine-font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--teemine-fg-muted);
}
.teemine-portal-meta b { color: var(--teemine-projects); font-weight: 600; }
.teemine-portal-go {
	margin-left: auto; padding: 6px 10px; border: 1px solid var(--teemine-projects);
	color: var(--teemine-projects); text-transform: uppercase; letter-spacing: 0.14em;
	transition: background-color .2s ease, color .2s ease;
}
.teemine-portal-go b { color: inherit; display: inline-block; transition: transform .2s ease; }
.teemine-portal:hover .teemine-portal-go { background: var(--teemine-projects); color: #050806; }
.teemine-portal:hover .teemine-portal-go b { transform: translate(2px, -2px); }
.teemine-portal.is-warping { border-color: var(--teemine-projects); }
.teemine-portal.is-warping::before {
	content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
	background: radial-gradient(circle at 50% 50%, rgb(124 242 154 / 0%) 0%, rgb(124 242 154 / 55%) 70%, #dfffe8 100%);
	animation: teemine-warp-flash .52s ease-in forwards;
}
@keyframes teemine-warp-flash { from { opacity: 0; transform: scale(1.4); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 960px) { .teemine-portal { min-height: 260px; } }

/* ── Projects ([teemine_projects]) ──────────────────────────────────────── */
/* Full-width band with the warp tunnel behind it. Everything here is in the
   projects site's green, whatever accent the visitor picked. */
.teemine-projects {
	isolation: isolate; overflow: hidden;
	min-height: min(92vh, 860px);
	background: radial-gradient(ellipse 80% 70% at 70% 50%, #0b1a10 0%, #050806 60%, var(--teemine-bg) 100%);
	border-top-color: color-mix(in srgb, var(--teemine-projects) 35%, transparent);
	padding-bottom: 140px;
}
.teemine-projects::before { background: linear-gradient(90deg, var(--teemine-projects), transparent 70%); }
.teemine-projects .teemine-num,
.teemine-projects .teemine-gutter .teemine-faint { color: var(--teemine-projects); }
.teemine-projects .teemine-ghost-num { -webkit-text-stroke-color: color-mix(in srgb, var(--teemine-projects) 22%, transparent); }
.teemine-projects .teemine-title .teemine-muted { color: color-mix(in srgb, var(--teemine-projects) 70%, var(--teemine-fg-muted)); }
.teemine-projects-stage { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.teemine-projects-stage canvas { display: block; width: 100%; height: 100%; }
.teemine-projects-stage::after {
	/* keep the copy on the left readable */
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgb(5 8 6 / 92%) 0%, rgb(5 8 6 / 65%) 38%, transparent 70%),
		linear-gradient(0deg, rgb(5 8 6 / 85%), transparent 30%);
}
.teemine-projects-content { position: relative; max-width: 620px; }
.teemine-section .teemine-projects-intro { font-size: 16px; line-height: 1.7; color: var(--teemine-fg-dim); margin: -16px 0 36px; }
.teemine-projects-stats {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 28px;
	border: 1px solid color-mix(in srgb, var(--teemine-projects) 30%, transparent);
	background: rgb(5 8 6 / 60%); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.teemine-projects-stats .teemine-stat { padding: 16px 18px; border-right: 1px solid color-mix(in srgb, var(--teemine-projects) 18%, transparent); }
.teemine-projects-stats .teemine-stat:last-child { border-right: 0; }
.teemine-projects-stats .teemine-stat-value { font-size: clamp(28px, 3.4vw, 44px); font-weight: 600; color: var(--teemine-fg); text-shadow: 0 0 24px color-mix(in srgb, var(--teemine-projects) 40%, transparent); }
.teemine-projects-stats .teemine-stat.is-live .teemine-stat-value { color: var(--teemine-projects); }
.teemine-section .teemine-realms { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 36px; }
.teemine-realms li {
	display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px;
	border: 1px solid color-mix(in srgb, var(--realm) 40%, transparent);
	background: color-mix(in srgb, var(--realm) 7%, rgb(5 8 6 / 70%));
	font-family: var(--teemine-font-mono); font-size: 11.5px; color: var(--teemine-fg-dim);
}
.teemine-realms li i { width: 7px; height: 7px; background: var(--realm); box-shadow: 0 0 8px var(--realm); }
.teemine-btn-projects {
	padding: 18px 26px; font-size: 13px; font-weight: 600;
	border-color: var(--teemine-projects); background: var(--teemine-projects); color: #050806;
	box-shadow: 0 0 0 0 transparent, 0 0 40px -6px color-mix(in srgb, var(--teemine-projects) 70%, transparent);
	transition: transform .2s var(--teemine-ease), box-shadow .25s ease, background-color .2s ease;
}
.teemine-section a.teemine-btn-projects { color: #050806; }
.teemine-btn-projects:hover, .teemine-btn-projects:focus-visible {
	background: #a6ffbd; transform: translateY(-2px);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--teemine-projects) 20%, transparent), 0 0 60px -4px var(--teemine-projects);
}
.teemine-projects-ticker {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 0; overflow: hidden;
	border-top: 1px solid color-mix(in srgb, var(--teemine-projects) 25%, transparent);
	background: rgb(5 8 6 / 75%);
}
.teemine-projects-ticker .teemine-marquee-track { color: color-mix(in srgb, var(--teemine-projects) 75%, var(--teemine-fg)); animation-duration: 70s; }
.teemine-projects-sep { color: var(--teemine-projects); opacity: .6; }
.teemine-projects.is-warping .teemine-projects-stage::after { animation: teemine-warp-fade .52s ease-in forwards; }
@keyframes teemine-warp-fade { to { opacity: 0; } }
@media (max-width: 760px) {
	.teemine-projects { padding-bottom: 110px; min-height: 0; }
	.teemine-projects-stage::after { background: linear-gradient(0deg, rgb(5 8 6 / 94%) 10%, rgb(5 8 6 / 78%) 100%); }
	.teemine-projects-stage canvas { opacity: .7; }
	.teemine-projects-stats .teemine-stat { padding: 12px; }
	.teemine-btn-projects { width: 100%; justify-content: center; padding: 16px 14px; font-size: 11.5px; }
}

/* Header button ([teemine_projects_button]) */
.teemine-projects-btn {
	display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px;
	border: 1px solid var(--teemine-projects);
	background: color-mix(in srgb, var(--teemine-projects) 10%, transparent);
	font-family: var(--teemine-font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
	box-shadow: 0 0 18px -4px color-mix(in srgb, var(--teemine-projects) 55%, transparent);
	transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.teemine-header a.teemine-projects-btn, .teemine-section a.teemine-projects-btn { color: var(--teemine-projects); }
.teemine-projects-btn i { width: 6px; height: 6px; background: var(--teemine-projects); box-shadow: 0 0 8px var(--teemine-projects); animation: teemine-pulse 1.6s infinite; }
.teemine-projects-btn b { font-weight: 400; transition: transform .2s ease; }
.teemine-header a.teemine-projects-btn:hover, .teemine-header a.teemine-projects-btn:focus-visible,
.teemine-section a.teemine-projects-btn:hover { background: var(--teemine-projects); color: #050806; box-shadow: 0 0 28px -2px var(--teemine-projects); }
.teemine-projects-btn:hover i { background: #050806; box-shadow: none; }
.teemine-projects-btn:hover b { transform: translate(2px, -2px); }

/* Floating badge (wp_footer chrome) */
.teemine-projects-badge {
	position: fixed; left: 18px; bottom: 42px; z-index: 998;
	display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px;
	border: 1px solid color-mix(in srgb, var(--teemine-projects) 55%, transparent);
	background: rgb(5 8 6 / 82%); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	font-family: var(--teemine-font-mono); font-size: 11px; letter-spacing: 0.06em;
	box-shadow: 0 10px 30px rgb(0 0 0 / 55%), 0 0 26px -8px var(--teemine-projects);
	transition: transform .35s var(--teemine-ease), opacity .3s ease, border-color .2s ease, box-shadow .2s ease;
}
.teemine-chrome a.teemine-projects-badge { color: var(--teemine-fg); }
.teemine-projects-badge i { width: 7px; height: 7px; background: var(--teemine-projects); box-shadow: 0 0 10px var(--teemine-projects); animation: teemine-pulse 1.6s infinite; }
.teemine-projects-badge-count { padding: 1px 6px; background: var(--teemine-projects); color: #050806; font-weight: 700; }
.teemine-projects-badge b { color: var(--teemine-projects); font-weight: 400; }
.teemine-projects-badge:hover, .teemine-projects-badge:focus-visible { border-color: var(--teemine-projects); box-shadow: 0 10px 30px rgb(0 0 0 / 55%), 0 0 36px -4px var(--teemine-projects); transform: translateY(-2px); }
.teemine-projects-badge.is-tucked { transform: translateY(calc(100% + 60px)); opacity: 0; pointer-events: none; }
body:not(:has(.teemine-statusbar)) .teemine-projects-badge { bottom: 18px; }
body:has(.teemine-projects-badge) .teemine-feedback-toggle { bottom: 96px; }
@media (max-width: 560px) {
	.teemine-projects-badge-host { display: none; }
	.teemine-projects-badge { padding: 10px 12px; }
	.teemine-projects-badge::after { content: "projects"; order: 0; }
	.teemine-projects-badge b { order: 2; }
}

/* ── Cursor spotlight (teemine-frontend.js sets --teemine-mx / --teemine-my) */
.teemine-case, .teemine-service, .teemine-loadout-tile, .teemine-window, .teemine-panel, .teemine-idcard, .teemine-commit-card { --teemine-mx: -400px; --teemine-my: -400px; }
.teemine-case::before, .teemine-service::before, .teemine-loadout-tile::before, .teemine-window::before, .teemine-panel::before, .teemine-idcard::before, .teemine-commit-card::before {
	content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background: radial-gradient(320px circle at var(--teemine-mx) var(--teemine-my), color-mix(in srgb, var(--teemine-accent) 9%, transparent), transparent 70%);
	opacity: 0; transition: opacity .3s ease;
}
.teemine-case:hover::before, .teemine-service:hover::before, .teemine-loadout-tile:hover::before, .teemine-window:hover::before, .teemine-panel:hover::before, .teemine-idcard:hover::before, .teemine-commit-card:hover::before { opacity: 1; }
.teemine-window, .teemine-panel { position: relative; }
.teemine-case > *, .teemine-service > *, .teemine-loadout-tile > *, .teemine-window > *, .teemine-panel > *, .teemine-idcard > *, .teemine-commit-card > * { position: relative; z-index: 1; }
.teemine-case > .teemine-stretch { position: static; }
.teemine-service > .teemine-stretch { position: static; }

/* ── About ([teemine_about]) ─────────────────────────────────────────────── */
.teemine-about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.teemine-about-copy {
	font-family: var(--teemine-font-mono); font-size: 14px; line-height: 1.75; color: var(--teemine-fg-dim);
	border-left: 1px solid var(--teemine-line); padding-left: 20px;
}
.teemine-section .teemine-about-copy p { margin-bottom: 18px; }
.teemine-section .teemine-about-copy p:last-child { margin-bottom: 0; }
.teemine-section .teemine-principles {
	counter-reset: none; padding: 18px;
	font-family: var(--teemine-font-mono); font-size: 13px; line-height: 1.85; color: var(--teemine-fg-dim);
}
.teemine-principles li { display: flex; gap: 16px; }
.teemine-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; border: 1px solid var(--teemine-line); }
.teemine-facts .teemine-stat { padding: 14px 18px; border-right: 1px solid var(--teemine-line); }
.teemine-facts .teemine-stat:last-child { border-right: 0; }
.teemine-facts .teemine-stat-value { font-family: var(--teemine-font-mono); font-size: 12.5px; }
@media (max-width: 900px) {
	.teemine-about-grid { grid-template-columns: 1fr; gap: 32px; }
	.teemine-facts { grid-template-columns: 1fr; }
	.teemine-facts .teemine-stat { border-right: 0; border-bottom: 1px solid var(--teemine-line); }
	.teemine-facts .teemine-stat:last-child { border-bottom: 0; }
}

/* ── Work ([teemine_work]) ───────────────────────────────────────────────── */
.teemine-cases { margin-bottom: 64px; }
.teemine-case {
	position: relative;
	display: grid; grid-template-columns: 1.1fr 1fr;
	border: 1px solid var(--teemine-line); margin-bottom: -1px;
	background: var(--teemine-bg); transition: background-color .3s ease;
}
.teemine-case:hover, .teemine-case:focus-within {
	background: var(--teemine-bg-1); z-index: 2;
	border-color: color-mix(in srgb, var(--teemine-accent) 55%, var(--teemine-line));
	box-shadow: 0 30px 70px -30px rgb(0 0 0 / 90%), 0 0 0 1px color-mix(in srgb, var(--teemine-accent) 25%, transparent);
}
/* a scan line sweeps the preview on hover */
.teemine-case-shot::before {
	content: ""; position: absolute; left: 0; right: 0; top: -30%; height: 30%; z-index: 1; pointer-events: none;
	background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--teemine-accent) 18%, transparent), transparent);
	opacity: 0;
}
.teemine-case:hover .teemine-case-shot::before { animation: teemine-sweep 1.4s var(--teemine-ease) forwards; }
@keyframes teemine-sweep { 0% { top: -30%; opacity: 1; } 100% { top: 100%; opacity: 0; } }
.teemine-case-copy { position: relative; padding: 36px 36px 56px; border-right: 1px solid var(--teemine-line); }
.teemine-case-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.teemine-case-meta .teemine-label { font-size: 10px; }
.teemine-section .teemine-case-title {
	font-family: var(--teemine-font-display);
	font-size: clamp(30px, 3.4vw, 44px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05;
	color: var(--teemine-fg); margin: 0 0 18px;
	transition: color .22s ease;
}
.teemine-case:hover .teemine-case-title { color: var(--teemine-accent); }
.teemine-section .teemine-case-blurb { font-size: 15px; line-height: 1.65; color: var(--teemine-fg-dim); max-width: 560px; margin: 0 0 24px; }
.teemine-case .teemine-tags { margin-bottom: 28px; }
.teemine-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-top: 14px; border-top: 1px solid var(--teemine-line); }
.teemine-metrics .teemine-label { font-size: 9px; margin-bottom: 4px; }
.teemine-metrics .teemine-stat-value { font-size: 18px; }
.teemine-case .teemine-stretch span {
	position: absolute; right: 18px; bottom: 18px;
	font-family: var(--teemine-font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
	color: var(--teemine-fg-muted); transition: color .22s ease;
}
.teemine-case:hover .teemine-stretch span { color: var(--teemine-accent); }
.teemine-case-shot { position: relative; min-height: 360px; overflow: hidden; }
.teemine-case-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.teemine-case:hover .teemine-case-shot img { transform: scale(1.02); }
.teemine-case-shot-bar {
	position: absolute; left: 18px; top: 18px; right: 18px;
	display: flex; justify-content: space-between; gap: 12px;
	font-size: 10px; letter-spacing: 0.08em; color: var(--teemine-fg-muted);
}
.teemine-case-shot-num {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	font-family: var(--teemine-font-display); font-size: clamp(80px, 12vw, 170px); font-weight: 500; letter-spacing: -0.06em;
	color: rgb(231 231 229 / 6%);
	transition: transform .6s ease;
}
.teemine-case:hover .teemine-case-shot-num { transform: scale(1.03); }

.teemine-archive-label { margin-bottom: 8px; }
.teemine-archive { border-bottom: 1px solid var(--teemine-line); }
.teemine-archive-row {
	position: relative;
	display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1fr) 90px 40px; align-items: center; gap: 24px;
	padding: 22px 12px; border-top: 1px solid var(--teemine-line);
	transition: background-color .2s ease;
}
.teemine-archive-row:hover, .teemine-archive-row:focus-within { background: var(--teemine-bg-1); }
.teemine-archive-idx { font-family: var(--teemine-font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--teemine-fg-muted); }
.teemine-archive-name { font-family: var(--teemine-font-display); font-size: 22px; letter-spacing: -0.01em; color: var(--teemine-fg); transition: color .22s ease; }
.teemine-archive-row:hover .teemine-archive-name { color: var(--teemine-accent); }
.teemine-archive-type { font-family: var(--teemine-font-mono); font-size: 12.5px; color: var(--teemine-fg-dim); }
.teemine-archive-year { font-family: var(--teemine-font-mono); font-size: 12px; color: var(--teemine-fg-muted); text-align: right; }
.teemine-archive-arrow { font-family: var(--teemine-font-mono); font-size: 16px; text-align: right; color: var(--teemine-fg-muted); transition: transform .2s ease, color .2s ease; }
.teemine-archive-row:hover .teemine-archive-arrow { color: var(--teemine-accent); transform: translateX(4px); }
/* Screen-reader text for the stretched links on rows and service cards. */
.teemine-archive-row .teemine-stretch span,
.teemine-service .teemine-stretch span,
.teemine-sr {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

@media (max-width: 900px) {
	.teemine-case { grid-template-columns: 1fr; }
	.teemine-case-copy { border-right: 0; border-bottom: 1px solid var(--teemine-line); }
	.teemine-case-shot { min-height: 220px; order: -1; border-bottom: 1px solid var(--teemine-line); }
}
@media (max-width: 640px) {
	.teemine-case-copy { padding: 24px 20px 52px; }
	.teemine-case-meta { flex-direction: column; gap: 4px; }
	.teemine-metrics { grid-template-columns: repeat(2, 1fr); }
	.teemine-archive-row {
		grid-template-columns: 56px minmax(0, 1fr) auto;
		grid-template-areas: "idx name arrow" "idx type year";
		gap: 4px 14px; padding: 18px 4px;
	}
	.teemine-archive-idx { grid-area: idx; }
	.teemine-archive-name { grid-area: name; font-size: 19px; }
	.teemine-archive-type { grid-area: type; font-size: 11.5px; }
	.teemine-archive-year { grid-area: year; font-size: 11px; }
	.teemine-archive-arrow { grid-area: arrow; }
}

/* ── Stack ([teemine_stack]) ─────────────────────────────────────────────
   Main loadout tiles for the core skills, then a filterable matrix in a
   terminal window with the tier legend and "levelling up" list beside it. */
.teemine-stack { display: grid; gap: 28px; }
.teemine-loadout-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.teemine-loadout-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.teemine-loadout-tile {
	position: relative; overflow: hidden; padding: 18px 18px 16px;
	border: 1px solid var(--teemine-line);
	background: linear-gradient(180deg, var(--teemine-bg-1), var(--teemine-bg));
	transform: perspective(900px) rotateX(var(--teemine-rx, 0deg)) rotateY(var(--teemine-ry, 0deg));
	transition: border-color .25s ease, box-shadow .25s ease, transform .25s var(--teemine-ease);
}
/* Corner glow, bigger for higher levels. */
.teemine-loadout-tile::after {
	content: ""; position: absolute; z-index: 0; pointer-events: none;
	right: -60px; top: -60px; width: calc(120px + var(--teemine-level, .5) * 120px); aspect-ratio: 1;
	background: radial-gradient(closest-side, color-mix(in srgb, var(--teemine-accent) 16%, transparent), transparent);
}
.teemine-loadout-tile:hover { border-color: color-mix(in srgb, var(--teemine-accent) 55%, var(--teemine-line)); box-shadow: 0 26px 50px -26px rgb(0 0 0 / 90%), 0 0 40px -18px var(--teemine-accent); }
.teemine-loadout-top { display: flex; align-items: center; gap: 8px; margin-bottom: 26px; }
.teemine-loadout-top .teemine-tier { margin-left: auto; }
.teemine-loadout-glyph { padding: 2px 6px; border: 1px solid var(--teemine-accent-dim); font-family: var(--teemine-font-mono); font-size: 11px; color: var(--teemine-accent); }
.teemine-loadout-name { font-family: var(--teemine-font-display); font-size: clamp(30px, 3.1vw, 44px); line-height: 1; letter-spacing: -0.02em; color: var(--teemine-fg); margin-bottom: 20px; }
.teemine-loadout-level { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.teemine-loadout-pct { font-family: var(--teemine-font-display); font-size: 28px; line-height: 1; color: var(--teemine-accent); font-variant-numeric: tabular-nums; }
.teemine-loadout-pct small { font-size: 13px; color: var(--teemine-fg-muted); margin-left: 2px; }
.teemine-loadout-level .teemine-comment { font-size: 10.5px; text-align: right; }
.teemine-focus-flag { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-family: var(--teemine-font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teemine-warn); }
.teemine-focus-flag i, .teemine-focus-dot { display: inline-block; width: 6px; height: 6px; background: var(--teemine-warn); box-shadow: 0 0 8px var(--teemine-warn); animation: teemine-pulse 1.8s infinite; vertical-align: middle; }

/* Segmented meter; lit segments light up one after another on reveal. */
.teemine-meter { display: flex; gap: 2px; }
.teemine-meter i { flex: 1; height: 8px; background: var(--teemine-line); transition: background-color .3s ease, box-shadow .3s ease; transition-delay: calc(var(--i, 0) * 22ms); }
.teemine-meter i.is-on { background: var(--teemine-accent); box-shadow: 0 0 6px color-mix(in srgb, var(--teemine-accent) 45%, transparent); }
.teemine-meter.is-large i { height: 14px; }
.teemine-will-reveal:not(.is-in) .teemine-meter i.is-on { background: var(--teemine-line); box-shadow: none; }

.teemine-tier {
	display: inline-block; padding: 2px 6px; border: 1px solid var(--teemine-line);
	font-family: var(--teemine-font-mono); font-size: 9.5px; letter-spacing: 0.12em; line-height: 1.5; color: var(--teemine-fg-muted);
}
.teemine-tier.is-core { color: var(--teemine-accent); border-color: var(--teemine-accent-dim); background: var(--teemine-accent-wash); }
.teemine-tier.is-fluent { color: var(--teemine-fg); border-color: var(--teemine-fg-faint); }

.teemine-stack-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 14px 18px; border-bottom: 1px solid var(--teemine-line); }
.teemine-stack-prompt { margin-right: 6px; font-family: var(--teemine-font-mono); font-size: 12px; color: var(--teemine-fg-muted); }
.teemine-section .teemine-stack-filter {
	padding: 6px 10px; border: 1px solid var(--teemine-line);
	font-family: var(--teemine-font-mono); font-size: 12px; color: var(--teemine-fg-dim);
	transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.teemine-stack-filter span { margin-left: 4px; color: var(--teemine-fg-faint); }
.teemine-section .teemine-stack-filter:hover { border-color: var(--teemine-fg-muted); color: var(--teemine-fg); }
.teemine-section .teemine-stack-filter.is-active { border-color: var(--teemine-accent); color: var(--teemine-accent); background: var(--teemine-accent-wash); }
.teemine-stack-filter.is-active span { color: var(--teemine-accent-dim); }
.teemine-stack-body { display: grid; grid-template-columns: minmax(0, 1fr) 270px; }
.teemine-section .teemine-matrix {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; align-content: start;
	padding: 6px 18px 18px; border-right: 1px solid var(--teemine-line);
}
.teemine-matrix-row {
	display: grid; grid-template-columns: 26px minmax(0, 1fr) 92px 24px 62px; align-items: center; gap: 10px;
	padding: 10px 6px; border-bottom: 1px dashed var(--teemine-line-soft);
	transition: background-color .2s ease;
}
.teemine-matrix-row[hidden] { display: none; }
.teemine-matrix-row:hover { background: linear-gradient(90deg, var(--teemine-accent-wash), transparent 80%); }
.teemine-matrix-row:hover .teemine-matrix-glyph { color: var(--teemine-accent); }
.teemine-matrix-row.is-flash { animation: teemine-row-in .42s var(--teemine-ease) both; animation-delay: calc(var(--teemine-row-vis, 0) * 28ms); }
@keyframes teemine-row-in { from { opacity: 0; transform: translateX(-8px); } }
.teemine-matrix-glyph { font-family: var(--teemine-font-mono); font-size: 10px; color: var(--teemine-fg-faint); text-align: center; transition: color .2s ease; }
.teemine-matrix-text { min-width: 0; }
.teemine-matrix-name { display: block; font-family: var(--teemine-font-mono); font-size: 13px; color: var(--teemine-fg); }
.teemine-matrix-note { display: block; font-family: var(--teemine-font-mono); font-size: 10.5px; color: var(--teemine-fg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.teemine-matrix-pct { font-family: var(--teemine-font-mono); font-size: 11px; color: var(--teemine-fg-muted); text-align: right; font-variant-numeric: tabular-nums; }
.teemine-matrix-row .teemine-tier { justify-self: end; }
.teemine-stack-side { display: flex; flex-direction: column; gap: 24px; padding: 18px; }
.teemine-stack-side .teemine-label { margin-bottom: 8px; }
.teemine-tier-row { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 10px; padding: 10px 0; border-bottom: 1px dashed var(--teemine-line); }
.teemine-tier-count { justify-self: end; font-family: var(--teemine-font-display); font-size: 20px; line-height: 1; color: var(--teemine-fg); }
.teemine-tier-desc { grid-column: 1 / -1; font-size: 12.5px; line-height: 1.5; color: var(--teemine-fg-muted); }
.teemine-focus-list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--teemine-line); font-family: var(--teemine-font-mono); font-size: 12px; color: var(--teemine-fg); }
.teemine-focus-list li span:last-child { font-size: 10.5px; text-align: right; }
@media (max-width: 1180px) { .teemine-section .teemine-matrix { grid-template-columns: 1fr; } }
@media (max-width: 1080px) { .teemine-loadout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
	.teemine-stack-body { grid-template-columns: 1fr; }
	.teemine-section .teemine-matrix { border-right: 0; }
	.teemine-stack-side { border-top: 1px solid var(--teemine-line); display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 560px) {
	.teemine-loadout-grid { gap: 10px; }
	.teemine-loadout-tile { padding: 14px; }
	.teemine-loadout-name { font-size: 26px; margin-bottom: 14px; }
	.teemine-loadout-level .teemine-comment { display: none; }
	.teemine-stack-prompt { width: 100%; }
	.teemine-section .teemine-matrix { padding: 4px 10px 12px; }
	.teemine-matrix-row { grid-template-columns: 20px minmax(0, 1fr) 64px 56px; gap: 8px; padding: 9px 2px; }
	.teemine-matrix-pct { display: none; }
	.teemine-stack-side { grid-template-columns: 1fr; }
}

/* ── Experience ([teemine_experience]) ─────────────────────────────────────
   A git log: a summary strip, then commits on a rail. The accent fill grows
   down the rail with scroll (teemine-frontend.js sets
   --teemine-path-progress) and lights each node as it passes. */
.teemine-path-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 36px; border: 1px solid var(--teemine-line); background: var(--teemine-bg-1); }
.teemine-path-summary .teemine-stat { padding: 16px 18px; border-right: 1px solid var(--teemine-line); }
.teemine-path-summary .teemine-stat:last-child { border-right: 0; }
.teemine-path-summary .teemine-stat-value { font-size: 20px; }
.teemine-section .teemine-path { --teemine-rail: 22px; --teemine-indent: 60px; position: relative; padding-left: var(--teemine-indent); }
.teemine-path::before {
	content: ""; position: absolute; left: var(--teemine-rail); top: 10px; bottom: 10px; width: 2px;
	background: repeating-linear-gradient(to bottom, var(--teemine-line) 0 6px, transparent 6px 10px);
}
.teemine-path-fill {
	position: absolute; left: var(--teemine-rail); top: 10px; width: 2px;
	height: calc(var(--teemine-path-progress, 1) * (100% - 20px));
	background: linear-gradient(to bottom, var(--teemine-accent), var(--teemine-accent-dim));
	box-shadow: 0 0 12px var(--teemine-accent);
}
.teemine-commit { position: relative; padding-bottom: 26px; }
.teemine-commit-node {
	position: absolute; z-index: 2; top: 22px; left: calc(var(--teemine-rail) + 1px - 8px - var(--teemine-indent));
	width: 16px; height: 16px; background: var(--teemine-bg); border: 2px solid var(--teemine-fg-faint);
	transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.teemine-commit.is-lit .teemine-commit-node,
.teemine-path:not(.is-tracking) .teemine-commit-node { border-color: var(--teemine-accent); background: var(--teemine-accent); box-shadow: 0 0 14px var(--teemine-accent); }
.teemine-commit.is-edu .teemine-commit-node { border-style: dashed; }
.teemine-commit.is-edu.is-lit .teemine-commit-node,
.teemine-path:not(.is-tracking) .is-edu .teemine-commit-node { background: var(--teemine-bg); }
.teemine-commit.is-active .teemine-commit-node::after {
	content: ""; position: absolute; inset: -7px; border: 1px solid var(--teemine-accent);
	animation: teemine-ping 2.2s var(--teemine-ease) infinite;
}
@keyframes teemine-ping { from { opacity: .9; transform: scale(.6); } to { opacity: 0; transform: scale(1.5); } }
.teemine-commit-card {
	position: relative; padding: 20px 22px;
	border: 1px solid var(--teemine-line); background: var(--teemine-bg-1);
	transition: border-color .25s ease, transform .25s var(--teemine-ease), box-shadow .25s ease;
}
/* The branch line from the rail to the card. */
.teemine-commit-card::after {
	content: ""; position: absolute; top: 29px; left: calc(var(--teemine-rail) + 10px - var(--teemine-indent)); width: calc(var(--teemine-indent) - var(--teemine-rail) - 10px); height: 1px;
	background: var(--teemine-line); transition: background-color .3s ease;
}
.teemine-commit.is-lit .teemine-commit-card::after { background: var(--teemine-accent-dim); }
.teemine-commit-card:hover { border-color: color-mix(in srgb, var(--teemine-accent) 45%, var(--teemine-line)); transform: translateX(4px); box-shadow: 0 24px 50px -30px rgb(0 0 0 / 90%); }
.teemine-commit.is-active .teemine-commit-card { border-color: color-mix(in srgb, var(--teemine-accent) 40%, var(--teemine-line)); background: linear-gradient(135deg, var(--teemine-accent-wash), var(--teemine-bg-1) 60%); }
.teemine-commit.is-edu .teemine-commit-card { border-style: dashed; background: transparent; }
.teemine-commit-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; font-family: var(--teemine-font-mono); font-size: 11px; color: var(--teemine-fg-muted); }
.teemine-commit-hash { color: var(--teemine-warn); }
.teemine-commit-ref { padding: 1px 7px; border: 1px solid var(--teemine-line); color: var(--teemine-fg-dim); }
.teemine-commit.is-active .teemine-commit-ref { border-color: var(--teemine-accent-dim); color: var(--teemine-accent); background: var(--teemine-accent-wash); }
.teemine-commit-idx { margin-left: auto; }
.teemine-section .teemine-role-title { font-family: var(--teemine-font-display); font-size: 24px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; color: var(--teemine-fg); margin: 0 0 4px; }
.teemine-role-org { font-family: var(--teemine-font-mono); font-size: 12px; color: var(--teemine-fg-muted); margin-bottom: 16px; }
.teemine-commit.is-edu .teemine-role-org { margin-bottom: 0; }
.teemine-section .teemine-role-bullets { border-left: 1px solid var(--teemine-line); padding-left: 16px; margin-bottom: 14px; }
.teemine-role-bullets li { display: flex; gap: 10px; margin-bottom: 8px; font-size: 14.5px; line-height: 1.6; color: var(--teemine-fg-dim); }
.teemine-role-bullets li::before { content: "→"; flex: none; font-family: var(--teemine-font-mono); font-size: 12px; line-height: 1.95; color: var(--teemine-accent); }
.teemine-commit-diff { display: flex; align-items: center; gap: 8px; font-family: var(--teemine-font-mono); }
.teemine-commit-diff > span { color: var(--teemine-accent); }
.teemine-commit.is-root { padding-bottom: 0; }
.teemine-commit.is-root .teemine-commit-node { top: 15px; width: 10px; height: 10px; left: calc(var(--teemine-rail) + 1px - 5px - var(--teemine-indent)); }
.teemine-commit-root { padding: 12px 0 4px; color: var(--teemine-fg-dim); }
@media (max-width: 760px) { .teemine-path-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } .teemine-path-summary .teemine-stat:nth-child(2) { border-right: 0; } .teemine-path-summary .teemine-stat:nth-child(-n+2) { border-bottom: 1px solid var(--teemine-line); } }
@media (max-width: 640px) {
	.teemine-section .teemine-path { --teemine-rail: 7px; --teemine-indent: 32px; }
	.teemine-commit-card { padding: 16px; }
	.teemine-section .teemine-role-title { font-size: 20px; }
	.teemine-commit-idx { display: none; }
}

/* ── Services ([teemine_services]) ───────────────────────────────────────── */
.teemine-services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.teemine-service {
	position: relative; border: 1px solid var(--teemine-line); background: var(--teemine-bg);
	transform: perspective(1000px) rotateX(var(--teemine-rx, 0deg)) rotateY(var(--teemine-ry, 0deg));
	transition: background-color .28s ease, border-color .28s ease, box-shadow .28s ease, transform .25s var(--teemine-ease);
}
.teemine-service:hover, .teemine-service:focus-within {
	background: var(--teemine-bg-1);
	border-color: color-mix(in srgb, var(--teemine-accent) 55%, var(--teemine-line));
	box-shadow: 0 30px 60px -28px rgb(0 0 0 / 90%), 0 0 40px -18px var(--teemine-accent);
}
.teemine-service-bar {
	display: flex; justify-content: space-between; align-items: center;
	padding: 14px 20px; border-bottom: 1px solid var(--teemine-line);
	font-family: var(--teemine-font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--teemine-fg-muted);
}
.teemine-service-state .is-active { display: none; color: var(--teemine-accent); }
.teemine-service:hover .teemine-service-state .is-idle, .teemine-service:focus-within .teemine-service-state .is-idle { display: none; }
.teemine-service:hover .teemine-service-state .is-active, .teemine-service:focus-within .teemine-service-state .is-active { display: inline; }
.teemine-service-body { padding: 28px 20px 24px; }
.teemine-section .teemine-service-title { font-family: var(--teemine-font-display); font-size: 26px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.1; color: var(--teemine-fg); margin: 0 0 14px; }
.teemine-section .teemine-service-desc { font-size: 14px; line-height: 1.6; color: var(--teemine-fg-dim); margin: 0 0 22px; }
.teemine-section .teemine-service-includes { margin: 0 0 24px; border-top: 1px dashed var(--teemine-line); }
.teemine-service-includes li {
	display: flex; justify-content: space-between; gap: 12px; padding: 8px 0;
	border-bottom: 1px dashed var(--teemine-line);
	font-family: var(--teemine-font-mono); font-size: 12px; color: var(--teemine-fg-dim);
}
.teemine-service-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.teemine-service-foot .teemine-label { font-size: 9.5px; margin-bottom: 3px; }
.teemine-service-foot .teemine-stat-value { font-family: var(--teemine-font-mono); font-size: 14px; }
@media (max-width: 1080px) { .teemine-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .teemine-services-grid { grid-template-columns: 1fr; } }
.teemine-services-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px dashed var(--teemine-line); }
.teemine-price { display: inline-block; }
.teemine-price.is-swapping { animation: teemine-price-swap .5s var(--teemine-ease); }
@keyframes teemine-price-swap { 0% { opacity: 0; transform: translateY(-6px); filter: blur(3px); } 100% { opacity: 1; transform: none; filter: none; } }
.teemine-section .teemine-terms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 24px 0 10px; border: 1px solid var(--teemine-line); background: var(--teemine-bg-1); }
.teemine-terms > div { padding: 16px 18px; border-right: 1px solid var(--teemine-line); }
.teemine-terms > div:last-child { border-right: 0; }
.teemine-terms dt { margin-bottom: 6px; font-size: 10px; color: var(--teemine-accent); }
.teemine-section .teemine-terms dd { margin: 0; font-size: 13px; line-height: 1.5; color: var(--teemine-fg-dim); }
.teemine-section .teemine-rates-note { margin: 0; }
@media (max-width: 900px) {
	.teemine-section .teemine-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.teemine-terms > div:nth-child(2) { border-right: 0; }
	.teemine-terms > div:nth-child(-n+2) { border-bottom: 1px solid var(--teemine-line); }
}
@media (max-width: 520px) {
	.teemine-section .teemine-terms { grid-template-columns: 1fr; }
	.teemine-terms > div { border-right: 0; border-bottom: 1px solid var(--teemine-line); }
	.teemine-terms > div:last-child { border-bottom: 0; }
}

/* Currency picker (Teemine_Currency::picker): a native select dressed as a CLI flag. */
.teemine-currency { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--teemine-font-mono); font-size: 11px; }
.teemine-currency-label { color: var(--teemine-fg-muted); letter-spacing: 0.04em; cursor: pointer; }
.teemine-form .teemine-currency-label { display: inline; margin: 0; font-size: 11px; letter-spacing: 0.04em; text-transform: none; }
.teemine-currency-field { position: relative; display: inline-flex; }
.teemine-section .teemine-currency select {
	-webkit-appearance: none; appearance: none; height: auto !important; margin: 0 !important;
	padding: 6px 26px 6px 10px !important; border: 1px solid var(--teemine-accent-dim) !important; border-radius: 0 !important;
	background: var(--teemine-bg) !important; color: var(--teemine-accent) !important; box-shadow: none !important;
	font-family: var(--teemine-font-mono) !important; font-size: 12px !important; line-height: 1.2 !important; cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}
.teemine-section .teemine-currency select:hover, .teemine-section .teemine-currency select:focus { border-color: var(--teemine-accent) !important; background: var(--teemine-accent-wash) !important; outline: none; }
.teemine-currency select option { background: var(--teemine-bg-1); color: var(--teemine-fg); }
.teemine-currency-caret { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); pointer-events: none; font-size: 10px; color: var(--teemine-accent); }
.teemine-currency-hint { color: var(--teemine-fg-faint); }
.teemine-section .teemine-currency-hint button { margin-left: 6px; color: var(--teemine-fg-muted); text-decoration: underline dotted; text-underline-offset: 3px; }
.teemine-section .teemine-currency-hint button:hover { color: var(--teemine-accent); }

/* ── Contact + form ([teemine_contact], [teemine_contact_form]) ──────────── */
.teemine-contact { border-bottom: 1px solid var(--teemine-line); }
.teemine-contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
.teemine-form-section { padding: clamp(40px, 7vw, 80px) clamp(20px, 5vw, 64px); }
.teemine-form-body { position: relative; padding: 22px 24px 24px; }
.teemine-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.teemine-form label > span,
.teemine-chips legend {
	display: block; margin-bottom: 6px; padding: 0;
	font-family: var(--teemine-font-mono); font-size: 10.5px; font-weight: 400;
	letter-spacing: 0.12em; text-transform: uppercase; color: var(--teemine-fg-muted);
}
.teemine-form label { display: block; }
.teemine-form-full { margin-bottom: 18px; }
/* !important: page builders style every input on the page. */
.teemine-form input[type="text"], .teemine-form input[type="email"], .teemine-form textarea {
	display: block; width: 100% !important; margin: 0 !important;
	padding: 14px 16px !important;
	background: var(--teemine-bg) !important; color: var(--teemine-fg) !important;
	border: 1px solid var(--teemine-line) !important; border-radius: 0 !important; box-shadow: none !important;
	font-family: var(--teemine-font-mono) !important; font-size: 13px !important; line-height: 1.5 !important;
	outline: none; transition: border-color .18s ease;
}
.teemine-form textarea { resize: vertical; min-height: 150px; }
.teemine-form input::placeholder, .teemine-form textarea::placeholder { color: var(--teemine-fg-faint); opacity: 1; }
.teemine-form input:focus, .teemine-form textarea:focus { border-color: var(--teemine-accent) !important; }
.teemine-form .is-invalid input, .teemine-form .is-invalid textarea { border-color: var(--teemine-danger) !important; }
.teemine-chips { display: flex; flex-wrap: wrap; gap: 6px; border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.teemine-chips legend { width: 100%; float: left; }
.teemine-chips label { position: relative; }
.teemine-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.teemine-form .teemine-chips label > span {
	display: inline-block; margin: 0; padding: 8px 12px;
	border: 1px solid var(--teemine-line);
	font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--teemine-fg-dim);
	cursor: pointer; transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.teemine-form .teemine-chips label:hover > span { border-color: var(--teemine-fg-muted); }
.teemine-form .teemine-chips input:checked + span { border-color: var(--teemine-accent); color: var(--teemine-accent); background: var(--teemine-accent-wash); }
.teemine-chips input:focus-visible + span { outline: 1px solid var(--teemine-accent); outline-offset: 2px; }
.teemine-form-status { margin-bottom: 14px; font-family: var(--teemine-font-mono); font-size: 12px; }
.teemine-form-status:empty { display: none; }
.teemine-form-status.is-error { padding: 10px 12px; border: 1px solid var(--teemine-danger); color: var(--teemine-danger); }
.teemine-form-status.is-error::before { content: "!"; }
.teemine-form-status.is-success { padding: 10px 12px; border: 1px solid var(--teemine-accent); color: var(--teemine-accent); }
/* Honeypot: off-screen rather than display:none, which some bots skip. */
.teemine-form-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.teemine-contact-side { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 901px) { .teemine-contact-side { position: sticky; top: 84px; } }
.teemine-panel { border: 1px solid var(--teemine-line); padding: 20px; }
.teemine-panel > .teemine-label { margin-bottom: 12px; }
.teemine-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.teemine-sla { display: inline-flex; align-items: center; gap: 5px; font-family: var(--teemine-font-mono); font-size: 10px; color: var(--teemine-accent); }
.teemine-sla i { width: 6px; height: 6px; border-radius: 50%; background: var(--teemine-accent); box-shadow: 0 0 6px var(--teemine-accent); }
.teemine-email-card {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 14px; border: 1px solid var(--teemine-line); background: var(--teemine-bg);
	transition: border-color .2s ease, background-color .2s ease;
}
.teemine-email-card:hover, .teemine-email-card.is-copied { border-color: var(--teemine-accent); }
.teemine-email-card.is-copied { background: var(--teemine-accent-wash); }
.teemine-email-card-addr { font-family: var(--teemine-font-display); font-size: 17px; letter-spacing: -0.01em; color: var(--teemine-fg); overflow-wrap: anywhere; }
.teemine-email-card-btn {
	flex: none; padding: 5px 8px; border: 1px solid var(--teemine-line);
	font-family: var(--teemine-font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teemine-fg-muted);
}
.teemine-email-card.is-copied .teemine-email-card-btn { border-color: var(--teemine-accent); color: var(--teemine-accent); }
.teemine-panel-foot { display: flex; justify-content: space-between; }
.teemine-panel-link {
	display: flex; justify-content: space-between; gap: 12px; padding: 6px 0;
	border-bottom: 1px dashed var(--teemine-line);
	font-family: var(--teemine-font-mono); font-size: 12.5px; color: var(--teemine-fg-dim);
}
.teemine-panel-link:hover .teemine-fg { color: var(--teemine-accent); }
.teemine-contact-info p { margin: 0 0 6px; font-family: var(--teemine-font-mono); font-size: 13px; }
.teemine-budget-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.teemine-budget-legend { font-family: var(--teemine-font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teemine-fg-muted); }
.teemine-chips [data-teemine-budget] { font-variant-numeric: tabular-nums; }
.teemine-tz-state { display: inline-flex; align-items: center; gap: 5px; font-family: var(--teemine-font-mono); font-size: 10px; color: var(--teemine-fg-muted); }
.teemine-tz-state i { width: 6px; height: 6px; border-radius: 50%; background: var(--teemine-fg-faint); }
.teemine-tz-state.is-on { color: var(--teemine-accent); }
.teemine-tz-state.is-on i { background: var(--teemine-accent); box-shadow: 0 0 6px var(--teemine-accent); animation: teemine-pulse 2s infinite; }
.teemine-tz-clocks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.teemine-tz-clock { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 12px; border: 1px solid var(--teemine-line); background: var(--teemine-bg); }
.teemine-tz-clock.is-me { border-color: color-mix(in srgb, var(--teemine-accent) 35%, var(--teemine-line)); }
.teemine-tz-clock .teemine-small:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.teemine-tz-time { font-family: var(--teemine-font-display); font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; color: var(--teemine-fg); font-variant-numeric: tabular-nums; }
.teemine-tz-strip { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; margin-bottom: 4px; }
.teemine-tz-strip i { height: 18px; background: var(--teemine-line-soft); transition: background-color .3s ease; }
.teemine-tz-strip i.is-work { background: color-mix(in srgb, var(--teemine-accent) 50%, transparent); }
.teemine-tz-strip i.is-now { outline: 1px solid var(--teemine-fg); outline-offset: 1px; }
.teemine-tz-strip i.is-now.is-work { background: var(--teemine-accent); }
.teemine-tz-axis { display: flex; justify-content: space-between; margin-bottom: 10px; }

/* v02.02.00: numbered steps, live command line, receipt, process strip, calendar. */
.teemine-contact-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.teemine-form fieldset.teemine-step { position: relative; margin: 0; padding: 0 0 4px 0; border: 0; min-width: 0; }
.teemine-form fieldset.teemine-step + fieldset.teemine-step { margin-top: 6px; padding-top: 18px; border-top: 1px dashed var(--teemine-line); }
.teemine-step-head {
	display: flex; align-items: center; gap: 10px; float: left; width: 100%; margin: 0 0 14px; padding: 0;
	font-family: var(--teemine-font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teemine-fg);
}
.teemine-step-head + * { clear: both; }
.teemine-step-head b { padding: 2px 6px; border: 1px solid var(--teemine-accent-dim); color: var(--teemine-accent); font-weight: 400; letter-spacing: 0.04em; }
.teemine-step-head::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--teemine-line), transparent); }
.teemine-step:focus-within .teemine-step-head b { background: var(--teemine-accent-wash); border-color: var(--teemine-accent); }
.teemine-form label > span em, .teemine-form label > span [data-teemine-chars] { float: right; font-style: normal; letter-spacing: 0.04em; text-transform: none; color: var(--teemine-fg-faint); }
.teemine-form [data-teemine-chars] { font-variant-numeric: tabular-nums; }
.teemine-form [data-teemine-chars].is-near { color: var(--teemine-danger); }
.teemine-chips-label { display: block; margin: 0 0 8px; font-family: var(--teemine-font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teemine-fg-muted); }
.teemine-budget-head .teemine-chips-label { margin: 0; }
.teemine-form .teemine-chips label > span::before { content: "○ "; color: var(--teemine-fg-faint); }
.teemine-form .teemine-chips input:checked + span::before { content: "● "; color: var(--teemine-accent); }
.teemine-form .teemine-form-full { margin-bottom: 14px; }
.teemine-brief-cmd {
	display: flex; align-items: baseline; gap: 8px; margin: 4px 0 14px; padding: 10px 12px;
	border: 1px solid var(--teemine-line); background: var(--teemine-bg);
	font-family: var(--teemine-font-mono); font-size: 12px; line-height: 1.6; color: var(--teemine-fg-dim);
}
.teemine-brief-cmd code { min-width: 0; padding: 0; background: none; color: inherit; font: inherit; overflow-wrap: anywhere; }
.teemine-brief-cmd .teemine-caret { flex: none; width: 7px; height: 13px; margin-left: 0; align-self: center; }
.teemine-form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
@media (hover: none) and (pointer: coarse) { .teemine-form-actions .teemine-small { display: none; } }
.teemine-form-actions kbd { padding: 1px 5px; border: 1px solid var(--teemine-line); border-bottom-width: 2px; background: var(--teemine-bg); font-family: var(--teemine-font-mono); font-size: 10px; color: var(--teemine-fg-muted); }
.teemine-form-done { padding: 32px 24px 28px; animation: teemine-row-in .4s ease both; }
.teemine-form-done:focus, .teemine-form-done:focus-visible { outline: none !important; box-shadow: none !important; }
.teemine-form-done[hidden] { display: none; }
.teemine-form-done-code { margin: 0 0 10px; font-family: var(--teemine-font-mono); font-size: 12px; letter-spacing: 0.06em; }
.teemine-form-done-title { margin: 0 0 22px; font-family: var(--teemine-font-display); font-size: clamp(24px, 3vw, 34px); line-height: 1.15; letter-spacing: -0.02em; color: var(--teemine-fg); }
.teemine-form-done-steps { margin: 0 0 24px; padding: 0; list-style: none; border-top: 1px solid var(--teemine-line); }
.teemine-form-done-steps li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--teemine-line); font-family: var(--teemine-font-mono); font-size: 13px; color: var(--teemine-fg-dim); }
.teemine-form-done-steps b { flex: none; color: var(--teemine-accent); font-weight: 400; }
.teemine-process { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 0; list-style: none; border: 1px solid var(--teemine-line); counter-reset: none; }
.teemine-process-step { position: relative; display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 16px 18px 18px; }
.teemine-process-step:nth-child(odd) { border-right: 1px solid var(--teemine-line); }
.teemine-process-step:nth-child(-n+2) { border-bottom: 1px solid var(--teemine-line); }
.teemine-process-step:nth-child(odd)::after { content: "→"; position: absolute; right: -7px; top: 14px; z-index: 1; padding: 0 1px; background: var(--teemine-bg); font-family: var(--teemine-font-mono); font-size: 12px; color: var(--teemine-fg-faint); }
.teemine-process-num { font-family: var(--teemine-font-mono); font-size: 10.5px; color: var(--teemine-accent); letter-spacing: 0.1em; }
.teemine-process-step strong { font-family: var(--teemine-font-display); font-size: 17px; font-weight: 600; color: var(--teemine-fg); }
.teemine-process-step .teemine-small { line-height: 1.5; }

.teemine-avail-status { display: inline-flex; align-items: center; gap: 5px; font-family: var(--teemine-font-mono); font-size: 10px; color: var(--teemine-accent); }
.teemine-avail-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
.teemine-avail-status.is-open i { animation: teemine-pulse 2s infinite; }
.teemine-avail-status.is-limited { color: var(--teemine-warn, #e8b04a); }
.teemine-avail-status.is-booked { color: var(--teemine-fg-muted); }
.teemine-avail-status.is-booked i { box-shadow: none; }
.teemine-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-bottom: 10px; font-family: var(--teemine-font-mono); font-variant-numeric: tabular-nums; }
.teemine-cal b { padding-bottom: 4px; font-size: 10px; font-weight: 400; text-align: center; color: var(--teemine-fg-faint); }
.teemine-cal span {
	position: relative; display: flex; align-items: center; justify-content: center; height: 34px;
	border: 1px solid transparent; font-size: 11px; color: var(--teemine-fg-dim);
	transition: background-color .35s ease, border-color .35s ease, opacity .35s ease; transition-delay: calc(var(--i, 0) * 14ms);
}
.teemine-cal span.is-open { background: color-mix(in srgb, var(--teemine-accent) 16%, transparent); border-color: color-mix(in srgb, var(--teemine-accent) 30%, transparent); color: var(--teemine-fg); }
.teemine-cal span.is-booked { background: var(--teemine-line); color: var(--teemine-fg-faint); text-decoration: line-through; text-decoration-color: var(--teemine-fg-faint); }
.teemine-cal span.is-off { background: repeating-linear-gradient(135deg, var(--teemine-line-soft) 0 3px, transparent 3px 7px); color: var(--teemine-fg-faint); }
.teemine-cal span.is-past { opacity: .28; }
.teemine-cal span.is-today { outline: 1px solid var(--teemine-fg); outline-offset: 1px; color: var(--teemine-fg); }
.teemine-cal span.is-today::after { content: ""; position: absolute; bottom: 3px; left: 50%; width: 3px; height: 3px; margin-left: -1.5px; background: var(--teemine-accent); }
.teemine-will-reveal:not(.is-in) .teemine-cal span { opacity: 0; }
.teemine-cal-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 10px; }
.teemine-cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.teemine-cal-legend i { display: inline-block; width: 9px; height: 9px; }
.teemine-cal-legend i.is-open { background: color-mix(in srgb, var(--teemine-accent) 40%, transparent); }
.teemine-cal-legend i.is-booked { background: var(--teemine-fg-faint); }
.teemine-cal-legend i.is-off { background: repeating-linear-gradient(135deg, var(--teemine-fg-faint) 0 2px, transparent 2px 4px); }

@media (max-width: 900px) { .teemine-contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
	.teemine-form-row { grid-template-columns: 1fr; }
	.teemine-form-body { padding: 18px 16px 20px; }
	.teemine-form-done { padding: 24px 16px; }
	.teemine-form-actions { flex-direction: column; align-items: stretch; }
	.teemine-form-actions .teemine-btn { justify-content: center; }
	.teemine-process { grid-template-columns: 1fr; }
	.teemine-process-step:nth-child(odd) { border-right: 0; }
	.teemine-process-step:not(:last-child) { border-bottom: 1px solid var(--teemine-line); }
	.teemine-process-step::after { content: none !important; }
}

/* ── Footer ([teemine_footer]) ───────────────────────────────────────────── */
.teemine-footer { padding: 48px var(--teemine-pad) 24px; border-top: 1px solid var(--teemine-line); background: var(--teemine-bg-1); }
.teemine-footer-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; margin-bottom: 40px; }
.teemine-footer-word {
	font-family: var(--teemine-font-display); font-size: clamp(40px, 9vw, 180px); font-weight: 700;
	background: linear-gradient(180deg, var(--teemine-fg) 30%, color-mix(in srgb, var(--teemine-accent) 60%, var(--teemine-bg)) 130%);
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
	letter-spacing: -0.04em; line-height: 0.9; color: var(--teemine-fg);
	white-space: nowrap; overflow: hidden;
}
.teemine-footer-eof { text-align: right; }
.teemine-footer-bottom {
	display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
	padding-top: 18px; border-top: 1px solid var(--teemine-line);
}
.teemine-footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.teemine-footer-links a:hover { color: var(--teemine-accent); }
.teemine-footer-links a.teemine-accent:hover { color: var(--teemine-fg); }
.teemine-section .teemine-footer-links a.teemine-footer-projects { color: var(--teemine-projects); }
.teemine-section .teemine-footer-links a.teemine-footer-projects:hover { color: var(--teemine-fg); }
@media (max-width: 640px) {
	.teemine-footer { padding: 36px 20px 20px; }
	.teemine-footer-top { grid-template-columns: 1fr; }
	.teemine-footer-eof { text-align: left; }
}
@media (hover: none) and (pointer: coarse) {
	.teemine-footer-links a { display: inline-block; padding: 8px 0; }
}

/* ── Terminal chrome (wp_footer) ─────────────────────────────────────────── */
/* Overlays: grid, scanlines, vignette. html.teemine-no-grid / -no-scan are
   set from Settings and the visitor's customize panel. */
.teemine-fx-grid, .teemine-fx-scan, .teemine-fx-vignette, .teemine-fx-glow { position: fixed; inset: 0; pointer-events: none; }
.teemine-fx-grid {
	z-index: 1; opacity: 0.4;
	background-image:
		linear-gradient(to right, var(--teemine-line-soft) 1px, transparent 1px),
		linear-gradient(to bottom, var(--teemine-line-soft) 1px, transparent 1px);
	background-size: 64px 64px;
}
.teemine-fx-scan {
	z-index: 200; mix-blend-mode: overlay;
	background-image: repeating-linear-gradient(to bottom, rgb(255 255 255 / 5%) 0 1px, transparent 1px 3px);
}
.teemine-fx-glow {
	position: fixed; inset: 0; z-index: 0; pointer-events: none;
	background:
		radial-gradient(ellipse 60% 40% at 50% -10%, color-mix(in srgb, var(--teemine-accent) 7%, transparent), transparent 70%),
		radial-gradient(ellipse 40% 30% at 0% 100%, color-mix(in srgb, var(--teemine-projects) 4%, transparent), transparent 70%);
}
.teemine-fx-vignette { z-index: 201; background: radial-gradient(ellipse at center, transparent 50%, rgb(0 0 0 / 45%) 100%); }
html.teemine-no-grid .teemine-fx-grid,
html.teemine-no-scan .teemine-fx-scan,
html.teemine-no-scan .teemine-fx-vignette { display: none; }

/* Custom cursor — only shown once JS has confirmed a mouse (html.teemine-cursor-on). */
.teemine-cursor { display: none; }
html.teemine-cursor-on .teemine-cursor { display: block; }
html.teemine-cursor-on, html.teemine-cursor-on * { cursor: none !important; }
html.teemine-cursor-on input[type="text"], html.teemine-cursor-on input[type="email"], html.teemine-cursor-on textarea { cursor: text !important; }
.teemine-cursor > * { position: fixed; top: 0; left: 0; pointer-events: none; will-change: transform; }
.teemine-cursor-dot { z-index: 9999; width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--teemine-accent); mix-blend-mode: difference; }
.teemine-cursor-ring {
	z-index: 9998; width: 28px; height: 28px; margin: -14px 0 0 -14px;
	border: 1px solid var(--teemine-accent);
	transition: width .22s ease, height .22s ease, margin .22s ease, background-color .22s ease;
}
.teemine-cursor-ring.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
.teemine-cursor-ring.is-down { background: var(--teemine-accent-wash); }
.teemine-cursor-label {
	position: absolute; left: 50%; top: 100%; transform: translate(-50%, 8px);
	padding: 2px 6px; border: 1px solid var(--teemine-accent); background: var(--teemine-bg);
	font-family: var(--teemine-font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
	color: var(--teemine-accent);
}
.teemine-cursor-label:empty { display: none; }
.teemine-cursor-line, .teemine-cursor-coords { display: none; }
html.teemine-cursor-crosshair .teemine-cursor-line,
html.teemine-cursor-crosshair .teemine-cursor-coords { display: block; }
.teemine-cursor-line { z-index: 9997; background: color-mix(in srgb, var(--teemine-accent) 9%, transparent); }
.teemine-cursor-line.is-h { width: 100vw; height: 1px; }
.teemine-cursor-line.is-v { width: 1px; height: 100vh; }
.teemine-cursor-coords { z-index: 9996; margin: 18px 0 0 18px; font-family: var(--teemine-font-mono); font-size: 10px; letter-spacing: 0.04em; color: var(--teemine-fg-muted); }

/* Status bar */
.teemine-statusbar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: 28px;
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
	padding: 0 16px; background: rgb(8 8 10 / 82%); border-top: 1px solid var(--teemine-line);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	font-family: var(--teemine-font-mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--teemine-fg-muted);
}
.teemine-statusbar-left, .teemine-statusbar-mid, .teemine-statusbar-right { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.teemine-statusbar-right { justify-content: flex-end; }
.teemine-progress { width: 140px; height: 4px; background: var(--teemine-line); }
.teemine-progress i { display: block; height: 100%; width: 0; background: var(--teemine-accent); box-shadow: 0 0 8px var(--teemine-accent); }
[data-teemine-section] { color: var(--teemine-fg-dim); }
.teemine-statusbar-pct { min-width: 30px; text-align: right; }
.teemine-statusbar-btn {
	display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px !important;
	border: 1px solid var(--teemine-line) !important; color: var(--teemine-fg-dim);
	font-size: 10.5px !important; letter-spacing: 0.1em; text-transform: uppercase;
}
.teemine-statusbar-btn[aria-expanded="true"] { border-color: var(--teemine-accent) !important; color: var(--teemine-accent); background: var(--teemine-accent-wash); }
@media (max-width: 782px) {
	.teemine-statusbar { grid-template-columns: auto 1fr; }
	.teemine-statusbar-left { display: none; }
	.teemine-progress { width: 80px; }
	.teemine-statusbar-right > :not(.teemine-statusbar-btn) { display: none; }
}

/* Customize panel + launcher */
.teemine-tweaks-launcher {
	position: fixed; right: 18px; bottom: 42px; z-index: 999;
	display: inline-flex; align-items: center; gap: 10px;
	padding: 12px 16px !important;
	background: var(--teemine-bg) !important; border: 1px solid var(--teemine-accent) !important; color: var(--teemine-accent);
	font-size: 11px !important; letter-spacing: 0.14em; text-transform: uppercase;
	box-shadow: 0 8px 32px var(--teemine-shadow);
}
.teemine-tweaks-launcher i { width: 8px; height: 8px; background: var(--teemine-accent); box-shadow: 0 0 10px var(--teemine-accent); }
.teemine-tweaks-launcher.is-new { animation: teemine-launcher-pulse 2.4s ease-in-out infinite; }
.teemine-tweaks-launcher[hidden] { display: none; }
@keyframes teemine-launcher-pulse {
	0%, 100% { box-shadow: 0 8px 32px var(--teemine-shadow), 0 0 0 0 color-mix(in srgb, var(--teemine-accent) 40%, transparent); }
	50% { box-shadow: 0 8px 32px var(--teemine-shadow), 0 0 0 10px transparent; }
}
/* Without the status bar it sits in the corner instead. */
body:not(:has(.teemine-statusbar)) .teemine-tweaks-launcher,
body:not(:has(.teemine-statusbar)) .teemine-tweaks { bottom: 18px; }

.teemine-tweaks {
	position: fixed; right: 18px; bottom: 42px; z-index: 1000;
	width: 312px; max-width: calc(100vw - 16px);
	background: rgb(8 8 10 / 88%); border: 1px solid var(--teemine-accent);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	font-family: var(--teemine-font-mono); font-size: 12px; color: var(--teemine-fg);
	box-shadow: 0 20px 60px var(--teemine-shadow), 0 0 0 1px rgb(0 0 0 / 30%), 0 0 50px -20px var(--teemine-accent);
}
.teemine-tweaks[hidden] { display: none; }
.teemine-tweaks-bar {
	display: flex; align-items: center; gap: 8px; padding: 8px 10px;
	border-bottom: 1px solid var(--teemine-accent);
	background: linear-gradient(to bottom, color-mix(in srgb, var(--teemine-accent) 12%, transparent), color-mix(in srgb, var(--teemine-accent) 4%, transparent));
	user-select: none; touch-action: none;
}
.teemine-tweaks.is-min .teemine-tweaks-bar { border-bottom: 0; }
.teemine-tweaks.is-min .teemine-tweaks-body, .teemine-tweaks.is-min .teemine-tweaks-foot { display: none; }
.teemine-tweaks-light { width: 11px; height: 11px; border-radius: 50% !important; flex: none; }
.teemine-tweaks-light.is-close { background: var(--teemine-danger) !important; }
.teemine-tweaks-light.is-min { background: var(--teemine-warn) !important; }
.teemine-tweaks-light.is-max { background: var(--teemine-accent); opacity: .55; }
.teemine-tweaks-title { margin-left: 8px; color: var(--teemine-accent); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; }
.teemine-tweaks-ver { margin-left: auto; font-size: 10px; }
.teemine-tweaks-body { display: flex; flex-direction: column; gap: 16px; padding: 14px; }
.teemine-chrome .teemine-tweaks-intro { margin: -14px -14px 0; padding: 10px 14px; border-bottom: 1px dashed var(--teemine-line); font-size: 11px; line-height: 1.55; color: var(--teemine-fg-muted); }
.teemine-tweaks-group > .teemine-label, .teemine-tweaks-head { margin-bottom: 8px; }
.teemine-tweaks-head { display: flex; justify-content: space-between; font-size: 10px; }
.teemine-tweaks .teemine-label { font-size: 9.5px; }
.teemine-tweaks-swatches { display: flex; gap: 6px; }
.teemine-swatch { width: 32px; height: 32px; border: 2px solid transparent !important; outline: 1px solid var(--teemine-line); }
.teemine-swatch[aria-pressed="true"] { border-color: var(--teemine-fg) !important; }
.teemine-tweaks-opts { display: flex; gap: 4px; }
.teemine-tweaks-opt {
	flex: 1; padding: 7px 8px !important; border: 1px solid var(--teemine-line) !important;
	color: var(--teemine-fg-dim); font-size: 10.5px !important; letter-spacing: 0.08em; text-transform: uppercase;
}
.teemine-tweaks-opt[aria-pressed="true"] { border-color: var(--teemine-accent) !important; color: var(--teemine-accent); background: var(--teemine-accent-wash); }
.teemine-tweaks-toggles { display: flex; flex-direction: column; gap: 2px; padding-top: 12px; border-top: 1px dashed var(--teemine-line); }
.teemine-tweaks-toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; }
.teemine-switch { position: relative; width: 42px; height: 20px; background: var(--teemine-line) !important; border: 1px solid var(--teemine-line) !important; }
.teemine-switch i { position: absolute; top: 1px; left: 2px; width: 17px; height: 16px; background: var(--teemine-bg); transition: left .16s ease; }
.teemine-switch[aria-pressed="true"] { background: var(--teemine-accent) !important; }
.teemine-switch[aria-pressed="true"] i { left: 22px; }
.teemine-tweaks-reset {
	padding: 8px 10px !important; border: 1px solid var(--teemine-line) !important;
	color: var(--teemine-fg-muted); font-size: 10.5px !important; letter-spacing: 0.12em; text-transform: uppercase;
}
.teemine-tweaks-reset:hover { color: var(--teemine-fg); border-color: var(--teemine-fg-muted) !important; }
.teemine-tweaks-foot { display: flex; justify-content: space-between; padding: 8px 14px; border-top: 1px solid var(--teemine-line); background: var(--teemine-bg-1); color: var(--teemine-fg-faint); font-size: 10px; }

/* The template's feedback button sits bottom-left; lift it above the status bar. */
body:has(.teemine-statusbar) .teemine-feedback-toggle { bottom: 40px; }

@media (prefers-reduced-motion: reduce) {
	.teemine-caret, .teemine-marquee-track, .teemine-tweaks-launcher.is-new,
	.teemine-portal-live i, .teemine-projects-btn i, .teemine-projects-badge i { animation: none; }
	.teemine-case:hover .teemine-case-shot::before { animation: none; }
	.teemine-portal, .teemine-service { transform: none !important; }
	.teemine-will-reveal { opacity: 1; transform: none; transition: none; }
	.teemine-loadout-tile, .teemine-commit-card, .teemine-commit-card:hover { transform: none !important; }
	.teemine-focus-flag i, .teemine-focus-dot, .teemine-commit.is-active .teemine-commit-node::after, .teemine-tz-state.is-on i,
	.teemine-matrix-row.is-flash, .teemine-price.is-swapping, .teemine-avail-status i, .teemine-form-done { animation: none; }
	.teemine-meter i, .teemine-cal span { transition: none; }
}

/* ── Template extras ────────────────────────────────────────────────────── */

/* Newsletter signup ([teemine_signup]) */
.teemine-signup { background: var(--teemine-bg-1); border-top: 1px solid var(--teemine-line); color: var(--teemine-fg); text-align: center; padding: clamp(56px,8vw,88px) clamp(20px,5vw,64px); }
.teemine-signup-form { max-width: 480px; margin: 0 auto; }

/* MailerLite's embedded-form editor exposes little visual customization, and at
   runtime it injects a <style> block scoped to that specific form's auto-generated
   ID (e.g. "#mlb2-46232274.ml-form-embedContainer ...") with !important on every
   property, including a white card, a second nested grey panel, fixed pixel widths
   and asymmetric padding — a boxed "widget" look that clashes with the flat,
   borderless sections used everywhere else on this site. An ID beats any number of
   classes regardless of !important, so a plain class-based override can never win.
   #teemine-signup is a real ID already on our wrapper <section>, and repeating its
   own class after the ID (harmless, just a specificity trick — each repetition
   legitimately counts toward selector weight) pads our specificity comfortably past
   MailerLite's, so these overrides win regardless of load order. Verified against
   the live rendered form's computed styles, not just visually. */
#teemine-signup.teemine-signup.teemine-signup.teemine-signup .ml-form-embedContainer,
#teemine-signup.teemine-signup.teemine-signup.teemine-signup .ml-form-embedWrapper,
#teemine-signup.teemine-signup.teemine-signup.teemine-signup .ml-form-embedBody {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
	display: block !important;
}
#teemine-signup.teemine-signup.teemine-signup.teemine-signup .ml-form-formContent,
#teemine-signup.teemine-signup.teemine-signup.teemine-signup .ml-form-fieldRow,
#teemine-signup.teemine-signup.teemine-signup.teemine-signup .ml-field-group {
	width: 100% !important;
	max-width: 100% !important;
}
#teemine-signup.teemine-signup.teemine-signup.teemine-signup .ml-form-embedContent h4 {
	font-family: var(--teemine-font-display) !important;
	font-weight: 600 !important;
	color: var(--teemine-fg) !important;
}
#teemine-signup.teemine-signup.teemine-signup.teemine-signup .ml-form-embedContent p,
#teemine-signup.teemine-signup.teemine-signup.teemine-signup .ml-form-successContent p {
	font-family: var(--teemine-font-mono) !important;
	color: var(--teemine-fg) !important;
	opacity: 0.9;
}
#teemine-signup.teemine-signup.teemine-signup.teemine-signup .form-control {
	font-family: var(--teemine-font-mono) !important;
	background: var(--teemine-bg) !important;
	color: var(--teemine-fg) !important;
	border: 1px solid var(--teemine-line) !important;
	border-radius: var(--teemine-radius) !important;
	box-shadow: none !important;
	width: 100% !important;
	max-width: 100% !important;
	padding: 12px 14px !important;
}
#teemine-signup.teemine-signup.teemine-signup.teemine-signup .ml-form-embedSubmit {
	width: 100% !important;
}
#teemine-signup.teemine-signup.teemine-signup.teemine-signup .ml-form-embedSubmit button.primary {
	background: var(--teemine-accent) !important;
	color: var(--teemine-bg) !important;
	border-radius: var(--teemine-radius) !important;
	font-family: var(--teemine-font-mono) !important;
	font-weight: 600 !important;
	border: none !important;
	width: 100% !important;
}
#teemine-signup.teemine-signup.teemine-signup.teemine-signup .ml-form-embedSubmit button.primary:hover {
	background: var(--teemine-accent-dim) !important;
}

/* Floating feedback button + popup (rendered in wp_footer by class-teemine-feedback.php).
   The button sits bottom-left so it never collides with the back-to-top button
   on the right; z-index sits between back-to-top (90) and the popups (200). */
.teemine-feedback, .teemine-feedback * { box-sizing: border-box; }
.teemine-feedback { font-family: var(--teemine-font-mono); }
.teemine-feedback-toggle {
	position: fixed; left: 22px; bottom: 22px; z-index: 95;
	display: inline-flex; align-items: center; gap: 8px;
	padding: 11px 18px; border: 0; border-radius: 0;
	background: var(--teemine-bg-2); color: var(--teemine-fg);
	font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .02em; cursor: pointer;
	box-shadow: 0 14px 30px -14px var(--teemine-shadow);
	transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.teemine-feedback-toggle:hover, .teemine-feedback-toggle:focus-visible {
	background: var(--teemine-accent); color: var(--teemine-bg); transform: translateY(-3px);
	box-shadow: 0 18px 34px -14px var(--teemine-shadow);
}
.teemine-feedback-toggle[aria-expanded="true"] { background: var(--teemine-accent); color: var(--teemine-bg); }
.teemine-feedback-toggle svg { flex: none; }

/* Centred popup over a dimmed backdrop (was a panel anchored to the button,
   which collided with other fixed elements). z-index 300 puts it above the
   sticky header (100) and the other popups (200). inset:0 + margin:auto +
   height:fit-content centres it without a transform, so the transform stays
   free for the open animation. */
.teemine-feedback-backdrop {
	position: fixed; inset: 0; z-index: 299;
	background: color-mix(in srgb, var(--teemine-bg) 55%, transparent);
	opacity: 0; transition: opacity .22s ease;
}
.teemine-feedback-backdrop[hidden] { display: none; }
.teemine-feedback-backdrop.is-open { opacity: 1; }
.teemine-feedback-panel {
	position: fixed; inset: 0; z-index: 300; margin: auto;
	width: min(440px, calc(100vw - 32px)); height: fit-content; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow-y: auto;
	padding: 28px 26px 24px; border-radius: 0;
	background: var(--teemine-bg-1); border: 1px solid var(--teemine-line); color: var(--teemine-fg);
	box-shadow: 0 40px 80px -30px var(--teemine-shadow);
	opacity: 0; transform: translateY(14px) scale(.97);
	transition: opacity .22s ease, transform .22s cubic-bezier(.2,.7,.2,1);
}
.teemine-feedback-panel[hidden] { display: none; }
.teemine-feedback-panel.is-open { opacity: 1; transform: none; }
/* Page scroll lock while the popup is open. */
body.teemine-feedback-open { overflow: hidden; }
.teemine-feedback-close {
	position: absolute; top: 10px; right: 10px;
	width: 30px; height: 30px; border: 0; border-radius: 50%;
	background: var(--teemine-bg-3); color: var(--teemine-fg-dim);
	font-size: 19px; line-height: 1; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
}
.teemine-feedback-close:hover { background: var(--teemine-line); color: var(--teemine-fg); }
.teemine-feedback-title { font-family: var(--teemine-font-display); font-size: 20px; font-weight: 600; margin: 0 32px 4px 0; color: var(--teemine-fg); }
.teemine-feedback-intro { font-size: 13px; color: var(--teemine-fg-muted); margin: 0 0 16px !important; padding: 0 !important; line-height: 1.5; }
.teemine-feedback fieldset { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
.teemine-feedback legend,
.teemine-feedback-field > span { display: block; font-size: 12px; font-weight: 600; color: var(--teemine-fg-dim); margin-bottom: 6px; padding: 0; }
.teemine-feedback-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Stars: real radios (keyboard + screen readers work natively), visually hidden;
   JS adds .is-lit up to the hovered/checked star. */
.teemine-feedback-stars { display: flex; gap: 2px; }
.teemine-feedback-stars label { position: relative; cursor: pointer; }
.teemine-feedback-stars input,
.teemine-feedback-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.teemine-feedback-star {
	display: block; font-size: 28px; line-height: 1; padding: 2px;
	color: var(--teemine-line); transition: color .15s ease, transform .15s ease;
}
.teemine-feedback-stars label.is-lit .teemine-feedback-star { color: var(--teemine-accent); }
.teemine-feedback-stars label:hover .teemine-feedback-star { transform: scale(1.15); }
.teemine-feedback-stars input:focus-visible + .teemine-feedback-star { outline: 2px solid var(--teemine-accent); outline-offset: 1px; border-radius: 4px; }

.teemine-feedback-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.teemine-feedback-chips label { position: relative; cursor: pointer; }
.teemine-feedback-chips span {
	display: inline-block; padding: 6px 13px; border: 1px solid var(--teemine-line); border-radius: 0;
	font-size: 12.5px; color: var(--teemine-fg-dim); background: var(--teemine-bg-1);
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.teemine-feedback-chips label:hover span { border-color: var(--teemine-accent); color: var(--teemine-accent); }
.teemine-feedback-chips input:checked + span { background: var(--teemine-accent); border-color: var(--teemine-accent); color: var(--teemine-bg); }
.teemine-feedback-chips input:focus-visible + span { outline: 2px solid var(--teemine-accent); outline-offset: 2px; }

.teemine-feedback-field { display: block; margin-bottom: 12px; }
.teemine-feedback-field textarea,
.teemine-feedback-field input {
	display: block; width: 100%; padding: 10px 12px;
	border: 1px solid var(--teemine-line); border-radius: 0; background: var(--teemine-bg);
	font: inherit; font-size: 14px; color: var(--teemine-fg);
}
.teemine-feedback-field textarea { resize: vertical; min-height: 96px; }
.teemine-feedback-field textarea:focus,
.teemine-feedback-field input:focus { outline: none; border-color: var(--teemine-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teemine-accent) 15%, transparent); background: var(--teemine-bg-1); }
.teemine-feedback-field.is-invalid textarea { border-color: var(--teemine-danger); }
.teemine-feedback-hp,
.teemine-form-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.teemine-feedback-status { font-size: 12.5px; margin: 0 0 10px !important; padding: 0 !important; min-height: 0; }
.teemine-feedback-status:empty { display: none; }
.teemine-feedback-status.is-error { color: var(--teemine-danger); }
.teemine-feedback-submit { width: 100%; text-align: center; border: 0; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; }
.teemine-feedback-submit[disabled] { opacity: .6; cursor: progress; }

.teemine-feedback-thanks { text-align: center; padding: 18px 4px 8px; outline: none; }
.teemine-feedback-thanks[hidden] { display: none; }
.teemine-feedback-thanks .teemine-feedback-title { margin: 0 0 6px; }
.teemine-feedback-thanks p { font-size: 13.5px; color: var(--teemine-fg-muted); margin: 0 !important; }
.teemine-feedback-thanks-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; margin-bottom: 12px; border-radius: 50%;
	background: var(--teemine-bg-3); color: var(--teemine-accent); font-size: 22px; font-weight: 700;
}

