/* ==========================================================================
   ThornFree — Technology without friction
   1. Tokens
   2. Base
   3. Header + navigation
   4. Hero + universe
   5. Sections
   6. Carry
   7. Ecosystem
   8. Approach
   9. Horizon + contact + footer
   10. Journey path
   11. Motion
   12. Responsive
   ========================================================================== */

/* Local, preloaded brand fonts prevent a fallback-font repaint on first load. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: block;
  src: url("assets/fonts/manrope-400-700-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400 500;
  font-display: block;
  src: url("assets/fonts/newsreader-italic-400-500-latin.woff2") format("woff2");
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("assets/fonts/dm-mono-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 500;
  font-display: block;
  src: url("assets/fonts/dm-mono-500-latin.woff2") format("woff2");
}

/* 1. Tokens ============================================================== */
:root {
  --paper: #f2efe7;
  --ink: #191a17;
  /* Passed on paper but not on the darker section grounds (#dedbd2 etc),
     where it fell to 4.13:1. This clears 4.5:1 against every ground used. */
  --muted: #5c5d55;
  --line: rgba(25, 26, 23, .18);
  /* Vivid accents: fills, and anything sitting on ink. */
  --lime: #cafa55;
  --coral: #f47b61;
  --blue: #92a9ff;
  --white: #fffef9;

  /* The same accents as *text* on paper fail badly — lime lands at 1.06:1,
     which is invisible. Anything that has to be read gets the ink partner. */
  --coral-ink: #9e3d26;   /* 5.8:1 on paper, 4.9:1 on the carry stone */
  --lime-ink: #46600f;    /* 6.2:1 / 5.2:1 */
  --blue-ink: #3a4fa8;    /* 6.4:1 / 5.4:1 */

  /* Display `em` only (48px+, so 3:1 applies). Keeps the airy coral feel. */
  --coral-display: #e05a3a;

  --display: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --mono: "DM Mono", Consolas, monospace;

  /* Smallest legible sizes. Nothing in the design should go below --micro.
     Raised from 9px: uppercase mono with positive tracking needs more. */
  --micro: 10px;
  --label: 10px;

  --context-accent: var(--coral);
  --context-ink: var(--coral-ink);
  --focus: var(--ink);
}

body[data-context="work"] { --context-accent: var(--lime); --context-ink: var(--lime-ink); }
body[data-context="systems"] { --context-accent: var(--blue); --context-ink: var(--blue-ink); }

/* 2. Base =============================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { width: 100%; margin: 0; background: var(--paper); color: var(--ink); font-family: var(--display); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
main { position: relative; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; white-space: nowrap; clip: rect(0,0,0,0); clip-path: inset(50%); border: 0; }

/* One focus treatment for the whole site. Surfaces that sit on ink
   re-point --focus at lime so the ring stays visible. */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.card-ink, .universe-tab.active, .workflow-output { --focus: var(--lime); }

.skip-link { position: absolute; left: 22px; top: -100px; z-index: 30; padding: 12px 18px; background: var(--ink); color: var(--white); font-size: 13px; font-weight: 600; border-radius: 3px; transition: top .2s; }
.skip-link:focus { top: 16px; }

.noise { position: fixed; inset: 0; opacity: .035; pointer-events: none; z-index: 20; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }

/* 3. Header + navigation ================================================ */
.site-header { height: 92px; padding: 0 4.5vw; display: flex; align-items: center; justify-content: space-between; position: absolute; top: 0; width: 100%; z-index: 10; border-bottom: 1px solid var(--line); }
/* The crop window is deliberate: the logo asset is a full lockup that also
   carries the "Technology without friction" tagline, and the header shows the
   wordmark only. Do not "simplify" this to a plain contained background —
   doing so drags the tagline into the header. */
.brand {
  --logo-width: 152px;
  --logo-height: 31px;
  --logo-asset-width: 179px;
  --logo-asset-left: -12px;
  --logo-asset-top: -34px;
  display: inline-flex;
  align-items: center;
}
.brand-logo { position: relative; display: block; width: var(--logo-width); height: var(--logo-height); overflow: hidden; background-color: var(--paper); background-image: url("assets/thornfree-logo-horizontal-mono.png"); background-repeat: no-repeat; background-position: var(--logo-asset-left) var(--logo-asset-top); background-size: var(--logo-asset-width) auto; background-blend-mode: multiply; transition: transform .3s ease, opacity .3s ease; }
.brand-logo img { display: none; }
.brand:hover .brand-logo { transform: translateX(3px); opacity: .78; }

.site-nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 50px); font-size: 13px; font-weight: 600; }
.site-nav a:not(.nav-cta) { position: relative; }
.site-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px; background: currentColor; transition: right .25s; }
.site-nav a:hover::after { right: 0; }
.nav-cta { border: 1px solid var(--ink); border-radius: 100px; padding: 12px 18px; transition: .25s; }
.nav-cta:hover { background: var(--ink); color: var(--paper); }
.nav-cta span { margin-left: 11px; }
.menu-button { display: none; border: 0; background: none; padding: 10px; }

/* 4. Hero + universe ==================================================== */
.hero { min-height: 850px; height: 100vh; max-height: 1050px; padding: 150px 4.5vw 55px; display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: 3vw; }
.hero, main > .section { position: relative; z-index: 2; }

.eyebrow, .section-kicker, .card-type { font-family: var(--mono); text-transform: uppercase; letter-spacing: .13em; font-size: var(--label); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 40px; }
.status-dot { width: 8px; height: 8px; background: var(--coral); border-radius: 50%; box-shadow: 0 0 0 5px rgba(244,123,97,.16); }

h1 { margin: 0; font-size: clamp(68px, 7.6vw, 126px); line-height: .97; letter-spacing: -.075em; font-weight: 500; }
h1 em, h2 em, .contact-link em { font-family: var(--serif); font-weight: 400; color: var(--coral-display); }
.hero-line { display: block; white-space: nowrap; }
.hero h1 em { font-size: .93em; }
.hero-intro { width: min(580px, 90%); font-size: clamp(17px, 1.45vw, 22px); line-height: 1.55; color: var(--muted); margin: 48px 0 36px; letter-spacing: -.02em; }
.hero-actions { display: flex; align-items: center; gap: 30px; }

.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 40px; padding: 16px 18px; min-width: 200px; border-radius: 3px; font-size: 12px; font-weight: 600; transition: transform .25s, background .25s; }
.button:hover { transform: translateY(-3px); }
.button-dark { background: var(--ink); color: var(--white); }
.button-light { color: var(--ink); background: var(--lime); }
.text-link { font-size: 12px; border-bottom: 1px solid var(--ink); padding: 10px 0 6px; }
.text-link span { margin-left: 20px; }

.hero-art { position: relative; width: min(100%, 650px); height: min(650px, 72vh); align-self: center; display: flex; flex-direction: column; border: 1px solid var(--ink); border-radius: 4px; background: #e5e1d8; overflow: hidden; box-shadow: 0 28px 70px rgba(25,26,23,.08); }

.universe-tabs { display: grid; grid-template-columns: repeat(3, 1fr); flex: 0 0 70px; border-bottom: 1px solid var(--ink); }
.universe-tab { border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font: 500 var(--label) var(--mono); text-transform: uppercase; letter-spacing: .09em; transition: background .3s, color .3s; }
.universe-tab:last-child { border-right: 0; }
.universe-tab span { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 8px; border: 1px solid currentColor; border-radius: 50%; font-size: var(--micro); }
.universe-tab:hover { color: var(--ink); }
.universe-tab.active { background: var(--ink); color: var(--paper); box-shadow: inset 0 -4px 0 var(--context-accent); }
/* .hero-art clips its overflow, so a positive outline-offset lost the ring on
   the first tab's top and left edges. Inset it instead. */
.universe-tab:focus-visible { outline-offset: -3px; }

.universe-stage { position: relative; flex: 1; min-height: 0; }
.universe-scene { position: absolute; inset: 0; display: grid; grid-template-columns: .8fr 1.2fr; opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1), visibility 0s .5s; }
.universe-scene.active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

.scene-copy { padding: 42px 18px 38px 34px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end; }
.scene-copy > p { margin: 0 auto auto 0; font: var(--micro) var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.scene-copy h2 { margin: 0 0 15px; font-size: clamp(29px, 3.1vw, 45px); line-height: .96; letter-spacing: -.055em; font-weight: 500; }
.scene-copy > span { color: var(--muted); font-size: 12px; line-height: 1.55; }

.friction-proof { display: grid; grid-template-columns: 1fr auto; gap: 5px 8px; align-items: center; margin-top: 24px; padding-top: 15px; border-top: 1px solid var(--line); }
.friction-proof small, .friction-proof strong { font: 500 var(--micro) var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.friction-proof small { color: var(--muted); }
.friction-proof i { grid-column: 2; grid-row: 1 / 3; font: normal 16px var(--mono); color: var(--context-ink); }
.friction-proof strong { grid-column: 1; }

.life-demo, .workflow-demo, .systems-demo { position: relative; min-width: 0; overflow: hidden; }
.life-demo { display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, rgba(202,250,85,.28), transparent 45%); }
.moment-card { width: 72%; min-height: 305px; padding: 28px; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--ink); border-radius: 24px; transform: rotate(-3deg); box-shadow: 14px 18px 0 rgba(25,26,23,.1); }
.moment-card small { font: var(--micro) var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.moment-card strong { margin-top: auto; font-size: 27px; line-height: 1.05; letter-spacing: -.045em; }
.moment-card p { color: var(--muted); font-size: 11px; line-height: 1.5; }
.moment-card i { display: flex; justify-content: space-between; margin-top: 14px; padding: 13px 15px; border-radius: 100px; background: var(--ink); color: var(--paper); font: normal var(--label) var(--mono); }
.demo-chip { position: absolute; padding: 9px 12px; border: 1px solid var(--ink); border-radius: 100px; background: var(--lime); font: var(--micro) var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.chip-one { right: 2%; top: 18%; transform: rotate(7deg); }
.chip-two { left: 3%; bottom: 14%; background: var(--coral); transform: rotate(-8deg); }

/* Same anchored routing as the systems panel, rotated vertical: four inputs
   drop onto a shared trunk, the trunk feeds the merge, the merge feeds the
   output. Column centres are derived, not guessed, so the trunk always ends
   exactly under the outer two inputs. Flex + explicit margins mean the circle
   can never be squeezed into the card below it. */
.workflow-demo { --igap: 8px; --drop: 14px; --run: 22px; --out: 22px;
  padding: 34px 26px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background-image: linear-gradient(rgba(25,26,23,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(25,26,23,.05) 1px, transparent 1px); background-size: 28px 28px; }

.workflow-inputs { position: relative; width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--igap); }
.workflow-inputs span { position: relative; padding: 11px 4px; border: 1px solid var(--ink); background: var(--paper); border-radius: 3px; font: var(--micro) var(--mono); text-align: center; }
.workflow-inputs span::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: var(--drop); background: var(--ink); transform-origin: top; }
/* Trunk spans first column centre to last: (100% - 3 gaps) / 8 in from each side. */
.workflow-inputs::after { content: ""; position: absolute; top: calc(100% + var(--drop)); left: calc((100% - 3 * var(--igap)) / 8); right: calc((100% - 3 * var(--igap)) / 8); height: 1px; background: var(--ink); transform-origin: center; }

.workflow-merge { position: relative; width: 118px; height: 118px; margin-top: calc(var(--drop) + var(--run)); display: flex; flex-direction: column; justify-content: center; align-items: center; border-radius: 50%; background: var(--lime); border: 1px solid var(--ink); z-index: 2; }
.workflow-merge::before, .workflow-merge::after { content: ''; position: absolute; left: 50%; width: 1px; background: var(--ink); z-index: -1; transform-origin: top; }
.workflow-merge::before { bottom: 100%; height: var(--run); }
.workflow-merge::after { top: 100%; height: var(--out); }
.workflow-merge b { font-size: 15px; }
.workflow-merge small { width: 96px; margin-top: 5px; text-align: center; font: var(--micro)/1.4 var(--mono); }

.workflow-output { width: 100%; margin-top: var(--out); padding: 16px 18px; border: 1px solid var(--ink); border-radius: 5px; background: var(--ink); color: var(--paper); display: grid; grid-template-columns: 1fr auto; align-items: center; }
.workflow-output small { grid-column: 1; font: var(--micro) var(--mono); text-transform: uppercase; opacity: .7; }
.workflow-output strong { grid-column: 1; margin-top: 5px; }
.workflow-output i { grid-column: 2; grid-row: 1 / 3; font-style: normal; color: var(--lime); font-size: 22px; }

/* Orthogonal bus routing. Every segment is anchored to a real element and
   sized from these four values, so the joins stay exact at any width —
   the previous version used fixed-length rotated bars that overshot the
   pills and struck through their labels. */
.systems-demo { --pill-h: 38px; --inset: 24px; --stub: 10px; --gap: 9px; --tail: 14px;
  display: grid; grid-template-columns: 1fr 100px 1fr; align-items: center; padding: 35px 18px; background: #d8d5cc; }

.system-sources { position: relative; display: flex; flex-direction: column; gap: 14px; }
.system-sources span { position: relative; width: calc(100% - var(--inset)); height: var(--pill-h); padding: 0 9px; display: grid; place-items: center; border: 1px solid var(--ink); background: var(--paper); border-radius: 100px; text-align: center; font: var(--micro) var(--mono); text-transform: uppercase; }
/* Stub: pill edge out to the trunk. */
.system-sources span::after { content: ""; position: absolute; left: 100%; top: 50%; width: var(--stub); height: 1px; background: var(--ink); transform-origin: left; }
/* Trunk: spans exactly first pill centre to last pill centre. */
.system-sources::after { content: ""; position: absolute; left: calc(100% - var(--inset) + var(--stub)); top: calc(var(--pill-h) / 2); bottom: calc(var(--pill-h) / 2); width: 1px; background: var(--ink); transform-origin: center; }

.system-bridge { position: relative; width: 82px; height: 82px; display: grid; place-items: center; margin: auto; border-radius: 50%; background: var(--coral); border: 1px solid var(--ink); z-index: 2; }
.system-bridge b { font: 13px var(--mono); }
/* Spines run under the circle, so they terminate cleanly at its edge. */
.system-bridge::before, .system-bridge::after { content: ""; position: absolute; top: 50%; height: 1px; background: var(--ink); z-index: -1; transform-origin: left; }
.system-bridge::before { right: 100%; width: calc(var(--inset) - var(--stub) + var(--gap)); }
.system-bridge::after { left: 100%; width: calc(var(--gap) + var(--tail)); }

.system-result { min-height: 190px; margin-left: var(--tail); padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid var(--ink); border-radius: 5px; background: var(--lime); }
.system-result small { margin-bottom: auto; font: var(--micro) var(--mono); text-transform: uppercase; }
.system-result strong { font-size: 24px; line-height: 1; letter-spacing: -.04em; }

.universe-hint { height: 44px; margin: 0; padding: 0 20px; display: flex; align-items: center; border-top: 1px solid var(--ink); font: var(--label) var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

/* 4b. Scene motion ======================================================
   Every loop is scoped to .universe-scene.active so only the visible panel
   animates. Resting states for reduced motion are set at the bottom. */

/* Life — the card moves through a day. Swap is a short fade under the
   existing -3deg tilt, so the card never appears to straighten. */
.life-demo { padding-bottom: 42px; }
.moment-card { transition: opacity .18s ease, transform .18s ease; }
.moment-card.swapping { opacity: 0; transform: rotate(-3deg) translateY(7px); }

.moment-controls { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 4; display: flex; align-items: center; justify-content: center; gap: 13px; }
.moment-dots { display: flex; align-items: center; gap: 6px; }
/* 24px floor: WCAG 2.2 target size (2.5.8). The visible dot stays 7px. */
.moment-dot { width: 24px; height: 24px; padding: 0; display: grid; place-items: center; border: 0; background: none; cursor: pointer; }
.moment-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--ink); background: transparent; transition: background .25s, transform .25s; }
.moment-dot:hover::before { background: var(--context-ink); }
.moment-dot.is-on::before { background: var(--context-ink); transform: scale(1.3); }

/* --line (.18 alpha) gave this control a 1.2:1 boundary on the stage ground.
   UI component borders need 3:1 (WCAG 1.4.11). */
.moment-play { width: 24px; height: 24px; padding: 0; display: grid; place-items: center; border: 1px solid rgba(25,26,23,.45); border-radius: 50%; background: transparent; cursor: pointer; transition: border-color .25s; }
.moment-play:hover { border-color: var(--ink); }
.moment-icon { width: 8px; height: 8px; border-left: 2px solid var(--ink); border-right: 2px solid var(--ink); }
.moment-play.is-paused .moment-icon { width: 0; height: 0; margin-left: 2px; border: 0; border-left: 7px solid var(--ink); border-top: 4px solid transparent; border-bottom: 4px solid transparent; }

/* Work — the signal runs inputs → trunk → merge → output, on a loop. */
@keyframes inputPing { 0%, 58%, 100% { background: var(--paper); } 10%, 30% { background: var(--lime); } }
@keyframes mergeThink { 0%, 100% { transform: scale(1); } 54% { transform: scale(1.05); } }
@keyframes outputReady { 0%, 58%, 100% { box-shadow: 0 0 0 0 rgba(202,250,85,0); } 74%, 90% { box-shadow: 0 0 0 5px rgba(202,250,85,.32); } }

.universe-scene.active .workflow-inputs span { animation: inputPing 4.4s ease-in-out infinite; }
.universe-scene.active .workflow-inputs span:nth-child(2) { animation-delay: .1s; }
.universe-scene.active .workflow-inputs span:nth-child(3) { animation-delay: .2s; }
.universe-scene.active .workflow-inputs span:nth-child(4) { animation-delay: .3s; }
.universe-scene.active .workflow-inputs span::after { animation: drawY 4.4s ease-in-out infinite .34s; }
.universe-scene.active .workflow-inputs::after { animation: drawX 4.4s ease-in-out infinite .58s; }
.universe-scene.active .workflow-merge::before { animation: drawY 4.4s ease-in-out infinite .82s; }
.universe-scene.active .workflow-merge { animation: mergeThink 4.4s ease-in-out infinite; }
.universe-scene.active .workflow-merge::after { animation: drawY 4.4s ease-in-out infinite 1.14s; }
.universe-scene.active .workflow-output { animation: outputReady 4.4s ease-in-out infinite; }
.workflow-inputs span { transition: background .25s; }
.workflow-inputs span:hover { background: var(--lime); }

/* Systems — the signal travels the bus: pills → trunk → hub → result.
   The sources themselves never move; only the connection is drawn. */
@keyframes drawX { 0% { transform: scaleX(0); } 16%, 86% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes drawY { 0% { transform: scaleY(0); } 16%, 86% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
@keyframes hubReceive { 0%, 100% { transform: scale(1); } 52% { transform: scale(1.05); } }
@keyframes resultLand { 0%, 44%, 100% { transform: translateY(0); } 62%, 88% { transform: translateY(-5px); } }

.universe-scene.active .system-sources span::after { animation: drawX 4.4s ease-in-out infinite; }
.universe-scene.active .system-sources span:nth-child(2)::after { animation-delay: .12s; }
.universe-scene.active .system-sources span:nth-child(3)::after { animation-delay: .24s; }
.universe-scene.active .system-sources::after { animation: drawY 4.4s ease-in-out infinite .46s; }
.universe-scene.active .system-bridge::before { animation: drawX 4.4s ease-in-out infinite .76s; }
.universe-scene.active .system-bridge { animation: hubReceive 4.4s ease-in-out infinite; }
.universe-scene.active .system-bridge::after { animation: drawX 4.4s ease-in-out infinite 1.02s; }
.universe-scene.active .system-result { animation: resultLand 4.4s ease-in-out infinite; }

.system-sources span { transition: background .25s, border-color .25s; }
.system-sources span:hover { background: var(--lime); }

/* 5. Sections =========================================================== */
.section { padding: 130px 4.5vw; }
.section-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 65px; color: var(--muted); }
.section-kicker span { color: var(--ink); border: 1px solid var(--line); border-radius: 50%; width: 27px; height: 27px; display: grid; place-items: center; letter-spacing: 0; }

.statement { border-bottom: 1px solid var(--line); }
.statement-grid { display: grid; grid-template-columns: 1.6fr .65fr; gap: 8vw; align-items: end; }
.statement h2, .section-heading h2, .approach h2 { font-size: clamp(48px, 6.3vw, 104px); line-height: .95; letter-spacing: -.06em; margin: 0; font-weight: 500; }
.statement h2 em { color: var(--coral-display); }
.statement-copy { border-left: 1px solid var(--ink); padding-left: 30px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.statement-copy p:first-child { color: var(--ink); font-size: 19px; }

.section-heading { display: grid; grid-template-columns: .7fr 1.25fr .55fr; align-items: end; margin-bottom: 75px; }
.section-heading .section-kicker { align-self: start; }
.section-heading h2 { font-size: clamp(52px, 6vw, 94px); }
.section-heading > p { color: var(--muted); line-height: 1.6; font-size: 14px; }
.context-note { display: block; width: max-content; margin-top: 22px; padding: 8px 11px; border: 1px solid var(--ink); border-radius: 100px; color: var(--ink); font: var(--micro) var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.context-note b { color: var(--context-ink); font-weight: 600; }

/* 6. Carry ============================================================== */
.carry { min-height: 880px; padding: 105px 4.5vw; border-bottom: 1px solid var(--ink); background: #dfdcd3; overflow: clip; }
.carry-sticky { min-height: 670px; display: grid; grid-template-columns: .82fr 1.18fr; gap: 4vw; align-items: center; }
.carry-copy { align-self: center; max-width: 560px; }
.carry-copy .section-kicker { margin-bottom: 45px; }
.carry-copy h2 { margin: 0; font-size: clamp(55px, 6.3vw, 101px); line-height: .91; letter-spacing: -.065em; font-weight: 500; }
.carry-copy h2 em { color: var(--context-ink); font-family: var(--serif); font-weight: 400; transition: color .45s; }
.carry-copy > p { max-width: 470px; margin: 32px 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.carry-progress { width: min(360px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 12px; position: relative; border-top: 1px solid rgba(25,26,23,.18); font: var(--micro) var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.carry-progress span:last-child { text-align: right; color: var(--ink); }
.carry-progress i { position: absolute; left: 0; top: -2px; width: 100%; height: 3px; background: var(--context-ink); transform: scaleX(var(--carry-progress, 0)); transform-origin: left; transition: background .45s; }

.carry-stage { width: min(45vw, 650px); aspect-ratio: 1; position: relative; justify-self: end; border: 1px solid var(--ink); border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.5), rgba(255,255,255,.08) 58%, transparent 59%); box-shadow: inset 0 0 100px rgba(255,255,255,.32); }
.carry-orbit { position: absolute; left: 50%; top: 50%; border: 1px dashed rgba(25,26,23,.15); border-radius: 50%; transform: translate(-50%,-50%); }
.orbit-a { width: 72%; height: 72%; }
.orbit-b { width: 44%; height: 44%; border-style: solid; }
/* The nodes are the customer's existing stack. They are placed in percentages
   and hold position at every scroll offset and every viewport — the animation
   happens *around* them, never to them. */
.stack-node { position: absolute; z-index: 3; transform: translate(-50%, -50%); min-width: 104px; padding: 12px 15px; border: 1px solid var(--ink); border-radius: 100px; background: var(--paper); font: var(--micro) var(--mono); text-transform: uppercase; text-align: center; letter-spacing: .07em; box-shadow: 3px 4px 0 rgba(25,26,23,.07); }
.stack-node::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; border: 1px solid var(--ink); background: var(--context-accent); opacity: var(--carry-progress, 0); }
.node-1 { left: 50%; top: 10%; }
.node-2 { left: 87%; top: 37%; }
.node-3 { left: 74%; top: 83%; }
.node-4 { left: 26%; top: 83%; }
.node-5 { left: 13%; top: 37%; }

.integration-web { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; overflow: visible; }
/* pathLength=1 lets the draw-in run off --carry-progress with no JS. The 1 2
   dash pattern keeps the line fully hidden while the offset is above 1. */
.web-link { fill: none; stroke: var(--context-ink); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1 2; stroke-dashoffset: calc((1 + var(--delay, 0)) * (1 - var(--carry-progress, 0))); transition: stroke .45s ease; }

.integration-core { position: absolute; left: 50%; top: 50%; z-index: 4; width: 132px; height: 132px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--ink); border-radius: 50%; background: var(--context-accent); color: var(--ink); box-shadow: 0 0 0 16px rgba(25,26,23,.05); opacity: calc(var(--carry-progress, 0) * 1.9); transform: translate(-50%,-50%) scale(calc(.84 + var(--carry-progress, 0) * .16)); transition: background .45s ease; }
.integration-core span { font: 500 20px var(--mono); }
.integration-core small { width: 94px; margin-top: 6px; text-align: center; font: var(--micro)/1.4 var(--mono); text-transform: uppercase; letter-spacing: .05em; }

/* 7. Ecosystem ========================================================== */
.ecosystem { padding-bottom: 160px; }
.ecosystem-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.eco-card { min-height: 650px; padding: 25px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--ink); transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s, opacity .45s, filter .45s; }
.eco-card:hover { transform: translateY(-14px); box-shadow: 0 22px 0 rgba(25,26,23,.1); }
.eco-card.context-active { transform: translateY(-14px); box-shadow: 0 22px 0 rgba(25,26,23,.1); }
/* Muting used to be opacity .68 + saturate(.55) on the whole card, which put
   .card-type at 2.47:1 — an AA failure in the default state. But dropping the
   dim entirely made the section inert, since this is what shows the hero tabs
   driving the page.
   So the wash is a veil *behind* the content instead: the accent ground
   recedes just as visibly, while every glyph and character sits above it at
   full opacity. Text contrast is untouched — on coral and lime it actually
   improves, because the ground lightens under dark ink. */
.eco-card { position: relative; }
.eco-card > * { position: relative; z-index: 1; }
.eco-card::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: var(--paper); opacity: 0; transition: opacity .45s ease;
}
.eco-card.context-muted::after { opacity: .62; }
.eco-card.context-muted:hover::after { opacity: 0; }
/* The ink card carries white text, so it recedes toward charcoal, not paper. */
.card-ink::after { background: #55584f; }
.card-ink.context-muted::after { opacity: .42; }
.card-coral { background: var(--coral); }
.card-lime { background: var(--lime); }
.card-ink { background: var(--ink); color: var(--white); }
.card-top { display: flex; justify-content: space-between; font: 11px var(--mono); }
.card-number { border: 1px solid currentColor; border-radius: 50%; width: 27px; height: 27px; display: grid; place-items: center; }
.card-arrow { font-size: 18px; }
.card-visual { height: 260px; position: relative; display: grid; place-items: center; }

.project-status { padding: 7px 10px; border: 1px solid currentColor; border-radius: 100px; font: var(--micro) var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.card-visual img { display: block; max-width: 100%; }

.ember-visual { isolation: isolate; }
.ember-visual img { position: relative; z-index: 2; width: 172px; height: 172px; object-fit: cover; border: 1px solid var(--ink); border-radius: 50%; box-shadow: 13px 15px 0 rgba(25,26,23,.13); transform: rotate(-3deg); }
.ember-orbit { position: absolute; z-index: 1; width: 225px; height: 225px; border: 1px solid var(--ink); border-radius: 50%; opacity: .55; animation: emberBreathe 3.6s ease-in-out infinite; }
.ember-orbit::after { content: ""; position: absolute; right: 20px; top: 28px; width: 11px; height: 11px; border: 1px solid var(--ink); border-radius: 50%; background: var(--lime); }
@keyframes emberBreathe { 0%,100% { transform: scale(.93); opacity: .35; } 50% { transform: scale(1.04); opacity: .75; } }

.ink2cal-visual { padding: 12px 0; }
.ink2cal-visual img { width: 100%; border: 1px solid var(--ink); border-radius: 11px; box-shadow: 13px 15px 0 rgba(25,26,23,.13); transform: rotate(-2deg); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.eco-card:hover .ink2cal-visual img { transform: rotate(0deg) scale(1.02); }

.simulator-visual { isolation: isolate; }
.simulator-board { width: 90%; padding: 17px; border: 1px solid rgba(255,255,255,.7); border-radius: 6px; background: var(--paper); color: var(--ink); box-shadow: 13px 15px 0 rgba(255,255,255,.09); transform: perspective(700px) rotateY(-5deg) rotateX(3deg); }
.simulator-verdict { display: flex; justify-content: space-between; align-items: center; padding-bottom: 13px; border-bottom: 1px solid rgba(25,26,23,.22); }
.simulator-verdict span { font: 9px var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.simulator-verdict strong { padding: 5px 7px; border-radius: 3px; background: var(--lime); font: 10px var(--mono); letter-spacing: .04em; }
.simulator-signal { display: grid; grid-template-columns: 45px 1fr 24px; align-items: center; gap: 8px; padding-top: 14px; font: 9px var(--mono); text-transform: uppercase; }
.simulator-signal i { position: relative; height: 6px; overflow: hidden; border-radius: 100px; background: rgba(25,26,23,.12); }
.simulator-signal i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--signal); border-radius: inherit; background: var(--coral); }
.simulator-signal:nth-child(3) i::after { background: var(--blue); }
.simulator-signal b { font-weight: 500; text-align: right; }
.simulator-note { display: flex; justify-content: space-between; margin-top: 16px; padding-top: 11px; border-top: 1px solid rgba(25,26,23,.22); color: var(--muted); font: 9px var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.territory-card { min-height: 430px; }
.territory-label { align-self: center; font: var(--micro) var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.territory-glyph { position: relative; width: 180px; height: 150px; margin: 10px auto 20px; }
.territory-glyph i { position: absolute; display: block; }
.glyph-life i { border: 1px solid var(--ink); border-radius: 50%; }
.glyph-life i:nth-child(1) { inset: 7px 22px; }
.glyph-life i:nth-child(2) { width: 58px; height: 58px; left: 61px; top: 46px; background: var(--paper); }
.glyph-life i:nth-child(3) { width: 12px; height: 12px; right: 25px; top: 25px; background: var(--lime); }
.glyph-work::before { content: ""; position: absolute; left: 12px; right: 12px; top: 74px; height: 1px; background: var(--ink); }
.glyph-work i { width: 31px; height: 31px; top: 59px; border: 1px solid var(--ink); border-radius: 50%; background: var(--paper); }
.glyph-work i:nth-child(1) { left: 5px; }
.glyph-work i:nth-child(2) { left: 74px; background: var(--coral); }
.glyph-work i:nth-child(3) { right: 5px; }
.glyph-systems { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; width: 150px; height: 132px; }
.glyph-systems i { position: relative; border: 1px solid rgba(255,255,255,.7); border-radius: 5px; background: rgba(255,255,255,.07); }
.glyph-systems i:nth-child(2) { background: var(--lime); }
.glyph-systems i:nth-child(3) { background: var(--coral); }
/* Opacity raised from .65/.72 — the old values fell below 4.5:1 on coral. */
.card-type { margin: 0 0 12px; opacity: .8; }
.product-promise { margin: -4px 0 12px; font-family: var(--serif); font-size: 21px; font-style: italic; line-height: 1.12; }
.product-description { margin: 0; max-width: 350px; font-size: 13px; line-height: 1.55; opacity: .88; }
.eco-card h3 { font-size: clamp(27px, 2.4vw, 38px); letter-spacing: -.045em; margin: 0 0 14px; font-weight: 600; }
.eco-card > div:last-child > p:last-child { margin: 0; max-width: 350px; line-height: 1.55; font-size: 13px; opacity: .85; }

/* The core principle, demonstrated without tying it to today's portfolio. */
.ecosystem { padding-bottom: 150px; }
.principle-demo {
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: #e5e1d8;
  box-shadow: 0 20px 0 rgba(25,26,23,.07);
}
.principle-stage {
  min-height: 510px;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) 110px 170px 110px minmax(245px, 1.05fr);
  align-items: center;
  padding: clamp(45px, 6vw, 92px);
  background:
    radial-gradient(circle at 50% 50%, rgba(146,169,255,.14), transparent 24%),
    linear-gradient(90deg, rgba(255,255,255,.34), transparent 35%, transparent 65%, rgba(255,255,255,.34));
}
.principle-existing { display: grid; gap: 10px; }
.principle-existing p,
.principle-result small {
  margin: 0 0 10px;
  font: var(--micro) var(--mono);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}
.principle-existing span {
  padding: 13px 15px;
  border: 1px solid rgba(25,26,23,.32);
  border-radius: 3px;
  background: rgba(242,239,231,.64);
  font: var(--micro) var(--mono);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.principle-connections { height: 226px; position: relative; }
.principle-connections i {
  position: absolute;
  right: 0;
  width: 116%;
  height: 1px;
  overflow: hidden;
  background: var(--line);
  transform-origin: right;
}
.principle-connections i::after,
.principle-exit i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--context-ink);
  transform: translateX(-101%);
}
.principle-connections i:nth-child(1) { top: 20px; transform: rotate(18deg); }
.principle-connections i:nth-child(2) { top: 82px; transform: rotate(6deg); }
.principle-connections i:nth-child(3) { top: 144px; transform: rotate(-6deg); }
.principle-connections i:nth-child(4) { top: 206px; transform: rotate(-18deg); }
.principle-demo.visible .principle-connections i::after { animation: principleDraw .72s .25s ease forwards; }

.principle-core {
  width: 150px;
  min-height: 190px;
  justify-self: center;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--ink);
  border-radius: 76px;
  background: var(--paper);
  box-shadow: 0 0 0 14px rgba(25,26,23,.045);
}
.principle-core img { width: 98px; height: 98px; display: block; object-fit: cover; border-radius: 25px; }
.principle-core small { font: var(--micro) var(--mono); text-transform: uppercase; letter-spacing: .06em; }

.principle-exit { height: 1px; position: relative; overflow: hidden; background: var(--line); }
.principle-demo.visible .principle-exit i::after { animation: principleDraw .62s .88s ease forwards; }

.principle-result {
  min-height: 245px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
}
.principle-result strong { margin: 12px 0 35px; font-size: clamp(38px, 4.2vw, 67px); line-height: .88; letter-spacing: -.065em; font-weight: 550; }
.principle-result span { width: fit-content; padding: 11px 15px; border-radius: 100px; background: var(--ink); color: var(--white); font: var(--micro) var(--mono); text-transform: uppercase; letter-spacing: .08em; }

.principle-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  background: var(--paper);
}
.principle-notes article { min-height: 190px; padding: 28px; border-right: 1px solid var(--ink); }
.principle-notes article:last-child { border-right: 0; }
.principle-notes article > span { font: var(--micro) var(--mono); color: var(--context-ink); transition: color .35s; }
.principle-notes h3 { margin: 35px 0 11px; font-size: 21px; letter-spacing: -.035em; }
.principle-notes p { max-width: 370px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
@keyframes principleDraw { to { transform: none; } }

.contact-statement {
  cursor: default;
  font-size: clamp(54px, 6.4vw, 102px);
  line-height: .92;
  letter-spacing: -.06em;
}
.contact-statement:hover span { transform: translateY(6px); }

@media (max-width: 980px) {
  .principle-stage { grid-template-columns: 1fr 80px 135px 80px 1fr; padding: 48px 34px; }
  .principle-core { width: 125px; min-height: 165px; }
  .principle-core img { width: 78px; height: 78px; }
}
@media (max-width: 620px) {
  .principle-stage {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 22px;
  }
  .principle-connections { height: 42px; }
  .principle-connections i { left: 50%; right: auto; width: 1px; height: 42px; transform: none !important; }
  .principle-connections i:not(:first-child) { display: none; }
  .principle-connections i::after { transform: translateY(-101%); }
  .principle-core { width: 132px; min-height: 155px; border-radius: 68px; }
  .principle-exit { width: 1px; height: 42px; justify-self: center; }
  .principle-exit i::after { transform: translateY(-101%); }
  .principle-result { min-height: 220px; }
  .principle-notes { grid-template-columns: 1fr; }
  .principle-notes article { min-height: 0; border-right: 0; border-bottom: 1px solid var(--ink); }
  .principle-notes article:last-child { border-bottom: 0; }
  .principle-notes h3 { margin-top: 24px; }
}
/* 8. Approach =========================================================== */
.approach { background: #dedbd2; border-top: 1px solid var(--ink); }
.approach-intro { display: grid; grid-template-columns: .7fr 1.85fr; margin-bottom: 110px; }
.approach h2 { font-size: clamp(52px, 6vw, 94px); }
.principles { border-top: 1px solid var(--ink); }
.principle { display: grid; grid-template-columns: 100px 1fr auto; gap: 40px; align-items: center; padding: 36px 10px; border-bottom: 1px solid var(--ink); }
.principle-icon { width: 55px; height: 55px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-size: 22px; transition: .25s; }
.principle:hover .principle-icon { background: var(--lime); transform: rotate(20deg); }
.principle h3 { font-size: 24px; margin: 0 0 8px; letter-spacing: -.03em; }
.principle p { color: var(--muted); margin: 0; font-size: 13px; }
.principle-num { font: var(--label) var(--mono); }

/* 8b. Where we actually are ============================================= */
.open { border-top: 1px solid var(--ink); background: var(--paper); }
.open-intro { max-width: 720px; margin-bottom: 70px; }
.open-intro h2 { font-size: clamp(44px, 4.6vw, 74px); line-height: .98; letter-spacing: -.055em; margin: 0 0 28px; font-weight: 500; }
.open-intro > p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; max-width: 620px; }

.open-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.open-column { padding: 32px 30px 34px; border: 1px solid var(--ink); border-radius: 4px; background: #ebe7de; }
.open-column:last-child { background: var(--ink); color: var(--white); --focus: var(--lime); }
.open-column h3 { margin: 0 0 22px; font: 500 var(--label) var(--mono); text-transform: uppercase; letter-spacing: .13em; }
.open-column ul { margin: 0; padding: 0; list-style: none; }
.open-column li { position: relative; padding: 14px 0 14px 30px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.open-column li::before { content: "+"; position: absolute; left: 4px; top: 13px; font: 14px var(--mono); color: var(--context-ink); }
.open-column:last-child { border-color: var(--ink); }
.open-column:last-child li { border-top-color: rgba(255,255,255,.2); }
/* The refusals read as subtractions, so they take a minus and the vivid accent
   (which is legible on ink, unlike on paper). */
.open-column:last-child li::before { content: "\2212"; color: var(--context-accent); }

.open-status { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 34px 0 0; padding: 18px 22px; border: 1px solid var(--line); border-radius: 100px; font: var(--label) var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.open-status b { color: var(--ink); font-weight: 500; }
.open-status time { margin-left: auto; color: var(--ink); }

/* 9. Horizon + contact + footer ========================================= */
.contact { padding-top: 160px; padding-bottom: 70px; }
/* An <h2> so the section has a real heading; the font shorthand keeps it
   visually identical to the label it replaced. */
.contact-label { font: var(--label) var(--mono); text-transform: uppercase; letter-spacing: .14em; margin: 0 0 50px; }
.contact-link { display: grid; grid-template-columns: 1fr auto; align-items: end; font-size: clamp(62px, 10vw, 160px); line-height: .77; letter-spacing: -.075em; font-weight: 500; border-bottom: 2px solid var(--ink); padding-bottom: 45px; }
.contact-link em { color: var(--coral-display); }
.contact-link span { font-size: .35em; margin-bottom: 10px; transition: transform .25s; }
.contact-link:hover span { transform: translate(8px,-8px); }
.project-registry { margin-top: 86px; padding-top: 34px; border-top: 1px solid var(--ink); scroll-margin-top: 28px; }
.registry-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-bottom: 32px; }
.registry-intro p { margin: 0; font: 500 var(--label) var(--mono); text-transform: uppercase; letter-spacing: .13em; }
.registry-intro span { max-width: 500px; justify-self: end; color: var(--muted); font-size: 14px; line-height: 1.6; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 12px; }
.project-tile { min-height: 570px; padding: 24px; display: flex; flex-direction: column; border: 1px solid var(--ink); transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s; }
.project-tile:hover { transform: translateY(-8px); box-shadow: 0 15px 0 rgba(25,26,23,.1); }
.tile-coral { background: var(--coral); }
.tile-lime { background: var(--lime); }
.tile-ink { background: var(--ink); color: var(--white); }
.project-tile-top { min-height: 28px; display: flex; justify-content: space-between; gap: 12px; font: var(--micro) var(--mono); text-transform: uppercase; letter-spacing: .07em; }
/* Was opacity .72, which composited to 4.05:1 on the coral tile at 9px.
   "In development" / "Launch preparation" are real content, not chrome. */
.project-tile-top b { font-weight: 400; text-align: right; }
.project-media { height: 235px; display: grid; place-items: center; position: relative; margin: 15px 0 18px; }
.project-tile-copy { margin-top: auto; }
.project-tile-copy h3 { margin: 0 0 12px; font-size: clamp(29px, 2.6vw, 40px); line-height: 1; letter-spacing: -.05em; }
.project-tile-copy > p:last-child { margin: 0; max-width: 380px; font-size: 13px; line-height: 1.55; opacity: .86; }
.project-tile .product-promise { margin-bottom: 13px; }
.project-tile:hover .ink2cal-visual img { transform: rotate(0deg) scale(1.02); }
.contact-meta { display: grid; grid-template-columns: 1fr 1fr; margin-top: 45px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.contact-meta p:last-child { justify-self: end; text-align: right; }
.contact-meta a { color: var(--ink); border-bottom: 1px solid; }

footer { margin: 0 4.5vw; padding: 30px 0; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; font: var(--label) var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.footer-brand {
  --logo-width: 130px;
  --logo-height: 27px;
  --logo-asset-width: 154px;
  --logo-asset-left: -11px;
  --logo-asset-top: -29px;
}

/* 10. Journey path ====================================================== */
.thornfree-path { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; overflow: visible; mix-blend-mode: multiply; }
.journey-ghost, .journey-progress { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.journey-ghost { stroke: rgba(25,26,23,.065); stroke-width: 11; }
/* A 2px lime line on paper is invisible, so the path tracks the ink partner.
   The head keeps the vivid accent — it has an ink outline to hold it. */
.journey-progress { stroke: var(--context-ink); stroke-width: 2; transition: stroke .45s ease; }
.journey-head { r: 5px; fill: var(--context-accent); stroke: var(--ink); stroke-width: 1.5; transition: fill .45s ease; }

/* 11. Motion ============================================================ */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .85s ease, transform .85s cubic-bezier(.2,.8,.2,1); }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* transition-delay is reset too: .universe-scene delays `visibility` by
     .5s, which otherwise kept the outgoing panel on screen after the swap. */
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
  .thornfree-path { display: none; }
  /* Loops freeze at their first frame, which for these two is "not drawn yet".
     Pin the resting state so the diagrams still read. */
  .system-sources span::after, .system-sources::after,
  .system-bridge::before, .system-bridge::after,
  .workflow-inputs span::after, .workflow-inputs::after,
  .workflow-merge::before, .workflow-merge::after { transform: none; }
}

/* 12. Responsive ======================================================== */
@media (max-width: 980px) {
  .site-header { height: 74px; }
  .menu-button { display: block; position: relative; z-index: 12; }
  .menu-button span:not(.sr-only) { display: block; width: 27px; height: 2px; background: var(--ink); margin: 7px 6px; transition: .25s; }
  .menu-button[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

  /* visibility, not just transform — otherwise the links stay in the tab
     order while the panel is off-screen. */
  .site-nav { position: fixed; inset: 0; background: var(--lime); flex-direction: column; align-items: flex-start; justify-content: center; padding: 8vw; font-size: 30px; visibility: hidden; transform: translateY(-100%); transition: transform .4s cubic-bezier(.7,0,.2,1), visibility 0s .4s; }
  .site-nav.open { visibility: visible; transform: none; transition-delay: 0s; }
  .nav-cta { border: 0; padding: 0; border-radius: 0; }

  .hero { height: auto; max-height: none; min-height: 0; grid-template-columns: 1fr; padding-top: 145px; }
  .statement-grid { grid-template-columns: 1fr; }
  .statement-copy { max-width: 600px; margin-left: auto; }
  .section-heading { grid-template-columns: 1fr; gap: 30px; }
  .section-heading .section-kicker { margin-bottom: 20px; }
  .section-heading > p { max-width: 400px; }
  .ecosystem-cards { grid-template-columns: 1fr; }
  .eco-card { min-height: 610px; }
  .territory-card { min-height: 430px; }
  .approach-intro { grid-template-columns: 1fr; }
  .thornfree-path { opacity: .6; }
  /* The stage shrinks with the viewport; a fixed min-height just leaves a gap. */
  .carry { min-height: 0; }
  .carry-sticky { min-height: 0; grid-template-columns: 1fr 1fr; }
  .carry-stage { width: min(48vw, 560px); }
  .stack-node { min-width: 84px; padding: 10px 12px; }
  .integration-core { width: 108px; height: 108px; }
}

@media (max-width: 620px) {
  .site-header, .hero, .section { padding-left: 22px; padding-right: 22px; }
  .site-header { padding-top: 0; padding-bottom: 0; }
  .thornfree-path { display: none; }

  .hero { padding-top: 125px; padding-bottom: 50px; }
  /* -.075em is drawn for display sizes; it closes up too far at 40-52px. */
  h1 { font-size: clamp(40px, 12vw, 52px); letter-spacing: -.045em; }
  .hero h1 { line-height: .98; }
  .hero-line { white-space: normal; }
  .hero h1 em { font-size: .94em; display: block; }
  .eyebrow { margin-bottom: 28px; }
  .hero-intro { width: 100%; max-width: 100%; font-size: 16px; margin: 35px 0 30px; overflow-wrap: break-word; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 14px; }
  .hero-copy { min-width: 0; }
  .hero-art { width: 100%; min-width: 0; height: 660px; margin: 22px 0 0; border-radius: 3px; }

  .universe-tabs { flex-basis: 62px; }
  .universe-tab { font-size: var(--micro); letter-spacing: .04em; }
  .universe-tab span { display: none; }
  /* The copy row is content-bound at this width, so the auto margin has no
     slack to give — size the row to fit and space the eyebrow explicitly. */
  .universe-scene { grid-template-columns: 1fr; grid-template-rows: 236px minmax(0, 1fr); }
  .scene-copy { padding: 25px; border-right: 0; border-bottom: 1px solid var(--line); }
  .scene-copy h2 { font-size: 32px; }
  .scene-copy > p { margin-bottom: 14px; }
  .friction-proof { margin-top: 13px; padding-top: 10px; }
  .moment-card { width: 66%; min-height: 265px; }
  .workflow-demo { --igap: 5px; --drop: 10px; --run: 15px; --out: 15px; padding: 22px 18px; }
  .workflow-inputs span { padding: 9px 2px; font-size: 9px; }
  .workflow-merge { width: 92px; height: 92px; }
  .workflow-merge b { font-size: 13px; }
  .workflow-merge small { width: 76px; font-size: 9px; }
  .workflow-output { padding: 13px 14px; }
  .systems-demo { --pill-h: 32px; --inset: 16px; --stub: 7px; --gap: 5px; --tail: 9px;
    grid-template-columns: 1fr 75px 1fr; padding: 24px 12px; }
  .system-bridge { width: 65px; height: 65px; }
  .system-result { min-height: 170px; padding: 14px; }
  .system-result strong { font-size: 19px; }
  .universe-hint { font-size: var(--micro); }

  .section { padding-top: 90px; padding-bottom: 90px; }
  .section-kicker { margin-bottom: 42px; }
  .statement h2, .section-heading h2, .approach h2 { font-size: 48px; }
  .statement-copy { padding-left: 20px; }
  .context-note { width: auto; max-width: 100%; }

  .ecosystem { padding-bottom: 100px; }
  .eco-card { min-height: 570px; }
  .territory-card { min-height: 430px; }
  .registry-intro { grid-template-columns: 1fr; gap: 12px; }
  .registry-intro span { justify-self: start; }
  .project-grid { grid-template-columns: 1fr; }
  .project-tile { min-height: 540px; padding: 22px; }
  .card-visual { height: 220px; }
  .ecosystem-cards .eco-card.context-active { transform: translateY(-6px); }

  .carry { padding: 80px 22px; }
  .carry-sticky { grid-template-columns: 1fr; grid-template-rows: auto auto; gap: 28px; align-items: center; }
  .carry-copy { align-self: end; }
  .carry-copy .section-kicker { margin-bottom: 22px; }
  .carry-copy h2 { font-size: 48px; }
  .carry-copy > p { margin: 16px 0 18px; font-size: 13px; }
  .carry-stage { width: min(88vw, 430px); align-self: center; justify-self: center; }
  /* Pull the flanking nodes inward so they stay inside the narrow stage. */
  .stack-node { min-width: 72px; padding: 8px 10px; font-size: 9px; letter-spacing: .05em; }
  .node-2 { left: 84%; }
  .node-5 { left: 16%; }
  .integration-core { width: 88px; height: 88px; }
  .integration-core span { font-size: 16px; }
  .integration-core small { width: 76px; font-size: 9px; }

  .open-intro { margin-bottom: 45px; }
  .open-intro h2 { font-size: 40px; }
  .open-grid { grid-template-columns: 1fr; }
  .open-column { padding: 26px 22px 28px; }
  .open-status { border-radius: 18px; }
  .open-status time { margin-left: 0; width: 100%; }

  .approach-intro { margin-bottom: 65px; }
  .principle { grid-template-columns: 60px 1fr; gap: 15px; padding: 28px 0; }
  .principle-num { display: none; }
  .principle-icon { width: 45px; height: 45px; }

  .contact { padding-top: 100px; padding-bottom: 50px; }
  .project-registry { margin-top: 60px; }
  .contact-link { position: relative; display: block; font-size: 17vw; padding-bottom: 30px; }
  .contact-statement { font-size: 46px; line-height: .94; letter-spacing: -.05em; }
  .contact-link span { position: absolute; right: 0; bottom: 35px; }
  .contact-meta { grid-template-columns: 1fr; gap: 20px; }
  .contact-meta p:last-child { justify-self: start; text-align: left; }
  footer { margin: 0 22px; flex-wrap: wrap; gap: 18px; }
  footer p { order: 3; width: 100%; }
}

/* ThornFree standard: one concrete, reusable quality system ================= */
/* ThornFree standard: one concrete, reusable quality system ================= */
.standard-heading {
  display: grid;
  grid-template-columns: .58fr 1.42fr;
  gap: clamp(38px, 6vw, 110px);
  align-items: start;
  margin-bottom: 78px;
}
.standard-heading .section-kicker { margin: 12px 0 0; }
.standard-heading h2 {
  max-width: 1080px;
  margin: 0;
  font-size: clamp(54px, 6.4vw, 102px);
  line-height: .89;
  letter-spacing: -.07em;
  font-weight: 500;
}
.standard-heading h2 em { color: var(--coral-display); }
.standard-heading > div:last-child > p {
  width: min(620px, 84%);
  margin: 35px 0 0 auto;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}
.standard-ledger {
  --standard-meter: 74%;
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(480px, 1.28fr);
  min-height: 650px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 5px;
  background: var(--paper);
  box-shadow: 18px 18px 0 rgba(26, 27, 23, .08);
}
.standard-index { display: grid; grid-template-rows: repeat(4, 1fr); border-right: 1px solid var(--ink); }
.standard-tab {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-rows: auto auto;
  column-gap: 18px;
  align-content: center;
  padding: 26px 28px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: color .32s ease, background .32s ease, padding-left .32s ease;
}
.standard-tab:last-child { border-bottom: 0; }
.standard-tab::after {
  content: "";
  position: absolute;
  right: 26px;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  border-radius: 50%;
  transform: translateY(-50%);
  transition: background .25s, transform .25s;
}
.standard-tab:hover { padding-left: 34px; background: rgba(255,255,255,.35); }
.standard-tab:focus-visible { outline: 3px solid var(--coral); outline-offset: -4px; }
.standard-tab.is-active { background: var(--ink); color: var(--white); }
.standard-tab.is-active::after { background: var(--context-accent); transform: translateY(-50%) scale(1.35); }
.standard-tab > span { grid-row: 1 / 3; align-self: center; font: 12px var(--mono); opacity: .66; }
.standard-tab b { font-size: 20px; line-height: 1.15; letter-spacing: -.025em; font-weight: 550; }
.standard-tab small { margin-top: 7px; color: currentColor; opacity: .62; font-size: 12px; line-height: 1.35; }
.standard-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(34px, 4vw, 66px);
  background-color: #f2efe7;
  background-image: linear-gradient(rgba(26,27,23,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(26,27,23,.055) 1px, transparent 1px);
  background-size: 54px 54px;
  outline: none;
}
.standard-stage-top { display: flex; justify-content: space-between; font: var(--label) var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.standard-stage-top b { color: var(--ink); font-weight: 500; }
.standard-gauge { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; margin: 70px 0 50px; font: 10px var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.standard-gauge > i { position: relative; height: 2px; background: rgba(26,27,23,.18); }
.standard-gauge > i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--standard-meter); background: var(--ink); transition: width .55s cubic-bezier(.2,.8,.2,1); }
.standard-gauge b { position: absolute; left: var(--standard-meter); top: 50%; width: 22px; height: 22px; border: 5px solid #f2efe7; border-radius: 50%; background: var(--context-accent); box-shadow: 0 0 0 1px var(--ink); transform: translate(-50%,-50%); transition: left .55s cubic-bezier(.2,.8,.2,1), background .3s; }
.standard-question { max-width: 780px; margin: 0; font-size: clamp(37px, 4.2vw, 68px); line-height: .98; letter-spacing: -.055em; text-wrap: balance; }
.standard-pass { max-width: 640px; margin-top: auto; padding: 24px 110px 0 0; border-top: 1px solid var(--ink); }
.standard-pass small { display: block; margin-bottom: 10px; font: var(--label) var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--context-ink); }
.standard-pass strong { font-size: 16px; line-height: 1.5; font-weight: 500; }
.standard-question,
.standard-pass strong { transition: opacity .18s ease, transform .18s ease; }
.standard-stage.is-switching .standard-question,
.standard-stage.is-switching .standard-pass strong { opacity: .15; transform: translateY(5px); }
.standard-seal { position: absolute; right: 36px; bottom: 30px; width: 74px; height: 74px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; transform: rotate(-8deg); }
.standard-seal span { font: 600 17px var(--sans); }
.standard-seal small { position: absolute; top: 78px; width: 100px; text-align: center; font: 8px/1.25 var(--mono); letter-spacing: .08em; }

.studio-note { background: var(--ink); color: var(--white); border-top: 0; }
.studio-note .section-kicker { color: rgba(255,255,255,.68); }
.studio-note .section-kicker span { border-color: rgba(255,255,255,.4); }
.studio-note-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(60px, 10vw, 180px); align-items: end; }
.studio-note h2 { max-width: 980px; margin: 0; font-size: clamp(58px, 7.6vw, 124px); line-height: .84; letter-spacing: -.075em; font-weight: 500; }
.studio-note h2 em { color: var(--lime); }
.studio-note-copy { padding-left: 34px; border-left: 1px solid rgba(255,255,255,.28); }
.studio-note-copy > p { margin: 0 0 38px; color: rgba(255,255,255,.72); font-size: 16px; line-height: 1.65; }
.studio-facts { border-top: 1px solid rgba(255,255,255,.28); }
.studio-facts span { display: grid; grid-template-columns: .55fr 1fr; gap: 18px; padding: 17px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.studio-facts small { font: 10px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.5); }
.studio-facts b { font-size: 13px; font-weight: 500; }
.studio-note time { display: block; margin-top: 32px; font: 10px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--coral); }

@media (max-width: 900px) {
  .standard-heading { grid-template-columns: 1fr; }
  .standard-heading > div:last-child > p { margin-left: 0; }
  .standard-ledger { grid-template-columns: 230px 1fr; }
  .studio-note-grid { grid-template-columns: 1fr; align-items: start; }
  .studio-note-copy { max-width: 660px; margin-left: auto; }
}

@media (max-width: 620px) {
  .standard-heading { gap: 24px; margin-bottom: 46px; }
  .standard-heading h2 { font-size: 46px; }
  .standard-heading > div:last-child > p { width: 100%; margin-top: 24px; }
  .standard-ledger { display: block; min-height: 0; box-shadow: 10px 10px 0 rgba(26,27,23,.08); }
  .standard-index { grid-template: repeat(2, 1fr) / repeat(2, 1fr); border-right: 0; border-bottom: 1px solid var(--ink); }
  .standard-tab { min-height: 105px; grid-template-columns: 25px 1fr; column-gap: 7px; padding: 18px 12px; border-right: 1px solid var(--ink); }
  .standard-tab:nth-child(2) { border-right: 0; }
  .standard-tab:nth-child(3) { border-bottom: 0; }
  .standard-tab:hover { padding-left: 12px; }
  .standard-tab::after,
  .standard-tab small { display: none; }
  .standard-tab b { font-size: 15px; }
  .standard-stage { min-height: 510px; padding: 28px 22px 32px; background-size: 38px 38px; }
  .standard-gauge { margin: 55px 0 38px; }
  .standard-question { font-size: 38px; }
  .standard-pass { padding-right: 75px; }
  .standard-pass strong { font-size: 14px; }
  .standard-seal { right: 19px; bottom: 31px; width: 54px; height: 54px; }
  .standard-seal small { display: none; }
  .studio-note h2 { font-size: 55px; }
  .studio-note-grid { gap: 55px; }
  .studio-note-copy { margin: 0; padding-left: 20px; }
  .studio-facts span { grid-template-columns: 1fr; gap: 6px; }
}