/* OneDeepDive · the deep. Dark by nature: ink water, paper type, one warm accent. */
:root {
  color-scheme: dark;
  --ink: #0B0F14;
  --ink-2: #10161D;
  --ink-3: #18212B;
  --paper: #EDE7DB;
  --paper-2: #CBC4B6;
  --mute: #8C93A0;
  --faint: #5D6572;
  --line: rgba(237, 231, 219, .13);
  --line-2: rgba(237, 231, 219, .26);
  --amber: #FFC46B;
  --coral: #E8836B;
  --moss: #A9C77E;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gut: clamp(20px, 5.5vw, 88px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}
* { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--ink); color: var(--paper);
  font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; font-feature-settings: "ss01", "cv11";
}
.no-gl body { background: radial-gradient(120% 90% at 60% 10%, #172231 0%, #0d131b 48%, var(--ink) 100%) fixed; }
::selection { background: rgba(255, 196, 107, .32); color: #fff; }
button, input, textarea { font: inherit; color: inherit; }
:focus { outline: none; }
:focus-visible { outline: 1.5px solid var(--amber); outline-offset: 3px; border-radius: 3px; }
img { max-width: 100%; display: block; }

/* layers */
#water, #etch { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#water { z-index: 0; }
#etch { z-index: 1; pointer-events: none; }
.no-gl #water { display: none; }
#nodes { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
#ui { position: relative; z-index: 3; min-height: 100vh; min-height: 100dvh; padding: 104px var(--gut) 56px; outline: none; }
#ui.pass { pointer-events: none; }
#ui[data-screen="welcome"] { padding-bottom: 112px; }
#ui.pass a, #ui.pass button, #ui.pass input, #ui.pass textarea, #ui.pass label, #ui.pass form, #ui.pass .panel, #ui.pass .solid { pointer-events: auto; }

/* type */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -.012em; text-wrap: balance; }
h1 { font-size: clamp(56px, 9.4vw, 148px); line-height: .9; }
h2 { font-size: clamp(36px, 4.8vw, 68px); line-height: .98; }
h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.05; }
h4 { font-size: 21px; line-height: 1.15; }
em { font-style: italic; }
p { margin: 0 0 .9em; }
.eyebrow { display: block; font: 500 11.5px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); margin: 0 0 18px; font-variant-numeric: tabular-nums; }
.eyebrow b { color: var(--paper); font-weight: 500; }
.lede { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.5; color: var(--paper-2); max-width: 36em; text-wrap: pretty; }
.hint { color: var(--mute); font-size: 14.5px; line-height: 1.5; text-wrap: pretty; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rule { height: 1px; background: var(--line); border: 0; margin: 22px 0; }

/* top bar */
.bar { position: fixed; z-index: 6; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px var(--gut); pointer-events: none; }
.bar > * { pointer-events: auto; }
.bar::before { content: ""; position: absolute; inset: 0 0 -24px; z-index: -1; pointer-events: none; background: linear-gradient(rgba(11, 15, 20, .92), rgba(11, 15, 20, .6) 60%, rgba(11, 15, 20, 0)); opacity: 0; transition: opacity .3s; }
.scrolled .bar::before { opacity: 1; }
.mark { display: inline-flex; align-items: baseline; gap: 10px; background: none; border: 0; padding: 4px 0; cursor: pointer; font: 400 22px/1 var(--serif); letter-spacing: -.01em; color: var(--paper); }
.mark i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--paper); position: relative; top: -1px; }
.mark i::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: var(--amber); }
.tools { display: flex; align-items: center; gap: 22px; font-size: 13.5px; color: var(--paper-2); }
.tool { background: none; border: 0; padding: 6px 0; cursor: pointer; color: var(--paper-2); letter-spacing: .01em; display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.tool:hover { color: var(--paper); }
.tool[hidden] { display: none; }
.wave { display: inline-flex; align-items: center; gap: 2px; height: 12px; }
.wave span { width: 1.5px; background: currentColor; height: 4px; border-radius: 1px; transition: height .3s var(--ease); }
.sound-on .wave span { animation: bars 1.2s ease-in-out infinite; }
.sound-on .wave span:nth-child(2) { animation-delay: -.3s; } .sound-on .wave span:nth-child(3) { animation-delay: -.6s; } .sound-on .wave span:nth-child(4) { animation-delay: -.9s; }
@keyframes bars { 0%, 100% { height: 3px; } 50% { height: 11px; } }
.confirm { display: inline-flex; align-items: center; gap: 12px; color: var(--paper); }
.confirm button { background: none; border: 0; padding: 6px 0; cursor: pointer; color: var(--paper-2); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.confirm button.yes { color: var(--coral); text-decoration-color: currentColor; }

/* controls */
.btn { --b: var(--line-2); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--b); background: transparent; color: var(--paper); font: 500 15px/1 var(--sans); letter-spacing: .01em; cursor: pointer; white-space: nowrap; transition: background .25s var(--ease), border-color .25s, color .25s, transform .2s var(--ease); }
.btn:hover { --b: rgba(237, 231, 219, .55); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--paper); color: var(--ink); --b: var(--paper); }
.btn.primary:hover { background: #fff; --b: #fff; }
.btn.primary .arrow { transition: transform .3s var(--ease); }
.btn.primary:hover .arrow { transform: translateX(3px); }
.btn[disabled] { opacity: .32; cursor: not-allowed; transform: none; }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.link { background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--paper-2); font-size: 14.5px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); transition: color .2s, text-decoration-color .2s; }
.link:hover { color: var(--paper); text-decoration-color: var(--paper); }
.arrow { display: inline-block; font-family: var(--sans); }
.row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.row.center { justify-content: center; }

.field { display: block; margin: 0 0 22px; }
.field > span, .label { display: block; font-size: 12.5px; letter-spacing: .06em; color: var(--mute); margin-bottom: 8px; }
input[type="text"], input:not([type]), textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
  padding: 10px 0 11px; font: 400 17px/1.45 var(--sans); color: var(--paper); transition: border-color .25s;
}
textarea { resize: vertical; min-height: 3.2em; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, textarea:focus { border-bottom-color: var(--amber); }
input:focus-visible, textarea:focus-visible { outline: none; }
input:-webkit-autofill { -webkit-text-fill-color: var(--paper); -webkit-box-shadow: 0 0 0 40px var(--ink) inset; caret-color: var(--paper); }
.big-input { font: 400 clamp(26px, 2.6vw, 34px)/1.2 var(--serif) !important; letter-spacing: -.01em; }

.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; border-radius: 999px; padding: 9px 16px; font-size: 14.5px; color: var(--paper-2); cursor: pointer; transition: background .25s var(--ease), color .2s; }
.seg button:hover { color: var(--paper); }
.seg button[aria-checked="true"], .seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.chip { border: 1px solid var(--line-2); background: none; border-radius: 999px; padding: 9px 15px; font-size: 14px; color: var(--paper-2); cursor: pointer; transition: border-color .2s, color .2s, background .2s; text-align: left; }
.chip:hover { border-color: var(--paper); color: var(--paper); }
.chip[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.panel { background: rgba(11, 15, 20, .82); border: 1px solid var(--line); border-radius: 4px; padding: 28px; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.solid { background: var(--ink-2); border: 1px solid var(--line); border-radius: 4px; }

/* the intro */
.drop { position: fixed; z-index: 2; width: 2px; height: 70px; left: 0; top: 0; pointer-events: none; opacity: 0; background: linear-gradient(to bottom, rgba(237, 231, 219, 0), rgba(255, 236, 206, .95)); border-radius: 2px; }
.drop.fall { animation: fall .38s cubic-bezier(.55, 0, .9, .4) forwards; }
@keyframes fall { 0% { opacity: 0; transform: translate(var(--x), -90px) scaleY(.6); } 15% { opacity: 1; } 100% { opacity: 1; transform: translate(var(--x), calc(var(--y) - 70px)) scaleY(1.15); } }
.line { display: block; overflow: hidden; padding: .04em 0 .2em; margin: -.04em 0 -.2em; }
.line > span { display: inline-block; }
.intro .line > span { transform: translateY(105%); }
.intro .fade { opacity: 0; transform: translateY(10px); }
.play .line > span { animation: rise 1s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 1ms); }
.play .fade { animation: fadeup .9s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 1ms); }
@keyframes rise { to { transform: none; } }
@keyframes fadeup { to { opacity: 1; transform: none; } }
.screen-in { animation: screenin .7s var(--ease) both; }
#ui.still .screen-in { animation: none; }
@keyframes screenin { from { opacity: 0; transform: translateY(12px); } }

/* welcome */
.hero { min-height: calc(100vh - 160px); min-height: calc(100dvh - 160px); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); align-items: end; gap: 6vw; }
.hero h1 { margin-bottom: 30px; }
.hero h1 em { color: var(--paper); }
.hero .lede { margin-bottom: 0; }
.start { padding-bottom: 6px; }
.start .row { margin-top: 30px; }
.foot-note { position: fixed; z-index: 3; bottom: 22px; left: var(--gut); font-size: 12.5px; color: var(--faint); letter-spacing: .02em; pointer-events: none; }
.foot-note a { pointer-events: auto; color: var(--mute); }

/* step headers */
.head { max-width: 860px; margin-bottom: 40px; }
.head h2 { margin-bottom: 18px; }

/* taste: choose three */
.index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.index li { border-bottom: 1px solid var(--line); }
.index li:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.topic { width: 100%; display: grid; grid-template-columns: 40px 1fr auto; align-items: baseline; gap: 8px; background: none; border: 0; padding: 22px 22px 22px 4px; text-align: left; cursor: pointer; color: var(--paper-2); transition: color .25s, background .35s var(--ease); position: relative; }
.index li:not(:nth-child(3n+1)) .topic { padding-left: 22px; }
.topic .no { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.topic .nm { font: 400 clamp(26px, 2.5vw, 36px)/1.05 var(--serif); letter-spacing: -.01em; }
.topic .tick { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-2); align-self: center; position: relative; transition: border-color .2s, background .2s; }
.topic:hover { color: var(--paper); }
.topic:hover .tick { border-color: var(--paper); }
.topic[aria-pressed="true"] { color: var(--paper); }
.topic[aria-pressed="true"] .nm { font-style: italic; }
.topic[aria-pressed="true"] .tick { background: var(--amber); border-color: var(--amber); }
.topic[aria-pressed="true"] .tick::after { content: attr(data-n); position: absolute; inset: 0; display: grid; place-items: center; font: 600 10.5px/1 var(--sans); color: var(--ink); }
.taste-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-top: 34px; flex-wrap: wrap; }
.custom { display: flex; align-items: flex-end; gap: 14px; flex: 1 1 360px; max-width: 520px; }
.custom .field { flex: 1; margin: 0; }
.count { font-size: 14px; color: var(--mute); margin-right: 6px; font-variant-numeric: tabular-nums; }

/* taste: one at a time */
.taste { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 7vw; align-items: start; max-width: 1240px; }
.taste .who h2 { font-size: clamp(56px, 7vw, 112px); line-height: .92; font-style: italic; margin-bottom: 22px; }
.taste .prompt { font: 400 clamp(22px, 2vw, 28px)/1.3 var(--serif); color: var(--paper); margin-bottom: 26px; max-width: 22em; }
.idea-line { border-left: 1px solid var(--amber); padding: 2px 0 2px 16px; color: var(--paper-2); font-size: 15px; max-width: 30em; }
.idea-line b { display: block; font-weight: 500; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }
.steps { display: flex; gap: 6px; margin-bottom: 28px; }
.steps i { width: 26px; height: 2px; background: var(--line-2); }
.steps i.on { background: var(--paper); }

/* pick */
.picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.pk { padding: 30px 30px 30px 0; display: flex; flex-direction: column; min-height: 320px; }
.pk + .pk { border-left: 1px solid var(--line); padding-left: 30px; }
.pk h3 { font-size: clamp(36px, 3.4vw, 52px); margin-bottom: 18px; }
.pk blockquote { margin: 0 0 14px; font: italic 400 20px/1.35 var(--serif); color: var(--paper-2); }
.pk .feel { font-size: 13.5px; color: var(--mute); margin-bottom: 22px; }
.pk .btn { margin-top: auto; align-self: flex-start; }

/* the plunge */
.veil { position: fixed; inset: 0; z-index: 5; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity .5s; text-align: center; padding: 0 24px; }
.veil.on { opacity: 1; }
.veil .eyebrow { margin-bottom: 14px; }
.veil h2 { font-size: clamp(60px, 10vw, 160px); font-style: italic; line-height: .9; }
.veil.on h2 { animation: sink 2.2s cubic-bezier(.5, 0, .2, 1) forwards; }
@keyframes sink { 0% { transform: translateY(-20px) scale(1.06); filter: blur(6px); opacity: 0; } 30% { filter: blur(0); opacity: 1; } 75% { opacity: 1; } 100% { transform: translateY(40px) scale(.94); filter: blur(4px); opacity: 0; } }

/* tree screens */
.top-band { max-width: 720px; }
.top-band h2 { margin-bottom: 14px; }
.top-band .lede { font-size: 16.5px; }
.dock { position: fixed; z-index: 4; left: var(--gut); right: var(--gut); bottom: 28px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
.dock .note { color: var(--mute); font-size: 14px; }
.recommit { color: var(--paper); font: italic 400 19px/1.3 var(--serif); }
.tnode { position: absolute; left: 0; top: 0; pointer-events: auto; background: none; border: 0; padding: 6px 8px; cursor: pointer; color: var(--paper-2); text-align: left; opacity: 0; transition: opacity .6s var(--ease), color .2s; will-change: transform; }
.tnode.shown { opacity: 1; }
.tnode:hover, .tnode:focus-visible { color: var(--paper); }
.tnode.end { transform-origin: 50% 100%; text-align: center; }
.tnode.end b { display: block; font: 400 24px/1.05 var(--serif); letter-spacing: -.01em; color: var(--paper); white-space: nowrap; }
.tnode.end small { display: block; font-size: 13px; line-height: 1.4; color: var(--mute); max-width: 220px; margin: 6px auto 0; }
.tnode.end.l { text-align: right; } .tnode.end.r { text-align: left; }
.tnode.end.l small { margin-right: 0; } .tnode.end.r small { margin-left: 0; }
.tnode.end.here b { font-style: italic; }
.tnode.end.here b::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); margin-left: 8px; vertical-align: middle; position: relative; top: -2px; }
.tnode.end:hover b { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; text-decoration-color: var(--line-2); }
.tnode.mk { min-width: 30px; height: 26px; padding: 0 6px; border-radius: 999px; font: italic 400 17px/26px var(--serif); text-align: center; color: var(--paper); font-variant-numeric: tabular-nums; }
.tnode.mk:hover, .tnode.mk.lit { color: var(--amber); }
.key { list-style: none; margin: 34px 0 0; padding: 0; width: min(300px, 30vw); overflow: auto; position: relative; z-index: 3; }
.key li { border-top: 1px solid var(--line); }
.key li:last-child { border-bottom: 1px solid var(--line); }
.key button { width: 100%; display: grid; grid-template-columns: 34px 1fr; gap: 6px; align-items: baseline; padding: 12px 0; background: none; border: 0; cursor: pointer; text-align: left; color: var(--paper-2); transition: color .2s; }
.key .no { font: italic 400 17px/1 var(--serif); color: var(--mute); }
.key b { display: block; font: 400 18px/1.2 var(--serif); color: var(--paper); }
.key small { display: block; font-size: 12.5px; color: var(--mute); margin-top: 3px; }
.key button:hover b, .key button.lit b { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: var(--line-2); }
.key button:hover .no, .key button.lit .no { color: var(--amber); }
.mute-labels .tnode.mk:not(.lit) { opacity: .4; }
.side { position: fixed; z-index: 5; top: 92px; right: var(--gut); bottom: 110px; width: min(420px, calc(100vw - 2 * var(--gut))); overflow: auto; padding: 30px; }
.side[hidden] { display: none; }
.side .close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: none; cursor: pointer; color: var(--paper); font-size: 18px; line-height: 1; }
.side h3 { margin: 0 0 8px; padding-right: 40px; }
.said { margin: 18px 0; padding: 0 0 0 16px; border-left: 1px solid var(--amber); font: italic 400 20px/1.35 var(--serif); color: var(--paper); }
.said cite { display: block; font: 400 12.5px/1.4 var(--sans); color: var(--mute); margin-top: 6px; font-style: normal; letter-spacing: .02em; }
.expo { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.expo-panel { position: fixed; z-index: 5; left: var(--gut); right: var(--gut); bottom: 24px; max-height: 40vh; overflow: auto; padding: 22px 28px; }
.expo-panel .quiz h4, .expo-panel .model h4 { display: none; }
.expo-panel .expo { margin-bottom: 18px; }

/* build */
.build { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 28px; align-items: start; max-width: 1320px; }
.coach-panel { position: sticky; top: 100px; display: flex; flex-direction: column; max-height: calc(100vh - 130px); padding: 0; overflow: hidden; }
.coach-head { display: flex; align-items: center; gap: 14px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.coach-head b { display: block; font: 400 22px/1 var(--serif); }
.coach-head small { display: block; color: var(--mute); font-size: 13px; margin-top: 4px; }
.pulse { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; flex: none; }
.pulse::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--amber); transform: scale(calc(1 + var(--p, 0) * .6)); transition: transform .25s; }
.pulse::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--amber); opacity: calc(var(--p, 0) * .8); transform: scale(calc(1 + (1 - var(--p, 0)) * .7)); }
.log { flex: 1; overflow: auto; padding: 20px 24px 8px; display: flex; flex-direction: column; gap: 14px; scroll-behavior: smooth; }
.log > * { flex: none; }
.msg { max-width: 92%; }
.msg p { margin: 0; }
.msg.coach p { font: 400 19px/1.38 var(--serif); color: var(--paper); }
.msg.coach b { font-weight: 400; font-style: italic; }
.msg.me { align-self: flex-end; text-align: right; }
.msg.me p { font-size: 15px; color: var(--paper-2); border-right: 1px solid var(--line-2); padding-right: 12px; }
.say { display: flex; gap: 10px; align-items: flex-end; padding: 14px 24px 20px; border-top: 1px solid var(--line); }
.say input { font-size: 15.5px; }
.ws { padding: 34px; }
.ws-head { margin-bottom: 26px; }
.ws-head h3 { margin-bottom: 8px; }
.plan { list-style: none; counter-reset: p; padding: 0; margin: 26px 0; }
.plan li { counter-increment: p; display: grid; grid-template-columns: 34px 1fr; padding: 14px 0; border-top: 1px solid var(--line); color: var(--mute); }
.plan li:last-child { border-bottom: 1px solid var(--line); }
.plan li::before { content: counter(p, decimal-leading-zero); font-size: 12px; letter-spacing: .06em; padding-top: 3px; }
.plan li.done { color: var(--paper); }
.plan li.done::before { color: var(--amber); }
.plan li b { font-weight: 500; }
fieldset.q { border: 0; border-top: 1px solid var(--line); margin: 0 0 6px; padding: 18px 0 0; }
fieldset.q legend { font: 400 20px/1 var(--serif); font-style: italic; padding: 0 12px 0 0; color: var(--paper); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.preview { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 22px; }
@media (max-width: 1360px) { .ws-split { display: block !important; } .ws-split .preview { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--line) !important; padding-top: 22px !important; margin-top: 10px !important; } }
.ws-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; }
.ws-split .preview { margin-top: 0; border-top: 0; padding-top: 0; border-left: 1px solid var(--line); padding-left: 34px; }
.file { display: flex; align-items: center; gap: 12px; }
.file input { font-size: 14px; color: var(--mute); }
.photo { border-radius: 2px; margin-top: 12px; max-height: 260px; object-fit: cover; }

/* rendered builds */
.quiz h4, .model h4 { font-size: 26px; margin-bottom: 18px; }
.qq { margin-bottom: 20px; }
.qq p { margin-bottom: 10px; font-size: 16px; color: var(--paper); }
.opts { display: flex; flex-direction: column; gap: 6px; }
.opt { text-align: left; border: 1px solid var(--line); background: none; border-radius: 3px; padding: 11px 14px; cursor: pointer; color: var(--paper-2); font-size: 15px; display: flex; justify-content: space-between; gap: 12px; transition: border-color .2s, color .2s; }
.opt:hover { border-color: var(--line-2); color: var(--paper); }
.opt.right { border-color: var(--moss); color: var(--paper); }
.opt.right::after { content: "Right"; color: var(--moss); font-size: 13px; }
.opt.wrong { border-color: rgba(232, 131, 107, .6); }
.opt.wrong::after { content: "Not this one"; color: var(--coral); font-size: 13px; }
.guide .gt { font: italic 400 26px/1.1 var(--serif); padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line-2); }
.entry { padding: 14px 0; border-bottom: 1px solid var(--line); }
.entry h5 { margin: 0 0 6px; font: 400 20px/1.15 var(--serif); }
.entry p { margin: 0 0 6px; color: var(--paper-2); font-size: 15px; }
.entry .why { color: var(--mute); font-size: 14px; }
.model p { color: var(--paper-2); font-size: 15px; }
.model p b, .entry b { font-weight: 500; color: var(--paper); }
.sketchview img { border-radius: 2px; border: 1px solid var(--line); }
.sketchview figcaption { margin-top: 10px; font-size: 14px; color: var(--mute); }
.sketchview figcaption b { font: italic 400 18px var(--serif); color: var(--paper); }

/* sketch pad */
.pad { border: 1px solid var(--line-2); border-radius: 3px; overflow: hidden; margin: 0 0 22px; }
.pad canvas { display: block; width: 100%; touch-action: none; cursor: crosshair; background: #0E141B; }
.pad-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border-top: 1px solid var(--line); }
.swatch { width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--c); cursor: pointer; box-shadow: 0 0 0 1px rgba(0, 0, 0, .4) inset; transition: transform .2s var(--ease); }
.swatch.on { box-shadow: 0 0 0 2px var(--ink-2), 0 0 0 3px var(--paper); }
.pad-tools .sep { flex: 1; }
.pad-tools .link { font-size: 13.5px; }
.pad-tools .link.on { color: var(--amber); text-decoration-color: currentColor; }
input[type="range"] { accent-color: var(--paper); width: 96px; }

/* reflect */
.narrow { max-width: 760px; }
.narrow h2 { margin-bottom: 34px; }
.narrow .field > span { font: 400 22px/1.25 var(--serif); letter-spacing: -.005em; color: var(--paper); margin-bottom: 4px; }

/* the grown-up card, printed on paper */
.card-wrap { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 6vw; align-items: start; max-width: 1240px; }
.card-wrap .head { margin-bottom: 24px; }
.gcard { background: var(--paper); color: #1A1D22; border-radius: 2px; padding: 34px 36px 30px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 2px 0 rgba(255, 255, 255, .4) inset; position: relative; transform: rotate(-.6deg); }
.gcard::before { content: ""; position: absolute; inset: 0; border-radius: 2px; background: radial-gradient(120% 80% at 20% 0%, rgba(255, 255, 255, .45), transparent 60%); pointer-events: none; }
.gcard header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: #6B6457; padding-bottom: 16px; border-bottom: 1px dashed #B9B0A0; margin-bottom: 6px; }
.gcard header b { font: italic 400 20px/1 var(--serif); letter-spacing: 0; text-transform: none; color: #1A1D22; }
.gsec { padding: 16px 0; border-bottom: 1px solid #D6CEBF; }
.gsec h4 { font: 500 11.5px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #6B6457; margin-bottom: 8px; }
.gsec p { margin: 0; font-size: 16px; line-height: 1.5; }
.gsec .big { font: 400 24px/1.25 var(--serif); letter-spacing: -.005em; }
.gsec ol { margin: 0; padding: 0; list-style: none; counter-reset: q; }
.gsec li { counter-increment: q; display: grid; grid-template-columns: 26px 1fr; font: 400 20px/1.32 var(--serif); margin-bottom: 10px; }
.gsec li::before { content: counter(q) "."; font: 500 13px/1.9 var(--sans); color: #6B6457; }
.gsec .sm { font-size: 14px; color: #6B6457; margin-top: 8px; }
.gcard footer { padding-top: 16px; font-size: 14px; line-height: 1.5; color: #3B3F46; }
.gcard footer b { color: #1A1D22; font-weight: 600; }
.gcard .stamp { position: absolute; top: -14px; right: 26px; background: var(--ink); color: var(--paper); font: 500 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; }
.card-side .row { margin-bottom: 26px; }
.timer { font: 400 64px/1 var(--serif); font-variant-numeric: tabular-nums; letter-spacing: -.02em; margin: 0 0 8px; }
.timer[hidden] { display: none; }
.respond h3 { margin-bottom: 10px; }
.ok { color: var(--moss); font-size: 14px; }
.nav-row { margin-top: 40px; }

/* show */
.show { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 6vw; align-items: start; max-width: 1240px; }
.stage { padding: 30px; }
.stage h3 { margin-bottom: 6px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--paper-2); cursor: pointer; margin: 14px 0; }
.check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; border: 1px solid var(--line-2); border-radius: 3px; flex: none; margin: 1px 0 0; cursor: pointer; display: grid; place-items: center; }
.check input:checked { background: var(--paper); border-color: var(--paper); }
.check input:checked::after { content: ""; width: 9px; height: 5px; border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(-45deg) translate(1px, -1px); }
.block { margin-bottom: 34px; }
.block h3 { margin-bottom: 12px; font-size: 26px; }

.plain-link { color: var(--mute); }

/* phones */
@media (max-width: 860px) {
  #ui { padding: 88px var(--gut) 40px; }
  .bar { padding: 16px var(--gut); }
  .tools { gap: 16px; font-size: 13px; }
  .tool .lbl { display: none; }
  .hero { grid-template-columns: 1fr; gap: 34px; align-items: end; min-height: calc(100dvh - 130px); }
  .hero h1 { margin-bottom: 20px; }
  .index { grid-template-columns: 1fr 1fr; }
  .index li:not(:nth-child(3n)) { border-right: 0; }
  .index li:nth-child(odd) { border-right: 1px solid var(--line); }
  .index li .topic, .index li:not(:nth-child(3n+1)) .topic { padding: 16px 10px 16px 0; grid-template-columns: 26px 1fr auto; }
  .index li:nth-child(even) .topic { padding-left: 14px; }
  .taste, .card-wrap, .show, .build, .expo, .ws-split { grid-template-columns: 1fr; gap: 30px; }
  .picks { grid-template-columns: 1fr; }
  .pk, .pk + .pk { padding: 24px 0; min-height: 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .pk h3 { margin-bottom: 10px; }
  .coach { position: static; max-height: none; }
  .log { max-height: 46vh; }
  .ws { padding: 22px; }
  .ws-split .preview { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 22px; }
  .two { grid-template-columns: 1fr; gap: 0; }
  .gcard { padding: 28px 22px 24px; transform: none; }
  .gcard header { flex-direction: column; gap: 8px; }
  .side { top: auto; bottom: 0; left: 0; right: 0; width: auto; max-height: 72vh; border-radius: 10px 10px 0 0; padding: 24px var(--gut) 30px; }
  .dock { bottom: 18px; gap: 10px; }
  .dock .note { display: none; }
  .tnode.end b { font-size: 19px; }
  .tnode.end small { display: none; }
  .key { display: none; }
  .expo-panel { bottom: 0; left: 0; right: 0; border-radius: 10px 10px 0 0; max-height: 58vh; padding: 22px var(--gut); }
  .foot-note { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; }
  .intro .line > span, .intro .fade { transform: none; opacity: 1; }
}

/* ---------- the long read under the welcome screen ---------- */
.ab-cue { position: absolute; left: 50%; bottom: -64px; transform: translateX(-50%); font-size: 13px; letter-spacing: .04em; color: var(--mute); text-decoration: none; pointer-events: auto; }
.ab-cue:hover { color: var(--paper); }
.hero { position: relative; }
.about { position: relative; margin: 160px calc(-1 * var(--gut)) -112px; padding: 140px var(--gut) 160px; background: linear-gradient(to bottom, rgba(11, 15, 20, 0), rgba(11, 15, 20, .9) 220px, var(--ink) 520px); pointer-events: auto; user-select: text; }
.about cite { font-style: normal; font-size: .82em; color: var(--faint); white-space: nowrap; }
.about strong { font-weight: 600; color: var(--paper); }
.ab-mast { max-width: 980px; margin: 0 0 120px; }
.ab-mast h2 { font-size: clamp(42px, 6.4vw, 96px); line-height: .96; margin-bottom: 26px; }
.ab-mast h2 em { color: var(--paper-2); }
.ab-sub { font-size: 17px; color: var(--mute); }
.ab-sec { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(0, 2.4fr); gap: 4vw; padding: 52px 0; border-top: 1px solid var(--line); }
.ab-sec > h3 { font: 500 11.5px/1.6 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); position: sticky; top: 96px; align-self: start; }
.ab-body { max-width: 760px; color: var(--paper-2); font-size: 17px; line-height: 1.62; }
.ab-body p { text-wrap: pretty; }
.ab-lead { font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); line-height: 1.3; color: var(--paper); }
.ab-note { color: var(--mute); font-size: 15.5px; margin-top: 1.4em; }
.ab-list { list-style: none; margin: 0; padding: 0; }
.ab-list li { padding: 12px 0 12px 22px; position: relative; border-bottom: 1px solid var(--line); }
.ab-list li:last-child { border-bottom: 0; }
.ab-list li::before { content: ""; position: absolute; left: 0; top: 1.3em; width: 8px; height: 1px; background: var(--amber); }
.ab-steps { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.ab-steps li { counter-increment: st; display: grid; grid-template-columns: 54px 1fr; column-gap: 8px; padding: 0 0 30px; }
.ab-steps li::before { content: counter(st, decimal-leading-zero); font: italic 26px/1.1 var(--serif); color: var(--amber); grid-row: 1 / span 2; }
.ab-steps h4, .ab-cols h4, .ab-two h4, .ab-h { font: 400 24px/1.15 var(--serif); color: var(--paper); margin: 0 0 8px; }
.ab-steps h4 span { color: var(--mute); font-size: .78em; }
.ab-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; max-width: none; }
.ab-cols p { font-size: 15.5px; }
.ab-diff { margin: 0; }
.ab-diff div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.ab-diff div:last-child { border-bottom: 0; }
.ab-diff dt { font: 400 22px/1.25 var(--serif); color: var(--paper); margin-bottom: 4px; }
.ab-diff dd { margin: 0; }
.ab-metrics { display: grid; grid-template-columns: 1fr 1fr; column-gap: 34px; }
.ab-metrics div:nth-last-child(2) { border-bottom: 0; }
.ab-big .ab-quote { font: 400 clamp(30px, 3.6vw, 52px)/1.08 var(--serif); color: var(--paper); margin-bottom: .6em; text-wrap: balance; }
.ab-sci .ab-body { max-width: 1040px; }
.ab-two { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; margin: 34px 0 40px; }
.ab-two .ab-list li { font-size: 15.5px; }
.ab-two > div:last-child .ab-list li::before { background: var(--coral); }
.ab-take { margin: 0; padding-left: 1.4em; }
.ab-take li { padding: 4px 0; }
.ab-take li::marker { font-family: var(--serif); color: var(--amber); }
.ab-src { margin-top: 30px; font-size: 14px; color: var(--mute); }
.ab-src summary { cursor: pointer; color: var(--paper-2); }
.ab-src ul { columns: 2; column-gap: 34px; padding-left: 1.1em; margin: 14px 0 0; }
.ab-src li { break-inside: avoid; padding: 2px 0; }
.ab-cta { margin-top: 40px; }
body.scrolled .foot-note { opacity: 0; transition: opacity .3s; }
@media (max-width: 760px) {
  .ab-cue { display: none; }
  .about { margin-top: 80px; padding-top: 90px; }
  .ab-mast { margin-bottom: 64px; }
  .ab-sec { grid-template-columns: 1fr; gap: 18px; padding: 40px 0; }
  .ab-sec > h3 { position: static; }
  .ab-cols, .ab-two, .ab-metrics { grid-template-columns: 1fr; }
  .ab-metrics div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .ab-src ul { columns: 1; }
  .about cite { white-space: normal; }
}

/* ---------- the landing page as a sea that deepens while you scroll ---------- */
body.sea { background: var(--bg, var(--ink)); transition: color .5s var(--ease); }
body.sea .about { background: none; }
body.sea .bar::before { background: linear-gradient(var(--bg), color-mix(in srgb, var(--bg) 70%, transparent) 60%, transparent); }
body.sea.bright {
  --paper: #04303A; --paper-2: #0A4551; --mute: #1F5D68; --faint: #2D6B76;
  --line: rgba(4, 48, 58, .2); --line-2: rgba(4, 48, 58, .38);
  --ink: #F1FCFA; --amber: #A3530E;
}
body.sea.bright input::placeholder { color: rgba(4, 48, 58, .45); }
body.sea.bright ::selection { background: rgba(4, 48, 58, .2); }
body.sea:not(.bright) { --paper-2: #DDEBEE; --mute: #B4CFD8; --faint: #93B4C0; --line: rgba(237, 245, 247, .18); }
body.scrolled .foot-note { visibility: hidden; }

/* ---------- fish and bubbles in the shallows ---------- */
#play { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: 0; }
body.fishy, body.fishy #water { cursor: pointer; }
.tap-hint { position: absolute; top: -8px; right: 0; margin: 0; font: italic 400 20px/1.2 var(--serif); color: var(--paper-2); }
@media (max-width: 760px) { .tap-hint { position: static; grid-row: 1; font-size: 17px; } }

/* ---------- skimmable long read: headline, one line, cards, details on demand ---------- */
.ab-sec { padding: 64px 0; }
.ab-hl { font: 400 clamp(30px, 3.4vw, 50px)/1.04 var(--serif); color: var(--paper); margin: 0 0 14px; text-wrap: balance; letter-spacing: -.01em; }
.ab-sum { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.45; color: var(--paper-2); max-width: 36em; margin: 0 0 6px; }
.ab-body { max-width: 980px; }
.ab-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 34px 0 0; padding: 0; }
.ab-pills li { border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 16px; font-size: 14.5px; color: var(--paper-2); }
.ab-pills b { font: 400 20px/1 var(--serif); color: var(--paper); margin-right: 4px; }
.ab-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 30px 0 0; }
.ab-card { border-top: 2px solid var(--amber); padding: 16px 2px 0; }
.ab-card h4 { font: 600 16.5px/1.25 var(--sans); color: var(--paper); margin: 0 0 6px; letter-spacing: -.005em; }
.ab-card p { font-size: 15px; line-height: 1.45; color: var(--paper-2); margin: 0; }
.ab-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px 30px; margin: 30px 0 0; }
.ab-steps li { padding: 0; grid-template-columns: 44px 1fr; }
.ab-steps h4 { font: 600 16.5px/1.25 var(--sans); margin: 3px 0 4px; }
.ab-steps p { font-size: 15px; line-height: 1.45; margin: 0; }
.ab-ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.ab-ticks li { position: relative; padding-left: 30px; font-size: 16.5px; font-weight: 500; color: var(--paper); line-height: 1.4; }
.ab-ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--amber); color: var(--ink); }
.ab-ticks.warn li::before { content: "!"; background: var(--coral); font-weight: 700; }
.ab-two { margin: 30px 0 0; }
.ab-two h4 { font: 500 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin: 0 0 4px; }
.ab-more { margin-top: 26px; }
.ab-more summary { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--paper-2); list-style: none; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.ab-more summary::-webkit-details-marker { display: none; }
.ab-more summary::after { content: "+"; font-size: 16px; line-height: 1; }
.ab-more[open] summary::after { content: "−"; }
.ab-more-in { margin-top: 18px; max-width: 760px; font-size: 15.5px; line-height: 1.6; color: var(--paper-2); }
.ab-more-in .ab-h { font: 400 22px/1.2 var(--serif); margin: 22px 0 6px; }
.ab-srcs { padding-left: 1.1em; columns: 2; column-gap: 30px; font-size: 14px; color: var(--mute); }
.ab-big .ab-quote { margin-bottom: 18px; }
@media (max-width: 760px) {
  .ab-sec { padding: 44px 0; }
  .ab-cards { grid-template-columns: 1fr 1fr; }
  .ab-srcs { columns: 1; }
}
@media (max-width: 420px) { .ab-cards { grid-template-columns: 1fr; } }

/* ---------- the inner screens share the sea's colours ---------- */
body.sea { --ink-2: color-mix(in srgb, var(--bg) 72%, #001224); --ink-3: color-mix(in srgb, var(--bg) 84%, #001224); }
body.sea .panel { background: color-mix(in srgb, color-mix(in srgb, var(--bg) 70%, #001224) 88%, transparent); border-color: rgba(237, 245, 247, .16); }
body.sea .solid { background: var(--ink-2); }
body.sea .no-gl, .no-gl body.sea { background: var(--bg); }

/* ---------- build journal: the goal on top, small steps with reasons, the thread notebook ---------- */
.goal-pin { border-left: 3px solid var(--amber); padding: 10px 16px; margin: 0 0 22px; background: rgba(255, 255, 255, .04); border-radius: 0 4px 4px 0; }
.goal-pin .eyebrow { margin-bottom: 4px; }
.goal-pin p { margin: 0; font: 400 21px/1.25 var(--serif); color: var(--paper); }
.goal-pin b { font: 500 13px/1 var(--sans); color: var(--mute); margin-right: 4px; }
.journal { margin: 28px 0 6px; padding-top: 22px; border-top: 1px solid var(--line); }
.jsteps { list-style: none; margin: 6px 0 16px; padding: 0; display: grid; gap: 10px; }
.jsteps li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.jn { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--amber); color: var(--amber); display: grid; place-items: center; font: italic 14px/1 var(--serif); }
.jsteps b { display: block; font-weight: 500; color: var(--paper); font-size: 15px; }
.jsteps small { color: var(--paper-2); font-size: 14px; font-style: italic; }
.jform { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.jform input { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); color: var(--paper); font: inherit; font-size: 15px; padding: 8px 0; outline: none; }
.jform input:focus { border-color: var(--paper); }
.decisions { margin-top: 18px; }
.gcard .why-line { margin: 0 0 6px; }
.book { position: fixed; z-index: 6; top: 84px; right: var(--gut); bottom: 24px; width: min(440px, calc(100vw - 2 * var(--gut))); overflow: auto; padding: 30px; }
.book h3 { margin: 0 0 8px; }
.book .close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: none; cursor: pointer; color: var(--paper); font-size: 18px; line-height: 1; }
.nb-sec { margin-top: 22px; }
.nb-sec h4 { font: 500 11.5px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin: 0 0 8px; }
.nb-ideas { margin: 0; padding-left: 1.1em; font: 400 19px/1.3 var(--serif); color: var(--paper); }
.nb-ideas li { margin: 4px 0; }
.nb-builds { margin: 0; padding-left: 1.3em; }
.nb-builds li { margin: 6px 0; }
.nb-builds b { font-weight: 500; color: var(--paper); }
.nb-builds small { display: block; color: var(--paper-2); font-size: 13.5px; }
.chip.ghost { cursor: default; }
@media (max-width: 760px) { .jform { grid-template-columns: 1fr; } .book { top: 72px; left: 12px; right: 12px; width: auto; } }

/* ---------- why one, why deep: two things to play with ---------- */
.ab-why { padding: 72px 0; border-top: 1px solid var(--line); }
.ab-why > .eyebrow { margin-bottom: 26px; }
.why-two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); }
.why-q { font: 400 clamp(52px, 6.4vw, 96px)/.95 var(--serif); color: var(--paper); margin: 0 0 16px; letter-spacing: -.02em; }
.why-q em { color: var(--amber); }
.why-a { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.45; color: var(--paper-2); margin: 0 0 22px; max-width: 30em; text-wrap: pretty; }
.why-seg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.why-seg button { min-width: 44px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: var(--paper); font: 500 15px/1 var(--sans); cursor: pointer; }
.why-seg button[aria-checked="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.why-seg-l { font-size: 14px; color: var(--mute); margin-left: 4px; }
.why-say { min-height: 3em; margin: 14px 0 6px; font: italic 400 clamp(19px, 1.6vw, 23px)/1.3 var(--serif); color: var(--paper); text-wrap: pretty; }
.why-fine { font-size: 13px; color: var(--mute); margin: 14px 0 0; }
.ab-why .link { font-size: 14px; }

/* the dive tank: always its own little sea, light at the top and dark at the bottom */
.focus-box, .hunt-map { position: relative; height: clamp(300px, 34vw, 380px); border-radius: 18px; overflow: hidden;
  background: linear-gradient(#46D3D2 0%, #1F9DB8 20%, #146683 40%, #0C3E66 60%, #082847 80%, #04142A 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); color: #EAF6F8; }
.orb { position: absolute; top: 0; left: var(--x); width: 2px; height: var(--reach); margin-left: -1px; opacity: var(--o);
  background: linear-gradient(rgba(255, 228, 170, 0), rgba(255, 228, 170, .55)); transition: left .9s var(--ease), height 1.1s var(--ease), opacity .6s; }
.orb b { position: absolute; left: 50%; bottom: 0; width: var(--sz); height: var(--sz); transform: translate(-50%, 50%); border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #FFF6DC, #FFC46B 45%, rgba(255, 150, 60, .2) 75%, transparent 76%);
  box-shadow: 0 0 calc(var(--sz) * .7) rgba(255, 196, 107, .55); transition: width .8s var(--ease), height .8s var(--ease); animation: jig var(--dur, 1.2s) ease-in-out infinite alternate; }
@keyframes jig { from { margin-left: calc(-1 * var(--amp)); } to { margin-left: var(--amp); } }

/* the treasure hunt */
.hunt-map svg.ropes { position: absolute; inset: 0; width: 100%; height: 100%; }
.hunt-map line { stroke: rgba(237, 231, 219, .7); stroke-width: 2.2; stroke-dasharray: 0 7; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hunt-map line.on { stroke: rgba(237, 231, 219, .85); stroke-width: 1.6; stroke-dasharray: none; }
.spot { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.spot i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font: 600 13px/1 var(--sans); font-style: normal; }
.spot.found i { width: 20px; height: 10px; border-radius: 50%; background: #E9E2D3; box-shadow: inset 0 -2px 0 rgba(90, 80, 70, .35); }
.spot.found.here i { background: #FFC46B; box-shadow: 0 0 14px rgba(255, 196, 107, .8); }
.spot.found b { font: 400 16px/1.1 var(--serif); white-space: nowrap; color: #FFF6E6; text-shadow: 0 1px 6px rgba(2, 12, 28, .8); animation: pop .5s var(--ease); }
.spot.found.here b { font-style: italic; color: #FFD898; }
.spot.root b { font-size: 19px; }
.hshell { position: absolute; transform: translate(-50%, -50%); width: 24px; animation: pop .5s var(--ease); }
.hshell svg { display: block; width: 100%; height: auto; overflow: visible; }
.hshell path { fill: #F6E7CF; stroke: rgba(150, 96, 60, .6); stroke-width: .8; }
.hshell path.ridge { fill: none; }
.spot.hidden { border: 0; background: none; padding: 8px; cursor: pointer; color: #EAF6F8; }
.spot.hidden i { width: 30px; height: 30px; border: 1.5px dashed rgba(234, 246, 248, .8); background: rgba(255, 255, 255, .08); border-radius: 50%; animation: glow 1.8s ease-in-out infinite; }
.spot.hidden:hover i, .spot.hidden:focus-visible i { background: rgba(255, 196, 107, .35); border-style: solid; }
@keyframes glow { 50% { box-shadow: 0 0 18px rgba(234, 246, 248, .55); } }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
.meters { display: grid; gap: 9px; margin: 6px 0 14px; }
.meter { display: grid; grid-template-columns: 128px 1fr; align-items: center; gap: 12px; font-size: 14px; color: var(--paper-2); }
.meter em { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.meter em i { display: block; height: 100%; width: calc(var(--v) * 100%); background: var(--amber); border-radius: inherit; transition: width .7s var(--ease); }
@media (max-width: 860px) { .why-two { grid-template-columns: 1fr; gap: 56px; } }
@media (max-width: 420px) { .spot.found b { font-size: 12.5px; white-space: normal; text-align: center; max-width: 84px; line-height: 1.05; } .spot.root b { font-size: 15px; } .meter { grid-template-columns: 112px 1fr; } }
@media (prefers-reduced-motion: reduce) { .orb, .orb b, .meter em i { transition: none; } .orb b, .spot.hidden i, .spot.found b { animation: none; } }
@media (max-width: 420px) { .hshell { width: 17px; } }

/* ---------- quality pass ---------- */
/* the top bar: a real frosted strip once you scroll, so content never runs under the words */
.bar { transition: padding .3s var(--ease); }
.bar::before { inset: 0; background: color-mix(in srgb, var(--bg, var(--ink)) 78%, transparent) !important; backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); border-bottom: 1px solid var(--line); }
.scrolled .bar, body:not([data-screen="welcome"]) .bar { padding-top: 16px; padding-bottom: 16px; }
body:not([data-screen="welcome"]) .bar::before { opacity: 1; }
body[data-screen="thread"] .bar::before, body[data-screen="year"] .bar::before, body[data-screen="expo"] .bar::before { opacity: 0; }
body[data-screen="thread"].scrolled .bar::before, body[data-screen="year"].scrolled .bar::before { opacity: 1; }

/* the footer sits at the end of the page, never on top of the words */
.foot-note { position: static; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; margin: 0; padding: 28px 0 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--mute); pointer-events: auto; }
.foot-note a { color: var(--paper-2); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.foot-note a:hover { color: var(--paper); border-color: currentColor; }
body.scrolled .foot-note { opacity: 1; visibility: visible; }
.about { margin-bottom: 0; padding-bottom: 96px; }
.ab-cue { bottom: -44px; }
@media (max-width: 860px) { .foot-note { display: flex; } }

/* the show stage already names the build, so the build's own title would say it twice */
.stage .quiz h4, .stage .model h4, .stage .guide .gt { display: none; }

/* drawn ticks instead of glyphs, so they look the same on every device */
.ab-ticks li::before { content: ""; width: 18px; height: 18px; top: 1px; }
.ab-ticks li::after { content: ""; position: absolute; left: 6px; top: 6px; width: 7px; height: 4px; border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(-45deg); }
.ab-ticks.warn li::before { content: ""; }
.ab-ticks.warn li::after { left: 5px; top: 9.25px; width: 8px; height: 1.5px; border: 0; background: var(--ink); transform: none; }
a.btn { text-decoration: none; }

/* ---------- the name under a visiting animal: tap it for a real photo ---------- */
.critter { position: fixed; z-index: 4; left: 0; top: 0; padding: 3px 9px; border: 0; border-radius: 999px; background: rgba(244, 239, 228, .82); color: #10181D; font: italic 400 15px/1.2 var(--serif); cursor: pointer; white-space: nowrap; box-shadow: 0 2px 10px rgba(0, 30, 40, .15); transition: background .2s; }
.critter:hover, .critter:focus-visible { background: #F4EFE4; }
.critter span { font: 400 11px/1 var(--sans); margin-left: 2px; }
.critter[hidden] { display: none; }

/* depth gauge: the landing page as a dive */
.gauge { position: fixed; z-index: 4; left: var(--gut); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding-left: 12px; border-left: 1px solid var(--line); pointer-events: none; opacity: 0; transition: opacity .4s; color: var(--paper-2, currentColor); }
.gauge.on { opacity: 1; }
.gauge.on.dim { opacity: 0; }
.gauge b { font: italic 400 22px/1 var(--serif); font-variant-numeric: tabular-nums; }
.gauge span { font: 500 10.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
@media (max-width: 900px) { .gauge { left: 50%; right: auto; top: 18px; bottom: auto; z-index: 7; transform: translateX(-50%); align-items: center; gap: 3px; padding: 0; border: 0; } .gauge b { font-size: 16px; } .gauge span { font-size: 9px; } .gauge.on.dim { opacity: 1; } }
