/* 99forge.com: the 99Forge landing page.
   Flat on purpose: no gradients, no shadows. Colours, mark and type from the 99Forge brand kit (16.11.2026). */
@layer reset, tokens, base, layout, components, sections, motion;

@font-face {
  font-family: "Inter";
  src: url("/assets/inter.8cdd242207.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Arial resized to Inter's metrics: the swap to Inter barely moves the text. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
  size-adjust: 107.12%;
}

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  img, svg, canvas { display: block; max-width: 100%; }
  button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
  ol, ul { padding: 0; list-style: none; }
  a { color: inherit; text-decoration: none; }
  dd { margin: 0; }
}

@layer tokens {
  :root {
    color-scheme: dark;
    --bg: #09090b;
    --panel: #111113;
    --panel-2: #18181b;
    --panel-3: #222226;
    --line: #1f1f23;
    --line-2: #2f2f35;
    --ink: #f4f4f5;
    --muted: #a1a1aa;
    --dim: #8b8b94;
    --slate: #52525b;
    --brand: #f04e14;
    --brand-hover: #ff6224;
    --brand-line: #5c2510;
    --on-brand: #09090b;
    --ok: #4ade80;
    --font: "Inter", "Inter Fallback", ui-sans-serif, system-ui, sans-serif;
    --mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, monospace;
    --wrap: 1280px;
    --gutter: clamp(16px, 4vw, 40px);
    --header: 68px;
    --r: 20px;
    --r-lg: 28px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Ccircle cx='11' cy='11' r='1' fill='%23ffffff' fill-opacity='.09'/%3E%3C/svg%3E");
  }
}

@layer base {
  html {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-feature-settings: "cv11", "calt";
    scrollbar-color: var(--panel-3) var(--bg);
    -webkit-tap-highlight-color: transparent;
  }
  body {
    min-height: 100dvh;
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  h1, h2, h3 { font-weight: 700; line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
  p { text-wrap: pretty; }
  strong { font-weight: 600; }
  ::selection { background: var(--brand); color: var(--on-brand); }
  :focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
  [id] { scroll-margin-top: calc(var(--header) + 16px); }
  .sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
  }
  .sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
  .i {
    width: 20px; height: 20px; flex: none;
    fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
  }
  .ember { color: var(--brand); }
}

@layer layout {
  .wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
  .skip {
    position: absolute; left: 16px; top: -100px; z-index: 100;
    padding: 10px 16px; border-radius: 999px;
    background: var(--brand); color: var(--on-brand); font-weight: 600;
  }
  .skip:focus { top: 12px; }
}

@layer components {
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 0 22px;
    border: 1px solid transparent; border-radius: 999px;
    font-size: 1rem; font-weight: 600; letter-spacing: -.01em; line-height: 1; white-space: nowrap;
    transition: background-color .2s, border-color .2s, color .2s;
  }
  .btn .i { width: 18px; height: 18px; transition: translate .25s var(--ease); }
  .btn:hover .i { translate: 3px 0; }
  .btn--brand { background: var(--brand); color: var(--on-brand); }
  .btn--brand:hover { background: var(--brand-hover); }
  .btn--ghost { border-color: var(--line-2); color: var(--ink); }
  .btn--ghost:hover { background: var(--panel-2); border-color: var(--slate); }
  .btn--dark { background: var(--bg); color: var(--ink); }
  .btn--dark:hover { background: #1d1d21; }
  .btn--sm { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
  .btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }
  .btn--xl { min-height: 72px; padding: 0 32px; gap: 14px; font-size: clamp(1.125rem, 1rem + .8vw, 1.5rem); }
  .btn--xl .i { width: 24px; height: 24px; }

  .label {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: var(--mono); font-size: .8125rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
    color: var(--muted);
  }
  .label__n { color: var(--brand); }

  .chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .chips li {
    padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px;
    font-family: var(--mono); font-size: .8125rem; line-height: 1.2; color: var(--muted);
  }
  .badge {
    align-self: flex-start; padding: 5px 12px;
    border: 1px solid var(--brand-line); border-radius: 999px;
    font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand);
  }
}

@layer sections {
  /* ---------- header ---------- */
  .site-header {
    position: sticky; top: 0; z-index: 50; height: var(--header);
    background: rgb(9 9 11 / .8);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    backdrop-filter: blur(16px) saturate(1.3);
    border-bottom: 1px solid var(--line);
  }
  .header__row { display: flex; align-items: center; gap: 24px; height: 100%; }
  .brand {
    display: inline-flex; align-items: center; gap: 11px; min-height: 44px; border-radius: 10px;
    font-size: 1.1875rem; font-weight: 700; letter-spacing: -.02em;
  }
  .brand__mark { width: 32px; height: 32px; }
  .nav { display: flex; gap: 2px; margin-left: auto; }
  .nav a {
    padding: 8px 14px; border-radius: 999px;
    color: var(--muted); font-size: .9375rem; font-weight: 500;
    transition: color .2s, background-color .2s;
  }
  .nav a:hover { color: var(--ink); background: var(--panel-2); }
  .menu-btn {
    display: none; place-items: center; width: 44px; height: 44px; flex: none;
    border: 1px solid var(--line-2); border-radius: 999px;
  }
  .menu {
    position: fixed; inset: var(--header) 0 auto 0;
    width: auto; height: auto; max-width: none; max-height: calc(100dvh - var(--header));
    margin: 0; padding: 8px var(--gutter) 28px;
    border: 0; border-bottom: 1px solid var(--line);
    background: var(--bg); color: var(--ink);
  }
  .menu::backdrop { background: rgb(0 0 0 / .6); }
  .menu nav { display: grid; margin-bottom: 24px; }
  .menu nav a {
    padding: 14px 0; border-bottom: 1px solid var(--line);
    font-size: 1.75rem; font-weight: 600; letter-spacing: -.03em;
  }
  .menu .btn { width: 100%; }
  /* the floating island (desktop and tablet): the header detaches from the edges and floats over the page */
  @media (min-width: 881px) {
    .site-header {
      top: 12px; width: min(100% - 2 * var(--gutter), var(--wrap)); height: 60px;
      margin: 12px auto 0; border: 1px solid var(--line-2); border-radius: 999px;
      background: rgb(9 9 11 / .72);
    }
    .site-header .header__row { width: 100%; padding: 0 8px 0 14px; }
    [id] { scroll-margin-top: 96px; }
  }
  @supports not selector(:popover-open) {
    .menu, .menu-btn { display: none !important; }
  }
  @media (max-width: 880px) {
    .nav { display: none; }
    .menu-btn { display: grid; }
    .header__cta { margin-left: auto; }
  }
  @media (max-width: 440px) {
    .header__cta { display: none; }
    .menu-btn { margin-left: auto; }
  }

  /* ---------- hero ---------- */
  .hero { padding-block: clamp(40px, 7vw, 104px) clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--line); overflow: clip; }
  .hero__grid {
    display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(36px, 5vw, 80px); align-items: center;
  }
  .eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 6px 14px 6px 12px; border: 1px solid var(--line-2); border-radius: 999px;
    font-family: var(--mono); font-size: .8125rem; letter-spacing: .04em; color: var(--muted);
  }
  .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
  .hero__title {
    margin-block: clamp(22px, 3vw, 34px) clamp(22px, 3vw, 30px);
    font-size: clamp(3.75rem, 1.4rem + 8.6vw, 10.25rem); line-height: .86; letter-spacing: -.058em;
  }
  .hero__title > span { display: block; }
  .hero__lead { max-width: 34ch; font-size: clamp(1.125rem, 1rem + .55vw, 1.4375rem); line-height: 1.45; color: var(--muted); }
  .hero__lead strong { color: var(--ink); font-weight: 500; }
  .hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 4vw, 40px); }

  .forge {
    position: relative; width: 100%; aspect-ratio: 1; overflow: hidden;
    border: 1px solid var(--line); border-radius: 23.4%;
    background: var(--panel);
    touch-action: pan-y; -webkit-user-select: none; user-select: none;
  }
  .forge canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
  .forge__still {
    position: absolute; inset: 0; width: 100%; height: 100%;
    fill: none; stroke: var(--ink); stroke-width: 5.5; stroke-linecap: round; stroke-linejoin: round;
  }
  .forge.is-live .forge__still { display: none; }
  .forge__hint {
    position: absolute; left: 0; right: 0; bottom: 7.5%; text-align: center; pointer-events: none;
    font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim);
  }
  .forge:not(.is-live) .forge__hint { display: none; }
  .hint-touch { display: none; }
  @media (hover: none) {
    .hint-hover { display: none; }
    .hint-touch { display: inline; }
  }

  .now {
    display: flex; align-items: center; gap: 16px;
    margin-top: clamp(40px, 6vw, 72px); padding-top: 20px; border-top: 1px solid var(--line);
    font-family: var(--mono); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  }
  .now__rule { width: 32px; height: 1px; background: var(--slate); }
  .now__words { height: 1.5em; line-height: 1.5em; overflow: hidden; color: var(--ink); }
  .now__list { display: flex; flex-direction: column; }
  .now__list > span { height: 1.5em; white-space: nowrap; }

  @media (max-width: 900px) {
    .hero__grid { grid-template-columns: 1fr; }
    .forge { max-width: 520px; }
  }

  /* ---------- marquee ---------- */
  .marquee { overflow: hidden; padding-block: clamp(18px, 2.4vw, 28px); border-bottom: 1px solid var(--line); }
  .marquee__track { display: flex; width: max-content; }
  .marquee ul { display: flex; flex: none; }
  .marquee li {
    display: flex; align-items: center; gap: clamp(20px, 2.6vw, 36px); padding-right: clamp(20px, 2.6vw, 36px);
    font-size: clamp(1.75rem, 1rem + 2.6vw, 3.25rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.15;
    white-space: nowrap;
  }
  .marquee li::after { content: ""; width: .3em; height: .3em; border-radius: 30%; background: var(--brand); }
  .marquee li.o { color: transparent; -webkit-text-stroke: 1.25px #6b6b75; }

  /* ---------- sections ---------- */
  .section { padding-block: clamp(80px, 10vw, 152px); border-bottom: 1px solid var(--line); }
  .section__head {
    display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 24px clamp(32px, 6vw, 96px); align-items: end;
    margin-bottom: clamp(40px, 6vw, 80px);
  }
  .section__head h2 {
    max-width: 14ch; margin-top: 20px;
    font-size: clamp(2.5rem, 1.2rem + 4.6vw, 5.5rem); line-height: .94; letter-spacing: -.05em;
  }
  .section__head > p { max-width: 40ch; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); color: var(--muted); }
  @media (max-width: 900px) { .section__head { grid-template-columns: 1fr; } }

  /* ---------- services ---------- */
  .bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
  .card {
    display: flex; flex-direction: column; gap: 12px; min-width: 0;
    padding: clamp(24px, 2.6vw, 36px);
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg);
    transition: background-color .25s, border-color .25s;
  }
  .card:hover { background: #141417; border-color: var(--line-2); }
  .card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: clamp(12px, 2.4vw, 32px); }
  .card__icon {
    display: grid; place-items: center; width: 48px; height: 48px;
    background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 14px;
    transition: background-color .25s, border-color .25s, color .25s;
  }
  .card__icon .i { width: 22px; height: 22px; }
  .card:hover .card__icon { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
  .card__tag { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
  .card h3 { font-size: clamp(1.375rem, 1.1rem + .8vw, 1.75rem); letter-spacing: -.03em; }
  .card p { max-width: 46ch; color: var(--muted); }
  .card .chips { margin-top: auto; padding-top: 12px; }
  .card--ai .chips { margin-top: 4px; padding-top: 0; }

  .flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; padding-top: 12px; }
  .flow li {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--mono); font-size: .75rem; letter-spacing: .04em; color: var(--muted);
  }
  .flow li:not(:last-child)::after { content: ""; width: 14px; height: 1px; background: var(--slate); }
  .flow li:last-child { color: var(--brand); }
  .card--ai { grid-column: span 7; grid-row: span 2; }
  .card--ai h3 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); letter-spacing: -.04em; }
  .card--apps, .card--platforms { grid-column: span 5; }
  .card--auto, .card--rt, .card--design { grid-column: span 4; }

  .trace {
    margin-top: auto; padding: 18px 20px 16px;
    background: var(--bg); border: 1px solid var(--line); border-radius: 16px;
    font-family: var(--mono); font-size: .8125rem; line-height: 1.5; color: var(--muted);
  }
  .trace figcaption { margin-bottom: 10px; font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
  .trace li { display: flex; gap: 10px; padding-block: 5px; }
  .trace li > span:first-child { flex: none; width: 1ch; }
  .trace li:first-child > span:first-child { flex: 1 1 auto; width: auto; min-width: 0; overflow-wrap: anywhere; }
  .trace .cmd { color: var(--ink); }
  .trace .ok { color: var(--ok); }
  .trace .warn { color: var(--brand); }
  .trace .go { color: var(--ink); }
  .trace .t { margin-left: auto; padding-left: 12px; color: var(--dim); white-space: nowrap; }

  .wave {
    width: 100%; height: 48px; margin-top: auto;
    fill: none; stroke: var(--panel-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  }
  .wave .hot { stroke: var(--brand); stroke-dasharray: 14 100; stroke-dashoffset: -40; }

  .swatches { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; }
  .swatches span { width: 36px; height: 36px; border-radius: 30%; border: 1px solid var(--line-2); }
  .swatches .sw-ember { background: var(--brand); border-color: var(--brand); }
  .swatches .sw-graphite { background: var(--bg); }
  .swatches .sw-ink { background: var(--ink); border-color: var(--ink); }

  @media (max-width: 1023px) {
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .card--ai { grid-column: 1 / -1; grid-row: auto; }
    .card--apps, .card--platforms, .card--auto, .card--rt { grid-column: span 1; }
    .card--design { grid-column: 1 / -1; }
  }
  @media (max-width: 640px) {
    .bento { grid-template-columns: minmax(0, 1fr); }
    .card--apps, .card--platforms, .card--auto, .card--rt { grid-column: 1 / -1; }
    .trace .t { display: none; }
  }

  /* ---------- work ---------- */
  .work {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: clip;
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg);
  }
  .work__copy { display: flex; flex-direction: column; gap: 18px; padding: clamp(28px, 4vw, 56px); }
  .work__copy h3 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.5rem); line-height: 1; letter-spacing: -.045em; }
  .work__copy > p { max-width: 48ch; color: var(--muted); }
  .work__copy > .fine { font-size: .8125rem; color: var(--dim); }
  .facts {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
    margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line);
  }
  .facts dt { font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem); font-weight: 700; letter-spacing: -.03em; }
  .facts dd { margin-top: 4px; font-size: .875rem; color: var(--muted); }
  .work__visual {
    display: grid; place-items: center; padding: clamp(24px, 4vw, 56px);
    background: var(--bg) var(--dots); border-left: 1px solid var(--line);
  }
  .app { width: min(100%, 420px); overflow: hidden; background: var(--panel); border: 1px solid var(--line-2); border-radius: 24px; }
  .app__bar {
    display: flex; align-items: center; gap: 10px; padding: 14px 16px;
    border-bottom: 1px solid var(--line); font-size: .9375rem; font-weight: 600;
  }
  .app__bar svg { width: 24px; height: 24px; }
  .pill {
    display: inline-flex; align-items: center; gap: 7px; margin-left: auto; padding: 4px 10px;
    border: 1px solid #1d3b28; border-radius: 999px;
    font-family: var(--mono); font-size: .6875rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ok);
  }
  .pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
  .app__rows li {
    display: flex; justify-content: space-between; gap: 16px; padding: 13px 16px;
    border-bottom: 1px solid var(--line); font-size: .9375rem;
  }
  .app__rows li > span:first-child { color: var(--muted); }
  .app__beats { display: grid; gap: 10px; padding: 14px 16px 16px; }
  .app__beats > span { font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
  .beats { width: 100%; height: 40px; }
  .beats rect { fill: var(--panel-3); }
  .beats rect:last-child { fill: var(--brand); }
  @media (max-width: 900px) {
    .work { grid-template-columns: minmax(0, 1fr); }
    .work__visual { border-left: 0; border-top: 1px solid var(--line); }
  }
  @media (max-width: 520px) {
    .facts { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .facts > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
    .facts dd { margin-top: 0; text-align: right; }
  }

  /* ---------- process ---------- */
  .steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2vw, 28px); }
  .step { position: relative; padding-top: 24px; border-top: 1px solid var(--line-2); }
  .step::before {
    content: ""; position: absolute; top: -1px; left: 0; width: 100%; height: 2px;
    background: var(--brand); transform-origin: 0 50%; scale: .18 1;
  }
  .step__n { font-family: var(--mono); font-size: .8125rem; letter-spacing: .08em; color: var(--dim); }
  .step h3 { margin: clamp(28px, 4vw, 56px) 0 12px; font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.25rem); letter-spacing: -.04em; }
  .step p { color: var(--muted); }
  @media (max-width: 1023px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; } }
  @media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

  /* ---------- principles ---------- */
  .principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); counter-reset: principle; }
  .principle {
    counter-increment: principle;
    display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px 16px; align-content: start;
    padding: clamp(24px, 3vw, 40px) clamp(16px, 3vw, 40px) clamp(24px, 3vw, 40px) 0;
    border-bottom: 1px solid var(--line);
  }
  .principle:nth-child(even) { padding-left: clamp(16px, 3vw, 40px); border-left: 1px solid var(--line); }
  .principle::before {
    content: counter(principle, decimal-leading-zero); grid-row: span 2; padding-top: 8px;
    font-family: var(--mono); font-size: .8125rem; color: var(--brand);
  }
  .principle h3 { font-size: clamp(1.375rem, 1.1rem + .8vw, 1.75rem); letter-spacing: -.03em; }
  .principle p { max-width: 44ch; color: var(--muted); }
  .stack { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: clamp(40px, 5vw, 64px); }
  @media (max-width: 760px) {
    .principles { grid-template-columns: minmax(0, 1fr); }
    .principle { grid-template-columns: 48px minmax(0, 1fr); }
    .principle:nth-child(even) { padding-left: 0; border-left: 0; }
  }

  /* ---------- contact ---------- */
  .contact { position: relative; overflow: clip; padding-block: clamp(88px, 12vw, 176px); background: var(--brand); color: var(--on-brand); }
  .contact .label, .contact .label__n { color: var(--on-brand); }
  .contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px; }
  .contact h2 {
    max-width: 11ch; margin: 24px 0 28px;
    font-size: clamp(3rem, 1rem + 7.6vw, 8.75rem); line-height: .9; letter-spacing: -.06em;
  }
  .contact__lead {
    max-width: 40ch; margin-bottom: clamp(32px, 4vw, 48px);
    font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); font-weight: 500; line-height: 1.45;
  }
  .contact__mark {
    width: clamp(180px, 26vw, 380px);
    fill: none; stroke: var(--on-brand); stroke-width: 5.5; stroke-linecap: round; stroke-linejoin: round;
  }
  .contact :focus-visible { outline-color: var(--on-brand); }
  .contact ::selection { background: var(--on-brand); color: var(--brand); }
  @media (max-width: 900px) {
    .contact__grid { grid-template-columns: minmax(0, 1fr); }
    .contact__mark { display: none; }
  }

  /* ---------- footer ---------- */
  .site-footer { overflow: clip; padding-block: clamp(56px, 7vw, 96px) 32px; }
  .footer__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
  .footer__tag { color: var(--muted); }
  .footer__nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-left: auto; }
  .footer__nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: .9375rem; transition: color .2s; }
  .footer__nav a:hover { color: var(--ink); }
  .site-footer .wrap { container-type: inline-size; }
  .footer__giant {
    margin: clamp(40px, 6vw, 72px) 0 clamp(16px, 2vw, 24px);
    /* the wordmark spans the whole column: its width is ~3.6x its size in Inter Bold at this tracking */
    font-size: 27cqi; font-weight: 700; line-height: .8; letter-spacing: -.065em;
    color: var(--panel-2); white-space: nowrap; -webkit-user-select: none; user-select: none;
  }
  .footer__base {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
    padding-top: 20px; border-top: 1px solid var(--line);
    font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--dim);
  }
  .footer__base small { font-size: inherit; }
  @media (max-width: 640px) { .footer__nav { width: 100%; margin-left: 0; } }

  /* ---------- 404 ---------- */
  .lost { padding-block: clamp(96px, 16vw, 200px); }
  .lost h1 { margin: 20px 0; font-size: clamp(3.5rem, 1.4rem + 8vw, 9rem); line-height: .9; letter-spacing: -.058em; }
  .lost p { max-width: 36ch; margin-bottom: 36px; font-size: 1.25rem; color: var(--muted); }
}

/* Motion: only for people who have not asked for less of it. Everything is fully visible without it. */
@layer motion {
  @media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }

    .rise { animation: rise .7s var(--ease) both; }
    .d1 { animation-delay: .04s; }
    .d2 { animation-delay: .1s; }
    .d3 { animation-delay: .18s; }
    .d4 { animation-delay: .24s; }
    .d5 { animation-delay: .32s; }
    @keyframes rise { from { opacity: 0; translate: 0 28px; } }

    .pulse, .pill::before { animation: blink 2.4s ease-in-out infinite; }
    .beats rect:last-child { animation: blink 1.4s ease-in-out infinite; }
    @keyframes blink { 50% { opacity: .3; } }

    .now__list { animation: words 15s var(--ease) infinite; }
    @keyframes words {
      0%, 13% { translate: 0 0; }
      16.66%, 29.66% { translate: 0 -1.5em; }
      33.33%, 46.33% { translate: 0 -3em; }
      50%, 63% { translate: 0 -4.5em; }
      66.66%, 79.66% { translate: 0 -6em; }
      83.33%, 96.33% { translate: 0 -7.5em; }
      100% { translate: 0 -9em; }
    }

    .marquee__track { animation: marquee 44s linear infinite; }
    .marquee:hover .marquee__track { animation-play-state: paused; }
    @keyframes marquee { to { translate: -50% 0; } }

    .wave .hot { animation: wave 2.6s linear infinite; }
    @keyframes wave { from { stroke-dashoffset: 14; } to { stroke-dashoffset: -100; } }

    .menu { transition: opacity .2s, translate .2s var(--ease), overlay .2s allow-discrete, display .2s allow-discrete; }
    .menu:not(:popover-open) { opacity: 0; translate: 0 -8px; }
    @starting-style { .menu:popover-open { opacity: 0; translate: 0 -8px; } }

    @supports (animation-timeline: view()) {
      .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
      @keyframes reveal { from { opacity: 0; translate: 0 40px; } }

      .card--ai { view-timeline-name: --ai; }
      .trace li { animation: line linear both; animation-timeline: --ai; }
      .trace li:nth-child(1) { animation-range: cover 26% cover 31%; }
      .trace li:nth-child(2) { animation-range: cover 30% cover 35%; }
      .trace li:nth-child(3) { animation-range: cover 34% cover 39%; }
      .trace li:nth-child(4) { animation-range: cover 38% cover 43%; }
      .trace li:nth-child(5) { animation-range: cover 42% cover 47%; }
      @keyframes line { from { opacity: 0; translate: -10px 0; } }

      .step::before { animation: fill linear both; animation-timeline: view(); animation-range: entry 40% cover 50%; }
      @keyframes fill { from { scale: .18 1; } to { scale: 1 1; } }
    }
  }
}
