/* fonts, self-hosted (latin) */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(assets/fonts/bricolage-latin.woff2) format('woff2'); 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: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(assets/fonts/jetbrains-mono-latin.woff2) format('woff2'); 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: 'Space Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(assets/fonts/space-grotesk-latin.woff2) format('woff2'); 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; }
  :root {
    --paper: #f4f4f2;
    --ink: #1c2127;
    --muted: rgba(18,18,20,.6);
    --faint: rgba(18,18,20,.4);
    --line: rgba(18,18,20,.14);
    --card: #ffffff;
    --accent: #c6613f;
    --accent-soft: rgba(198,97,63,.12);
    --accent-ink: #b0502c;
    --on-accent: #fff;
    --text-2: #414141;
    --head: "Bricolage Grotesque", system-ui, sans-serif;
    --body: "Space Grotesk", system-ui, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --rail: 0px;      /* the ruler no longer pushes the page */
    --ruler: 46px;    /* the ruler's own width */
    --pad: clamp(20px, 4vw, 56px);
  }
  :root[data-theme="dark"] {
    --accent: #c6613f; --accent-soft: rgba(217,119,87,.22); --accent-ink: #d97757; --on-accent: #ffffff; --text-2: #c2c0b6;
    --paper: #141413; --ink: #faf9f5; --muted: rgba(250,249,245,.62); --faint: rgba(250,249,245,.42);
    --line: rgba(250,249,245,.13); --card: #1f1e1d;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; overflow-x: clip; }
  body { overflow-x: clip; }
  body {
    margin: 0; background: var(--paper); color: var(--ink);
    font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased;
  }
  a { color: inherit; }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
  .mono { font: 400 12px/1.4 var(--mono); letter-spacing: .02em; }
  .ph { background: rgba(217,119,87,.12); color: #8a3a1c; padding: 0 .3em; border-radius: 4px; font-style: normal; }
  main, footer { padding-left: var(--rail); }
  .wrap { width: min(1272px, 100% - 2 * var(--pad)); margin: 0 auto; }

  /* ruler rail */
  .ruler { position: fixed; left: 0; top: 0; bottom: 0; width: var(--ruler); z-index: 20; pointer-events: none; overflow: hidden; }
  .ruler::before {
    content: ""; position: absolute; inset: 0;
    background-image:
      repeating-linear-gradient(to bottom, rgba(18,18,20,.35) 0 1px, transparent 1px 19px),
      repeating-linear-gradient(to bottom, rgba(18,18,20,.7) 0 1px, transparent 1px 76px);
    background-size: 6px 100%, 12px 100%; background-repeat: no-repeat; background-position: left var(--ty, 0px), left var(--ty, 0px);
  }
  .ruler span { position: absolute; left: 19px; font: 400 9px/1 var(--mono); color: var(--faint); transform: translateY(-50%); }

  /* section tracker */
  .tracker { position: fixed; right: 14px; top: 0; z-index: 20; pointer-events: none; display: flex; align-items: center; gap: 8px; transform: translateY(var(--ty, 136px)); }
  .tracker i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
  .tracker span { font: 400 11px var(--mono); color: var(--faint); }

  /* header (Figma: Hero 1512) */
  :root { --gx: 68px; --gr: 120px; }
  .top { position: fixed; top: 0; left: var(--rail); right: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; padding: 64px max(var(--pad), calc((100vw - var(--rail) - 1272px) / 2)) 16px max(var(--pad), calc((100vw - var(--rail) - 1272px) / 2)); transition: padding .3s, background .3s; }
  .top.scrolled { padding-top: 16px; background: linear-gradient(var(--paper) 60%, transparent); }
  .wordmark { display: inline-block; font: 700 20px/1 var(--head); font-variation-settings: "opsz" 24; letter-spacing: -.05em; color: var(--ink); text-decoration: none; white-space: nowrap; transition: opacity .25s; }
  .wordmark .wm-dot { color: var(--accent); }
  .wordmark:hover { opacity: .75; }
  .wordmark:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
  @media (max-width: 760px) { .wordmark { font-size: 20px; } }
  .logo-jk { position: relative; display: block; width: 41px; height: 40px; overflow: hidden; }
  .logo-jk .p, .rot { position: absolute; }
  .logo-jk img, .mi img { position: absolute; display: block; inset: 0; width: 100%; height: 100%; max-width: none; }
  .rot { display: flex; align-items: center; justify-content: center; container-type: size; }
  .rot .r { position: relative; flex: none; transform: rotate(44.01deg) skewX(-1.98deg); }
  .top-r { display: flex; align-items: center; gap: 24px; }
  .dm svg { display: block; width: 40px; height: 40px; fill: currentColor; stroke: none; }
  .dm .r { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .dm .i-moon, [data-theme="dark"] .dm .i-sun { display: none; }
  [data-theme="dark"] .dm .i-moon { display: block; }
  .mi { position: relative; width: 32px; height: 32px; overflow: hidden; }
  .mi .p { position: absolute; }
  [data-theme="dark"] .ruler::before { filter: invert(1); }
  [data-theme="dark"] .logo-jk { filter: invert(1); }
  [data-theme="dark"] .hl-avatar { background: #faf9f5; }
  [data-theme="dark"] .row:hover { background: rgba(250,249,245,.06); }
  [data-theme="dark"] .win { background: rgba(250,249,245,.04); }
  [data-theme="dark"] .btn.ghost .ar { background: rgba(250,249,245,.12); }
  [data-theme="dark"] .ui-chip, [data-theme="dark"] .ph { color: var(--accent-ink); }
  [data-theme="dark"] .ph { background: rgba(217,119,87,.24); }
  .menu-open .top { background: none; }
  .menu-open .logo-jk { filter: invert(1); }
  .xr-toggle { text-decoration: none; color: var(--ink); }

  /* menu: a circle opens from the button, the lines rise in one by one, a preview sits on the right */
  @property --mr { syntax: "<length>"; inherits: true; initial-value: 0px; }
  .menuwrap { --mr: 0px; --mmax: 2600px; --cx: 100%; --cy: 0px; position: fixed; inset: 0; z-index: 25; pointer-events: none; visibility: hidden; transition: --mr .8s cubic-bezier(.23,1,.32,1), visibility 0s linear .8s; }
  .menu-open .menuwrap { --mr: var(--mmax); visibility: visible; transition: --mr 1.1s cubic-bezier(.23,1,.32,1), visibility 0s; }
  .menu-dots { position: absolute; inset: 0; background: radial-gradient(circle, #141413 1.7px, transparent 2.2px) 0 0 / 7px 7px; -webkit-mask-image: radial-gradient(circle at var(--cx) var(--cy), #000 calc(var(--mr) - 24px), transparent calc(var(--mr) + 110px)); mask-image: radial-gradient(circle at var(--cx) var(--cy), #000 calc(var(--mr) - 24px), transparent calc(var(--mr) + 110px)); }
  .menu { position: absolute; inset: 0; overflow-y: auto; background: #141413; color: #faf9f5; pointer-events: auto; clip-path: circle(var(--mr) at var(--cx) var(--cy)); outline: none; }
  .menu-in { min-height: 100dvh; display: flex; flex-direction: column; justify-content: space-between; padding: 150px max(var(--pad), calc((100vw - 1272px) / 2)) 32px; }
  .menu-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px; align-items: center; margin: auto 0; }
  .menu nav { grid-column: 1 / -1; min-width: 0; }
  .menu ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: mi; }
  .menu li { position: relative; overflow: hidden; counter-increment: mi; height: min(58vh, 560px); min-height: 300px; border: 1px solid rgba(250,249,245,.14); border-radius: 16px; transition: background .4s cubic-bezier(.23,1,.32,1), border-color .4s; }
  .menu li:hover, .menu li:focus-within { background: var(--accent); border-color: var(--accent); }
  .menu li a { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 0; padding: 22px; color: #faf9f5; text-decoration: none; transform: translateY(110%); transition: transform .45s cubic-bezier(.23,1,.32,1) 0s; }
  .menu-open .menu li a { transform: none; transition: transform .9s cubic-bezier(.23,1,.32,1) calc(.18s + var(--i) * .06s); }
  .menu li a .mdot { display: none; }
  .menu li a::before { content: "0" counter(mi); position: absolute; left: 22px; top: 22px; font: 400 12px/1.4 var(--mono); letter-spacing: .02em; color: var(--accent); transition: color .3s; }
  .menu .kin { font: 500 clamp(30px, 4.4vw, 64px)/1 var(--head); letter-spacing: -.04em; color: rgba(250,249,245,.7); transition: color .3s; white-space: nowrap; }
  .menu li:hover .kin, .menu li:focus-within .kin { color: #141413; }
  .menu li:hover a::before, .menu li:focus-within a::before, .menu li:hover .meas, .menu li:focus-within .meas { color: #141413; }
  .menu .kin::before { content: ""; display: inline-block; width: .13em; height: .13em; margin-right: .14em; border-radius: 50%; background: var(--accent); vertical-align: baseline; transition: background .3s; }
  .menu li:hover .kin::before, .menu li:focus-within .kin::before { background: #141413; }
  .menu .kin i { display: inline-block; font-style: normal; font-variation-settings: "opsz" 96, "wght" 500; transition: font-variation-settings .35s cubic-bezier(.23,1,.32,1); }
  .menu .meas { position: absolute; right: 22px; top: 22px; display: block; font: 400 12px/1.4 var(--mono); letter-spacing: .02em; color: rgba(250,249,245,.7); text-align: right; transition: color .3s; }
  .menu-foot { display: block; margin-top: 40px; padding-top: 38px; border-top: 1px solid rgba(250,249,245,.14); opacity: 0; transform: translateY(18px); transition: opacity .3s, transform .3s; }
  .menu-open .menu-foot { opacity: 1; transform: none; transition: opacity .9s cubic-bezier(.23,1,.32,1) .55s, transform .9s cubic-bezier(.23,1,.32,1) .55s; }
  .mf-links { display: flex; flex-wrap: wrap; gap: 14px clamp(32px, 6vw, 96px); }
  .mf-links a { padding: 6px 0; color: #faf9f5; font: 500 clamp(19px, 1.7vw, 24px)/1.2 var(--head); letter-spacing: -.02em; text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size .5s cubic-bezier(.77, 0, .175, 1); }
  .mf-links a:hover, .mf-links a:focus-visible { background-size: 100% 2px; }
  .menu-open .wordmark { color: #faf9f5; }
  .menu-open .top .button { --btn-bg: #faf9f5; --btn-fg: #141413; --btn-dot: #c6613f; --btn-line: rgba(0,0,0,.08); }
  .menu-open .top .button .mi { filter: none; }
  @media (max-width: 860px) { .menu-in { padding-top: 120px; } .menu-grid { gap: 0; } .menu ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .menu li { height: 24vh; min-height: 150px; } .menu li a { padding: 16px; } .menu li a::before { left: 16px; top: 16px; } .menu .meas { right: 16px; top: 16px; max-width: 55%; white-space: normal; } .menu .kin { font-size: clamp(30px, 9vw, 44px); } }
  @media (prefers-reduced-motion: reduce) { .menuwrap, .menu li a, .menu-foot { transition: none !important; } }
  /* preloader: the name fills as the count runs, then three colour layers lift away one after another */
  .pre { display: none; }
  html.preloading, html.preloading body { overflow: hidden; height: 100%; }
  html.preloading .pre, html.pre-run .pre { display: block; }
  .pre-l { position: fixed; inset: 0; width: 100%; height: 100%; display: grid; place-items: center; transform: translate3d(0, 0, 0); will-change: transform; }
  .pre-l.l1 { z-index: 103; background: #141413; }
  .pre-l.l2 { z-index: 102; background: var(--accent); }
  .pre-l.l3 { z-index: 101; background: var(--paper); }
  .pre.go .pre-l { animation: pre-up .8s cubic-bezier(.76, 0, .24, 1) forwards; }
  .pre.go .l2 { animation-duration: .64s; animation-delay: .14s; }
  .pre.go .l3 { animation-duration: .5s; animation-delay: .28s; }
  @keyframes pre-up { to { transform: translate3d(0, -100%, 0); } }
  .pre-name { display: flex; white-space: pre; font: 700 clamp(40px, 9.5vw, 132px)/1 var(--head); font-variation-settings: "opsz" 96; letter-spacing: -.05em; color: #faf9f5; -webkit-font-smoothing: antialiased; }
  .pre-name span { position: relative; display: inline-block; }
  .pre-name span b { display: block; font-weight: inherit; color: rgba(250,249,245,.16); }
  .pre-name span i { position: absolute; inset: 0; font-style: normal; color: #faf9f5; clip-path: inset(0 100% 0 0); -webkit-clip-path: inset(0 100% 0 0); }
  .pre-name .dot i { color: var(--accent-ink); }
  .pre-count { position: absolute; right: max(var(--pad), 20px); bottom: max(var(--pad), 20px); display: flex; align-items: baseline; gap: 10px; font: 500 clamp(40px, 7vw, 96px)/1 var(--head); letter-spacing: -.04em; color: #faf9f5; font-variant-numeric: tabular-nums; transition: opacity .3s; }
  .pre-count small { font: 400 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: rgba(250,249,245,.5); }
  .pre.go .pre-count { opacity: 0; }
  @media (prefers-reduced-motion: reduce) { .pre { display: none !important; } }
  .btn {
    display: inline-flex; align-items: center; gap: 12px; padding: 7px 8px 7px 22px; border-radius: 999px;
    background: var(--ink); color: var(--paper); text-decoration: none; font: 500 15px var(--body); border: 1px solid var(--ink);
    transition: transform .2s;
  }
  .btn .ar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 15px; }
  .btn:hover { transform: translateY(-2px); }
  .btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
  .btn.ghost .ar { background: rgba(18,18,20,.07); color: var(--ink); }
  .btn.sm { padding: 5px 6px 5px 16px; font-size: 14px; }
  .btn.sm .ar { width: 28px; height: 28px; font-size: 13px; }

  /* hero (Figma: Hero 1512) */
  .hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; width: min(1272px, 100% - 2 * var(--pad)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 684px) minmax(0, 491px); justify-content: space-between; column-gap: clamp(24px, 6.2vw, 93px); align-items: start; align-content: end; padding: 0 0 7svh; }
  .hl-top { position: relative; height: 105px; }
  .hl-chip { position: absolute; left: 0; top: 72px; padding: 4px 10px; border: 1px solid var(--accent); color: var(--ink); font: 500 12px/normal var(--body); white-space: nowrap; }
  .hl-avatar { position: absolute; left: 108px; top: 0; width: 72px; height: 72px; border-radius: 80px 80px 80px 2px; background: var(--ink); }
  .hl-avatar img { position: absolute; left: 7px; top: 7px; width: 58px; height: 58px; border-radius: 200px; object-fit: cover; }
  .hero h1 { position: relative; margin: 0; padding: 8px; border: 2px solid var(--accent); font: 700 clamp(30px, 3.17vw, 48px)/1.2 var(--head); font-variation-settings: "opsz" 14; font-optical-sizing: none; letter-spacing: -.025em; color: var(--ink); }
  .hero h1 .amp { color: var(--accent); }
  .hd { position: absolute; width: 8px; height: 8px; background: #fff; border: 1px solid var(--accent); }
  .hd.tl { left: -6px; top: -6px; } .hd.tr { right: -6px; top: -6px; } .hd.bl { left: -6px; bottom: -6px; } .hd.br { right: -6px; bottom: -6px; }
  .hero-side { display: flex; flex-direction: column; gap: 24px; padding-top: 108px; }
  .blurb { display: flex; flex-direction: column; gap: 8px; color: var(--ink); }
  .kicker { margin: 0; font: 700 12px/1.5 var(--head); font-variation-settings: "opsz" 14; font-optical-sizing: none; text-transform: uppercase; }
  .lede { margin: 0; font: 400 17px/1.65 var(--body); color: var(--text-2); }
  /* theme wipe */
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
  [data-wipe="in"]::view-transition-new(root) { animation: wipe-in .85s cubic-bezier(.77,0,.18,1) both; z-index: 2; }
  [data-wipe="out"]::view-transition-old(root) { animation: wipe-out .85s cubic-bezier(.77,0,.18,1) both; z-index: 2; }
  @keyframes wipe-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
  @keyframes wipe-out { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 0 100%); } }
  @media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }
  /* Button: flat dark pill, layered soft shadow, a lit dot, a rolling label and a glare that drops in on hover */
  .button { --btn-bg: #282828; --btn-fg: #fff; --btn-dot: #b3ff00; --btn-line: rgba(255,255,255,.08); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 26px; border: 0; border-radius: 32px; background: var(--btn-bg); color: var(--btn-fg); font: 500 14px/16.8px var(--body); letter-spacing: -.04em; text-decoration: none; cursor: pointer; overflow: clip; appearance: none; -webkit-appearance: none; box-shadow: inset 0 0 0 1px var(--btn-line), 0 1px 1px -.5px rgba(0,0,0,.2), 0 3px 2px -1px rgba(0,0,0,.16), 0 7px 4px -2px rgba(0,0,0,.12), 0 12px 8px -3px rgba(0,0,0,.08); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; -webkit-tap-highlight-color: transparent; }
  [data-theme="dark"] .button { --btn-bg: #faf9f5; --btn-fg: #141413; --btn-dot: #c6613f; --btn-line: rgba(0,0,0,.08); }
  .button:active { transform: scale(.98); }
  .button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
  .button .glare { position: absolute; left: 50%; top: -60px; width: 74px; height: 55px; margin-left: -37px; border-radius: 52px; background: #fff; opacity: .5; filter: blur(32px); pointer-events: none; transition: top .45s cubic-bezier(.2,.8,.2,1); }
  .button:hover .glare { top: 30px; }
  .button .dot { position: relative; flex: none; width: 4px; height: 4px; border-radius: 4px; background: var(--btn-dot); }
  .button .roll { position: relative; display: block; height: 16.8px; overflow: hidden; white-space: nowrap; }
  .button .roll span { display: block; height: 16.8px; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
  .button .roll span + span { margin-top: 8px; }
  .button:hover .roll span { transform: translateY(-24.8px); }
  .button .mi { position: relative; width: 20px; height: 20px; filter: invert(1); }
  [data-theme="dark"] .button .mi { filter: none; }
  .button--icon { width: 42px; height: 42px; padding: 0; }
  .button--icon svg { position: relative; display: block; width: 40px; height: 40px; fill: currentColor; stroke: none; }
  .hero-side .button { align-self: flex-start; }
  /* hero layout grid: faint columns + baselines with cursor-lit crosshairs */
  .hgrid { --cell: 76px; position: absolute; left: 0; top: 0; height: 100%; width: 100vw; z-index: 0; pointer-events: none; color: var(--ink);
    background-image: linear-gradient(to right, color-mix(in srgb, currentColor 4%, transparent) 1px, transparent 1px), linear-gradient(to bottom, color-mix(in srgb, currentColor 4%, transparent) 1px, transparent 1px);
    background-size: var(--cell) var(--cell); background-position: var(--ox, 0px) 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 30%, transparent 68%), linear-gradient(to bottom, transparent 0, #000 18%, #000 82%, rgba(0,0,0,.4) 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 30%, transparent 68%), linear-gradient(to bottom, transparent 0, #000 18%, #000 82%, rgba(0,0,0,.4) 100%); mask-composite: intersect; }
  .hero h1, .hl-chip { background: var(--paper); }
  .blurb { background: var(--paper); padding: 14px 16px; margin: -14px -16px; }
  .hgrid .gx { position: absolute; width: 11px; height: 11px; margin: -5px 0 0 -5px; opacity: .5; color: color-mix(in srgb, var(--ink) 16%, transparent); transition: color .2s; }
  .hgrid .gx::before, .hgrid .gx::after { content: ""; position: absolute; background: currentColor; }
  .hgrid .gx::before { left: 5px; top: 0; width: 1px; height: 11px; }
  .hgrid .gx::after { left: 0; top: 5px; width: 11px; height: 1px; }
  .hgrid .gx.lit { color: color-mix(in srgb, var(--accent) 48%, transparent); opacity: .9; }
  .hgrid .gx.tw { animation: tw 2.6s ease-in-out; }
  @keyframes tw { 0%, 100% { color: color-mix(in srgb, var(--ink) 16%, transparent); transform: scale(1); opacity: .5; } 40% { color: color-mix(in srgb, var(--accent) 45%, transparent); transform: scale(1.3); opacity: .9; } }
  .hero.off .gx.tw { animation-play-state: paused; }
  @media (prefers-reduced-motion: reduce) { .hgrid .gx.tw { animation: none; } }
  .hgrid .gl { position: absolute; font: 400 10px/1 var(--mono); letter-spacing: .02em; color: color-mix(in srgb, var(--ink) 38%, transparent); white-space: nowrap; }
  .hero-main, .hero-side { position: relative; z-index: 1; }
  .hero .device { position: absolute; right: 0; top: 26svh; margin: 0; z-index: 2; }

  /* lens device */
  .device {
    --x: 70%; --y: 30%; --r: 114px;
    position: relative; width: 364px; max-width: 100%; flex: none;
    touch-action: pan-y; cursor: crosshair;
  }
  .device::before {
    content: ""; position: absolute; inset: 6% 0; pointer-events: none;
    background: radial-gradient(closest-side, rgba(217,119,87,.1), transparent);
    animation: breathe 7s ease-in-out infinite;
  }
  .device { animation: float 7s ease-in-out infinite; }
  .device:hover { animation-play-state: paused; }
  .sample { animation: inhale 5s ease-in-out infinite; }
  @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
  @keyframes breathe { 0%, 100% { opacity: .55; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.04); } }
  @keyframes inhale { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }
  body.xray .device { --r: 900px; }
  .layer { position: absolute; inset: 0; padding: 8px 20px; }
  .layer.a { position: relative; inset: auto; }
  .layer.b {
    pointer-events: none;
    background: var(--paper);
    background-image: radial-gradient(rgba(18,18,20,.12) 1px, transparent 1px); background-size: 16px 16px;
    -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 calc(100% - 1px), transparent 100%);
            mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 calc(100% - 1px), transparent 100%);
  }
  .lens { position: absolute; left: var(--x); top: var(--y); width: calc(var(--r) * 2); height: calc(var(--r) * 2); transform: translate(-50%, -50%); pointer-events: none; z-index: 3; filter: drop-shadow(0 22px 16px rgba(10,14,20,.3)) drop-shadow(0 4px 5px rgba(10,14,20,.28)); }
  body.xray .lens { opacity: 0; }
  @media (pointer: coarse) { .lens { pointer-events: auto; touch-action: none; cursor: grab; } }
  .apause { position: absolute; right: 20px; bottom: 4px; z-index: 5; display: none; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--ink) 9%, transparent); cursor: pointer; transition: background .2s; }
  .apause:hover { background: color-mix(in srgb, var(--ink) 16%, transparent); }
  .apause:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .apause i { position: absolute; left: 50%; top: 50%; width: 8px; height: 10px; margin: -5px 0 0 -4px; border-left: 2.5px solid var(--ink); border-right: 2.5px solid var(--ink); }
  .apause[aria-pressed="true"] i { width: 0; height: 0; margin: -5px 0 0 -3px; border: 0; border-left: 9px solid var(--ink); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
  .device.demo-on .apause { display: block; }
  .lens .rim { position: absolute; inset: -11px; border-radius: 50%; background: conic-gradient(from 210deg, #1a1c20, #8e949d 10%, #2a2d33 20%, #c9ced6 31%, #3a3e45 42%, #15171a 55%, #7d838c 68%, #d5dae0 78%, #30343a 90%, #1a1c20); -webkit-mask: radial-gradient(circle farthest-side, transparent calc(100% - 20px), #000 calc(100% - 19px)); mask: radial-gradient(circle farthest-side, transparent calc(100% - 20px), #000 calc(100% - 19px)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), inset 0 3px 4px rgba(255,255,255,.4), inset 0 -4px 6px rgba(0,0,0,.6); }
  .lens .glass { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 50% 50%, transparent 62%, rgba(40,70,140,.2) 100%), radial-gradient(120% 90% at 28% 18%, rgba(255,255,255,.4), rgba(255,255,255,.08) 38%, transparent 56%); box-shadow: inset 0 0 0 2px rgba(0,0,0,.4), inset 0 0 22px rgba(0,0,0,.24), inset 0 -10px 18px rgba(255,255,255,.12); }
  .lens .glare { position: absolute; left: 13%; top: 9%; width: 48%; height: 22%; border-radius: 50%; background: linear-gradient(170deg, rgba(255,255,255,.85), rgba(255,255,255,0) 90%); transform: rotate(-32deg); filter: blur(1.2px); opacity: .75; }
  .lens .glare2 { position: absolute; right: 14%; bottom: 12%; width: 22%; height: 9%; border-radius: 50%; background: rgba(255,255,255,.4); filter: blur(3px); transform: rotate(-32deg); }

  /* the UI being inspected */
  .ui { display: flex; flex-direction: column; height: 100%; gap: 10px; }
  .ui-top { display: flex; justify-content: space-between; align-items: center; }
  .ui-chip { font: 500 12px/14px var(--body); padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: #8a3a1c; }
  .ui-checks { display: flex; gap: 10px; }
  .ui-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); font: 500 11px/14px var(--mono); white-space: nowrap; }
  .ui-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #1a8f55; }
  .ui-badge.warn::before { background: #d98a00; }
  .ui-label { margin: 0; padding: 6px 12px; font-size: 14px; line-height: 14px; color: var(--muted); }
  .hero-side .ui p { font-size: 14px; line-height: 1.4; max-width: none; margin: 0; }
  .hero-side .ui .ui-label { margin-top: 8px; }
  .ui-meta { margin: 0; padding: 6px 12px; font-size: 13px; line-height: 14px; color: var(--muted); }
  .ui-sp { flex: 1; }
  .stage { position: relative; height: 108px; border-radius: 14px; display: grid; place-items: center; }
  .sample { border: 0; background: var(--accent); color: var(--on-accent); font-family: var(--body); font-size: 15px; font-weight: var(--cw, 500); border-radius: var(--cr, 25px); padding: var(--cpy, 14px) calc(var(--cpy, 14px) * 2); cursor: default; white-space: nowrap; }
  .cssout { display: none; margin: 0; font: 400 10.5px/15px var(--mono); white-space: pre; }
  .cssout b { font-weight: 500; color: var(--accent); }
  .ctl { display: grid; grid-template-columns: 120px minmax(0, 1fr) 56px; gap: 10px; align-items: center; min-height: 26px; font-size: 13px; }
  .ctl label { padding: 6px 12px; line-height: 14px; color: var(--muted); }
  .ctl output { padding: 6px 12px; font: 400 12px/14px var(--mono); text-align: right; }
  .ctl input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; background: linear-gradient(to right, var(--ink) var(--p, 50%), rgba(18,18,20,.12) var(--p, 50%)); cursor: pointer; }
  .ctl input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(18,18,20,.25); }
  .ctl input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(18,18,20,.25); }

  /* x-ray rendering of the same UI */
  .xr, .xr * { color: var(--ink); }
  .xr .ui-chip, .xr .ui-badge, .xr .ui-label, .xr .ui-meta, .xr .stage, .xr .ctl label, .xr .ctl output { background: transparent; outline: 1px dashed rgba(217,119,87,.8); outline-offset: 0; border-radius: 6px; font-family: var(--mono) !important; letter-spacing: 0 !important; font-size: 11px !important; font-weight: 400 !important; position: relative; box-shadow: none; }
  .xr .stage { display: block; place-items: start stretch; padding: 8px 12px; overflow: hidden; background-image: none; }
  .xr .ui-label, .xr .ui-meta { align-self: flex-start; }
  .xr .ctl label { justify-self: start; }
  .xr .ctl output { justify-self: end; }
  .xr .sample { display: none; }
  .xr .cssout { display: block; }
  .xr .ctl input[type=range] { height: 8px; border-radius: 4px; border: 1px dashed rgba(217,119,87,.8); background: linear-gradient(to right, rgba(217,119,87,.35) var(--p, 50%), transparent var(--p, 50%)); }
  .xr .ctl input[type=range]::-webkit-slider-thumb { background: transparent; border: 1px dashed var(--accent); box-shadow: none; width: 14px; height: 14px; }
  [data-dim] { position: relative; }
  .xr [data-dim]::after { content: attr(data-dim); position: absolute; right: 6px; top: -9px; padding: 0 5px; background: var(--paper); color: var(--accent); font: 400 10px/1.4 var(--mono); }

  /* sections */
  section { position: relative; }
  :root { --section-gap: 200px; }
  @media (max-width: 760px) { :root { --section-gap: 160px; } }
  .sec { padding: var(--section-gap) 0 0; }
  .eyebrow, .ab-label { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; color: var(--muted); }
  .ab-label { margin-top: 0; font: 400 12px/1.4 var(--mono); letter-spacing: .02em; }
  .eyebrow b, .ab-label b { color: var(--accent-ink); font-weight: 500; }
  .eyebrow::after, .ab-label::after { content: ""; flex: 0 0 56px; height: 1px; background: var(--line); }
  h2 { margin: 0 0 22px; font: 600 clamp(34px, 4.6vw, 66px)/1.1 var(--head); letter-spacing: -.04em; text-wrap: balance; }
  h2 em { font-style: normal; color: var(--accent); }
  .lead { max-width: 620px; color: var(--muted); font-size: 19px; margin: 0 0 8px; }

  /* build: a full-screen drawing scrubbed by scroll, ending in a handoff to engineering */
  .build { position: relative; margin-top: var(--section-gap); border-top: 1px solid var(--line); }
  .build.js { height: 560vh; }
  @media (max-width: 760px) { .build.js { height: 380vh; } }
  .build-pin { position: relative; }
  .build.js .build-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
  .bstage { --s: 1; position: absolute; inset: 0; }
  .build:not(.js) .bstage { position: relative; height: 70vh; min-height: 520px; overflow: hidden; }
  .bscale { position: absolute; left: 50%; top: 50%; width: 1440px; height: 900px; margin: -450px 0 0 -720px; transform: translate(0, var(--dy, 0px)) scale(var(--s)); transform-origin: 50% 50%; }
  .bstage.narrow .bscale { top: 34%; }
  .bdots { position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--ink) 18%, transparent) 1px, transparent 1.5px); background-size: 24px 24px; opacity: var(--g1, 0); -webkit-mask-image: radial-gradient(60% 62% at 50% 44%, #000, transparent); mask-image: radial-gradient(60% 62% at 50% 44%, #000, transparent); }

  .ln { fill: none; stroke: var(--accent); stroke-width: calc(1px / var(--s)); stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--t, 1)); }
  .ln.o { --t: clamp(0, calc(var(--oraw, 0) * 14 - var(--n, 0)), 1); }
  .bguides, .bdims { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .bguides .soft { opacity: .55; }
  .bguides .faint { opacity: .28; }
  .gdot { fill: var(--accent); opacity: calc(var(--g6, 0) * (1 - var(--co, 0))); }
  .gtag, .dimtxt { font: 400 11px var(--mono); fill: var(--accent); }
  .gtag { opacity: var(--gl, 0); }
  .dimtxt { text-anchor: middle; }
  .dimhead { fill: var(--accent); }
  .bguides { opacity: var(--gfade, 1); }

  .bwin { position: absolute; left: 270px; top: 120px; width: 900px; height: 520px; transform: translateX(calc(var(--sh, 0) * -150px)) scale(calc(1 - var(--sh, 0) * .06)); will-change: transform; }
  .bwin::before { content: ""; position: absolute; inset: 0; border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1px rgba(20,30,90,.07), 0 2px 4px rgba(20,30,90,.04), 0 14px 28px -8px rgba(20,30,90,.1), 0 56px 90px -30px rgba(20,30,90,.28); opacity: var(--fill, 0); }
  .bwin > * { position: absolute; }
  .wsvg { left: 0; top: 0; width: 900px; height: 520px; overflow: visible; }
  .wsvg .blk { opacity: calc(1 - var(--ty, 0)); }
  .wcols { left: 40px; top: 0; width: 820px; height: 520px; display: flex; gap: 16px; opacity: var(--cout, 0); }
  .wcols i { flex: 1; background: color-mix(in srgb, var(--accent) 9%, transparent); transform-origin: top; transform: scaleY(clamp(0, calc(var(--cin, 0) * 16 - var(--i, 0)), 1)); }
  .wbar { left: 20px; top: 16px; display: flex; gap: 8px; opacity: var(--oraw, 0); }
  .wbar i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--faint); }
  .wlogo, .wnavl, .wnb, .wkick, .whead, .wstrip, .wrule { opacity: var(--ty, 0); filter: blur(calc((1 - var(--ty, 0)) * 8px)); }
  .wlogo { left: 40px; top: 57px; width: 29px; height: 28px; overflow: hidden; }
  .wlogo .p, .wlogo .rot { position: absolute; }
  .wlogo img { position: absolute; display: block; inset: 0; width: 100%; height: 100%; max-width: none; }
  .wnavl { left: 0; top: 58px; width: 900px; height: 26px; font: 500 13px/26px var(--body); color: var(--ink); }
  .wnavl > span { position: absolute; top: 0; white-space: nowrap; }
  .wnavl svg { width: 9px; height: 9px; margin-left: 4px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .6; }
  .wnb { top: 55px; height: 32px; padding: 0; border-radius: 999px; font: 600 13px/32px var(--body); text-align: center; }
  .wnb.o { left: 597.3px; width: 123.3px; color: var(--accent-ink); background: var(--card); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent), 0 1px 2px rgba(20,30,90,.08); }
  .wnb.f { left: 736.7px; width: 123.3px; color: var(--on-accent); background: var(--accent); }
  .wrule { left: 0; top: 97px; width: 900px; height: 1px; background: color-mix(in srgb, var(--ink) 9%, transparent); }
  .wkick { left: 40px; top: 132px; font: 500 12.5px/16px var(--body); color: var(--ink); white-space: nowrap; }
  .wkick span { color: var(--muted); font-weight: 400; }
  .wguide { left: 20px; width: 560px; height: 1px; background: var(--accent); opacity: calc(var(--tyg, 0) * .75); }
  .wnote { left: 372px; top: 163px; padding: 0 5px; background: var(--card); color: var(--accent); font: 400 11px/14px var(--mono); opacity: var(--tyg, 0); white-space: nowrap; }
  .whead { left: 40px; top: 170px; width: 541.3px; margin: 0; font: 600 34px/40px var(--head); font-variation-settings: "opsz" 14; letter-spacing: -.035em; color: var(--ink); }
  .whead em { font-style: normal; background: linear-gradient(90deg, var(--accent), #e8956f 65%, #f3c09a); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .whead span { color: color-mix(in srgb, var(--ink) 52%, var(--card)); }
  .wurl { left: 50%; top: 10px; width: 220px; height: 24px; margin-left: -110px; border-radius: 7px; background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--muted); font: 400 11px/24px var(--mono); text-align: center; opacity: var(--ty, 0); }
  .wbtn { top: 330px; height: 36px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; overflow: hidden; font: 600 14px var(--body); text-decoration: none; opacity: var(--ty, 0); }
  .wbtn svg { flex: none; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .wbtn.p { left: 40px; width: 183.3px; color: color-mix(in srgb, var(--on-accent) calc(var(--co, 0) * 100%), var(--ink)); pointer-events: none; box-shadow: inset 0 1px 0 rgba(255,255,255,calc(var(--co, 0) * .22)), 0 1px 2px rgba(20,30,90,calc(var(--co, 0) * .3)); }
  .wbtn.p .fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 90%, #fff), var(--accent)); clip-path: inset(0 calc((1 - var(--co, 0)) * 100%) 0 0); }
  .wbtn.p span, .wbtn.p svg { position: relative; }
  .wbtn.p.live { pointer-events: auto; cursor: pointer; }
  .wbtn.p.live svg { animation: nudge 1.8s ease-in-out infinite; }
  @keyframes nudge { 50% { transform: translateX(3px); } }
  .wbtn.s { left: 239.3px; width: 132.9px; color: var(--accent-ink); background: var(--card); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 14%, transparent); }
  .wstrip { left: 32px; top: 436px; width: 696.7px; height: 84px; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid color-mix(in srgb, var(--ink) 9%, transparent); }
  .wstrip i { display: flex; align-items: center; justify-content: center; padding: 0 12px; text-align: center; font: 600 17px/1 var(--head); font-style: normal; letter-spacing: -.02em; color: color-mix(in srgb, var(--ink) 72%, transparent); border-left: 1px solid color-mix(in srgb, var(--ink) 7%, transparent); }
  .wart { left: 520px; top: 45px; width: 380px; height: 391px; overflow: hidden; opacity: var(--co, 0); transform: translateX(calc((1 - var(--co, 0)) * 24px)); -webkit-mask-image: linear-gradient(to right, transparent 0, #000 55%); mask-image: linear-gradient(to right, transparent 0, #000 55%); contain: paint; border-radius: 0 20px 20px 0; }
  .rb { position: absolute; inset: -8%; opacity: .55; background: radial-gradient(38% 34% at 70% 22%, rgba(217,119,87,.5), transparent 70%), radial-gradient(34% 30% at 42% 52%, rgba(240,170,130,.6), transparent 70%), radial-gradient(36% 32% at 82% 74%, rgba(232,130,90,.6), transparent 70%), radial-gradient(30% 26% at 55% 92%, rgba(255,205,184,.55), transparent 70%); filter: blur(14px) saturate(1.1); animation: aurora 16s ease-in-out infinite alternate; }
  .rb::after { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 40% at 30% 30%, rgba(255,255,255,.55), transparent 70%); mix-blend-mode: soft-light; animation: aurora2 22s ease-in-out infinite alternate; }
  @keyframes aurora { 0% { transform: translate(0, 0) rotate(0deg) scale(1); } 100% { transform: translate(-6%, 5%) rotate(8deg) scale(1.08); } }
  @keyframes aurora2 { 0% { transform: translate(10%, 0); } 100% { transform: translate(-10%, 12%); } }
  @media (prefers-reduced-motion: reduce) { .rb, .rb::after { animation: none; } }
  .bsw { position: absolute; left: 1000px; top: 70px; display: flex; gap: 22px; opacity: var(--sw, 0); font: 400 11px var(--mono); color: var(--muted); }
  .bsw span { display: grid; justify-items: center; gap: 6px; }
  .bsw i { width: 24px; height: 24px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }

  .bcode { position: absolute; left: 760px; top: 270px; width: 540px; height: 430px; border-radius: 16px; z-index: 3; background: #14181d; color: #e8eaed; box-shadow: 0 60px 90px -30px rgba(10,14,20,.7), 0 18px 32px -14px rgba(10,14,20,.4), inset 0 0 0 1px rgba(255,255,255,.07); opacity: var(--cd, 0); transform: translate(calc((1 - var(--cd, 0)) * 56px), calc((1 - var(--cd, 0)) * 36px)) scale(calc(.94 + var(--cd, 0) * .06)); transform-origin: 100% 100%; overflow: hidden; pointer-events: none; font: 400 15px/24px var(--mono); }
  .ctabs { position: relative; display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .ctabs span { position: relative; z-index: 1; padding: 6px 12px; font: 500 12px/16px var(--mono); color: rgba(255,255,255,.5); transition: color .3s; }
  .ctabs span.on { color: #fff; }
  .tabpill { position: absolute; top: 12px; left: 14px; height: 28px; border-radius: 8px; background: rgba(255,255,255,.1); transition: transform .45s cubic-bezier(.3,.7,.2,1), width .45s cubic-bezier(.3,.7,.2,1); }
  .cwho { margin-left: auto; display: flex; align-items: center; gap: 6px; font: 600 12px/1 var(--body); }
  .cwho b { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: rgba(255,255,255,.5); font-weight: 600; }
  .cwho b.on { background: var(--accent); color: var(--on-accent); }
  .cbody { padding: 14px 18px; }
  .cl { display: flex; gap: 14px; min-height: 24px; white-space: pre; }
  .cl .g { flex: none; width: 14px; text-align: right; color: rgba(255,255,255,.28); }
  .cl.eng { margin: 0 -18px; padding: 0 18px; background: rgba(62,207,142,.12); box-shadow: inset 3px 0 0 #3ecf8e; }
  .cl.eng .g { color: #3ecf8e; }
  .cbody .k { color: #86a0ff; } .cbody .s { color: #9fd4a8; } .cbody .c { color: rgba(255,255,255,.4); } .cbody .v { color: #ffcf8a; }
  .prbody { display: none; padding: 16px 18px; gap: 12px; flex-direction: column; font: 400 13px/18px var(--body); color: #e8eaed; }
  .bcode.is-pr #cbody { display: none; }
  .bcode.is-pr .prbody { display: flex; }
  .pr-i { opacity: 0; translate: 0 8px; transition: opacity .5s cubic-bezier(.3,.7,.2,1), translate .5s cubic-bezier(.3,.7,.2,1); }
  .pr-i.on { opacity: 1; translate: 0 0; }
  .pr-h { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.5); font: 500 12px/16px var(--mono); }
  .pr-br { margin-left: auto; padding: 3px 9px; border-radius: 6px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.7); }
  .pr-br u { text-decoration: none; opacity: .5; padding: 0 3px; }
  .pr-st { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 9px; border-radius: 999px; background: rgba(62,207,142,.16); color: #3ecf8e; font: 600 11.5px/14px var(--body); transition: background .4s, color .4s; }
  .pr-st i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
  .pr-st em { font-style: normal; }
  .pr-st.review { background: rgba(255,207,138,.16); color: #ffcf8a; }
  .pr-st.merged { background: rgba(165,140,255,.2); color: #c1b0ff; }
  .pr-t { font: 600 19px/24px var(--head); letter-spacing: -.02em; color: #fff; }
  .pr-m { color: rgba(255,255,255,.5); font: 400 12px/16px var(--mono); margin-top: -4px; }
  .pr-diff { padding: 6px 0; border-radius: 10px; background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); font: 400 13px/24px var(--mono); min-height: 156px; overflow: hidden; }
  .pr-diff .cl { padding: 0 14px; margin: 0; }
  .pr-diff .cl.eng { margin: 0; }
  .pr-ck { display: flex; flex-wrap: wrap; gap: 6px; }
  .pr-ck span { padding: 4px 11px 4px 9px; border-radius: 999px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.45); font: 500 11.5px/14px var(--body); transition: background .4s, color .4s; }
  .pr-ck span::before { content: "\25CB"; margin-right: 6px; font-size: 10px; }
  .pr-ck span.ok { background: rgba(62,207,142,.14); color: #3ecf8e; }
  .pr-ck span.ok::before { content: "\2713"; font-weight: 700; }
  .pr-rv { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(255,255,255,.05); color: rgba(255,255,255,.8); font: 500 12.5px/16px var(--body); }
  .pr-rv b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 11px; }
  .pr-rv em { margin-left: auto; font: 500 11.5px/16px var(--mono); font-style: normal; color: rgba(255,255,255,.5); }
  .pr-rv.merged em { color: #c1b0ff; }
  .caret { display: inline-block; width: 8px; height: 17px; margin: 3px 0 0 1px; background: #fff; animation: blink 1s steps(1) infinite; }
  @keyframes blink { 50% { opacity: 0; } }

  /* phones: the shipped screen is the mobile version of the site, at real size */
  .wsvgm, .wsvgt, .wburger { display: none; }
  .wsvgm .blk, .wsvgt .blk { opacity: calc(1 - var(--ty, 0)); }
  .wsvgt { left: 0; top: 0; width: 560px; height: 520px; overflow: visible; }
  .wsvgm { left: 0; top: 0; width: 360px; height: 520px; overflow: visible; }
  .wburger { left: 312px; top: 62px; width: 24px; height: 18px; opacity: var(--ty, 0); }
  .wburger i { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--ink); }
  .wburger i::before, .wburger i::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--ink); }
  .wburger i::before { top: -7px; } .wburger i::after { top: 7px; }
  .bstage.narrow .wsvg, .bstage.narrow .wnavl, .bstage.narrow .wnb, .bstage.narrow .wguide, .bstage.narrow .wnote, .bstage.narrow .bdims, .bstage.narrow .bguides, .bstage.narrow .bsw { display: none; }
  .bstage.narrow .wsvgm, .bstage.narrow .wburger { display: block; }
  .bstage.narrow .bwin { left: 540px; top: 190px; width: 360px; height: 520px; transform: none; }
  .bstage.narrow .wurl { width: 170px; margin-left: -85px; }
  .bstage.narrow .wcols { left: 24px; width: 312px; height: 520px; gap: 12px; }
  .bstage.narrow .wcols i:nth-child(n+5) { display: none; }
  .bstage.narrow .wlogo { left: 24px; }
  .bstage.narrow .wrule { width: 360px; }
  .bstage.narrow .wkick { left: 24px; top: 112px; width: 312px; white-space: normal; font-size: 12.5px; line-height: 18px; }
  .bstage.narrow .whead { left: 24px; top: 160px; width: 312px; font-size: 30px; line-height: 34px; }
  .bstage.narrow .wbtn { height: 36px; width: 312px; left: 24px; font-size: 14px; }
  .bstage.narrow .wbtn.p { top: 346px; width: 312px; }
  .bstage.narrow .wbtn.s { top: 390px; width: 312px; }
  .bstage.narrow .wstrip { left: 0; top: 458px; width: 360px; height: 62px; grid-template-columns: repeat(4, 1fr); }
  .bstage.narrow .wstrip i:nth-child(5) { display: none; }
  .bstage.narrow .wstrip i { padding: 0 4px; font-size: 14px; }
  .bstage.narrow .wart { left: 150px; top: 45px; width: 210px; height: 413px; border-radius: 0; }
  .bstage.narrow .bcode { left: 552px; top: 404px; width: 336px; height: 312px; font-size: 12.5px; line-height: 20px; border-radius: 14px; }
  .bstage.narrow .cl { min-height: 20px; gap: 10px; }
  .bstage.narrow .cbody { padding: 10px 12px; }
  .bstage.narrow .prbody { padding: 12px 14px; gap: 9px; }
  .bstage.narrow .pr-t { font-size: 16px; line-height: 20px; }
  .bstage.narrow .pr-diff { min-height: 0; font-size: 11px; line-height: 18px; padding: 4px 0; }
  .bstage.narrow .pr-diff .cl { min-height: 18px; }
  .bstage.narrow .pr-m { display: none; }
  .bstage.narrow .pr-ck span { padding: 3px 7px 3px 6px; font-size: 10.5px; }
  .bstage.narrow .pr-rv { padding: 7px 10px; font-size: 12px; }
  /* tablets: the same phone-style screen, widened to 560 so the nav keeps its links and the hero uses two sides */
  .bstage.tablet .wsvgm, .bstage.tablet .wburger { display: none; }
  .bstage.tablet .wsvgt, .bstage.tablet .wnavl { display: block; }
  .bstage.tablet .wnb.f { display: block; left: 436px; width: 100px; }
  .bstage.tablet .bwin { left: 440px; width: 560px; }
  .bstage.tablet .wrule { width: 560px; }
  .bstage.tablet .wcols { width: 512px; }
  .bstage.tablet .wcols i:nth-child(n+5) { display: block; }
  .bstage.tablet .wcols i:nth-child(n+9) { display: none; }
  .bstage.tablet .wurl { width: 200px; margin-left: -100px; }
  .bstage.tablet .wkick { top: 110px; width: 480px; white-space: nowrap; font-size: 13px; }
  .bstage.tablet .whead { top: 150px; width: 400px; font-size: 36px; line-height: 40px; }
  .bstage.tablet .wbtn.p { top: 340px; left: 24px; width: 183.3px; }
  .bstage.tablet .wbtn.s { top: 340px; left: 223.3px; width: 132.9px; }
  .bstage.tablet .wstrip { width: 560px; grid-template-columns: repeat(5, 1fr); }
  .bstage.tablet .wstrip i:nth-child(5) { display: flex; }
  .bstage.tablet .wstrip i { font-size: 15px; }
  .bstage.tablet .wart { left: 410px; width: 150px; }
  .bstage.tablet .bcode { left: 600px; top: 300px; width: 440px; height: 360px; font-size: 13.5px; line-height: 22px; }
  .bstage.tablet .cl { min-height: 22px; }
  .bstage.tablet .pr-diff { font-size: 12.5px; line-height: 20px; }
  .bstage.tablet .pr-diff .cl { min-height: 20px; }
  .bstage.tablet .pr-m { display: block; }
  .bstage.tablet .pr-ck span { font-size: 11.5px; padding: 4px 10px 4px 8px; }
  .bflow { position: absolute; right: var(--mx); bottom: 56px; height: 230px; display: flex; align-items: center; opacity: var(--fa, 0); translate: 0 calc((1 - var(--fa, 0)) * 18px); }
  .fcap { position: relative; display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px; background: linear-gradient(180deg, #1e252c, #12161b); box-shadow: 0 26px 40px -20px rgba(10,14,20,.6), inset 0 1px 0 rgba(255,255,255,.12), inset 0 0 0 1px rgba(255,255,255,.05); }
  .fcap::before { content: ""; position: absolute; left: 14%; right: 14%; bottom: -22px; height: 26px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 60%, transparent), transparent); filter: blur(9px); opacity: calc(.25 + var(--flow, 0) * .75); z-index: -1; }
  .fs { display: flex; align-items: center; height: 44px; padding: 0 13px; border-radius: 999px; color: rgba(255,255,255,.34); font: 500 12px/1 var(--mono); white-space: nowrap; overflow: hidden; transition: color .35s, background .35s, padding .4s cubic-bezier(.3,.7,.2,1), box-shadow .4s; }
  .fs svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .fs span { display: inline-block; max-width: 0; margin-left: 0; opacity: 0; transition: max-width .5s cubic-bezier(.3,.7,.2,1), opacity .35s, margin .4s; }
  .fs.done { color: #fff; background: rgba(255,255,255,.08); }
  .fs.cur { padding: 0 16px 0 13px; color: var(--on-accent); background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 65%, #f3c09a)); box-shadow: 0 8px 22px -6px color-mix(in srgb, var(--accent) 75%, transparent); }
  .fs.cur span { max-width: 120px; margin-left: 8px; opacity: 1; }
  .fstat { position: absolute; left: 50%; top: calc(50% + 46px); transform: translateX(-50%); font: 400 11px/14px var(--mono); color: var(--muted); white-space: nowrap; }
  .fstat::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--accent); animation: pulse2 1.4s ease-in-out infinite; }
  @keyframes pulse2 { 50% { opacity: .35; transform: scale(.7); } }

  .bhud { --mx: max(var(--pad), calc((100vw - var(--rail) - 1272px) / 2)); position: absolute; inset: 0; pointer-events: none; }
  .btitle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .bpct { position: absolute; right: var(--mx); top: 76px; font: 500 clamp(40px, 4.6vw, 64px)/1 var(--head); letter-spacing: -.04em; color: rgba(28,33,39,.16); font-variant-numeric: tabular-nums; }
  [data-theme="dark"] .bpct { color: rgba(250,249,245,.18); }
  .bpct small { font-size: .45em; }
  .bp-copy { position: absolute; left: var(--mx); bottom: 56px; width: min(480px, 42vw); height: 230px; }
  .bp-step { position: absolute; left: 0; top: 50%; opacity: 0; translate: 0 calc(-50% + 16px); transition: opacity .22s, translate .3s; pointer-events: none; }
  .bp-step.past { translate: 0 calc(-50% - 16px); }
  .bp-step.on { opacity: 1; translate: 0 -50%; transition: opacity .5s .16s, translate .6s .16s cubic-bezier(.2, .8, .2, 1); pointer-events: auto; }
  .bp-step .n { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--accent-ink); }
  .bp-step h3 { margin: 0 0 12px; font: 600 clamp(34px, 4.6vw, 66px)/1.1 var(--head); letter-spacing: -.04em; }
  .bp-step p { margin: 0; color: var(--text-2); font: 400 17px/1.65 var(--body); }
  .bp-step p.ai { margin-top: 10px; color: var(--accent-ink); font: 500 13px/20px var(--mono); }
  .skip { position: absolute; right: var(--mx); bottom: 64px; color: var(--muted); text-decoration: none; pointer-events: auto; }
  .skip:hover { color: var(--accent-ink); }
  .build:not(.js) .bhud { position: relative; inset: auto; pointer-events: auto; padding: 24px var(--pad) 0; }
  .build:not(.js) .btitle, .build:not(.js) .bpct, .build:not(.js) .bp-copy, .build:not(.js) .skip { position: static; }
  .build:not(.js) .bp-copy { display: grid; gap: 26px; width: auto; height: auto; margin-top: 20px; }
  .build:not(.js) .bp-step { position: static; opacity: 1; translate: none; }
  .build:not(.js) .bflow { position: static; height: auto; margin-top: 20px; opacity: 1; translate: none; }

  /* work: stacked project cards */
  .shot { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--c1), var(--c2)); }
  .shot-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
  .mock { position: absolute; left: 12%; top: 13%; width: 78%; height: 78%; padding: 7% 7% 0; border-radius: 16px 0 0 0; background: #fff; box-shadow: 0 30px 60px -30px rgba(28,33,39,.45); }
  .flip .mock { left: auto; right: 12%; border-radius: 0 16px 0 0; }
  .mock i { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; background: rgba(28,33,39,.14); }
  .mock b { display: block; width: 46%; height: 20px; margin: 22px 0 12px; border-radius: 6px; background: rgba(28,33,39,.82); }
  .mock span { display: block; width: 72%; height: 9px; margin-bottom: 9px; border-radius: 5px; background: rgba(28,33,39,.12); }
  .mock span:nth-of-type(2) { width: 58%; }
  .mock em { display: block; width: 26%; height: 28px; margin-top: 18px; border-radius: 999px; background: var(--accent); }
  [data-theme="dark"] .pills span { background: transparent; }
  [data-theme="dark"] .cs i { background: var(--accent); color: var(--on-accent); }

  /* principles */
  .stmt { margin: 0; max-width: 1080px; font: 600 clamp(34px, 4.6vw, 66px)/1.1 var(--head); font-variation-settings: "opsz" 14; letter-spacing: -.04em; color: var(--ink); text-wrap: balance; }
  .stmt .dim { color: color-mix(in srgb, var(--ink) 58%, var(--paper)); }
  .pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; margin-top: clamp(56px, 8vw, 110px); }
  .pgrid > div { padding: 26px 0 8px; border-top: 1px solid var(--line); }
  .pgrid h3 { margin: 0 0 10px; font: 500 clamp(16px, 1.25vw, 18px)/1.25 var(--body); letter-spacing: -.005em; color: var(--ink); }
  .pgrid p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.6; }

  /* builds */
  .tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
  .tile { background: var(--card); border-radius: 20px; padding: 28px; box-shadow: 0 0 0 1px var(--line); min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; }
  .tile h3 { margin: 0 0 10px; font: 500 30px/1 var(--head); letter-spacing: -.035em; }
  .tile p { margin: 0; color: var(--muted); font-size: 16px; }
  .stack { margin: 22px 0 0; color: var(--muted); }

  /* closing */
  .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
  footer { position: relative; z-index: 1; isolation: isolate;  margin-top: 0; margin-left: 0; padding: var(--section-gap) 0 clamp(40px, 6vw, 80px) var(--rail); background: var(--paper); color: var(--ink); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
  .fglow { position: absolute; inset: 6px 0 0 0; z-index: 0; pointer-events: none; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 10px, rgba(0,0,0,.03) 70px, rgba(0,0,0,.12) 140px, rgba(0,0,0,.32) 220px, rgba(0,0,0,.66) 300px, #000 400px); mask-image: linear-gradient(to bottom, transparent 0, transparent 10px, rgba(0,0,0,.03) 70px, rgba(0,0,0,.12) 140px, rgba(0,0,0,.32) 220px, rgba(0,0,0,.66) 300px, #000 400px); }
  .fglow::before { content: ""; position: absolute; inset: -18%; background:
    radial-gradient(64% 70% at 100% -6%, #3a1408 0%, rgba(58,20,8,.92) 18%, rgba(58,20,8,0) 70%),
    radial-gradient(58% 82% at 92% 10%, #d9582b 0%, rgba(217,88,43,.88) 34%, rgba(217,88,43,0) 72%),
    radial-gradient(50% 66% at 74% 2%, #ef8f5e 0%, rgba(239,143,94,.78) 40%, rgba(239,143,94,0) 74%),
    radial-gradient(44% 70% at 100% 64%, #e8825a 0%, rgba(232,130,90,.7) 34%, rgba(232,130,90,0) 72%),
    radial-gradient(42% 52% at 60% -4%, #f7c9a8 0%, rgba(247,201,168,.62) 38%, rgba(247,201,168,0) 74%),
    radial-gradient(60% 40% at 38% 0%, rgba(255,228,208,.9) 0%, rgba(255,228,208,0) 70%);
    filter: saturate(1.1) blur(10px); opacity: .55; animation: fglow 22s ease-in-out infinite alternate; will-change: transform; }
  .fglow::after { content: ""; position: absolute; inset: 0; opacity: .12; mix-blend-mode: multiply; -webkit-mask-image: radial-gradient(75% 110% at 100% 0%, #000 0%, transparent 72%); mask-image: radial-gradient(75% 110% at 100% 0%, #000 0%, transparent 72%); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
  @keyframes fglow { 0% { transform: translate3d(0, 0, 0) scale(1); } 100% { transform: translate3d(-3%, 4%, 0) scale(1.06) rotate(2deg); } }
  [data-theme="dark"] .fglow::before { opacity: .5; }
  @media (prefers-reduced-motion: reduce) { .fglow::before { animation: none; } }
  footer .wrap { position: relative; z-index: 2; }
  .fpaper { position: relative; z-index: 2; margin-top: 0; padding-top: 0; }
  footer::after { content: ""; position: absolute; inset: 4px 0 0 0; z-index: 0; pointer-events: none; opacity: .5; mix-blend-mode: multiply; -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 8px, rgba(0,0,0,.04) 60px, rgba(0,0,0,.16) 120px, rgba(0,0,0,.4) 190px, rgba(0,0,0,.72) 260px, #000 340px); mask-image: linear-gradient(to bottom, transparent 0, transparent 8px, rgba(0,0,0,.04) 60px, rgba(0,0,0,.16) 120px, rgba(0,0,0,.4) 190px, rgba(0,0,0,.72) 260px, #000 340px); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='.014 .022' numOctaves='4' seed='9' result='n'/><feDiffuseLighting in='n' lighting-color='%23fff' surfaceScale='4'><feDistantLight azimuth='235' elevation='62'/></feDiffuseLighting></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>"); }
  .fcontact { margin-bottom: clamp(64px, 9vw, 120px); }
  .fcontact h2 { max-width: 1040px; margin: 0; color: var(--ink); }
  .flead { margin: 22px 0 0; max-width: 520px; color: var(--text-2); font: 400 17px/1.65 var(--body); }
  .flinks { display: flex; flex-wrap: wrap; gap: 14px clamp(32px, 6vw, 96px); }
  .flinks a { padding: 6px 0; color: var(--ink); font: 500 clamp(19px, 1.7vw, 24px)/1.2 var(--head); letter-spacing: -.02em; text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size .5s cubic-bezier(.77, 0, .175, 1); }
  .flinks a:hover, .flinks a:focus-visible { background-size: 100% 2px; }
  .flegal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px clamp(24px, 4vw, 52px); margin: clamp(36px, 5vw, 64px) 0 0; font-size: 14px; color: var(--ink); }
  .flegal a, .flegal button { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: none; cursor: pointer; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s cubic-bezier(.77, 0, .175, 1); }
  .flegal a:hover, .flegal button:hover, .flegal a:focus-visible, .flegal button:focus-visible { background-size: 100% 1px; }
  .flinks a:focus-visible, .flegal a:focus-visible, .flegal button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }


  .work-all { margin-top: 64px; }
  /* testimonials: one quote at a time inside a crop-mark frame that closes and opens between quotes */
  /* paper texture behind the testimonials (plain paper colour, no gradient) */
  #kind-words { position: relative; isolation: isolate; }
  #kind-words::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5; mix-blend-mode: multiply; -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.18) 90px, #000 260px, #000 calc(100% - 260px), rgba(0,0,0,.18) calc(100% - 90px), transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.18) 90px, #000 260px, #000 calc(100% - 260px), rgba(0,0,0,.18) calc(100% - 90px), transparent 100%); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='.014 .022' numOctaves='4' seed='14' result='n'/><feDiffuseLighting in='n' lighting-color='%23fff' surfaceScale='4'><feDistantLight azimuth='235' elevation='62'/></feDiffuseLighting></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>"); }
  #kind-words > * { position: relative; z-index: 1; }
  /* on dark paper the texture is a faint light grain, not a multiplied grey slab */
  [data-theme="dark"] #kind-words::before { opacity: .06; mix-blend-mode: normal; }
  [data-theme="dark"] footer::after { opacity: .1; }
  #kind-words .eyebrow { justify-content: center; }
  #kind-words .eyebrow::before { content: ""; flex: 0 0 56px; height: 1px; background: var(--line); }
  #kind-words h2 { text-align: center; }
  .tsub { margin: 14px auto 0; max-width: 560px; text-align: center; text-wrap: balance; color: var(--text-2); font: 400 17px/1.65 var(--body); }
  .tstage { --tw: min(800px, 100%); --edge: color-mix(in srgb, var(--ink) 22%, transparent); display: flex; align-items: center; margin-top: 56px; }
  .thair { position: relative; flex: 1 1 0; min-width: 0; height: 1px; background: var(--edge); }
  .thair.l { margin-right: 64px; } .thair.r { margin-left: 64px; }
  .thair::after { content: ""; position: absolute; top: -6px; width: 1px; height: 13px; background: var(--edge); }
  .thair.l::after { right: 0; } .thair.r::after { left: 0; }
  .tframe { position: relative; flex: none; width: var(--tw); transition: width .75s cubic-bezier(.7, 0, .2, 1); outline: none; }
  .tframe:focus-visible { outline: 2px solid var(--accent); outline-offset: 10px; }
  .tstage.closed .tframe { width: 60px; transition-duration: .7s; }
  .tclip > * { opacity: 1; transition: opacity .5s .35s ease; }
  .tstage.closed .tclip > * { opacity: 0; transition: opacity .25s ease; }
  .tc { position: absolute; width: 26px; height: 26px; border: 0 solid var(--ink); }
  .tc.a { left: 0; top: 0; border-width: 1.5px 0 0 1.5px; } .tc.b { right: 0; top: 0; border-width: 1.5px 1.5px 0 0; }
  .tc.c { left: 0; bottom: 0; border-width: 0 0 1.5px 1.5px; } .tc.d { right: 0; bottom: 0; border-width: 0 1.5px 1.5px 0; }
  .tclip { position: relative; overflow: hidden; padding: 52px 0 56px; display: grid; grid-template-rows: auto 1fr; justify-items: center; }
  .tdots { display: flex; gap: 14px; margin-bottom: 28px; width: max-content; }
  .tdots button { width: 9px; height: 9px; padding: 0; border: 1px solid color-mix(in srgb, var(--ink) 45%, transparent); background: transparent; cursor: pointer; transition: background .3s, border-color .3s, transform .3s; }
  .tdots button:hover { border-color: var(--accent); transform: scale(1.2); }
  .tdots button.on { background: var(--accent); border-color: var(--accent); }
  .tdots button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
  .tqs { display: grid; align-items: center; width: min(640px, calc(100vw - 2 * var(--pad))); }
  .tq { grid-area: 1 / 1; margin: 0; display: flex; flex-direction: column; align-items: center; text-align: center; visibility: hidden; }
  .tq.on { visibility: visible; }
  .tq blockquote { margin: 0; font: 400 clamp(19px, 1.9vw, 25px)/1.4 var(--head); font-variation-settings: "opsz" 14; letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
  .tq blockquote p { margin: 0; }
  .tq blockquote p + p { margin-top: 12px; }
  .tq blockquote p:first-child::before { content: "\201C"; }
  .tq blockquote p:last-child::after { content: "\201D"; }
  .tq figcaption { margin-top: 30px; display: flex; align-items: center; gap: 12px; text-align: left; }
  .tq figcaption i { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 500 13px/1 var(--body); font-style: normal; letter-spacing: .02em; color: var(--accent-ink); background: var(--accent-soft); }
  .tq figcaption b { display: block; font: 500 14px/20px var(--body); color: var(--ink); }
  .tq figcaption em { display: block; margin-top: 2px; font-style: normal; font-size: 11px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .tdrop { position: relative; width: 1px; height: 84px; margin: 34px auto 0; background: var(--edge); }
  .tdrop::before { content: ""; position: absolute; left: -10px; top: 0; width: 21px; height: 1px; background: var(--edge); }
  @media (max-width: 760px) { .thair, .tdrop { display: none; } .tstage { --tw: 100%; justify-content: center; } .tclip { padding: 44px 0 52px; } }
  @media (prefers-reduced-motion: reduce) { .tframe { transition: none; } }
  /* scroll motion (after metic.studio): inertia scrolling, masked word rises, scrubbed word highlight, drawn rules, image parallax */
  html.lenis, html.lenis body { height: auto; }
  .lenis.lenis-smooth { scroll-behavior: auto !important; }
  .lenis.lenis-stopped { overflow: hidden; }
  .js .mw { display: inline-block; overflow: hidden; vertical-align: top; padding: .22em .08em .28em; margin: -.22em -.08em -.28em; }
  .js .mw > i { display: inline-block; font-style: inherit; transform: translateY(118%); transition: transform .95s cubic-bezier(.77, 0, .175, 1) calc(var(--k, 0) * 55ms); will-change: transform; }
  .mr-in .mw > i { transform: none; }
  .pgrid .mw > i { transition-delay: calc(var(--k, 0) * 20ms + var(--d, 0ms)); }
  .pgrid > div:nth-child(2) { --d: 110ms; } .pgrid > div:nth-child(3) { --d: 220ms; } .pgrid > div:nth-child(4) { --d: 330ms; }

  .js .sw { opacity: .2; transition: opacity .35s ease; }
  .js .sw.on { opacity: 1; }
  .js .eyebrow::after { transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.77, 0, .175, 1) .25s; }
  .js .eyebrow.in::after { transform: none; }
  .shot .mock { transform: translateY(var(--py, 0px)); }
  .shot-img { transform: translateY(var(--py, 0px)) scale(1.12); }
  @media (prefers-reduced-motion: reduce) { .js .mw > i { transform: none; transition: none; } .js .sw { opacity: 1; } .js .eyebrow::after { transform: none; transition: none; } }
  /* principles: hairline fills in, the description flips to the code behind it */
  .pgrid > div { position: relative; }
  .pgrid > div::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .7s cubic-bezier(.77, 0, .175, 1); }
  .pgrid h3 { position: relative; display: block; padding-right: 36px; }
  .pgrid h3 .idx { position: absolute; right: 0; top: .3em; font: 500 11px/1 var(--mono); letter-spacing: .08em; color: var(--accent-ink); opacity: 0; transform: translateX(-8px); transition: opacity .4s ease .1s, transform .5s cubic-bezier(.77, 0, .175, 1) .1s; }
  .pgrid .pdesc { position: relative; }
  .pgrid .pdesc p { transition: opacity .35s ease, transform .5s cubic-bezier(.77, 0, .175, 1); }
  .pgrid .pcode { position: absolute; left: 0; right: 0; top: 0; margin: 0; padding: 0; font: 400 12px/1.75 var(--mono); color: var(--ink); white-space: pre; overflow: hidden; opacity: 0; transform: translateY(10px); transition: opacity .35s ease, transform .5s cubic-bezier(.77, 0, .175, 1); pointer-events: none; }
  .pgrid .pcode i { font-style: normal; color: var(--accent-ink); }
  .pgrid .pcode u { text-decoration: none; color: var(--muted); }
  @media (hover: hover) and (pointer: fine) {
    .pgrid > div:hover::before { transform: scaleX(1); }
    .pgrid > div:hover h3 .idx { opacity: 1; transform: none; }
    .pgrid > div:hover .pdesc p { opacity: 0; transform: translateY(-8px); }
    .pgrid > div:hover .pcode { opacity: 1; transform: none; }
  }
  @media (prefers-reduced-motion: reduce) { .pgrid > div::before, .pgrid h3 .idx, .pgrid .pdesc p, .pgrid .pcode { transition: none; } }
  /* a bee that wanders around "Manchester" in random, hovering flight (hero and footer) */
  .mcr { position: relative; display: inline-block; white-space: nowrap; }
  .bee { position: absolute; left: 50%; top: 50%; width: 27px; height: 19.5px; margin: -9.75px 0 0 -13.5px; z-index: 3; pointer-events: none; will-change: transform; filter: drop-shadow(0 3px 2px rgba(20,14,4,.22)); }
  .mcr.f .bee { width: 21px; height: 15.5px; margin: -7.75px 0 0 -10.5px; }
  .bee svg { display: block; width: 100%; height: 100%; overflow: visible; }
  .bee .wfar, .bee .wnear { fill: url(#bWg); stroke: #5b6b80; stroke-opacity: .5; stroke-width: .5; transform-box: fill-box; transform-origin: 20% 92%; }
  .bee .wfar { opacity: .7; animation: wingfar .075s ease-in-out infinite alternate; }
  .bee .wnear { animation: wingnear .075s ease-in-out infinite alternate; animation-delay: .03s; }
  @keyframes wingfar { from { transform: rotate(-16deg) scaleY(1); } to { transform: rotate(14deg) scaleY(.55); } }
  @keyframes wingnear { from { transform: rotate(-12deg) scaleY(1); } to { transform: rotate(18deg) scaleY(.5); } }
  @media (prefers-reduced-motion: reduce) { .bee .wfar, .bee .wnear { animation: none; } }
  /* skills: a fanned stack of work and a plain list of what I do */
  #skills h2.skh { margin: 0; font: 500 clamp(32px, 4.2vw, 56px)/1 var(--head); font-variation-settings: "opsz" 14; letter-spacing: -.04em; color: var(--ink); }
  .sks { margin: 14px 0 0; max-width: 560px; font: 400 17px/1.65 var(--body); color: var(--text-2); }
  .skg { list-style: none; margin: clamp(30px, 5.4vh, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
  .skg li { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; box-sizing: border-box; height: 80px; padding: 14px 22px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); transition: background .35s ease, opacity .7s, transform .7s; }
  .skg { --ins: var(--accent); }
  .skg li:hover { z-index: 3; }
  .ins { position: absolute; inset: -1px; border: 1.5px solid var(--ins); opacity: 0; pointer-events: none; transition: opacity .18s ease; }
  .ins b { position: absolute; width: 9px; height: 9px; background: var(--ins); }
  .ins b:nth-child(1) { left: -5.5px; top: -5.5px; } .ins b:nth-child(2) { right: -5.5px; top: -5.5px; }
  .ins b:nth-child(3) { left: -5.5px; bottom: -5.5px; } .ins b:nth-child(4) { right: -5.5px; bottom: -5.5px; }
  .skg .ins em { position: absolute; left: -1.5px; top: auto; right: auto; bottom: calc(100% + 1.5px); padding: 3px 8px; background: var(--ins); color: var(--on-accent); font: 700 10px/14px var(--mono); font-style: normal; letter-spacing: .02em; white-space: nowrap; }
  @media (hover: hover) and (pointer: fine) {
    .skg li:hover .ins { opacity: 1; }
  }
  @media (prefers-reduced-motion: reduce) { .ins { transition: none; } }
  .skg em { position: absolute; right: 18px; top: 12px; font-size: 11px; font-style: normal; letter-spacing: .06em; color: var(--faint); }
  .skg span { font: 500 clamp(19px, 1.7vw, 24px)/1.2 var(--head); letter-spacing: -.02em; }
  @media (max-width: 760px) { .skg { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 520px) { .skg { grid-template-columns: 1fr; } .skg li { height: 64px; padding: 10px 22px; } .skg em { top: 10px; } .skg span { white-space: nowrap; } }
  @media (prefers-reduced-motion: reduce) { .skg svg > *, .skg li { transition: none; } }
  /* reveal */
  .js .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s, transform .7s; }
  .js .rv.in { opacity: 1; transform: none; }

  @media (max-width: 960px) {
    :root { --rail: 0px; }
    .ruler, .tracker, .coords { display: none; }
    :root { --gx: var(--pad); --gr: var(--pad); }
    .top { padding-top: 28px; }
    .hero { grid-template-columns: 1fr; width: auto; margin: 0; padding: 130px var(--pad) 56px; height: auto; min-height: 0; gap: 28px; }
    .hero .device { position: relative; right: auto; top: auto; order: -1; }
    .hero-side { padding-top: 0; margin-bottom: 0; }
    .hgrid { display: none; }
    .hl-avatar { left: auto; right: 0; }
    .bp-grid { grid-template-columns: 1fr; }
    .build.js { height: 520vh; }
    .bp-copy { min-height: 150px; order: 2; }
    .bs { --k: 1.9; aspect-ratio: 4 / 4.4; }
    .code { width: 82%; }
    .cap { grid-template-columns: 40px minmax(0, 1fr) 28px; }
    .cap p { grid-column: 2 / 3; }
    .row { grid-template-columns: minmax(0, 1fr) 28px; gap: 8px 14px; }
    .row .i { display: none; }
    .row .what, .row .m { grid-column: 1; }
    .row .go { grid-column: 2; grid-row: 1; }
    .pgrid, .tiles, .quotes, .about { grid-template-columns: 1fr; }
    .pgrid { gap: 8px; }
    .bp-copy { bottom: 40px; width: auto; right: var(--mx); height: 220px; }
    .bp-step h3 { font-size: 34px; }
    .bp-step p { max-width: none; }
    .skip { bottom: 10px; }
    .bflow { right: auto; left: 50%; bottom: 292px; height: auto; transform: translateX(-50%); }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
    .js .rv { opacity: 1; transform: none; }
  }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* moving between pages: the new page wipes in over the old one */
@view-transition { navigation: auto; }
html:not([data-wipe])::view-transition-old(root) { animation: nav-out .8s cubic-bezier(.77, 0, .18, 1) both; z-index: 1; }
html:not([data-wipe])::view-transition-new(root) { animation: wipe-in .8s cubic-bezier(.77, 0, .18, 1) both; z-index: 2; }
@keyframes nav-out { to { transform: translateX(-6%); opacity: .55; } }

/* skills: a stack that builds from the ground up as you scroll */
.stk { --stk-n: 3; position: relative; height: calc(var(--stk-n) * 70vh + 100vh); padding-top: 0; margin-top: calc(var(--section-gap) - var(--stk-above, 0px)); margin-bottom: calc(var(--stk-below, 0px) * -1); }
.stk, .stk-pin { pointer-events: none; }
.stk-pin { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; padding-top: 72px; box-sizing: border-box; }
.stk-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 clamp(48px, 8vw, 128px); align-items: center; }
.stk-h { margin: 0; font: 600 clamp(34px, 4.6vw, 66px)/1.1 var(--head); font-variation-settings: "opsz" 14; letter-spacing: -.04em; color: var(--ink); }
.stk-lead-p { margin: 18px 0 0; max-width: 44ch; font: 400 18px/1.6 var(--body); color: var(--text-2); }
.stk-list { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; list-style: none; }
.stk-stage svg { display: block; width: 100%; height: auto; max-height: 66svh; margin: 0 auto; overflow: visible; }
.stk-plate { transition: opacity .6s, transform .8s cubic-bezier(.2, .8, .2, 1); }
.stk-plate .f-t { fill: color-mix(in srgb, var(--ink) 5%, var(--paper)); stroke: var(--line); stroke-width: 1.5; stroke-linejoin: round; transition: fill .5s, stroke .5s; }
.stk-plate .f-l { fill: color-mix(in srgb, var(--ink) 14%, var(--paper)); }
.stk-plate .f-r { fill: color-mix(in srgb, var(--ink) 22%, var(--paper)); }
.stk-plate.on .f-t { fill: color-mix(in srgb, var(--accent) 12%, var(--paper)); stroke: var(--accent); }
.stk-nm { font: 600 27px var(--head); letter-spacing: -.02em; fill: var(--ink); }
.stk-tick { fill: none; stroke: var(--line); stroke-width: 1.5; transition: stroke .5s; }
.stk-plate.on .stk-tick { stroke: var(--accent); }
.stk-no { font: 500 14px var(--mono); letter-spacing: .06em; fill: var(--accent-ink); }
.stk-lt { font: 500 25px var(--head); letter-spacing: -.03em; fill: var(--ink); }
.stk-it { font: 400 19px var(--body); fill: var(--text-2); }
.stk-g { fill: none; stroke: var(--accent); stroke-width: 1; opacity: .45; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .8s cubic-bezier(.6, 0, .2, 1); }
.stk-g.in { stroke-dashoffset: 0; }
.stk-dim path { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.stk-dim text { font: 400 16px var(--mono); letter-spacing: .06em; fill: var(--accent-ink); }
.js .stk-dim { opacity: 0; transition: opacity .6s .3s; }
.js .stk-dim.in { opacity: 1; }
.js .stk-plate { opacity: 0; transform: translateY(-48px); }
.js .stk-plate.in { opacity: 1; transform: none; }
.js .stk-plate.on { transform: translateY(-14px); }
@media (max-width: 760px) {
  .stk { height: calc(var(--stk-n) * 42vh + 100vh); }
  .stk-grid { grid-template-columns: 1fr; gap: 14px; align-items: start; }
  .stk-copy { display: contents; }
  .stk-h { order: 1; }
  .stk-lead-p { order: 2; }
  .stk-stage { order: 3; margin-top: 8px; }
  .stk-list { order: 4; }
  .stk-lead-p { margin-top: 12px; font-size: 16px; line-height: 1.5; }
  .stk-stage svg { height: min(30svh, 260px); }
  .stk-lt, .stk-it, .stk-no, .stk-tick { display: none; }
  .stk-list { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; border-top: 1px solid var(--line); min-height: 76px; }
  .stk-list li { display: none; grid-template-columns: 40px minmax(0, 1fr); padding: 14px 0 0; }
  .stk-list li.on { display: grid; animation: stk-in .5s ease both; }
  .stk-list b { font: 500 12px/1.9 var(--mono); letter-spacing: .06em; color: var(--accent-ink); }
  .stk-list strong { display: block; font: 500 22px/1.2 var(--head); letter-spacing: -.03em; color: var(--ink); }
  .stk-list span { display: block; margin-top: 6px; font: 400 16px/1.5 var(--body); color: var(--text-2); }
  @keyframes stk-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .stk-list li { display: grid !important; animation: none !important; } .stk { height: auto; } .stk-pin { position: static; height: auto; } .js .stk-plate, .js .stk-plate.in, .js .stk-dim { opacity: 1; transform: none; transition: none; } .stk-g { stroke-dashoffset: 0; transition: none; } }

/* work: an index of rows, with two tilted previews beside the hovered row */
.wlist { margin-top: 56px; }
.wrow { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr) 64px; align-items: center; padding: 44px 0 48px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: opacity .35s; }
.wlist .wrow:first-child { border-top: 1px solid var(--line); }
.wn { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.wt { max-width: 640px; }
.wt b { display: block; font: 600 32px/1.2 var(--head); letter-spacing: -.035em; text-wrap: balance; }
.wmeta { display: block; margin-top: 12px; font: 400 18px/1.6 var(--body); letter-spacing: 0; color: var(--text-2); }
.wmet { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; font: 500 13px/1.7 var(--mono); }
.wa { justify-self: end; width: 56px; height: 12px; fill: none; stroke: var(--muted); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s cubic-bezier(.23, 1, .32, 1), stroke .3s; }
.wrow:hover .wa, .wrow:focus-visible .wa { transform: translateX(10px) scaleX(1.12); stroke: var(--accent); }
.wlist:hover .wrow:not(:hover), .wlist:focus-within .wrow:not(:focus-visible) { opacity: .35; }
.wprev { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
.wprev.none { display: none; }
.wp { position: absolute; left: 0; top: 0; width: 340px; height: 250px; border-radius: 14px; overflow: hidden; opacity: 0; box-shadow: 0 40px 70px rgba(0, 0, 0, .25); transition: opacity .35s; }
.wprev.on .wp { opacity: 1; }
.wp1 { transition-delay: .08s; }
.wp .shot { position: absolute; inset: 0; opacity: 0; }
.wp .shot.on { opacity: 1; }
.wp1 .shot { background: linear-gradient(225deg, var(--c1), var(--c2)); }
.wp1 .mock { left: auto; right: 12%; border-radius: 0 16px 0 0; }
@media (max-width: 860px) {
  .wlist { margin-top: 40px; }
  .wrow { grid-template-columns: minmax(0, 1fr) 40px; gap: 10px 12px; padding: 28px 0 32px; }
  .wn { grid-column: 1; grid-row: 1; font-size: 11px; }
  .wt b { font-size: 24px; }
  .wmeta { font-size: 16px; }
  .wt { grid-column: 1; grid-row: 2; }
  .wa { grid-column: 2; grid-row: 2; align-self: start; margin-top: 12px; width: 36px; }
  .wprev { display: none; }
}
@media (hover: none) { .wprev { display: none; } .wlist:hover .wrow:not(:hover) { opacity: 1; } }

/* dividers: an arrowhead at each end, tipped in orange (added by rules.js). each head is 9px tall, centred on the 1px line */
.rl { position: absolute; left: 0; right: 0; height: 1px; pointer-events: none; }
.rl.t { top: -1px; }
.rl.b { bottom: -1px; }
.rl::before, .rl::after, .rul-t::before, .rul-t::after, .rul-b::before, .rul-b::after { content: ""; position: absolute; width: 0; height: 1px; border-top: 4px solid transparent; border-bottom: 4px solid transparent; pointer-events: none; }
.rl::before, .rul-t::before, .rul-b::before { left: 0; border-left: 7px solid var(--accent); }
.rl::after, .rul-t::after, .rul-b::after { right: 0; border-right: 7px solid var(--accent); }
.rl::before, .rl::after { top: -4px; }
.rul-t::before, .rul-t::after { top: -5px; }
.rul-b::before, .rul-b::after { top: calc(100% - 4px); }
@media print { .rl, .rul-t::before, .rul-t::after, .rul-b::before, .rul-b::after { display: none; } }
/* on phones the arrow tips crowd the stacked content, so the lines stay plain */
@media (max-width: 760px) { .rl::before, .rl::after, .rul-t::before, .rul-t::after, .rul-b::before, .rul-b::after { display: none; } }

/* offscreen sections pause their looping animations (see perf.js) */
.perf-idle, .perf-idle *, .perf-idle *::before, .perf-idle *::after { animation-play-state: paused !important; }

/* above the fold text reveals with CSS only, so it never waits on JS (faster Largest Contentful Paint) */
@keyframes hero-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.js .cs-hero .cs-lead.rv, .js .cs-hero .cs-glance.rv { opacity: 1; transform: none; animation: hero-in .8s cubic-bezier(.22, .8, .2, 1) both; }
.js .cs-hero .cs-glance.rv { animation-delay: .12s; }

.js :is(.wk-hero, .svx-hero, .ab-hero) .blurb.rv, .js .ab-hero > .rv { opacity: 1; transform: none; animation: hero-in .8s cubic-bezier(.22, .8, .2, 1) both; }
