/* Claira Health · homepage concept "The Leak".
   Brand: navy, teal, the logo's blue→teal ribbon, warm paper; Plus Jakarta Sans, Newsreader, JetBrains Mono. */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,600;1,6..72,400;1,6..72,500&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --navy: #0A1124; --ink: #0F172A; --ink-2: #334155; --muted: #64748B;
  --teal: #0F766E; --teal-2: #115E59; --mint: #5EEAD4;
  --blue: #0A6CF0; --cyan: #00A9E0; --aqua: #00D6BE;
  --ribbon: linear-gradient(100deg, #0A6CF0, #00A9E0 50%, #00D6BE);
  --paper: #FAF8F4; --paper-2: #F4F0E9; --paper-3: #EDE6D9; --line: #E8E2D7;
  --red: #B42318; --gold: #E8B341;
  --sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --serif: 'Newsreader', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
img, svg { display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
.wrap { width: min(1180px, 100% - 48px); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kicker { display: inline-block; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); padding: 5px 10px; border: 1px solid #CDEDE8; background: #F0FBF9; border-radius: 6px; }
h2.big { font-size: clamp(32px, 4vw, 52px); line-height: 1.04; letter-spacing: -0.04em; margin: 16px 0 14px; }
h2.big em { font-family: var(--serif); font-weight: 400; color: var(--teal); letter-spacing: -0.02em; }
.sub { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 620px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 10px; font-weight: 700; font-size: 15px; text-decoration: none; border: 0; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -12px rgba(15, 23, 42, 0.7); }
.btn-dark:hover { transform: translateY(-2px); }
.btn-line { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-line:hover { border-color: var(--teal); color: var(--teal); }
section { position: relative; }

/* Scroll ribbon: the logo gradient fills as you read */
.read-ribbon { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--ribbon); transform-origin: left; transform: scaleX(0); z-index: 100; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 244, 0.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; }
.brand img { height: 30px; width: auto; }
.brand span { font-weight: 400; color: var(--ink-2); }
.nav-links { display: flex; gap: 26px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--teal); }
@media (max-width: 900px) { .nav-links { display: none; } }

/* ---------- 1. Hero: the leak ---------- */
.hero { padding: 64px 0 40px; overflow: hidden;
  background:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px) 0 0 / 100% 32px,
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px) 0 0 / 32px 100%,
    radial-gradient(ellipse at 30% 0%, #fff, var(--paper) 70%); }
.hero .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(42px, 5.4vw, 74px); line-height: 0.98; letter-spacing: -0.045em; margin: 18px 0 20px; }
.hero h1 em { display: block; font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; background: var(--ribbon); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 6px; }
.hero .sub { margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.leak-stage { position: relative; }
.leak-svg { width: 100%; height: auto; overflow: visible; }
.pipe-shadow { fill: none; stroke: rgba(15, 23, 42, 0.08); stroke-width: 34; stroke-linecap: round; transform: translateY(10px); }
.pipe { fill: none; stroke: url(#pipeGrad); stroke-width: 28; stroke-linecap: round; }
.pipe-shine { fill: none; stroke: rgba(255, 255, 255, 0.45); stroke-width: 5; stroke-linecap: round; transform: translateY(-7px); }
.joint ellipse { fill: #fff; stroke: var(--ink-2); stroke-width: 2; transition: fill 0.4s, stroke 0.4s; }
.joint .crack { fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; transition: opacity 0.3s; }
.joint .clamp { fill: none; stroke: var(--teal); stroke-width: 6; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(1.6); transition: opacity 0.35s, transform 0.5s var(--spring); }
.joint text { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-anchor: middle; transition: opacity 0.3s; }
.joint .pain { fill: var(--red); }
.joint .agent { fill: var(--teal); opacity: 0; font-weight: 700; }
.is-fixed .joint ellipse { fill: #E9FBF8; stroke: var(--teal); }
.is-fixed .joint .crack { opacity: 0; }
.is-fixed .joint .clamp { opacity: 1; transform: scale(1); }
.is-fixed .joint .pain { opacity: 0; }
.is-fixed .joint .agent { opacity: 1; }
.endcap text { font-family: var(--serif); font-style: italic; font-size: 17px; fill: var(--ink); text-anchor: middle; }
.coin circle { fill: var(--gold); stroke: #B7862A; stroke-width: 1.5; }
.coin text { font-family: var(--sans); font-weight: 800; font-size: 11px; fill: #7A5512; text-anchor: middle; dominant-baseline: central; }
.coin.is-caught circle { stroke: var(--teal); stroke-width: 3; }
.jar path.glass { fill: rgba(255, 255, 255, 0.55); stroke: var(--ink-2); stroke-width: 2; }
.jar .fill { fill: url(#fillGrad); transition: height 0.4s var(--ease), y 0.4s var(--ease); }
.jar text, .puddle-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-anchor: middle; }
.jar text { fill: var(--teal); }
.puddle-label { fill: var(--red); }
.puddle ellipse { fill: rgba(180, 35, 24, 0.08); }
.leak-toggle { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 24px -16px rgba(15, 23, 42, 0.5); }
.leak-toggle button { position: relative; z-index: 1; border: 0; background: none; padding: 9px 16px; font-size: 13px; font-weight: 700; color: var(--muted); border-radius: 999px; transition: color 0.3s; white-space: nowrap; }
.leak-toggle button[aria-pressed="true"] { color: #fff; }
.leak-toggle .knob { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--red); transition: transform 0.5s var(--spring), background 0.4s; }
.is-fixed .leak-toggle .knob { transform: translateX(100%); background: var(--teal); }
.leak-caption { text-align: center; margin-top: 30px; font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink-2); min-height: 26px; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } }

/* ---------- 2. Corkboard of pains ---------- */
.cork-sec { padding: 110px 0 100px; }
.cork-head { text-align: center; margin-bottom: 42px; }
.cork-head .sub { margin: 0 auto; }
.cork {
  position: relative; border-radius: 18px; padding: 54px 40px 60px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px;
  background:
    radial-gradient(circle at 20% 30%, rgba(120, 72, 28, 0.18) 0 1.5px, transparent 2px) 0 0 / 9px 11px,
    radial-gradient(circle at 70% 60%, rgba(90, 52, 18, 0.16) 0 1px, transparent 1.5px) 0 0 / 7px 6px,
    linear-gradient(135deg, #C99A63, #B9874F 60%, #A97843);
  box-shadow: inset 0 0 0 12px #6B4A2A, inset 0 0 0 14px #4E351E, inset 0 0 40px rgba(60, 30, 0, 0.45), 0 30px 60px -30px rgba(60, 30, 0, 0.6);
}
.note { position: relative; height: 230px; perspective: 900px; border: 0; background: none; text-align: left; }
.note .card { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 0.8s var(--spring); transform: rotate(var(--r)); }
.note.is-flipped .card { transform: rotate(0deg) rotateY(180deg); }
.note .face { position: absolute; inset: 0; backface-visibility: hidden; padding: 30px 20px 18px; box-shadow: 0 2px 2px rgba(0,0,0,0.12), 0 18px 26px -14px rgba(60, 30, 0, 0.6); }
.note .front { background: #FFF6BF; }
.note:nth-child(2) .front { background: #FFE3D3; }
.note:nth-child(3) .front { background: #E2F2FF; }
.note:nth-child(4) .front { background: #FDE2EC; }
.note .back { background: #fff; transform: rotateY(180deg); border-top: 5px solid var(--teal); }
.note .pin { position: absolute; top: -8px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #F87171, var(--red) 65%, #7F1D1D); box-shadow: 0 4px 5px -1px rgba(0,0,0,0.45); z-index: 3; transform: translateZ(2px); }
.note .scrawl { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.12; color: #2A2310; letter-spacing: -0.01em; }
.note .scrawl-sub { font-family: var(--serif); font-style: italic; font-size: 15px; line-height: 1.4; color: #5B5236; margin-top: 10px; }
.note .flip-hint { position: absolute; left: 20px; bottom: 14px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: rgba(42, 35, 16, 0.55); text-transform: uppercase; }
.note .fixed-tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--teal); text-transform: uppercase; }
.note .fixed-title { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; margin: 8px 0 8px; }
.note .fixed-body { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.note:focus-visible { outline: 3px solid var(--mint); outline-offset: 6px; border-radius: 4px; }
@media (max-width: 1000px) { .cork { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cork { grid-template-columns: 1fr; padding: 44px 24px; } }

/* ---------- 3. Your leak, in your numbers ---------- */
.calc-sec { padding: 100px 0; background: var(--navy); color: #fff; overflow: hidden; }
.calc-sec::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 60% at 85% 100%, rgba(0, 214, 190, 0.22), transparent 60%), radial-gradient(ellipse 40% 50% at 0% 0%, rgba(10, 108, 240, 0.25), transparent 60%); pointer-events: none; }
.calc-sec .wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.calc-sec .kicker { background: rgba(94, 234, 212, 0.1); border-color: rgba(94, 234, 212, 0.3); color: var(--mint); }
.calc-sec h2.big em { color: var(--mint); }
.calc-sec .sub { color: #A8B3C4; }
.dials { margin-top: 30px; display: grid; gap: 24px; }
.dial label { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: #CBD5E1; margin-bottom: 10px; }
.dial output { font-family: var(--mono); font-size: 18px; font-weight: 700; color: #fff; }
.ruler { position: relative; height: 40px; }
.ruler::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 18px; background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.35) 0 1px, transparent 1px 10px) 0 6px / 100% 12px no-repeat,
    repeating-linear-gradient(90deg, rgba(255,255,255,0.6) 0 2px, transparent 2px 50px) 0 0 / 100% 18px no-repeat; }
.ruler input { position: absolute; inset: 0; width: 100%; -webkit-appearance: none; appearance: none; background: transparent; cursor: ew-resize; }
.ruler input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 40px; border-radius: 6px; background: var(--ribbon); box-shadow: 0 0 0 3px rgba(10, 17, 36, 0.9), 0 8px 18px -6px rgba(0, 214, 190, 0.8); }
.ruler input::-moz-range-thumb { width: 22px; height: 40px; border: 0; border-radius: 6px; background: #00A9E0; }
.ruler input:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; border-radius: 4px; }
.calc-note { margin-top: 18px; font-family: var(--mono); font-size: 11px; color: #64748B; }
.tally { position: relative; display: grid; justify-items: center; gap: 14px; text-align: center; }
.tally .label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; color: var(--mint); text-transform: uppercase; }
.tally .money { font-family: var(--mono); font-size: clamp(46px, 6vw, 78px); font-weight: 700; letter-spacing: -0.04em; background: var(--ribbon); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tally .per { font-family: var(--serif); font-style: italic; font-size: 19px; color: #CBD5E1; max-width: 380px; }
.paper-pile { position: relative; width: 240px; height: 210px; perspective: 900px; margin-top: 8px; }
.paper-pile .iso { position: absolute; left: 50%; bottom: 30px; transform-style: preserve-3d; transform: rotateX(60deg) rotateZ(-40deg); }
.paper-pile .sheet { position: absolute; left: -60px; top: -40px; width: 120px; height: 80px; background: #FFFDF8; border: 1px solid #E7DDCB; transform: translateZ(calc(var(--n) * 4px)); transition: transform 0.4s var(--spring), opacity 0.3s; }
.paper-pile .sheet.top { background: linear-gradient(135deg, #FEE2E2, #FECACA); }
.paper-pile .stamp { position: absolute; left: -46px; top: -16px; transform: translateZ(calc(var(--h) * 4px + 2px)); font-family: var(--mono); font-size: 10px; font-weight: 700; color: var(--red); border: 2px solid var(--red); padding: 2px 6px; border-radius: 4px; letter-spacing: 0.1em; transition: transform 0.4s var(--spring); }
@media (max-width: 960px) { .calc-sec .wrap { grid-template-columns: 1fr; } }

/* ---------- 4. Five agents, dealt as a hand of cards ---------- */
.deal-sec { padding: 110px 0 90px; text-align: center; }
.deal-sec .sub { margin: 0 auto; }
.hand { position: relative; height: 430px; margin-top: 30px; }
.agent-card {
  position: absolute; left: 50%; bottom: 20px; width: 220px; height: 310px; margin-left: -110px; border-radius: 18px; border: 0; padding: 22px 20px; text-align: left;
  background: #fff; box-shadow: 0 2px 0 var(--line), 0 24px 40px -24px rgba(15, 23, 42, 0.5);
  transform-origin: 50% 160%; transform: rotate(calc((var(--i) - 2) * 11deg)); transition: transform 0.6s var(--spring), box-shadow 0.4s;
  display: flex; flex-direction: column; overflow: hidden;
}
.agent-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--ribbon); }
.agent-card .glyph { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: #F0FBF9; margin-bottom: 18px; }
.agent-card .glyph svg { width: 34px; height: 34px; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.agent-card .stage { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
.agent-card .name { font-family: var(--serif); font-style: italic; font-size: 24px; margin: 4px 0 12px; letter-spacing: -0.01em; }
.agent-card .what { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.agent-card .num { margin-top: auto; font-family: var(--mono); font-size: 40px; font-weight: 700; color: var(--paper-3); }
.agent-card.is-up { transform: translateY(-70px) rotate(0deg) scale(1.06); z-index: 10; box-shadow: 0 2px 0 var(--line), 0 40px 60px -24px rgba(15, 23, 42, 0.55); }
.agent-card:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
.deal-foot { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ink-2); }
@media (max-width: 700px) {
  .hand { height: auto; display: grid; gap: 14px; }
  .agent-card { position: relative; left: auto; bottom: auto; margin: 0 auto; transform: none; height: auto; width: min(340px, 100%); }
  .agent-card.is-up { transform: none; }
}

/* ---------- 5. The balance: three ways to run billing ---------- */
.scale-sec { padding: 100px 0; background: var(--paper-2); }
.scale-sec .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.options { display: grid; gap: 10px; margin-top: 26px; }
.option { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: start; text-align: left; padding: 16px 18px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s; }
.option .dot { grid-row: span 2; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); margin-top: 2px; transition: border-color 0.3s, background 0.3s; }
.option b { font-size: 16px; letter-spacing: -0.01em; }
.option span.desc { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.option[aria-pressed="true"] { border-color: var(--ink); transform: translateX(6px); box-shadow: 0 14px 24px -18px rgba(15, 23, 42, 0.6); }
.option[aria-pressed="true"] .dot { border-color: var(--ink); background: radial-gradient(circle, var(--ink) 0 40%, transparent 45%); }
.option.claira[aria-pressed="true"] { border-color: var(--teal); }
.option.claira[aria-pressed="true"] .dot { border-color: var(--teal); background: radial-gradient(circle, var(--teal) 0 40%, transparent 45%); }
.balance svg { width: 100%; height: auto; overflow: visible; }
.balance .sketch { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; filter: url(#pencil); }
.balance .beam { transform-box: view-box; transform-origin: 260px 120px; transition: transform 1s var(--spring); }
.balance .pan-l, .balance .pan-r { transition: transform 1s var(--spring); }
.balance .weight { transition: transform 0.8s var(--spring), opacity 0.4s; transform-box: fill-box; transform-origin: center bottom; }
.balance .w-label { font-family: var(--serif); font-style: italic; font-size: 17px; fill: var(--ink); text-anchor: middle; }
.balance .w-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; fill: var(--muted); text-anchor: middle; }
.balance-caption { margin-top: 8px; text-align: center; font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink-2); min-height: 56px; }
@media (max-width: 960px) { .scale-sec .wrap { grid-template-columns: 1fr; } }

/* ---------- 6. Your first 30 days: desk calendar ---------- */
.cal-sec { padding: 110px 0; }
.cal-sec .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.desk-cal { position: relative; width: min(420px, 100%); height: 360px; margin: 0 auto; perspective: 1400px; }
.desk-cal .stand { position: absolute; left: 6%; right: 6%; bottom: 0; height: 40px; background: linear-gradient(180deg, #334155, var(--navy)); border-radius: 6px 6px 14px 14px; transform: perspective(500px) rotateX(40deg); transform-origin: bottom; }
.desk-cal .rings { position: absolute; top: 4px; left: 0; right: 0; display: flex; justify-content: space-evenly; z-index: 30; }
.desk-cal .rings i { width: 10px; height: 26px; border-radius: 5px; background: linear-gradient(90deg, #64748B, #E2E8F0, #64748B); }
.page { position: absolute; left: 0; right: 0; top: 18px; bottom: 30px; background: #FFFDF8; border-radius: 6px; border: 1px solid #E7DDCB; transform-origin: 50% 0; transition: transform 0.9s cubic-bezier(0.6, 0, 0.3, 1), opacity 0.2s 0.7s; padding: 34px 30px 24px; box-shadow: 0 20px 40px -26px rgba(60, 40, 10, 0.5); backface-visibility: hidden; display: flex; flex-direction: column; }
.page.is-gone { transform: rotateX(-175deg); opacity: 0; }
.page .head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 2px solid var(--red); }
.page .head span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--red); text-transform: uppercase; }
.page .day { font-size: 96px; font-weight: 800; letter-spacing: -0.06em; line-height: 1; margin: 22px 0 6px; color: var(--ink); }
.page .day small { font-size: 22px; letter-spacing: -0.02em; color: var(--muted); margin-left: 6px; }
.page h3 { font-size: 22px; letter-spacing: -0.02em; }
.page p { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink-2); margin-top: 6px; }
.cal-ctrl { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 15px; font-size: 13px; font-weight: 600; }
.chip:hover { border-color: var(--teal); color: var(--teal); }
.chip:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
@media (max-width: 960px) { .cal-sec .wrap { grid-template-columns: 1fr; } }

/* ---------- 7. Specialty letterboard ---------- */
.board-sec { padding: 40px 0 110px; }
.board-sec .head { text-align: center; margin-bottom: 34px; }
.letterboard { position: relative; max-width: 860px; margin: 0 auto; padding: 34px 40px; border-radius: 10px;
  background: repeating-linear-gradient(180deg, #1B2233 0 22px, #141A28 22px 24px); box-shadow: inset 0 0 0 14px #3B2A1A, inset 0 0 0 16px #24180D, 0 30px 50px -30px rgba(10, 17, 36, 0.8); }
.letterboard a { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; border-radius: 4px; text-decoration: none; font-family: var(--mono); font-size: clamp(14px, 1.8vw, 19px); font-weight: 700; letter-spacing: 0.16em; color: #F8FAFC; text-transform: uppercase; transition: background 0.2s, color 0.2s; }
.letterboard a .go { opacity: 0; color: var(--mint); transition: opacity 0.2s, transform 0.3s var(--ease); transform: translateX(-8px); }
.letterboard a:hover, .letterboard a:focus-visible { background: rgba(94, 234, 212, 0.1); color: var(--mint); outline: none; }
.letterboard a:hover .go, .letterboard a:focus-visible .go { opacity: 1; transform: none; }
.letterboard .ltr { display: inline-block; animation: ltr-in 0.5s var(--spring) backwards; }
@keyframes ltr-in { from { opacity: 0; transform: translateY(-14px) rotate(-8deg); } }
.letterboard .title { color: var(--mint); font-size: clamp(12px, 1.4vw, 14px); letter-spacing: 0.3em; margin-bottom: 14px; text-align: center; font-family: var(--mono); }

/* ---------- 8. Questions, as folded notes ---------- */
.faq-sec { padding: 0 0 110px; }
.faq-sec .head { text-align: center; margin-bottom: 30px; }
.folds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fold { position: relative; border: 0; background: none; text-align: left; perspective: 900px; min-height: 210px; }
.fold .q { position: relative; z-index: 2; height: 100%; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 12px; transform-origin: 50% 100%; transition: transform 0.7s var(--spring); box-shadow: 0 16px 30px -24px rgba(15, 23, 42, 0.5); }
.fold .q b { display: block; font-size: 19px; letter-spacing: -0.02em; line-height: 1.25; }
.fold .q i { display: block; margin-top: 14px; font-family: var(--mono); font-style: normal; font-size: 10.5px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.fold .a { position: absolute; inset: 0; padding: 22px; border-radius: 12px; background: var(--paper-2); font-family: var(--serif); font-size: 17px; line-height: 1.5; color: var(--ink); display: flex; align-items: flex-end; }
.fold.is-open .q { transform: rotateX(78deg) translateY(10px); }
.fold:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; border-radius: 12px; }
@media (max-width: 900px) { .folds { grid-template-columns: 1fr; } }

/* ---------- 9. Closing: the stamp ---------- */
.close-sec { padding: 110px 0 120px; background: var(--navy); color: #fff; text-align: center; overflow: hidden; }
.close-sec h2.big em { color: var(--mint); }
.close-sec .sub { margin: 0 auto 36px; color: #A8B3C4; }
.stamp-zone { position: relative; width: min(560px, 100%); height: 260px; margin: 0 auto; }
.form-slip { position: absolute; inset: 40px 40px 0; background: #FFFDF8; color: var(--ink); border-radius: 4px; padding: 22px 26px; text-align: left; transform: rotate(-1.5deg); box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.7);
  background-image: repeating-linear-gradient(transparent 0 27px, rgba(15, 118, 110, 0.1) 27px 28px); }
.form-slip h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: #9A3412; border-bottom: 2px solid #C2410C; padding-bottom: 6px; margin-bottom: 12px; }
.form-slip p { font-family: var(--serif); font-size: 17px; line-height: 1.65; }
.ink { position: absolute; right: 64px; bottom: 30px; padding: 8px 14px; border: 4px double var(--red); border-radius: 8px; color: var(--red); font-weight: 800; font-size: 22px; letter-spacing: 0.08em; transform: rotate(-12deg) scale(1.6); opacity: 0; mix-blend-mode: multiply; transition: transform 0.3s var(--ease), opacity 0.2s; pointer-events: none; }
.ink small { display: block; font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.06em; }
.ink.is-on { opacity: 0.9; transform: rotate(-12deg) scale(1); }
.stamp-btn { margin-top: 30px; display: inline-flex; align-items: center; gap: 12px; padding: 18px 28px; border-radius: 14px; border: 0; background: var(--ribbon); color: var(--navy); font-weight: 800; font-size: 17px; box-shadow: 0 6px 0 #0B5A54, 0 24px 40px -18px rgba(0, 214, 190, 0.8); transition: transform 0.12s, box-shadow 0.12s; }
.stamp-btn:active { transform: translateY(6px); box-shadow: 0 0 0 #0B5A54, 0 10px 20px -10px rgba(0, 214, 190, 0.8); }
.close-foot { margin-top: 22px; font-family: var(--mono); font-size: 11.5px; color: #64748B; }
.foot { padding: 34px 0; font-size: 13px; color: var(--muted); }
.foot .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* Reveal on scroll */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}
/* iteration 2 */
.note .scrawl, .note .scrawl-sub, .note .fixed-tag, .note .fixed-title, .note .fixed-body, .note .card, .note .face { display: block; }
.paper-pile { width: 300px; height: 280px; }
.paper-pile .sheet { left: -75px; top: -50px; width: 150px; height: 100px; transform: translateZ(calc(var(--n) * 5px)); box-shadow: 0 1px 0 rgba(0,0,0,0.04); }
.paper-pile .stamp { left: -52px; top: -22px; font-size: 12px; transform: translateZ(calc(var(--h) * 5px + 2px)); }
/* iteration 2: a wider hand, so every card's name shows */
@media (min-width: 701px) {
  .hand { height: 470px; }
  .agent-card { transform-origin: 50% 290%; transform: rotate(calc((var(--i) - 2) * 10deg)); bottom: 70px; }
  .agent-card.is-up { transform: rotate(calc((var(--i) - 2) * 10deg)) translateY(-56px) scale(1.05); }
}
/* iteration 3 */
.fold { display: block; width: 100%; }
.fold .q, .fold .a, .fold .q b, .fold .q i { display: block; }
.fold .q { min-height: 210px; }
.fold .a { display: flex; }
h2.big, .hero h1 { text-wrap: balance; }
.fold .a { align-items: flex-start; padding-top: 26px; }

/* =================== Round 2 =================== */

/* Ribbon thread stitched down the left margin */
#main { position: relative; }
.thread { position: absolute; top: 0; left: 0; width: 80px; height: 100%; pointer-events: none; z-index: 2; overflow: visible; }
.thread path { fill: none; stroke: url(#pipeGrad); stroke-width: 3; stroke-linecap: round; opacity: 0.8; }
@media (max-width: 1320px) { .thread { display: none; } }

/* Hero: every crack is a button */
.joint { cursor: pointer; outline: none; }
.joint:hover ellipse, .joint:focus-visible ellipse { stroke-width: 3.5; }
.joint:focus-visible ellipse { stroke: var(--teal); }
.joint.is-sealed ellipse { fill: #E9FBF8; stroke: var(--teal); }
.joint.is-sealed .crack, .joint.is-sealed .pain { opacity: 0; }
.joint.is-sealed .clamp { opacity: 1; transform: scale(1); }
.joint.is-sealed .agent { opacity: 1; }
.joint .ripple { fill: none; stroke: var(--mint); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.joint.is-pop .ripple { animation: ripple 0.7s var(--ease); }
@keyframes ripple { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(2.6); } }

/* Numbers: pile + hourglass side by side */
.tally-visuals { display: flex; align-items: flex-end; justify-content: center; gap: 30px; flex-wrap: wrap; }
.glass-wrap { display: grid; justify-items: center; gap: 6px; }
.hourglass { width: 120px; height: 190px; overflow: visible; }
.hg-glass { fill: rgba(255, 255, 255, 0.06); stroke: #CBD5E1; stroke-width: 2.5; }
.hg-cap { fill: #334155; }
.hourglass .stream { stroke: #E8B341; stroke-width: 2.5; stroke-dasharray: 3 5; animation: sand 0.6s linear infinite; }
@keyframes sand { to { stroke-dashoffset: -8; } }
#sandTop, #sandBot { transition: y 0.6s var(--ease), height 0.6s var(--ease); }
.hours { font-family: var(--mono); font-size: 26px; font-weight: 700; color: #fff; }
.hours-sub { font-family: var(--serif); font-style: italic; font-size: 15px; color: #A8B3C4; }

/* Agents: two-sided cards, dealt from a deck */
.agent-card { background: none; box-shadow: none; padding: 0; overflow: visible; perspective: 1000px; display: block; }
.agent-card::after { display: none; }
.ac-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 0.8s var(--spring); display: block; }
.agent-card.is-turned .ac-inner { transform: rotateY(180deg); }
.ac-face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 18px; padding: 22px 20px; background: #fff; box-shadow: 0 2px 0 var(--line), 0 24px 40px -24px rgba(15, 23, 42, 0.5); display: flex; flex-direction: column; overflow: hidden; text-align: left; }
.ac-front::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--ribbon); }
.ac-back { transform: rotateY(180deg); background: var(--navy); color: #fff; align-items: flex-start; justify-content: center; gap: 10px;
  background-image: radial-gradient(circle at 100% 0%, rgba(0, 214, 190, 0.25), transparent 50%), repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 10px, transparent 10px 20px); }
.ac-back img { width: 60px; height: auto; margin-bottom: 8px; }
.ac-back .stage { color: var(--mint); }
.back-who { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.3; }
.back-foot { margin-top: auto; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #94A3B8; }
@media (min-width: 701px) {
  .hand:not(.is-dealt) .agent-card { transform: translateY(260px) rotate(0deg) scale(0.9); opacity: 0; }
  .hand .agent-card { transition: transform 0.7s var(--spring) calc(var(--i) * 110ms), opacity 0.4s calc(var(--i) * 110ms); }
  .hand.is-dealt .agent-card { transition: transform 0.55s var(--spring), opacity 0.4s; }
}
@media (max-width: 700px) { .ac-inner, .ac-face { position: relative; } .ac-back { position: absolute; inset: 0; } .agent-card { min-height: 260px; } }

/* Comic strip */
.comic-sec { padding: 20px 0 110px; }
.comic-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 34px; }
.comic-toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.comic-toggle button { border: 0; background: none; padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); transition: background 0.3s, color 0.3s; }
.comic-toggle button[aria-pressed="true"] { background: var(--red); color: #fff; }
.strip.is-after ~ * {} 
.comic-sec.is-after .comic-toggle button[aria-pressed="true"] { background: var(--teal); }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.panel { position: relative; background: #FFFDF8; border: 3px solid var(--ink); border-radius: 6px; padding: 14px 14px 18px; transform: rotate(var(--r)); box-shadow: 6px 6px 0 var(--ink); transition: transform 0.4s var(--spring); }
.panel:hover { transform: rotate(0deg) translateY(-4px); }
.panel .time { display: inline-block; font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: var(--ink); color: #fff; padding: 3px 8px; border-radius: 3px; }
.scene { width: 100%; height: auto; margin: 10px 0 8px; overflow: visible; }
.scene .sk { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; filter: url(#pencil); }
.scene .mark { stroke: var(--red); transition: stroke 0.5s; }
.comic-sec.is-after .scene .mark { stroke: var(--teal); }
.scene .line-after { opacity: 0; transition: opacity 0.5s; } .scene .line-before { transition: opacity 0.5s; }
.comic-sec.is-after .scene .line-after { opacity: 1; } .comic-sec.is-after .scene .line-before { opacity: 0; }
.panel figcaption { position: relative; min-height: 84px; }
.say { position: absolute; inset: 0; display: block; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 16px; background: #fff; font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1.35; transition: opacity 0.4s, transform 0.5s var(--spring); }
.say::before { content: ""; position: absolute; top: -10px; left: 26px; width: 16px; height: 16px; background: #fff; border-left: 2px solid var(--ink); border-top: 2px solid var(--ink); transform: rotate(45deg); }
.say.after { opacity: 0; transform: scale(0.9); border-color: var(--teal); }
.say.after::before { border-color: var(--teal); }
.comic-sec.is-after .say.before { opacity: 0; transform: scale(0.9); }
.comic-sec.is-after .say.after { opacity: 1; transform: none; }
@media (max-width: 1000px) { .strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .strip { grid-template-columns: 1fr; } }

/* Lobby: directory + elevator */
.lobby { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: stretch; max-width: 1060px; margin: 0 auto; }
.lobby .letterboard { margin: 0; max-width: none; }
.letterboard a.is-here { background: rgba(94, 234, 212, 0.14); color: var(--mint); }
.letterboard a.is-here .go { opacity: 1; transform: none; }
.elevator { display: flex; flex-direction: column; border-radius: 12px; padding: 16px; background: linear-gradient(180deg, #CBD5E1, #94A3B8); box-shadow: inset 0 2px 0 rgba(255,255,255,0.6), 0 30px 50px -30px rgba(10, 17, 36, 0.6); }
.floor-led { align-self: center; display: flex; align-items: center; gap: 10px; padding: 6px 14px; margin-bottom: 14px; border-radius: 6px; background: #0B0F19; font-family: var(--mono); }
.floor-led span { font-size: 10px; letter-spacing: 0.2em; color: #64748B; }
.floor-led b { font-size: 22px; color: #F87171; text-shadow: 0 0 8px rgba(248, 113, 113, 0.8); min-width: 30px; text-align: center; }
.shaft { position: relative; flex: 1; min-height: 320px; border-radius: 6px; overflow: hidden; background: #FFFDF8; box-shadow: inset 0 0 0 6px #64748B; }
.room { position: absolute; inset: 6px; padding: 34px 28px; display: flex; flex-direction: column; justify-content: center; gap: 10px;
  background: radial-gradient(ellipse at 50% 0%, #fff, #F4F0E9); }
.room-tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--teal); text-transform: uppercase; }
.room h3 { font-size: 28px; letter-spacing: -0.03em; }
.room p { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.4; color: var(--ink-2); }
.room-go { margin-top: 8px; font-weight: 700; color: var(--teal); text-decoration: none; }
.door { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 2; transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1);
  background: repeating-linear-gradient(90deg, #E2E8F0 0 2px, #CBD5E1 2px 5px); box-shadow: inset 0 0 0 1px #94A3B8; }
.door-l { left: 0; border-right: 2px solid #64748B; } .door-r { right: 0; border-left: 2px solid #64748B; }
.elevator.is-open .door-l { transform: translateX(-100%); } .elevator.is-open .door-r { transform: translateX(100%); }
@media (max-width: 900px) { .lobby { grid-template-columns: 1fr; } }

/* =================== Round 3 =================== */
.nav-right { display: flex; align-items: center; gap: 10px; }
.sound-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 12px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.sound-btn:hover { border-color: var(--teal); color: var(--teal); }
.sound-ico { width: 16px; height: 12px; display: inline-flex; align-items: flex-end; gap: 2px; }
.sound-ico::before, .sound-ico::after { content: ""; width: 3px; height: 4px; background: currentColor; border-radius: 1px; }
.sound-btn[aria-pressed="true"] { color: var(--teal); border-color: #99F6E4; background: #F0FBF9; }
.sound-btn[aria-pressed="true"] .sound-ico::before { animation: eq 0.7s ease-in-out infinite alternate; }
.sound-btn[aria-pressed="true"] .sound-ico::after { animation: eq 0.5s ease-in-out infinite alternate-reverse; }
@keyframes eq { from { height: 3px; } to { height: 12px; } }
@media (max-width: 560px) { .sound-lbl { display: none; } }

/* Specialty picker on the hero */
.spec-pick { position: absolute; top: -6px; right: 0; z-index: 3; display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.spec-pick select { font: 600 13px var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; cursor: pointer; }
.spec-pick select:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.joint .pain { transition: opacity 0.3s; }
.joint.is-relabel .pain { animation: relabel 0.5s var(--ease); }
@keyframes relabel { 0% { opacity: 0; transform: translateY(-4px); } 100% { opacity: 1; } }
.joint:not(.is-sealed) { cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32'><ellipse cx='16' cy='16' rx='8' ry='13' fill='none' stroke='%230F766E' stroke-width='5'/></svg>") 16 16, pointer; }

/* Write-your-own sticky */
.cork { grid-template-columns: repeat(5, 1fr); gap: 20px; }
.note-own .front { background: #FFFDF8; border: 2px dashed #C9B48A; }
.note-own .scrawl { font-size: 22px; }
.note-own textarea { display: block; width: 100%; margin-top: 8px; border: 0; resize: none; background: repeating-linear-gradient(transparent 0 25px, rgba(15, 118, 110, 0.18) 25px 26px); font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 26px; color: #2A2310; outline: none; }
.note-own textarea::placeholder { color: #A39675; }
.own-pin, .own-edit { position: absolute; left: 20px; bottom: 14px; border: 0; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.own-edit { background: var(--paper-2); color: var(--ink); }
.own-pin:disabled { opacity: 0.35; cursor: default; }
.own-quote { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 18px; line-height: 1.3; }
.note-own.is-flipped .card { transform: rotate(0deg) rotateY(180deg); }
@media (max-width: 1100px) { .cork { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .cork { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cork { grid-template-columns: 1fr; } }

/* Closing: the slip folds into a plane and flies */
.stamp-zone { overflow: visible; }
.form-slip { transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.3s 0.5s; transform-origin: 50% 50%; }
.stamp-zone.is-folding .form-slip { transform: rotate(0deg) perspective(600px) rotateX(88deg) scale(0.35); opacity: 0; }
.stamp-zone.is-folding .ink { opacity: 0; transition: opacity 0.2s; }
.flight { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.flight-trail { fill: none; stroke: #5EEAD4; stroke-width: 2; stroke-dasharray: 2 8; stroke-linecap: round; opacity: 0; }
.stamp-zone.is-flying .flight-trail { opacity: 0.7; transition: opacity 0.3s; }
.sent { min-height: 26px; margin-top: 18px; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--mint); }
.sent button { margin-left: 10px; border: 1px solid rgba(94, 234, 212, 0.4); background: none; color: var(--mint); border-radius: 999px; padding: 5px 12px; font: 600 12.5px var(--sans); font-style: normal; }
.leak-toggle { position: relative; left: auto; bottom: auto; transform: none; display: grid; width: max-content; margin: 2px auto 0; }
.leak-caption { margin-top: 14px; }
.stamp-zone .sent { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; align-content: center; gap: 12px; padding: 0 40px; text-align: center; pointer-events: none; }
.stamp-zone .sent button { pointer-events: auto; margin: 0; }

/* =================== Round 4 =================== */
/* Time-of-day hero */
.greeting { margin: 14px 0 -6px; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ink-2); min-height: 26px; }
.hero { transition: background-color 1s; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--sky, transparent); transition: background 1.2s; }
.hero > .wrap { position: relative; }

/* Claim token on the thread */
#token { transition: opacity 0.4s; }
#tokenChecks circle { fill: #0F766E; }
#tokenChecks path { fill: none; stroke: #fff; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
#tokenChecks g { animation: tokcheck 0.4s var(--spring); transform-box: fill-box; transform-origin: center; }
@keyframes tokcheck { from { transform: scale(0); } }

/* 3D tilt */
[data-tilt] { transition: transform 0.4s var(--ease); transform-style: preserve-3d; will-change: transform; }

/* Forecast */
.fc-sec { padding: 0 0 110px; }
.fc-head { text-align: center; margin-bottom: 34px; }
.fc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 980px; margin: 0 auto; }
.fc-card { position: relative; border-radius: 22px; padding: 26px 28px 30px; overflow: hidden; outline: none; transition: transform 0.4s var(--spring), box-shadow 0.4s; }
.fc-card:hover, .fc-card:focus-visible { transform: translateY(-6px); }
.fc-card:focus-visible { box-shadow: 0 0 0 3px var(--teal); }
.fc-storm { background: linear-gradient(180deg, #334155, #1E293B); color: #E2E8F0; box-shadow: 0 30px 50px -30px rgba(15, 23, 42, 0.8); }
.fc-clear { background: linear-gradient(180deg, #E0F7FF, #F0FBF9); color: var(--ink); box-shadow: 0 30px 50px -30px rgba(0, 169, 224, 0.5); }
.fc-sky svg { width: 100%; height: 150px; overflow: visible; }
.fc-tag { display: inline-block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 9px; border-radius: 5px; margin-top: 6px; }
.fc-storm .fc-tag { background: rgba(248, 113, 113, 0.15); color: #FCA5A5; }
.fc-clear .fc-tag { background: rgba(15, 118, 110, 0.1); color: var(--teal); }
.fc-card h3 { font-size: 24px; letter-spacing: -0.03em; margin: 12px 0 8px; }
.fc-card p { font-size: 15px; line-height: 1.6; opacity: 0.85; }
.cloud path { fill: #64748B; } .fc-storm .c2 path { fill: #475569; }
.fc-clear .cloud path { fill: #fff; filter: drop-shadow(0 4px 6px rgba(0, 169, 224, 0.25)); }
.cloud { animation: drift 7s ease-in-out infinite alternate; } .c2 { animation-duration: 9s; animation-direction: alternate-reverse; } .c3 { animation-duration: 6s; }
@keyframes drift { to { transform: translateX(14px); } }
.bolt { fill: #FBBF24; opacity: 0; animation: flash 4s infinite; }
@keyframes flash { 0%, 86%, 100% { opacity: 0; } 88%, 92% { opacity: 1; } 90% { opacity: 0.2; } }
.rain line { stroke: #93C5FD; stroke-width: 2; stroke-linecap: round; animation: fall 0.9s linear infinite; }
@keyframes fall { from { transform: translateY(-10px); opacity: 0; } 20% { opacity: 1; } to { transform: translateY(40px); opacity: 0; } }
.sun circle { fill: #FBBF24; } .rays { stroke: #FBBF24; stroke-width: 4; stroke-linecap: round; transform-box: fill-box; transform-origin: center; animation: spinr 16s linear infinite; }
@keyframes spinr { to { transform: rotate(360deg); } }
@media (max-width: 760px) { .fc-grid { grid-template-columns: 1fr; } }

/* =================== Round 5 =================== */
/* Doodle layer: pencil marks that draw themselves */
.dd { position: relative; display: inline-block; }
.dd > svg.dd-mark { position: absolute; pointer-events: none; overflow: visible; }
.dd-circle > svg.dd-mark { inset: -14% -8% -18% -8%; width: 116%; height: 132%; }
.dd-under > svg.dd-mark { left: -2%; right: -2%; bottom: -0.32em; width: 104%; height: 0.45em; }
.dd-mark path { fill: none; stroke: #2B4C9B; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: url(#pencil); stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.3s; }
.dd-light .dd-mark path { stroke: #5EEAD4; }
.dd.is-drawn .dd-mark path { stroke-dashoffset: 0; }
.dd-note { position: absolute; left: 4%; bottom: 52px; display: inline-flex; align-items: flex-start; gap: 4px; font-family: var(--serif); font-style: italic; font-size: 17px; color: #2B4C9B; transform: rotate(-6deg); opacity: 0; transition: opacity 0.6s 1.2s; }
.dd-note svg { width: 56px; height: 28px; overflow: visible; margin-top: 6px; }
.dd-note path { fill: none; stroke: #2B4C9B; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; filter: url(#pencil); }
.dd-note.is-drawn { opacity: 1; }
@media (max-width: 760px) { .dd-note { display: none; } }

/* Night toggle */
.night-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: #fff; }
.night-btn:hover { border-color: var(--teal); }
.moon { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset -4px -3px 0 0 var(--ink); transform: rotate(-20deg); transition: box-shadow 0.4s, background 0.4s; }
.night .moon { box-shadow: none; background: #FBBF24; box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.25); }

/* Isometric practice */
.iso-sec { padding: 20px 0 110px; }
.iso-head { text-align: center; margin-bottom: 26px; }
.iso-head .sub { margin: 0 auto; }
.iso-wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 26px; align-items: center; }
.iso-stage { border-radius: 22px; background: radial-gradient(ellipse at 50% 30%, #fff, var(--paper-2)); border: 1px solid var(--line); overflow: hidden; }
#isoSvg { width: 100%; height: auto; display: block; }
.iroom { cursor: pointer; outline: none; }
.iroom .floor { fill: #FFFDF8; stroke: #CBBFA8; stroke-width: 1; }
.iroom .wall-l { fill: #EDE6D9; stroke: #CBBFA8; stroke-width: 1; }
.iroom .wall-r { fill: #E2D9C8; stroke: #CBBFA8; stroke-width: 1; }
.iroom .furn-top { fill: #fff; stroke: #94A3B8; stroke-width: 1; } .iroom .furn-l { fill: #CBD5E1; } .iroom .furn-r { fill: #94A3B8; }
.iroom .orb { fill: url(#orbGrad); filter: drop-shadow(0 0 8px rgba(0, 214, 190, 0.8)); transform-box: fill-box; transform-origin: center; animation: orb 2.4s ease-in-out infinite; }
@keyframes orb { 50% { transform: translateY(-5px); } }
.iroom .rlabel { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; fill: var(--ink-2); text-anchor: middle; }
.iroom .alabel { font-family: var(--serif); font-style: italic; font-size: 12px; fill: var(--teal); text-anchor: middle; opacity: 0; transition: opacity 0.3s; }
.iroom:hover .floor, .iroom:focus-visible .floor, .iroom.is-on .floor { fill: #E9FBF8; stroke: var(--teal); }
.iroom:hover .alabel, .iroom:focus-visible .alabel, .iroom.is-on .alabel { opacity: 1; }
.iroom.is-dim { opacity: 0.35; transition: opacity 0.4s; }
.iroom.deco { cursor: default; }
.iso-panel { padding: 26px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 40px -30px rgba(15, 23, 42, 0.5); }
.iso-room { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); }
.iso-panel h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 28px; margin: 8px 0 10px; letter-spacing: -0.01em; }
.iso-panel p { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); margin-bottom: 14px; }
@media (max-width: 900px) { .iso-wrap { grid-template-columns: 1fr; } }

/* ---------- Night mode ---------- */
html { transition: background 0.6s, color 0.6s; }
html.night { --paper: #0B1222; --paper-2: #0F1830; --paper-3: #1E293B; --line: #24314B; --ink: #E2E8F0; --ink-2: #A8B3C4; --muted: #7C8AA0; color-scheme: dark; }
.night .nav { background: rgba(11, 18, 34, 0.86); }
.night .brand span { color: #A8B3C4; }
.night .hero { background: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px) 0 0 / 100% 32px, linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px) 0 0 / 32px 100%, radial-gradient(ellipse at 30% 0%, #16213A, var(--paper) 70%); }
.night .kicker { background: rgba(94, 234, 212, 0.08); border-color: rgba(94, 234, 212, 0.25); color: var(--mint); }
.night h2.big em, .night .spec-head em { color: var(--mint); }
.night .btn-dark { background: var(--ribbon); color: var(--navy); }
.night .btn-line, .night .option, .night .chip, .night .fold .q, .night .leak-toggle, .night .comic-toggle, .night .sound-btn, .night .night-btn, .night .spec-pick select, .night .iso-panel, .night .ac-front { background: #131D33; color: var(--ink); border-color: var(--line); }
.night .fold .a { background: #0F1830; color: var(--ink); }
.night .jar path.glass { fill: rgba(255,255,255,0.05); stroke: #A8B3C4; }
.night .pipe-shadow { stroke: rgba(0,0,0,0.4); }
.night .joint ellipse { fill: #131D33; stroke: #A8B3C4; }
.night .endcap rect { fill: #5EEAD4; } .night .endcap text { fill: var(--navy) !important; }
.night .panel, .night .page, .night .claim-sheet { background: #F4F0E9; color: #0F172A; }
.night .panel .say { background: #FFFDF8; color: #0F172A; }
.night .fc-clear { background: linear-gradient(180deg, #12324A, #0F2A33); color: #E2E8F0; }
.night .fc-clear .cloud path { fill: #CBD5E1; }
.night .iso-stage { background: radial-gradient(ellipse at 50% 30%, #16213A, #0B1222); }
.night .iroom .rlabel { fill: #CBD5E1; }
.night .scale-sec { background: #0D1528; }
.night .balance .sketch { stroke: #E2E8F0; } .night .balance circle { fill: #E2E8F0; } .night .w-label { fill: #E2E8F0; }
.night .option[aria-pressed="true"] { border-color: var(--mint); }
.night .dd-mark path, .night .dd-note, .night .dd-note path { stroke: #93C5FD; color: #93C5FD; }
.night .greeting { color: #A8B3C4; }
.night .foot { color: #7C8AA0; }
.iso-label { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; fill: var(--ink-2); text-anchor: middle; paint-order: stroke; stroke: var(--paper); stroke-width: 4px; }
.iso-label { transition: opacity 0.4s; }
.leak-row { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 2px; }
.leak-row .leak-toggle { margin: 0; }
.dd-note { position: static; transform: rotate(-6deg) translateY(-8px); }
.night .iroom .floor { fill: #1A2540; stroke: #2C3A57; }
.night .iroom .wall-l { fill: #22304F; stroke: #2C3A57; } .night .iroom .wall-r { fill: #1C2945; stroke: #2C3A57; }
.night .iroom .furn-top { fill: #334155; stroke: #475569; } .night .iroom .furn-l { fill: #1E293B; } .night .iroom .furn-r { fill: #0F172A; }
.night .iroom:hover .floor, .night .iroom.is-on .floor, .night .iroom:focus-visible .floor { fill: #0F3A3A; stroke: var(--mint); }
.night .iroom .alabel { fill: var(--mint); }
.night .iso-label { fill: #CBD5E1; stroke: #0B1222; }

/* =================== Round 6 =================== */
/* Two desks, drag to compare */
.desks-sec { padding: 0 0 110px; }
.desks-head { text-align: center; margin-bottom: 28px; }
.wipe { position: relative; max-width: 980px; margin: 0 auto; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px -36px rgba(15, 23, 42, 0.55); touch-action: pan-y; user-select: none; --x: 50%; }
.desk-scene { width: 100%; height: auto; display: block; }
.calm-clip { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--x)); }
.sk2 { fill: none; stroke: #0F172A; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; filter: url(#pencil); }
.sk2.fillp { fill: #FFFDF8; } .sk2.red { stroke: #B42318; } .sk2.teal { stroke: #0F766E; } .sk2.soft { stroke: #94A3B8; }
.red-box { fill: rgba(180, 35, 24, 0.08); stroke: #B42318; stroke-width: 2.4; }
.stamp-txt { font-family: var(--mono); font-weight: 700; font-size: 18px; letter-spacing: 0.14em; fill: #B42318; text-anchor: middle; }
.red-note { fill: #FCA5A5; }
.lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; fill: #334155; text-anchor: middle; }
.tag { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; }
.red-t { fill: #B42318; } .teal-t { fill: #0F766E; }
.fly { animation: flyp 3.4s ease-in-out infinite alternate; } .f2 { animation-duration: 4.2s; animation-direction: alternate-reverse; }
@keyframes flyp { to { transform: translate(14px, -10px) rotate(6deg); } }
.ring { animation: ringo 0.35s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes ringo { to { transform: scale(1.12); } }
.steam2 { fill: none; stroke: #0F766E; stroke-width: 2; stroke-linecap: round; animation: steam 3s ease-in-out infinite; }
.wipe-handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 4px; margin-left: -2px; background: #fff; box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.15); cursor: ew-resize; outline: none; }
.wipe-handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; letter-spacing: 2px; box-shadow: 0 10px 20px -8px rgba(15, 23, 42, 0.6); }
.wipe-handle:focus-visible span { box-shadow: 0 0 0 4px var(--mint); }

/* Letters that drip while the pipe leaks */
.drip-l { display: inline-block; transition: transform 1.4s var(--spring); }
.is-leaking .drip-l.d1 { transform: translateY(5px) rotate(7deg); }
.is-leaking .drip-l.d2 { transform: translateY(9px) rotate(-5deg); transition-duration: 2.2s; }
.is-leaking .drip-l.d3 { transform: translateY(3px) rotate(4deg); transition-duration: 1.8s; }

/* Magnetic buttons */
.btn-dark, .stamp-btn { will-change: transform; }

/* Spotlight in the dark sections */
.calc-sec::after, .close-sec::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(94, 234, 212, 0.12), transparent 60%); opacity: var(--spot, 0); transition: opacity 0.4s; }
.calc-sec > *, .close-sec > * { position: relative; z-index: 1; }

/* The fine print, printed fine */
.rcpt-sec { height: 190vh; }
.rcpt-sticky { position: sticky; top: 90px; padding: 30px 0; }
.rcpt-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.till { width: min(400px, 100%); margin: 0 auto; }
.till-head { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 18px 20px 26px; border-radius: 16px 16px 10px 10px; background: linear-gradient(180deg, #1E293B, #0A1124); color: #94A3B8; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; box-shadow: 0 20px 34px -20px rgba(10, 17, 36, 0.9); }
.till-head::after { content: ""; position: absolute; left: 30px; right: 30px; bottom: 9px; height: 6px; border-radius: 3px; background: #020617; }
.till-led { width: 8px; height: 8px; border-radius: 50%; background: #334155; }
.till-led.is-on { background: #00D6BE; box-shadow: 0 0 10px #00D6BE; }
.tape-lane { width: calc(100% - 48px); margin: -12px auto 0; }
.tape { background: #FFFFFE; color: #0F172A; padding: 20px 20px 34px; font-family: var(--mono); font-size: 13px; box-shadow: 0 14px 24px -14px rgba(0, 0, 0, 0.35);
  clip-path: inset(0 0 calc((1 - var(--p, 0)) * 100%) 0);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 10px repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 10px repeat-x; }
.t-ln { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dotted #CBD5E1; }
.t-ln span { font-family: var(--sans); font-size: 13.5px; color: #334155; }
.t-ln b { color: #0F766E; white-space: nowrap; }
.t-hr { border-top: 2px dashed #0F172A; margin: 12px 0 4px; }
.t-total span { font-weight: 800; color: #0F172A; } .t-total b { font-size: 15px; }
.t-thanks { margin-top: 14px; text-align: center; font-family: var(--serif); font-style: italic; font-size: 15px; color: #64748B; }
.night .tape { background: #F4F0E9; }
@media (max-width: 900px) { .rcpt-wrap { grid-template-columns: 1fr; } .rcpt-sec { height: auto; } .rcpt-sticky { position: static; } .tape { clip-path: none; } }

/* =================== Live homepage additions (11 Oct 2026) =================== */
.inline-go { color: var(--teal); font-weight: 700; text-decoration: none; white-space: nowrap; }
.inline-go:hover { text-decoration: underline; }
.night .inline-go { color: var(--mint); }
.sent a { color: var(--mint); font-weight: 700; pointer-events: auto; }
.fold .a a { color: var(--teal); font-weight: 700; }
.site-foot { padding: 60px 0 30px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 30px; }
.foot-brand p { margin-top: 12px; font-size: 14px; color: var(--ink-2); max-width: 280px; line-height: 1.55; }
.site-foot h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.site-foot .foot-grid a:not(.brand) { display: block; font-size: 14px; color: var(--ink-2); text-decoration: none; padding: 4px 0; }
.site-foot a:hover { color: var(--teal); }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.foot-base a { color: var(--muted); }
.design-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
.nav-links a { white-space: nowrap; }
.nav-links { gap: 22px; }
.nav-menu { position: relative; display: none; }
.nav-menu summary { list-style: none; cursor: pointer; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13.5px; font-weight: 600; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 8px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(15, 23, 42, 0.45); display: grid; }
.nav-menu-panel a { padding: 9px 12px; border-radius: 8px; text-decoration: none; font-size: 14.5px; color: var(--ink); }
.nav-menu-panel a:hover { background: var(--paper-2); color: var(--teal); }
.night .nav-menu summary, .night .nav-menu-panel { background: #131D33; color: var(--ink); }
@media (max-width: 1180px) { .nav-links { display: none; } .nav-menu { display: block; } .sound-lbl { display: none; } }
.lb-short { display: none; }
@media (max-width: 560px) {
  .nav .wrap { width: calc(100% - 28px); }
  .nav-right { gap: 6px; }
  .sound-btn { display: none; }
  .nav-book .lb-long { display: none; } .nav-book .lb-short { display: inline; }
  .nav-book { padding: 9px 12px !important; font-size: 13px !important; white-space: nowrap; }
  .nav-menu summary { padding: 8px 11px; }
}
@media (max-width: 400px) { .brand { font-size: 15px; gap: 6px; } .brand img { height: 22px; } }
