/* ==========================================================================
   BLACK.SWAN — design system
   Condensed display type (echoes the logo), mono technical labels,
   hairline editorial grid, one signal color.
   ========================================================================== */

:root {
	--ink: #0a0a0a;
	--ink-2: #111111;
	--bone: #ecebe6;
	--bone-dim: #a3a29c;
	--bone-faint: #5f5e5a;
	--line: rgba(236, 235, 230, 0.10);
	--line-2: rgba(236, 235, 230, 0.22);
	--signal: #ff5a1f;
	/* Google Fonts, identical on every device:
	   Archivo (condensed, heavy) ≈ the brandbook's Helvetica Black Condensed;
	   Inter Tight for text — neutral and elegant, in Helvetica's spirit. */
	--display: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--label: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--text: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
	--mono: var(--label);
	--pad: clamp(16px, 3.2vw, 44px);
	--ease: cubic-bezier(.2, .7, .1, 1);
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
	margin: 0;
	background: var(--ink);
	color: var(--bone);
	font-family: var(--text);
	font-variation-settings: "wdth" 100;
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--signal); color: var(--ink); }

/* Language switching: both languages live in the markup; CSS shows one. */
html[data-lang="es"] body [lang="en"],
html[data-lang="en"] body [lang="es"] { display: none !important; }

/* Background: solid black, no texture. */

/* ---------- Primitives ---------- */
.mono { font-family: var(--label); font-weight: 700; font-variation-settings: "wdth" 75; font-size: 12.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--bone-dim); }
.mono b { color: var(--bone); font-weight: 500; }
.mono .sig { color: var(--signal); }
.px { padding-inline: var(--pad); }
.wrap { width: 100%; padding-inline: var(--pad); }
.narrow { max-width: 860px; margin-inline: auto; }
.hair { height: 1px; background: var(--line); }
.cond { font-variation-settings: "wdth" 62; }
.caps { text-transform: uppercase; }
.signal { color: var(--signal); }

.mega {
	font-family: var(--display); font-weight: 800; text-transform: uppercase;
	font-variation-settings: "wdth" 62; line-height: .84; letter-spacing: -.01em;
	font-size: clamp(64px, 13.5vw, 230px); margin: 0;
}
.big {
	font-weight: 750; text-transform: uppercase; font-variation-settings: "wdth" 70;
	font-size: clamp(44px, 7.4vw, 124px); line-height: .9; letter-spacing: -.005em; margin: 0;
}
.lead { font-size: clamp(18px, 1.7vw, 23px); line-height: 1.45; color: var(--bone-dim); font-weight: 400; max-width: 34em; }

/* Masked line reveal (filled by JS: .line > span) */
.line { display: block; overflow: hidden; padding-bottom: .04em; }
/* Room above capitals so accents (Ó, É) aren't clipped by the reveal mask. */
.mega .line, .big .line { padding-top: .14em; margin-top: -.14em; }
.line > span { display: block; will-change: transform; }

/* ---------- Cursor ---------- */
.cursor, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 100; pointer-events: none; border-radius: 50%; mix-blend-mode: difference; }
.cursor { width: 6px; height: 6px; background: #fff; margin: -3px 0 0 -3px; }
.cursor-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid #fff; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s; }
.cursor-ring.hover { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: #fff; }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-ring { display: none; } }
@media (hover: hover) and (pointer: fine) { html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; } }

/* ---------- Nav ---------- */
.nav {
	position: fixed; inset: 0 0 auto 0; z-index: 60; padding: 18px var(--pad);
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: var(--bone); transition: color .35s var(--ease);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-variation-settings: "wdth" 70; letter-spacing: .02em; font-size: 17px; text-transform: uppercase; }
.brand img { width: 22px; }
.nav-center { justify-self: center; }
.nav-links { justify-self: end; display: flex; align-items: center; gap: 22px; }
.nav-links a, .lang-toggle { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.lang-toggle { background: none; border: 1px solid var(--bone); border-radius: 999px; padding: 6px 11px; cursor: pointer; }
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 760px) { .nav { grid-template-columns: 1fr auto; } .nav-center, .nav-links .hide-sm { display: none; } }

/* ---------- Buttons ---------- */
.btn {
	position: relative; display: inline-flex; align-items: center; gap: 12px; overflow: hidden;
	padding: 17px 26px; border-radius: 999px; border: 1px solid var(--line-2);
	font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
	transition: color .5s var(--ease), border-color .5s;
}
.btn::before { content: ""; position: absolute; inset: 0; background: var(--bone); transform: translateY(101%); border-radius: inherit; transition: transform .55s var(--ease); z-index: -1; }
.btn:hover { color: var(--ink); border-color: var(--bone); }
.btn:hover::before { transform: none; }
.btn { isolation: isolate; }
.btn-solid { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn-solid::before { background: var(--signal); }
.btn-solid:hover { color: var(--ink); border-color: var(--signal); }
.btn svg { width: 16px; height: 16px; }

/* ---------- Preloader ---------- */
.loader { position: fixed; inset: 0; z-index: 200; background: var(--ink); display: grid; place-items: center; }
.loader-inner { display: grid; gap: 18px; text-align: left; font-family: var(--mono); width: min(680px, 88vw); }
.loader .eq { font-size: clamp(22px, 4vw, 44px); color: var(--bone); letter-spacing: -.01em; }
.loader .row { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: baseline; font-size: clamp(16px, 2.6vw, 30px); opacity: 0; }
.loader .row .who { font-size: 11px; color: var(--bone-faint); letter-spacing: .1em; text-transform: uppercase; }
.loader .wrong { color: var(--bone-faint); position: relative; width: fit-content; }
.loader .wrong::after { content: ""; position: absolute; left: -4px; right: -4px; top: 52%; height: 2px; background: var(--signal); transform: scaleX(0); transform-origin: left; }
.loader.strike .wrong::after { transform: scaleX(1); transition: transform .4s var(--ease); }
.loader .right { color: var(--bone); font-weight: 500; }
.loader .bar { height: 1px; background: var(--line); margin-top: 26px; overflow: hidden; }
.loader .bar i { display: block; height: 100%; background: var(--bone); width: 0; }
.loader .skip { position: absolute; bottom: 24px; right: var(--pad); }
html.loaded .loader { display: none; }
/* Safety net: never leave visitors stuck behind the loader if scripts fail. */
.loader { animation: loader-safety 0s linear 7s forwards; }
@keyframes loader-safety { to { visibility: hidden; opacity: 0; } }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; }
#swan { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-meta { position: absolute; top: 88px; left: var(--pad); right: var(--pad); display: flex; justify-content: space-between; gap: 20px; pointer-events: none; }
.hero-meta > div { display: grid; gap: 4px; }
.hero-title { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(26px, 5vh, 56px); pointer-events: none; }
.hero-title .mega { font-size: clamp(56px, min(12.5vw, 16.5vh), 210px); }
.hero-foot { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-top: 26px; flex-wrap: wrap; }
.hero-foot .lead { margin: 0; max-width: 26em; pointer-events: auto; }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; }
.scroll-cue i { width: 1px; height: 44px; background: linear-gradient(var(--bone), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0%{transform:scaleY(0)} 50%{transform:scaleY(1)} 100%{transform:scaleY(1);opacity:0} }
@media (max-width: 760px) { .hero-meta .hide-sm { display: none; } .hero-title .mega { font-size: clamp(52px, 15vw, 90px); } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 48px; will-change: transform; }
.marquee-track span { font-weight: 800; text-transform: uppercase; font-variation-settings: "wdth" 62; font-size: clamp(38px, 6vw, 88px); line-height: 1; -webkit-text-stroke: 1px var(--bone-dim); color: transparent; }
.marquee-track span.fill { color: var(--bone); -webkit-text-stroke: 0; }
.marquee-track em { font-style: normal; color: var(--signal); font-size: clamp(30px, 4vw, 60px); align-self: center; }

/* ---------- Sections ---------- */
section { position: relative; padding: clamp(96px, 14vw, 200px) 0; }
.sec-label { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 18px; margin-bottom: clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line); }

/* Manifesto — words light up while scrolling */
.manifesto p { margin: 0; font-weight: 600; font-variation-settings: "wdth" 80; text-transform: uppercase; font-size: clamp(34px, 5.4vw, 88px); line-height: .98; letter-spacing: -.01em; }
.manifesto .w { opacity: .14; transition: opacity .2s linear; }
.manifesto .w.on { opacity: 1; }
.manifesto .w.hl { color: var(--signal); }

/* ---------- Work: horizontal pinned ---------- */
.work { padding: 0; }
.work-pin { height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.work-head { padding: 0 var(--pad) 26px; display: flex; justify-content: space-between; align-items: end; }
.work-track { display: flex; gap: clamp(16px, 2vw, 28px); padding-inline: var(--pad); will-change: transform; }
.panel {
	flex: 0 0 auto; height: min(68svh, 640px); border-radius: 26px; border: 1px solid var(--line);
	background: var(--ink-2); position: relative; overflow: hidden;
}
.panel.intro { width: min(560px, 82vw); padding: 36px; display: flex; flex-direction: column; justify-content: space-between; background: var(--bone); color: var(--ink); }
.panel.intro .mono { color: #55544f; }
.panel.intro h3 { margin: 0; font-weight: 800; text-transform: uppercase; font-variation-settings: "wdth" 62; font-size: clamp(64px, 8vw, 128px); line-height: .85; }
.panel.intro .icon { width: 84px; border-radius: 20px; }
.panel.shot { width: auto; aspect-ratio: 9 / 19.5; padding: 12px; background: linear-gradient(150deg, #262626, #0c0c0c); }
.panel.shot img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.panel.wide { aspect-ratio: 16 / 10.3; width: auto; }
.panel.wide img { width: 100%; height: 100%; object-fit: cover; }
.panel.stat { width: min(420px, 78vw); padding: 36px; display: flex; flex-direction: column; justify-content: space-between; }
.panel.stat .n { font-weight: 800; font-variation-settings: "wdth" 62; font-size: clamp(120px, 15vw, 240px); line-height: .8; color: var(--signal); }
.panel.next { width: min(440px, 80vw); padding: 36px; display: grid; place-items: center; text-align: center; border-style: dashed; }
.panel.next img { width: 90px; opacity: .5; margin: 0 auto 20px; }
.panel .cap { position: absolute; left: 18px; bottom: 16px; z-index: 2; }
@media (max-width: 900px) {
	.work-pin { height: auto; padding: 96px 0; }
	.work-track { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none; }
	.work-track::-webkit-scrollbar { display: none; }
	.panel { scroll-snap-align: start; height: 62svh; }
}

/* ---------- Live calculator ---------- */
.lab { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 900px) { .lab { grid-template-columns: 1fr; } }
.calc { border: 1px solid var(--line); border-radius: 28px; padding: 18px; background: var(--ink-2); max-width: 440px; width: 100%; justify-self: center; box-shadow: 0 60px 140px rgba(0,0,0,.6); }
.calc-screen { padding: 22px 14px 18px; text-align: right; display: grid; gap: 6px; min-height: 168px; align-content: end; }
.calc-expr { font-family: var(--mono); color: var(--bone-dim); font-size: 15px; min-height: 22px; word-break: break-all; }
.calc-out { font-weight: 300; font-size: clamp(44px, 6vw, 64px); line-height: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calc-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.calc-keys button { aspect-ratio: 1; border-radius: 50%; border: 0; background: #262626; font-size: 24px; font-weight: 500; cursor: pointer; transition: background .2s, transform .1s; }
.calc-keys button:active { transform: scale(.94); }
.calc-keys button.fn { background: #4a4a48; }
.calc-keys button.op { background: var(--signal); color: var(--ink); }
.calc-keys button.zero { grid-column: span 2; aspect-ratio: auto; border-radius: 999px; text-align: left; padding-left: 30px; }
.compare { display: grid; gap: 0; margin-top: 34px; border-top: 1px solid var(--line); }
.compare > div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.compare .val { font-family: var(--mono); font-size: clamp(15px, 1.6vw, 19px); word-break: break-all; }
.compare .bad { color: var(--bone-faint); }
.compare .good { color: var(--bone); }
@media (max-width: 600px) { .compare > div { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Numbers ---------- */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.numbers > div { padding: 30px 0 0; border-right: 1px solid var(--line); padding-right: 20px; }
.numbers > div + div { padding-left: 20px; }
.numbers > div:last-child { border-right: 0; }
.numbers .n { font-weight: 800; font-variation-settings: "wdth" 62; font-size: clamp(72px, 10vw, 168px); line-height: .85; }
@media (max-width: 760px) { .numbers { grid-template-columns: 1fr 1fr; } .numbers > div:nth-child(2) { border-right: 0; } .numbers > div:nth-child(3) { padding-left: 0; } }

/* ---------- Principles ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.principles > div { padding: 34px 28px 0 0; border-right: 1px solid var(--line); }
.principles > div + div { padding-left: 28px; }
.principles > div:last-child { border-right: 0; }
.principles h3 { margin: 22px 0 12px; font-weight: 800; text-transform: uppercase; font-variation-settings: "wdth" 62; font-size: clamp(40px, 4.6vw, 72px); line-height: .9; }
.principles p { margin: 0; color: var(--bone-dim); }
@media (max-width: 900px) { .principles { grid-template-columns: 1fr; } .principles > div { border-right: 0; border-bottom: 1px solid var(--line); padding: 30px 0; } .principles > div + div { padding-left: 0; } }

/* ---------- Footer ---------- */
.footer { padding: clamp(80px, 12vw, 160px) 0 28px; border-top: 1px solid var(--line); overflow: hidden; }
.footer-cta { display: grid; gap: 28px; margin-bottom: clamp(60px, 9vw, 120px); }
.mail { font-weight: 800; text-transform: uppercase; font-variation-settings: "wdth" 62; font-size: clamp(40px, 8.4vw, 150px); line-height: .9; display: inline-block; position: relative; width: fit-content; }
.mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: max(2px, .04em); background: var(--signal); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.mail:hover::after { transform: scaleX(1); transform-origin: left; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; padding-bottom: 40px; }
.foot-grid ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.foot-grid a { color: var(--bone-dim); }
.foot-grid a:hover { color: var(--bone); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.wordmark { width: 100%; opacity: .96; margin-top: 10px; }
.legal-line { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 22px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Inner pages (Calculatorª, Privacy, Terms) — same system
   ========================================================================== */
.page-hero { padding: 112px 0 clamp(60px, 9vw, 120px); border-bottom: 1px solid var(--line); }
.page-hero .mega { font-size: clamp(60px, 11vw, 190px); }
.eyebrow { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--bone-dim); }
.title { font-weight: 800; text-transform: uppercase; font-variation-settings: "wdth" 62; font-size: clamp(48px, 7vw, 112px); line-height: .88; margin: 0; }
.title em, .display em { font-style: normal; color: var(--signal); }
.display { font-weight: 800; text-transform: uppercase; font-variation-settings: "wdth" 62; font-size: clamp(56px, 9vw, 150px); line-height: .86; margin: 0; }
.muted { color: var(--bone-dim); }
.section-head { display: grid; gap: 18px; margin-bottom: 56px; }

.app-hero { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: start; padding-top: 4vh; }
.app-hero .mega { font-size: clamp(52px, min(7vw, 10.5vh), 120px); }
.app-hero .phone { max-width: min(290px, 34vh) !important; }
.app-hero .icon { width: 104px; border-radius: 24px; box-shadow: 0 30px 80px rgba(255,90,31,.25); }
.app-hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 900px) { .app-hero { grid-template-columns: 1fr; } }
.phone { border-radius: 46px; padding: 10px; background: linear-gradient(150deg, #262626, #0c0c0c); box-shadow: 0 50px 120px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.08); }
.phone img { border-radius: 38px; width: 100%; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.feature-grid > div { padding: 30px 26px 36px 0; border-bottom: 1px solid var(--line); }
.feature-grid > div:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.feature-grid > div:not(:nth-child(3n+1)) { padding-left: 26px; }
.feature-grid h3 { font-weight: 800; text-transform: uppercase; font-variation-settings: "wdth" 66; font-size: clamp(28px, 2.8vw, 40px); line-height: .95; margin: 18px 0 10px; }
.feature-grid p { margin: 0; color: var(--bone-dim); }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; } .feature-grid > div { border-right: 0 !important; padding-left: 0 !important; } }
.shots { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; margin-top: 80px; align-items: center; }
.shots img { border-radius: 16px; border: 1px solid var(--line-2); }
@media (max-width: 900px) { .shots { grid-template-columns: 1fr; } }

details.faq { border-bottom: 1px solid var(--line); padding: 22px 0; }
details.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 18px; font-weight: 700; font-size: clamp(18px, 1.8vw, 22px); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-family: var(--mono); color: var(--signal); font-size: 22px; line-height: 1; transition: transform .3s var(--ease); }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { margin: 14px 0 0; color: var(--bone-dim); max-width: 46em; }

/* Legal documents */
.doc { padding: 150px 0 110px; }
.doc .narrow { max-width: 820px; }
.doc h1 { font-weight: 800; text-transform: uppercase; font-variation-settings: "wdth" 62; font-size: clamp(56px, 9vw, 132px); line-height: .86; margin: 18px 0 18px; }
.doc .updated { font-family: var(--mono); font-size: 12px; color: var(--bone-dim); letter-spacing: .04em; }
.doc h2 { font-weight: 800; text-transform: uppercase; font-variation-settings: "wdth" 70; font-size: clamp(26px, 2.6vw, 34px); margin: 64px 0 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.doc h3 { font-size: 18px; font-weight: 700; margin: 28px 0 8px; }
.doc p, .doc li { color: #cdccc6; }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc a { color: var(--bone); text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 3px; }
.doc .summary { border: 1px solid var(--line-2); border-radius: 22px; padding: 26px 28px; margin: 40px 0 8px; background: rgba(236,235,230,.03); }
.doc .summary p { margin: 0 0 8px; }
.doc .summary ul { margin: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.toc a { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--bone-dim); text-decoration: none; }
.toc a:hover { color: var(--ink); background: var(--bone); border-color: var(--bone); }

.fineprint { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--bone-faint); }
.fineprint a:hover { color: var(--bone); }
footer.simple { border-top: 1px solid var(--line); padding: 28px 0; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.reveal { opacity: 1; transform: none; }
	.manifesto .w { opacity: 1; }
}

/* Long numbers inside display type wrap instead of overflowing on phones */
.big .long { font-size: .62em; word-break: break-all; }
.doc .wrap { max-width: 860px; margin-inline: auto; }

/* ==========================================================================
   Corporate home (v2)
   ========================================================================== */
.nav { grid-template-columns: 1fr auto 1fr; }
.nav-center.nav-links { justify-self: center; gap: 30px; }
@media (max-width: 900px) { .nav-center { display: none !important; } .nav { grid-template-columns: 1fr auto; } }

.hero-kicker { margin: 0 0 22px; color: var(--bone-dim); }
.hero-title .mega { font-size: clamp(56px, min(11vw, 14.5vh), 196px); }
.hero-foot { align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; pointer-events: auto; }

/* Bilingual marquees: the visible language span holds two copies for a seamless loop */
.marquee-track .mq { display: inline-flex; gap: 48px; align-items: center; padding-right: 48px; }
.marquee.stack { padding: 26px 0; }
.marquee.stack .mq { gap: 26px; padding-right: 26px; }
.marquee.stack span { font-family: var(--mono); font-weight: 400; font-size: clamp(16px, 1.6vw, 22px); text-transform: none; -webkit-text-stroke: 0; color: var(--bone-dim); letter-spacing: 0; font-variation-settings: normal; }
.marquee.stack i { font-style: normal; color: var(--signal); font-family: var(--mono); }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.service { position: relative; padding: 34px 30px 40px 0; border-bottom: 1px solid var(--line); transition: background .5s var(--ease); }
.service:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.service:not(:nth-child(3n+1)) { padding-left: 30px; }
.service h3 { margin: 26px 0 12px; font-weight: 800; text-transform: uppercase; font-variation-settings: "wdth" 62; font-size: clamp(36px, 3.6vw, 58px); line-height: .9; }
.service p { margin: 0; color: var(--bone-dim); max-width: 30em; }
.service::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.service:hover::after { transform: scaleX(1); }
.tags { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-family: var(--mono); font-size: 11px; letter-spacing: .03em; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--bone-dim); }
@media (max-width: 1000px) { .services { grid-template-columns: 1fr 1fr; } .service { border-right: 0 !important; padding-left: 0 !important; } .service:nth-child(odd) { border-right: 1px solid var(--line) !important; padding-right: 26px; } .service:nth-child(even) { padding-left: 26px !important; } }
@media (max-width: 640px) { .services { grid-template-columns: 1fr; } .service { border-right: 0 !important; padding: 30px 0 !important; } }

/* Process panels */
.work-head { align-items: end; gap: 30px; }
.work-head .big { font-size: clamp(40px, 5.4vw, 92px); }
.panel.step { width: min(440px, 82vw); padding: 34px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(170deg, #151515, #0d0d0d); }
.step-top { display: flex; justify-content: space-between; align-items: start; }
.step-n { font-weight: 800; font-variation-settings: "wdth" 62; font-size: 92px; line-height: .8; -webkit-text-stroke: 1px var(--bone-dim); color: transparent; }
.step-art { width: 100%; height: 120px; margin: 10px 0; }
.step-art path { fill: none; stroke: var(--bone); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 9 7; animation: march 2.6s linear infinite; }
.panel.step:hover .step-art path { stroke: var(--signal); }
@keyframes march { to { stroke-dashoffset: -64; } }
.panel.step h3 { margin: 0 0 12px; font-weight: 800; text-transform: uppercase; font-variation-settings: "wdth" 62; font-size: clamp(48px, 4.6vw, 72px); line-height: .88; }
.panel.step p { margin: 0; color: var(--bone-dim); }
.deliv { list-style: none; padding: 18px 0 0; margin: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.deliv li { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; color: var(--bone); display: flex; gap: 10px; }
.deliv li::before { content: "→"; color: var(--signal); }
@media (max-width: 900px) { .panel.step { height: auto; min-height: 520px; } }

/* Standards: four columns */
.principles.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .principles.four { grid-template-columns: 1fr 1fr; } .principles.four > div:nth-child(2) { border-right: 0; } .principles.four > div:nth-child(3) { padding-left: 0; } }
@media (max-width: 640px) { .principles.four { grid-template-columns: 1fr; } }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-copy .lead { max-width: 32em; }
.facts { display: grid; grid-template-columns: 1fr 1fr; margin-top: 36px; border-top: 1px solid var(--line); }
.facts > div { padding: 22px 0; display: grid; gap: 8px; }
.facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts .n { font-weight: 800; font-variation-settings: "wdth" 62; font-size: clamp(52px, 5vw, 84px); line-height: .85; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.work-pin { padding-top: 84px; }
@media (max-width: 900px) { .work-pin { padding-top: 96px; } }
.principles.four h3 { font-size: clamp(32px, 3.1vw, 52px); min-height: 2em; display: flex; align-items: flex-end; }

@media (max-width: 760px) {
	.hide-sm { display: none !important; }
	.work-head { flex-direction: column; align-items: start; }
	.hero-title .mega { font-size: clamp(48px, 14vw, 84px); }
}
@media (max-width: 760px) { .hero-kicker { display: none; } }

/* Only over the white footer wordmark do we need the "difference" look. */
.nav.nav-invert { mix-blend-mode: difference; }
.nav .lang-toggle { border-color: currentColor; }
/* Keep moving pieces on their own layers and off-screen work cheap. */
.marquee { contain: layout paint; }
.cursor, .cursor-ring { will-change: transform; }
#swan { will-change: transform; }

/* ---------- Brandbook typography mapping ---------- */
.mega, .big, .title, .display, .service h3, .panel.step h3, .principles h3, .feature-grid h3,
.facts .n, .step-n, .mail, .marquee:not(.stack) .marquee-track span, .doc h1, .doc h2,
.numbers .n, .panel.intro h3, .panel.stat .n, .page-hero .mega { font-family: var(--display); }
.manifesto p { font-family: var(--label); font-weight: 700; }
.btn, .nav-links a, .lang-toggle, .eyebrow, .tags li, .toc a, .fineprint, .doc .updated,
.marquee.stack span, .marquee.stack i { font-family: var(--label); font-weight: 700; font-variation-settings: "wdth" 75; letter-spacing: .08em; }
.btn, .nav-links a, .lang-toggle { font-size: 12.5px; }
.tags li { font-size: 11.5px; text-transform: uppercase; }
.marquee.stack span { font-size: clamp(17px, 1.8vw, 24px); text-transform: uppercase; color: var(--bone-dim); }
.deliv li { font-family: var(--text); font-size: 14.5px; letter-spacing: 0; }
.doc .updated { font-size: 13px; }

/* ---------- Official logo lockup (brandbook version 2: isotype + logotype) ---------- */
.brand { gap: 10px; }
.brand .iso { height: 40px; width: auto; }
.brand .logo { height: 40px; width: auto; }   /* ≥ 1.5 cm logotype width per brandbook */

/* ---------- Brandbook band: thick white rules framing a black band ---------- */
.marquee:not(.stack) { border: 0; padding: 30px 0; box-shadow: inset 0 7px 0 var(--bone), inset 0 -7px 0 var(--bone); }

/* Swan at rest: the real logo image, pixel-sharp. The canvas only draws while animating. */
.swan-still { position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0; user-select: none; transition: none; }
.swan-still.on { opacity: 1; transition: opacity .4s ease; }

/* Manifesto: big definition + editorial body */
.manifesto .m-lead i { font-style: normal; }
.manifesto p.m-body {
	font-family: var(--text); font-weight: 500; text-transform: none; font-variation-settings: normal;
	font-size: clamp(19px, 1.85vw, 30px); line-height: 1.42; letter-spacing: -.005em;
	max-width: 36em; margin: clamp(48px, 7vw, 112px) 0 0 auto;
}
@media (max-width: 900px) { .manifesto p.m-body { margin-left: 0; } }

/* ---------- Contact form ---------- */
.contact-intro .lead { margin-top: clamp(28px, 3vw, 40px); max-width: 28em; }
.cform { display: grid; gap: clamp(26px, 2.6vw, 38px); padding-top: 6px; }
.field { position: relative; }
.field input, .field textarea {
	display: block; width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
	color: var(--bone); font-family: var(--text); font-weight: 500; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.35;
	padding: 30px 0 12px; outline: none; resize: vertical; -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 150px; }
.field label {
	position: absolute; left: 0; top: 30px; pointer-events: none; transform-origin: left top;
	font-family: var(--text); font-weight: 500; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.35; color: var(--bone-faint);
	transition: transform .55s var(--ease), color .35s;
}
.field label em { font-style: normal; font-size: .62em; margin-left: .7em; color: var(--bone-faint); letter-spacing: .02em; }
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-30px) scale(.52); color: var(--bone-dim); }
.field input:focus + label, .field textarea:focus + label { color: var(--signal); }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--signal); transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease); }
.field:focus-within::after, .field.err::after { transform: scaleX(1); transform-origin: left; }
.field.err label { color: var(--signal); }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--bone); transition: background-color 99999s; }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; min-width: 0; }
.chips legend { padding: 0; margin-bottom: 16px; font-family: var(--label); font-weight: 700; font-variation-settings: "wdth" 75; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; color: var(--bone-dim); }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips label > span {
	display: inline-block; padding: 12px 18px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--bone-dim);
	font-family: var(--label); font-weight: 700; font-variation-settings: "wdth" 75; letter-spacing: .07em; text-transform: uppercase; font-size: 12px;
	transition: background .35s var(--ease), color .35s, border-color .35s;
}
.chips label:hover > span { border-color: var(--bone); color: var(--bone); }
.chips input:checked + span { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.chips input:focus-visible + span { outline: 1px solid var(--signal); outline-offset: 3px; }
.cform-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 4px; }
.cform-note { margin: 0; font-size: 13.5px; color: var(--bone-faint); max-width: 26em; }
.cform-note a { color: var(--bone-dim); text-decoration: underline; text-underline-offset: 3px; }
.send i { font-style: normal; display: inline-block; margin-left: 12px; transition: transform .45s var(--ease); }
.send:hover i { transform: translateX(5px); }
.cform-status { margin: 0; min-height: 1.4em; font-size: 14.5px; color: var(--bone-dim); }

/* Process reel (desktop): cards fill the space under the heading and keep
   the same breathing room below as between the heading and the cards. */
@media (min-width: 901px) {
	.work { --reel-gap: clamp(28px, 3.4vw, 52px); }
	.work-pin { justify-content: flex-start; padding-bottom: var(--reel-gap); }
	.work-head { padding-bottom: var(--reel-gap); flex: 0 0 auto; }
	.work-track { flex: 1 1 auto; min-height: 0; align-items: stretch; }
	.work-track .panel.step { height: auto; max-height: 680px; }
}
@media (min-width: 901px) {
	/* The drawing absorbs the spare height, so text never gets clipped. */
	.work-track .step-art { flex: 1 1 0; min-height: 0; height: auto; max-height: 150px; }
}
@media (min-width: 901px) and (max-height: 820px) {
	.panel.step { padding: 26px 28px; }
	.step-n { font-size: 68px; }
	.panel.step h3 { font-size: clamp(40px, 3.8vw, 56px); }
	.deliv { margin-top: 14px; padding-top: 14px; gap: 6px; }
	.work-head .big { font-size: clamp(36px, 4.6vw, 72px); }
}
.cform { position: relative; }
.cform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform-status a { color: var(--bone); text-decoration: underline; text-underline-offset: 3px; }
.cform.sending .send { opacity: .55; pointer-events: none; }
.cform-done { display: none; }
.cform.done > :not(.cform-done) { display: none; }
.cform.done .cform-done { display: grid; gap: 22px; align-content: start; padding-top: 4px; }
.cform-done .mono { color: var(--bone-dim); }
.done-h { margin: 0; font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 62; text-transform: uppercase; font-size: clamp(56px, 7vw, 120px); line-height: .86; }
.cform-done .lead { margin: 0; max-width: 26em; }

/* ---------- Mobile polish (≤ 900px only; desktop untouched) ---------- */
.nav { transition: color .35s var(--ease), background-color .35s ease, backdrop-filter .35s ease, border-color .35s ease; border-bottom: 1px solid transparent; }
@media (max-width: 900px) {
	.nav.scrolled { background-color: rgba(10, 10, 10, .78); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); }
	.principles { border-top: 0; }
	.principles > div { padding: 26px 0 30px; }
	.principles h3 { margin-top: 14px; }
}
@media (max-width: 760px) {
	section { padding: 84px 0; }
	#contact { padding-bottom: 64px; }
	.footer { padding-top: 72px; }
	.mail { font-size: 8.6vw; }
	.services { grid-template-columns: 1fr; }
	.service, .service:nth-child(odd), .service:nth-child(even) { padding: 30px 0 34px !important; border-right: 0 !important; }
	.hero-actions { width: 100%; flex-direction: column; gap: 10px; }
	.hero-actions .btn { width: 100%; justify-content: center; text-align: center; }
	.cform-foot { flex-direction: column; align-items: stretch; }
	.cform-foot .send { width: 100%; justify-content: center; }
	.chips label > span { padding: 11px 15px; font-size: 11.5px; }
}
