/* mapnaut.app: one stylesheet, no dependencies (D-048). Like the app: the landing is the night map
   and the documents are its paper pages (D-035). Type: Stack Sans (SIL OFL 1.1, see
   /fonts/OFL.txt), served from /fonts: Headline for titles, Text to read and for the bold tracked
   capitals of the labels, as the app's amber headings. Shapes: pills for anything you press, 28 px
   for cards, the phone's own radius for screenshots. One accent: the amber of a lit street. */

@font-face { font-family: "Stack Sans Headline"; src: url("/fonts/stack-sans-headline.woff2") format("woff2"); font-weight: 200 700; font-display: swap; }
@font-face { font-family: "Stack Sans Text"; src: url("/fonts/stack-sans-text.woff2") format("woff2"); font-weight: 200 700; font-display: swap; }
/* The wordmark: Madrid AMA (Justseeds Open Type Project), only the letters of MAPNAUT. */
@font-face { font-family: "Mapnaut Wordmark"; src: url("/fonts/madrid-ama-wordmark.woff2") format("woff2"); font-display: block; }

:root {
  --sky: #03040a;
  --night: #07080f;
  --night-2: #0e1019;
  --night-3: #151826;
  --line: rgb(255 255 255 / 0.09);
  --text: #f2f0ea;
  --muted: #a7a6b0;
  --amber: #ff9e3d;
  --amber-core: #ffe0ad;
  --haze: #4d8cff;
  --paper: #f3eee4;
  --paper-page: #eae3d3;
  --ink: #1a1720;
  --ink-2: #454247;
  --ink-line: rgb(26 23 32 / 0.12);
  --amber-ink: #874507;
  --radius-card: 28px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --edge: max(var(--gutter), calc((100% - var(--max)) / 2));
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sans: "Stack Sans Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --wide: var(--sans);
  /* Titles: Headline, semibold, a little tighter the bigger they are. */
  --display: "Stack Sans Headline", var(--sans);
  --display-weight: 600;
  --display-scale: 0.98;
  --track-xl: -0.03em;
  --track-l: -0.025em;
  --track-m: -0.012em;
  color-scheme: dark;
}
:root.is-paper { color-scheme: light; }

/* Languages: every text comes in ca, es and en; the one in data-lang shows (English without
   JavaScript). These rules only hide, so each element keeps its own display. */
html:not([data-lang="ca"]) body [lang="ca"],
html:not([data-lang="es"]) body [lang="es"],
html[data-lang="ca"] body [lang="en"],
html[data-lang="es"] body [lang="en"] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--sky); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sky);
  color: var(--text);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* Film grain over the night, fixed so it never repaints with the scroll. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  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='0.85' 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 0.7 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 700; text-wrap: balance; }
.hero h1, .chapter h2, .tour-intro h2, .step h3, .more > .wrap > h2, .cell h3, .big, .call h2,
.doc h1, .wordmark, .hud .count-num, .session-num {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-feature-settings: "kern", "liga";
}
/* Labels: wide capitals, tracked out, as on a map or the app's passport. */
.label, .pill, .lang a, .hud, .doc .meta, .doc h2, .facts dt, .downloads a, .icon-card a.dl, .stamp, .days > span, .session {
  font-family: var(--wide);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
em, .em { font-style: italic; }
p { text-wrap: pretty; }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* Buttons: pills that give a little when pressed. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 22px 0 24px;
  border-radius: 999px;
  font: 600 15px/1 var(--sans);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background-color 0.3s;
}
.btn svg { width: 17px; height: 17px; fill: currentColor; transition: transform 0.5s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn:active { transform: scale(0.97); }
.btn-light {
  background: var(--text);
  color: var(--ink);
  box-shadow: inset 0 -1px 0 rgb(0 0 0 / 0.12), 0 10px 30px -12px rgb(255 158 61 / 0.55);
}
.btn-light:hover { box-shadow: inset 0 -1px 0 rgb(0 0 0 / 0.12), 0 14px 40px -10px rgb(255 158 61 / 0.75); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ghost { border: 1px solid currentColor; border-color: var(--ink-line); }
.btn-small { height: 38px; padding: 0 16px; font-size: 14px; }

/* Navigation: a glass pill over the night (a web approximation, not Apple's Liquid Glass). */
.nav {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 50;
  transform: translateX(-50%);
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--max);
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 9px 0 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.nav.is-solid {
  background: rgb(9 10 17 / 0.62);
  border-color: var(--line);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.07), 0 18px 50px -20px rgb(0 0 0 / 0.7);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 400 23px/1 "Mapnaut Wordmark", var(--sans); letter-spacing: 0.04em; text-transform: uppercase; }
.brand img { width: 36px; height: 36px; border-radius: 22.5%; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12), 0 6px 18px -6px rgb(0 0 0 / 0.6); }
.nav-end { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; padding: 3px; border-radius: 999px; background: rgb(255 255 255 / 0.06); }
.lang a {
  min-width: 36px;
  padding: 9px 0;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.1em;
  color: var(--muted);
  transition: color 0.3s, background-color 0.3s;
}
.lang a:hover { color: var(--text); }
.lang a[aria-current="true"] { background: rgb(255 255 255 / 0.13); color: var(--text); }
@media (max-width: 440px) {
  .nav .btn { display: none; }
}

/* Reveal on scroll: only with JavaScript and when motion is welcome. */
@media (prefers-reduced-motion: no-preference) {
  .js .rise { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
  .js .rise.in { opacity: 1; transform: none; }
  .js .rise.d1 { transition-delay: 0.08s; }
  .js .rise.d2 { transition-delay: 0.16s; }
  .js .rise.d3 { transition-delay: 0.24s; }
}

/* ---------- The story: the hero, the planet, the city ---------- */

.story { position: relative; background: var(--sky); }
.stage { position: relative; min-height: 100svh; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.stage .city { opacity: 0; }
/* Without WebGL there is no planet: a glow of city lights on the horizon stands in for it. */
.no-webgl .stage { background: radial-gradient(120% 60% at 70% 115%, rgb(77 140 255 / 0.22), rgb(255 158 61 / 0.08) 45%, transparent 70%); }
.shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgb(3 4 10 / 0.55) 0%, rgb(3 4 10 / 0) 24%),
    linear-gradient(0deg, rgb(3 4 10 / 0.86) 0%, rgb(3 4 10 / 0.35) 30%, rgb(3 4 10 / 0) 52%),
    radial-gradient(120% 90% at 50% 50%, rgb(3 4 10 / 0) 55%, rgb(3 4 10 / 0.6) 100%);
}
.hero {
  position: relative;
  padding: clamp(118px, 19svh, 180px) var(--edge) 0;
  max-width: calc(760px + var(--edge));
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgb(255 255 255 / 0.04);
  font-size: 11px;
  line-height: 1;
  color: var(--muted);
}
.pill img { width: 20px; height: 20px; border-radius: 22.5%; }
.hero h1 {
  margin-top: 26px;
  font-size: calc(clamp(58px, 9vw, 138px) * var(--display-scale));
  line-height: 0.94;
  letter-spacing: var(--track-xl);
}
.lit {
  color: var(--amber-core);
  text-shadow: 0 0 22px rgb(255 158 61 / 0.7), 0 0 70px rgb(255 158 61 / 0.35);
}
@media (prefers-reduced-motion: no-preference) {
  .js .hero .lit { animation: light-up 2.6s 0.5s var(--ease) both; }
}
@keyframes light-up {
  from { color: rgb(242 240 234 / 0.28); text-shadow: 0 0 0 rgb(255 158 61 / 0); }
}
.hero p {
  margin-top: 24px;
  max-width: 34ch;
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.5;
  color: var(--muted);
}
.hero .btn { margin-top: 34px; }

.chapter { padding: 18svh var(--edge) 0; max-width: calc(620px + var(--edge)); }
.chapter h2 {
  font-size: calc(clamp(42px, 5.8vw, 86px) * var(--display-scale));
  line-height: 1;
  letter-spacing: var(--track-l);
}
.chapter p { margin-top: 18px; max-width: 36ch; font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); }
.hud { display: none; }

/* With JavaScript the stage stays on screen while the story plays under it. */
.story.is-live { height: 470svh; }
.story.is-live .stage { position: sticky; top: 0; height: 100svh; min-height: 0; overflow: hidden; }
.story.is-live .hero { position: absolute; inset: 0 0 auto 0; }
.story.is-live .chapter {
  position: absolute;
  left: 0;
  bottom: clamp(36px, 9svh, 96px);
  padding: 0 var(--edge);
  opacity: 0;
  will-change: opacity, transform;
}
.story.is-live .hud {
  display: flex;
  position: absolute;
  right: var(--edge);
  bottom: clamp(40px, 9.6svh, 102px);
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  text-align: right;
}
.hud > div { opacity: 0; }
.hud .count-num { display: inline-block; margin-bottom: 4px; font-size: calc(clamp(34px, 3.6vw, 52px) * var(--display-scale)); line-height: 1; text-transform: none; letter-spacing: var(--track-m); font-feature-settings: "tnum", "lnum"; color: var(--amber-core); text-shadow: 0 0 24px rgb(255 158 61 / 0.6); font-variant-numeric: tabular-nums; }
@media (max-width: 759px) {
  .story.is-live .hud { top: 92px; bottom: auto; right: var(--gutter); }
  .story.is-live .chapter { bottom: clamp(28px, 6svh, 56px); }
  .hud .count-num { font-size: calc(30px * var(--display-scale)); }
}

/* ---------- The tour: the app's screens ---------- */

.tour { padding-block: clamp(96px, 14vh, 170px); }
.tour-intro h2 { font-size: calc(clamp(42px, 5.6vw, 84px) * var(--display-scale)); line-height: 1; letter-spacing: var(--track-l); max-width: 13ch; }
.tour-intro p { margin-top: 20px; max-width: 38ch; color: var(--muted); font-size: clamp(17px, 1.4vw, 20px); }
.tour-steps { margin-top: 64px; display: grid; gap: 80px; }
.step h3 { font-size: calc(clamp(30px, 3.2vw, 48px) * var(--display-scale)); line-height: 1.05; letter-spacing: var(--track-m); }
.step p { margin-top: 14px; max-width: 32ch; color: var(--muted); font-size: clamp(17px, 1.4vw, 20px); }
.phone {
  position: relative;
  padding: 9px;
  border-radius: 54px;
  background: linear-gradient(160deg, #2b2c34, #0c0c11 42%, #1c1d23);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.11),
    inset 0 0 0 3px #050507,
    0 60px 100px -46px rgb(0 0 0 / 0.95),
    0 0 0 1px rgb(0 0 0 / 0.6);
}
.phone img { width: 100%; height: auto; aspect-ratio: 900 / 1955; border-radius: 45px; background: #000; }
.step .phone { width: min(76vw, 300px); margin-bottom: 32px; }
.tour-device { display: none; }

@media (min-width: 900px) {
  .tour-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; }
  .tour-intro { grid-column: 1 / -1; }
  .tour-steps { grid-column: 1; grid-row: 2; margin-top: 0; gap: 0; }
  .step { min-height: 76svh; display: flex; flex-direction: column; justify-content: center; }
  .js .step .phone { display: none; }
  .js .step { opacity: 0.26; transition: opacity 0.7s var(--ease); }
  .js .step.is-active { opacity: 1; }
  .js .tour-device { display: block; grid-column: 2; grid-row: 2; position: sticky; top: max(96px, calc(50svh - 318px)); align-self: start; margin-top: 8svh; }
  .tour-device::before {
    content: "";
    position: absolute;
    inset: -12% -30%;
    background: radial-gradient(closest-side, rgb(255 158 61 / 0.14), rgb(77 140 255 / 0.07) 55%, transparent 75%);
    pointer-events: none;
  }
  .tour-device .phone { width: min(300px, 25vw); margin-inline: auto; }
  .tour-device .screens { position: relative; aspect-ratio: 900 / 1955; border-radius: 45px; overflow: hidden; background: #000; }
  .tour-device img { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity 0.8s var(--ease), transform 1.2s var(--ease); }
  .tour-device img.is-active { opacity: 1; transform: none; }
}

/* ---------- Also in Mapnaut: a bento of five ---------- */

.more { padding-block: clamp(96px, 14vh, 170px); }
.more > .wrap > h2 { font-size: calc(clamp(42px, 5.6vw, 84px) * var(--display-scale)); line-height: 1; letter-spacing: var(--track-l); max-width: 14ch; }
.bento { margin-top: clamp(40px, 6vh, 64px); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.cell {
  position: relative;
  min-height: 300px;
  padding: 30px;
  border-radius: var(--radius-card);
  background: var(--night-2);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.cell h3 { font-size: calc(30px * var(--display-scale)); letter-spacing: var(--track-m); line-height: 1.08; }
.cell p { margin-top: 10px; color: var(--muted); font-size: 16px; line-height: 1.5; max-width: 36ch; }
.cell-imports { grid-column: span 4; }
.cell-watch, .cell-session, .cell-logbook, .cell-there { grid-column: span 2; }
.cell-watch { grid-column: span 2; }

/* Imports: the world in dots behind the formats. */
.cell-imports {
  background:
    radial-gradient(80% 120% at 100% 0%, rgb(77 140 255 / 0.16), transparent 60%),
    radial-gradient(circle, rgb(255 255 255 / 0.11) 1.2px, transparent 1.6px) 0 0 / 14px 14px,
    var(--night-2);
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgb(14 16 25 / 0.82);
  border: 1px solid var(--line);
  font: 400 16px/1 var(--sans);
  letter-spacing: 0.005em;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.chips span:nth-child(3n + 1) { border-color: rgb(255 158 61 / 0.35); }

/* The watch: the level ring of the app, lit. */
.cell-watch { background: radial-gradient(90% 70% at 50% 18%, rgb(255 158 61 / 0.16), transparent 70%), var(--night-2); }
.ring {
  width: 116px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--amber) 0 72%, rgb(255 255 255 / 0.09) 72% 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 11px), #000 calc(100% - 10px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 11px), #000 calc(100% - 10px));
  filter: drop-shadow(0 0 16px rgb(255 158 61 / 0.45));
}

/* Exploration sessions: a slip of the app's paper with the session's count. */
.cell-session { background: var(--paper); color: var(--ink); border-color: transparent; }
.cell-session p { color: var(--ink-2); }
.session { margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 11px; line-height: 1.2; color: var(--ink-2); }
.session-num { font-size: calc(clamp(44px, 4.2vw, 60px) * var(--display-scale)); line-height: 1; letter-spacing: var(--track-m); text-transform: none; color: var(--amber-ink); }

/* The logbook: a week of days, the lit ones in amber. */
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.days > span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.days > span.on { background: var(--amber); border-color: var(--amber); color: var(--ink); box-shadow: 0 0 18px -2px rgb(255 158 61 / 0.6); }

/* Take me there: the icon's route, to a dark street. */
.cell-there { background: radial-gradient(90% 80% at 85% 85%, rgb(77 140 255 / 0.18), transparent 65%), var(--night-2); }
.route { width: 100%; height: 112px; overflow: visible; }

/* ---------- Privacy: a promise that lights up word by word ---------- */

.promise { padding-block: clamp(110px, 18vh, 220px); }
.big {
  font-size: calc(clamp(36px, 5.6vw, 86px) * var(--display-scale));
  line-height: 1.06;
  letter-spacing: var(--track-l);
  max-width: 21ch;
}
.big .w { opacity: clamp(0.16, calc(var(--p, 1) * (var(--n, 1) + 4) - var(--i, 0)), 1); }
.facts-row { margin: clamp(56px, 8vh, 88px) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; border-top: 1px solid var(--line); padding-top: 32px; }
.facts-row strong { display: block; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.facts-row span { display: block; margin-top: 6px; color: var(--muted); font-size: 16px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 40px; font-weight: 700; text-decoration: none; border-bottom: 1px solid rgb(255 158 61 / 0.5); padding-bottom: 3px; transition: border-color 0.3s, gap 0.4s var(--ease); }
.text-link:hover { border-color: var(--amber); gap: 12px; }
.text-link svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- The last call ---------- */

.call { position: relative; padding-block: clamp(110px, 16vh, 200px); text-align: center; overflow: hidden; }
.call::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(900px, 140vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgb(255 158 61 / 0.16), rgb(77 140 255 / 0.06) 55%, transparent 75%);
  pointer-events: none;
}
.call > * { position: relative; }
.app-icon {
  width: clamp(112px, 12vw, 152px);
  height: auto;
  margin: 0 auto;
  border-radius: 22.5%;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.14), 0 30px 80px -24px rgb(255 158 61 / 0.55), 0 20px 50px -20px rgb(0 0 0 / 0.9);
}
.call h2 { margin-top: 40px; font-size: calc(clamp(48px, 7vw, 108px) * var(--display-scale)); line-height: 0.96; letter-spacing: var(--track-xl); }
.call p { margin: 22px auto 0; max-width: 40ch; color: var(--muted); font-size: clamp(17px, 1.4vw, 20px); }
.call .btn { margin-top: 36px; }

/* ---------- Footer ---------- */

.footer { position: relative; padding: 72px 0 0; border-top: 1px solid var(--line); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; font-size: 15px; }
.footer-grid nav { display: flex; flex-direction: column; gap: 10px; }
.footer-grid nav a, .footer-grid a.mail { text-decoration: none; color: var(--muted); transition: color 0.3s; }
.footer-grid nav a:hover, .footer-grid a.mail:hover { color: var(--text); }
.footer .note { color: var(--muted); font-size: 14px; max-width: 46ch; }
.footer .note a { color: inherit; text-underline-offset: 3px; }
.wordmark {
  margin-top: 64px;
  font-family: "Mapnaut Wordmark", var(--sans) !important;
  font-weight: 400 !important;
  text-transform: uppercase;
  font-size: calc(clamp(96px, 22vw, 350px) * var(--display-scale));
  letter-spacing: var(--track-xl);
  line-height: 0.74;
  text-align: center;
  color: transparent;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.13), rgb(255 255 255 / 0.02) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
  transform: translateY(6%);
}

/* ---------- Documents on paper: privacy, support, press ---------- */

.is-paper body { background: var(--paper); color: var(--ink); }
.is-paper body::after {
  opacity: 0.5;
  mix-blend-mode: multiply;
  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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.12 0 0 0 0 0.09 0 0 0 0 0.05 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.is-paper ::selection { background: var(--amber-ink); color: var(--paper); }
.is-paper :focus-visible { outline-color: var(--amber-ink); }
.is-paper .nav.is-solid { background: rgb(243 238 228 / 0.72); border-color: var(--ink-line); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.6), 0 18px 40px -24px rgb(26 23 32 / 0.35); }
.is-paper .brand img { box-shadow: 0 0 0 1px var(--ink-line), 0 6px 14px -6px rgb(26 23 32 / 0.35); }
.is-paper .lang { background: rgb(26 23 32 / 0.06); }
.is-paper .lang a { color: var(--ink-2); }
.is-paper .lang a:hover { color: var(--ink); }
.is-paper .lang a[aria-current="true"] { background: var(--ink); color: var(--paper); }
.is-paper .footer { border-color: var(--ink-line); }
.is-paper .footer-grid nav a, .is-paper .footer-grid a.mail, .is-paper .footer .note { color: var(--ink-2); }
.is-paper .footer-grid nav a:hover, .is-paper .footer-grid a.mail:hover { color: var(--ink); }
.is-paper .wordmark { background-image: linear-gradient(180deg, rgb(26 23 32 / 0.1), rgb(26 23 32 / 0.01) 80%); }

.doc { max-width: calc(760px + 2 * var(--gutter)); margin: 0 auto; padding: clamp(132px, 20vh, 190px) var(--gutter) clamp(80px, 12vh, 140px); }
.doc-wide { max-width: calc(1040px + 2 * var(--gutter)); }
/* A #ca or #es in the address names a section: keep the page at its top rather than jump to it. */
.doc > section { scroll-margin-top: 100vh; }
.doc > section > p { max-width: 68ch; }
.doc h1 { font-size: calc(clamp(50px, 7.6vw, 104px) * var(--display-scale)); line-height: 0.96; letter-spacing: var(--track-xl); }
.doc .meta { margin-top: 22px; font-size: 11px; line-height: 1.4; color: var(--ink-2); }
.doc .lead { margin-top: 28px; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.5; color: var(--ink); max-width: 40ch; }
.doc h2 {
  margin: 72px 0 6px;
  padding-top: 26px;
  border-top: 1px solid var(--ink-line);
  font-size: 11.5px;
  line-height: 1.3;
  letter-spacing: 0.14em;
  color: var(--amber-ink);
}
.doc h3 { margin: 30px 0 8px; font-size: 21px; letter-spacing: -0.02em; line-height: 1.25; }
.doc p, .doc li { font-size: 17px; line-height: 1.68; color: var(--ink-2); }
.doc p + p { margin-top: 14px; }
.doc a { color: var(--ink); text-decoration-color: rgb(135 69 7 / 0.5); text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: var(--amber-ink); }
.doc code { font: 500 0.92em ui-monospace, "SF Mono", Menlo, monospace; background: rgb(26 23 32 / 0.06); padding: 1px 6px; border-radius: 6px; }
.summary {
  margin-top: 44px;
  padding: 30px 32px;
  border-radius: var(--radius-card);
  background: var(--paper-page);
  box-shadow: inset 0 0 0 1px var(--ink-line);
}
.summary p { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink); }
.summary strong { color: var(--amber-ink); }

/* Support: write to us, then the questions. */
.contact {
  margin-top: 44px;
  padding: 32px;
  border-radius: var(--radius-card);
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.contact p { color: rgb(243 238 228 / 0.72); max-width: 42ch; }
.contact .mail-big { display: block; margin-top: 8px; font-size: clamp(24px, 3vw, 34px); font-weight: 700; letter-spacing: -0.01em; color: var(--paper); text-decoration: none; }
.contact .btn { background: var(--paper); color: var(--ink); }
.faq { margin-top: 8px; }
.faq details { border-bottom: 1px solid var(--ink-line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 20px; height: 20px; fill: var(--amber-ink); transition: transform 0.5s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 48px 26px 0; margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  .faq details::details-content { block-size: 0; overflow: clip; transition: block-size 0.5s var(--ease), content-visibility 0.5s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
  .faq { interpolate-size: allow-keywords; }
}

/* Press: the facts, what it is, the screens and the icon. */
.facts {
  margin: 44px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-radius: var(--radius-card);
  background: var(--paper-page);
  box-shadow: inset 0 0 0 1px var(--ink-line);
  overflow: hidden;
}
.facts div { padding: 22px 24px; box-shadow: inset -1px -1px 0 var(--ink-line); }
.facts dt { font-size: 10.5px; line-height: 1.3; color: var(--ink-2); }
.facts dd { margin: 8px 0 0; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); overflow-wrap: anywhere; }
.facts dd a { color: inherit; }
.features { margin: 20px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.features li { padding: 20px 22px; border-radius: 20px; background: rgb(26 23 32 / 0.045); font-size: 16px; line-height: 1.5; color: var(--ink); }
.downloads { margin-top: 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.downloads figure { margin: 0; }
.downloads img { width: 100%; height: auto; border-radius: 26px; box-shadow: 0 0 0 1px var(--ink-line), 0 24px 50px -30px rgb(26 23 32 / 0.6); }
.downloads figcaption { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 700; }
.downloads a, .icon-card a.dl { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; line-height: 1; text-decoration: none; color: var(--amber-ink); }
.downloads a svg, .icon-card a.dl svg { width: 15px; height: 15px; fill: currentColor; }
.icon-card { margin-top: 24px; display: flex; align-items: center; gap: 28px; padding: 28px; border-radius: var(--radius-card); background: var(--paper-page); box-shadow: inset 0 0 0 1px var(--ink-line); }
.icon-card img { width: 120px; height: 120px; border-radius: 22.5%; box-shadow: 0 0 0 1px var(--ink-line), 0 20px 40px -20px rgb(26 23 32 / 0.5); }
.icon-card p { color: var(--ink-2); font-size: 16px; }
.icon-card strong { display: block; color: var(--ink); font-size: 19px; letter-spacing: -0.02em; margin-bottom: 4px; }
.icon-card a.dl { margin-top: 14px; }

/* ---------- Narrow screens: one column ---------- */

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell-imports { grid-column: span 2; }
  .cell-watch, .cell-session, .cell-logbook, .cell-there { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: span 2; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .cell-imports, .cell-watch, .cell-session, .cell-logbook, .cell-there { grid-column: auto; }
  .cell { min-height: 0; padding: 26px; }
  .facts-row { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .features, .downloads { grid-template-columns: minmax(0, 1fr); }
  .downloads { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .downloads img { border-radius: 14px; }
  .downloads figcaption { flex-direction: column; align-items: flex-start; font-size: 13px; }
  .icon-card { flex-direction: column; align-items: flex-start; }
  .contact { padding: 26px; }
  .faq details p { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
