:root {
  --bg: #141217; --fg: #EDE3DA; --dim: rgba(237, 227, 218, .5); --ann: #F0AA8C;
  --mono: "Geist", "Helvetica Neue", Arial, sans-serif;   /* one family across the site; .mono is now a label style, not a typeface */
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --out: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; background: var(--bg); color: var(--fg); }
body {
  font-family: var(--sans); -webkit-font-smoothing: antialiased;
  touch-action: none; user-select: none; -webkit-user-select: none;
  cursor: crosshair;
}
canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }

.ui {
  position: fixed; inset: 0; height: 100dvh; pointer-events: none;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: clamp(16px, 2.4vw, 36px);
  padding-top: max(clamp(16px, 2.4vw, 36px), env(safe-area-inset-top));
  padding-bottom: max(clamp(16px, 2.4vw, 36px), env(safe-area-inset-bottom));
}
.ui a, .ui button { pointer-events: auto; }
.mono { font-family: var(--mono); font-size: 11px; line-height: 1.5; letter-spacing: .07em; text-transform: uppercase; color: var(--dim); font-variant-numeric: tabular-nums; }
.mono b { font-weight: 500; color: var(--fg); }
header, footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 24px; }
footer { align-items: end; }
.r { justify-self: end; text-align: right; }
.c { text-align: center; }

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--fg); text-decoration: none; }
.brand svg { height: 26px; width: auto; display: block; }
.brand .name { display: flex; flex-direction: column; gap: 5px; line-height: 1; }
.brand .word { font-weight: 500; font-size: 14px; letter-spacing: .08em; }
.brand .sub { font-family: var(--mono); font-size: 8px; letter-spacing: .5em; color: var(--dim); }

nav { display: flex; gap: 28px; }
nav a { color: var(--fg); text-decoration: none; position: relative; }
nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .7s var(--out); }
nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.hint { transition: opacity 1.2s var(--out); }
.state { color: var(--ann); }

/* Loading: the mark, engraved while the range is computed (see loader.js) */
.load {
  position: fixed; inset: 0; z-index: 5; pointer-events: none;
  display: grid; place-content: center; justify-items: center;
  background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  --p: 0;
  transition: background-color .9s var(--out) .35s;
}
.load-mark { width: 116px; height: auto; overflow: visible; transition: transform 1.1s var(--out), opacity .8s var(--out); }
.load-mark .outline { stroke: var(--fg); stroke-width: .9; stroke-dasharray: 1; stroke-dashoffset: 1; animation: load-draw 1.1s var(--out) .1s forwards; vector-effect: non-scaling-stroke; }
.load-mark .ref { stroke: var(--dim); stroke-width: 1; stroke-dasharray: 1.5 3.5; vector-effect: non-scaling-stroke; opacity: 0; animation: load-fade .8s var(--out) .5s forwards; }
.load-mark .arc { stroke: var(--dim); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; animation: load-draw .9s var(--out) .8s forwards; }
.load-mark .h { stroke: var(--fg); stroke-width: .9; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .5s var(--out); }
.load-mark .h.on { stroke-dashoffset: 0; }
.load-deg { margin: 6px 0 0 -40px; color: var(--dim); opacity: 0; animation: load-fade .8s var(--out) 1s forwards; transition: opacity .5s var(--out); }

.load-horizon { position: relative; width: 240px; height: 9px; margin-top: 26px; transition: width 1.2s var(--io, cubic-bezier(.65,0,.35,1)), opacity .9s var(--out) .5s; }
.load-horizon::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(var(--dim), var(--dim)) bottom / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--dim) 0 1px, transparent 1px 12px) bottom / 100% 4px no-repeat;
  opacity: .7;
}
.load-horizon i { position: absolute; left: 0; bottom: 0; height: 1px; width: calc(var(--p) * 100%); background: var(--fg); }
.load-row { display: flex; justify-content: space-between; gap: 32px; width: 240px; margin-top: 12px; color: var(--dim); transition: opacity .5s var(--out); }
.load-pct { color: var(--fg); }

/* exit: the mark lifts away, the horizon spans the page and dissolves into the drawing */
.load.out { background-color: transparent; }
.load.out .load-mark { transform: translateY(-28px); opacity: 0; }
/* fill-mode animations outrank plain declarations, so the caption needs its own exit animation */
.load.out .load-deg { animation: load-out .35s var(--out) forwards; }
.load.out .load-row { opacity: 0; }
.load.out .load-horizon { width: 100vw; opacity: 0; }
.load.failed .load-step { color: var(--fg); }

@keyframes load-draw { to { stroke-dashoffset: 0; } }
@keyframes load-fade { to { opacity: 1; } }
@keyframes load-out { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .load *, .load { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}

.ui > * { opacity: 0; transition: opacity 1.4s var(--out) .6s; }
.ready .ui > * { opacity: 1; }


@media (max-width: 760px) {
  header { grid-template-columns: 1fr auto; }
  header .c, footer .c, .hide-sm { display: none; }
  footer { grid-template-columns: 1fr auto; }
}

/* ---------- About us: full-screen frosted glass over the range ---------- */
.ui { z-index: 2; }
.about { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
.about[hidden] { display: none; }
.about-scrim { display: none; }

/* While reading, the wordmark stays on top of the glass (and takes you back); the rest of the chrome steps aside */
html[data-about="open"] .ui { z-index: 11; }
html[data-about="open"] .ui > header nav,
html[data-about="open"] .ui > header nav *,
html[data-about="open"] .ui > footer,
html[data-about="open"] .ui > footer * { opacity: 0 !important; pointer-events: none !important; visibility: hidden; transition: opacity .5s var(--out), visibility 0s .5s !important; }

.about-sheet {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  color: var(--fg);
  isolation: isolate;
  /* the glass: thin enough for the range's light to come through, frosted, a little more vivid than life */
  background: color-mix(in srgb, var(--bg) 14%, transparent);
  -webkit-backdrop-filter: blur(0px) saturate(1);
  backdrop-filter: blur(0px) saturate(1);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--fg) 26%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--fg) 7%, transparent),
    inset 0 0 220px rgba(0, 0, 0, .08);
  opacity: 0;
  transition: opacity .8s var(--out), backdrop-filter 1.3s var(--out), -webkit-backdrop-filter 1.3s var(--out);
  outline: none;
  cursor: auto; user-select: text; -webkit-user-select: text; touch-action: pan-y;
}
/* grain: the frosting has a tooth */
.about-sheet::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: .1; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.about.is-open { pointer-events: auto; }
.about.is-open .about-sheet {
  opacity: 1;
  -webkit-backdrop-filter: blur(3.5px) saturate(1.35);
  backdrop-filter: blur(3.5px) saturate(1.35);
}

/* One voice: every line in this layer is the same face and the same size */
.about-sheet, .about-sheet * { font-family: var(--sans); font-size: 14px; line-height: 1.65; letter-spacing: .005em; font-weight: 400; font-style: normal; text-transform: none; }

.about-head {
  position: relative;
  display: flex; justify-content: flex-end; align-items: center;
  padding: clamp(16px, 2.4vw, 36px);
  min-height: 86px;
}
.about-close { all: unset; cursor: pointer; color: var(--fg); }
.about-close span { display: inline-block; margin-left: .4em; transition: transform .6s var(--out); }
.about-close:hover span { transform: rotate(90deg); }
.about-close:focus-visible { outline: 1px solid var(--fg); outline-offset: 5px; }

.about-scroll { position: relative; flex: 1; overflow-y: auto; overscroll-behavior: contain; }

/* Plain writing, with a soft wash behind the column only — the range stays visible around it */
.about-body {
  position: relative;
  max-width: min(860px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 10vh, 120px) clamp(24px, 4vw, 56px) clamp(48px, 12vh, 140px);
}
.about-body::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: 0 -12% -4%;
  background: radial-gradient(ellipse 60% 62% at 50% 44%, color-mix(in srgb, var(--bg) 78%, transparent) 0%, color-mix(in srgb, var(--bg) 52%, transparent) 55%, transparent 100%);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  -webkit-mask-image: radial-gradient(ellipse 62% 64% at 50% 44%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 62% 64% at 50% 44%, #000 35%, transparent 100%);
}
.about-body p + p { margin-top: .9em; }
.about-sheet .about-body .sign { margin-top: 5em; }
.about-sheet .about-body .sign, .about-sheet .about-body .sign * { font-style: italic; }

/* ink-in: each word's opacity rises slowly; delays overlap so the front is soft and wide */
.about-body .w { opacity: 0; transition: opacity .2s linear; }
.about.is-open .about-body .w { opacity: 1; transition: opacity 1.4s cubic-bezier(.33, 0, .2, 1) var(--wd); }
@media (prefers-reduced-motion: reduce) { .about-body .w { opacity: 1 !important; transition: none !important; } }

/* no backdrop-filter support: fall back to a solid reading layer */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .about-sheet { background: color-mix(in srgb, var(--bg) 96%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .about-sheet { transition: none !important; }
}
/* while reading, the survey labels step back so only the range shows through */
#fx { transition: opacity .6s var(--out); }
html[data-about="open"] #fx { opacity: 0; }

/* ---------- Privacy: a very small corner link on every page ---------- */
.privacy-link {
  position: fixed; z-index: 3;
  right: clamp(16px, 2.4vw, 36px); bottom: max(10px, env(safe-area-inset-bottom));
  font-family: var(--sans); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--dim); text-decoration: none;
  opacity: 0; transition: opacity 1.4s var(--out) .6s, color .4s var(--out);
}
.ready .privacy-link { opacity: 1; }
.privacy-link:hover, .privacy-link.on { color: var(--fg); }
html[data-about="open"] .privacy-link { opacity: 0; pointer-events: none; }
/* leave room under the footer for the corner Privacy link */
.ui > footer { margin-bottom: 12px; }
@media (max-width: 760px) { .ui > footer { margin-bottom: 20px; } }

/* phones: header on one line, nav tightened */
@media (max-width: 760px) {
  header nav { gap: 16px; }
  header nav.mono { letter-spacing: .05em; }
  .brand svg { height: 22px; }
  .brand .word { font-size: 13px; }
}
/* the Close button is focused on open for keyboard users; don't draw a box after a tap */
.about-close:focus:not(:focus-visible) { outline: none; }
@media (max-width: 760px) { header > span:empty { display: none; } header { align-items: center; } }

.load-fail { margin-top: 16px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg); }
