/* Kyle Nguyen Consulting: the Line Map. Enamel ground, ink core line, four sector lines. */
@font-face { font-family: "Overpass"; src: url("../fonts/overpass-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Overpass"; src: url("../fonts/overpass-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("../fonts/caveat-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Overpass Mono"; src: url("../fonts/overpass-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --ground: #0c0d0f;
  --ground-2: #1a1c20;
  --panel: #15171a;
  --panel-2: #1d2024;
  --deep: #060708;
  --ink: #eef0ea;
  --chalk: #ece8dc;
  --chalk-2: #8c939b;
  --ink-2: #c2c6be;
  --ink-3: #8f958d;
  --rule: #2a2e33;
  --edge: #33373d;
  --red: #ff5a3c;
  --red-ink: #ff8166;
  --blue: #3d82ff;
  --blue-ink: #86b0ff;
  --green: #1fc27a;
  --green-ink: #5ddca0;
  --amber: #ffb21e;
  --amber-ink: #ffc75a;
  --shadow-1: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 2px 6px rgba(0, 0, 0, .35), 0 18px 40px -18px rgba(0, 0, 0, .75);
  --shadow-2: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 4px 12px rgba(0, 0, 0, .4), 0 40px 80px -30px rgba(0, 0, 0, .85);
  --core: var(--ink);
  --lw: 14px;
  --ring-w: 5px;
  --radius: 14px;
  --pad: clamp(16px, 4vw, 56px);
  --wide: 1360px;
  --sec: clamp(80px, 11vw, 168px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --display: clamp(2.6rem, 1.4rem + 4.6vw, 5.6rem);
  --display-2: clamp(2.2rem, 1.3rem + 3.4vw, 4.4rem);
  --h2: clamp(2rem, 1.3rem + 2.6vw, 3.5rem);
  --h3: clamp(1.25rem, 1.1rem + .6vw, 1.6rem);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 1.0625rem/1.6 "Overpass", system-ui, sans-serif; font-feature-settings: "kern", "liga"; text-rendering: optimizeLegibility; overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--blue); }
::selection { background: var(--ink); color: var(--ground); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: var(--ink-3) var(--ground-2); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.02; letter-spacing: -.025em; text-wrap: balance; }
.mono { font-family: "Overpass Mono", ui-monospace, monospace; font-size: .86em; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.sr, .skip:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 100; top: 12px; left: 12px; background: var(--ink); color: var(--ground); padding: 10px 16px; border-radius: 999px; }
.display { font-size: var(--display); font-weight: 850; letter-spacing: -.035em; line-height: .96; }
.display-2 { font-size: var(--display-2); font-weight: 850; letter-spacing: -.03em; line-height: .98; }
.h2 { font-size: var(--h2); letter-spacing: -.03em; }
.h3 { font-size: var(--h3); letter-spacing: -.015em; line-height: 1.15; }
.lede { font-size: clamp(1.15rem, 1.05rem + .45vw, 1.4rem); line-height: 1.5; color: var(--ink-2); max-width: 40ch; }
.note { font-size: .92rem; color: var(--ink-3); }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--pad); background: color-mix(in srgb, var(--ground) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 2px solid transparent; transition: border-color .3s, padding .3s var(--ease-out); }
.top.is-scrolled { border-bottom-color: var(--ink); padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.mark { width: 52px; height: auto; overflow: visible; }
.mark-line { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.mark-cap { fill: var(--ground); stroke: var(--ink); stroke-width: 5; }
.mark-dot { fill: var(--ink); }
.brand:hover .mark-dot:first-of-type { fill: var(--red); }
.brand:hover .mark-dot:last-of-type { fill: var(--blue); }
.brand-name { font-weight: 850; font-size: 1.12rem; letter-spacing: -.02em; line-height: 1; display: grid; }
.brand-name span { font-weight: 500; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); font-weight: 650; font-size: .98rem; }
.nav a { text-decoration: none; position: relative; }
.nav a:not(.pill)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; border-radius: 3px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.nav a:not(.pill):hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.nav-portal { display: inline-flex; align-items: center; gap: 7px; }
.nav-portal svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.pill { background: var(--ink); color: var(--ground); padding: 11px 18px 9px; border-radius: 999px; transition: background .2s, transform .2s var(--ease-out); }
.pill:hover { background: var(--blue-ink); transform: translateY(-1px); }
.menu-btn { display: none; }

/* ---------------------------------------------------------------- buttons */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 14px 26px 12px; border-radius: 999px; font: 750 1.02rem/1 "Overpass", sans-serif; text-decoration: none; cursor: pointer; border: 2.5px solid var(--ink); transition: transform .25s var(--ease-out), background .2s, color .2s, box-shadow .25s; }
.btn-ink { background: var(--ink); color: var(--ground); }
.btn-ink:hover { background: var(--blue-ink); border-color: var(--blue-ink); transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(21, 74, 166, .7); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--ground); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* ---------------------------------------------------------------- roundels */




/* ---------------------------------------------------------------- shared section rhythm */
section { position: relative; }
.finder, .work, .method, .about, .work-top, .index { max-width: calc(var(--wide) + 2 * var(--pad)); margin: 0 auto; padding: var(--sec) var(--pad) 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head p { color: var(--ink-2); font-size: 1.12rem; max-width: 46ch; margin: 0; }

/* ---------------------------------------------------------------- finder */
.finder-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: end; margin-bottom: 40px; }
.finder-head p { color: var(--ink-2); font-size: 1.12rem; margin: 0; }
.finder-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.finder-list { display: grid; gap: 8px; }
.prob { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 12px; padding: 16px 18px 14px; border-radius: var(--radius); border: 2px solid var(--rule); background: var(--panel); font-weight: 650; font-size: 1.05rem; line-height: 1.35; transition: border-color .2s, background .2s, transform .3s var(--ease-out), color .2s; }
.prob:hover { border-color: var(--ink); transform: translateX(4px); }
.prob[aria-checked="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.prob:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.prob-dots { display: flex; gap: 4px; }
.prob-dots i { width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--panel); box-shadow: 0 0 0 2px currentColor; }
.prob[aria-checked="true"] .prob-dots i { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ground); }
.dot-red { background: var(--red); } .dot-blue { background: var(--blue); } .dot-green { background: var(--green); } .dot-amber { background: var(--amber); }
.finder-out { position: sticky; top: 104px; background: var(--panel); border-radius: calc(var(--radius) + 6px); padding: clamp(18px, 3vw, 32px); border: 2px solid var(--ink); }
.finder-stops .fs { display: none; }
.finder-stops .fs.is-on { display: block; animation: rise .5s var(--ease-out); }
.fs-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 8px; color: var(--ink-2); }
.fs-line b { color: var(--ink); }
.fs ul { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fs li a { display: inline-block; padding: 7px 14px 5px; border-radius: 999px; border: 2px solid var(--ink); font-weight: 650; font-size: .95rem; text-decoration: none; }
.fs li a:hover { background: var(--ink); color: var(--ground); }
.finder-out .btn { margin-top: 18px; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }




/* ---------------------------------------------------------------- method (trunk) */

/* ---------------------------------------------------------------- about */
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-copy .h2 { margin-bottom: 24px; }
.about-copy .lede { max-width: 34ch; color: var(--ink); }
.about-copy > p { max-width: 60ch; color: var(--ink-2); }
.caps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
.caps li { color: var(--ink-2); font-size: .98rem; padding-top: 14px; border-top: 2.5px solid var(--ink); }
.caps b { display: block; color: var(--ink); font-size: 1.08rem; margin-bottom: 6px; }
.record { list-style: none; margin: 0; padding: 0 0 0 34px; position: relative; }
.record::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 10px; border-radius: 10px; background: var(--ink); }
.record li { position: relative; padding: 0 0 30px; display: grid; gap: 2px; }
.record li::before { content: ""; position: absolute; left: -36px; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--ground); border: 5px solid var(--ink); }
.record li:first-child::before { background: var(--amber); }
.record .mono { color: var(--ink-3); }
.record b { font-size: 1.12rem; line-height: 1.2; }
.record span:last-child { color: var(--ink-2); font-size: .97rem; }

/* ---------------------------------------------------------------- close band */
.close { margin-top: var(--sec); background: var(--ink); color: var(--ground); overflow: hidden; }
.close::before { content: ""; position: absolute; left: -40px; right: -40px; top: 46px; height: var(--lw); background: linear-gradient(90deg, var(--red) 0 25%, var(--blue) 25% 50%, var(--green) 50% 75%, var(--amber) 75%); opacity: .95; }
.close-in { max-width: calc(var(--wide) + 2 * var(--pad)); margin: 0 auto; padding: clamp(112px, 12vw, 168px) var(--pad) clamp(72px, 9vw, 128px); }
.close .display-2 { max-width: 16ch; }
.close p { color: #c9ccc6; font-size: 1.2rem; max-width: 52ch; margin-top: 20px; }
.close .btn-ink { background: var(--ground); color: var(--ink); border-color: var(--ground); }
.close .btn-ink:hover { background: var(--amber); border-color: var(--amber); }
.close .btn-line { color: var(--ground); border-color: var(--ground); }
.close .btn-line:hover { background: var(--ground); color: var(--ink); }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--ink); color: #c9ccc6; border-top: 1px solid #2b2e31; }
.pg-home .foot, .pg-case .foot { border-top-color: #2b2e31; }
.foot-line { display: none; }
.foot-in { max-width: calc(var(--wide) + 2 * var(--pad)); margin: 0 auto; padding: 56px var(--pad) 40px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 48px; }
.foot .brand { color: var(--ground); }
.foot .mark-line { stroke: var(--ground); } .foot .mark-cap { fill: var(--ink); stroke: var(--ground); } .foot .mark-dot { fill: var(--ground); }
.foot .brand-name span { color: #a3a8a0; }
.foot-brand p { margin-top: 16px; max-width: 40ch; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; align-content: start; font-weight: 650; }
.foot-nav a { text-decoration: none; color: var(--ground); }
.foot-nav a:hover { text-decoration: underline; text-decoration-color: var(--amber); }
.foot-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: .9rem; border-top: 1px solid #34383c; padding-top: 22px; margin: 8px 0 0; color: #a3a8a0; }

/* ---------------------------------------------------------------- case study */
.case { --c: var(--ink); --ci: var(--ink); }
.case-red { --c: var(--red); --ci: var(--red-ink); } .case-blue { --c: var(--blue); --ci: var(--blue-ink); }
.case-green { --c: var(--green); --ci: var(--green-ink); } .case-amber { --c: var(--amber); --ci: var(--amber-ink); }
.case-head { max-width: calc(var(--wide) + 2 * var(--pad)); margin: 0 auto; padding: clamp(24px, 4vw, 48px) var(--pad) 0; }
.case-title { display: grid; gap: 22px; max-width: 1100px; }
.case-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; font-weight: 750; }
.case-line .mono { color: var(--ink-3); margin-left: 4px; }
.case-title .lede { max-width: 52ch; }

.case-stage { max-width: calc(var(--wide) + 2 * var(--pad)); margin: clamp(40px, 6vw, 72px) auto 0; padding: 0 var(--pad); display: grid; grid-template-columns: minmax(0, 1fr) clamp(200px, 22vw, 300px); gap: clamp(20px, 3vw, 40px); align-items: end; }
.frame { margin: 0; position: relative; }
.frame figcaption, .g-item figcaption { margin-top: 12px; font-size: .92rem; color: var(--ink-3); }
.frame-browser { border-radius: calc(var(--radius) + 4px); }
.frame-browser .frame-media, .frame-browser .frame-bar { border-left: 2.5px solid var(--ink); border-right: 2.5px solid var(--ink); }
.frame-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--ink); border-radius: calc(var(--radius) + 4px) calc(var(--radius) + 4px) 0 0; }
.frame-bar i { width: 12px; height: 12px; border-radius: 50%; background: #3c4045; }
.frame-bar i:first-child { background: var(--red); } .frame-bar i:nth-child(2) { background: var(--amber); } .frame-bar i:nth-child(3) { background: var(--green); }
.frame-url { margin-left: 14px; color: #a3a8a0; background: #24272a; padding: 4px 14px 2px; border-radius: 999px; font-size: .78rem; }
.frame-browser .frame-media { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: var(--ground-2); border-bottom: 2.5px solid var(--ink); border-radius: 0 0 calc(var(--radius) + 4px) calc(var(--radius) + 4px); }
.clip-btn { position: absolute; left: 20px; top: 66px; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 10px; border-radius: 999px; border: 0; background: var(--ink); color: var(--ground); font: 750 .95rem/1 "Overpass", sans-serif; cursor: pointer; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6); transition: transform .25s var(--ease-out), background .2s; }
.clip-btn:hover { transform: translateY(-2px); background: var(--ci); }
.clip-btn svg { width: 18px; fill: currentColor; }
.clip-btn .i-pause, .clip-btn[aria-pressed="true"] .i-play { display: none; }
.clip-btn[aria-pressed="true"] .i-pause { display: block; }
.frame-phone .frame-media { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border: 10px solid var(--ink); border-radius: 36px; background: var(--ground-2); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45); }

.case-body { max-width: calc(var(--wide) + 2 * var(--pad)); margin: 0 auto; padding: var(--sec) var(--pad) 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.case-aim .h3, .case-parts .h3, .case-tech .h3 { margin-bottom: 20px; }
.case-aim .lede { color: var(--ink); max-width: 38ch; }
.numbers { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 18px; }
.numbers li { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 16px; border-top: 2.5px solid var(--ink); padding-top: 12px; }
.numbers b { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.8rem); font-weight: 850; letter-spacing: -.03em; color: var(--ci); font-variant-numeric: tabular-nums; line-height: 1; }
.numbers span { color: var(--ink-2); }
.parts { list-style: none; margin: 0; padding: 0 0 0 40px; position: relative; }
.parts::before { content: ""; position: absolute; left: 9px; top: 12px; bottom: 18px; width: var(--lw); border-radius: var(--lw); background: var(--c); }
.parts li { position: relative; padding-bottom: 26px; }
.parts h3 { font-size: 1.2rem; letter-spacing: -.01em; margin-bottom: 4px; padding-top: 4px; }
.parts p { color: var(--ink-2); margin: 0; max-width: 62ch; }
.case-tech { grid-column: 2; }
.transfers { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.transfers li { padding: 8px 14px 6px; border-radius: 999px; background: var(--panel); border: 2px solid var(--ink); font-weight: 650; font-size: .95rem; }

.gallery { max-width: calc(var(--wide) + 2 * var(--pad)); margin: var(--sec) auto 0; padding: 0 var(--pad); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px 24px; align-items: start; }
.g-item { margin: 0; grid-column: span 6; }
.g-item:nth-child(3n+1) { grid-column: span 7; } .g-item:nth-child(3n+2) { grid-column: span 5; }
.g-item.g-mobile { grid-column: span 3; }
.g-item.g-full { grid-column: span 12; }
.g-item a { display: block; border-radius: var(--radius); overflow: hidden; border: 2.5px solid var(--ink); background: var(--ground-2); }
.g-item.g-mobile a { border-radius: 28px; border-width: 8px; }
.g-item.g-full a { max-height: 720px; }
.g-item img { width: 100%; transition: transform .8s var(--ease-out); }
.g-item a:hover img { transform: scale(1.02); }
.close-case { margin-top: var(--sec); }
.zoom { border: 0; padding: 0; max-width: min(96vw, 1600px); max-height: 94vh; background: transparent; }
.zoom::backdrop { background: rgba(18, 19, 20, .88); }
.zoom img { max-height: 90vh; width: auto; border-radius: 10px; }
.zoom-x { position: absolute; top: 12px; right: 12px; background: var(--ground); color: var(--ink); border: 0; border-radius: 999px; padding: 10px 16px 8px; font: 750 .95rem "Overpass", sans-serif; cursor: pointer; }

/* ---------------------------------------------------------------- work index */
.work-top .sec-head { grid-template-columns: 1fr; }
.work-top .lede { max-width: 56ch; }
.ix { margin-bottom: 64px; }
.ix-head { display: flex; align-items: center; gap: 16px; font-size: var(--h2); margin-bottom: 18px; }
.ix-list { list-style: none; margin: 0; padding: 0 0 0 30px; position: relative; }
.ix-list::before { content: ""; position: absolute; left: 20px; top: 0; bottom: 0; width: var(--lw); border-radius: var(--lw); }
.ix-red .ix-list::before { background: var(--red); } .ix-blue .ix-list::before { background: var(--blue); } .ix-green .ix-list::before { background: var(--green); } .ix-amber .ix-list::before { background: var(--amber); }
.ix-row { position: relative; display: grid; grid-template-columns: 160px minmax(0, 1fr) minmax(0, 220px); gap: 24px; align-items: center; padding: 18px 0 18px 36px; text-decoration: none; border-bottom: 1.5px solid var(--rule); }
.ix-row img, .ix-noimg { width: 160px; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 10px; border: 2px solid var(--ink); background: var(--ground-2); }
.ix-text { display: grid; gap: 4px; }
.ix-text b { font-size: 1.3rem; letter-spacing: -.015em; line-height: 1.15; }
.ix-text span { color: var(--ink-2); }
.ix-tech { color: var(--ink-3); text-align: right; }
.ix-row:hover b { text-decoration: underline; text-decoration-thickness: 3px; }

/* ---------------------------------------------------------------- start form */
.start { max-width: calc(var(--wide) + 2 * var(--pad)); margin: 0 auto; padding: clamp(32px, 5vw, 72px) var(--pad) var(--sec); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.start-side { position: sticky; top: 110px; }
.start-side .lede { margin: 22px 0 32px; }
.call-card { border-top: 2.5px solid var(--ink); padding-top: 18px; margin-bottom: 24px; }
.call-card p { color: var(--ink-2); margin: 8px 0 14px; }
.brief { background: var(--panel); border: 2.5px solid var(--ink); border-radius: calc(var(--radius) + 6px); padding: clamp(20px, 4vw, 48px); display: grid; gap: 36px; }
.f-step { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; }
.f-step legend { display: flex; align-items: center; gap: 14px; font-weight: 850; font-size: 1.45rem; letter-spacing: -.02em; margin-bottom: 14px; padding: 0; }
.f-ring { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 5px solid var(--ink); font-size: 1rem; padding-top: 3px; }
.f-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 11px 16px 9px; border-radius: 999px; border: 2px solid var(--rule); font-weight: 600; font-size: .98rem; line-height: 1.3; transition: border-color .2s, background .2s, color .2s; }
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 3px; }
.chip-sm span { padding: 8px 14px 6px; font-size: .92rem; }
.f-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.f { display: grid; gap: 7px; font-weight: 700; font-size: .98rem; }
.opt { font-weight: 400; color: var(--ink-3); }
.f input, .f select, .f textarea { font: 400 1.05rem/1.45 "Overpass", sans-serif; color: var(--ink); background: var(--ground); border: 2px solid var(--ink-3); border-radius: 12px; padding: 12px 14px 10px; width: 100%; transition: border-color .2s, background .2s, box-shadow .2s; caret-color: var(--blue); }
.f textarea { resize: vertical; min-height: 140px; }
.f input:hover, .f select:hover, .f textarea:hover { border-color: var(--ink); }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--ink); background: var(--panel-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 30%, transparent); }
.f [aria-invalid="true"] { border-color: var(--red-ink); background: color-mix(in srgb, var(--red) 10%, var(--panel)); }
.f-hint { margin: -6px 0 0; font-size: .92rem; color: var(--ink-3); }
.f-err { margin: -4px 0 0; color: var(--red-ink); font-weight: 650; font-size: .95rem; }
.f-sum { background: color-mix(in srgb, var(--red) 12%, var(--panel)); border: 2px solid var(--red-ink); border-radius: 12px; padding: 14px 18px; color: var(--red-ink); }
.f-pref { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.f-pref > span { font-weight: 700; margin-right: 6px; }
.hp { position: absolute; left: -9999px; }
.btn-send { justify-self: start; min-height: 58px; padding-inline: 34px; font-size: 1.08rem; }

/* ---------------------------------------------------------------- thanks, error, prose */
.thanks { max-width: 900px; margin: 0 auto; padding: clamp(48px, 8vw, 120px) var(--pad) var(--sec); }
.thanks .lede { margin-top: 22px; }
.prose { max-width: 820px; margin: 0 auto; padding: clamp(40px, 6vw, 96px) var(--pad) var(--sec); }
.prose .lede { margin: 20px 0 40px; }
.prose .h3 { margin: 40px 0 10px; }
.prose p { color: var(--ink-2); max-width: 66ch; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .about-grid, .case-body { grid-template-columns: 1fr; }
  .case-tech { grid-column: auto; }
  .finder-grid { grid-template-columns: 1fr; }
  .finder-out { position: relative; top: 0; }
  .start { grid-template-columns: 1fr; }
  .start-side { position: static; }
}
@media (max-width: 860px) {
  .nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--pad) 24px; background: var(--ground); border-bottom: 2.5px solid var(--ink); transform: translateY(-120%); visibility: hidden; transition: transform .45s var(--ease-out), visibility 0s .45s; font-size: 1.25rem; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .nav a::after { display: none; }
  .nav .pill { margin-top: 16px; text-align: center; border: 0; }
  .top.menu-open .nav { transform: none; visibility: visible; transition: transform .45s var(--ease-out); }
  .menu-btn { display: grid; gap: 6px; place-content: center; width: 48px; height: 48px; border-radius: 50%; border: 2.5px solid var(--ink); background: transparent; cursor: pointer; }
  .menu-btn span:not(.sr) { width: 20px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease-out); }
  .menu-open .menu-btn span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .menu-open .menu-btn span:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }
  .sec-head, .finder-head { grid-template-columns: 1fr; gap: 14px; }
  .case-stage { grid-template-columns: 1fr; }
  .frame-phone { max-width: 260px; justify-self: center; }
  .gallery .g-item { grid-column: span 12 !important; }
  .gallery .g-item.g-mobile { grid-column: span 6 !important; }
  .ix-row { grid-template-columns: 96px minmax(0, 1fr); }
  .ix-row img, .ix-noimg { width: 96px; }
  .ix-tech { display: none; }
  .foot-in { grid-template-columns: 1fr; }
  .caps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  :root { --lw: 10px; --ring-w: 4px; }
  .brand-name { font-size: 1rem; }
  .mark { width: 44px; }
  .f-row { grid-template-columns: 1fr; }
  .cta-row .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}



/* ================================================================ ticker */
.ticker { background: var(--ink); color: var(--ground); overflow: hidden; padding: 22px 0 18px; border-block: 2.5px solid var(--ink); }
.ticker-track { display: flex; width: max-content; }
.ticker-row { display: flex; gap: 56px; padding-right: 56px; animation: tick 46s linear infinite; }
.ticker:hover .ticker-row { animation-play-state: paused; }
.tk-item { display: inline-flex; align-items: center; gap: 16px; font-size: clamp(1.6rem, 1.1rem + 2vw, 3rem); font-weight: 850; letter-spacing: -.03em; white-space: nowrap; }
.tk-item i { width: .62em; height: .62em; border-radius: 50%; border: 5px solid var(--ground); flex: none; }
@keyframes tick { to { transform: translateX(-100%); } }

/* ================================================================ savings calculator */
.savings { max-width: calc(var(--wide) + 2 * var(--pad)); margin: 0 auto; padding: var(--sec) var(--pad) 0; }
.calc { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.calc-intro { color: var(--ink-2); margin-bottom: 18px; }
.calc-tools { display: grid; gap: 10px; }
.calc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; background: var(--panel); border: 2px solid var(--rule); border-radius: var(--radius); padding: 14px 18px; transition: border-color .2s, opacity .2s; }
.calc-row:has(input[data-calc-on]:checked) { border-color: var(--ink); }
.calc-row:not(:has(input[data-calc-on]:checked)) { opacity: .62; }
.calc-on { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; cursor: pointer; }
.calc-on input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.calc-box { width: 28px; height: 28px; border-radius: 50%; border: 5px solid var(--ink); background: var(--ground); margin-top: 2px; transition: background .2s, transform .3s var(--ease-out); }
.calc-on input:checked + .calc-box { background: var(--amber); border-color: var(--amber); box-shadow: inset 0 0 0 4px var(--ground); }
.calc-on input:focus-visible + .calc-box { outline: 3px solid var(--blue); outline-offset: 3px; }
.calc-name { display: grid; gap: 2px; }
.calc-name b { font-size: 1.1rem; }
.calc-name span { color: var(--ink-3); font-size: .92rem; }
.calc-qty { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: .9rem; }
.calc-qty input { width: 76px; font: 700 1.05rem "Overpass", sans-serif; text-align: right; padding: 8px 10px 6px; border-radius: 10px; border: 2px solid var(--ink-3); background: var(--ground); color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-qty input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 30%, transparent); }
.calc-out { position: sticky; top: 104px; background: var(--ink); color: var(--ground); border-radius: calc(var(--radius) + 8px); padding: clamp(24px, 3vw, 40px); overflow: hidden; }
.calc-label { font-weight: 700; color: #c9ccc6; margin-top: 8px; }
.calc-big { font-size: clamp(3rem, 2rem + 4vw, 5.4rem); font-weight: 900; letter-spacing: -.045em; line-height: 1; margin: 6px 0 20px; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.calc-big small { font-size: 1.1rem; letter-spacing: 0; font-weight: 600; color: #c9ccc6; }
.calc-vs { font-size: 1.08rem; border-top: 1.5px solid #3a3d40; padding-top: 16px; }
.calc-vs b { color: var(--amber); }
.calc-note { font-size: .88rem; color: #a3a8a0; }
.calc-out .btn-ink { background: var(--ground); color: var(--ink); border-color: var(--ground); margin-top: 8px; }
.calc-out .btn-ink:hover { background: var(--amber); border-color: var(--amber); }

/* ================================================================ examples (horizontal on wide screens) */
.examples { padding-top: var(--sec); }
.ex-red { --c: var(--red); } .ex-blue { --c: var(--blue); } .ex-green { --c: var(--green); } .ex-amber { --c: var(--amber); }
.ex p { color: var(--ink-2); margin: 0; position: relative; z-index: 1; }
.ex-links { display: grid; gap: 6px; margin-top: 6px !important; font-weight: 700; }
.ex-src { font-weight: 500; font-size: .88rem; color: var(--ink-3) !important; }
.sources { max-width: calc(var(--wide) + 2 * var(--pad)); margin: 28px auto 0; padding: 0 var(--pad); font-size: .92rem; color: var(--ink-3); }
.sources summary { cursor: pointer; font-weight: 700; color: var(--ink-2); }
.sources ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 4px; }

@media (max-width: 1100px) {
  .calc { grid-template-columns: 1fr; }
  .calc-out { position: relative; top: 0; }
}
@media (max-width: 560px) {
  .calc-row { grid-template-columns: 1fr; }
  .calc-qty { justify-self: start; margin-left: 44px; }
}
@media (prefers-reduced-motion: reduce) { .ticker-row { animation: none; } }

.split-line { overflow: hidden; padding-bottom: .06em; }

.fs-line > span:last-child { flex-basis: 100%; }


/* ================================================================ dark theme: surfaces, edges and depth */
body { background: radial-gradient(1200px 700px at 85% -10%, color-mix(in srgb, var(--blue) 14%, transparent), transparent 70%), radial-gradient(900px 600px at -10% 40%, color-mix(in srgb, var(--red) 8%, transparent), transparent 70%), var(--ground); background-attachment: fixed; }
.top { background: color-mix(in srgb, var(--ground) 78%, transparent); }
.top.is-scrolled { border-bottom-color: var(--rule); box-shadow: 0 12px 30px -20px rgba(0, 0, 0, .9); }
.pill, .btn-ink { box-shadow: 0 6px 18px -8px rgba(238, 240, 234, .35); }
.pill:hover, .btn-ink:hover { background: var(--amber); border-color: var(--amber); color: var(--deep); box-shadow: 0 10px 28px -10px color-mix(in srgb, var(--amber) 70%, transparent); }
.btn-line { border-color: var(--edge); }
.btn-line:hover { border-color: var(--ink); }
/* cards and panels: quiet edges, layered shadows */
.finder-out, .brief, .g-item a, .ix-row img, .calc-row, .prob, .transfers li, .chip span { border-color: var(--edge) !important; }
.finder-out, .brief, .g-item a, .calc-row, .prob { box-shadow: var(--shadow-1); }
.prob { background: var(--panel); }
.prob[aria-checked="true"] { box-shadow: var(--shadow-2), 0 0 0 2px var(--ink); }
.prob[aria-checked="true"] .prob-dots i { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ground); }
.prob-dots i { border-color: var(--panel); }
.finder-out, .brief { background: linear-gradient(170deg, var(--panel-2), var(--panel)); }
.calc-row:has(input[data-calc-on]:checked) { border-color: color-mix(in srgb, var(--amber) 55%, var(--edge)) !important; }
.calc-qty input, .f input, .f select, .f textarea { background: var(--ground); border-color: var(--edge); }
.caps li, .numbers li, .key { border-top-color: var(--edge); }
.ix-row { border-bottom-color: var(--rule); }
.frame-browser { box-shadow: var(--shadow-2); }
.frame-browser .frame-media, .frame-browser .frame-bar { border-color: var(--edge); }
.frame-bar { background: var(--panel-2); }
.frame-bar i { background: var(--edge); }
.frame-url { background: var(--ground); color: var(--ink-3); }
.frame-phone .frame-media { border-color: var(--panel-2); box-shadow: var(--shadow-2), 0 0 0 1px var(--edge); }
.g-item.g-mobile a { border-color: var(--panel-2) !important; }
.clip-btn { background: var(--ink); color: var(--deep); }
.clip-btn:hover { background: var(--amber); color: var(--deep); }
/* deep bands */
.close, .foot { background: var(--deep); color: var(--ink-2); }
.close { border-top: 1px solid var(--rule); box-shadow: 0 -30px 80px -40px rgba(0, 0, 0, .9) inset; }
.close p { color: var(--ink-2); }
.close .btn-ink { background: var(--ink); color: var(--deep); border-color: var(--ink); }
.close .btn-line { color: var(--ink); border-color: var(--edge); }
.close .btn-line:hover { background: var(--ink); color: var(--deep); }
.foot { border-top-color: var(--rule); }
.foot .brand, .foot-nav a { color: var(--ink); }
.foot .mark-line { stroke: var(--ink); } .foot .mark-cap { fill: var(--deep); stroke: var(--ink); } .foot .mark-dot { fill: var(--ink); }
.foot .brand-name span, .foot-meta { color: var(--ink-3); }
.foot-meta { border-top-color: var(--rule); }
.mark-cap { fill: var(--ground); }
.ticker { background: var(--ink); color: var(--deep); border: 0; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .9); }
.tk-item i { border-color: var(--ink); box-shadow: 0 0 0 2px var(--deep); }
.calc-out { background: linear-gradient(160deg, #1f2328, #111316); color: var(--ink); border: 1px solid var(--edge); box-shadow: var(--shadow-2); }
.calc-label, .calc-big small { color: var(--ink-3); }
.calc-big { color: var(--ink); text-shadow: 0 0 40px color-mix(in srgb, var(--amber) 35%, transparent); }
.calc-vs { border-top-color: var(--edge); }
.calc-note { color: var(--ink-3); }
.calc-out .btn-ink { background: var(--amber); color: var(--deep); border-color: var(--amber); }
.calc-out .btn-ink:hover { background: var(--ink); border-color: var(--ink); }
.zoom::backdrop { background: rgba(6, 7, 8, .92); }
.zoom-x { background: var(--ink); color: var(--deep); }
/* journey on dark */


/* ================================================================ v3: the voyage (sketchbook ship) */
.hand { font-family: "Caveat", cursive; }
.voyage { position: relative; }
.v-canvas, .v-log { display: none; }
.v-intro { max-width: calc(var(--wide) + 2 * var(--pad)); margin: 0 auto; padding: clamp(40px, 7vw, 96px) var(--pad) 32px; }
.v-name { font-size: clamp(3.4rem, 1rem + 9vw, 9.5rem); font-weight: 900; letter-spacing: -.05em; line-height: .84; margin-bottom: 26px; }
.v-name span { color: var(--amber); font-family: "Caveat", cursive; font-weight: 700; letter-spacing: -.01em; font-size: 1.04em; display: inline-block; transform: rotate(-3deg) translateY(.04em); }
.v-lede { font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); line-height: 1.45; color: var(--ink-2); max-width: 36ch; }
.v-stages { list-style: none; max-width: calc(var(--wide) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad) 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; counter-reset: v; }
.v-card { background: linear-gradient(170deg, var(--panel-2), var(--panel)); border: 1px solid var(--edge); border-radius: 18px; padding: 22px 22px 18px; box-shadow: var(--shadow-1); }
.v-title { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.3rem); letter-spacing: -.03em; line-height: 1; margin-bottom: 12px; }
.v-text { color: var(--ink-2); font-size: 1.04rem; max-width: 44ch; }
.v-head { font-size: clamp(2rem, 1.2rem + 3vw, 3.6rem); font-weight: 900; letter-spacing: -.04em; line-height: .95; margin-bottom: 14px; }
.v-next { display: none; }

/* with the canvas: a pinned sea you sail through */
.v-on .voyage { height: 700vh; }
.v-on .v-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.v-on .v-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.v-on .v-intro { position: absolute; left: var(--pad); top: clamp(88px, 12vh, 140px); padding: 0; margin: 0; max-width: min(620px, 92vw); z-index: 2; transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); }
.v-on .voyage:not(.at-start) .v-intro { opacity: 0; transform: translateY(-30px); pointer-events: none; }
.v-on .v-stages { position: absolute; inset: 0; max-width: none; margin: 0; padding: 0; display: block; pointer-events: none; z-index: 2; }
.v-on .v-card { position: absolute; left: var(--pad); bottom: 84px; width: min(460px, 88vw); opacity: 0; visibility: hidden; transform: translateY(24px) rotate(1.2deg); transition: opacity .5s var(--ease-out), transform .7s var(--ease-out), visibility 0s .7s;
  background: color-mix(in srgb, var(--panel) 80%, transparent); backdrop-filter: blur(10px); box-shadow: var(--shadow-2); }
.v-on .v-card:nth-child(even) { transform: translateY(24px) rotate(-1.2deg); }
.v-on .v-card.is-on { opacity: 1; visibility: visible; transform: rotate(-.6deg); pointer-events: auto; transition: opacity .6s var(--ease-out) .05s, transform .8s var(--ease-out) .05s; }
.v-on .v-card:nth-child(even).is-on { transform: rotate(.6deg); }
.v-on .v-end { left: 50%; right: auto; top: 46%; bottom: auto; width: min(760px, 92vw); text-align: center; transform: translate(-50%, -40%); }
.v-on .v-end.is-on { transform: translate(-50%, -50%); }
.v-on .v-end .cta-row { justify-content: center; }
.v-on .v-next { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; background: none; border: 0; padding: 0; color: var(--ink); font: 700 1.5rem "Caveat", cursive; cursor: pointer; text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: .25em; }
.v-on .v-next::after { content: ""; width: 26px; height: 2px; background: currentColor; box-shadow: 0 0 0 0 transparent; transform: translateY(2px); }
.v-on .v-next:hover { color: var(--amber); }
.v-on .v-log { display: flex; position: absolute; left: var(--pad); right: var(--pad); bottom: 22px; z-index: 3; justify-content: space-between; gap: 8px; padding-top: 18px; }
.v-log::before { content: ""; position: absolute; left: 14px; right: 14px; top: 26px; height: 2px; background: repeating-linear-gradient(90deg, var(--chalk-2) 0 8px, transparent 8px 16px); }
.v-dot { position: relative; display: grid; justify-items: center; gap: 6px; background: none; border: 0; color: var(--ink-3); font: 700 1.25rem "Caveat", cursive; cursor: pointer; padding: 0; }
.v-dot i { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--chalk-2); background: var(--ground); transition: background .3s, border-color .3s, transform .4s var(--ease-out); }
.v-dot:hover { color: var(--ink); }
.v-dot.is-on { color: var(--amber); }
.v-dot.is-on i { background: var(--amber); border-color: var(--amber); transform: scale(1.3); }
.v-dot:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
@media (max-width: 760px) {
  .v-on .voyage { height: 620vh; }
  .v-on .v-card { left: 16px; right: 16px; width: auto; top: auto; bottom: 86px; }
  .v-on .v-intro { top: 84px; }
  .v-dot span { display: none; }
}

/* ================================================================ v3: ports of call (the globe) */
.worlds { max-width: calc(var(--wide) + 2 * var(--pad)); margin: 0 auto; padding: var(--sec) var(--pad) 0; }
.w-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 32px; align-items: end; margin-bottom: 28px; }
.w-head p { color: var(--ink-2); font-size: 1.12rem; margin: 0; max-width: 48ch; }
.w-canvas { display: none; }
.w-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.w-card a { display: grid; gap: 8px; text-decoration: none; height: 100%; padding: 14px 14px 18px; border-radius: 18px; background: linear-gradient(170deg, var(--panel-2), var(--panel)); border: 1px solid var(--edge); box-shadow: var(--shadow-1); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.w-card a:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.w-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 12px; border: 1px solid var(--edge); margin-bottom: 6px; }
.w-flag { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-3); font-weight: 650; }
.w-title { font-size: 1.35rem; letter-spacing: -.02em; line-height: 1.1; }
.w-short { color: var(--ink-2); font-size: .98rem; }
.w-go { font: 700 1.4rem "Caveat", cursive; color: var(--amber); }
.w-foot { margin: 24px 0 0; font-weight: 700; }
.worlds.is-live { max-width: none; padding: 0; margin-top: var(--sec); height: 460vh; }
.worlds.is-live .w-stage { position: sticky; top: 0; height: 100svh; display: grid; grid-template-rows: auto 1fr auto; max-width: calc(var(--wide) + 2 * var(--pad)); margin: 0 auto; padding: 96px var(--pad) 20px; }
.worlds.is-live .w-body { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(16px, 3vw, 48px); align-items: center; min-height: 0; }
.worlds.is-live .w-canvas { display: block; width: 100%; height: 100%; min-height: 320px; touch-action: pan-y; cursor: grab; }
.worlds.is-live .w-cards { display: block; position: relative; align-self: center; min-height: 440px; }
.worlds.is-live .w-card { position: absolute; inset: 0 0 auto 0; opacity: 0; visibility: hidden; transform: translateY(18px) rotate(1deg); transition: opacity .45s var(--ease-out), transform .6s var(--ease-out), visibility 0s .6s; }
.worlds.is-live .w-card.is-on { opacity: 1; visibility: visible; transform: rotate(-.6deg); transition: opacity .5s var(--ease-out), transform .7s var(--ease-out); }
.worlds.is-live .w-card a { box-shadow: var(--shadow-2); }
.worlds.is-live .w-card a::before { content: ""; position: absolute; left: -10px; top: 26px; width: 22px; height: 22px; border-radius: 50%; background: var(--c, var(--amber)); box-shadow: 0 0 0 5px var(--ground); }
.w-red { --c: var(--red); } .w-blue { --c: var(--blue); } .w-green { --c: var(--green); } .w-amber { --c: var(--amber); }
.worlds.is-live .w-foot::before { content: "Drag or scroll to turn the globe. Click an island to jump aboard. "; color: var(--ink-3); font-weight: 400; }
@media (max-width: 900px) {
  .w-head { grid-template-columns: 1fr; gap: 10px; }
  .worlds.is-live .w-body { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .worlds.is-live .w-canvas { min-height: 0; }
  .worlds.is-live .w-cards { min-height: 300px; }
  .worlds.is-live .w-card img { display: none; }
  .worlds.is-live .w-stage { padding-top: 80px; }
}
.w-card a { position: relative; }
.mark-wave, .mark-mast { fill: none; stroke: var(--ink); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.mark-cap { fill: var(--ground); stroke: var(--ink); stroke-width: 3.2; stroke-linejoin: round; }
.mark-flag { fill: var(--amber); }
.foot .mark-wave, .foot .mark-mast { stroke: var(--ink); }
.brand:hover .mark { animation: bob 1.6s var(--ease-out) infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-2px) rotate(-3deg); } }
.v-on .v-end, .v-on .v-end:nth-child(even) { transform: translate(-50%, -42%); }
.v-on .v-end.is-on, .v-on .v-end:nth-child(even).is-on { transform: translate(-50%, -50%); }
@media (max-width: 760px) {
  .v-on .v-end, .v-on .v-end:nth-child(even), .v-on .v-end.is-on, .v-on .v-end:nth-child(even).is-on { left: 16px; right: 16px; width: auto; top: auto; bottom: 86px; transform: none; }
  .v-on .v-end:not(.is-on) { transform: translateY(24px); }
}
@media (max-width: 900px) {
  .worlds.is-live .w-body { grid-template-rows: minmax(260px, 46svh) auto; }
  .worlds.is-live .w-canvas { height: 100%; }
}

/* ================================================================ v4: review fixes (one world: sketchbook at sea) */
body { background: var(--ground) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .93 0 0 0 0 .91 0 0 0 0 .86 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-attachment: scroll; }
:root { --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='16' viewBox='0 0 120 16'%3E%3Cpath d='M0 8c10-6 20-6 30 0s20 6 30 0 20-6 30 0 20 6 30 0' fill='none' stroke='%23ece8dc' stroke-opacity='.55' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
/* buoys replace the old letter roundels */
.buoy { display: inline-grid; flex: none; }
.buoy svg { width: 100%; height: 100%; overflow: visible; }
.bz-sm { width: 22px; height: 24px; } .bz-md { width: 30px; height: 32px; } .bz-lg { width: 46px; height: 50px; }
.buoy-body { fill: var(--bc); stroke: var(--chalk); stroke-width: 1.8; stroke-linejoin: round; }
.buoy-band { stroke: var(--chalk); stroke-width: 1.8; stroke-linecap: round; }
.buoy-wave { fill: none; stroke: var(--chalk-2); stroke-width: 1.6; stroke-linecap: round; }
.buoy-red { --bc: var(--red); } .buoy-blue { --bc: var(--blue); } .buoy-green { --bc: var(--green); } .buoy-amber { --bc: var(--amber); }
/* ticker re-inked as chalk on the night ground */
.ticker { background: transparent; color: var(--chalk); box-shadow: none; padding: 30px 0 26px; position: relative; }
.ticker::before, .ticker::after { content: ""; position: absolute; left: 0; right: 0; height: 16px; background: var(--wave) repeat-x; }
.ticker::before { top: 0; } .ticker::after { bottom: 0; }
.tk-item { font-family: "Caveat", cursive; font-weight: 700; letter-spacing: 0; font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3.2rem); }
.tk-item i { width: .42em; height: .42em; border: 0; box-shadow: none; }
/* close band: an inked horizon instead of the four-colour stripe */
.close::before { left: 0; right: 0; top: 40px; height: 16px; background: var(--wave) repeat-x; opacity: 1; }
/* case page */
.case-title { gap: 18px; }
.case-line { color: var(--ink-3); font-weight: 600; gap: 10px; }
.case-line span + span::before { content: "\00b7"; margin-right: 10px; color: var(--ink-3); }
.parts { padding-left: 0; }
.parts::before { display: none; }
.parts li { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; padding: 16px 0 14px; border-top: 1px solid var(--rule); }
.parts li:last-child { border-bottom: 1px solid var(--rule); }
.part-n { grid-row: span 2; font-size: 2rem; line-height: 1; color: var(--amber); }
.case-ports { max-width: calc(var(--wide) + 2 * var(--pad)); margin: var(--sec) auto 0; padding: 0 var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cp { display: grid; gap: 2px; padding: 22px 24px; border-radius: 18px; background: linear-gradient(170deg, var(--panel-2), var(--panel)); border: 1px solid var(--edge); box-shadow: var(--shadow-1); text-decoration: none; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.cp:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.cp .hand { font-size: 1.35rem; color: var(--amber); }
.cp b { font-size: 1.3rem; letter-spacing: -.02em; }
.cp-next { text-align: right; }
.case-head { padding-top: clamp(40px, 6vw, 88px); }
/* career record as a ship's log */
.record { padding-left: 0; }
.record::before { display: none; }
.record li { grid-template-columns: 70px 1fr; column-gap: 14px; padding: 14px 0 12px; border-top: 1px solid var(--rule); }
.record li:last-child { border-bottom: 1px solid var(--rule); }
.record li::before { display: none; }
.record .mono { grid-row: span 2; font-family: "Caveat", cursive; font-size: 1.6rem; font-weight: 700; color: var(--amber); line-height: 1; }
/* work index without the rail */
.ix-list { padding-left: 0; }
.ix-list::before { display: none; }
.ix-row { padding-left: 0; }
.ix-head .buoy { margin-right: 4px; }
/* port cards: sector after the description, no duplicate dot */
.worlds.is-live .w-card a::before { display: none; }
.w-flag { order: 3; }
/* gear */
.gear { max-width: calc(var(--wide) + 2 * var(--pad)); margin: 0 auto; padding: var(--sec) var(--pad) 0; }
.gear-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.gear-list a { display: grid; gap: 6px; padding: 22px 18px 20px 0; text-decoration: none; border-bottom: 1px solid var(--rule); height: 100%; }
.gear-list b { font-size: 1.2rem; letter-spacing: -.015em; }
.gear-list span { color: var(--ink-2); font-size: .97rem; }
.gear-go { color: var(--amber) !important; font-size: 1.35rem !important; }
.gear-list a:hover b { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; }
/* examples as a ruled list with margin notes */
.examples { max-width: calc(var(--wide) + 2 * var(--pad)); margin: 0 auto; padding: var(--sec) var(--pad) 0; }
.ex-list { list-style: none; margin: 0; padding: 0; }
.ex-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 24px; padding: 28px 0 24px; border-top: 1px solid var(--rule); }
.ex-row:last-child { border-bottom: 1px solid var(--rule); }
.ex-note { margin: 0; font-size: 1.7rem; line-height: 1.05; color: var(--c); transform: rotate(-3deg); transform-origin: left top; padding-top: 4px; }
.ex-row.ex-red { --c: var(--red-ink); } .ex-row.ex-blue { --c: var(--blue-ink); } .ex-row.ex-green { --c: var(--green-ink); } .ex-row.ex-amber { --c: var(--amber-ink); }
.ex-body .ex-title { margin-bottom: 10px; }
.ex-body p { color: var(--ink-2); max-width: 70ch; margin: 0 0 10px; }
.ex-body .ex-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
/* calculator as an inked ledger */
.calc-row { background: transparent; border: 0 !important; border-bottom: 1px solid var(--rule) !important; border-radius: 0; box-shadow: none !important; padding: 16px 2px; }
.calc-row:first-of-type { border-top: 1px solid var(--rule) !important; }
.calc-tools { gap: 0; }
.calc-box { border-radius: 6px; border-width: 2px; border-color: var(--chalk); }
.calc-on input:checked + .calc-box { background: transparent; border-color: var(--amber); box-shadow: none; position: relative; }
.calc-on input:checked + .calc-box::after { content: ""; position: absolute; left: 6px; top: 1px; width: 9px; height: 16px; border: solid var(--amber); border-width: 0 3px 3px 0; transform: rotate(40deg); }
.calc-lines { margin: 4px 0 14px; display: grid; gap: 8px; border-top: 1px solid var(--edge); padding-top: 14px; }
.calc-lines div { display: flex; justify-content: space-between; gap: 16px; }
.calc-lines dt { color: var(--ink-2); }
.calc-lines dd { margin: 0; font-weight: 750; color: var(--amber); text-align: right; }
/* voyage: shorter, always skippable */
.v-on .voyage { height: 430vh; }
.v-skip { display: none; }
.v-on .v-skip { display: inline-block; position: absolute; right: var(--pad); top: 86px; z-index: 4; font: 700 1.35rem "Caveat", cursive; color: var(--ink-2); text-decoration-color: var(--amber); }
.v-on .voyage.at-start .v-skip { opacity: 0; pointer-events: none; }
.worlds.is-live { height: 260vh; }
/* reduced motion fallback: the closing card takes a full row */
.v-stages .v-end { grid-column: 1 / -1; text-align: left; }
.v-stages .v-end .v-head { max-width: 22ch; }
@media (max-width: 760px) {
  .v-on .voyage { height: 400vh; }
  .ex-row { grid-template-columns: 1fr; gap: 6px; }
  .case-ports { grid-template-columns: 1fr; }
  .cp-next { text-align: left; }
  .v-on .v-intro .v-lede { font-size: 1.02rem; }
}
.v-on .v-stages .v-end { text-align: center; }
.v-on .v-stages .v-end .v-text { margin-inline: auto; }
.v-on .v-stages .v-end .v-head { max-width: none; }
.ix-row-text { grid-template-columns: minmax(0, 1fr) minmax(0, 220px); }
@media (max-width: 860px) { .ix-row-text { grid-template-columns: 1fr; } }
.clip-btn.is-playing { opacity: 0; pointer-events: none; }
.frame-browser:hover .clip-btn.is-playing, .clip-btn.is-playing:focus-visible { opacity: 1; pointer-events: auto; }

/* ================================================================ v5: the globe takes the stage */
.worlds.is-live .w-stage, .worlds.is-free .w-stage { grid-template-rows: auto 1fr auto; }
.worlds.is-live .w-body, .worlds.is-free .w-body { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.worlds.is-live .w-canvas, .worlds.is-free .w-canvas { min-height: 0; height: 100%; }
.worlds.is-live .w-head, .worlds.is-free .w-head { margin-bottom: 8px; }
.worlds.is-live .w-card img { aspect-ratio: 16 / 9; }
.worlds.is-free { max-width: none; padding: clamp(32px, 5vw, 64px) 0 0; }
.worlds.is-free .w-stage { display: grid; max-width: calc(var(--wide) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.worlds.is-free .w-body { position: relative; display: grid; gap: clamp(16px, 3vw, 48px); align-items: center; height: min(78svh, 760px); }
.worlds.is-free .w-canvas { display: block; width: 100%; touch-action: pan-y; cursor: grab; }
.worlds.is-free .w-cards { display: block; position: relative; min-height: 440px; }
.worlds.is-free .w-card { position: absolute; inset: 0 0 auto 0; opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity .45s var(--ease-out), transform .6s var(--ease-out), visibility 0s .6s; }
.worlds.is-free .w-card.is-on { opacity: 1; visibility: visible; transform: rotate(-.6deg); transition: opacity .5s var(--ease-out), transform .7s var(--ease-out); }
.worlds.is-free .w-card a { box-shadow: var(--shadow-2); }
.pg-work .work-top { padding-bottom: 0; }
@media (max-width: 900px) {
  .worlds.is-live .w-body, .worlds.is-free .w-body { grid-template-columns: 1fr; grid-template-rows: minmax(300px, 54svh) auto; height: auto; }
  .worlds.is-live .w-head p, .worlds.is-free .w-head p { font-size: 1rem; }
  .worlds.is-live .w-cards, .worlds.is-free .w-cards { min-height: 220px; }
  .worlds.is-free .w-card img, .worlds.is-live .w-card img { display: none; }
  .worlds.is-live .w-short, .worlds.is-free .w-short { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ================================================================ v5: consistency pieces */
.stage-empty { grid-column: 1 / -1; background: linear-gradient(170deg, var(--panel-2), var(--panel)); border: 1px solid var(--edge); border-radius: 22px; padding: clamp(24px, 4vw, 48px) clamp(12px, 3vw, 40px); box-shadow: var(--shadow-1); }
.chart-route { fill: none; stroke: var(--chalk-2); stroke-width: 2.5; stroke-dasharray: 2 12; stroke-linecap: round; }
.chart-buoy { fill: var(--bc, var(--amber)); stroke: var(--chalk); stroke-width: 2; stroke-linejoin: round; }
.chart-band { stroke: var(--chalk); stroke-width: 2; }
.chart-red { --bc: var(--red); } .chart-blue { --bc: var(--blue); } .chart-green { --bc: var(--green); } .chart-amber { --bc: var(--amber); }
.chart-name { font: 700 26px "Caveat", cursive; fill: var(--chalk); }
.sketch-note { width: min(100%, 320px); margin-bottom: 32px; }
.sk-wave, .sk-ink { fill: none; stroke: var(--chalk); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sk-wave { stroke: var(--chalk-2); }
.sk-fill { fill: var(--ground); }
.sk-flag { fill: var(--amber); }
.f-ring { width: 34px; height: 34px; border: 2px solid var(--amber); color: var(--amber); font: 700 1.3rem/1 "Caveat", cursive; padding-top: 1px; }
.thanks .lede, .prose .lede { color: var(--ink-2); }
.case-line span + span::before { content: none; }
.case-line { column-gap: 16px; row-gap: 4px; }
.v-on .v-skip { top: auto; bottom: 60px; }

/* ================================================================ v6: say what I do first, then load the ship */
.v-what { font-size: clamp(2.5rem, 1rem + 4.6vw, 5.4rem); font-weight: 900; letter-spacing: -.045em; line-height: .95; max-width: 15ch; margin-bottom: 10px; text-wrap: balance; }
.v-tag { font: 700 clamp(2rem, 1.2rem + 2.6vw, 3.4rem)/1 "Caveat", cursive; color: var(--amber); margin: 0 0 18px; transform: rotate(-2deg); transform-origin: left; }
.v-cargo { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: 620px; }
.v-crate { --c: var(--amber); display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 5px; border-radius: 10px; border: 1px solid var(--edge); background: color-mix(in srgb, var(--panel) 80%, transparent); font-weight: 700; font-size: .95rem; color: var(--ink); transition: border-color .4s, box-shadow .4s, transform .5s var(--ease-out), opacity .4s; }
.v-crate::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--c); }
.v-crate-red { --c: var(--red); } .v-crate-blue { --c: var(--blue); } .v-crate-green { --c: var(--green); } .v-crate-amber { --c: var(--amber); }
.v-on .v-crate { opacity: .35; transform: translateY(6px); }
.v-on .v-crate.is-loaded { opacity: 1; transform: none; border-color: color-mix(in srgb, var(--c) 60%, var(--edge)); box-shadow: 0 8px 20px -12px color-mix(in srgb, var(--c) 80%, transparent); }
.v-on .v-intro { max-width: min(640px, 92vw); }
.v-on .v-intro .cta-row { margin-top: 22px; }
.v-on .voyage.is-loading .v-intro .btn-ink { opacity: .55; }
@media (max-width: 760px) {
  .v-what { font-size: clamp(2rem, 8.4vw, 2.6rem); }
  .v-tag { font-size: 1.9rem; margin-bottom: 10px; }
  .v-on .v-intro .v-lede { display: none; }
  .v-cargo { gap: 6px; margin-top: 10px; }
  .v-crate { font-size: .82rem; padding: 5px 10px 4px; }
  .v-on .v-intro .cta-row { margin-top: 14px; }
}

/* ================================================================ v7: technology mark */
.mark { width: 54px; }
.mark-wave { fill: none; stroke: var(--chalk-2); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.mark-mast { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mark-cap { fill: var(--ground); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.mark-node { fill: var(--amber); }
.mark-sig { fill: none; stroke: var(--amber); stroke-width: 2.4; stroke-linecap: round; }
.mark-prompt { fill: none; stroke: var(--amber); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.foot .mark-cap { fill: var(--deep); }
.brand:hover .mark-sig { animation: ping 1.2s var(--ease-out) infinite; }
@keyframes ping { 0% { opacity: .2; } 50% { opacity: 1; } 100% { opacity: .2; } }

/* ================================================================ v7: the journey up front */
.v-route { list-style: none; margin: 20px 0 0; padding: 0; display: flex; gap: 0; position: relative; max-width: 620px; }
.v-route::before { content: ""; position: absolute; left: 14px; right: 14px; top: 13px; height: 2px; background: repeating-linear-gradient(90deg, var(--amber) 0 8px, transparent 8px 15px); opacity: .8; }
.v-route li { flex: 1; position: relative; }
.v-route button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; justify-items: center; gap: 4px; width: 100%; text-align: center; font: 700 1.2rem/1.05 "Caveat", cursive; color: var(--ink-2); }
.v-route i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ground); border: 2px solid var(--amber); color: var(--amber); font: 800 .85rem/1 "Overpass", sans-serif; font-style: normal; padding-top: 2px; transition: background .25s, color .25s, transform .35s var(--ease-out); }
.v-route button:hover, .v-route button:focus-visible { color: var(--ink); }
.v-route button:hover i, .v-route button:focus-visible i { background: var(--amber); color: var(--deep); transform: scale(1.12); }
.v-route button:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 8px; }
.v-stages ~ .v-route { display: none; }
@media (max-width: 760px) {
  .v-route { margin-top: 12px; }
  .v-route button { font-size: .98rem; }
  .v-route i { width: 22px; height: 22px; font-size: .72rem; }
  .v-route::before { top: 10px; }
  .v-on .v-cargo { margin-top: 8px; }
  .v-on .v-crate { font-size: .76rem; padding: 4px 8px 3px; }
  .v-on .v-tag { font-size: 1.6rem; margin-bottom: 4px; }
  .v-on .v-what { font-size: clamp(1.75rem, 7.4vw, 2.3rem); margin-bottom: 4px; }
  .v-on .v-intro { top: 76px; }
  .v-on .v-intro .btn { min-height: 44px; padding: 11px 18px 9px; font-size: .95rem; }
}
@media (min-width: 761px) {
  .v-on .v-what { font-size: clamp(2.3rem, .9rem + 3.3vw, 4.4rem); max-width: 17ch; }
  .v-on .v-intro { top: clamp(84px, 11vh, 118px); }
  .v-on .v-intro .v-lede { font-size: 1.08rem; max-width: 46ch; margin-bottom: 0; }
  .v-on .v-tag { margin-bottom: 12px; }
}
@media (min-width: 761px) and (max-height: 800px) {
  .v-on .v-intro .v-lede { display: none; }
  .v-on .v-what { font-size: clamp(2.2rem, .8rem + 2.9vw, 3.6rem); }
}

/* ================================================================ v8: the opening and casting off */
/* Holds the intro back until the opening sequence starts; shows it anyway if the script never runs. */
@media (prefers-reduced-motion: no-preference) {
  .voyage .v-intro:not(.is-run) { animation: v-hold 1.4s steps(1, end) both; }
}
@keyframes v-hold { from { visibility: hidden; } to { visibility: visible; } }
.v-route { --route: 1; }
.v-route::before { transform: scaleX(var(--route)); transform-origin: left center; }
.v-route span { display: block; }
.v-on .voyage.is-ready.at-start .v-intro .btn-ink { animation: v-call 2.6s var(--ease-out) .4s infinite; }
@keyframes v-call {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--amber) 55%, transparent); }
  70%, 100% { box-shadow: 0 0 0 16px color-mix(in srgb, var(--amber) 0%, transparent); }
}
.v-on .voyage:not(.is-ready) .v-card { transition: none; }
