/* UI For Hire, site styles.
 * The design-tools layer is driven by html[data-tools="on"]:
 *   .t-on   only shown when the tools are on
 *   .t-off  only shown when the tools are off
 */

:root {
	--bg: #0D0E10;
	--canvas: #141518;
	--panel: #18191C;
	--panel-2: #111214;
	--hover: #1E2024;
	--line: #2A2C31;
	--line-2: #3A3D44;
	--field-line: #4A4E56;
	--text: #ECEDEF;
	--soft: #C6CAD0;
	--muted: #A0A5AD;
	--subtle: #8A9099;
	--paper: #FFFFFF;
	--ink: #0D0E10;
	--ink-2: #3D434B;
	--ink-3: #4A5058;
	--rule: #E3E5E8;
	--fill: #C9CDD2;
	--accent: #61D484;
	--accent-ink: #1E7A44;
	--accent-tint: rgba(97, 212, 132, 0.16);
	--violet: #B48CFF;
	--violet-line: #9747FF;
	--orange: #FF8A3D;
	--orange-ink: #C2410C;
	--sticky: #FFE27A;
	--sticky-ink: #2A2205;
	--guest: #FF8A3D;
	--font: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--mono: 'DM Mono', ui-monospace, Menlo, monospace;
	--gutter: clamp(16px, 3.4vw, 48px);
	--section-y: clamp(56px, 7vw, 88px);
	--max: 1344px;
	--shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
	--dots: radial-gradient(#2A2D33 1px, transparent 1px);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: #7FE09C; }
a:hover { color: #A6EBBB; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

.skip-link {
	position: absolute; left: 12px; top: -80px; z-index: 100;
	padding: 10px 14px; border-radius: 8px;
	background: var(--accent); color: var(--ink); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--ink); }
.visually-hidden {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Tools layer switches ---------- */

html:not([data-tools="on"]) .t-on { display: none !important; }
html[data-tools="on"] .t-off { display: none !important; }

/* ---------- Layout ---------- */

.wrap { max-width: var(--max); margin-inline: auto; }
.section {
	padding: var(--section-y) var(--gutter);
	border-top: 1px solid var(--line);
	background-color: var(--canvas);
}
.section--hero { padding-top: 48px; padding-bottom: 80px; border-top: 0; }
.section--tight { padding-top: 0; border-top: 0; }
html[data-tools="on"] .section,
html[data-tools="on"] .canvas { background-image: var(--dots); background-size: 22px 22px; }

.section-head {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
	gap: 16px 40px; margin-bottom: 44px;
}
.section-head__main { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.section-head__aside { max-width: 420px; font-size: 16px; line-height: 1.55; color: var(--muted); }

.grid {
	display: grid; gap: var(--gap, 20px);
	grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 280px), 100%), 1fr));
}
.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }

/* ---------- Type ---------- */

.kicker { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--subtle); }
html[data-tools="on"] .kicker--tool { color: var(--violet); }
.h2 { font-size: clamp(34px, 4.2vw, 60px); font-weight: 800; line-height: 1; letter-spacing: -0.035em; text-wrap: balance; }
.h2 em, .dim { font-style: normal; color: var(--subtle); }
.h3 { font-size: 22px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.body-lg { font-size: 17px; line-height: 1.6; color: var(--soft); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

.eyebrow { margin-bottom: 28px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.display { font-weight: 800; line-height: 0.92; letter-spacing: -0.035em; text-wrap: balance; }
.display em { font-style: normal; color: var(--accent-ink); }
.page-title { font-size: clamp(42px, 8cqi, 104px); }
.lede { margin-top: 32px; max-width: 620px; font-size: 19px; line-height: 1.55; color: var(--ink-2); }

/* ---------- Buttons and links ---------- */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 24px; border: 0; border-radius: 8px;
	font-size: 16px; font-weight: 700; line-height: 1.1; text-decoration: none; cursor: pointer;
	transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { flex: 0 0 auto; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; font-weight: 600; }
.btn--lg { min-height: 56px; padding: 0 26px; font-size: 17px; }
.btn--accent, .btn--accent:hover { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: #76DC96; }
.btn--dark, .btn--dark:hover { background: var(--ink); color: #FFFFFF; }
.btn--dark:hover { background: #24262B; }
.btn--block { display: flex; width: 100%; }
.btn--text {
	min-height: 52px; padding: 0 4px; background: none; color: var(--ink);
	text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px;
}
.btn--text:hover { color: var(--ink); transform: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; }
.text-button {
	min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--soft);
	font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: pointer;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-size: 14px; }

/* ---------- Header ---------- */

.site-header {
	position: sticky; top: 0; z-index: 40;
	display: flex; align-items: center; justify-content: space-between; gap: 8px 20px;
	/* Side padding lines the logo and buttons up with the page content and footer. */
	min-height: 64px; padding: 6px max(var(--gutter), calc((100% - var(--max)) / 2));
	background: var(--panel); border-bottom: 1px solid var(--line);
}
.site-logo { display: flex; align-items: center; min-height: 44px; }
.site-logo svg { width: 52px; height: 24px; }
.site-header__brand { display: flex; align-items: center; gap: 16px; }
.site-crumb { font-size: 14px; color: var(--subtle); white-space: nowrap; }
.site-crumb strong { color: var(--text); font-weight: 600; }
.site-nav { display: flex; align-items: center; gap: 0 2px; font-size: 15px; font-weight: 500; }
.site-nav a, .site-nav button {
	display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px;
	border: 0; border-radius: 8px; background: none; color: var(--soft); text-decoration: none; cursor: pointer;
}
.site-nav a:hover, .site-nav button:hover { background: var(--hover); color: var(--text); }
.site-nav a[aria-current="page"] { background: #22242A; color: var(--text); }
.site-nav__drawer-only { display: none !important; }
.site-header__actions { display: flex; align-items: center; gap: 10px; }

.guest-button {
	display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
	border: 1px solid var(--line); border-radius: 50%; background: var(--panel-2); cursor: pointer;
}
.guest-avatar {
	display: flex; align-items: center; justify-content: center; width: 32px; height: 32px;
	border-radius: 50%; background: var(--guest); color: var(--ink); font-size: 13px; font-weight: 700;
}
.guest-icon path { fill: var(--guest); stroke: var(--ink); stroke-width: 1; stroke-linejoin: round; }
.guest-dot { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; background: var(--guest); color: var(--ink); font-size: 12px; font-weight: 700; }

.tools-switch {
	display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 6px 0 14px;
	border: 1px solid var(--line); border-radius: 999px; background: var(--panel-2);
	color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.tools-switch__short { display: none; }
.tools-switch__track { position: relative; flex: 0 0 auto; width: 36px; height: 22px; border-radius: 999px; background: var(--line-2); transition: background-color 0.2s; }
.tools-switch__knob { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #FFFFFF; transition: left 0.2s ease, background-color 0.2s; }
.tools-switch[aria-checked="true"] .tools-switch__track { background: var(--accent); }
.tools-switch[aria-checked="true"] .tools-switch__knob { left: 17px; background: var(--ink); }

.menu-button {
	display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
	border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); color: var(--text); cursor: pointer;
}

/* ---------- Paper frames and the tools layer ---------- */

.frame {
	position: relative;
	padding: clamp(28px, 4.4vw, 64px) clamp(20px, 3.9vw, 56px);
	background: var(--paper); color: var(--ink); box-shadow: var(--shadow);
	container-type: inline-size;
}
.frame a:not(.btn) { color: var(--ink); }
.frame-label { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 8px; font-family: var(--mono); font-size: 12px; color: var(--subtle); }
.frame-label--tool { color: var(--violet); }

.sel-target { position: relative; display: inline-block; max-width: 100%; }
html[data-tools="on"] .sel-target--static { outline: 1.5px solid var(--accent); outline-offset: 10px; margin-bottom: 36px; }
.spec-chip {
	position: absolute; left: 0; bottom: -40px; z-index: 2;
	padding: 3px 8px; border-radius: 4px; background: var(--accent); color: var(--ink);
	font-family: var(--mono); font-size: 11px; white-space: nowrap;
}
.cursor { position: absolute; z-index: 3; display: flex; align-items: flex-start; gap: 2px; pointer-events: none; }
.cursor svg { width: 22px; height: 22px; }
.cursor path { fill: var(--accent); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.cursor__label { margin-top: 16px; padding: 2px 7px; border-radius: 4px; background: var(--accent); color: var(--ink); font-size: 11px; font-weight: 600; white-space: nowrap; }
.cursor--studio { right: -30px; bottom: -50px; animation: nudge 3.4s ease-in-out infinite; }
.cursor--guest path { fill: var(--guest); }
.cursor--guest .cursor__label { background: var(--guest); }
.cursor--dev path { fill: #5EB1FF; }
.cursor--dev .cursor__label { background: #5EB1FF; }

html[data-tools="on"] .set { outline: 1.5px dashed var(--violet-line); outline-offset: 16px; }

/* ---------- Cards ---------- */

.card { display: flex; flex-direction: column; gap: 12px; padding: 26px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.card p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.card__tag { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.card__tag--muted { color: var(--muted); }
.card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card svg.icon { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.paper-card { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 280px; padding: clamp(24px, 3vw, 44px); background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.paper-card__label { font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.paper-card__text { font-size: clamp(26px, 2.8vw, 40px); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; }
.paper-card__text span, .hl { color: var(--accent-ink); }

/* ---------- CTA band and footer ---------- */

.cta-band {
	display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 48px;
	padding: clamp(28px, 5vw, 64px); background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
}
.cta-band__title { max-width: 760px; font-size: clamp(40px, 5vw, 76px); font-weight: 800; line-height: 0.95; letter-spacing: -0.035em; text-wrap: balance; }
.cta-band__title em { font-style: normal; color: var(--accent); }
.cta-band__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cta-band__note { font-size: 14px; line-height: 1.5; color: var(--muted); }

.site-footer { padding: 28px var(--gutter); background: var(--panel); border-top: 1px solid var(--line); }
.site-footer__inner { max-width: var(--max); margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 0 18px; }
.site-footer__nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--soft); font-size: 15px; text-decoration: none; }
.site-footer__nav a:hover { color: var(--text); }
.site-footer__meta { display: flex; flex-wrap: wrap; gap: 4px 20px; font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------- Forms ---------- */

.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--soft); }
.field input, .field select, .field textarea {
	min-height: 48px; padding: 0 12px; width: 100%;
	background: var(--ink); border: 1px solid var(--field-line); border-radius: 8px;
	color: var(--text); font-size: 16px;
}
.field textarea { min-height: 128px; padding: 12px; line-height: 1.5; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.field__optional { color: var(--subtle); }
.field-row { display: flex; flex-wrap: wrap; gap: 14px; }
.field-row > .field { flex: 1 1 200px; }
.choice-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.choice-group legend { margin-bottom: 8px; padding: 0; font-size: 13px; color: var(--soft); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--field-line); border-radius: 999px; font-size: 15px; cursor: pointer; }
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.form__fine { font-size: 13px; color: var(--subtle); }
.form-status { padding: 12px 14px; border-radius: 8px; background: var(--accent-tint); color: var(--text); font-size: 15px; line-height: 1.5; }
.form-status[data-state="error"] { background: rgba(255, 138, 61, 0.16); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.segmented { display: flex; gap: 4px; padding: 4px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; }
.segmented button {
	flex: 1 1 0; min-width: 0; min-height: 44px; padding: 0 12px; border: 0; border-radius: 9px;
	background: transparent; color: var(--soft); font-weight: 700; cursor: pointer;
}
.segmented button[aria-pressed="true"] { background: var(--accent); color: var(--ink); }
.segmented--quiet button[aria-pressed="true"] { background: var(--line); color: var(--text); }

.dialog { overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); }
.dialog__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.dialog__head h3 { font-size: 15px; font-weight: 600; }
.dialog__body { padding: 20px; }
.dialog__foot { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px 20px; border-top: 1px solid var(--line); }
.person { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.person__avatar { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--ink); font-size: 11px; font-weight: 700; }
.person__avatar--guest { background: var(--guest); font-size: 12px; }
.person__role { margin-left: auto; font-size: 13px; color: var(--muted); }

/* ---------- Cursor popup ---------- */

.welcome {
	position: fixed; top: 80px; right: 20px; z-index: 60;
	width: min(380px, calc(100% - 24px)); padding: 18px 20px 20px;
	background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 16px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
	animation: pop 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.welcome__close { position: absolute; top: 6px; right: 6px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; }
.welcome__stage {
	position: relative; height: 92px; margin: 0 36px 16px 0; overflow: hidden;
	border: 1px solid var(--line); border-radius: 10px;
	background-color: var(--panel-2); background-image: var(--dots); background-size: 16px 16px;
}
.welcome__stage .cursor--studio { left: 16px; top: 14px; right: auto; bottom: auto; animation: none; }
.welcome__stage .cursor--guest { left: 44%; top: 30px; animation: nudge 2.6s ease-in-out infinite; }
.welcome__stage .cursor--guest .cursor__label { max-width: 140px; overflow: hidden; text-overflow: ellipsis; padding: 3px 8px; font-size: 13px; font-weight: 700; }
.welcome__step { display: flex; flex-direction: column; gap: 14px; }
.welcome__intro { display: flex; flex-direction: column; gap: 6px; }
.welcome__step-label { font-family: var(--mono); font-size: 12px; color: var(--subtle); }
.welcome h2 { font-size: 24px; font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.welcome p { font-size: 14px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.welcome__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.welcome .btn { min-height: 44px; padding: 0 20px; font-size: 15px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--panel), 0 0 0 5px var(--c); }

/* ---------- The visitor's own cursor, site-wide ---------- */

html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor label, html.has-cursor select, html.has-cursor summary { cursor: var(--guest-cursor), auto; }
html.has-cursor a, html.has-cursor button, html.has-cursor select, html.has-cursor summary, html.has-cursor label.choice { cursor: var(--guest-cursor), pointer; }
.pointer-tag {
	position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none;
	padding: 2px 7px; border-radius: 4px; background: var(--guest); color: var(--ink);
	font-size: 11px; font-weight: 600; white-space: nowrap; will-change: transform;
}

/* ---------- Consent banner ---------- */

.consent {
	position: fixed; left: 20px; bottom: 20px; z-index: 70; width: min(420px, calc(100vw - 24px));
	display: flex; flex-direction: column; gap: 14px; padding: 18px 20px;
	background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 14px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); font-size: 14px; line-height: 1.5; animation: rise 0.3s ease-out both;
}
.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent__actions .btn { min-height: 44px; }
.consent__decline { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.site-footer__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--soft); font-size: 15px; cursor: pointer; }
.site-footer__link:hover { color: var(--text); }
@media (max-width: 560px) { .consent { left: 12px; right: 12px; bottom: 12px; width: auto; } }

/* ---------- Home: workspace ---------- */

.workspace { display: flex; flex-wrap: wrap; align-items: stretch; background: var(--canvas); }
.panel { font-size: 13px; background: var(--panel); }
.panel--layers { flex: 0 0 232px; padding: 16px 10px; border-right: 1px solid var(--line); animation: slideL 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.panel--inspector { flex: 0 0 300px; display: flex; flex-direction: column; gap: 20px; padding: 16px; border-left: 1px solid var(--line); animation: slideR 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.panel__heading { margin: 0 8px 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle); }
.panel__heading--row { display: flex; justify-content: space-between; margin: 0; }
.panel__heading--row span:last-child { font-family: var(--mono); font-weight: 500; letter-spacing: 0; text-transform: none; }
.panel__list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 20px; }
.panel__row {
	display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 10px;
	border: 0; border-radius: 6px; background: transparent; color: var(--muted);
	font-size: 13px; text-align: left; text-decoration: none; cursor: pointer;
}
.panel__row svg { flex: 0 0 auto; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.panel__row svg.fill { fill: var(--violet); stroke: none; }
.panel__row:hover { background: var(--hover); color: var(--text); }
.panel__row[aria-current="page"] { background: #22242A; color: var(--text); }
.panel__row[aria-pressed="true"] { background: var(--accent-tint); color: var(--text); }
.panel__row--child { padding-left: 30px; }
.panel__hint { margin: 0 10px; font-size: 12px; line-height: 1.5; color: var(--subtle); }

.stage { position: relative; flex: 1 1 560px; min-width: 0; padding: 48px var(--gutter) 72px; background-color: var(--canvas); }
html[data-tools="on"] .stage { padding: 0 56px 64px 78px; }
.ruler-top {
	display: flex; height: 20px; margin: 0 -56px 40px -58px; padding-left: 58px; overflow: hidden;
	background-color: var(--panel); background-image: repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 11.2px);
	background-size: 100% 6px; background-position: 58px 14px; background-repeat: no-repeat;
	border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 10px; color: var(--subtle);
}
.ruler-top span { flex: 0 0 112px; padding: 2px 0 0 4px; border-left: 1px solid #5A5F68; }
.ruler-left {
	position: absolute; top: 0; bottom: 0; left: 0; width: 20px;
	background-color: var(--panel); background-image: repeating-linear-gradient(180deg, var(--line-2) 0 1px, transparent 1px 11.2px);
	background-size: 6px 100%; background-position: 14px 0; background-repeat: no-repeat; border-right: 1px solid var(--line);
}

/* Hero frame */
.hero { animation: frameFill 0.3s ease-out 0.42s both; }
.hero__eyebrow { margin-bottom: 36px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); animation: rise 0.5s ease-out 0.6s both; }
.hero__title { font-size: clamp(48px, 17cqi, 168px); font-weight: 800; line-height: 0.9; letter-spacing: -0.035em; animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.7s both; }
html[data-tools="on"] .hero__title { font-size: clamp(48px, 18.5cqi, 128px); }
.hero__title em { font-style: normal; white-space: nowrap; color: var(--accent-ink); }
.caret { display: inline-block; width: 4px; height: 0.78em; margin-left: 10px; vertical-align: -0.04em; background: var(--accent); animation: blink 1.1s steps(1) infinite; }
.redline { display: flex; align-items: center; gap: 6px; height: 24px; margin-top: 16px; padding-left: 28px; }
html[data-tools="on"] .redline { height: 64px; }
.redline span { visibility: hidden; }
html[data-tools="on"] .redline span { visibility: visible; }
.redline span:first-child { width: 1px; height: 100%; background: var(--orange); }
.redline span:last-child { font-family: var(--mono); font-size: 11px; color: var(--orange-ink); }
.hero__lede-target { position: relative; max-width: 560px; animation: rise 0.5s ease-out 1s both; }
.hero__lede { font-size: 19px; line-height: 1.55; color: var(--ink-2); }
.hero__bottom { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 40px 48px; }
.hero__cta-col { display: flex; flex-direction: column; gap: 14px; animation: rise 0.5s ease-out 1.45s both; }
.hero__actions { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.hero__actions .btn { min-height: 56px; padding: 0 26px; font-size: 17px; }
.hero__meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.hero__meta::before { content: ''; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-ink); }

/* Selection boxes on the hero */
.selbox { position: absolute; inset: 0; z-index: 2; display: none; pointer-events: none; }
html[data-tools="on"] [data-sel="frame"] .selbox--frame,
html[data-tools="on"] [data-sel="title"] .selbox--title,
html[data-tools="on"] [data-sel="body"] .selbox--body,
html[data-tools="on"] [data-sel="cta"] .selbox--cta { display: block; animation: fade 0.2s ease-out both; }
.selbox::before { content: ''; position: absolute; inset: -9.5px; border: 1.5px solid var(--accent); }
.selbox i { position: absolute; width: 9px; height: 9px; background: #FFFFFF; border: 1.5px solid var(--accent); }
.selbox i:nth-of-type(1) { top: -15px; left: -15px; }
.selbox i:nth-of-type(2) { top: -15px; right: -15px; }
.selbox i:nth-of-type(3) { bottom: -15px; left: -15px; }
.selbox i:nth-of-type(4) { bottom: -15px; right: -15px; }
.selbox .spec-chip { left: 50%; transform: translateX(-50%); bottom: -44px; }
.selbox--title .spec-chip { left: 0; transform: none; bottom: -42px; }
.selbox--body .spec-chip, .selbox--cta .spec-chip { top: -44px; bottom: auto; }
.selbox .cursor { right: -50px; bottom: -48px; animation: arrive 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s both, nudge 3.4s ease-in-out 1.05s infinite; }
.selbox--frame .cursor { right: -36px; bottom: -58px; }

.code-overlay { display: none; position: absolute; inset: 0; pointer-events: none; }
html[data-tools="on"] [data-mode="code"] .code-overlay { display: block; }
.code-overlay__pad { position: absolute; top: clamp(28px, 4.4vw, 64px); right: clamp(20px, 3.9vw, 56px); bottom: clamp(28px, 4.4vw, 64px); left: clamp(20px, 3.9vw, 56px); outline: 1px dashed var(--orange); }
.code-overlay__top, .code-overlay__left { position: absolute; display: flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 11px; color: var(--orange-ink); }
.code-overlay__top { top: 0; left: 38%; height: clamp(28px, 4.4vw, 64px); }
.code-overlay__top::before { content: ''; width: 1px; height: 100%; background: var(--orange); }
.code-overlay__left { top: 52%; left: 0; flex-direction: column; width: clamp(20px, 3.9vw, 56px); }
.code-overlay__left::before { content: ''; width: 100%; height: 1px; background: var(--orange); }

/* Comment thread */
.comment { position: relative; flex: 0 1 300px; padding: 16px 18px; background: var(--panel); color: var(--text); border-radius: 12px; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35); font-size: 14px; line-height: 1.45; animation: pop 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) 1.6s both; }
.comment p + p { margin-top: 10px; }
.comment__badge { position: absolute; top: -14px; left: -14px; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 2px solid #FFFFFF; border-radius: 50% 50% 50% 0; background: var(--guest); color: var(--ink); font-size: 12px; font-weight: 700; }
.comment__guest { color: var(--guest); }
.comment__studio { color: var(--accent); }
.comment .cursor--guest { left: -44px; bottom: -40px; animation: arrive 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 1.9s both, drift 5.2s ease-in-out 2.7s infinite; }

/* Intro: Design and Dev cursors build the hero */
.intro-rect { position: absolute; top: 0; left: 0; z-index: 5; width: 100%; height: 100%; border: 1.5px solid var(--accent); opacity: 0; pointer-events: none; animation: drawRect 0.38s ease-in-out 0.1s both, gone 0.2s ease-out 0.55s both; }
.intro-rect span { position: absolute; right: 0; bottom: -26px; padding: 2px 7px; border-radius: 4px; background: var(--accent); color: var(--ink); font-family: var(--mono); font-size: 11px; white-space: nowrap; }
.intro-cursor { position: absolute; top: 0; left: 0; z-index: 6; opacity: 0; }
.intro-cursor--design { animation: designPath 1.6s ease-in-out both; }
.intro-cursor--dev { animation: devPath 1.7s ease-in-out 0.75s both; }
.intro-cursor__stack { margin-top: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.intro-cursor__stack .cursor__label { margin-top: 0; }
.intro-code { padding: 3px 7px; border-radius: 4px; background: var(--ink); color: #9CCBFF; font-family: var(--mono); font-size: 11px; white-space: nowrap; opacity: 0; animation: chip 0.9s ease-out 1.45s both; }
html.intro-seen .intro-rect, html.intro-seen .intro-cursor { display: none; }
html.intro-seen .hero, html.intro-seen .hero__eyebrow, html.intro-seen .hero__title,
html.intro-seen .hero__lede-target, html.intro-seen .hero__cta-col { animation: none; }

/* Inspector */
.inspector__sel { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 6px; }
.inspector__sel strong { font-size: 16px; font-weight: 600; }
.inspector__sel span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.prop-group { display: flex; flex-direction: column; gap: 6px; }
.prop-group + .prop-group { margin-top: 18px; }
.prop { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 10px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; font-family: var(--mono); font-size: 12px; }
.prop__swatch { flex: 0 0 auto; width: 16px; height: 16px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.prop__k { color: var(--muted); }
.prop__v { margin-left: auto; text-align: right; }
.codeblock { display: block; padding: 12px 14px; background: var(--ink); border: 1px solid var(--line); border-radius: 8px; font-family: var(--mono); font-size: 12px; line-height: 1.75; overflow-x: auto; white-space: pre; }
.codeblock .c-sel { color: var(--violet); }
.codeblock .c-prop { color: #7FE09C; }
.inspector__plans { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.plan-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 52px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); color: var(--text); font-size: 14px; text-align: left; cursor: pointer; }
.plan-row[aria-pressed="true"] { border-color: var(--accent); background: rgba(97, 212, 132, 0.1); }
.plan-row__name { display: flex; flex-direction: column; gap: 2px; font-weight: 600; }
.plan-row__tag { font-size: 12px; font-weight: 400; color: var(--accent); }
.plan-row__price { font-family: var(--mono); font-size: 13px; }
.inspector__blurb { margin-top: 4px; font-size: 13px; line-height: 1.55; color: var(--soft); }
.inspector .btn { margin-top: auto; }

/* Clients */
.clients { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px 40px; padding: 26px var(--gutter) 30px; border-top: 1px solid var(--line); background: var(--panel); }
.clients__list { flex: 1 1 600px; display: flex; flex-wrap: wrap; gap: 6px 30px; font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }

/* ---------- Plans (home + startups) ---------- */

.plan-layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.plan-props { flex: 1 1 280px; max-width: 360px; display: flex; flex-direction: column; gap: 18px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; font-size: 13px; }
.plan-props dl { display: flex; flex-direction: column; gap: 8px; }
.plan-props dl div { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; padding: 0 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; }
.plan-props dt { color: var(--muted); }
.plan-set { position: relative; flex: 999 1 560px; min-width: 0; border: 1.5px dashed transparent; border-radius: 6px; }
html[data-tools="on"] .plan-set { padding: 40px 28px 28px; border-color: var(--violet-line); }
.plan-set__label { position: absolute; top: -11px; left: 14px; display: flex; align-items: center; gap: 6px; padding: 2px 8px; background: var(--canvas); font-family: var(--mono); font-size: 12px; color: var(--violet); }
.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 24px; }
.plan-card {
	position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
	min-height: 380px; padding: 28px 24px; border: 0; border-radius: 6px;
	background: var(--paper); color: var(--ink); text-align: left; cursor: pointer;
	outline: 2px solid transparent; outline-offset: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	transition: outline-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.plan-card:hover { transform: translateY(-2px); }
.plan-card:focus-visible { outline-color: var(--accent); }
.plan-card[aria-pressed="true"] { outline-color: var(--accent); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.plan-card__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; min-height: 28px; }
.plan-card__variant { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.plan-card__name { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.plan-card__tag { padding: 4px 10px; border-radius: 999px; background: var(--ink); color: #FFFFFF; font-size: 12px; font-weight: 600; }
.plan-card__selected { display: none; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--accent); font-size: 12px; font-weight: 700; }
.plan-card[aria-pressed="true"] .plan-card__selected { display: inline-flex; }
.plan-card[aria-pressed="true"] .plan-card__tag { display: none; }
.plan-card__price { display: flex; align-items: baseline; gap: 4px; }
.plan-card__price strong { font-size: 68px; font-weight: 800; line-height: 0.9; letter-spacing: -0.045em; }
.plan-card__price span { font-size: 15px; color: var(--ink-2); }
.plan-card__blurb { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.plan-card__points { display: flex; flex-direction: column; gap: 10px; width: 100%; padding-top: 16px; border-top: 1px solid var(--rule); }
.plan-card__points li, .plan-card__fast { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.45; }
.plan-card__fast { margin-top: auto; font-weight: 600; color: var(--accent-ink); }
.check { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 3px; fill: none; stroke: var(--accent-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.check--accent { stroke: var(--accent); }
.plan-summary { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 20px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.plan-summary p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.plan-summary strong { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.plan-summary__price { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.plan-summary__fast { font-size: 14px; font-weight: 600; color: var(--accent); }
.included { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.included h3 { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle); }
.included ul { display: flex; flex-wrap: wrap; gap: 10px; }
.included li { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-size: 14px; }
.included .check { margin-top: 0; stroke: var(--accent); }

/* ---------- Service illustrations ---------- */

.art { position: relative; display: flex; height: 150px; padding: 16px 18px; background: var(--paper); color: var(--ink); overflow: hidden; }
.art--lg { height: 340px; padding: 32px 36px; box-shadow: var(--shadow); }
.art__bar { display: block; height: 8px; border-radius: 2px; background: var(--ink); }
.art__bar--grey { height: 6px; background: var(--fill); }
.art-report { flex-direction: column; gap: 8px; }
.art-report__chart { flex: 1 1 auto; display: flex; align-items: flex-end; gap: 10px; border-bottom: 1.5px solid var(--fill); }
.art-report__chart span { flex: 1 1 0; height: var(--h); background: var(--fill); }
.art-report__chart span.on { background: var(--accent); }
.art-type { flex-direction: column; justify-content: space-between; }
.art-type__specimen { display: flex; align-items: baseline; gap: 14px; }
.art-type__specimen b { font-size: 58px; font-weight: 800; line-height: 0.9; letter-spacing: -0.04em; }
.art-type__specimen span { font-family: var(--mono); font-size: 30px; line-height: 1; }
.art--lg .art-type__specimen b { font-size: 132px; }
.art--lg .art-type__specimen span { font-size: 64px; }
.art-type__swatches { display: flex; gap: 6px; }
.art-type__swatches span { width: 28px; height: 28px; border-radius: 50%; background: var(--c); }
.art--lg .art-type__swatches span { width: 56px; height: 56px; }
.art-devices { align-items: flex-end; justify-content: center; gap: 10px; }
.art-devices span { display: flex; flex-direction: column; gap: 6px; width: var(--w); height: var(--h); padding: 8px; border: 2px solid var(--ink); border-radius: 6px; }
.art-devices i { display: block; height: 5px; border-radius: 2px; background: var(--fill); }
.art-devices i:first-child { background: var(--ink); }
.art-devices i:last-child { height: 12px; margin-top: auto; background: var(--accent); }
.art--lg.art-devices span { border-width: 3px; padding: 14px; }
.art-app { padding: 16px; }
.art-app__window { display: flex; width: 100%; overflow: hidden; border: 2px solid var(--ink); border-radius: 8px; }
.art-app__side { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 34px; padding-top: 10px; background: var(--ink); }
.art-app__side span { width: 12px; height: 12px; border-radius: 3px; background: var(--ink-3); }
.art-app__side span:first-child { background: var(--accent); }
.art-app__main { flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; padding: 10px; }
.art-app__row { display: flex; align-items: center; gap: 6px; }
.art-app__row b { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--fill)); }
.art-app__row span { flex: 1 1 auto; height: 5px; border-radius: 2px; background: var(--fill); }
.art-app__row i { width: 22px; height: 10px; border-radius: 5px; background: var(--c2, var(--fill)); }
.art--lg .art-app__side { width: 64px; gap: 14px; padding-top: 18px; }
.art--lg .art-app__side span { width: 22px; height: 22px; }
.art--lg .art-app__main { gap: 16px; padding: 20px; }
.art--lg .art-app__row b { width: 14px; height: 14px; }
.art--lg .art-app__row span { height: 8px; }
.art--lg .art-app__row i { width: 44px; height: 18px; border-radius: 9px; }
.art-mail { flex-direction: column; gap: 10px; }
.art-mail__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.art-mail__tags span { padding: 3px 9px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: 11px; font-weight: 600; }
.art-mail__tags span.on { background: var(--accent); }
.art-mail__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 7px; padding: 10px; border: 1.5px solid var(--fill); border-radius: 6px; }
.art-mail__body .art__bar:last-child { width: 38%; height: 12px; margin-top: auto; }
.art--lg .art-mail__tags span { padding: 7px 16px; font-size: 16px; border-width: 2px; }
.art--lg .art-mail__body { gap: 14px; padding: 20px; }

.svc-card { display: flex; flex-direction: column; gap: 10px; }
.svc-card__label { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; color: var(--violet); }
.svc-card__box { flex-grow: 1; display: flex; flex-direction: column; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.svc-card__text { padding: 18px 18px 20px; }
.svc-card__text h3 { margin-bottom: 8px; font-size: 20px; font-weight: 600; }
.svc-card__text p { font-size: 14px; line-height: 1.55; color: var(--muted); }

/* ---------- Work (home) ---------- */

.work-grid { display: flex; flex-wrap: wrap; gap: 40px 24px; align-items: flex-start; }
.work-item { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.work-item--feature { flex: 1.7 1 560px; }
html[data-tools="on"] .work-item--down { margin-top: 72px; }
html[data-tools="on"] .work-item--down-sm { margin-top: 56px; }
.work-item__cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-family: var(--mono); font-size: 12px; color: var(--subtle); }
.work-item__cap strong { color: var(--text); font-weight: 500; }
.work-item__media { position: relative; }
.work-item__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.work-item--feature .work-item__media img { aspect-ratio: 16 / 10; }
.pin { position: absolute; z-index: 2; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.pin span { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 2px solid #FFFFFF; border-radius: 50% 50% 50% 0; background: var(--ink); color: #FFFFFF; font-size: 13px; font-weight: 700; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35); }
.pin[aria-expanded="true"] span { background: var(--accent); color: var(--ink); }
.bubble { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3; max-width: 440px; padding: 14px 16px; background: var(--panel); color: var(--text); border-radius: 10px; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45); font-size: 14px; line-height: 1.5; animation: fade 0.2s ease-out both; }
html:not([data-tools="on"]) .bubble { display: none !important; }
.bubble__who { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13px; }
.bubble__who span:last-child { color: var(--subtle); }
.quote-card { flex: 1 1 260px; align-self: center; padding: 26px 24px; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 12px; }
html[data-tools="on"] .quote-card { background: var(--sticky); color: var(--sticky-ink); border-color: transparent; border-radius: 4px; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4); transform: rotate(-2deg); }
.quote-card blockquote { font-size: 23px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.quote-card figcaption { margin-top: 16px; font-size: 14px; font-weight: 600; }
.quote-card figcaption span { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; }

/* ---------- Timeline ---------- */

.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 32px 0; }
.timeline li { display: flex; flex-direction: column; gap: 10px; padding-right: 18px; }
.timeline__mark { display: flex; align-items: center; }
.timeline__dot { flex: 0 0 auto; width: 12px; height: 12px; border: 2px solid var(--muted); border-radius: 50%; background: var(--canvas); }
.timeline__dot--live { width: 16px; height: 16px; border: 0; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-tint); }
.timeline__dot--future { border-color: var(--violet); }
.timeline__line { flex: 1 1 auto; height: 2px; background: var(--line); }
.timeline__line--dashed { height: 0; background: none; border-top: 2px dashed var(--line); }
.timeline__body { display: flex; flex-direction: column; gap: 8px; }
.timeline__when { font-family: var(--mono); font-size: 12px; color: var(--subtle); }
.timeline__when--live { color: var(--accent); }
.timeline__when--future { color: var(--violet); }
.timeline__title { font-size: 18px; font-weight: 700; }
.timeline__text { font-size: 14px; line-height: 1.55; color: var(--muted); }

/* ---------- Home contact ---------- */

.contact-split { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 64px; }
.contact-split__intro { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.contact-split__title { font-size: clamp(48px, 5.6vw, 88px); font-weight: 800; line-height: 0.95; letter-spacing: -0.035em; }
.contact-split__title em { font-style: normal; color: var(--accent); }
.contact-split .dialog { flex: 1 1 400px; max-width: 540px; min-width: 0; }

/* ---------- Inner pages ---------- */

.page-hero__grid { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px 56px; }
.page-hero__main { flex: 1 1 560px; min-width: 0; }
.page-hero .eyebrow, .page-hero .display, .page-hero .lede { animation: rise 0.55s ease-out both; }
.page-hero .display { animation-delay: 0.08s; }
.page-hero .lede { animation-delay: 0.2s; }
.price-box { flex: 0 1 260px; display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; border: 1.5px solid var(--ink); border-radius: 12px; }
.price-box__label { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.price-box__price { display: flex; align-items: baseline; gap: 4px; }
.price-box__price strong { font-size: 64px; font-weight: 800; line-height: 0.9; letter-spacing: -0.04em; }
.price-box__note { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.jump-list { flex: 0 1 320px; display: flex; flex-direction: column; border-top: 1.5px solid var(--ink); }
.jump-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; border-bottom: 1px solid #D5D8DC; font-size: 19px; font-weight: 700; text-decoration: none; }
.jump-list a span { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--ink-3); }

.stat-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.stat-card dt { font-family: var(--mono); font-size: 12px; color: var(--subtle); }
.stat-card dd:nth-of-type(1) { font-size: 28px; font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
.stat-card dd:nth-of-type(2) { font-size: 15px; line-height: 1.55; color: var(--muted); }
.split { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 64px; }
.split > :first-child { flex: 1 1 360px; }
.split > :last-child { flex: 1 1 560px; }

.everyyy { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 56px; padding: clamp(28px, 5vw, 72px); background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.everyyy__mark { font-size: clamp(64px, 10vw, 168px); font-weight: 800; line-height: 0.85; letter-spacing: -0.055em; }
.everyyy__mark span { color: var(--accent-ink); }
.everyyy__mark sup { font-size: 0.3em; vertical-align: top; }
.everyyy__text { flex: 1 1 380px; max-width: 520px; display: flex; flex-direction: column; gap: 16px; }
.everyyy__text h2 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
.everyyy__text p { font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.everyyy__text p.small { font-size: 14px; color: var(--ink-3); }

.svc-section { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 72px; }
.svc-section--flip { flex-wrap: wrap-reverse; }
.svc-section__text { flex: 1 1 460px; max-width: 620px; display: flex; flex-direction: column; gap: 18px; }
.svc-section .art { flex: 1 1 420px; }
.proof { font-size: 15px; line-height: 1.55; color: var(--muted); }
.proof a { font-weight: 700; }

.banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding: clamp(24px, 4vw, 48px); background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.banner p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.banner strong { font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -0.03em; }
.banner p span { font-size: 18px; color: var(--ink-2); }

.feature { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 56px; padding: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.feature img { flex: 1.6 1 520px; min-width: 0; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 6px; }
.feature__text { flex: 1 1 340px; display: flex; flex-direction: column; gap: 14px; }
.feature__title { font-size: clamp(40px, 4.4vw, 64px); font-weight: 800; line-height: 0.95; letter-spacing: -0.04em; }
.filters { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--ink); border: 1px solid var(--line); border-radius: 12px; }
.filters button { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 9px; background: none; color: var(--soft); font-weight: 600; cursor: pointer; }
.filters button span { font-family: var(--mono); font-size: 12px; opacity: 0.75; }
.filters button[aria-pressed="true"] { background: var(--accent); color: var(--ink); }
.project { display: flex; flex-direction: column; gap: 12px; animation: fade 0.3s ease-out both; }
.project img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4); }
.project h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.025em; }
.project__meta { font-family: var(--mono); font-size: 12px; color: var(--subtle); }
.project p:not(.project__meta) { font-size: 15px; line-height: 1.55; color: var(--muted); }
.project__placeholder { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4 / 3; border: 1.5px dashed var(--line-2); border-radius: 4px; font-family: var(--mono); font-size: 13px; color: var(--subtle); }

.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 16px; color: var(--soft); font-size: 15px; font-weight: 600; text-decoration: none; }
.case-title { font-size: clamp(72px, 16cqi, 200px); line-height: 0.82; letter-spacing: -0.055em; }
.facts { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); border-top: 1.5px solid var(--ink); animation: rise 0.5s ease-out 0.3s both; }
.facts div { display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 4px 0; }
.facts dt { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.facts dd { font-size: 19px; font-weight: 700; line-height: 1.3; }
.case-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); }
.case-figure figcaption { margin-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--subtle); }
.chapters li { display: flex; flex-wrap: wrap; gap: 16px 64px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.chapters li:last-child { border-bottom: 0; }
.chapters__head { flex: 1 1 320px; display: flex; flex-direction: column; gap: 10px; }
.chapters__head span { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.chapters__head h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
.chapters p { flex: 1.4 1 480px; font-size: 19px; line-height: 1.6; color: var(--soft); }
.pullquote { max-width: 1100px; }
.pullquote p { font-size: clamp(32px, 4.6vw, 68px); font-weight: 800; line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; }
.pullquote p span { color: var(--accent); }
.pullquote footer { margin-top: 20px; font-family: var(--mono); font-size: 13px; color: var(--subtle); }
.mini-project { display: flex; flex-direction: column; gap: 12px; color: var(--text); text-decoration: none; }
.mini-project:hover { color: var(--text); }
.mini-project img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4); }
.mini-project strong { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }

.statement { max-width: 1180px; font-size: clamp(28px, 3.9vw, 56px); font-weight: 700; line-height: 1.12; letter-spacing: -0.03em; text-wrap: pretty; }
.statement span { color: var(--subtle); }

.contact-page { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 72px; }
.contact-page__intro { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; padding-top: 24px; }
.contact-page__title { font-size: clamp(46px, 6.4vw, 104px); font-weight: 800; line-height: 0.92; letter-spacing: -0.04em; text-wrap: balance; }
.contact-page__title em { font-style: normal; color: var(--accent); }
.contact-page .dialog { flex: 1 1 480px; max-width: 620px; min-width: 0; }
.steps { margin-top: 8px; border-top: 1px solid var(--line); }
.steps li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.5; color: var(--soft); }
.steps li span { flex: 0 0 auto; padding-top: 3px; font-family: var(--mono); font-size: 12px; color: var(--accent); }

.prose { max-width: 760px; font-size: 17px; line-height: 1.65; color: var(--soft); overflow-wrap: anywhere; }
.prose h2 { margin: 40px 0 12px; font-size: 24px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; color: var(--text); }
.prose p, .prose ul { margin: 0 0 14px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }

.not-found { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }

/* With tools on, the homepage's left panel lists the pages, so the header menu steps aside.
   Only at widths where that panel is showing; below it the header menu is the only navigation. */
@media (min-width: 1081px) {
	html[data-tools="on"] .page-home .site-nav { visibility: hidden; }
	/* The tools workspace runs edge to edge, so its header does too. */
	html[data-tools="on"] .page-home .site-header { padding-inline: 16px 12px; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
	.panel--layers { flex: 1 1 100%; padding: 8px var(--gutter); border-right: 0; border-bottom: 1px solid var(--line); animation: fade 0.3s ease-out both; }
	.panel--layers .panel__heading, .panel--layers .panel__pages, .panel--layers .panel__sections, .panel--layers .panel__hint { display: none; }
	.panel--layers .panel__layers { flex-direction: row; gap: 8px; margin: 0; overflow-x: auto; }
	.panel--layers .panel__row { flex: 0 0 auto; width: auto; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-2); font-weight: 600; }
	.panel--layers .panel__row svg { display: none; }
	.panel--layers .panel__row[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--ink); }
	.stage { order: 1; flex-basis: 100%; }
	html[data-tools="on"] .stage { padding: 0 var(--gutter) 48px calc(var(--gutter) + 20px); }
	.ruler-top { margin: 0 calc(-1 * var(--gutter)) 28px calc(-1 * var(--gutter)); padding-left: var(--gutter); background-position: var(--gutter) 14px; }
	.panel--inspector { order: 2; flex: 1 1 100%; border-left: 0; border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.45); animation: rise 0.35s ease-out both; }
	.inspector__detail { display: none; }
	.inspector__plans { padding-top: 0; border-top: 0; }
}

@media (max-width: 960px) {
	.site-nav { display: none; }
	.menu-button { display: flex; }
	.site-header[data-menu-open] .site-nav {
		position: absolute; top: 100%; left: 0; right: 0;
		display: flex; flex-direction: column; align-items: stretch; gap: 2px;
		padding: 8px; background: var(--panel); border-bottom: 1px solid var(--line);
		box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
	}
	.site-header[data-menu-open] .site-nav a, .site-header[data-menu-open] .site-nav button { min-height: 48px; font-size: 16px; }
	.site-nav__drawer-only { display: inline-flex !important; }
	.site-crumb { display: none; }
}

@media (max-width: 720px) {
	.timeline { grid-template-columns: 1fr; gap: 0; }
	.timeline li { flex-direction: row; gap: 14px; padding: 0; }
	.timeline__mark { flex: 0 0 16px; flex-direction: column; align-items: center; }
	.timeline__dot { margin-top: 4px; }
	.timeline__line { width: 2px; height: auto; min-height: 24px; }
	.timeline__line--dashed { width: 0; border-top: 0; border-left: 2px dashed var(--line); }
	.timeline__body { display: flex; flex-direction: column; gap: 4px; padding-bottom: 24px; }
	.clients__list { font-size: 20px; gap: 4px 18px; }
	.chapters p { font-size: 17px; }
	.plan-card { min-height: 0; }
	.plan-card__price strong { font-size: 56px; }
	.art--lg { height: 220px; padding: 22px 24px; }
	.art--lg .art-type__specimen b { font-size: 84px; }
	.art--lg .art-type__specimen span { font-size: 42px; }
	.art--lg .art-type__swatches span { width: 36px; height: 36px; }
	.facts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
	.facts dd { font-size: 16px; }
}

@media (max-width: 560px) {
	.tools-switch__long { display: none; }
	.tools-switch__short { display: inline; }
	.tools-switch { gap: 8px; padding-left: 12px; }
	.site-header__actions { gap: 8px; }
	.site-header .guest-button { display: none; }
	.btn--block-mobile { display: flex; width: 100%; }
	.hero__actions .btn--dark { flex: 1 1 100%; }
	.hero__actions .btn--text { flex: 1 1 100%; justify-content: center; }
	.welcome { top: auto; right: 12px; bottom: 12px; left: 12px; width: auto; }
	.cta-band__actions, .cta-band__actions .btn { width: 100%; }
	.section-head { margin-bottom: 28px; }
	/* Keep the studio cursor's label on screen. */
	.selbox .cursor, .cursor--studio { right: -4px; }
}

/* ---------- Motion ---------- */

@keyframes nudge { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(14px, 9px); } }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 40% { transform: translate(-22px, -12px); } 70% { transform: translate(8px, -6px); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes arrive { from { opacity: 0; transform: translate(-160px, 90px); } to { opacity: 1; transform: translate(0, 0); } }
@keyframes slideL { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@keyframes slideR { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes drawRect { from { width: 0; height: 0; opacity: 1; } to { width: 100%; height: 100%; opacity: 1; } }
@keyframes gone { from { opacity: 1; } to { opacity: 0; } }
@keyframes frameFill { from { background-color: rgba(255, 255, 255, 0); box-shadow: 0 0 0 rgba(0, 0, 0, 0); } to { background-color: #FFFFFF; box-shadow: var(--shadow); } }
@keyframes designPath { 0% { left: -4%; top: -10%; opacity: 0; } 6% { left: 0%; top: 0%; opacity: 1; } 30% { left: 100%; top: 100%; opacity: 1; } 46% { left: 22%; top: 20%; opacity: 1; } 58% { left: 30%; top: 30%; opacity: 1; } 74% { left: 38%; top: 50%; opacity: 1; } 100% { left: 52%; top: 118%; opacity: 0; } }
@keyframes devPath { 0% { left: 112%; top: 96%; opacity: 0; } 12% { left: 96%; top: 90%; opacity: 1; } 45% { left: 12%; top: 80%; opacity: 1; } 62% { left: 14%; top: 79%; opacity: 1; } 100% { left: -12%; top: 108%; opacity: 0; } }
@keyframes chip { 0% { opacity: 0; transform: translateY(4px); } 20% { opacity: 1; transform: none; } 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }

@media (max-width: 720px) {
	@keyframes designPath { 0% { left: -6%; top: -6%; opacity: 0; } 6% { left: 0%; top: 0%; opacity: 1; } 30% { left: 88%; top: 100%; opacity: 1; } 46% { left: 24%; top: 16%; opacity: 1; } 58% { left: 40%; top: 20%; opacity: 1; } 74% { left: 44%; top: 38%; opacity: 1; } 100% { left: 60%; top: 112%; opacity: 0; } }
	@keyframes devPath { 0% { left: 100%; top: 80%; opacity: 0; } 12% { left: 78%; top: 72%; opacity: 1; } 45% { left: 22%; top: 62%; opacity: 1; } 62% { left: 26%; top: 61%; opacity: 1; } 100% { left: -20%; top: 96%; opacity: 0; } }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.intro-rect, .intro-cursor { display: none; }
}
