/* Fuseplot marketing site. Sections: tokens, base, header and menu, heroes, home scene,
   sections and illustrations, page components, legal prose, footer, responsive, motion. */

/* ---------- Tokens ---------- */
:root {
  /* Palette A3, Petrol and Peach (brand/kit). Night is petrol; the lamp light is peach; teal is the accent on paper. */
  --night: #0d2b30;
  --night-2: #11343a;
  --teal: #1f6b73;
  --teal-deep: #154047;
  --paper: #f5f2ee;
  --sheet: #fdfbf8;
  --page: #ffffff;
  --ink: #10262a;
  --text: #22363a;
  --muted: #66757a;
  --faint: #96a3a6;
  --line: #dfe2e0;
  --line-soft: #ebedeb;
  --on-night: #f1eeea;
  --on-night-muted: #a9bec0;
  --lamp: #ffb48c;
  --lamp-hover: #ffc6a8;
  --lamp-ink: #2a1a12;
  /* Story colours in the home scene: character, place and time, the flagged slip, the fix */
  --rose: #e7a9c2;
  --tide: #9fd4db;
  --quill: #f2806f;
  --leaf: #9edcb0;
  /* Scrollbar thumb over paper, and over night sections */
  --scroll-thumb: #a2b0b2;
  --scroll-thumb-hover: #6e8285;
  --scroll-thumb-night: rgba(241, 238, 234, .3);
  --scroll-thumb-night-hover: rgba(241, 238, 234, .5);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 44px);
  --max: 1240px;
  --header: 76px;
  /* Illustration palette on light backgrounds */
  --ill-ink: #12303a;
  --ill-soft: #a5b4b7;
  --ill-paper: #fffdfa;
  --ill-blob: #e4ecea;
  --ill-gold: #d2845a;
  --ill-rose: #c7718f;
  --ill-tide: #3f8a95;
  --ill-quill: #d0614e;
  --ill-leaf: #3e8a5e;
  --ill-plum: #1f6b73;
  --ill-tint: #fbe3d5;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 12px); }
body { margin: 0; background: var(--paper); color: var(--text); font: 17px/1.6 var(--sans); }
a { color: inherit; }
img, svg { max-width: 100%; }
h1, h2, h3, summary { text-wrap: balance; }
p, li, td { text-wrap: pretty; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Scrollbars. On mouse screens the page's own bar is hidden, so no strip is kept at the right edge, and
   scrollbar.js draws a thin thumb over the page instead (light over night, dark over paper). Touch screens and
   high contrast mode keep their own. Inner scrollers such as the menu get a thin native bar: Firefox reads the
   standard properties, Chrome and Safari the ::-webkit-scrollbar parts. scrollbar.js uses the same media query. */
@media (hover: hover) and (pointer: fine) and (forced-colors: none) {
  html { scrollbar-width: none; }
  html::-webkit-scrollbar { display: none; }
  @supports not selector(::-webkit-scrollbar) {
    .menu { scrollbar-width: thin; scrollbar-color: var(--scroll-thumb-night) transparent; }
  }
  ::-webkit-scrollbar { width: 10px; height: 10px; background: transparent; }
  ::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
  ::-webkit-scrollbar-thumb { background-color: var(--scroll-thumb); background-clip: padding-box; border: 3px solid transparent; border-radius: 999px; min-height: 48px; }
  ::-webkit-scrollbar-thumb:hover, ::-webkit-scrollbar-thumb:active { background-color: var(--scroll-thumb-hover); border-width: 2px; }
  .menu::-webkit-scrollbar-thumb { background-color: var(--scroll-thumb-night); }
  .menu::-webkit-scrollbar-thumb:hover, .menu::-webkit-scrollbar-thumb:active { background-color: var(--scroll-thumb-night-hover); }
}
.page-scrollbar { position: fixed; top: 4px; bottom: 4px; right: 0; width: 14px; z-index: 61; opacity: 0; transition: opacity .4s ease; }
.page-scrollbar.on, .page-scrollbar:hover, .page-scrollbar.dragging { opacity: 1; transition-duration: .15s; }
.page-scrollbar.off, .menu-locked .page-scrollbar { visibility: hidden; }
.page-scrollbar-thumb { position: absolute; top: 0; right: 3px; width: 5px; border-radius: 999px; background: var(--scroll-thumb); transition: width .15s ease, background-color .25s ease; }
.page-scrollbar:hover .page-scrollbar-thumb, .page-scrollbar.dragging .page-scrollbar-thumb { width: 8px; background: var(--scroll-thumb-hover); }
.page-scrollbar.on-night .page-scrollbar-thumb { background: var(--scroll-thumb-night); }
.page-scrollbar.on-night:hover .page-scrollbar-thumb, .page-scrollbar.on-night.dragging .page-scrollbar-thumb { background: var(--scroll-thumb-night-hover); }
@media print { .page-scrollbar { display: none; } }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: 999px; font: 600 15px/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 14.5px; }
.btn-lamp { background: var(--lamp); color: var(--lamp-ink); }
.btn-lamp:hover { background: var(--lamp-hover); }
.btn-ghost { color: var(--on-night); border-color: rgba(255, 255, 255, .24); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .55); }
.btn-dark { background: var(--teal-deep); color: #fff; }
.btn-dark:hover { background: var(--night); }
.btn-line { color: var(--ink); border-color: var(--line); background: var(--page); }
.btn-line:hover { border-color: var(--faint); }
.link { font-size: 15px; text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-link { color: var(--teal); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Header and menu ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 60; color: var(--on-night); transition: background-color .3s, box-shadow .3s; }
.site-header.scrolled, .site-header.menu-open { background: rgba(13, 43, 48, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255, 255, 255, .07); }
.header-inner { display: flex; align-items: center; gap: 30px; height: var(--header); }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: auto; height: 30px; }
.site-nav { display: flex; gap: 26px; margin-right: auto; }
.site-nav a { text-decoration: none; color: var(--on-night-muted); font-size: 15px; padding: 6px 0; position: relative; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: var(--lamp); border-radius: 2px; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.menu-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); background: transparent; position: relative; cursor: pointer; }
.menu-toggle span { position: absolute; left: 14px; right: 14px; height: 1.6px; background: var(--on-night); border-radius: 2px; transition: transform .35s cubic-bezier(.2, .7, .2, 1), top .35s cubic-bezier(.2, .7, .2, 1); }
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 26px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 55; background: var(--night); color: var(--on-night); padding: calc(var(--header) + 28px) var(--gutter) 36px; display: flex; flex-direction: column; justify-content: space-between; gap: 36px; overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; isolation: isolate; }
.menu::before { --peak: 15; background: radial-gradient(ellipse min(900px, 150vw) min(640px, 85vh) at 85% -120px, var(--falloff)); }
.menu.open { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.menu li, .menu-foot { opacity: 0; transform: translateY(16px); transition: opacity .45s ease, transform .55s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i) * 45ms + 60ms); }
.menu.open li, .menu.open .menu-foot { opacity: 1; transform: none; }
.menu-link { font: 300 clamp(36px, 9vw, 54px)/1.18 var(--serif); letter-spacing: -0.02em; text-decoration: none; color: #fff; }
.menu-link:hover { color: var(--lamp); }
.menu-link[aria-current="page"] { color: var(--lamp); font-style: italic; }
.menu-small { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--on-night-muted); font-size: 14px; margin: 22px 0 0; }
.menu-small a { text-decoration: none; }
body.menu-locked { overflow: hidden; }

/* ---------- Heroes ---------- */
.night { background: var(--night); color: var(--on-night); position: relative; isolation: isolate; overflow: hidden; }
.night::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* Lamp light on night sections. The stops follow a bell curve, so the light fades into the night with no edge
   and reads as light falling from above, not as a disc. It takes --lamp, so it follows the palette. */
.glow::before, .cta::before, .menu::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  --falloff: color-mix(in srgb, var(--lamp) calc(var(--peak) * 1%), transparent),
    color-mix(in srgb, var(--lamp) calc(var(--peak) * .835%), transparent) 20%,
    color-mix(in srgb, var(--lamp) calc(var(--peak) * .487%), transparent) 40%,
    color-mix(in srgb, var(--lamp) calc(var(--peak) * .198%), transparent) 60%,
    color-mix(in srgb, var(--lamp) calc(var(--peak) * .056%), transparent) 80%,
    transparent;
}
.glow::before { --peak: 18; background: radial-gradient(ellipse min(1300px, 140vw) min(800px, 100vh) at 76% -140px, var(--falloff)); }
.on-dark { --ill-ink: #f1eeea; --ill-soft: #5f7f84; --ill-paper: rgba(255, 255, 255, .06); --ill-blob: rgba(255, 255, 255, .035); --ill-gold: #ffb48c; --ill-rose: #e7a9c2; --ill-tide: #9fd4db; --ill-quill: #f2806f; --ill-leaf: #9edcb0; --ill-plum: #9fd4db; --ill-tint: rgba(255, 180, 140, .16); }
.hero-title { font: 300 clamp(42px, 4.6vw, 68px)/1.02 var(--serif); letter-spacing: -0.025em; margin: 0; }
.hero-title em, .page-title em { font-style: italic; font-weight: 300; color: var(--lamp); }
.page-hero { padding: calc(var(--header) + clamp(48px, 8vw, 104px)) 0 clamp(60px, 8vw, 104px); }
.page-hero .hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.page-hero.text-only .hero-grid { grid-template-columns: minmax(0, 1fr); }
.page-title { font: 300 clamp(44px, 6vw, 84px)/1.0 var(--serif); letter-spacing: -0.025em; margin: 0; max-width: 12em; }
.page-hero p.intro { color: var(--on-night-muted); font-size: clamp(18px, 1.6vw, 20px); max-width: 32em; margin: 24px 0 0; }
.page-hero .actions { margin-top: 32px; }
.page-hero figure { margin: 0; }

/* ---------- Home hero scene ---------- */
.home-hero .hero-grid { display: grid; grid-template-columns: minmax(0, 5.4fr) minmax(0, 6.6fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-top: calc(var(--header) + clamp(28px, 3vw, 36px)); padding-bottom: clamp(56px, 8vw, 110px); min-height: min(860px, 100vh); }
.home-hero .hero-copy p { color: var(--on-night-muted); font-size: 18.5px; max-width: 30em; margin: 28px 0 34px; }
.scene { position: relative; height: 640px; }
.links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 3; }
.links path { fill: none; stroke-width: 1.4; stroke-linecap: round; filter: drop-shadow(0 0 6px currentColor); }
.links circle { filter: drop-shadow(0 0 5px currentColor); }
.sheet { position: absolute; left: 50%; top: 50%; width: min(440px, 78%); transform: translate(-50%, -50%) rotate(-1.6deg); background: var(--sheet); color: #20282a; border-radius: 4px; padding: 38px 40px 44px; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .05); z-index: 2; opacity: 0; transition: opacity .8s ease; }
.sheet.in { opacity: 1; }
.sheet .meta { font: 500 11.5px var(--sans); color: #8f9a9b; margin: 0 0 4px; }
.sheet h2 { font: 400 28px/1.15 var(--serif); color: #14262a; margin: 0 0 16px; }
.sheet p { font: 400 17.5px/1.7 var(--serif); margin: 0 0 12px; min-height: 1.7em; }
.ent { border-radius: 3px; transition: background-color .5s ease, box-shadow .5s ease; }
.ent.lit { box-shadow: inset 0 -2px 0 var(--c); background: color-mix(in srgb, var(--c) 22%, transparent); }
.ent.flag { text-decoration: underline wavy var(--quill); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.ent.fixed { text-decoration: none; box-shadow: inset 0 -2px 0 #3e8a5e; background: rgba(158, 220, 176, .35); }
.card-coat.reading .kind i { animation: dot-pulse 1s ease-in-out infinite; }
@keyframes dot-pulse { 50% { transform: scale(1.6); opacity: .55; } }
.card { position: absolute; z-index: 4; width: 224px; padding: 14px 16px 15px; border-radius: 14px; background: rgba(16, 52, 58, .72); border: 1px solid rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7); opacity: 0; transform: translateY(8px) scale(.98); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1), border-color .4s; }
.card.in { opacity: 1; transform: none; }
.card .kind { display: flex; align-items: center; gap: 8px; font: 500 12px var(--sans); color: var(--on-night-muted); margin: 0 0 6px; }
.card .kind i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.card strong { display: block; font: 400 19px/1.25 var(--serif); color: #fff; margin-bottom: 4px; }
.card .desc { display: block; font-size: 13.5px; line-height: 1.5; color: #c9d6d7; }
.card .fix { display: flex; gap: 8px; margin-top: 10px; }
.card .fix:empty { display: none; }
.card .fix b { font: 600 12.5px var(--sans); border-radius: 999px; padding: 6px 12px; background: var(--leaf); color: #14231a; }
.card .fix b { transition: transform .15s ease, filter .15s ease; }
.card .fix.press b { transform: scale(.94); filter: brightness(1.12); }
.card .fix b.undo { background: transparent; color: var(--on-night); border: 1px solid rgba(255, 255, 255, .25); }
.card-nell { left: 0; top: 0; --c: var(--rose); }
.card-key { right: 0; top: 22px; --c: var(--lamp); }
.card-tides { right: 0; bottom: 18px; --c: var(--tide); }
.card-coat { left: 14px; bottom: 0; --c: var(--quill); }
.card-coat.ok { --c: var(--leaf); border-color: rgba(158, 220, 176, .45); }
.scene-replay { position: absolute; right: 0; bottom: -34px; background: none; border: 0; color: var(--on-night-muted); font: 500 13px var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; opacity: 0; transition: opacity .4s; }
.scene-replay.in { opacity: 1; }

/* ---------- Sections and illustrations ---------- */
.section { padding-top: clamp(84px, 12vw, 148px); }
.section-tight { padding-top: clamp(56px, 8vw, 96px); }
.band { margin-top: clamp(84px, 12vw, 148px); padding: clamp(72px, 10vw, 128px) 0; }
/* Light sections only pad their top, so a dark section after one needs the gap itself. */
main > :not(.night) + .night { margin-top: clamp(84px, 12vw, 148px); }
/* Covers the sub-pixel seam that can show between two dark sections on scaled displays. */
.night + .night { box-shadow: 0 -1px 0 var(--night); }
h2.big { font: 300 clamp(36px, 4.8vw, 64px)/1.04 var(--serif); letter-spacing: -0.02em; color: var(--ink); margin: 0 0 18px; max-width: 15em; }
.night h2.big { color: #fff; }
h3.mid { font: 400 clamp(26px, 3vw, 36px)/1.12 var(--serif); color: var(--ink); margin: 0 0 12px; letter-spacing: -0.01em; }
.night h3.mid { color: #fff; }
.lead { color: var(--muted); font-size: 19px; max-width: 34em; margin: 0; }
.night .lead { color: var(--on-night-muted); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

.ill { display: block; width: 100%; height: auto; overflow: visible; }
.ill .s { fill: none; stroke: var(--ill-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ill .thin { stroke-width: 1.2; }
.ill .soft { stroke: var(--ill-soft); }
.ill .gold { stroke: var(--ill-gold); }
.ill .rose { stroke: var(--ill-rose); }
.ill .tide { stroke: var(--ill-tide); }
.ill .quill { stroke: var(--ill-quill); }
.ill .leaf { stroke: var(--ill-leaf); }
.ill .plum { stroke: var(--ill-plum); }
.ill .f-paper { fill: var(--ill-paper); }
.ill .f-blob { fill: var(--ill-blob); }
.ill .f-tint { fill: var(--ill-tint); }
.ill .f-gold { fill: var(--ill-gold); }
.ill .f-rose { fill: var(--ill-rose); }
.ill .f-tide { fill: var(--ill-tide); }
.ill .f-quill { fill: var(--ill-quill); }
.ill .f-leaf { fill: var(--ill-leaf); }
.ill .f-plum { fill: var(--ill-plum); }
.ill .f-ink { fill: var(--ill-ink); }
.ill .f-soft { fill: var(--ill-soft); }
.ill text { font-family: var(--serif); fill: var(--ill-ink); }
.ill .label { font: 500 13px var(--sans); fill: var(--ill-ink); }
.reveal .ill .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.5s cubic-bezier(.6, 0, .2, 1); transition-delay: var(--d, 0s); }
.reveal.in .ill .draw { stroke-dashoffset: 0; }
.reveal .ill .pop { opacity: 0; transform: scale(.6); transform-box: fill-box; transform-origin: center; transition: opacity .5s ease, transform .7s cubic-bezier(.2, .8, .2, 1.25); transition-delay: var(--d, .9s); }
.reveal.in .ill .pop { opacity: 1; transform: none; }
.reveal .ill .fade { opacity: 0; transition: opacity .8s ease; transition-delay: var(--d, .6s); }
.reveal.in .ill .fade { opacity: 1; }
.ill .float { animation: float 6s ease-in-out infinite; transform-box: fill-box; }
.ill .float-2 { animation: float 7.5s ease-in-out infinite -2s; transform-box: fill-box; }
@keyframes float { 50% { transform: translateY(-7px); } }
.ill .pulse { animation: pulse 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 50% { transform: scale(1.18); opacity: .55; } }
.ill .spin { animation: spin 28s linear infinite; transform-box: view-box; }
@keyframes spin { to { transform: rotate(360deg); } }
.ill .swing { animation: swing 5s ease-in-out infinite; transform-box: view-box; }
@keyframes swing { 0%, 100% { transform: rotate(2.5deg); } 50% { transform: rotate(-2.5deg); } }
.ill .sweep { animation: sweep 7s ease-in-out infinite alternate; transform-box: view-box; }
@keyframes sweep { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }

/* Rows: text beside an illustration */
.rows { margin-top: 56px; display: grid; gap: clamp(64px, 9vw, 112px); }
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.row.flip .row-text { order: 2; }
.row p { margin: 0; color: var(--muted); font-size: 17.5px; max-width: 30em; }
.night .row p { color: var(--on-night-muted); }
.row ul.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text); font-size: 16px; }
.night .ticks li { color: var(--on-night); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0; width: 10px; height: 6px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: translateY(7px) rotate(-45deg); }
.night .ticks li::before { border-color: var(--lamp); }
.ill-wrap { position: relative; }
.steps-list { list-style: none; counter-reset: step; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.steps-list li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: baseline; color: var(--text); }
.steps-list li::before { content: counter(step); font: 400 22px/1 var(--serif); color: var(--teal); }
.night .steps-list li { color: var(--on-night); }
.night .steps-list li::before { color: var(--lamp); }

/* Parts grid */
.parts { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.parts li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 22px 0 26px; border-top: 1px solid var(--line); }
.parts svg { width: 26px; height: 26px; stroke: var(--teal); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.parts h3 { font: 500 17px var(--sans); color: var(--ink); margin: 0 0 3px; }
.parts p { margin: 0; color: var(--muted); font-size: 15.5px; }
.more, .row .more { margin-top: 28px; }

/* Marquee */
.marquee { margin: 46px 0 60px; display: grid; gap: 14px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.track { display: flex; gap: 12px; width: max-content; animation: slide 46s linear infinite; }
.track.rev { animation-direction: reverse; animation-duration: 52s; }
.marquee:hover .track { animation-play-state: paused; }
.track span { border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; padding: 11px 18px; font: 400 17px var(--serif); color: var(--on-night); white-space: nowrap; background: rgba(255, 255, 255, .03); }
@keyframes slide { to { transform: translateX(-50%); } }
.promises { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 32px; }
.big + .promises { margin-top: clamp(28px, 4vw, 44px); }
.promises h3 { font: 400 23px/1.25 var(--serif); color: #fff; margin: 0 0 8px; }
.promises p { margin: 0; color: var(--on-night-muted); font-size: 15.5px; }

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.tile { background: var(--page); border: 1px solid var(--line); border-radius: 20px; padding: 26px 26px 28px; }
.tile .ask { display: inline-block; font: italic 400 18px/1.4 var(--serif); color: var(--ink); background: #edf3f2; border-radius: 14px 14px 14px 4px; padding: 10px 14px; margin: 0 0 16px; }
.tile h3 { font: 600 16px var(--sans); color: var(--ink); margin: 0 0 6px; }
.tile p { margin: 0; color: var(--muted); font-size: 15.5px; }
.tile .icon { width: 30px; height: 30px; stroke: var(--teal); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }

/* Answers: plain questions and answers, two per row */
.answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(44px, 5vw, 64px) clamp(32px, 6vw, 96px); }
.answers article { border-top: 1px solid var(--line); padding-top: 28px; }
.answers h2 { font: 400 clamp(26px, 3vw, 36px)/1.12 var(--serif); letter-spacing: -0.01em; color: var(--ink); margin: 0 0 12px; }
.answers p { margin: 0; color: var(--muted); font-size: 17.5px; max-width: 34em; }

/* Roles table */
.roles { width: 100%; border-collapse: collapse; margin-top: 40px; font-size: 16px; }
.roles th, .roles td { text-align: left; padding: 16px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.roles th { font: 400 22px/1.2 var(--serif); color: var(--ink); width: 22%; }
.roles td { color: var(--muted); }
.roles td:last-child { color: var(--text); }
.scope-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.scope-list span { border: 1px solid var(--line); background: var(--page); border-radius: 999px; padding: 8px 16px; font-size: 15px; color: var(--ink); }
.soon { display: inline-block; white-space: nowrap; margin-left: 6px; font: 600 11.5px var(--sans); color: #4e6468; background: #e6ecec; border-radius: 999px; padding: 2px 9px; vertical-align: 2px; }
.night .soon { background: rgba(255, 255, 255, .12); color: var(--on-night); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; align-items: stretch; }
.plan { background: var(--page); border: 1px solid var(--line); border-radius: 22px; padding: 30px 28px 32px; display: flex; flex-direction: column; gap: 18px; }
.plan.featured { background: var(--night); color: var(--on-night); border-color: var(--night); box-shadow: 0 40px 80px -40px rgba(13, 43, 48, .7); }
.plan h3 { font: 400 28px/1.15 var(--serif); margin: 0; color: var(--ink); }
.plan.featured h3 { color: #fff; }
.plan .price { font: 300 46px/1 var(--serif); color: var(--ink); }
.plan.featured .price { color: var(--lamp); }
.plan .price small { font: 400 15px var(--sans); color: var(--muted); }
.plan.featured .price small, .plan.featured p { color: var(--on-night-muted); }
.plan p { margin: 0; color: var(--muted); font-size: 15.5px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 15.5px; }
.plan li { position: relative; padding-left: 28px; }
.plan li::before { content: ""; position: absolute; left: 0; top: 0; width: 9px; height: 5px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: translateY(8px) rotate(-45deg); }
.plan.featured li::before { border-color: var(--lamp); }
.plan .btn { margin-top: auto; }
.ph { display: inline-block; white-space: nowrap; font: 600 11px/1.6 var(--sans); color: #8a4b2f; background: #fbe7dc; border: 1px dashed #e0a58c; border-radius: 999px; padding: 0 8px; vertical-align: middle; }
.night .ph, .plan.featured .ph { color: #ffd9c7; background: rgba(224, 135, 106, .16); border-color: rgba(224, 135, 106, .5); }
.draft-note { display: flex; gap: 14px; align-items: flex-start; border: 1px dashed #e0a58c; background: #fdf3ec; color: #6a3b26; border-radius: 14px; padding: 14px 18px; font-size: 15px; margin: 0 0 32px; }
.draft-note strong { color: #4f2a19; }
.night .draft-note { background: rgba(224, 135, 106, .1); border-color: rgba(224, 135, 106, .45); color: #f3d3c3; margin: 28px 0 0; }
.night .draft-note strong { color: #ffe6da; }

/* FAQ */
.faq-group { margin-top: 56px; }
.faq-group h2 { font: 500 15px var(--sans); color: var(--muted); margin: 0 0 4px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 22px 0; font: 400 clamp(20px, 2.2vw, 25px)/1.3 var(--serif); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 300 30px/1 var(--sans); color: var(--teal); transition: transform .3s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 26px; color: var(--muted); max-width: 46em; font-size: 17px; }
.faq .answer p { margin: 0 0 10px; }
.faq-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 72px); }
.faq-side { position: sticky; top: calc(var(--header) + 24px); align-self: start; display: grid; gap: 8px; margin-top: 56px; }
.faq-side a { text-decoration: none; color: var(--muted); font-size: 15px; }
.faq-side a:hover { color: var(--ink); }

/* Contact */
.contact-mail { font: 300 clamp(30px, 4.6vw, 60px)/1.1 var(--serif); color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 180, 140, .5); }
.contact-mail:hover { color: var(--lamp); }
.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }

/* ---------- Legal prose ---------- */
.prose-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 72px); padding-top: clamp(56px, 8vw, 96px); }
.toc { position: sticky; top: calc(var(--header) + 24px); align-self: start; display: grid; gap: 8px; font-size: 14.5px; }
.toc p { font-weight: 600; color: var(--ink); margin: 0 0 4px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ink); }
.prose { max-width: 44em; color: var(--text); font-size: 17px; }
.prose h2 { font: 400 clamp(26px, 2.6vw, 32px)/1.2 var(--serif); color: var(--ink); margin: 52px 0 12px; letter-spacing: -0.01em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font: 600 17px var(--sans); color: var(--ink); margin: 26px 0 6px; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--teal); }
.updated { color: var(--on-night-muted); font-size: 15px; margin: 18px 0 0; }

/* CTA band */
.cta { text-align: center; padding: clamp(80px, 12vw, 150px) 0; }
/* A wide, low pool of light behind the heading. It fades out inside the section, so no hard edge shows where it
   meets another dark section. */
.cta::before { --peak: 22; background: radial-gradient(ellipse min(900px, 50vw) 50% at 50% 50%, var(--falloff)); }
.band + .cta { padding-top: clamp(24px, 4vw, 48px); }
.cta h2 { font: 300 clamp(40px, 6vw, 84px)/1.0 var(--serif); letter-spacing: -0.025em; margin: 0 auto 22px; max-width: 12em; color: #fff; }
.cta p { color: var(--on-night-muted); max-width: 32em; margin: 0 auto 34px; }
.cta .actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--on-night-muted); padding: clamp(56px, 8vw, 96px) 0 32px; border-top: 1px solid rgba(255, 255, 255, .07); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { max-width: 22em; margin: 14px 0 22px; }
.footer-grid h2 { font: 600 14px var(--sans); color: #fff; margin: 4px 0 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover, .footer-grid a[aria-current="page"] { color: #fff; }
/* The divider sits on a pseudo-element so it lines up with the content, not the gutters. */
.footer-bottom { position: relative; margin-top: 48px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 14px; }
.footer-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid rgba(255, 255, 255, .1); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .home-hero .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .scene { height: 620px; max-width: 760px; width: 100%; margin: 0 auto; }
  .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .parts, .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .site-nav, .header-actions { display: none; }
  .menu-toggle { display: block; }
}
@media (max-width: 860px) {
  .row, .page-hero .hero-grid, .faq-layout, .prose-layout { grid-template-columns: 1fr; }
  .row.flip .row-text { order: 0; }
  .plans, .contact-cards { grid-template-columns: 1fr; max-width: 560px; }
  .faq-side, .toc { position: static; }
  .faq-side { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0; }
  .faq-side a { border: 1px solid var(--line); background: var(--page); border-radius: 999px; padding: 8px 14px; color: var(--ink); }
  .toc { display: none; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .roles th { width: auto; }
}
@media (max-width: 860px) and (min-width: 721px) {
  .ill-wrap, .page-hero figure { max-width: 460px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 720px) {
  .scene { height: auto; display: grid; gap: 12px; padding-bottom: 40px; }
  .links { display: none; }
  .sheet { position: relative; left: auto; top: auto; width: 100%; transform: none; padding: 28px 24px 30px; }
  .card { position: relative; inset: auto; width: auto; }
  /* On phones the assistant card follows the page, so the catch shows without scrolling far. */
  .sheet { order: 0; }
  .card-coat { order: 1; }
  .card-nell, .card-key, .card-tides { order: 2; }
  .scene-replay { order: 3; }
  .scene-replay { bottom: 6px; }
  .parts, .promises, .tiles, .contact-cards, .answers { grid-template-columns: 1fr; }
  .roles, .roles tbody, .roles tr, .roles th, .roles td { display: block; }
  .roles tr { border-top: 1px solid var(--line); padding: 14px 0; }
  .roles th, .roles td { border: 0; padding: 4px 0; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .sheet, .card, .menu li, .menu-foot { opacity: 1 !important; transform: none !important; }
  .sheet { transform: translate(-50%, -50%) rotate(-1.6deg) !important; }
  .reveal .ill .draw { stroke-dashoffset: 0; }
  .reveal .ill .pop, .reveal .ill .fade { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 720px) {
  .sheet { transform: none !important; }
}
html.still *, html.still *::before, html.still *::after { animation: none !important; transition: none !important; }
html.still .reveal { opacity: 1; transform: none; }
html.still .reveal .ill .draw { stroke-dashoffset: 0; }
html.still .reveal .ill .pop, html.still .reveal .ill .fade { opacity: 1; transform: none; }
