/* Sundry Mill · sundrymill.com
   Paper and ink from the intro, night for the dark variant, and each app scene in
   its own site's colours. Phone first: every rule is written for 390 px and the
   wider layouts are additions. */

@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/Fraunces-Variable-latin.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('/fonts/Satoshi-Variable.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
/* Metric matched stand ins, so the swap does not shove the layout about */
@font-face { font-family: 'Fraunces Fallback'; src: local('Georgia'); size-adjust: 103%; ascent-override: 96%; descent-override: 25%; }
@font-face { font-family: 'Satoshi Fallback'; src: local('Arial'); size-adjust: 99%; ascent-override: 100%; descent-override: 24%; }

/* ------------------------------------------------------------------ tokens */
:root {
  color-scheme: light;
  --paper: #FDF9F1;
  --paper-2: #F4E7D2;
  --text: #17202C;
  --text-2: #3D4755;
  --text-3: #57606C;
  --line: rgba(23, 32, 44, .16);
  --line-strong: rgba(23, 32, 44, .92);
  --field: #FFFDF8;
  --accent-text: #A8430B;
  --focus: #E8631A;

  /* the mill */
  --mill-ink: #17202C;
  --rim: rgba(255, 216, 150, 0);
  --sun-hot: #FF7A2F;
  --sun-mid: #FFB23F;
  --sun-pale: #FFDD9B;
  --glow: rgba(255, 168, 60, .55);

  --display: 'Fraunces', 'Fraunces Fallback', Georgia, serif;
  --sans: 'Satoshi', 'Satoshi Fallback', 'Segoe UI', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --ease: cubic-bezier(.05, .7, .1, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --bar-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0B1120;
    --paper-2: #141E33;
    --text: #F2EADC;
    --text-2: #CFC7B9;
    --text-3: #A9A194;
    --line: rgba(242, 234, 220, .16);
    --line-strong: rgba(242, 234, 220, .58);
    --field: #0F172A;
    --accent-text: #FFB26B;
    --focus: #FFB23F;
    --mill-ink: #05090F;
    --rim: rgba(255, 206, 140, .62);
    --sun-hot: #FF8437;
    --sun-mid: #FFBC55;
    --sun-pale: #FFE2AE;
    --glow: rgba(255, 150, 60, .45);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0B1120;
  --paper-2: #141E33;
  --text: #F2EADC;
  --text-2: #CFC7B9;
  --text-3: #A9A194;
  --line: rgba(242, 234, 220, .16);
  --line-strong: rgba(242, 234, 220, .58);
  --field: #0F172A;
  --accent-text: #FFB26B;
  --focus: #FFB23F;
  --mill-ink: #05090F;
  --rim: rgba(255, 206, 140, .62);
  --sun-hot: #FF8437;
  --sun-mid: #FFBC55;
  --sun-pale: #FFE2AE;
  --glow: rgba(255, 150, 60, .45);
}

/* The night palette is also the footer's, in either theme */
.foot, [data-tone="night"] {
  --paper: #0B1120;
  --paper-2: #141E33;
  --text: #F2EADC;
  --text-2: #CFC7B9;
  --text-3: #A9A194;
  --line: rgba(242, 234, 220, .16);
  --line-strong: rgba(242, 234, 220, .58);
  --mill-ink: #05090F;
  --rim: rgba(255, 206, 140, .62);
  --sun-hot: #FF8437;
  --sun-mid: #FFBC55;
  --sun-pale: #FFE2AE;
  --glow: rgba(255, 150, 60, .45);
  --focus: #FFB23F;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html:not(.lenis) { scroll-behavior: smooth; } }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--bar-h) + 16px); }
::selection { background: var(--sun-mid); color: #17202C; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100; padding: 12px 16px;
  background: var(--text); color: var(--paper); border-radius: 8px; font-weight: 700;
  transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip:focus { transform: none; }

/* Grain: one generated tile, laid over everything, never in the way */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.09 0 0 0 0 0.12 0 0 0 0 0.17 0 0 0 1.6 -0.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .grain { mix-blend-mode: screen; opacity: .05; } }
:root[data-theme="dark"] .grain { mix-blend-mode: screen; opacity: .05; }

/* ------------------------------------------------------------------ buttons */
.btn {
  --b-bg: var(--text); --b-fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 12px 22px;
  background: var(--b-bg); color: var(--b-fg);
  border: 2px solid var(--b-bg); border-radius: 12px;
  font: 700 1rem/1.1 var(--sans); letter-spacing: -.005em; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .2s, color .2s, box-shadow .25s var(--ease);
}
.btn span[aria-hidden] { transition: transform .3s var(--ease); display: inline-block; }
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(0,0,0,.45); }
.btn:hover span[aria-hidden] { transform: translate(3px, -1px); }
.btn:active { transform: translateY(0); }
.btn--ink { --b-bg: var(--text); --b-fg: var(--paper); }
.btn--line { --b-bg: transparent; --b-fg: var(--text); }
.btn--accent { --b-bg: var(--accent); --b-fg: var(--on-accent, #fff); }
.btn--sun { --b-bg: #FFB23F; --b-fg: #17202C; }
.btn--big { min-height: 60px; padding: 16px 28px; font-size: 1.125rem; border-radius: 14px; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.eyebrow {
  font: 700 .875rem/1.2 var(--sans); letter-spacing: .01em; color: var(--accent-text);
  display: inline-flex; align-items: center; gap: .6em; margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 22px; height: 3px; border-radius: 2px; background: var(--sun-hot); }

/* ------------------------------------------------------------------ top bar */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--bar-h);
  display: flex; align-items: center; gap: 4px;
  padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
  color: var(--text);
  isolation: isolate;
  transition: color .3s, transform .45s var(--ease);
}
.bar::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  -webkit-mask: linear-gradient(#000 70%, transparent); mask: linear-gradient(#000 70%, transparent);
  opacity: 0; transition: opacity .3s;
}
.bar[data-scrolled]::after { opacity: 1; }
.bar[data-tone="dark"] { color: #F5F2EC; }
.bar[data-tone="dark"]::after { background: rgba(8, 10, 14, .62); }
.bar[data-tone="night"] { color: #F2EADC; }
.bar[data-tone="night"]::after { background: rgba(11, 17, 32, .7); }
.bar[data-tone="light"] { color: #14152a; }
.bar[data-tone="light"]::after { background: rgba(255, 255, 255, .72); }
.bar[data-hidden] { transform: translateY(-100%); }

.bar-home {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  text-decoration: none; margin-right: auto; padding-right: 8px;
}
.bar-mark { width: 38px; height: 38px; flex: none; transition: opacity .4s, transform .5s var(--ease); }
.bar-mark .mill { width: 100%; height: 100%; }
.bar-word {
  font: 600 .9375rem/1 var(--display); letter-spacing: .2em; text-transform: uppercase;
  font-variation-settings: 'opsz' 24;
  transition: opacity .4s;
}
/* on the home page the big mill is the logo until it scrolls away */
[data-page="index"] .bar:not([data-docked]) .bar-mark,
[data-page="index"] .bar:not([data-docked]) .bar-word { opacity: 0; transform: translateY(6px) scale(.9); }
html:not(.js) [data-page="index"] .bar .bar-mark,
html:not(.js) [data-page="index"] .bar .bar-word { opacity: 1; transform: none; }

.bar-nav { display: flex; align-items: center; }
.bar-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  font-weight: 600; font-size: .9375rem; text-decoration: none; border-radius: 8px;
  position: relative;
}
.bar-nav a::after {
  content: ''; position: absolute; left: 10px; right: 10px; bottom: 9px; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.bar-nav a:hover::after, .bar-nav a[aria-current]::after { transform: scaleX(1); }

.bar-theme {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center;
  background: none; border: 0; border-radius: 50%; cursor: pointer; color: inherit;
}
.bar-theme svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.bar-theme .t-moon { display: none; }
.bar-theme:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .bar-theme .t-moon { display: block; }
  :root:not([data-theme="light"]) .bar-theme .t-sun { display: none; }
}
:root[data-theme="dark"] .bar-theme .t-moon { display: block; }
:root[data-theme="dark"] .bar-theme .t-sun { display: none; }

@media (max-width: 459px) {
  .bar-word { display: none; }
}

/* The phone menu. Under 760 px the six links do not fit beside the theme
   switch, so one Menu button opens them as a panel under the bar. It is a
   disclosure (aria-expanded on the button, the nav is the panel), drawn over
   the page so nothing below moves. html.js is set in the head before the first
   paint, so the button never pops in. With no script the links stay in the bar
   as a strip that scrolls sideways, and the theme switch (which needs script)
   steps aside for them. */
.bar-menu { display: none; }
@media (max-width: 759px) {
  .js .bar-menu {
    display: inline-flex; align-items: center; gap: 9px; flex: none;
    min-height: 44px; padding: 0 14px 0 12px; margin-right: 2px;
    font: 600 .9375rem/1 var(--sans); color: inherit;
    background: none; border: 0; border-radius: 22px; cursor: pointer;
  }
  .js .bar-menu:hover,
  .js .bar-menu[aria-expanded="true"] { background: color-mix(in srgb, currentColor 10%, transparent); }
  .bar-menu-icon { position: relative; display: block; width: 18px; height: 12px; }
  .bar-menu-icon i {
    position: absolute; left: 0; right: 0; height: 2px; border-radius: 1px; background: currentColor;
    transition: transform .35s var(--ease), opacity .2s;
  }
  .bar-menu-icon i:nth-child(2) { top: 5px; }
  .bar-menu-icon i:nth-child(3) { top: 10px; }
  .bar-menu[aria-expanded="true"] .bar-menu-icon i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .bar-menu[aria-expanded="true"] .bar-menu-icon i:nth-child(2) { opacity: 0; }
  .bar-menu[aria-expanded="true"] .bar-menu-icon i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

  .js .bar-nav {
    position: absolute; top: calc(var(--bar-h) - 4px);
    right: max(var(--gutter), env(safe-area-inset-right));
    width: min(300px, calc(100vw - 2 * var(--gutter)));
    flex-direction: column; align-items: stretch; padding: 8px;
    color: var(--text); background: var(--paper);
    border: 1px solid var(--line); border-radius: 18px;
    box-shadow: 0 24px 48px -16px rgba(11, 17, 32, .32), 0 2px 6px rgba(11, 17, 32, .06);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .18s, transform .3s var(--ease), visibility 0s linear .3s;
  }
  .js .bar[data-menu-open] .bar-nav {
    visibility: visible; opacity: 1; transform: none;
    transition: opacity .18s, transform .3s var(--ease), visibility 0s;
  }
  .js .bar-nav a { min-height: 48px; padding: 0 14px; font-size: 1.0625rem; border-radius: 10px; }
  .js .bar-nav a + a { margin-top: 2px; }
  .js .bar-nav a::after { left: 14px; right: auto; width: 20px; bottom: 10px; background: var(--sun-hot); }
  .js .bar-nav a:hover { background: color-mix(in srgb, var(--text) 7%, transparent); }
  .js .bar-nav a[aria-current] { color: var(--accent-text); }

  html:not(.js) .bar-theme { display: none; }
  html:not(.js) .bar-nav { min-width: 0; overflow-x: auto; scrollbar-width: none; }
  html:not(.js) .bar-nav::-webkit-scrollbar { display: none; }
  html:not(.js) .bar-nav a { flex: none; padding: 0 8px; }
  html:not(.js) .bar-nav a::after { left: 8px; right: 8px; }
}
@media (max-width: 759px) and (prefers-reduced-motion: reduce) {
  .js .bar-nav, .js .bar[data-menu-open] .bar-nav, .bar-menu-icon i { transition: none; }
  .js .bar-nav { transform: none; }
}
@media (max-width: 759px) and (prefers-color-scheme: dark) {
  :root.js:not([data-theme="light"]) .bar-nav { box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .6); }
}
@media (max-width: 759px) {
  :root.js[data-theme="dark"] .bar-nav { box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .6); }
}

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--bar-h) + 8px) var(--gutter) max(28px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  overflow: clip;
}
.hero-stage { display: flex; justify-content: center; flex: 1 1 auto; align-items: flex-end; min-height: 0; }
.mill--hero {
  height: min(58svh, calc(135vw * .8));
  width: auto; max-width: none;
  overflow: visible;
}
.hero-horizon {
  height: 8px; border-radius: 4px; background: var(--line-strong);
  transform-origin: 50% 50%;
  margin-top: -4px;
  position: relative; z-index: 1;
}
.hero-word {
  margin: 18px 0 0;
  text-align: center;
  font: 600 clamp(1.9rem, .45rem + 7.3vw, 8rem)/1 var(--display);
  font-variation-settings: 'opsz' 144;
  letter-spacing: .22em;
  margin-right: -.22em; /* the tracking after the last letter would pull the word off centre */
  text-transform: uppercase;
  overflow: clip; padding-bottom: .06em;
}
.hero-word .lockup { display: inline-block; }
.hero-line {
  max-width: 34ch; margin: 22px auto 0; text-align: center;
  font: 500 clamp(1.125rem, .95rem + .7vw, 1.5rem)/1.45 var(--sans);
  color: var(--text-2); text-wrap: balance;
}
.hero-cue {
  align-self: center; margin-top: 26px;
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 6px;
  font-weight: 700; font-size: .9375rem; text-decoration: none; color: var(--text);
}
.hero-cue svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  .hero-cue svg { animation: cue 2.4s var(--ease-io) infinite; }
}
@keyframes cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* before the intro runs, the parts it reveals start hidden (JS and motion only) */
html.js:not(.reduced) .hero:not(.is-live) [data-horizon] { transform: scaleX(0); }
html.js:not(.reduced) .hero:not(.is-live) [data-cue] { opacity: 0; }
html.js:not(.reduced) .hero:not(.is-live) .lockup { opacity: 0; }

.apps-anchor { height: 0; }

/* ------------------------------------------------------------------ scenes */
.scene {
  --bg: #000; --fg: #fff; --fg-2: rgba(255,255,255,.72); --accent: #2f7bff; --on-accent: #fff;
  position: relative;
  background: var(--bg); color: var(--fg);
  padding: clamp(88px, 12vw, 180px) var(--gutter) clamp(72px, 10vw, 160px);
  overflow: clip;
  --focus: var(--accent);
}
.scene--framok { --bg: #000; --fg: #f5f5f7; --fg-2: rgba(245,245,247,.72); --accent: #2f7bff; --accent-2: #6aa2ff; --on-accent: #fff; }
/* framok.com's blue, one step deeper under white text so the button passes 4.5:1 */
.scene--framok .btn--accent { --b-bg: #1d62dc; }
.scene--qulok  { --bg: #0b0d10; --fg: #f2f4f7; --fg-2: #a9b2c1; --accent: #f0b76a; --accent-2: #f8cf8f; --on-accent: #1a1206; }
.scene--novrl  { --bg: #f7f7fb; --fg: #14152a; --fg-2: #43455c; --accent: #5b4bff; --accent-2: #4535e0; --on-accent: #fff; }
/* thumpkin.com's night and sun, lullpane.com's ink and lilac */
.scene--thumpkin { --bg: #0B1120; --fg: #FDF9F1; --fg-2: rgba(253,249,241,.72); --accent: #FFB23F; --accent-2: #FF7A2F; --on-accent: #17202C; }
.scene--lullpane { --bg: #0c0b10; --fg: #f4f1ea; --fg-2: #aaa4b6; --accent: #c9b6ff; --accent-2: #ffb59a; --on-accent: #14121b; }
.scene-inner {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "tag" "name" "kind" "media" "copy";
}
.scene-tag { grid-area: tag; font: 700 .875rem/1 var(--sans); color: var(--fg-2); display: flex; align-items: center; gap: 12px; }
.scene-tag span { color: var(--accent); font-variant-numeric: tabular-nums; }
.scene-name {
  grid-area: name;
  font: 800 clamp(5.2rem, 1rem + 20vw, 17.5rem)/.8 var(--display);
  font-variation-settings: 'opsz' 144;
  letter-spacing: -.055em;
  margin: 14px 0 0 -.05em;
  color: var(--fg);
}
.scene-name .char { display: inline-block; }
/* below the fold headlines on the inner pages, until they arrive */
.rise { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.rise.is-in { opacity: 1; transform: none; }
/* on the home page the split reveal takes over; hide only until it starts */
html.js:not(.reduced) .will-reveal:not(.is-in) { visibility: hidden; }
.scene-inner { isolation: isolate; }
.scene-name { position: relative; z-index: 2; color: #fff; mix-blend-mode: difference; pointer-events: none; }
/* the blend works against the scene contents only, so on the light Novrl scene the name starts dark */
.scene--novrl .scene-name { color: #14152a; }
.scene-kind {
  grid-area: kind; margin-top: 16px;
  font: 700 clamp(1.25rem, 1rem + 1.1vw, 1.875rem)/1.2 var(--sans); letter-spacing: -.01em;
  color: var(--accent);
}
.scene-media { grid-area: media; margin: 32px 0 0; position: relative; }
.media-frame {
  position: relative; border-radius: 14px; overflow: hidden;
  background: #111; box-shadow: 0 40px 90px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08);
}
.media-frame video, .media-frame img { width: 100%; height: auto; }
/* eight letters: a step smaller on narrow screens so the name stays on one line */
@media (max-width: 899px) { .scene--thumpkin .scene-name { font-size: clamp(3.6rem, .6rem + 17vw, 17.5rem); } }
/* both names have a p: the line under them clears its descender */
.scene--thumpkin .scene-kind, .scene--lullpane .scene-kind { margin-top: 28px; }
.scene-copy { grid-area: copy; margin-top: 28px; max-width: 40rem; }
.scene-lede { font: 500 clamp(1.125rem, 1rem + .45vw, 1.375rem)/1.5 var(--sans); color: var(--fg); text-wrap: pretty; }
.scene-facts { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.scene-facts li {
  font: 700 .875rem/1 var(--sans); padding: 10px 14px; border-radius: 999px;
  border: 1.5px solid color-mix(in srgb, var(--fg) 26%, transparent); color: var(--fg);
}
.scene-facts li:nth-child(2) { border-style: dashed; color: var(--fg-2); }
/* a row of facts that are all true today: no dashed "coming soon" pill */
.scene-facts--all li:nth-child(2) { border-style: solid; color: var(--fg); }
.scene-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }

.film-toggle {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.film-toggle span { width: 14px; height: 16px; border-left: 4px solid #fff; border-right: 4px solid #fff; }
.film-toggle[data-paused] span { width: 0; height: 0; border: 0; border-left: 14px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 4px; }

/* emblems: the mill reinterpreted in each app's colour */
.scene-emblem { position: absolute; pointer-events: none; z-index: 0; }
.emblem-sails { color: var(--accent); opacity: .16; width: min(150vw, 1500px); aspect-ratio: 1; right: -58vw; top: -18vw; }
.emblem-sails svg { width: 100%; height: 100%; }
.emblem-ring { width: min(120vw, 1100px); aspect-ratio: 1; right: -52vw; top: -10vw; opacity: .22; filter: drop-shadow(0 0 60px rgba(240,183,106,.5)); }
.emblem-ring svg { width: 100%; height: 100%; }
.emblem-pulse { right: -20vw; top: 8vw; width: 90vw; aspect-ratio: 1; }
.emblem-pulse i {
  position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .emblem-pulse i { animation: pulse 6s var(--ease-io) infinite; }
  .emblem-pulse i:nth-child(2) { animation-delay: 2s; }
  .emblem-pulse i:nth-child(3) { animation-delay: 4s; }
}
@keyframes pulse { 0% { transform: scale(.2); opacity: .5; } 100% { transform: scale(1); opacity: 0; } }
/* Thumpkin: a step grid, one bar of sixteen, with the playhead crossing it */
.emblem-pads { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5%; width: min(104vw, 760px); aspect-ratio: 1; right: -44vw; top: -6vw; transform: rotate(-8deg); }
.emblem-pads i { border-radius: 14%; background: var(--accent); opacity: .07; }
.emblem-pads i:nth-child(1), .emblem-pads i:nth-child(7), .emblem-pads i:nth-child(10), .emblem-pads i:nth-child(16) { background: var(--accent-2); opacity: .16; }
@media (prefers-reduced-motion: no-preference) {
  .emblem-pads i:nth-child(1), .emblem-pads i:nth-child(7), .emblem-pads i:nth-child(10), .emblem-pads i:nth-child(16) { animation: pad 2.4s linear infinite; }
  .emblem-pads i:nth-child(7) { animation-delay: .6s; }
  .emblem-pads i:nth-child(10) { animation-delay: 1.2s; }
  .emblem-pads i:nth-child(16) { animation-delay: 1.8s; }
}
@keyframes pad { 0% { opacity: .5; } 22%, 100% { opacity: .16; } }
/* Lullpane: three soft lights from its brand gradient, drifting like one of its wallpapers */
.emblem-drift { inset: 0; overflow: hidden; }
.emblem-drift i { position: absolute; width: min(110vw, 900px); aspect-ratio: 1; border-radius: 50%; opacity: .34; }
.emblem-drift i:nth-child(1) { background: radial-gradient(closest-side, #8a6bff, rgba(138,107,255,0)); right: -40vw; top: -30vw; }
.emblem-drift i:nth-child(2) { background: radial-gradient(closest-side, #ff9ad5, rgba(255,154,213,0)); left: -50vw; top: 30%; opacity: .2; }
.emblem-drift i:nth-child(3) { background: radial-gradient(closest-side, #6fe0cf, rgba(111,224,207,0)); right: -30vw; bottom: -40vw; opacity: .16; }
@media (prefers-reduced-motion: no-preference) {
  .emblem-drift i { animation: drift 22s var(--ease-io) infinite alternate; }
  .emblem-drift i:nth-child(2) { animation-duration: 28s; animation-direction: alternate-reverse; }
  .emblem-drift i:nth-child(3) { animation-duration: 34s; }
}
@keyframes drift { 0% { transform: translate3d(-6%, -4%, 0) scale(1); } 100% { transform: translate3d(8%, 6%, 0) scale(1.12); } }

/* Qulok mode switch */
.seg {
  position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 4px; margin-bottom: 14px; border-radius: 12px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
}
.seg button {
  position: relative; z-index: 1; min-height: 44px; padding: 0 18px;
  background: none; border: 0; border-radius: 9px; cursor: pointer;
  font-weight: 700; font-size: .9375rem; color: var(--fg-2); transition: color .3s;
}
.seg button[aria-selected="true"] { color: var(--on-accent); }
.seg-thumb {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: 9px; background: var(--accent);
  transition: transform .5s var(--ease), width .5s var(--ease);
}
.seg[data-at="1"] .seg-thumb { transform: translateX(100%); }

/* Mac list */
.maclist { margin-top: 22px; border-top: 1px solid color-mix(in srgb, var(--fg) 16%, transparent); padding-top: 6px; }
.maclist summary {
  list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--fg);
}
.maclist summary::-webkit-details-marker { display: none; }
.maclist summary::before {
  content: '+'; width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid currentColor; font-weight: 700; line-height: 1; transition: transform .3s var(--ease);
}
.maclist[open] summary::before { transform: rotate(45deg); }
.maclist-form { padding: 10px 0 4px; }
.maclist-row { display: flex; gap: 8px; flex-wrap: wrap; }
.maclist-row input {
  flex: 1 1 200px; min-width: 0; min-height: 48px; padding: 0 14px; font-size: 16px;
  border-radius: 12px; border: 1.5px solid color-mix(in srgb, var(--fg) 30%, transparent);
  background: color-mix(in srgb, var(--fg) 6%, transparent); color: var(--fg);
}
.maclist-row input::placeholder { color: color-mix(in srgb, var(--fg) 55%, transparent); }
.maclist .check { margin-top: 12px; color: var(--fg-2); }
.field-label { display: block; font-weight: 700; font-size: .875rem; margin-bottom: 8px; color: var(--fg-2); }

/* Novrl demo */
.demo { border-radius: 16px; background: #fff; box-shadow: 0 30px 80px -30px rgba(20,21,42,.35), 0 0 0 1px #e5e5ef; overflow: hidden; }
.demo-chrome { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #f0f0f7; border-bottom: 1px solid #e5e5ef; }
.demo-chrome i { width: 9px; height: 9px; border-radius: 50%; background: #d4d4e0; }
.demo-chrome span { margin-left: 10px; font-size: .8125rem; color: #555870; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-stage { position: relative; }
.demo-shot { width: 100%; height: auto; transition: opacity .25s; }
.demo-shot[data-swapping] { opacity: .3; }
.demo-hot {
  position: absolute; min-width: 44px; min-height: 44px;
  transform: translate(-50%, -50%);
  background: none; border: 0; padding: 0; cursor: pointer; border-radius: 12px;
}
.demo-hot::before {
  content: ''; position: absolute; inset: -4px; border-radius: 12px;
  border: 3px solid var(--accent); box-shadow: 0 0 0 4px rgba(91,75,255,.18);
}
@media (prefers-reduced-motion: no-preference) {
  .demo-hot::after {
    content: ''; position: absolute; inset: -4px; border-radius: 14px; border: 2px solid var(--accent);
    animation: hot 1.8s var(--ease) infinite;
  }
}
@keyframes hot { from { transform: scale(1); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
.demo-tip {
  background: #14152a; color: #fff; padding: 14px 16px 16px;
}
.demo-tip-step { font-size: .75rem; font-weight: 700; color: #b9b2ff; }
.demo-tip-title { font-weight: 800; margin-top: 4px; }
.demo-tip-text { color: rgba(255,255,255,.82); font-size: .9375rem; margin-top: 2px; }
.demo-cap { padding: 12px 16px; font-size: .875rem; color: #43455c; background: #fbfbfe; border-top: 1px solid #e5e5ef; }

/* ------------------------------------------------------------------ free tools */
.tools {
  padding: clamp(80px, 11vw, 160px) var(--gutter) clamp(60px, 8vw, 120px);
  background: var(--paper);
}
.tools-head, .tools-list { max-width: var(--maxw); margin: 0 auto; }
.tools-title { font: 800 clamp(3.5rem, 1rem + 10vw, 9rem)/.85 var(--display); font-variation-settings: 'opsz' 144; letter-spacing: -.045em; }
.tools-sub { margin-top: 16px; font-size: 1.125rem; color: var(--text-2); max-width: 36ch; }
.tools-list { list-style: none; padding: 0; margin-top: clamp(32px, 5vw, 64px); border-top: 2px solid var(--line-strong); }
.tool a {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name go" "what what";
  gap: 6px 16px; padding: 22px 4px 24px;
  text-decoration: none; color: var(--text); border-bottom: 2px solid var(--line-strong);
  transition: color .35s, padding .45s var(--ease);
}
.tool a::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--tool-bg);
  transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease);
}
.tool-name { grid-area: name; font: 700 clamp(2.75rem, 1.5rem + 5vw, 6rem)/.9 var(--display); letter-spacing: -.04em; }
.tool-what { grid-area: what; font-weight: 500; color: var(--text-2); transition: color .35s; }
.tool-go { grid-area: go; align-self: center; font-size: 1.75rem; font-weight: 700; transition: transform .45s var(--ease); }
.tool-art { display: none; }
@media (hover: hover) {
  .tool a:hover { color: var(--tool-fg); padding-left: 20px; padding-right: 20px; }
  .tool a:hover::before { transform: scaleY(1); }
  .tool a:hover .tool-what { color: color-mix(in srgb, var(--tool-fg) 80%, transparent); }
  .tool a:hover .tool-go { transform: rotate(45deg); }
}
.tool a:focus-visible { outline-offset: -3px; }

/* ------------------------------------------------------------------ build pitch */
.pitch {
  position: relative; overflow: clip;
  background: #17202C; color: #F4EEE3;
  padding: clamp(96px, 14vw, 200px) var(--gutter);
  --focus: #FFB23F;
}
/* the sun gets its own band under the copy: 38% of the disc shows, never behind words */
.pitch { --sun-d: min(120vw, 1200px); padding-bottom: calc(var(--sun-d) * .38 + 48px); }
.pitch-sun {
  position: absolute; width: var(--sun-d); aspect-ratio: 1; border-radius: 50%;
  left: 50%; bottom: calc(var(--sun-d) * -.62); transform: translateX(-50%);
  background: radial-gradient(circle at 50% 42%, #FFDD9B 0%, #FFB23F 36%, #FF7A2F 62%, rgba(255,122,47,0) 70%);
  opacity: .9;
}
.pitch-inner { position: relative; max-width: var(--maxw); margin: 0 auto; }
.pitch-title {
  font: 800 clamp(3rem, .8rem + 9vw, 10rem)/.88 var(--display); font-variation-settings: 'opsz' 144;
  letter-spacing: -.045em; max-width: 12ch; text-wrap: balance;
}
.pitch-text { margin-top: 28px; max-width: 34rem; font-size: clamp(1.125rem, 1rem + .4vw, 1.3rem); color: #D9D1C3; }
.pitch .btn { margin-top: 32px; }

/* ------------------------------------------------------------------ footer */
.foot {
  position: relative; overflow: clip;
  background: linear-gradient(180deg, #141E33 0%, #0B1120 70%);
  color: var(--text);
  padding: 0 var(--gutter) max(32px, env(safe-area-inset-bottom));
}
.foot-sky { display: flex; justify-content: center; padding-top: 56px; }
.mill--sunset { height: min(44vw, 340px); width: auto; overflow: visible; }
.foot-body { max-width: var(--maxw); margin: 0 auto; }
.foot-word {
  margin-top: 20px; text-align: center;
  font: 600 clamp(1.9rem, .45rem + 7.3vw, 7rem)/1 var(--display); font-variation-settings: 'opsz' 144;
  letter-spacing: .22em; margin-right: -.22em; text-transform: uppercase;
}
.foot-cols { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-top: 1px solid var(--line); padding-top: 28px; }
.foot-links { display: flex; flex-direction: column; align-items: flex-start; }
.foot-links a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; font-weight: 600; color: var(--text-2); }
.foot-links a:hover { color: var(--text); text-decoration: underline; }
.foot-small { margin-top: 28px; color: var(--text-3); font-size: .875rem; }

/* ------------------------------------------------------------------ inner pages */
.page-hero {
  padding: calc(var(--bar-h) + clamp(40px, 8vw, 110px)) var(--gutter) clamp(32px, 5vw, 64px);
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  display: grid; gap: 24px; overflow: clip;
}
.page-hero > * { max-width: var(--maxw); }
.page-title {
  font: 800 clamp(3rem, 1rem + 8.4vw, 9rem)/.88 var(--display); font-variation-settings: 'opsz' 144;
  letter-spacing: -.045em; text-wrap: balance; max-width: 13ch;
}
.page-lede { margin-top: 24px; max-width: 38rem; font-size: clamp(1.125rem, 1rem + .45vw, 1.375rem); color: var(--text-2); }
.page-aside { margin-top: 18px; color: var(--text-3); font-size: .9375rem; }
.page-aside a { color: var(--text); font-weight: 700; }
.page-hero-mill { display: flex; justify-content: center; }
.page-hero-mill .mill { height: min(62vw, 360px); width: auto; overflow: visible; }

.formwrap { padding: clamp(32px, 5vw, 64px) var(--gutter) clamp(80px, 10vw, 140px); background: var(--paper-2); }
.formwrap > * { max-width: 880px; margin-left: auto; margin-right: auto; }
.bigform { display: grid; gap: 0; }
.q { border: 0; margin: 0; padding: 28px 0; border-top: 2px solid var(--line-strong); min-width: 0; }
.q-label { display: flex; align-items: baseline; gap: 14px; padding: 0; font: 700 clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem)/1.1 var(--display); letter-spacing: -.02em; }
.q-n { font: 700 .875rem/1 var(--sans); color: var(--accent-text); font-variant-numeric: tabular-nums; letter-spacing: 0; transform: translateY(-.3em); }
.q-hint { margin-top: 8px; color: var(--text-3); font-size: .9375rem; }
.q input[type="text"], .q input[type="email"], .q textarea {
  display: block; width: 100%; margin-top: 16px;
  font-size: 16px; line-height: 1.5; padding: 14px 16px; min-height: 52px;
  background: var(--field); color: var(--text);
  border: 2px solid var(--line); border-radius: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.q textarea { resize: vertical; min-height: 120px; }
.q input:focus, .q textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 22%, transparent); }
.q [aria-invalid="true"] { border-color: #C2361B; }
.q--pair { display: grid; gap: 28px; }
/* a floated legend leaves the fieldset border alone, so it lines up with the labels */
fieldset.q > legend { float: left; width: 100%; padding-bottom: 22px; }
fieldset.q > legend + * { clear: both; }
.chips { display: flex; flex-wrap: wrap; gap: 12px 12px; margin-top: 0; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px;
  border: 2px solid var(--line-strong); border-radius: 999px; font-weight: 700; cursor: pointer;
  transition: background-color .2s, color .2s, transform .25s var(--ease);
}
.chip input:checked + span { background: var(--text); color: var(--paper); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.chip:hover span { transform: translateY(-2px); }

.tiles { display: grid; gap: 10px; margin-top: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles--kinds { grid-template-columns: 1fr; }
.tile { position: relative; display: grid; gap: 4px; padding: 18px 16px 16px; min-height: 88px; border: 2px solid var(--line); border-radius: 16px; background: var(--field); cursor: pointer; transition: border-color .2s, transform .25s var(--ease), box-shadow .25s var(--ease); }
.tile::before { content: ''; width: 18px; height: 18px; border-radius: 50%; background: var(--c, var(--sun-hot)); margin-bottom: 6px; }
.tile--kind::before { display: none; }
.tile input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tile-name { font: 700 1.25rem/1.1 var(--display); letter-spacing: -.01em; }
.tile-sub { font-size: .875rem; color: var(--text-3); }
.tile:hover { transform: translateY(-2px); }
.tile:has(input:checked) { border-color: var(--text); box-shadow: 0 0 0 2px var(--text), 0 18px 30px -22px rgba(0,0,0,.5); }
.tile:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }

.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: .9375rem; line-height: 1.45; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--text); }
.check--big { padding: 24px 0 0; border-top: 2px solid var(--line-strong); color: var(--text-2); min-height: 44px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-top: 28px; }
.form-status { font-weight: 600; min-height: 1.5em; }
.form-status[data-kind="error"] { color: #B42C12; }
[data-tone="dark"] .form-status[data-kind="error"], .scene--framok .form-status[data-kind="error"], .scene--qulok .form-status[data-kind="error"] { color: #FF9A7A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .formwrap .form-status[data-kind="error"] { color: #FF9A7A; } }
:root[data-theme="dark"] .formwrap .form-status[data-kind="error"] { color: #FF9A7A; }
.form-status[data-kind="ok"] { color: inherit; }

.done { padding: 40px 0; border-top: 2px solid var(--line-strong); }
.done:focus { outline: none; }
.done-kicker { font-weight: 700; color: var(--accent-text); }
.done-title { margin-top: 10px; font: 800 clamp(3rem, 1.4rem + 7vw, 7rem)/.9 var(--display); letter-spacing: -.045em; font-variation-settings: 'opsz' 144; }
.done-text { margin-top: 20px; max-width: 38rem; font-size: 1.125rem; color: var(--text-2); }
.done .btn { margin-top: 28px; }

.direct { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.direct-title { color: var(--text-3); font-weight: 600; }
.direct-mail { display: inline-block; margin-top: 6px; font: 700 clamp(1.4rem, 1rem + 2vw, 2.25rem)/1.2 var(--display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.noscript { margin-top: 24px; font-weight: 600; }

.stepthree { animation: none; }
@media (prefers-reduced-motion: no-preference) {
  .stepthree:not([hidden]) { animation: rise .6s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* legal */
.legal {
  max-width: 760px; margin: 0 auto;
  padding: calc(var(--bar-h) + clamp(40px, 7vw, 96px)) var(--gutter) clamp(72px, 9vw, 120px);
}
.legal .page-title { font-size: clamp(3rem, 1.5rem + 6vw, 6.5rem); }
.legal-lede { margin-top: 22px; font-size: 1.1875rem; color: var(--text-2); }
.legal h2 { margin-top: 44px; font: 700 1.625rem/1.2 var(--display); letter-spacing: -.015em; }
.legal p, .legal li { color: var(--text-2); }
.legal p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; margin: 12px 0 0; display: grid; gap: 10px; }
.legal a { color: var(--text); font-weight: 600; }

/* 404 */
.lost { min-height: 100svh; padding: calc(var(--bar-h) + 32px) var(--gutter) 64px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; background: linear-gradient(180deg, var(--paper), var(--paper-2)); }
.lost-mill .mill { height: min(50vw, 280px); width: auto; margin-bottom: 24px; overflow: visible; }
.lost .page-title { max-width: 14ch; }
.lost-links { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ------------------------------------------------------------------ wider screens */
@media (min-width: 600px) {
  .tiles--apps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles--kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .q--pair { grid-template-columns: 1fr 1fr; }
  .tool a { grid-template-columns: minmax(0, auto) 1fr auto; grid-template-areas: "name what go"; align-items: center; gap: 24px; padding: 28px 8px; }
  .tool-what { justify-self: end; text-align: right; max-width: 30ch; }
}

@media (min-width: 900px) {
  :root { --bar-h: 76px; }
  .bar-nav a { padding: 0 14px; font-size: 1rem; }
  .bar-mark { width: 44px; height: 44px; }

  .mill--hero { height: min(60svh, 640px); }

  .scene-inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas:
      "tag   tag"
      "name  name"
      "kind  media"
      "copy  media";
    column-gap: clamp(32px, 4vw, 72px);
    align-items: start;
  }
  .scene-media { margin-top: -.62em; font-size: clamp(5.2rem, 1rem + 20vw, 17.5rem); } /* pull the film up into the name, which inverts over it */
  .scene-media > * { font-size: 1rem; }
  .scene-media.demo { font-size: 1rem; margin-top: -3.5rem; }
  .scene-kind { margin-top: 28px; }
  .scene-copy { margin-top: 28px; }
  .scene--qulok .scene-inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "tag tag" "name name" "media kind" "media copy"; }
  .scene--qulok .scene-name { text-align: right; margin-right: -.03em; }
  .scene--qulok .scene-media { margin-top: -.62em; }
  .scene--framok .scene-media { margin-top: 36px; } /* Framok's film sits below its name, with the sails still turning behind */
  /* Thumpkin mirrors Qulok: its film on the left in the wide column, the name set right */
  .scene--thumpkin .scene-inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "tag tag" "name name" "media kind" "media copy"; }
  .scene--thumpkin .scene-inner { grid-template-rows: auto auto auto 1fr; }
  .scene--thumpkin .scene-kind, .scene--lullpane .scene-kind { margin-top: clamp(48px, 5.4vw, 84px); }
  .scene--thumpkin .scene-name { text-align: right; margin-right: -.03em; }
  .scene--thumpkin .scene-media { margin-top: 36px; }
  .scene--lullpane .scene-media { margin-top: 36px; }

  .emblem-sails { right: -28vw; top: -24vw; width: min(110vw, 1500px); }
  .emblem-ring { right: auto; left: -30vw; top: -8vw; width: min(80vw, 1100px); }
  .emblem-pulse { right: -6vw; top: 2vw; width: 56vw; }
  .emblem-pads { right: auto; left: -10vw; top: 4vw; width: min(52vw, 760px); }
  .emblem-drift i { width: min(70vw, 1000px); }
  .emblem-drift i:nth-child(1) { right: -14vw; top: -22vw; }
  .emblem-drift i:nth-child(2) { left: -24vw; }
  .emblem-drift i:nth-child(3) { right: 4vw; bottom: -34vw; }

  .demo-stage + .demo-tip {
    position: absolute; z-index: 3; width: min(320px, 44%); border-radius: 12px;
    box-shadow: 0 20px 40px -12px rgba(20,21,42,.5);
    left: var(--tip-x, 50%); top: var(--tip-y, 50%);
    transition: left .5s var(--ease), top .5s var(--ease);
  }

  .page-hero--build { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: end; }
  .page-hero--build .page-hero-mill .mill { height: min(30vw, 420px); }
  .foot-cols { grid-template-columns: repeat(3, 1fr); }
  .foot-cols::after { content: ''; }

  .tool a { grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto) auto; grid-template-areas: "name art what go"; }
  .tool-art { display: flex; grid-area: art; align-items: center; justify-content: center; height: 72px; color: var(--tool); }
}

@media (min-width: 1200px) {
  .hero-line { font-size: 1.5rem; }
}

/* ------------------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------------ tool art (wide screens) */
.art-type b {
  font: 700 1.125rem/1 var(--sans); white-space: nowrap; overflow: hidden;
  border-right: 3px solid currentColor; padding-right: 4px; width: 18ch;
}
.art-wave { gap: 5px; }
.art-wave i { width: 6px; height: 16px; border-radius: 3px; background: currentColor; }
.art-wave i:nth-child(3n) { height: 40px; } .art-wave i:nth-child(4n+1) { height: 28px; } .art-wave i:nth-child(5n+2) { height: 52px; }
.art-dots { position: relative; }
.art-dots i { position: absolute; border-radius: 50%; background: currentColor; }
.art-dots i:nth-child(1) { width: 34px; height: 30px; left: calc(50% - 17px); top: 36px; }
.art-dots i:nth-child(2) { width: 13px; height: 16px; left: calc(50% - 26px); top: 20px; }
.art-dots i:nth-child(3) { width: 13px; height: 16px; left: calc(50% - 6.5px); top: 10px; }
.art-dots i:nth-child(4) { width: 13px; height: 16px; left: calc(50% + 13px); top: 20px; }
@media (hover: hover) { .tool a:hover .tool-art { color: var(--tool-fg); } }
@media (prefers-reduced-motion: no-preference) {
  .art-type b { animation: typing 3.2s steps(18) infinite alternate, caret .7s step-end infinite; }
  .art-wave i { animation: wave 1.1s var(--ease-io) infinite alternate; }
  .art-wave i:nth-child(2n) { animation-delay: -.35s; } .art-wave i:nth-child(3n) { animation-delay: -.7s; }
}
@keyframes typing { from { width: 0; } to { width: 18ch; } }
@keyframes caret { 50% { border-color: transparent; } }
@keyframes wave { from { transform: scaleY(.35); } to { transform: scaleY(1); } }

/* Look preview 2026-09-25: Shapefest isometric building blocks beside the Build pitch, hovering
   like pieces about to click together. Decorative, so they carry no text and no alt. */
.pitch-blocks { position: absolute; right: 0; bottom: -12px; width: 340px; height: 270px; pointer-events: none; }
.pitch-blocks img { position: absolute; height: auto; filter: drop-shadow(0 22px 18px rgba(4, 8, 14, .45)); }
.pitch-blocks .b1 { width: 176px; left: 18px; top: 128px; }
.pitch-blocks .b2 { width: 98px; left: 158px; top: 36px; }
.pitch-blocks .b3 { width: 72px; left: 262px; top: 150px; }
.pitch-blocks .b4 { width: 44px; left: 60px; top: 44px; }
@media (prefers-reduced-motion: no-preference) {
  .pitch-blocks .b2 { animation: hover-brick 5.5s ease-in-out infinite alternate; }
  .pitch-blocks .b3 { animation: hover-brick 7s ease-in-out -2s infinite alternate-reverse; }
  .pitch-blocks .b4 { animation: hover-brick 6s ease-in-out -4s infinite alternate; }
}
@keyframes hover-brick { from { translate: 0 -6px; } to { translate: 0 8px; } }
@media (max-width: 1100px) { .pitch-blocks { width: 260px; height: 206px; } .pitch-blocks img { scale: .76; transform-origin: 0 0; } .pitch-blocks .b1 { left: 14px; top: 98px; } .pitch-blocks .b2 { left: 120px; top: 27px; } .pitch-blocks .b3 { left: 200px; top: 114px; } .pitch-blocks .b4 { left: 46px; top: 34px; } }
@media (max-width: 760px) { .pitch-blocks { position: relative; right: auto; bottom: auto; margin: 36px 0 -24px auto; } }
