/* ---------- Tokens ---------- */
:root {
  --bg: #0b0b0c;
  --surface: #141416;
  --surface-2: #1b1b1e;
  --text: #f1f1ec;
  --muted: #8e8e95;
  --line: #242428;
  --accent: #2bff88;      /* digital green — strokes, fills */
  --accent-ink: #2bff88;  /* green used as text */
  --on-accent: #04140b;
  --glow: 0 0 24px rgb(43 255 136 / .35);

  --f-display: "Inter Tight", system-ui, sans-serif;
  --f-hand: "Caveat", cursive;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1360px;
  --space: clamp(120px, 16vw, 240px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f7f7f3;
  --surface: #ffffff;
  --surface-2: #eeeee8;
  --text: #0f0f10;
  --muted: #6a6a70;
  --line: #e2e2da;
  --accent: #00d16a;
  --accent-ink: #008a45;
  --on-accent: #04140b;
  --glow: none;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--f-display); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background .35s var(--ease), color .35s var(--ease);
}
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--on-accent); }
.mono { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .02em; }
.hand { font-family: var(--f-hand); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; z-index: 200; border-radius: 6px; }
.skip:focus { left: 8px; }
kbd { border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; font-size: 11px; color: var(--muted); }
.spark { color: var(--accent-ink); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 18px var(--gutter);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 15px; }
.logo img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.nav-links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: 14px; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 8px; justify-self: end; }
.ask-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 8px 6px 12px; font-size: 13px; transition: border-color .2s; }
.ask-btn:hover { border-color: var(--accent); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { background: none; border: 0; padding: 4px 9px; border-radius: 999px; font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: none; flex: none; }
.icon-btn:hover { border-color: var(--muted); }
:root[data-theme="dark"] .i-moon { display: none; }
:root[data-theme="light"] .i-sun { display: none; }

/* ---------- Scribbles ---------- */
.mark { position: relative; display: inline-block; white-space: nowrap; }
.scribble { position: absolute; pointer-events: none; overflow: visible; }
.scribble use {
  fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease);
}
.in-view .scribble use, .scribble.in-view use { stroke-dashoffset: 0; }
.s-under { left: -2%; width: 104%; height: .3em; bottom: -.14em; }
.s-circle { left: -10%; top: -14%; width: 120%; height: 130%; }
.s-circle use { transition-delay: .4s; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding: 14px 22px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; transition: transform .3s var(--ease), background .2s, border-color .2s, box-shadow .3s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { box-shadow: var(--glow); }
.btn-ghost { background: none; border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); }

/* ---------- Hero ---------- */
.hero { min-height: calc(100svh - 72px); display: flex; flex-direction: column; justify-content: center; padding-top: 64px; padding-bottom: 120px; position: relative; }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--muted); margin: 0 0 40px; }
.eyebrow .to { color: var(--accent-ink); }
.arrow-run { position: relative; width: 56px; height: 1px; background: var(--line); overflow: hidden; }
.arrow-run::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--accent); animation: run 2.2s var(--ease) infinite; }
@keyframes run { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.hero-title { font-weight: 900; letter-spacing: -.045em; line-height: 1; font-size: clamp(44px, 7.4vw, 116px); margin: 0; max-width: 12.5ch; }
.caret { display: inline-block; width: .09em; height: .78em; background: var(--accent); margin-left: .08em; vertical-align: -.04em; animation: blink 1.1s steps(1) infinite; box-shadow: var(--glow); }
@keyframes blink { 50% { opacity: 0; } }
.lead { font-size: clamp(18px, 1.6vw, 21px); font-weight: 300; color: var(--muted); margin: 44px 0 0; max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }
.hero-corners { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; display: flex; justify-content: space-between; align-items: end; color: var(--muted); }
.hero-corners .note { font-size: 22px; color: var(--accent-ink); transform: rotate(-3deg); letter-spacing: 0; }

/* ---------- Sections ---------- */
.section { padding-top: var(--space); }
.sec-head { margin-bottom: clamp(56px, 7vw, 104px); max-width: 1000px; }
.idx { display: block; color: var(--muted); margin-bottom: 22px; }
.sec-head h2 { margin: 0; font-size: clamp(34px, 4.6vw, 68px); font-weight: 800; letter-spacing: -.04em; line-height: 1.04; }
.sec-sub { margin: 22px 0 0; color: var(--muted); max-width: 52ch; font-size: 18px; }

/* ---------- Problems (diff: deprecated → shipped) ---------- */
.problems { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.problem { display: grid; grid-template-columns: 70px 1fr 1fr; gap: clamp(20px, 4vw, 64px); padding: clamp(36px, 4.4vw, 60px) 0; border-bottom: 1px solid var(--line); align-items: start; }
.problem .num { color: var(--muted); padding-top: 2px; }
.problem .lbl { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; letter-spacing: .04em; margin-bottom: 14px; }
.problem .lbl i { font-style: normal; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; font-size: 13px; line-height: 1; }
.problem p { margin: 0; }
.problem .old .lbl { color: var(--muted); }
.problem .old .lbl i { border: 1px solid var(--line); }
.problem .old p { font-size: clamp(20px, 2vw, 27px); font-weight: 500; letter-spacing: -.02em; line-height: 1.3; color: var(--text); transition: color 1s var(--ease) .15s, opacity 1s var(--ease) .15s; }
.problem.in-view .old p { color: var(--muted); opacity: .6; }
.problem .new { position: relative; padding-left: 22px; border-left: 2px solid var(--accent); opacity: 0; transform: translateX(-10px); transition: opacity .8s var(--ease) .55s, transform .8s var(--ease) .55s; }
.problem.in-view .new { opacity: 1; transform: none; }
.problem .new .lbl { color: var(--accent-ink); }
.problem .new .lbl i { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.problem .new p { font-size: clamp(20px, 2vw, 27px); font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.problem .where { display: block; margin-top: 16px; color: var(--muted); }

/* ---------- Work cards ---------- */
.cases { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 4vw, 64px); row-gap: clamp(72px, 9vw, 140px); }
.cases .card:nth-child(even) { margin-top: clamp(80px, 12vw, 180px); }
.card { display: block; text-decoration: none; color: inherit; text-align: left; background: none; border: 0; padding: 0; width: 100%; }
@media (pointer: fine) { .card { cursor: none; } }
.card-media { position: relative; aspect-ratio: 4 / 3.3; border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.1s var(--ease); }
.card:hover .card-media img, .card:focus-visible .card-media img { transform: scale(1.045); }
.card-media .tag { position: absolute; left: 16px; top: 16px; z-index: 1; background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid color-mix(in srgb, var(--text) 12%, transparent); border-radius: 999px; padding: 6px 12px; color: var(--text); }
.card-media .tag b { color: var(--accent-ink); font-weight: 500; }
.card-info { padding-top: 26px; }
.card-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.card h3 { font-size: clamp(24px, 2.3vw, 32px); line-height: 1.12; letter-spacing: -.03em; font-weight: 700; margin: 12px 0 0; max-width: 22ch; transition: color .3s; }
.card:hover h3 { color: var(--accent-ink); }
.card .read { display: inline-flex; gap: 8px; margin-top: 18px; color: var(--muted); font-size: 14px; }
.card:hover .read { color: var(--text); }

.cursor {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: var(--accent); color: var(--on-accent); font-weight: 500; font-size: 12px;
  transform: translate(-50%, -50%) scale(0); transition: transform .35s var(--ease); box-shadow: var(--glow);
}
.cursor.on { transform: translate(-50%, -50%) scale(1); }
@media (pointer: coarse) { .cursor { display: none; } }

/* ---------- Design × AI ---------- */
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.big-p { font-size: clamp(21px, 1.9vw, 26px); line-height: 1.4; letter-spacing: -.01em; margin-top: 0; }
.ai-copy > p:not(.big-p) { color: var(--muted); }
.ai-list { list-style: none; padding: 0; margin: 40px 0 0; border-top: 1px solid var(--line); }
.ai-list li { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.ai-list b { font-weight: 600; }
.ai-list span { color: var(--muted); font-size: 16px; }
.term { margin: 0; background: #070708; border: 1px solid #222; border-radius: 18px; overflow: hidden; color: #d6d6d0; position: sticky; top: 100px; box-shadow: 0 40px 80px -40px rgb(0 0 0 / .6); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid #1d1d20; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a2a2e; }
.term-bar span { margin-left: 8px; color: #6f6f76; font-size: 11.5px; }
.term-body { margin: 0; padding: 22px 20px; min-height: 340px; font-size: 13px; line-height: 1.75; white-space: pre-wrap; }
.term-body .c { color: #2bff88; }
.term-body .d { color: #6f6f76; }
.term-body .k { color: #9ecbff; }
.term-body .cur { display: inline-block; width: 8px; height: 15px; background: #2bff88; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
.term figcaption { padding: 10px 20px 14px; color: #5d5d63; font-size: 11px; border-top: 1px solid #1d1d20; }

/* ---------- Process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 48px); }
.steps li { border-top: 1px solid var(--line); padding-top: 24px; }
.steps .n { color: var(--accent-ink); }
.steps h3 { font-size: 22px; letter-spacing: -.02em; margin: 40px 0 10px; font-weight: 700; }
.steps p { color: var(--muted); margin: 0; font-size: 16px; }

/* ---------- Branding ---------- */
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 2vw, 24px); }
.mosaic figure { margin: 0; border-radius: 20px; overflow: hidden; background: var(--surface-2); height: clamp(220px, 30vw, 420px); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.mosaic figure:hover img { transform: scale(1.04); }
.m1 { grid-column: span 7; } .m2 { grid-column: span 5; }
.m3 { grid-column: span 5; } .m4 { grid-column: span 7; }
.link-arrow { display: inline-flex; gap: 8px; margin-top: 36px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* ---------- About ---------- */
.sec-head h2 em { font-style: normal; color: var(--accent-ink); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 140px); }
.about-copy p { color: var(--muted); max-width: 52ch; margin-top: 0; }
.stats { list-style: none; padding: 0; margin: 48px 0 0; display: flex; gap: clamp(28px, 5vw, 64px); }
.stats strong { display: block; font-size: clamp(40px, 4.4vw, 60px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.stats span { color: var(--muted); font-size: 14px; display: block; margin-top: 8px; max-width: 16ch; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.timeline .yr { color: var(--muted); padding-top: 3px; }
.timeline b { display: block; font-weight: 600; }
.timeline span { color: var(--muted); font-size: 15px; }

/* ---------- Contact ---------- */
.contact { padding-bottom: var(--space); }
.contact-title { font-size: clamp(44px, 8vw, 128px); font-weight: 900; letter-spacing: -.05em; line-height: 1.02; margin: 0 0 56px; }
.mail { font-size: clamp(22px, 3vw, 40px); font-weight: 600; letter-spacing: -.02em; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 8px; word-break: break-all; }
.mail:hover { color: var(--accent-ink); }
.socials { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.socials a:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; padding-bottom: 36px; border-top: 1px solid var(--line); color: var(--muted); }
.foot a { text-decoration: none; }

/* ---------- Case study (full page) ---------- */
.cs { position: fixed; inset: 0; z-index: 100; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; }
.cs[hidden] { display: none; }
.cs.enter { animation: csIn .6s var(--ease); }
@keyframes csIn { from { opacity: 0; transform: translateY(40px); } }
.cs-progress { position: sticky; top: 0; height: 2px; z-index: 3; }
.cs-progress i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); box-shadow: var(--glow); }
.cs-top { position: sticky; top: 2px; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 14px var(--gutter); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.cs-top .icon-btn { justify-self: end; }
.cs-back { justify-self: start; background: none; border: 0; padding: 6px 0; font-size: 14px; color: var(--muted); }
.cs-back:hover { color: var(--text); }
.cs-crumb { color: var(--muted); }
.cs-hero { padding-top: clamp(64px, 10vw, 140px); }
.cs-hero .client { color: var(--accent-ink); }
.cs-hero h1 { font-size: clamp(40px, 6.6vw, 100px); font-weight: 900; letter-spacing: -.045em; line-height: 1; margin: 24px 0 32px; max-width: 15ch; }
.cs-hero .summary { font-size: clamp(19px, 1.7vw, 23px); font-weight: 300; color: var(--muted); max-width: 56ch; margin: 0; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: clamp(56px, 7vw, 96px) 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); font-family: var(--f-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; }
.facts dd { margin: 6px 0 0; }
.cs-cover { margin-top: clamp(56px, 7vw, 96px); }
.cs-cover img, .cs-gallery img { width: 100%; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); }
.cs-block { display: grid; grid-template-columns: 240px 1fr; gap: clamp(24px, 5vw, 80px); padding-top: clamp(96px, 12vw, 180px); }
.cs-block > .label { position: sticky; top: 100px; align-self: start; }
.cs-block .label .n { color: var(--accent-ink); display: block; }
.cs-block .label h2 { font-size: 15px; font-weight: 600; margin: 8px 0 0; }
.cs-block .lede { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.35; letter-spacing: -.015em; margin: 0 0 40px; max-width: 34ch; }
.cs-list { list-style: none; margin: 0; padding: 0; counter-reset: i; }
.cs-list li { display: grid; grid-template-columns: 48px 1fr; padding: 22px 0; border-top: 1px solid var(--line); counter-increment: i; }
.cs-list li::before { content: counter(i, decimal-leading-zero); font-family: var(--f-mono); font-size: 12px; color: var(--muted); padding-top: 4px; }
.cs-list b { display: block; font-weight: 600; margin-bottom: 4px; }
.cs-list span { color: var(--muted); }
.cs-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); padding-top: clamp(96px, 12vw, 160px); align-items: start; }
.cs-gallery .wide { grid-column: 1 / -1; }
.impact { display: grid; grid-template-columns: repeat(2, 1fr); padding: 0; margin: 0; border-top: 1px solid var(--line); }
.impact li { list-style: none; padding: 32px 24px 32px 0; border-bottom: 1px solid var(--line); }
.impact strong { display: block; font-size: clamp(52px, 6vw, 92px); font-weight: 900; letter-spacing: -.05em; line-height: .95; color: var(--accent-ink); }
.impact span { display: block; color: var(--muted); margin-top: 10px; max-width: 30ch; }
.learn { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.3; letter-spacing: -.02em; margin: 0; max-width: 34ch; }
.learn + p { color: var(--muted); max-width: 56ch; margin-top: 24px; }
.cs-next { display: block; text-decoration: none; color: inherit; width: 100%; text-align: left; margin-top: clamp(120px, 14vw, 200px); padding: clamp(48px, 7vw, 100px) var(--gutter) clamp(56px, 8vw, 120px); background: var(--surface); border: 0; border-top: 1px solid var(--line); }
.cs-next .inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.cs-next .k { color: var(--muted); }
.cs-next h3 { font-size: clamp(34px, 4.6vw, 72px); font-weight: 900; letter-spacing: -.045em; line-height: 1; margin: 16px 0 0; transition: color .3s; }
.cs-next:hover h3 { color: var(--accent-ink); }
.cs-next .img { border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; }
.cs-next img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
.cs-next:hover img { transform: scale(1.04); }

/* ---------- Ask ---------- */
.ask { width: min(640px, 100vw - 24px); max-height: min(640px, 100dvh - 40px); padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--text); margin: 12vh auto auto; }
.ask[open] { display: flex; flex-direction: column; animation: csIn .35s var(--ease); }
.ask::backdrop { background: rgb(0 0 0 / .55); backdrop-filter: blur(6px); }
.ask-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.ask-head h2 { margin: 0; font-size: 13px; font-weight: 500; flex: 1; }
.ask-out { padding: 24px 20px; overflow-y: auto; min-height: 160px; flex: 1; }
.ask-out .q { font-family: var(--f-mono); font-size: 12.5px; color: var(--accent-ink); margin: 0 0 10px; }
.ask-out .a { margin: 0; font-size: 17px; line-height: 1.6; }
.ask-out .a .cur { display: inline-block; width: 7px; height: 1em; background: var(--accent); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
.ask-hint { color: var(--muted); margin: 0; }
.ask-qs { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 18px; }
.ask-qs button { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 8px 14px; font-size: 14px; text-align: left; transition: border-color .2s, color .2s; }
.ask-qs button:hover, .ask-qs button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent-ink); }
.ask-foot { margin: 0; padding: 12px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav nav { display: none; }
  .ask-btn kbd { display: none; }
  .ai-grid, .about-grid { grid-template-columns: 1fr; }
  .term { position: static; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .problem { grid-template-columns: 1fr; gap: 16px; }
  .problem .num { padding: 0; }
  .cs-block { grid-template-columns: 1fr; gap: 28px; }
  .cs-block > .label { position: static; }
  .cs-next .inner { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .logo span { display: none; }
  .ask-btn span[data-i18n] { display: none; }
  .ask-btn { padding: 8px 12px; }
  .cases { grid-template-columns: 1fr; }
  .cases .card:nth-child(even) { margin-top: 0; }
  .steps { grid-template-columns: 1fr; }
  .steps h3 { margin-top: 16px; }
  .mosaic figure { grid-column: span 12; height: auto; aspect-ratio: 4 / 3; }
  .hero-corners { position: static; margin-top: 64px; flex-wrap: wrap; gap: 12px; }
  .hero-corners > span:last-child { display: none; }
  .hero { padding-bottom: 40px; min-height: 0; padding-top: 72px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .impact { grid-template-columns: 1fr; }
  .cs-gallery { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .stats { gap: 24px; }
  .contact-title { font-size: 11vw; }
  .cs-crumb { display: none; }
  .cs-top { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; transition-delay: 0s !important; }
  .reveal, .problem .new { opacity: 1; transform: none; }
  .scribble use { stroke-dashoffset: 0; }
  .cursor { display: none; }
  .cv-datagran .wire span { display: none; }
}

/* ---------- Code-drawn covers ---------- */
.cover { position: absolute; inset: 0; overflow: hidden; font-family: var(--f-mono); --c-bg: var(--surface); --c-card: var(--bg); --c-line: var(--line); --c-bar: color-mix(in srgb, var(--text) 14%, transparent); }
.cover::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--text) 10%, transparent) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%); }

/* Ross: data-dense workspace */
.cv-ross { background: radial-gradient(120% 90% at 20% 0%, color-mix(in srgb, #2d5bff 22%, var(--c-bg)), var(--c-bg) 70%); }
.cv-ross .win { position: absolute; left: 8%; top: 13%; width: 74%; bottom: -4%; background: var(--c-card); border: 1px solid var(--c-line); border-radius: 14px; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .5); transition: transform 1s var(--ease); }
.cv-ross .win-top { display: flex; align-items: center; gap: 6%; padding: 4% 5%; border-bottom: 1px solid var(--c-line); font-size: clamp(8px, .8vw, 11px); color: var(--muted); white-space: nowrap; }
.cv-ross .win-top b { color: var(--text); font-weight: 500; }
.cv-ross .win-top .on { color: var(--accent-ink); }
.cv-ross .win-top em { margin-left: auto; width: 16px; height: 16px; border-radius: 50%; background: var(--c-bar); flex: none; }
.cv-ross .win-filters { display: flex; gap: 3%; padding: 4% 5% 3%; }
.cv-ross .win-filters span { height: 14px; flex: 1; border: 1px solid var(--c-line); border-radius: 6px; }
.cv-ross .win-filters .btn-g { flex: .6; background: var(--accent); border: 0; }
.cv-ross .tbl { padding: 0 5%; }
.cv-ross .row { position: relative; display: grid; grid-template-columns: 12px 1.4fr 1fr 1fr 1fr; align-items: center; gap: 5%; padding: 3.1% 2%; border-top: 1px solid var(--c-line); }
.cv-ross .row u { width: 11px; height: 11px; border: 1px solid var(--c-line); border-radius: 3px; }
.cv-ross .row i { display: block; height: 6px; width: var(--w); border-radius: 3px; background: var(--c-bar); }
.cv-ross .row.hl { background: color-mix(in srgb, var(--accent) 9%, transparent); box-shadow: inset 2px 0 var(--accent); }
.cv-ross .row.hl u { background: var(--accent); border-color: var(--accent); }
.cv-ross .panel s { float: right; text-decoration: none; font-size: clamp(7px, .7vw, 10px); color: var(--on-accent); background: var(--accent); border-radius: 999px; padding: 2px 8px; }
.cv-ross .panel { position: absolute; right: 5%; top: 30%; width: 30%; background: var(--c-card); border: 1px solid var(--c-line); border-radius: 12px; padding: 4%; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .55); transform: translateX(14%); transition: transform 1s var(--ease); }
.cv-ross .panel p { overflow: hidden; margin: 0 0 10%; font-size: clamp(8px, .8vw, 11px); color: var(--text); }
.cv-ross .field { height: 14px; border: 1px solid var(--c-line); border-radius: 5px; margin-bottom: 8%; }
.cv-ross .field.short { width: 60%; }
.cv-ross .panel-btn { height: 16px; width: 55%; margin-left: auto; border-radius: 999px; background: var(--accent); margin-top: 12%; }
@media (max-width: 700px) { .cv-ross .win { top: 22%; } .cv-ross .panel { top: 36%; } .cv-datagran .flow { top: 30%; } }
.card:hover .cv-ross .panel { transform: translateY(-4%); }
.card:hover .cv-ross .win { transform: translateY(-2%); }

/* Datagran: data flow */
.cv-datagran { background: radial-gradient(110% 90% at 80% 10%, color-mix(in srgb, var(--accent) 16%, var(--c-bg)), var(--c-bg) 65%); }
.cv-datagran .flow { position: absolute; left: 7%; right: 7%; top: 24%; display: flex; align-items: center; }
.cv-datagran .node { position: relative; flex: 1 1 0; min-width: 0; background: var(--c-card); border: 1px solid var(--c-line); border-radius: 12px; padding: 5% 4.5%; box-shadow: 0 24px 40px -24px rgb(0 0 0 / .5); transition: transform .8s var(--ease); }
.cv-datagran .node small { display: block; font-size: clamp(7px, .65vw, 10px); color: var(--muted); margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-datagran .node b { display: block; font-family: var(--f-display); font-weight: 700; font-size: clamp(11px, 1.15vw, 16px); color: var(--text); letter-spacing: -.01em; white-space: nowrap; }
.cv-datagran .node i { position: absolute; right: 10px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--c-bar); }
.cv-datagran .node.live { border-color: color-mix(in srgb, var(--accent) 60%, var(--c-line)); }
.cv-datagran .node.live i { background: var(--accent); box-shadow: var(--glow); }
.cv-datagran .wire { position: relative; flex: 0 0 9%; height: 1px; background: repeating-linear-gradient(90deg, var(--muted) 0 4px, transparent 4px 8px); opacity: .8; }
.cv-datagran .wire span { position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: var(--glow); animation: travel 2.4s linear infinite; }
.cv-datagran .wire:nth-child(4) span { animation-delay: 1.2s; }
@keyframes travel { from { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: calc(100% - 7px); opacity: 0; } }
.cv-datagran .chart { position: absolute; left: 7%; right: 7%; bottom: 0; height: 36%; display: flex; align-items: flex-end; gap: 2.4%; padding: 0 2%; }
.cv-datagran .chart i { flex: 1; height: var(--h); border-radius: 6px 6px 0 0; background: linear-gradient(to top, color-mix(in srgb, var(--accent) 8%, transparent), color-mix(in srgb, var(--accent) 42%, transparent)); transform-origin: bottom; transform: scaleY(.85); transition: transform .9s var(--ease); }
.cv-datagran .chart i:last-child { background: var(--accent); }
.card:hover .cv-datagran .chart i { transform: scaleY(1); }
.card:hover .cv-datagran .node { transform: translateY(-6%); }

/* ---------- Criterio: hero ---------- */
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero-title { max-width: none; font-size: clamp(44px, 6.4vw, 104px); }
.opts { position: relative; margin: 0; }
.opts-cap { display: block; color: var(--muted); margin-bottom: 14px; min-height: 1.2em; }
.opts-cap .c { color: var(--accent-ink); }
.opts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.opt { position: relative; aspect-ratio: 4 / 3.2; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 12% 10% 10%; opacity: 0; transform: translateY(8px) scale(.98); transition: opacity .5s var(--ease), transform .5s var(--ease), border-color .4s, box-shadow .4s; }
.opt.on { opacity: 1; transform: none; }
.decided .opt.on:not(.pick) { opacity: .22; transform: scale(.97); }
.opt.pick { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--glow); }
.opt-n { position: absolute; left: 8px; top: 6px; font-size: 9.5px; color: var(--muted); }
.opt.pick .opt-n { color: var(--accent-ink); }
.opt-ui { height: 100%; display: grid; gap: 6%; }
.opt-ui i { display: block; border-radius: 3px; background: color-mix(in srgb, var(--text) 13%, transparent); }
.opt.pick .opt-ui i:first-child { background: var(--accent); }
.o-list .opt-ui { grid-template-rows: repeat(6, 1fr); } .o-list i { width: 90%; } .o-list i:nth-child(2n) { width: 60%; }
.o-cards .opt-ui { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.o-split .opt-ui { grid-template-columns: 1fr 1.6fr; grid-template-rows: repeat(3, 1fr); } .o-split i:first-child { grid-row: span 3; }
.o-chart .opt-ui { grid-template-columns: repeat(6, 1fr); align-items: end; } .o-chart i:nth-child(1) { height: 40%; } .o-chart i:nth-child(2) { height: 65%; } .o-chart i:nth-child(3) { height: 50%; } .o-chart i:nth-child(4) { height: 85%; } .o-chart i:nth-child(5) { height: 70%; } .o-chart i:nth-child(6) { height: 100%; }
.o-form .opt-ui { grid-template-rows: repeat(6, 1fr); } .o-form i:last-child { width: 45%; justify-self: end; }
.o-hero .opt-ui { grid-template-rows: 2.4fr repeat(5, .5fr); } .o-hero i:nth-child(n+2) { width: 70%; } .o-hero i:nth-child(n+4) { display: none; }
.o-table .opt-ui { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 1fr); }
.o-grid .opt-ui { grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; gap: 8%; } .o-grid i { border-radius: 999px; }
.o-feed .opt-ui { grid-template-rows: 1.4fr .4fr 1.4fr .4fr; grid-template-columns: 1fr; } .o-feed i:nth-child(n+5) { display: none; } .o-feed i:nth-child(2n) { width: 55%; }
.opts-note { position: absolute; left: var(--px, 60%); top: var(--py, 40%); transform: translate(12px, -70%) rotate(-5deg); font-size: clamp(20px, 1.8vw, 26px); color: var(--accent-ink); white-space: nowrap; opacity: 0; transition: opacity .5s var(--ease) .2s; pointer-events: none; }
.decided .opts-note { opacity: 1; }

/* ---------- Criterio: decisions list ---------- */
.problem { grid-template-columns: 1fr 1fr; }
.problem .num { display: none; }
.problem .old p { opacity: 1 !important; }
.problem.in-view .old p { color: var(--muted); }
.alts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.alts .lbl { margin: 0 4px 0 0; color: var(--muted); }
.alt { font-size: 13.5px; color: var(--muted); border: 1px dashed var(--line); border-radius: 999px; padding: 4px 12px; opacity: .75; }
.problem .new .lbl i { font-size: 11px; }

/* ---------- Criterio: cards + case ---------- */
.card-call { margin: 14px 0 0; color: var(--text); font-size: 16px; }
.card-call .mono { color: var(--accent-ink); font-size: 11.5px; margin-right: 8px; text-transform: uppercase; letter-spacing: .06em; }
.cs-call { padding-top: clamp(96px, 12vw, 170px); }
.cs-call .k { color: var(--accent-ink); }
.cs-call .call { font-size: clamp(38px, 5.4vw, 84px); font-weight: 900; letter-spacing: -.045em; line-height: 1; margin: 18px 0 24px; max-width: 16ch; }
.cs-call .why { font-size: clamp(18px, 1.6vw, 22px); color: var(--muted); max-width: 52ch; margin: 0; }

/* ---------- Criterio: section rail ---------- */
.rail { position: fixed; left: calc(var(--gutter) / 2 - 1px); top: 110px; bottom: 48px; width: 2px; z-index: 40; opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; }
.rail.on { opacity: 1; pointer-events: auto; }
.rail-track { position: absolute; inset: 0; display: block; background: color-mix(in srgb, var(--text) 16%, transparent); }
.rail-track i { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(0); }
.rail ol { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.rail li { position: absolute; left: 0; transform: translateY(-50%); }
.rail a { display: flex; align-items: center; gap: 10px; text-decoration: none; position: relative; left: -4px; }
.rail a::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: 1px solid var(--muted); transition: background .3s, border-color .3s, transform .3s; }
.rail b { font-weight: 400; font-size: 10px; color: var(--muted); transition: color .3s; }
.rail span { font-size: 10.5px; white-space: nowrap; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s; pointer-events: none; }
.rail a:hover span, .rail a:focus-visible span { opacity: 1; transform: none; }
.rail li.active a::before { background: var(--accent); border-color: var(--accent); transform: scale(1.2); box-shadow: var(--glow); }
.rail li.active b { color: var(--accent-ink); }

@media (max-width: 1100px) { .rail { display: none; } }
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .opts { max-width: 460px; margin-top: 16px; }
  .problem { grid-template-columns: 1fr; }
}
@media (max-width: 700px) { .opts-note { font-size: 19px; } }

/* =====================================================================
   Positioning v3 — "I design systems for how products get built"
   ===================================================================== */
.hero .hero-title { max-width: 15ch; font-size: clamp(44px, 7vw, 112px); }
.hero .eyebrow .dot { background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.hero-corners .tags { color: var(--muted); }

/* ---------- 01 The thread ---------- */
.thread { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(16px, 2vw, 28px); align-items: end; }
.layer { border-top: 1px solid var(--line); padding-top: 20px; margin-bottom: calc(var(--i) * 34px); transition-delay: calc(var(--i) * 90ms); }
.layer .yr { color: var(--muted); }
.layer h3 { font-size: clamp(18px, 1.5vw, 22px); font-weight: 700; letter-spacing: -.02em; margin: 14px 0 8px; }
.layer p { color: var(--muted); font-size: 15px; margin: 0 0 14px; }
.layer .w { color: var(--muted); font-size: 11px; }
.layer.now { border-top: 2px solid var(--accent); }
.layer.now .yr, .layer.now .w { color: var(--accent-ink); }
.stairs { margin-top: clamp(80px, 10vw, 150px); }
.stairs p { margin: 0; padding-left: calc(var(--i) * clamp(16px, 5vw, 90px)); font-size: clamp(24px, 3.2vw, 48px); font-weight: 800; letter-spacing: -.035em; line-height: 1.2; color: var(--muted); transition-delay: calc(var(--i) * 140ms); }
.stairs p:last-child { color: var(--text); }
.stairs p:last-child::after { content: ""; display: inline-block; width: .5em; height: 3px; margin-left: .2em; vertical-align: middle; background: var(--accent); box-shadow: var(--glow); }

/* ---------- 02 Work (hierarchy) ---------- */
.cases { grid-template-columns: 1fr 1fr; row-gap: clamp(56px, 7vw, 110px); }
.cases .card:nth-child(even) { margin-top: 0; }
.card--feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.card--feature .card-media { aspect-ratio: 16 / 11; }
.card--feature .card-info { padding-top: 0; }
.card--feature h3 { font-size: clamp(30px, 3.2vw, 48px); line-height: 1.05; }
.card--compact { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(220px, 34%) 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; border-top: 1px solid var(--line); padding-top: clamp(40px, 5vw, 64px); }
.card--compact .card-media { aspect-ratio: 16 / 10; }
.card--compact .card-info { padding-top: 0; }
.card-metric { display: flex; align-items: baseline; gap: 14px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.card-metric strong { font-size: clamp(26px, 2.4vw, 36px); font-weight: 800; letter-spacing: -.035em; white-space: nowrap; color: var(--accent-ink); }
.card-metric span { color: var(--muted); font-size: 14.5px; line-height: 1.4; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
.card-foot .lvl { color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 11px; }
.card-foot .read { margin-top: 0; }

/* ---------- 03 The next layer (Vera) ---------- */
.sec-head h2 .dim { color: var(--muted); }
.next-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.next-copy p:not(.big-p) { color: var(--muted); max-width: 54ch; }
.wip { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 10px; margin-bottom: 28px; color: var(--text); }
.wip i { width: 8px; height: 8px; border-radius: 50%; background: #ffc53d; box-shadow: 0 0 0 4px rgb(255 197 61 / .18); }
.pipeline { list-style: none; margin: 0; padding: 0; position: relative; }
.pipeline::before { content: ""; position: absolute; left: 15px; top: 18px; bottom: 18px; width: 1px; background: var(--line); }
.pipeline li { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 18px; padding: 14px 0; }
.pipeline .n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); font-size: 11px; color: var(--muted); transition: background .4s, color .4s, border-color .4s, box-shadow .4s; position: relative; z-index: 1; }
.pipeline b { display: block; font-weight: 600; font-size: 17px; transition: color .4s; }
.pipeline span:not(.n) { color: var(--muted); font-size: 15px; }
.pipeline li.lit .n, .pipeline.all .n { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: var(--glow); }
.pipeline li:last-child b { color: var(--text); }

/* ---------- 04 Principles ---------- */
.principles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.principles-grid .sec-head { margin-bottom: 0; }
.pr-quote { font-size: clamp(36px, 4.6vw, 72px); font-weight: 900; letter-spacing: -.045em; line-height: 1.02; margin: 28px 0 0; }
.principles-grid .opts { margin: 0; }

/* ---------- 05 How I work ---------- */
.how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(16px, 2vw, 32px); }
.how li { border-top: 1px solid var(--line); padding-top: 22px; transition-delay: calc(var(--i) * 90ms); }
.how .n { color: var(--accent-ink); }
.how h3 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin: 32px 0 8px; }
.how p { color: var(--muted); margin: 0; font-size: 15.5px; }
.how-end { margin: clamp(64px, 8vw, 110px) 0 0; font-size: clamp(26px, 3vw, 44px); font-weight: 800; letter-spacing: -.035em; line-height: 1.15; }
.how-end > span:first-child { color: var(--muted); }

/* ---------- 07 About ---------- */
.about-line { font-size: clamp(22px, 2.3vw, 32px); font-weight: 500; letter-spacing: -.02em; line-height: 1.3; color: var(--muted); margin: 22px 0 0; max-width: 34ch; }
.facts-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 36px 24px; align-content: start; }
.facts-list strong { display: block; font-size: clamp(36px, 3.6vw, 52px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.facts-list span { display: block; color: var(--muted); font-size: 14px; margin-top: 8px; max-width: 20ch; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .thread { grid-template-columns: 1fr 1fr; align-items: start; }
  .layer { margin-bottom: 0; }
  .card--feature, .card--compact { grid-template-columns: 1fr; }
  .card--feature .card-info, .card--compact .card-info { padding-top: 8px; }
  .next-grid, .principles-grid { grid-template-columns: 1fr; }
  .how { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}
@media (max-width: 700px) {
  .thread { grid-template-columns: 1fr; }
  .how { grid-template-columns: 1fr; }
  .how h3 { margin-top: 14px; }
  .cases { grid-template-columns: 1fr; }
  .card-metric { flex-direction: column; gap: 4px; }
  .stairs p { padding-left: calc(var(--i) * 14px); }
  .hero-corners .tags { display: none; }
}
@media (max-width: 700px) {
  .how-end .mark { white-space: normal; display: inline; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 6px; }
  .how-end .scribble { display: none; }
}

/* Kayanee: phygital booking, warm & cultural */
.cv-kayanee { background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, #e3a48a 22%, var(--c-bg)), var(--c-bg) 70%); }
.cv-kayanee .phone { position: absolute; background: var(--c-card); border: 1px solid var(--c-line); border-radius: 18px; padding: 4.5% 3.5%; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .55); transition: transform 1s var(--ease); }
.cv-kayanee .main { left: 35%; width: 30%; top: 11%; bottom: -8%; z-index: 2; }
.cv-kayanee .side { width: 25%; top: 24%; bottom: -14%; opacity: .75; }
.cv-kayanee .side.l { left: 9%; transform: rotate(-6deg); }
.cv-kayanee .side.r { right: 9%; transform: rotate(6deg); }
.cv-kayanee .ph-top { display: flex; align-items: center; justify-content: space-between; height: 12px; margin-bottom: 8%; }
.cv-kayanee .ph-top span { font-family: Georgia, "Times New Roman", serif; font-size: clamp(8px, .75vw, 11px); color: var(--muted); letter-spacing: .02em; }
.cv-kayanee .ph-top em { width: 12px; height: 12px; border-radius: 50%; background: var(--c-bar); }
.cv-kayanee .side .ph-top { background: var(--c-bar); border-radius: 4px; height: 8px; width: 50%; }
.cv-kayanee .serif { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(15px, 1.8vw, 26px); line-height: 1.02; letter-spacing: -.01em; color: var(--text); margin: 0 0 10%; }
.cv-kayanee .serif.sm { font-size: clamp(12px, 1.3vw, 18px); margin-top: 10%; }
.cv-kayanee .slot { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8%; padding: 7% 0; border-top: 1px solid var(--c-line); }
.cv-kayanee .slot small { font-size: clamp(7px, .6vw, 9px); color: var(--muted); }
.cv-kayanee .slot b { font-family: var(--f-display); font-weight: 600; font-size: clamp(9px, .85vw, 12px); color: var(--text); white-space: nowrap; }
.cv-kayanee .slot span { font-size: clamp(7px, .6vw, 9px); border: 1px solid var(--c-line); border-radius: 999px; padding: 2px 7px; color: var(--muted); }
.cv-kayanee .slot.on span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cv-kayanee .dots { display: flex; gap: 5px; justify-content: center; margin-top: 10%; }
.cv-kayanee .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--c-bar); }
.cv-kayanee .dots i.on { background: var(--accent); }
.cv-kayanee .ph-img { aspect-ratio: 4 / 3.4; border-radius: 10px; margin-bottom: 10%; background: linear-gradient(160deg, color-mix(in srgb, #e3a48a 45%, var(--c-card)), color-mix(in srgb, #8a4f3c 35%, var(--c-card))); }
.cv-kayanee .side > i { display: block; height: 6px; border-radius: 3px; background: var(--c-bar); margin-bottom: 8%; }
.cv-kayanee .side > i.s { width: 60%; }
.card:hover .cv-kayanee .main { transform: translateY(-4%); }
.card:hover .cv-kayanee .side.l { transform: rotate(-9deg) translateX(-6%); }
.card:hover .cv-kayanee .side.r { transform: rotate(9deg) translateX(6%); }

/* Rockwell: two fragmented libraries → one governed system */
.cv-rockwell { background: radial-gradient(120% 90% at 15% 10%, color-mix(in srgb, #ff3b3b 16%, var(--c-bg)), var(--c-bg) 70%); }
.cv-rockwell .lib { position: absolute; left: 7%; width: 27%; background: var(--c-card); border: 1px solid var(--c-line); border-radius: 12px; padding: 3.5%; opacity: .8; transition: transform 1s var(--ease), opacity .8s; }
.cv-rockwell .lib.a { top: 11%; }
.cv-rockwell .lib.b { bottom: 11%; }
.cv-rockwell small { display: block; font-size: clamp(7px, .65vw, 10px); color: var(--muted); margin-bottom: 10%; white-space: nowrap; }
.cv-rockwell .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cv-rockwell .grid i { height: 14px; border-radius: 4px; background: var(--c-bar); }
.cv-rockwell .lib.a .grid i:nth-child(odd) { border-radius: 999px; }
.cv-rockwell .lib.b .grid i { background: none; border: 1px dashed var(--muted); opacity: .6; }
.cv-rockwell .merge { position: absolute; left: 34%; width: 14%; top: 0; height: 100%; overflow: visible; }
.cv-rockwell .merge path { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; opacity: .8; }
.cv-rockwell .unified { position: absolute; left: 48%; right: 7%; top: 19%; bottom: 19%; background: var(--c-card); border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--c-line)); border-radius: 14px; padding: 4.5%; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .55); transition: transform 1s var(--ease); }
.cv-rockwell .unified small { color: var(--text); margin-bottom: 7%; }
.cv-rockwell .unified small b { color: var(--accent-ink); font-weight: 500; }
.cv-rockwell .u-row { display: flex; align-items: center; gap: 5%; margin-top: 6.5%; }
.cv-rockwell .btn-p { width: 38%; height: 16px; border-radius: 999px; background: var(--accent); }
.cv-rockwell .btn-s { width: 28%; height: 16px; border-radius: 999px; border: 1px solid var(--c-line); }
.cv-rockwell .chip { width: 16%; height: 12px; border-radius: 999px; background: var(--c-bar); }
.cv-rockwell .input { width: 100%; height: 18px; border-radius: 6px; border: 1px solid var(--c-line); }
.cv-rockwell .tog { position: relative; width: 28px; height: 15px; border-radius: 999px; background: var(--accent); flex: none; }
.cv-rockwell .tog i { position: absolute; right: 2px; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: var(--on-accent); }
.cv-rockwell .u-row.sw { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.cv-rockwell .u-row.sw i { height: 14px; border-radius: 4px; background: var(--c-bar); }
.cv-rockwell .u-row.sw i:first-child { background: var(--accent); }
.card:hover .cv-rockwell .lib.a { transform: translate(6%, 8%); opacity: .55; }
.card:hover .cv-rockwell .lib.b { transform: translate(6%, -8%); opacity: .55; }
.card:hover .cv-rockwell .unified { transform: scale(1.03); }

/* One visual language for every card */
.card-media { background: var(--surface); }
.card--compact .card-media { aspect-ratio: 16 / 10; }

/* ---------- Principle folded into How I work ---------- */
.principle { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; margin-top: clamp(80px, 10vw, 140px); padding-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.pr-k { color: var(--accent-ink); }
.pr-title { font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -.02em; margin: 14px 0 0; color: var(--muted); }
.principle .pr-quote { margin-top: 18px; }
.principle .opts { margin: 0; }
.ask-out .q { font-family: var(--f-mono); }
.ask-out .a { animation: csIn .35s var(--ease); }
@media (max-width: 1000px) { .principle { grid-template-columns: 1fr; } }

/* =====================================================================
   Motion layer — 80% stillness, 20% moments
   ===================================================================== */
:root { --spring: cubic-bezier(.2, .9, .25, 1.12); }

/* Hero intro */
@media (prefers-reduced-motion: no-preference) {
  .js .hero .eyebrow, .js .hero .lead, .js .hero-cta, .js .hero-corners { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .intro-go .hero .eyebrow { opacity: 1; transform: none; transition-delay: 0ms; }
  .intro-go .hero .lead { opacity: 1; transform: none; transition-delay: 520ms; }
  .intro-go .hero-cta { opacity: 1; transform: none; transition-delay: 640ms; }
  .intro-go .hero-corners { opacity: 1; transform: none; transition-delay: 820ms; }
  .hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
  .hero-title .wi { display: inline-block; transform: translateY(108%); transition: transform .72s var(--ease) var(--d, 0ms); }
  .intro-go .hero-title .wi { transform: none; }
  .hero .s-under use { transition-delay: .95s; }
}

/* ✦ breathes */
@media (prefers-reduced-motion: no-preference) {
  .spark { display: inline-block; animation: spark-turn 14s linear infinite; }
  @keyframes spark-turn { to { transform: rotate(360deg); } }
}

/* Rail: the active number steps forward, the rest recede */
.rail li b { opacity: .45; transition: opacity .4s var(--ease), transform .4s var(--ease), color .3s; display: inline-block; }
.rail li.active b { opacity: 1; transform: translateX(3px); }

/* Work: respond, don't decorate */
.card-media { transition: transform .9s var(--ease), border-color .4s; }
.card:hover .card-media { transform: scale(1.018); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.card h3 { transition: transform .55s var(--ease), color .3s; }
.card:hover h3 { transform: translateX(5px); }
.card-more { margin: 0; color: var(--muted); font-size: 11.5px; max-height: 0; opacity: 0; overflow: hidden; transform: translateY(-4px); transition: max-height .5s var(--ease), opacity .4s, transform .5s var(--ease), margin .5s var(--ease); }
.card:hover .card-more, .card:focus-visible .card-more { max-height: 3em; opacity: 1; transform: none; margin-top: 14px; }
@media (pointer: coarse) { .card-more { max-height: none; opacity: 1; transform: none; margin-top: 14px; } }

/* Case: the card becomes the page */
::view-transition-group(case-media) { animation-duration: .62s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(case-media), ::view-transition-new(case-media) { height: 100%; width: 100%; object-fit: cover; object-position: top; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .4s; }

/* Thread: scroll-driven */
.layer { position: relative; }
.layer::after { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: calc(var(--fill, 0) * 100%); background: var(--accent); }
.layer.now { border-top-width: 1px; border-top-color: var(--line); }
.layer h3, .layer .yr { transition: color .5s var(--ease); }
.layer.lit .yr { color: var(--accent-ink); }
.layer.now.lit::after { box-shadow: var(--glow); }
@media (prefers-reduced-motion: no-preference) {
  .js .stairs p { transition: color .6s var(--ease), opacity .8s var(--ease), transform .8s var(--ease); }
  .js .stairs p:not(.lit) { color: color-mix(in srgb, var(--muted) 55%, transparent); }
  .js .stairs p.lit { color: var(--muted); }
  .js .stairs p.lit:last-child { color: var(--text); }
}
@media (prefers-reduced-motion: reduce) { .layer::after { width: 100%; } }

/* generate(n=9): skeleton → resolved */
.opt.gen { opacity: 1; transform: none; }
.opt .opt-ui { opacity: 0; transition: opacity .45s var(--ease); }
.opt.on .opt-ui { opacity: 1; }
.opt.gen:not(.on)::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--text) 9%, transparent) 50%, transparent 80%); background-size: 220% 100%; animation: shimmer .9s linear infinite; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.opt.pick { animation: pick-pop .5s var(--spring); }
@keyframes pick-pop { from { transform: scale(.96); } }

/* Ask ⌘K: a tool, not a modal */
.ask[open] { animation: ask-in .5s var(--spring); }
@keyframes ask-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.ask[open]::backdrop { animation: fade-in .35s var(--ease); }
@keyframes fade-in { from { opacity: 0; } }
.ask[open] .ask-qs button { animation: q-in .45s var(--ease) both; animation-delay: calc(140ms + var(--i, 0) * 45ms); }
@keyframes q-in { from { opacity: 0; transform: translateY(6px); } }
.ask-out .a { animation: none; }
.ask-out .a span { display: inline; animation: q-in .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms); }
@media (prefers-reduced-motion: reduce) { .ask[open], .ask[open] .ask-qs button, .ask-out .a span, .opt.pick { animation: none; } }

/* ---------- Case story: legacy → structure → system ---------- */
.story { display: grid; gap: clamp(64px, 8vw, 110px); }
.story h3 { font-size: clamp(20px, 1.8vw, 26px); font-weight: 700; letter-spacing: -.02em; margin: 0 0 20px; }
.story-block > p { color: var(--muted); max-width: 60ch; margin: -8px 0 28px; }
.pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(12px, 2vw, 24px); align-items: start; }
.pair .arrow { align-self: center; color: var(--accent-ink); font-size: 22px; }
.side { position: relative; }
.side .tag { position: absolute; z-index: 1; left: 12px; top: 12px; border-radius: 999px; padding: 3px 10px; font-size: 11px; }
.side.before .tag { background: color-mix(in srgb, var(--bg) 80%, transparent); color: var(--muted); border: 1px solid var(--line); }
.side.after .tag { background: var(--accent); color: var(--on-accent); }
.side.before img { filter: grayscale(.35) contrast(.95); }
.shot { margin: 0; }
.shot a { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; cursor: zoom-in; }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; transition: transform .8s var(--ease); }
.shot a:hover img { transform: scale(1.02); }
.shot figcaption { color: var(--muted); font-size: 11.5px; margin-top: 10px; line-height: 1.45; }
.shots { display: grid; gap: clamp(14px, 1.6vw, 22px); }
.shots.two { grid-template-columns: 1fr 1fr; }
.shots.three { grid-template-columns: repeat(3, 1fr); }
.shots.three .wide { grid-column: span 2; grid-row: span 2; }
.shots.three .wide img { aspect-ratio: auto; height: 100%; min-height: 100%; }
.zoom { max-width: min(1400px, 96vw); max-height: 94dvh; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: auto; }
.zoom::backdrop { background: rgb(0 0 0 / .8); backdrop-filter: blur(4px); }
.zoom[open] { animation: ask-in .4s var(--spring); }
.zoom img { display: block; max-width: 100%; height: auto; background: #fff; }
.zoom p { margin: 0; padding: 12px 16px; color: var(--muted); font-size: 12px; }
.zoom .icon-btn { position: sticky; top: 10px; float: right; margin: 10px; background: var(--surface); }
@media (max-width: 800px) {
  .pair { grid-template-columns: 1fr; }
  .pair .arrow { transform: rotate(90deg); justify-self: center; }
  .shots.two, .shots.three { grid-template-columns: 1fr; }
  .shots.three .wide { grid-column: auto; grid-row: auto; }
  .shots.three .wide img { aspect-ratio: 16 / 10; height: auto; }
}
.side .tag { position: static; display: inline-block; margin-bottom: 10px; }

.shots.phones { grid-template-columns: repeat(6, 1fr); }
.shots.phones img { aspect-ratio: 320 / 692; object-position: top center; }
@media (max-width: 800px) { .shots.phones { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Case images: show the whole screen, no forced crop ---------- */
.shot a { background: var(--surface); }
.shot img { aspect-ratio: auto; height: auto; object-fit: contain; }
.shots.three { grid-template-columns: 1fr 1fr; align-items: start; }
.shots.three .wide { grid-column: 1 / -1; grid-row: auto; }
.shots.three .wide img { height: auto; min-height: 0; }
.shots.two { align-items: start; }
.pair { align-items: center; }
.shots.phones img { aspect-ratio: auto; }
.cs-cover img { width: 100%; height: auto; }
.cs-next .img img { object-fit: cover; object-position: top left; }

/* ---------- Bento: one system, many tools ---------- */
.shots.bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(120px, 11vw, 170px); gap: clamp(10px, 1.2vw, 16px); grid-auto-flow: dense; }
.shots.bento .shot { position: relative; min-height: 0; }
.shots.bento .shot a { height: 100%; }
.shots.bento .shot img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: top left; }
.shots.bento .shot figcaption { position: absolute; left: 10px; bottom: 10px; margin: 0; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(6px); color: var(--text); font-size: 11px; pointer-events: none; }
.shots.bento .shot:nth-child(1) { grid-column: span 4; grid-row: span 4; }
.shots.bento .shot:nth-child(2), .shots.bento .shot:nth-child(3) { grid-column: span 2; grid-row: span 2; }
.shots.bento .shot:nth-child(n+4) { grid-column: span 3; grid-row: span 2; }
.shots.bento .shot:nth-child(5) img { object-fit: contain; background: #fff; }
@media (max-width: 800px) {
  .shots.bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; }
  .shots.bento .shot:nth-child(n) { grid-column: span 1; grid-row: span 2; }
  .shots.bento .shot:nth-child(1) { grid-column: span 2; }
}
/* bento tuning: finer row unit so tiles keep screen-like proportions */
.shots.bento { grid-auto-rows: clamp(44px, 4.2vw, 62px); }
.shots.bento .shot:nth-child(1) { grid-column: span 4; grid-row: span 6; }
.shots.bento .shot:nth-child(2), .shots.bento .shot:nth-child(3) { grid-column: span 2; grid-row: span 3; }
.shots.bento .shot:nth-child(n+4) { grid-column: span 3; grid-row: span 4; }
@media (max-width: 800px) {
  .shots.bento { grid-auto-rows: 52px; }
  .shots.bento .shot:nth-child(1) { grid-column: span 2; grid-row: span 4; }
  .shots.bento .shot:nth-child(n+2) { grid-column: span 1; grid-row: span 3; }
}

/* ---------- Lightbox: the screen is the content, no box around it ---------- */
.zoom { width: fit-content; max-width: 96vw; max-height: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.zoom img { display: block; width: min(1320px, 94vw); height: auto; max-height: 84dvh; object-fit: contain; background: transparent; border-radius: 12px; }
.zoom p { padding: 14px 2px 0; text-align: center; color: #b9b9bf; }
.zoom .icon-btn { position: fixed; top: 18px; right: 18px; float: none; margin: 0; background: rgb(20 20 22 / .85); border-color: rgb(255 255 255 / .18); color: #fff; z-index: 2; }
.zoom::backdrop { background: rgb(0 0 0 / .86); }
/* The dialog itself must not be transformed, or the fixed close button is positioned relative to it mid-animation */
.zoom[open] { animation: fade-in .25s var(--ease); }
.zoom[open] img, .zoom[open] p { animation: ask-in .45s var(--spring); }
@media (prefers-reduced-motion: reduce) { .zoom[open], .zoom[open] img, .zoom[open] p { animation: none; } }

/* ---------- Long page: scroll on hover ---------- */
.shots.long { grid-template-columns: 1fr; }
.shots.long .shot a { height: clamp(360px, 42vw, 620px); overflow: hidden; cursor: ns-resize; }
.shots.long .shot img { transition: transform 7s cubic-bezier(.45, 0, .55, 1); }
.shots.long .shot a:hover img, .shots.long .shot a:focus-visible img { transform: translateY(calc(-100% + clamp(360px, 42vw, 620px))); }
.shots.long .shot a { position: relative; }
.shots.long .shot a::after { content: "↓"; position: absolute; right: 14px; bottom: 14px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: 16px; transition: opacity .3s; }
.shots.long .shot a:hover::after { opacity: 0; }

/* ---------- Mobile prototype ---------- */
.proto { display: grid; grid-template-columns: 1fr auto; gap: clamp(28px, 5vw, 80px); align-items: center; }
.proto-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.proto-steps button { display: grid; grid-template-columns: 36px 1fr; gap: 10px; width: 100%; text-align: left; background: none; border: 0; border-left: 2px solid var(--line); padding: 12px 14px; border-radius: 0 10px 10px 0; transition: background .3s, border-color .3s; }
.proto-steps button:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.proto-steps button[aria-pressed="true"] { border-left-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.proto-steps .n { color: var(--muted); padding-top: 3px; }
.proto-steps button[aria-pressed="true"] .n { color: var(--accent-ink); }
.proto-steps b { display: block; font-weight: 600; }
.proto-steps em { font-style: normal; display: block; color: var(--muted); font-size: 14.5px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s var(--ease), opacity .3s; }
.proto-steps button[aria-pressed="true"] em { max-height: 3em; opacity: 1; margin-top: 2px; }
.proto-device { display: grid; justify-items: center; gap: 16px; }
.phone-frame { position: relative; width: clamp(240px, 24vw, 320px); aspect-ratio: 780 / 1688; padding: 12px; border-radius: 44px; background: #0d0d0f; border: 1px solid #2a2a2e; box-shadow: 0 40px 80px -30px rgb(0 0 0 / .6), inset 0 0 0 2px #1b1b1f; box-sizing: content-box; }
.phone-notch { position: absolute; z-index: 2; top: 20px; left: 50%; transform: translateX(-50%); width: 30%; height: 22px; border-radius: 999px; background: #0d0d0f; }
.phone-screens { position: relative; width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #fff; cursor: pointer; touch-action: pan-y; }
.phone-screens img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: translateX(8%); transition: opacity .45s var(--ease), transform .55s var(--ease); pointer-events: none; }
.phone-screens img.from-left { transform: translateX(-8%); }
.phone-screens img.on { opacity: 1; transform: none; }
.proto-nav { display: flex; align-items: center; gap: 14px; color: var(--muted); }
@media (max-width: 800px) {
  .proto { grid-template-columns: 1fr; }
  .proto-device { order: -1; }
  .proto-steps em { display: none; }
  .proto-steps { grid-template-columns: 1fr 1fr; }
  .phone-frame { width: min(72vw, 300px); }
}
@media (prefers-reduced-motion: reduce) { .phone-screens img, .shots.long .shot img { transition: none; } }
/* status bar so the notch doesn't cover the app header */
.phone-screens img { top: 34px; height: calc(100% - 34px); }
.phone-notch { top: 18px; height: 20px; width: 28%; }

/* ---------- generate(n=9): robust sizing (iOS Safari) ---------- */
.principle > *, .principle-grid > * { min-width: 0; }
.opts { width: 100%; max-width: 520px; }
.opts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opt { min-width: 0; height: auto; overflow: hidden; }
.opt::before { content: ""; display: block; padding-top: 80%; }
.opt { aspect-ratio: auto; padding: 0; }
.opt .opt-ui { position: absolute; top: 22%; right: 10%; bottom: 10%; left: 10%; height: auto; min-height: 0; }
.opt .opt-ui i { min-height: 0; }
@media (max-width: 700px) {
  .opts-note { position: static; display: block; transform: rotate(-3deg); margin-top: 14px; }
}

/* ---------- Feedback v4: system model, workflow, visual work, closing ---------- */
.sysmodel { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.sm-col { position: relative; padding: 22px 20px 26px; border-right: 1px solid var(--line); }
.sm-col:last-child { border-right: 0; background: color-mix(in srgb, var(--accent) 6%, transparent); }
.sm-k { display: block; color: var(--accent-ink); margin-bottom: 14px; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.sm-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sm-col li { font-size: 15px; line-height: 1.3; }
.sm-arrow { position: absolute; right: -11px; top: 20px; z-index: 1; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); color: var(--accent-ink); font-size: 12px; }
.sysflow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; counter-reset: s; }
.sysflow li { position: relative; padding: 14px 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-weight: 600; font-size: 15px; line-height: 1.25; }
.sysflow li span { display: block; color: var(--muted); font-weight: 400; margin-bottom: 8px; }
.sysflow li:last-child { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.sysflow li:not(:last-child)::after { content: "→"; position: absolute; right: -9px; top: 50%; transform: translateY(-50%); color: var(--accent-ink); font-size: 12px; z-index: 1; }
.story-sub { font-size: clamp(26px, 2.6vw, 36px) !important; letter-spacing: -.03em; margin: 0 !important; padding-top: clamp(24px, 3vw, 40px); border-top: 1px solid var(--line); }
.mosaic figure { position: relative; }
.mosaic figcaption { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 10px; align-items: baseline; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(6px); color: var(--muted); font-size: 11px; }
.mosaic figcaption b { color: var(--text); font-weight: 500; }
.contact-lede { font-size: clamp(20px, 2vw, 28px); color: var(--muted); margin: 0 0 18px; max-width: 30ch; line-height: 1.3; }
@media (max-width: 1000px) {
  .sysmodel { grid-template-columns: 1fr 1fr; }
  .sm-col { border-bottom: 1px solid var(--line); }
  .sm-arrow { display: none; }
  .sysflow { grid-template-columns: 1fr 1fr 1fr; }
  .sysflow li::after { display: none; }
}
@media (max-width: 560px) { .sysmodel, .sysflow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) {
  .hero-title .mark { white-space: normal; display: inline; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 4px; text-underline-offset: 8px; }
  .hero-title .mark .scribble { display: none; }
}

/* ---------- Many paths, one system ---------- */
.pathmap { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: clamp(20px, 3vw, 44px); align-items: center; }
.path-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.path-list button { display: grid; grid-template-columns: 30px 1fr; gap: 8px; width: 100%; text-align: left; background: none; border: 0; border-left: 2px solid var(--line); padding: 10px 12px; border-radius: 0 10px 10px 0; font-size: 15px; transition: background .3s, border-color .3s; }
.path-list button .mono { color: var(--muted); padding-top: 2px; }
.path-list button[aria-pressed="true"] { border-left-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.path-list button[aria-pressed="true"] .mono { color: var(--accent-ink); }
.path-stage { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 5vw, 70px) clamp(18px, 3vw, 44px); padding: clamp(16px, 2.4vw, 32px); border: 1px solid var(--line); border-radius: 18px; background-image: radial-gradient(color-mix(in srgb, var(--text) 9%, transparent) 1px, transparent 1px); background-size: 20px 20px; }
.path-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.path-lines polyline { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: path-draw 1.1s var(--ease) forwards; filter: drop-shadow(0 0 6px rgb(43 255 136 / .35)); }
@keyframes path-draw { to { stroke-dashoffset: 0; } }
.pnode { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-weight: 600; font-size: 15px; transition: border-color .35s, opacity .35s, transform .35s var(--ease); opacity: .5; }
.pnode.on { opacity: 1; border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); transform: translateY(-2px); }
.pnode i { font-style: normal; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 11px; background: transparent; color: var(--on-accent); }
.pnode.on i { background: var(--accent); }
@media (max-width: 900px) { .pathmap { grid-template-columns: 1fr; } .path-stage { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) { .path-lines polyline { animation: none; stroke-dashoffset: 0; } }
.path-stage { grid-template-columns: repeat(3, minmax(0, 1fr)); } @media (max-width: 900px) { .path-stage { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Many paths: network map v2 ---------- */
.path-stage { display: block; position: relative; aspect-ratio: 16 / 10; padding: 0; border-radius: 20px; background: radial-gradient(60% 60% at 50% 50%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%), radial-gradient(color-mix(in srgb, var(--text) 8%, transparent) 1px, transparent 1px); background-size: auto, 22px 22px; }
.path-hub { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 6px 12px; border-radius: 999px; border: 1px dashed var(--line); color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; background: var(--bg); }
.pnode { position: absolute; transform: translate(-50%, -50%); width: clamp(120px, 14vw, 170px); justify-content: flex-start; gap: 10px; padding: 12px 14px; opacity: 1; color: var(--muted); font-weight: 500; font-size: 14.5px; line-height: 1.2; background: var(--bg); transition: border-color .4s, color .4s, box-shadow .4s, transform .5s var(--ease); }
.pnode.on { transform: translate(-50%, -50%) scale(1.04); color: var(--text); border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent); }
.pnode i { flex: none; width: 22px; height: 22px; border: 1px solid var(--line); background: var(--surface); color: transparent; }
.pnode.on i { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.path-lines .pl-base path { fill: none; stroke: color-mix(in srgb, var(--text) 16%, transparent); stroke-width: 1.2; stroke-dasharray: 3 5; }
.path-lines .pl-active path { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: path-draw .6s var(--ease) forwards; }
.path-lines marker path { fill: var(--accent); }
.path-lines polyline { display: none; }
@media (max-width: 900px) {
  .path-stage { aspect-ratio: 4 / 5; }
  .pnode { width: 38%; font-size: 13px; padding: 10px 10px; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .path-lines .pl-active path { animation: none; stroke-dashoffset: 0; } }
/* map v2 layout: chips on top, full-width stage */
.pathmap { grid-template-columns: 1fr; gap: 20px; }
.path-list { display: flex; flex-wrap: wrap; gap: 8px; }
.path-list button { grid-template-columns: auto auto; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 14px; }
.path-list button[aria-pressed="true"] { border-color: var(--accent); }
.path-stage { aspect-ratio: 16 / 7.5; }
.pnode { width: clamp(130px, 13vw, 176px); }
@media (max-width: 900px) {
  .path-list button { font-size: 13px; padding: 7px 12px; }
}
@media (max-width: 600px) {
  .path-stage { aspect-ratio: 3 / 4; }
  .pnode { width: 44%; font-size: 13px; padding: 9px 10px; }
}
@media (max-width: 600px) { .path-stage { aspect-ratio: 3 / 4.6; } }
