/* Locals site. Chalk and ink, with clay and sage from the illustration palette. */

/* Stack Sans Notch, the brand face (OFL, see assets/fonts/OFL-stack-sans-notch.txt). One variable file, 200 to 700. */
@font-face {
  font-family: "Stack Sans Notch";
  src: url("../assets/fonts/stack-sans-notch-latin.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Stack Sans Notch";
  src: url("../assets/fonts/stack-sans-notch-latin-ext.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fragment Mono";
  src: url("../assets/fonts/fragment-mono-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --chalk: #efece5;
  --chalk-deep: #e4e0d6;
  --chalk-line: rgba(40, 43, 45, 0.14);
  --ink: #282b2d;
  --ink-soft: #5c5f61;
  --ink-line: rgba(239, 236, 229, 0.16);
  --clay: #b96145;
  --sage: #a6b69c;
  --sage-deep: #52694c;
  --white: #ffffff;

  --sans: "Stack Sans Notch", "Helvetica Neue", Arial, sans-serif;
  --mono: "Fragment Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Page tokens (light). Brand constants above stay fixed; these change with the theme. */
  --bg: #efece5;
  --bg-deep: #e4e0d6;
  --fg: #282b2d;
  --fg-soft: #5c5f61;
  --line: rgba(40, 43, 45, 0.14);
  --surface: rgba(255, 255, 255, 0.4);
  --wall: url("../assets/wallpaper/hills-day.svg");
  --art-ol: #282b2d;
  --art-inkbody: none;
  --hover: rgba(40, 43, 45, 0.06);
  --btn-bg: #282b2d;
  --btn-bg-hover: #1b1d1f;
  --btn-fg: #efece5;
  --accent-text: #b96145;
  --band-bg: #282b2d;
  --foot-bg: #282b2d;
  --shadow-ground: rgba(40, 43, 45, 0.18);
  --show-day: block;
  --show-night: none;
  color-scheme: light;
  --measure: 34rem;
  --gutter: clamp(16px, 4vw, 64px);
  --max: 1560px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c1e1f;
    --bg-deep: #26292b;
    --fg: #efece5;
    --fg-soft: #a9a69f;
    --line: rgba(239, 236, 229, 0.12);
    --surface: rgba(239, 236, 229, 0.04);
    --hover: rgba(239, 236, 229, 0.07);
    --btn-bg: #efece5;
    --btn-bg-hover: #ffffff;
    --btn-fg: #1c1e1f;
    --accent-text: #dd8d71;
    --band-bg: #282b2d;
    --foot-bg: #141617;
    --shadow-ground: rgba(0, 0, 0, 0.55);
    --show-day: none;
    --show-night: block;
    --wall: url("../assets/wallpaper/hills-night.svg");
    --art-ol: #efece5;
    --art-inkbody: #efece5;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1c1e1f;
  --bg-deep: #26292b;
  --fg: #efece5;
  --fg-soft: #a9a69f;
  --line: rgba(239, 236, 229, 0.12);
  --surface: rgba(239, 236, 229, 0.04);
  --hover: rgba(239, 236, 229, 0.07);
  --btn-bg: #efece5;
  --btn-bg-hover: #ffffff;
  --btn-fg: #1c1e1f;
  --accent-text: #dd8d71;
  --band-bg: #282b2d;
  --foot-bg: #141617;
  --shadow-ground: rgba(0, 0, 0, 0.55);
  --show-day: none;
  --show-night: block;
  --wall: url("../assets/wallpaper/hills-night.svg");
  --art-ol: #efece5;
  --art-inkbody: #efece5;
  color-scheme: dark;
}
.art-day { display: var(--show-day) !important; }
.art-night { display: var(--show-night) !important; }


* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.5;
  font-feature-settings: "kern";
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--fg); color: var(--bg); }
code, kbd, .mono { font-family: var(--mono); font-size: 0.9em; }
/* Stack Sans Notch keeps its notches open at natural spacing; tightening fills them in. */
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.005em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
p + p { margin-top: 0.85em; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
section[id] { scroll-margin-top: 72px; }
.measure { max-width: var(--measure); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.eyebrow.clay { color: var(--accent-text); }
.lede { font-size: 1.25rem; line-height: 1.45; color: var(--fg-soft); }
.lede strong { color: var(--fg); font-weight: 500; }

/* ---- Buttons ---- */
.button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
  border: 1px solid var(--btn-bg);
  transition: transform 160ms ease, background-color 160ms ease;
}
.button:hover { background: var(--btn-bg-hover); text-decoration: none; }
.button:active { transform: translateY(1px); }
.button svg { width: 18px; height: 18px; }
.button.ghost { background: transparent; color: var(--fg); }
.button.ghost:hover { background: var(--hover); }
.button.on-ink { background: var(--chalk); color: var(--ink); border-color: var(--chalk); }
.button.on-ink:hover { background: #fff; }
.button.on-ink.ghost { background: transparent; color: var(--chalk); border-color: rgba(239, 236, 229, 0.4); }
.button.on-ink.ghost:hover { background: rgba(239, 236, 229, 0.08); }

/* ---- Header ---- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.top .logo svg, .top .logo img { height: 26px; width: auto; }
.top nav { margin-left: auto; display: flex; gap: 22px; font-size: 0.95rem; }
.top nav a { text-decoration: none; color: var(--fg-soft); }
.top nav a:hover { color: var(--fg); }
.top .button { padding: 0.6rem 0.95rem; font-size: 0.9rem; }
.top .menu-toggle { display: none; }
@media (max-width: 820px) {
  .top nav { display: none; }
}

/* ---- Hero ---- */
.hero { padding: clamp(32px, 4.5vw, 64px) 0 clamp(28px, 4vw, 56px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 56px) clamp(32px, 5vw, 80px); align-items: end; }
.hero h1 {
  font-size: clamp(2.5rem, 4.9vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  font-weight: 600;
  max-width: 13ch;
}
.hero h1 em { font-style: normal; color: var(--accent-text); }
.hero .side { padding-bottom: 0.4rem; }
.hero .lede { max-width: 34rem; }
.hero .cta { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.hero .req { margin-top: 1rem; font-size: 0.9rem; color: var(--fg-soft); }
.hero .req code { font-size: 0.85em; }

/* The stage: a MacBook showing the desktop, with the Locals panel open under its menu bar icon.
   --ui scales the macOS chrome to the size it would be on a real screen of this width. */
.hero .stage { grid-area: stage; position: relative; width: min(100%, 1200px); margin: 0 auto; --ui: 1; }

/* The town: the laptop on the ground line with the neighbours standing either side of it.
   On wide screens they flank the screen, so they're in the first view; narrower, they line up underneath. */
.hero .town {
  grid-column: 1 / -1;
  position: relative;
  margin-top: clamp(16px, 2.6vw, 40px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "stage stage" "left right";
  align-items: end;
  row-gap: clamp(28px, 4vw, 56px);
}
.hero .flank { position: relative; display: flex; align-items: flex-end; padding-bottom: 10px; }
.hero .flank.left { grid-area: left; justify-content: flex-end; padding-right: 3%; }
.hero .flank.right { grid-area: right; justify-content: flex-start; padding-left: 3%; }
.hero .flank .art { height: auto; position: relative; flex: 0 0 auto; }
/* Feet on the line: each neighbour's soles sit 6.55% of its width above the bottom of its drawing,
   so this margin puts them exactly on the flank's content edge, where the ground line is drawn. */
.hero .flank .n { --w: clamp(64px, 15vw, 196px); width: var(--w); margin-bottom: calc(var(--w) * -0.0655); }
.hero .flank .front { z-index: 1; }
/* Their own hand-drawn ground, fading out towards the page edge. */
.hero .flank::after { content: ""; position: absolute; bottom: -6.4px; height: 22px; background: var(--fg); pointer-events: none; }
.hero .flank.left::after {
  left: -18%; right: -6%;
  -webkit-mask: var(--rough-ground) -300px 0 / 560px 22px repeat-x, linear-gradient(to right, transparent, #000 38%);
  -webkit-mask-composite: source-in;
  mask: var(--rough-ground) -300px 0 / 560px 22px repeat-x, linear-gradient(to right, transparent, #000 38%);
  mask-composite: intersect;
}
.hero .flank.right::after {
  right: -18%; left: -6%;
  -webkit-mask: var(--rough-ground) -40px 0 / 560px 22px repeat-x, linear-gradient(to left, transparent, #000 38%);
  -webkit-mask-composite: source-in;
  mask: var(--rough-ground) -40px 0 / 560px 22px repeat-x, linear-gradient(to left, transparent, #000 38%);
  mask-composite: intersect;
}
/* The clay studio turns to wave at the screen. */
.hero .flank .n-clay { scale: -1 1; }
@keyframes arrive { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
.hero .flank .art { animation: arrive 720ms cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: calc(var(--i) * 110ms + 260ms); transition: translate 220ms ease; }
.hero .flank .art:hover { translate: 0 -8px; }
@media (prefers-reduced-motion: reduce) { .hero .flank .art { animation: none; } .hero .flank .art:hover { translate: none; } }

@media (min-width: 1280px) {
  .hero .town { grid-template-columns: minmax(0, 1fr) min(58vw, 1000px) minmax(0, 1fr); grid-template-areas: "left stage right"; column-gap: 0; }
  .hero .stage { width: 100%; --ui: 0.87; }
  .screen .desktop { aspect-ratio: 3024 / 1964; }
  .hero .flank { padding: 0 0 10px; }
  .hero .flank.left { padding-right: clamp(8px, 1.4vw, 28px); }
  .hero .flank.right { padding-left: clamp(8px, 1.4vw, 28px); }
  .hero .flank .front { --w: clamp(140px, 12vw, 240px); }
  .hero .flank .back { --w: clamp(100px, 8.4vw, 170px); margin-inline: calc(var(--w) * -0.25); }
  /* They stand further back than the laptop, so their ground sits higher, and they tuck behind the screen's edges. */
  .hero .stage { z-index: 1; }
  .hero .flank { align-self: end; margin-bottom: clamp(110px, 11vw, 190px); }
  .hero .flank.left { margin-right: clamp(-40px, -2vw, -20px); }
  .hero .flank.right { margin-left: clamp(-40px, -2vw, -20px); }
  .desktop .browser { width: 43%; }
  .desktop .term { left: 9%; width: 41%; }
}
@media (min-width: 1440px) { .hero .stage { --ui: 1; } }
@media (min-width: 1720px) { .hero .stage { --ui: 1.15; } }
/* The desktop on its own: rounded like a window, lifted off the page with a soft shadow. */
.screen { position: relative; }
.screen .desktop {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: clamp(12px, 1.5vw, 20px);
  overflow: hidden;
  background: var(--wall) 60% 62% / cover;
  isolation: isolate;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 40px 80px -40px var(--shadow-ground), 0 18px 36px -24px var(--shadow-ground);
}

/* At night the desktop needs a faint edge to separate it from the page. */
:root[data-theme="dark"] .screen .desktop { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09), 0 40px 80px -40px var(--shadow-ground), 0 18px 36px -24px var(--shadow-ground); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .screen .desktop { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09), 0 40px 80px -40px var(--shadow-ground), 0 18px 36px -24px var(--shadow-ground); }
}

/* Desktop contents: menu bar, a browser showing the dev site, the terminal serving it, and Locals. */
.desktop .desk-bar { zoom: var(--ui); }
.desk-bar .mb-time { white-space: nowrap; }
.desktop .browser, .desktop .term { position: absolute; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.35), inset 0 0 0 0.5px rgba(255, 255, 255, 0.2), 0 24px 60px rgba(0, 0, 0, 0.28); }
.desktop .browser { left: 3%; top: 10%; width: 50%; height: 60%; background: #fbf7f0; z-index: 0; }
.desktop .browser .titlebar { background: #f1ede6; border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.desktop .browser .url { margin: 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 3px 14px; border-radius: 6px; background: rgba(0, 0, 0, 0.05); color: rgba(29, 29, 31, 0.7); font-size: 11.5px; }
.desktop .browser .url svg { width: 11px; height: 11px; }
.desktop .site { padding: 18px 22px; color: #3b2a20; font-family: Georgia, "Times New Roman", serif; }
.desktop .site-nav { display: flex; gap: 18px; align-items: baseline; font: 12px/1 -apple-system, system-ui, sans-serif; color: #6b5547; }
.desktop .site-nav b { font: italic 700 18px/1 Georgia, serif; color: #3b2a20; margin-right: auto; }
.desktop .site-hero { margin-top: 22px; }
.desktop .site-hero .k { font: 11px/1 -apple-system, system-ui, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: #a0562e; }
.desktop .site-hero .h { margin-top: 8px; font-size: clamp(18px, 2.3vw, 30px); line-height: 1.05; letter-spacing: -0.01em; }
.desktop .site-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.desktop .site-grid i { aspect-ratio: 4 / 3; border-radius: 6px; background: linear-gradient(140deg, #e9c9a2, #c98e5b); }
.desktop .site-grid i:nth-child(2) { background: linear-gradient(140deg, #efdcc0, #d7ae7c); }
.desktop .site-grid i:nth-child(3) { background: linear-gradient(140deg, #d9b48a, #9f6a3f); }
.desktop .site-rows { margin-top: 14px; display: grid; gap: 7px; }
.desktop .site-rows span { height: 7px; border-radius: 4px; background: rgba(59, 42, 32, 0.12); }
.desktop .site-rows span:nth-child(2) { width: 82%; }
.desktop .site-rows span:nth-child(3) { width: 64%; }
.desktop .term { left: 15%; top: 42%; width: 46%; height: 53%; z-index: 1; background: rgba(24, 25, 27, 0.95); color: #d6d6d2; }
.desktop .term .titlebar { background: rgba(44, 45, 48, 0.97); color: rgba(255, 255, 255, 0.55); border-bottom: 1px solid rgba(0, 0, 0, 0.5); }
.desktop .term .titlebar .t, .desktop .browser .titlebar .t { font-size: 12px; }
.desktop .term-body { margin: 0; padding: 12px 14px; font: 11.5px / 1.5 ui-monospace, "SF Mono", Menlo, monospace; white-space: pre; overflow: hidden; }
.term-body .p { color: #7fb5ff; }
.term-body .g { color: #8fe3a6; }
.term-body .c { color: #e98fd2; }
.term-body .hl { background: #b96145; color: #fff; padding: 0 4px; border-radius: 2px; }
.term-body .u { color: #8fd3ff; text-decoration: underline; text-underline-offset: 2px; }
.term-body .d { color: rgba(255, 255, 255, 0.38); }
.term-body .b { color: #8fe3a6; }
.term-body .y { color: #ffd37a; }
.term-body .cur { display: inline-block; width: 0.6em; height: 1.1em; vertical-align: -0.2em; background: rgba(255, 255, 255, 0.65); animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
#hero-demo { position: absolute; right: 1%; top: calc(26px * var(--ui) + 5px); z-index: 2; width: 420px; zoom: var(--ui); transition: opacity 260ms ease, translate 260ms ease; }
#hero-demo .panel { width: 100%; }
#hero-demo.closing { opacity: 0; translate: 0 -4px; }
.desk-bar .mb-locals.closed { background: transparent; }

/* Below laptop widths the screen grows to fit the panel and the background windows step aside. */
@media (max-width: 1180px) {
  .screen .desktop { aspect-ratio: auto; min-height: 640px; }
  .desktop .browser { width: 46%; height: 52%; }
  .desktop .term { left: 6%; top: 50%; width: 50%; height: 44%; }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: none; }
  .desktop .browser { display: none; }
  .desktop .term { left: 3%; top: 9%; width: 52%; height: 70%; }
}
@media (max-width: 620px) {
  .screen .desktop { min-height: 0; padding: 0 6px 14px; border-radius: 12px; }
  .desktop .desk-bar { margin: 0 -6px 6px; }
  .desktop .term { display: none; }
  .desk-bar .mb-apps span, .desk-bar .mb-apps b, .desk-bar .mb-item:nth-of-type(3) { display: none; }
  #hero-demo { position: relative; right: auto; top: auto; width: 100%; }
}

/* Hero loop: every row has a fixed height, and each step collapses one row while expanding
   another with the same timing, so the panel's total height never changes. */
#hero-demo .row { min-height: 0; height: 46px; transition: height 560ms cubic-bezier(0.4, 0, 0.2, 1), padding 560ms cubic-bezier(0.4, 0, 0.2, 1), opacity 380ms ease, background-color 180ms ease; }
#hero-demo .row.gone { height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; }
#hero-demo.snap .row, #hero-demo.snap .pill { transition: none; }
#hero-demo .pill { min-width: 70px; text-align: center; }
.panel .pill { transition: background-color 300ms ease, color 300ms ease; }
.panel .hidden { display: none; }



/* ---- Problem band ---- */
.problem { padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.problem .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.problem h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); max-width: 22ch; margin-top: 0.75rem; }
.problem p { margin-top: 1.1rem; color: var(--fg-soft); max-width: var(--measure); font-size: 1.125rem; }
.problem p strong { color: var(--fg); font-weight: 500; }
.problem p em { font-style: normal; font-family: var(--mono); font-size: 0.92em; color: var(--fg); }
.problem .scene { max-width: 560px; justify-self: end; }
.problem .scene svg { width: 100%; height: auto; }
@media (max-width: 820px) {
  .problem .wrap { grid-template-columns: 1fr; }
  .problem .scene { justify-self: start; max-width: 460px; }
}

/* ---- Feature sections ---- */
.features { border-top: 1px solid var(--line); }
.feature { padding: clamp(48px, 7vw, 112px) 0; border-bottom: 1px solid var(--line); }
.feature:last-child { border-bottom: 0; }
.feature .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 96px); align-items: start; }
.feature.flip .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.feature.flip .wrap > .copy { order: 2; }
.feature .copy { position: sticky; top: 96px; }
.feature h2 { font-size: clamp(1.9rem, 3.2vw, 2.75rem); margin-top: 0.75rem; }
.feature .copy > p { margin-top: 1.1rem; color: var(--fg-soft); max-width: var(--measure); }
.feature .copy > p strong { color: var(--fg); font-weight: 500; }
.feature ul.points { margin: 1.5rem 0 0; padding: 0; list-style: none; max-width: var(--measure); border-top: 1px solid var(--line); }
.feature ul.points li { position: relative; padding: 0.8rem 0 0.8rem 1.5rem; border-bottom: 1px solid var(--line); font-size: 1rem; color: var(--fg-soft); }
.feature ul.points li strong { color: var(--fg); font-weight: 500; }
.feature ul.points li::before { content: ""; position: absolute; left: 0; top: 1.35rem; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }
.feature ul.points li.clay::before { background: var(--clay); }
.feature .show { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.feature .show .caption { font-size: 0.9rem; color: var(--fg-soft); max-width: 36rem; }
.feature .show .caption code { font-size: 0.85em; }
.feature .show figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.feature .show figure figcaption { font-size: 0.85rem; color: var(--fg-soft); }
.feature .pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(24px, 3vw, 48px); align-items: start; }
.feature .pair .stack { display: flex; flex-direction: column; gap: 24px; }
.feature .pair .popover { width: 100%; max-width: 320px; }
.feature .stack { display: flex; flex-direction: column; gap: 16px; }
.feature .show-centre { display: flex; justify-content: center; }
.feature.wide .wrap { grid-template-columns: 1fr; }
.feature.wide .copy { position: static; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 64px); align-items: start; }
.feature.wide .copy ul.points { margin-top: 0.4rem; max-width: 40rem; }
.feature.wide .copy > p { grid-column: 1; }
.feature.wide .copy > .points { grid-column: 2; grid-row: 1 / span 3; }
.feature.wide .show { margin-top: clamp(24px, 3vw, 40px); }
@media (max-width: 920px) {
  .feature .wrap, .feature.flip .wrap { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .wrap > .copy { order: 0; }
  .feature .copy { position: static; }
  .feature.wide .copy { grid-template-columns: minmax(0, 1fr); }
  .feature.wide .copy > .points { grid-column: 1; grid-row: auto; }
}

/* Framework and launcher strips */
.logo-strip { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 1.5rem; max-width: var(--measure); }
.logo-strip span { display: inline-flex; align-items: center; gap: 7px; font-size: 0.9rem; color: var(--fg-soft); padding: 5px 10px 5px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.logo-strip svg { width: 15px; height: 15px; color: var(--fg); }
.logo-strip .more { border-style: dashed; padding-left: 10px; }

.launchers { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.launchers .l { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 0.95rem; }
.launchers .l .badge { position: static; width: 24px; height: 24px; flex: 0 0 auto; }
.launchers .l .badge svg { width: 15px; height: 15px; }
.launchers .l small { display: block; font-size: 0.75rem; color: var(--fg-soft); }
.launchers .l.agent { border-color: color-mix(in srgb, var(--clay) 45%, transparent); }

/* Scenes beside the feature copy: small breaks in the reading, not explanations. */
.vignette { margin: 2.25rem 0 0; max-width: 360px; }
.vignette svg { width: 100%; height: auto; }
.feature .copy .vignette { margin-left: -2%; }
.feature .show .vignette.aside { align-self: flex-end; width: min(100%, 340px); margin: 4px 2% 0 0; }
.feature.flip .show .vignette.aside { align-self: flex-start; }

/* ---- Privacy band ---- */
.privacy { background: var(--band-bg); color: var(--chalk); border-block: 1px solid var(--line); padding: clamp(56px, 8vw, 120px) 0; position: relative; overflow: hidden; }
.privacy .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.privacy .eyebrow { color: var(--sage); }
.privacy h2 { font-size: clamp(1.9rem, 3.2vw, 2.75rem); margin-top: 0.75rem; max-width: 16ch; }
.privacy .copy > p { margin-top: 1.1rem; color: rgba(239, 236, 229, 0.72); max-width: var(--measure); }
.privacy .copy > p a { color: var(--chalk); }
.privacy .promises { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink-line); }
.privacy .promises li { padding: 1.1rem 0; border-bottom: 1px solid var(--ink-line); display: grid; grid-template-columns: 2.5rem 1fr; gap: 12px; }
.privacy .promises li .n { font-family: var(--mono); font-size: 0.8rem; color: var(--sage); padding-top: 0.3em; }
.privacy .promises li strong { display: block; font-weight: 500; font-size: 1.125rem; }
.privacy .promises li span { display: block; color: rgba(239, 236, 229, 0.68); font-size: 0.975rem; margin-top: 0.25rem; }
.privacy .gate { margin-top: clamp(32px, 4vw, 56px); max-width: 480px; }
.privacy .cta { margin-top: 2rem; display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 920px) {
  .privacy .wrap { grid-template-columns: 1fr; }
}

/* ---- Install ---- */
.install { padding: clamp(56px, 8vw, 120px) 0; border-bottom: 1px solid var(--line); }
.install .head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.install h2 { font-size: clamp(1.9rem, 3.2vw, 2.75rem); margin-top: 0.75rem; }
.install .head p { margin-top: 1rem; color: var(--fg-soft); max-width: var(--measure); }
.install .get .vignette { margin: 0 0 -6px auto; max-width: 400px; position: relative; }
.install .download { display: flex; align-items: center; gap: 20px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.install .download img { width: 72px; height: 72px; }
.install .download .t strong { display: block; font-size: 1.2rem; font-weight: 600; }
.install .download .t span { display: block; color: var(--fg-soft); font-size: 0.925rem; margin-top: 3px; }
.install .download .t code { font-size: 0.8rem; color: var(--fg-soft); display: block; margin-top: 6px; word-break: break-all; }
.install .download .button { margin-left: auto; flex: 0 0 auto; }
.install .reqs { margin: 1.25rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.95rem; color: var(--fg-soft); }
.install .reqs li { display: inline-flex; gap: 8px; align-items: center; }
.install .reqs li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }
.steps { margin-top: clamp(40px, 5vw, 72px); }
.steps h3 { font-size: 1.35rem; font-weight: 600; }
.steps > p { margin-top: 0.5rem; color: var(--fg-soft); max-width: var(--measure); }
.steps ol { margin: 1.75rem 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 14px; }
.steps li figure { margin: 0; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-deep); }
.steps li figure img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.steps li figure.shot { display: grid; place-items: center; padding: 20px; background: var(--wall) var(--wall-pos, 60% 70%) / cover; container-type: inline-size; }
.steps .alert { width: 260px; max-width: 100%; padding: 18px 16px 14px; border-radius: 12px; background: var(--m-bg); box-shadow: 0 0 0 0.5px rgba(0,0,0,.18), 0 18px 40px rgba(40,43,45,.22); text-align: center; }
.steps .alert img { width: 56px; height: 56px; margin: 0 auto 10px; }
.steps .alert .a-title { font-size: 13px; font-weight: 700; }
.steps .alert .a-body { font-size: 11px; color: var(--m-sec); margin-top: 6px; line-height: 1.35; }
.steps .alert .a-buttons { display: flex; gap: 8px; margin-top: 14px; }
.steps .alert .a-buttons .btn { flex: 1; min-height: 24px; }
.steps .settings { width: 100%; max-width: 360px; height: 230px; display: grid; grid-template-columns: 112px minmax(0, 1fr); border-radius: 12px; overflow: hidden; background: var(--m-bg); box-shadow: 0 0 0 0.5px rgba(0,0,0,.18), 0 18px 40px rgba(40,43,45,.18); font-size: 11px; }
.steps .settings .s-side { background: var(--m-sidebar); padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; }
.steps .settings .s-search { display: flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 6px; background: var(--m-control); color: var(--m-ter); margin-bottom: 8px; }
.steps .settings .s-search svg { width: 10px; height: 10px; }
.steps .settings .s-item { padding: 4px 7px; border-radius: 5px; color: var(--m-text); }
.steps .settings .s-item.on { background: var(--m-accent); color: var(--m-accent-fg); }
.steps .settings .s-main { padding: 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.steps .settings .s-h { font-weight: 700; font-size: 12px; margin-bottom: 2px; }
.steps .settings .s-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; background: var(--m-card); border-radius: 8px; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,.08); }
.steps .settings .s-pop { min-width: 0; overflow: hidden; text-overflow: ellipsis; padding: 2px 6px; border-radius: 5px; background: var(--m-control); box-shadow: 0 0 0 0.5px rgba(0,0,0,.18); white-space: nowrap; font-size: 10px; }
.steps .settings .s-blocked { flex-wrap: wrap; }
.steps .settings .s-blocked > span:first-child { flex: 1 1 120px; }
.steps li .t { position: relative; padding-left: 2.2rem; }
.steps li .t::before { content: counter(step); position: absolute; left: 0; top: 0.2em; font-family: var(--mono); font-size: 0.85rem; color: var(--accent-text); }
.steps li .t strong { display: block; font-weight: 500; }
.steps li .t span { display: block; color: var(--fg-soft); font-size: 0.95rem; margin-top: 2px; }
.steps .once { margin-top: 1.5rem; font-size: 0.95rem; color: var(--fg-soft); }
@media (max-width: 920px) {
  .install .head { grid-template-columns: 1fr; }
  .steps ol { grid-template-columns: minmax(0, 1fr); }
  .install .download { flex-wrap: wrap; }
  .install .download .button { margin-left: 0; }
}

/* ---- FAQ ---- */
.faq { padding: clamp(56px, 8vw, 120px) 0; }
.faq .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq h2 { font-size: clamp(1.9rem, 3.2vw, 2.75rem); margin-top: 0.75rem; }
.faq .copy p { margin-top: 1.1rem; color: var(--fg-soft); max-width: 28rem; }
.faq-art { position: relative; display: flex; align-items: flex-end; gap: 2px; width: max-content; margin-top: 2.5rem; padding: 0 12px 10px; }
/* Feet and pot on the line: the loft's soles sit 6.55% of its width above its drawing's bottom, the pot 7.14%. */
.faq-art .n { --w: 128px; width: var(--w); height: auto; margin-bottom: calc(var(--w) * -0.0655); }
.faq-art .planter { --w: 56px; width: var(--w); height: auto; margin-bottom: calc(var(--w) * -0.0714); }
.faq-art::after {
  content: ""; position: absolute; left: -14%; right: -14%; bottom: -6.4px; height: 22px; background: var(--fg); pointer-events: none;
  -webkit-mask: var(--rough-ground) -150px 0 / 560px 22px repeat-x, linear-gradient(to right, transparent, #000 22%, #000 78%, transparent);
  -webkit-mask-composite: source-in;
  mask: var(--rough-ground) -150px 0 / 560px 22px repeat-x, linear-gradient(to right, transparent, #000 22%, #000 78%, transparent);
  mask-composite: intersect;
}
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 0; font-size: 1.125rem; font-weight: 500; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--fg-soft); font-size: 1.1rem; flex: 0 0 auto; transition: transform 200ms ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.25rem; color: var(--fg-soft); max-width: 40rem; }
.faq details p + p { margin-top: 0; padding-top: 0; }
.faq details p strong { color: var(--fg); font-weight: 500; }
@media (max-width: 920px) {
  .faq .wrap { grid-template-columns: 1fr; }
  .faq .faq-art { display: none; }
}

/* ---- Footer ---- */
footer.site { background: var(--foot-bg); color: var(--chalk); padding: 48px 0 40px; }
footer.site .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: start; }
footer.site .logo svg, footer.site .logo img { height: 24px; width: auto; }
footer.site p { margin-top: 14px; color: rgba(239, 236, 229, 0.62); font-size: 0.925rem; max-width: 30rem; }
footer.site nav { display: grid; grid-template-columns: auto; gap: 8px 40px; font-size: 0.95rem; }
footer.site nav a { color: rgba(239, 236, 229, 0.82); text-decoration: none; }
footer.site nav a:hover { color: var(--chalk); text-decoration: underline; }
footer.site .credits { margin-top: 8px; }
footer.site .credits a { color: rgba(239, 236, 229, 0.86); text-underline-offset: 3px; }
footer.site .credits a:hover { color: var(--chalk); }
footer.site .fine { grid-column: 1 / -1; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--ink-line); font-size: 0.8rem; color: rgba(239, 236, 229, 0.5); max-width: none; }
@media (max-width: 640px) {
  footer.site .wrap { grid-template-columns: 1fr; }
}

/* ---- Video block ---- */
.film { padding: 0 0 clamp(40px, 6vw, 80px); }
.film .frame { position: relative; border-radius: 14px; overflow: hidden; background: var(--ink); border: 1px solid var(--line); aspect-ratio: 16 / 9; }
.film video { width: 100%; height: 100%; object-fit: cover; }
.film .play { position: absolute; inset: 0; display: grid; place-items: center; background: transparent; border: 0; cursor: pointer; padding: 0; }
.film .play span { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: var(--chalk); color: var(--ink); font: 500 0.95rem var(--sans); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.film .play svg { width: 14px; height: 14px; }
.film .frame.playing .play { display: none; }
.film .caption { margin-top: 12px; font-size: 0.9rem; color: var(--fg-soft); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---- Security page ---- */
.doc { padding: clamp(48px, 7vw, 96px) 0; }
.doc .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.doc aside { position: sticky; top: 96px; }
.doc aside h1 { font-size: clamp(2rem, 3.5vw, 3rem); margin-top: 0.75rem; }
.doc aside p { margin-top: 1rem; color: var(--fg-soft); }
.doc aside .button { margin-top: 1.5rem; }
.doc article h2 { font-size: 1.5rem; margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.doc article h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc article p { margin-top: 0.9rem; color: var(--fg-soft); max-width: 42rem; }
.doc article p strong { color: var(--fg); font-weight: 500; }
.doc article table { width: 100%; border-collapse: collapse; margin-top: 1.25rem; font-size: 0.95rem; }
.doc article th, .doc article td { text-align: left; vertical-align: top; padding: 0.8rem 0.9rem 0.8rem 0; border-bottom: 1px solid var(--line); }
.doc article th { font-weight: 500; font-size: 0.8rem; font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-soft); }
.doc article td { color: var(--fg-soft); }
.doc article td:first-child { color: var(--fg); font-weight: 500; white-space: nowrap; }
.doc article ul { margin: 0.9rem 0 0; padding-left: 1.2rem; color: var(--fg-soft); max-width: 42rem; }
.doc article li + li { margin-top: 0.4rem; }
@media (max-width: 820px) {
  .doc .wrap { grid-template-columns: 1fr; }
  .doc aside { position: static; }
  .doc article td:first-child { white-space: normal; }
}

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

/* Showcases scale up on wide screens instead of floating in empty space. */
@media (min-width: 1280px) {
  .feature .show > figure > .mac, .feature .show > .pair .mac, .feature .show-centre .mac { zoom: 1.1; }
  .feature.wide .show > figure > .mac { zoom: 1; }
}
@media (min-width: 1480px) {
  .feature .show > figure > .mac, .feature .show > .pair .mac, .feature .show-centre .mac { zoom: 1.18; }
  .feature.wide .show > figure > .mac { zoom: 1.06; }
}

/* Theme toggle */
.theme-toggle { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--fg); cursor: pointer; padding: 0; }
.theme-toggle:hover { background: var(--hover); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: var(--show-day); }
.theme-toggle .sun { display: var(--show-night); }
.top .theme-toggle { margin-left: 4px; }
@media (max-width: 820px) { .top .theme-toggle { margin-left: auto; } }
.top .button { white-space: nowrap; }
@media (max-width: 480px) {
  .top .wrap { gap: 12px; }
  .top .button { padding: 0.6rem 0.8rem; }
  .top .button svg { display: none; }
}

/* ---- In situ: the app on a Mac desktop ----
   Each product figure sits on a crop of the same wallpaper, the way it would on your screen.
   Popovers and panels hang under a menu bar strip; windows float with macOS shadows. */
.desk {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(22px, 3.2vw, 44px);
  border-radius: 16px;
  background: var(--wall) var(--wall-pos, 50% 70%) / cover;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  isolation: isolate;
}
.desk.bar { padding-top: calc(26px + clamp(10px, 1.4vw, 18px)); justify-content: flex-end; }
.desk > .mac { min-width: 0; max-width: 100%; }
.desk .desk-bar { position: absolute; inset: 0 0 auto 0; z-index: 2; }
.feature .show-centre .desk, .feature .show > figure > .desk { width: 100%; }

/* Menu bar: full width, translucent, status items on the right. */
.desk-bar.menubar { border: 0; border-radius: 0; height: 26px; gap: 14px; padding: 0 12px; justify-content: flex-end; background: var(--m-menubar); border-bottom: 0.5px solid rgba(0, 0, 0, 0.08); backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6); font-size: 12.5px; }
.desk-bar .mb-apps { margin-right: auto; display: flex; align-items: center; gap: 16px; white-space: nowrap; overflow: hidden; }
.desk-bar .mb-apps b { font-weight: 700; }
.desk-bar .mb-apple { width: 14px !important; height: 14px !important; margin: 0 4px 0 2px; }
.desk-bar svg { width: 15px; height: 15px; }

/* macOS materials: menus and popovers are translucent over the wallpaper. */
.desk .panel, .desk .popover, #hero-demo .panel {
  background: color-mix(in srgb, var(--m-bg) 80%, transparent);
  backdrop-filter: blur(36px) saturate(1.8);
  -webkit-backdrop-filter: blur(36px) saturate(1.8);
}
.desk .window, .desk .panel, .desk .popover, #hero-demo .panel {
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.22), inset 0 0 0 0.5px rgba(255, 255, 255, 0.35), 0 10px 24px rgba(0, 0, 0, 0.12), 0 28px 70px rgba(0, 0, 0, 0.22);
}
:root[data-theme="dark"] .desk .window, :root[data-theme="dark"] .desk .panel, :root[data-theme="dark"] .desk .popover, :root[data-theme="dark"] #hero-demo .panel {
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.8), inset 0 0 0 0.5px rgba(255, 255, 255, 0.14), 0 28px 70px rgba(0, 0, 0, 0.5);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .desk .window, :root:not([data-theme="light"]) .desk .panel, :root:not([data-theme="light"]) .desk .popover, :root:not([data-theme="light"]) #hero-demo .panel {
    box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.8), inset 0 0 0 0.5px rgba(255, 255, 255, 0.14), 0 28px 70px rgba(0, 0, 0, 0.5);
  }
}

/* ---- Characters ----
   Outlines and limbs are ink by day and chalk at night; eyes, mouths and body colours never change. */
.art .a-ol { stroke: var(--art-ol); }
.art .a-inkbody { stroke: var(--art-inkbody); }
.art { overflow: visible; }

/* Everyone blinks, each on their own clock. */
.art .a-eye { transform-box: fill-box; transform-origin: 50% 50%; animation: blink var(--blink, 6.8s) ease-in-out infinite; }
.art .a-eye-b { animation-duration: calc(var(--blink, 6.8s) * 1.17); animation-delay: -2.4s; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.1); } }

/* Hero: the clay studio waves now and then. */
.art-neighbour-clay .a-arm-right, .art-neighbour-clay .a-hand { transform-box: view-box; transform-origin: 329px 247px; animation: wave 9s ease-in-out 2.4s infinite; }
@keyframes wave { 0%, 70%, 100% { rotate: 0deg; } 74% { rotate: -9deg; } 78% { rotate: 3deg; } 82% { rotate: -7deg; } 86% { rotate: 0deg; } }

/* Wake a neighbour: a knock, the window lights, eyes open; later it dozes off again. */
.art-scene-wake .a-knock-arm { transform-box: view-box; transform-origin: 321px 197px; animation: knock 8s ease-in-out infinite; }
@keyframes knock { 0%, 8%, 22%, 100% { rotate: 0deg; } 10.5% { rotate: 4deg; } 13% { rotate: -3deg; } 15.5% { rotate: 4deg; } 18% { rotate: -2deg; } }
.art-scene-wake .a-eye-b { animation: wake-eyes 8s ease-in-out infinite; }
@keyframes wake-eyes { 0%, 20% { transform: scaleY(0.14); } 26%, 60% { transform: scaleY(1); } 61.5% { transform: scaleY(0.1); } 63%, 86% { transform: scaleY(1); } 94%, 100% { transform: scaleY(0.14); } }
.art-scene-wake .a-warm-light { animation: wake-light 8s ease-in-out infinite; }
@keyframes wake-light { 0%, 19% { opacity: 0.1; } 26%, 86% { opacity: 1; } 96%, 100% { opacity: 0.1; } }

/* A helping hand: the loft gives the wrench a couple of turns. */
.art-scene-helping .a-helping-arm, .art-scene-helping .a-helping-tool { transform-box: view-box; transform-origin: 168px 212px; animation: turn 6s ease-in-out infinite; }
@keyframes turn { 0%, 55%, 100% { rotate: 0deg; } 62% { rotate: -5deg; } 69% { rotate: 1deg; } 76% { rotate: -4deg; } 84% { rotate: 0deg; } }

/* Signed delivery: the origin trail walks from the folder to its reader. */
.art-scene-delivery .a-origin-trail path { animation: trail 2.4s linear infinite; }
@keyframes trail { to { stroke-dashoffset: -13; } }

/* Inside the courtyard: the latch lifts, the gate slides open, the signal blinks, and it closes again. */
.art-scene-gate .a-gate-panel { animation: gate 7s ease-in-out infinite; }
@keyframes gate { 0%, 17% { translate: 0 0; } 28%, 63% { translate: -38px 0; } 75%, 100% { translate: 0 0; } }
.art-scene-gate .a-gate-latch { transform-box: fill-box; transform-origin: 50% 50%; animation: latch 7s ease-in-out infinite; }
@keyframes latch { 0%, 11%, 25%, 100% { rotate: 0deg; } 16%, 21% { rotate: -12deg; } }
.art-scene-gate .a-local-signal { animation: signal 7s ease-in-out infinite; }
@keyframes signal { 0%, 27% { opacity: 0.25; } 34% { opacity: 1; } 42% { opacity: 0.35; } 49% { opacity: 1; } 58% { opacity: 0.35; } 72%, 100% { opacity: 0.25; } }

/* Moving in: the new neighbour arrives once, the first time you see it. */
.js .art-scene-moving .a-moving-neighbour { animation: move-in 1.3s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both; }
@keyframes move-in { from { translate: 26px 0; opacity: 0; } to { translate: 0 0; opacity: 1; } }

/* Only animate what's on screen. */
.js .art:not(.inview) *, .js .art:not(.inview) { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .art *, .art { animation: none !important; }
}
.desktop .term .titlebar .t, .desktop .browser .titlebar .t { padding: 0 12px 0 72px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- Hand-drawn lines ----
   A few rough pen lines to loosen the grid: the ground the characters stand on, and the breaks between
   the big sections. Lists, tables and the app mock-ups keep their straight rules. */
:root {
  --rough-rule: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='720' height='18' viewBox='0 0 720 18'%3E%3Cpath d='M-2 9.4C58 8.1 118 10.6 182 9.5S292 7.2 356 8.6 470 11 540 9.1 660 7.9 722 9.4' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M402 10.6c22 .6 41 .2 58-.9' fill='none' stroke='black' stroke-width='1' stroke-linecap='round' opacity='.6'/%3E%3C/svg%3E");
  --rough-ground: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='22' viewBox='0 0 560 22'%3E%3Cpath d='M-2 6.6C88 4.6 172 8.4 262 6.8S438 4.9 562 6.6' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round'/%3E%3Cpath d='M118 10l-7 7M392 10.5l6 7' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' opacity='.75'/%3E%3C/svg%3E");
  --rough-ink: color-mix(in srgb, var(--fg) 28%, transparent);
}

/* Section breaks */
.problem, .features, .feature, .install { position: relative; }
.problem { border-top: 0; }
.features { border-top: 0; }
.feature { border-bottom: 0; }
.install { border-bottom: 0; }
.problem::before, .features::before, .feature:not(:last-child)::after, .install::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 18px;
  background: var(--rough-ink);
  -webkit-mask: var(--rough-rule) var(--rough-x, 0) 50% / 720px 18px repeat-x;
  mask: var(--rough-rule) var(--rough-x, 0) 50% / 720px 18px repeat-x;
  pointer-events: none;
}
.problem::before, .features::before { top: -9px; }
.feature:not(:last-child)::after, .install::after { bottom: -9px; }
.features::before { --rough-x: -260px; }
.feature:nth-of-type(2)::after { --rough-x: -130px; }
.feature:nth-of-type(3)::after { --rough-x: -470px; }
.feature:nth-of-type(4)::after { --rough-x: -340px; }
.feature:nth-of-type(5)::after { --rough-x: -590px; }
.install::after { --rough-x: -60px; }

/* The ground under each scene, fading out at both ends. */
.vignette:not(.gate) { position: relative; }
.vignette:not(.gate)::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  /* The line's centre runs 1px under the lowest soles, which sit --sole of the way up from the drawing's bottom. */
  bottom: calc(var(--sole, 0.07) * 100% - 16.4px);
  height: 22px;
  background: var(--fg);
  -webkit-mask: var(--rough-ground) var(--rough-x, -40px) 0 / 560px 22px repeat-x, linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-composite: source-in;
  mask: var(--rough-ground) var(--rough-x, -40px) 0 / 560px 22px repeat-x, linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
  mask-composite: intersect;
  pointer-events: none;
}
.vignette:nth-of-type(odd)::after { --rough-x: -230px; }
.vignette:has(.art-scene-find) { --sole: 0.0679; }
.vignette:has(.art-scene-delivery) { --sole: 0.0634; }
.vignette:has(.art-scene-wake) { --sole: 0.0817; }
.vignette:has(.art-scene-helping) { --sole: 0.0838; }
.vignette:has(.art-scene-open-next-door) { --sole: 0.1033; }
/* Moving in stands on the download card itself. */
.install .get .vignette::after { display: none; }

/* ---- Not found ---- */
/* ---- Release notes ----
   The doc layout, one release per section. Releases are parted by the rough pen line; the groups inside
   keep quiet small-caps labels so a long release still scans. */
.releases .follow { font-size: 0.95rem; }
.releases .follow a, .release a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 0.2em; }
.releases .follow a:hover, .release a:hover { text-decoration-color: currentColor; }
.release { position: relative; scroll-margin-top: 96px; }
.release + .release { margin-top: 3.5rem; padding-top: 3rem; }
.release + .release::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 0;
  right: 0;
  height: 18px;
  background: var(--rough-ink);
  -webkit-mask: var(--rough-rule) -210px 50% / 720px 18px repeat-x;
  mask: var(--rough-rule) -210px 50% / 720px 18px repeat-x;
  pointer-events: none;
}
.release header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1rem; }
.doc .release h2 { margin: 0; padding: 0; border: 0; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.release h2 a { text-decoration: none; }
.release h2 a:hover { text-decoration: underline; text-decoration-color: var(--line); }
.doc article .release .when { margin: 0; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.04em; color: var(--fg-soft); }
.release .latest {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-text) 14%, transparent);
  color: var(--accent-text);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.doc article .release .summary { margin-top: 1rem; font-size: 1.1rem; color: var(--fg); }
.release h3 {
  margin-top: 1.9rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.doc article .release h3 + ul { margin-top: 0.6rem; }
.doc article .release > p:last-child { margin-top: 2rem; font-size: 0.95rem; }

.lost { padding: clamp(64px, 10vw, 140px) 0; }
.lost .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.lost .faq-art { margin: 0 0 2.5rem; }
.lost h1 { font-size: clamp(2.2rem, 4.6vw, 4rem); margin-top: 0.75rem; max-width: 16ch; }
.lost p:not(.eyebrow) { margin-top: 1rem; color: var(--fg-soft); max-width: var(--measure); }
.lost .button { margin-top: 2rem; }

/* ---- Contact ---- */
.contact { padding: clamp(56px, 8vw, 120px) 0; position: relative; }
.contact::before { content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 18px; background: var(--rough-ink); -webkit-mask: var(--rough-rule) -380px 50% / 720px 18px repeat-x; mask: var(--rough-rule) -380px 50% / 720px 18px repeat-x; pointer-events: none; }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.contact h2 { font-size: clamp(1.9rem, 3.2vw, 2.75rem); margin-top: 0.75rem; }
.contact .copy > p { margin-top: 1.1rem; color: var(--fg-soft); max-width: 30rem; }
.contact-form { display: flex; flex-direction: column; gap: 18px; padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.contact-form legend { font-size: 0.9rem; color: var(--fg-soft); margin-bottom: 8px; padding: 0; }
.contact-form .topic label { position: relative; }
.contact-form .topic input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.contact-form .topic span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.95rem; cursor: pointer; transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease; }
.contact-form .topic input:checked + span { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.contact-form .topic input:focus-visible + span { outline: 2px solid var(--clay); outline-offset: 2px; }
.contact-form .pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.contact-form .field { display: flex; flex-direction: column; gap: 7px; font-size: 0.95rem; }
.contact-form .field[hidden] { display: none; }
.contact-form .field em { font-style: normal; color: var(--fg-soft); font-size: 0.85rem; margin-left: 4px; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
  font: inherit; font-size: 1rem; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; width: 100%;
}
.contact-form textarea { resize: vertical; min-height: 140px; line-height: 1.45; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--fg-soft); opacity: 0.7; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--clay); outline-offset: 1px; border-color: transparent; }
.contact-form .send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
.contact-form .send .button { cursor: pointer; font-family: inherit; }
.contact-form .send .button:disabled { opacity: 0.6; cursor: progress; }
.contact-form .note { font-size: 0.85rem; color: var(--fg-soft); max-width: 26rem; }
.contact-form .status { margin: 0; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--clay) 14%, transparent); color: var(--fg); font-size: 0.95rem; }
.contact-form .status.ok { background: color-mix(in srgb, var(--sage) 26%, transparent); }
@media (max-width: 920px) {
  .contact .wrap { grid-template-columns: minmax(0, 1fr); }
}
.lost .vignette { margin: 0 0 2rem; max-width: 360px; }
