/* Ma – Daily Wisdom · v3
   Layout: one thin vertical line runs down the page; quotes are set word by word in heavy grotesk,
   each line starting on a different column around that line. The cursor paints soft colour blobs
   behind the words. Colours from the app (theme/tokens.json, lib/palette.ts). System fonts only. */

:root {
  --bg: #ffffff;
  --ink: #0d0d0d;
  --muted: #8a857d;
  --pale: #ecebe6;
  --line: rgba(13, 13, 13, .16);
  --sun: #ff2614;
  --soft: #f5f5f0;

  --sans: "Helvetica Neue", Helvetica, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", Times, serif;
  --gutter: clamp(16px, 1.6vw, 28px);
  --rule: 38vw;              /* x of the vertical line */
  --a: 14vw; --b: 26vw; --c: calc(var(--rule) + 1.4vw); --d: 52vw;
  --big: clamp(46px, 7.2vw, 132px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0d0d; --ink: #f5f5f0; --muted: #8f8a82; --pale: #1c1c1b; --line: rgba(245, 245, 240, .18); --soft: #1a1a1a; --sun: #ff3b2a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d0d0d; --ink: #f5f5f0; --muted: #8f8a82; --pale: #1c1c1b; --line: rgba(245, 245, 240, .18); --soft: #1a1a1a; --sun: #ff3b2a;
  color-scheme: dark;
}
@media (max-width: 760px) {
  :root { --rule: 9vw; --a: 0vw; --b: 6vw; --c: 13vw; --d: 20vw; --big: 14vw; }
  .hero .note.top { display: none; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 13px/1.3 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, figure, blockquote, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }
.muted { color: var(--muted); }

/* ---------- Fixed frame: line, corner words, trail canvas ---------- */
.rule { position: fixed; top: 0; bottom: 0; left: var(--rule); width: 1px; background: var(--line); z-index: 3; pointer-events: none; mix-blend-mode: multiply; }
.corner { position: fixed; bottom: calc(var(--gutter) * .4); z-index: 3; mix-blend-mode: multiply; font-weight: 700; font-size: clamp(56px, 9.5vw, 170px); letter-spacing: -.055em; line-height: .8; color: var(--pale); pointer-events: none; user-select: none; }
.corner.l { left: var(--gutter); }
.corner.r { right: var(--gutter); }
main, footer { position: relative; z-index: 2; }

@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rule, :root:not([data-theme="light"]) .corner { mix-blend-mode: screen; } }
:root[data-theme="dark"] .rule, :root[data-theme="dark"] .corner { mix-blend-mode: screen; }

/* ---------- Loader ---------- */
.loader { display: none; }
.js .loader { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; padding: var(--gutter); background: var(--bg); transition: opacity .7s ease, visibility .7s; }
.loader b { font-weight: 700; font-size: clamp(56px, 7vw, 120px); letter-spacing: -.05em; line-height: .8; font-variant-numeric: tabular-nums; }
.loader.done { opacity: 0; visibility: hidden; }

/* ---------- Nav ---------- */
.nav { position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start; padding: var(--gutter); pointer-events: none; }
.nav a, .nav button { pointer-events: auto; }
.brand { display: flex; gap: 8px; align-items: center; }
.brand-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--sun); }
.nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav .pill { padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--bg); }
.nav li a:hover { opacity: .6; }

/* ---------- Big staggered type ---------- */
.stack { font-weight: 500; font-size: var(--big); line-height: .88; letter-spacing: -.05em; }
.stack .w { display: block; white-space: nowrap; }
.w.a { padding-left: var(--a); } .w.b { padding-left: var(--b); } .w.c { padding-left: var(--c); } .w.d { padding-left: var(--d); }
.w.t { margin-top: .45em; }
.note { position: absolute; max-width: 22ch; }

/* ---------- Hero with fluid reveal: the page colour is a mask the cursor wipes away ---------- */
.reveal-under { position: absolute; inset: 0; z-index: 0; overflow: hidden; display: none; }
.fluid-on .reveal-under { display: block; transition: opacity .35s ease; }
.fluid-on:not(.moving) .reveal-under { opacity: 0; transition-duration: 1s; }
.reveal-mask { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero h1, .hero .get-row { position: relative; z-index: 2; }
.hero h1, .hero .note { transition: opacity 1s ease, filter 1s ease; }
.hero.moving h1, .hero.moving .note { opacity: 0; filter: blur(8px); transition-duration: 1.1s, 1.1s; }
@media (prefers-reduced-motion: reduce) { .hero.moving h1, .hero.moving .note { filter: none; } }
.hero .note { z-index: 2; }
.grad { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease; }
.grad.on { opacity: 1; }
.ghost { position: absolute; inset: 0; color: var(--gk, #1a1a1a); opacity: 0; transition: opacity .9s ease; }
.ghost.on { opacity: 1; }
.ghost-words { position: absolute; left: 0; right: 0; top: var(--gy, 30%); padding: 0 var(--gutter); }
.ghost-words .w { padding-left: var(--x, 0px); }
.ghost-author { position: absolute; left: calc(var(--rule) + 12px); top: calc(var(--gy, 30%) - 28px); font-size: 13px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; padding: 26vh var(--gutter) 22vh; }
.hero .note.top { top: var(--gutter); left: calc(var(--rule) + 12px); }
.hero .note.low { top: calc(26vh + var(--big) * 2.2); right: calc(100vw - var(--rule) + 12px); text-align: right; }
.hero .get-row { margin-top: 10vh; padding-left: var(--c); display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
@media (max-width: 760px) { .hero .note.low { position: static; text-align: left; margin: 8vh 0 0 var(--c); } }

.get { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); }
.get::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
.get:hover { opacity: .85; }

/* ---------- Quote wall: an endless row of colour strips. Scroll or drag to move it,
   it grows while it moves, click a strip to open its quote ---------- */
.wall-sec { position: relative; height: 340vh; }
.wall-pin { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 5vh; padding: 12vh 0; overflow: hidden; }
.wall-head { display: grid; grid-template-columns: var(--rule) 1fr auto; align-items: end; gap: 16px; padding: 0 var(--gutter); }
.wall-left { padding-right: 12px; text-align: right; }
.ticks { display: flex; align-items: center; gap: 10px; justify-self: center; font-variant-numeric: tabular-nums; }
.ticks b { font-weight: 500; }
.tick-bar { width: clamp(40px, 10vw, 160px); height: 10px; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 8px); }
.tick-box { width: 26px; height: 14px; border: 1px solid var(--ink); }
.wall-right { text-align: right; }
.wall { --h: min(24vh, 240px); height: calc(var(--h) * 1.8); display: flex; align-items: center; transform-origin: 50% 50%; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.wall.dragging { cursor: grabbing; }
.wall-track { display: flex; gap: clamp(8px, 1vw, 16px); will-change: transform; }
.strip { position: relative; flex: none; width: clamp(30px, 3.8vw, 66px); height: var(--h); border: 0; padding: 0; cursor: inherit; background: var(--c); transition: filter .4s ease, transform .5s cubic-bezier(.2, .8, .2, 1); }
.wall:not(.dragging) .wall-track:hover .strip { filter: saturate(.35) brightness(1.06); }
.wall:not(.dragging) .wall-track .strip:hover, .strip:focus-visible { filter: none; transform: scaleY(1.1); }
.strip-topic { position: absolute; left: 0; top: calc(100% + 10px); font-size: 11px; color: var(--ink); opacity: 0; transition: opacity .3s; white-space: nowrap; }
.wall:not(.dragging) .strip:hover .strip-topic { opacity: 1; }
.wall-hint { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 760px) {
  .wall-head { grid-template-columns: 1fr; } .wall-left { text-align: left; padding-left: calc(var(--rule) + 12px); } .ticks { justify-self: start; } .wall-right { text-align: left; padding-left: calc(var(--rule) + 12px); }
  .wall-sec { height: 240vh; }
  .wall { --h: 20vh; }
  .strip { width: 13vw; }
}
@media (prefers-reduced-motion: reduce) { .wall-sec { height: auto; } .wall-pin { position: static; height: auto; } }

.viewer { position: fixed; inset: 0; z-index: 90; background: var(--vc, #ffd8be); color: var(--vk, #1a1a1a); display: grid; grid-template-rows: auto 1fr auto; padding: var(--gutter); transition: background-color .6s ease, color .6s ease; }
.viewer[hidden] { display: none; }
.viewer-top, .viewer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 13px; position: relative; z-index: 1; }
.viewer button { background: none; border: 0; padding: 6px 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.v-nav { display: flex; gap: 18px; }
.viewer-words { align-self: center; font-weight: 700; font-size: var(--vsize, clamp(40px, 8.4vw, 150px)); line-height: .92; letter-spacing: -.05em; }
.viewer-words .vl { display: block; white-space: nowrap; padding-left: var(--x, 0px); }
.viewer::before { content: ""; position: absolute; top: 0; bottom: 0; left: var(--rule); width: 1px; background: currentColor; opacity: .18; }
.viewer-words { font-weight: 500; letter-spacing: -.05em; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.expander { position: fixed; z-index: 89; background: var(--c); pointer-events: none; transform-origin: 0 0; }

/* ---------- Quotes ---------- */
.quote { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 18vh var(--gutter); }
.quote .meta { margin-top: 5vh; padding-left: var(--c); display: flex; gap: 24px; }
.quote .num { position: absolute; top: 18vh; left: calc(var(--rule) - 12px); transform: translateX(-100%); text-align: right; }
.quote .stack { font-size: calc(var(--big) * .92); }

/* ---------- Inside Ma: rays from a centre, one feature at a time (scroll moves along the rays) ---------- */
.feat-sec { position: relative; height: 580vh; }
.feat-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.feat-head { position: absolute; top: 14vh; right: calc(100% - var(--rule) + 12px); text-align: right; font-weight: 500; font-size: clamp(22px, 2.2vw, 38px); line-height: 1; letter-spacing: -.03em; }
.feat-count { position: absolute; top: 14vh; left: calc(var(--rule) + 12px); font-variant-numeric: tabular-nums; }
.feat-count b { font-weight: 500; }
.feat-star { --R: min(30vw, 34vh); --rot: 0deg; position: absolute; inset: 0; }
.ray { position: absolute; left: 50%; top: 54%; width: var(--R); height: 1px; transform-origin: 0 50%;
  rotate: calc(var(--a) + var(--rot)); transform: scaleX(var(--s, 0));
  background: linear-gradient(90deg, transparent 42%, var(--ink)); opacity: .22;
  transition: transform 1.4s cubic-bezier(.2, .8, .2, 1) calc(var(--i) * 90ms), opacity .6s ease; }
.feat-sec.in .ray { --s: 1; }
.ray.on { opacity: 1; }
.ray-n { position: absolute; border: 0; padding: 6px; background: none; color: var(--ink); font: inherit; font-variant-numeric: tabular-nums; cursor: pointer;
  left: calc(50% + cos(calc(var(--a) + var(--rot))) * (var(--R) + 26px)); top: calc(54% + sin(calc(var(--a) + var(--rot))) * (var(--R) + 26px));
  transform: translate(-50%, -50%); opacity: 0; transition: opacity .8s ease .9s; }
.feat-sec.in .ray-n { opacity: .45; }
.feat-sec.in .ray-n.on { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.feat-center { position: absolute; left: 50%; top: 54%; width: min(92vw, 900px); translate: -50% -50%; text-align: center; pointer-events: none; }
.feat-title { font-weight: 500; font-size: clamp(40px, 6.6vw, 120px); line-height: .88; letter-spacing: -.05em; }
.feat-desc { margin: 22px auto 0; max-width: 32ch; font-size: 15px; line-height: 1.4; color: var(--muted); }
.feat-title.swap, .feat-desc.swap { animation: featIn .9s cubic-bezier(.2, .8, .2, 1) both; }
.feat-desc.swap { animation-delay: .12s; }
@keyframes featIn { from { opacity: 0; filter: blur(14px); transform: translateY(.15em); } to { opacity: 1; filter: none; transform: none; } }
.feat-swipe { display: none; position: absolute; left: 0; right: 0; bottom: 12vh; text-align: center; font-size: 13px; }
.feat-list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 760px) {
  .feat-sec { height: auto; }
  .feat-pin { position: relative; touch-action: pan-y; }
  .feat-swipe { display: block; }
  .feat-star { --R: min(36vw, 26vh); }
  .feat-head { top: 12vh; right: auto; left: calc(var(--rule) + 12px); text-align: left; font-size: 22px; }
  .feat-count { top: calc(12vh + 56px); }
  .feat-title { font-size: 11vw; }
  .feat-desc { max-width: 26ch; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .feat-sec { height: auto; } .feat-pin { position: static; height: auto; overflow: visible; padding: 14vh var(--gutter); }
  .feat-head, .feat-count { position: static; text-align: left; margin-left: calc(var(--rule) + 12px); }
  .feat-star { display: none; }
  .feat-list { position: static; width: auto; height: auto; clip: auto; white-space: normal; list-style: none; padding: 6vh 0 0 calc(var(--rule) + 12px); margin: 0; display: grid; gap: 18px; max-width: 60ch; }
}

/* ---------- Postcards: a real card you can turn over. It leans towards the cursor ---------- */
.post { position: relative; padding: 18vh var(--gutter) 16vh; }
.post-body { display: grid; grid-template-columns: var(--rule) 1fr; margin-top: 8vh; }
.post-steps { list-style: none; margin: 0; padding: 0 calc(12px + var(--gutter)) 0 0; display: grid; gap: 18px; align-content: end; justify-items: end; text-align: right; font-size: 15px; }
.post-steps b { display: block; font-weight: 500; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: 2px; }
.post-steps li.muted { font-size: 13px; margin-top: 10px; }
.post-stage { padding-left: 1.4vw; perspective: 1800px; }
.pcard { position: relative; display: block; width: min(600px, 100%); aspect-ratio: 148 / 105; border: 0; padding: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.pcard:focus-visible { outline-offset: 8px; }
.pcard-in { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.pface { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .06); }
.pfront { background: var(--c); color: var(--k); padding: 7% 8%; display: flex; flex-direction: column; justify-content: space-between; transition: background-color .5s ease, color .5s ease; }
.pf-words { font-weight: 500; font-size: clamp(22px, 2.9vw, 44px); line-height: .94; letter-spacing: -.045em; max-width: 13ch; }
.pf-author { font-size: 12px; }
.pback { transform: rotateY(180deg); background: #faf8f2; color: #1a1a1a; display: grid; grid-template-columns: 1fr 1fr; padding: 7% 6%; }
.pb-msg { align-self: center; padding-right: 10%; font-family: var(--serif); font-style: italic; font-size: clamp(11px, 1.2vw, 18px); line-height: 1.38; }
.pb-right { position: relative; border-left: 1px solid rgba(26, 26, 26, .2); }
.pb-stamp { position: absolute; top: 0; right: 0; width: 26%; aspect-ratio: 4 / 5; background: radial-gradient(circle, transparent 0 2.4px, #fff 2.9px) -4px -4px / 8px 8px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .12)); }
.pb-stamp-in { position: absolute; inset: 5px; background: #fff; display: grid; place-items: center; }
.pb-sun { width: 58%; aspect-ratio: 1; border-radius: 50%; background: var(--sun); }
.pb-ma { position: absolute; top: 5%; right: 9%; font-size: 9px; }
.pb-mark { position: absolute; top: 16%; right: 18%; width: 44%; color: #1a1a1a; opacity: .5; }
.pb-lines { position: absolute; left: 10%; right: 0; bottom: 4%; display: grid; font-family: var(--serif); font-style: italic; font-size: clamp(12px, 1.25vw, 17px); }
.pb-lines span { padding: 8px 0 3px; border-bottom: 1px solid rgba(26, 26, 26, .22); }
.post-hint { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.post-shuffle { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--ink); font: inherit; cursor: pointer; transition: border-color .2s; }
.post-shuffle::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
.post-shuffle:hover { border-color: var(--ink); }
.pf-words, .pf-author { transition: opacity .22s ease; }
.pfront.swapping .pf-words, .pfront.swapping .pf-author { opacity: 0; }
/* Word cards, as in the app: a Swiss German word split at its syllable, the same word in other languages below */
.pf-mark { display: none; position: absolute; right: 7%; bottom: 7%; font-size: 9px; letter-spacing: .3em; opacity: .55; }
.pfront.is-word .pf-mark { display: block; }
.pcard { container-type: inline-size; }
.pfront.is-word .pf-words { font-weight: 600; font-size: 8.4cqw; letter-spacing: -.035em; max-width: none; white-space: nowrap; }
.pf-words .syl { display: inline-block; width: 1px; height: .9em; margin: 0 .04em; background: currentColor; opacity: .55; vertical-align: -.06em; }
.pfront.is-word .pf-author { font-family: var(--serif); font-size: clamp(10px, .95vw, 13px); line-height: 1.4; }
.pfront.is-word .pf-author::before { content: ""; display: block; width: 18px; height: 1px; margin-bottom: 10px; background: currentColor; }
@media (max-width: 760px) {
  .post-body { grid-template-columns: 1fr; gap: 7vh; }
  .post-steps { order: 2; justify-items: start; text-align: left; padding-left: var(--c); }
  .post-stage { padding-left: 0; }
}

/* ---------- Ma Plus: free for everyone, members keep it that way ---------- */
.plus { position: relative; padding: 20vh var(--gutter) 14vh; }
.plus-lead { margin: 8vh 0 10vh; padding-left: var(--c); max-width: calc(24ch + var(--c)); font-weight: 500; font-size: clamp(24px, 2.8vw, 48px); line-height: 1.02; letter-spacing: -.035em; }
.plus-row { display: grid; grid-template-columns: var(--rule) 1fr; padding: 4vh 0; }
.plus-label { padding-right: calc(12px + var(--gutter)); text-align: right; color: var(--muted); }
.plus-row > :last-child { padding-left: 1.4vw; }
.plus-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 4vw; }
.way { border-top: 1px solid var(--ink); padding-top: 14px; display: grid; gap: 10px; align-content: start; }
.way h3 { font-weight: 500; font-size: clamp(30px, 3.2vw, 54px); letter-spacing: -.045em; line-height: .9; }
.way-price { font-size: 17px; }
.way .muted { font-size: 14px; line-height: 1.45; max-width: 34ch; }
.fair { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0; }
.fair button { display: grid; justify-items: start; gap: 2px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: none; color: inherit; font: inherit; font-size: 15px; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.fair button small { font-size: 10px; color: var(--muted); transition: color .25s; }
.fair button:hover { border-color: var(--ink); }
.fair button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.fair button[aria-pressed="true"] small { color: var(--bg); opacity: .7; }
.perks { list-style: none; margin: 0; display: grid; gap: 6px; font-size: clamp(18px, 1.6vw, 26px); letter-spacing: -.02em; }
.perks li::before { content: "+ "; color: var(--sun); }
.never { list-style: none; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 28px; font-weight: 500; font-size: clamp(26px, 3.4vw, 60px); letter-spacing: -.045em; line-height: 1.05; }
.never s { text-decoration: none; background: linear-gradient(var(--sun), var(--sun)) 0 55% / 0 2px no-repeat; transition: background-size 1s cubic-bezier(.7, 0, .2, 1); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.never li:nth-child(2) s { transition-delay: .18s; } .never li:nth-child(3) s { transition-delay: .36s; } .never li:nth-child(4) s { transition-delay: .54s; }
.never.struck s { background-size: 100% 2px; }
.plus-care { max-width: 46ch; font-size: 16px; line-height: 1.5; }
.plus-care a { border-bottom: 1px solid currentColor; }
.plus-soon { padding-left: var(--c); margin-top: 6vh; }
@media (max-width: 760px) {
  .plus-row { grid-template-columns: 1fr; gap: 14px; }
  .plus-label { text-align: left; padding: 0 0 0 calc(var(--rule) + 12px); }
  .plus-row > :last-child { padding-left: var(--c); }
  .plus-ways { grid-template-columns: 1fr; gap: 6vh; }
  .plus-join { display: none; }
}
@media (prefers-reduced-motion: reduce) { .never s { background-size: 100% 2px; transition: none; } }

/* ---------- About ---------- */
.about { position: relative; padding: 20vh var(--gutter); display: grid; grid-template-columns: var(--rule) 1fr; }
.about dl { grid-column: 1; display: grid; grid-template-columns: 7.5em 1fr; gap: 8px 12px; align-content: start; padding-right: 24px; }
.about dt { color: var(--muted); }
.about p { grid-column: 2; padding-left: 1.4vw; max-width: 24ch; font-weight: 700; font-size: clamp(26px, 3.2vw, 56px); line-height: .98; letter-spacing: -.04em; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; gap: 8vh; } .about dl, .about p { grid-column: 1; } .about p { padding-left: var(--c); } }

/* ---------- FAQ ---------- */
.faq { padding: 14vh var(--gutter) 14vh calc(var(--rule) + 1.4vw); }
.faq h2 { font-weight: 700; font-size: clamp(36px, 4.6vw, 80px); letter-spacing: -.05em; line-height: .9; margin-bottom: 6vh; }
details { border-top: 1px solid var(--line); max-width: 760px; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; font-size: clamp(16px, 1.4vw, 21px); letter-spacing: -.01em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; transition: rotate .25s ease; }
details[open] summary::after { rotate: 45deg; }
details p { padding: 0 0 16px; max-width: 52ch; color: var(--muted); font-size: 15px; line-height: 1.45; font-weight: 400; }
@media (max-width: 760px) { .faq { padding-left: calc(var(--rule) + 12px); } }

/* ---------- Say hello (the sun watches the cursor) ---------- */
.hello { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; padding: 14vh var(--gutter); }
.orb-wrap { aspect-ratio: 1; }
.orb { position: absolute; inset: 0; border-radius: 50%; --hx: 38%; --hy: 34%;
  background: radial-gradient(circle at var(--hx) var(--hy), #ff7a5c 0%, #ff2614 42%, #d8170b 78%, #b5120a 100%);
  will-change: transform; }
.orb-shadow { position: absolute; left: 10%; right: 10%; bottom: -16%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .18), transparent); filter: blur(4px); }
.hello .stack { position: absolute; left: 0; right: 0; top: 14vh; padding: 0 var(--gutter); pointer-events: none; }
.hello .orb-wrap { position: absolute; top: 50%; left: 72%; translate: -50% -50%; width: min(34vmin, 380px); }
.hello .mail { position: absolute; left: calc(var(--rule) + 1.4vw); bottom: 18vh; display: grid; gap: 14px; justify-items: start; }
.hello .mail a.addr { font-weight: 700; font-size: clamp(22px, 2.6vw, 44px); letter-spacing: -.035em; border-bottom: 2px solid currentColor; }

/* ---------- Footer ---------- */
footer { padding: 6vh var(--gutter) calc(var(--gutter) + 9.5vw); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 12px; border-top: 1px solid var(--line); }
.foot-row ul { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 0; }
.foot-row a:hover { opacity: .6; }
.theme-toggle { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.goo-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .loader { display: none !important; } }

/* ---------- Legal pages ---------- */
.legal { position: relative; z-index: 2; padding: 22vh var(--gutter) 10vh calc(var(--rule) + 1.4vw); }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(48px, 8vw, 110px); }
.legal h1 span { display: block; color: var(--muted); }
.legal .updated { margin: 22px 0 48px; color: var(--muted); font-size: 12px; }
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; letter-spacing: -.015em; line-height: 1.15; margin: 48px 0 14px; }
.legal h3 { font-size: 15px; font-weight: 600; letter-spacing: 0; line-height: 1.3; margin: 26px 0 8px; }
.legal p, .legal li { font-size: 16px; line-height: 1.55; }
.legal p { margin-bottom: 1em; }
.legal ul, .legal ol { padding-left: 22px; margin: 0 0 1em; }
.legal li { margin-bottom: 6px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal .box { background: var(--soft); padding: 22px; margin: 24px 0; }
.legal .box p:last-child { margin-bottom: 0; }
.legal .contact-card { display: grid; gap: 4px; background: #c8ebd9; color: #1a1a1a; padding: 26px; margin: 24px 0; }
.legal .contact-card .muted { color: rgba(26, 26, 26, .6); }
.legal .contact-card a { font-family: var(--serif); font-size: clamp(20px, 5vw, 28px); text-decoration: none; overflow-wrap: anywhere; }
.path { font-size: 14px; background: var(--soft); padding: 2px 6px; }
.table-wrap { margin: 16px 0; border-top: 1px solid var(--line); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 500; color: var(--muted); font-size: 12px; }

/* Goo reveal: words melt out of a blur into sharp letters (see ma.js) */
.goo-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

@media (max-width: 760px) { .hello .orb-wrap { left: 62%; top: 48%; width: 46vw; } .hello .mail { left: var(--gutter); } }
