/* natekramer.dev v1 (TODO 00001.14). Tokens from design/DESIGN-GUIDE.md sections 3 to 7. */

@font-face { font-family: "Rubik"; src: url("../fonts/Rubik-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("../fonts/Rubik-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("../fonts/Rubik-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("../fonts/Rubik-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
/* Metric-matched fallbacks (00001.19): the fallback face is scaled to Rubik's advance widths and given Rubik's
   ascent/descent, so the swap to Rubik moves nothing (reduced-motion/JS-off CLS ~0). Values computed with
   fontTools over the hero copy: Arial/Liberation Sans (Windows, macOS, most Linux) and DejaVu Sans (the rest). */
@font-face { font-family: "Rubik FB A"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans"); font-weight: 400; size-adjust: 104.74%; ascent-override: 89.27%; descent-override: 23.87%; line-gap-override: 0%; }
@font-face { font-family: "Rubik FB A"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans"); font-weight: 500; size-adjust: 108.22%; ascent-override: 86.40%; descent-override: 23.10%; line-gap-override: 0%; }
@font-face { font-family: "Rubik FB A"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold"); font-weight: 600; size-adjust: 102.2%; ascent-override: 91.49%; descent-override: 24.46%; line-gap-override: 0%; }
@font-face { font-family: "Rubik FB A"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold"); font-weight: 700; size-adjust: 103.89%; ascent-override: 90.00%; descent-override: 24.06%; line-gap-override: 0%; }
@font-face { font-family: "Rubik FB D"; src: local("DejaVu Sans"), local("DejaVuSans"); font-weight: 400; size-adjust: 91.85%; ascent-override: 101.80%; descent-override: 27.22%; line-gap-override: 0%; }
@font-face { font-family: "Rubik FB D"; src: local("DejaVu Sans"), local("DejaVuSans"); font-weight: 500; size-adjust: 94.9%; ascent-override: 98.52%; descent-override: 26.34%; line-gap-override: 0%; }
@font-face { font-family: "Rubik FB D"; src: local("DejaVu Sans Bold"), local("DejaVuSans-Bold"); font-weight: 600; size-adjust: 85.27%; ascent-override: 109.65%; descent-override: 29.32%; line-gap-override: 0%; }
@font-face { font-family: "Rubik FB D"; src: local("DejaVu Sans Bold"), local("DejaVuSans-Bold"); font-weight: 700; size-adjust: 86.68%; ascent-override: 107.87%; descent-override: 28.84%; line-gap-override: 0%; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/JetBrainsMono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/JetBrainsMono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --bg: #141418;
  --surface: #1E1E24;
  --line: #2A2A32;
  --text: #EAEAE8;
  --muted: #C4CBCD;
  --brand: #15A3A8;
  --accent: #9CEFF2;
  --hl: #9CEFF2;
  --cta: #E8913A;
  --cta-ink: #141418;
  --tint: rgba(21, 163, 168, 0.12);
  --glow: rgba(13, 115, 119, 0.20);
  --shadow: none;
  --dot: rgba(234, 234, 232, 0.07);

  --font: "Rubik", "Rubik FB A", "Rubik FB D", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --maxw: 1200px;
  --gutter: 20px;
  --gap: 24px;
  --section-gap: 64px;
  --header-h: 64px;

  --mo-ease: cubic-bezier(.22,.61,.36,1);
  --mo-hover: 0.2s;

  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #F8F7F4;
  --surface: #FFFFFF;
  --line: #EAEAE8;
  --text: #141418;
  --muted: #5A6166;
  --brand: #0D7377;
  --accent: #15A3A8;
  --hl: #0D7377;
  --tint: rgba(13, 115, 119, 0.10);
  --glow: transparent;
  --shadow: 0 1px 2px rgba(20, 20, 24, 0.05), 0 8px 24px rgba(20, 20, 24, 0.06);
  --dot: rgba(20, 20, 24, 0.07);
  color-scheme: light;
}

@media (min-width: 600px) { :root { --gutter: 32px; --section-gap: 72px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; --section-gap: 96px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 900px) { body { font-size: 17px; } }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--surface); color: var(--text); padding: 12px 16px; border: 1px solid var(--brand); border-radius: 12px;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* Icons */
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Theme-dependent logo */
.logo-light { display: none; }
:root[data-theme="light"] .logo-dark { display: none; }
:root[data-theme="light"] .logo-light { display: block; }

/* Type */
.eyebrow {
  font-family: var(--mono); font-weight: 500; font-size: 13px; line-height: 1.4; letter-spacing: 0.02em;
  color: var(--brand); margin: 0 0 16px; text-transform: lowercase;
}
.h2 { font-size: clamp(28px, 2.2vw + 12px, 36px); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 16px; }
.h3 { font-size: clamp(20px, 0.4vw + 17px, 22px); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.lead { font-size: clamp(18px, 0.4vw + 15px, 20px); line-height: 1.5; }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.5; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  font: 500 16px/1 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--mo-hover) var(--mo-ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn .icon { transition: transform var(--mo-hover) var(--mo-ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-cta { background: var(--cta); color: var(--cta-ink); }
.btn-cta:hover { background: #F09C47; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--line); }
:root:not([data-theme="light"]) .btn-outline { border-color: #3A3A44; }
.btn-outline:hover { border-color: var(--brand); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  color: var(--brand); font-weight: 500; text-decoration: none;
}
.text-link:hover { text-decoration: underline; }
.text-link .icon { width: 18px; height: 18px; transition: transform var(--mo-hover) var(--mo-ease); }
.text-link:hover .icon { transform: translate(2px, -2px); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip {
  display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px;
  font: 500 11.5px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line);
}
.chip-status { color: var(--brand); background: var(--tint); border-color: transparent; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: var(--surface); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; min-height: 44px; flex: none; }
.brand img { height: 28px; width: auto; }
.crumb {
  display: none; margin: 0; font: 400 13px/1 var(--mono); color: var(--muted); white-space: nowrap;
  padding-left: 16px; border-left: 1px solid var(--line);
}
.crumb span { color: var(--brand); }
.nav { display: none; margin-left: auto; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px;
  color: var(--muted); text-decoration: none; font-size: 15px;
}
.nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav + .header-actions { margin-left: 8px; }
.theme-toggle {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
.theme-toggle:hover { color: var(--text); border-color: var(--brand); }
.theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }
.avatar { display: none; width: 32px; height: 32px; border-radius: 999px; }
@media (min-width: 600px) { .crumb { display: inline-block; } }
@media (min-width: 900px) {
  .nav { display: flex; }
  .avatar { display: block; }
  .brand img { height: 32px; }
}

/* Grid */
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.title-col { max-width: 560px; }
@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
  .title-col { grid-column: 1 / span 4; padding-right: 16px; }
  .content-col { grid-column: 5 / span 8; }
  .title-col.is-sticky { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}

/* Hero (00001.19): hybrid C from design/hero/FINDINGS.md. The >nk_ mark assembles in the portrait slot while
   `$ who_am_i` types, the cursor bar drops and draws the ring, the photo settles in by 1.2 s, and a strip of
   real screen recordings lands under the copy. The settled state below is the base rule; every start state
   lives under html.mo (motion kit), so JS off and reduced motion show the finished hero. */
.hero { padding-top: 28px; overflow-x: clip; }
@media (min-width: 900px) { .hero { padding-top: clamp(32px, 6vh, 72px); } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 32px; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--gap); align-items: center; }
  .hero-copy { grid-column: 1 / span 7; }
  .portrait { grid-column: 8 / span 5; }
  .hero-quote { grid-column: 1 / -1; }
  .proof { grid-column: 1 / -1; }
}
.hero-cmd { display: flex; align-items: baseline; gap: .6ch; margin-bottom: 14px; }
.hero-cmd .p { color: var(--muted); }
.typed { position: relative; display: inline-flex; }
.typed .caret { display: none; }
.hero h1 {
  font-size: clamp(46px, 2.9vw + 32px, 80px); line-height: 1.02; letter-spacing: -0.035em;
  margin-bottom: 14px; display: flex; align-items: flex-end;
}
.cursor { display: inline-block; width: .46em; height: .12em; margin-left: .08em; margin-bottom: .1em; background: var(--brand); border-radius: 1px; }
.hero-title { color: var(--muted); margin-bottom: 14px; }
.hero-title .loc { white-space: nowrap; }
@media (max-width: 599.98px) {
  .hero-title .sep { display: none; } .hero-title .loc { display: block; }
  .hero .hero-line { font-size: 21px; }
  .hero .hero-note { font-size: 13.5px; min-height: 3.2em; } /* reserves two lines: a slow-font fallback may wrap it, and that must not move the strip */
  .hero .proof-chip { gap: 8px; font-size: 12px; padding: 0 14px; }
  .hero .proof-chip .icon { display: none; }
}
.proof-chip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px 0 14px; margin-bottom: 22px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow);
  font: 500 13px/1.2 var(--mono); color: var(--text); text-decoration: none;
  transition: transform var(--mo-hover) var(--mo-ease);
}
.proof-chip .rv-stars { gap: 2px; }
.proof-chip .rv-star { width: 13px; height: 13px; }
.proof-chip .icon { width: 16px; height: 16px; color: var(--brand); }
.proof-chip:hover { transform: translateY(-1px); border-color: var(--brand); }
.hero-line {
  font-size: clamp(22px, 1.1vw + 16px, 32px); line-height: 1.22; letter-spacing: -0.015em; font-weight: 500;
  margin-bottom: 14px; max-width: 16.5em;
}
.hl { color: var(--hl); }
.hero-support { color: var(--muted); max-width: 50ch; margin-bottom: 26px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.hero-note { font-size: 14px; color: var(--muted); }

/* portrait: photo under an SVG that holds the ring and the >nk_ mark */
.portrait { position: relative; width: min(100%, 460px); aspect-ratio: 1; justify-self: end; }
.portrait::before { content: ""; position: absolute; inset: -18%; background: radial-gradient(closest-side, var(--glow), transparent 75%); pointer-events: none; }
.portrait img { position: absolute; inset: 3.4%; width: 93.2%; height: 93.2%; border-radius: 50%; object-fit: cover; background: #10383A; }
.portrait svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring { fill: none; stroke: url(#rg); stroke-width: 7; stroke-dasharray: 100 100; stroke-dashoffset: 0; }
.halo { fill: none; stroke: var(--brand); stroke-width: 1.5; opacity: .55; stroke-dasharray: 2 6; }
.mark { display: none; }
.m-gt, .m-bar { fill: var(--brand); }
.m-nk { fill: var(--accent); }
@media (max-width: 899.98px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .portrait { order: -1; width: 168px; justify-self: start; }
  .portrait::before { inset: -30%; }
}

/* pull-quote: the proof beat after the headline and CTA (round 2). A real review lede, verbatim. */
.hero-quote {
  margin: 8px 0 0; padding: 36px 0 0; border-top: 1px solid var(--line); position: relative;
  display: grid; gap: 18px;
}
.hero-quote::before {
  content: "\201C"; position: absolute; top: 18px; left: -6px; font-size: 120px; line-height: 1; font-weight: 700; color: var(--brand);
  pointer-events: none;
}
.hero-quote blockquote { margin: 0; padding-left: clamp(52px, 5vw, 76px); }
.hero-quote p {
  margin: 0; font-size: clamp(24px, 1.9vw + 12px, 44px); line-height: 1.18; letter-spacing: -0.02em; font-weight: 500;
  color: var(--text); max-width: 26em; text-wrap: balance;
}
.hero-quote figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding-left: clamp(52px, 5vw, 76px); }
.hero-quote .rv-star { width: 15px; height: 15px; }
.hero-quote figcaption a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 500 14px/1.2 var(--mono); color: var(--muted); text-decoration: none;
}
.hero-quote figcaption a::before { content: "> "; color: var(--brand); white-space: pre; }
.hero-quote figcaption a .icon { width: 16px; height: 16px; color: var(--brand); transition: transform var(--mo-hover) var(--mo-ease); }
.hero-quote figcaption a:hover { color: var(--text); }
.hero-quote figcaption a:hover .icon { transform: translateX(3px); }

/* proof strip: two real recordings, large enough to read, linked to their cards in #work */
.proof { display: grid; gap: 14px 24px; }
.proof-label { font: 500 13px/1.4 var(--mono); color: var(--brand); margin: 0 0 6px; }
.proof-sub { font-size: 15px; color: var(--muted); margin: 0; max-width: 30ch; }
.proof-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.proof-tile {
  position: relative; display: block; aspect-ratio: 426 / 190; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: #0f0f12; color: #EAEAE8; text-decoration: none; box-shadow: var(--shadow);
  transition: transform var(--mo-hover) var(--mo-ease);
}
.proof-tile video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.proof-tile span {
  position: absolute; left: 10px; bottom: 10px; font: 500 12px/1 var(--mono); letter-spacing: .04em; color: #9CEFF2;
  background: rgba(16, 16, 20, .86); border: 1px solid #2A2A32; border-radius: 6px; padding: 6px 8px;
}
.proof-tile:hover { transform: translateY(-2px); border-color: var(--brand); }
@media (min-width: 900px) {
  .proof { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--gap); align-items: start; }
  .proof-head { grid-column: 1 / span 3; padding-top: 4px; }
  .proof-row { grid-column: 4 / span 9; }
}
@media (min-width: 1200px) {
  .proof-head { grid-column: 1 / span 2; }
  .proof-row { grid-column: 3 / span 10; gap: 24px; }
}
@media (max-width: 899.98px) {
  .proof { margin: 0 calc(-1 * var(--gutter)); }
  .proof-head { padding: 0 var(--gutter); }
  .proof-row {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 6px;
    scroll-padding: 0 var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .proof-row::-webkit-scrollbar { display: none; }
  .proof-row li { flex: 0 0 min(88%, 560px); scroll-snap-align: start; }
}
@media (max-width: 599.98px) {
  .hero-quote { padding-top: 28px; gap: 8px; }
  .hero-quote::before { font-size: 84px; top: 16px; left: -3px; }
  .hero-quote blockquote, .hero-quote figcaption { padding-left: 40px; }
  .hero-quote p { font-size: 23px; line-height: 1.24; }
  .proof-sub { font-size: 14px; }
}

/* ---------- hero motion (only under html.mo, from the hook's .mo-in) ---------- */
.mo .mark { display: inline; }
.mo .mark path { transform-box: fill-box; transform-origin: 50% 50%; }
.mo .typed .caret {
  display: block; position: absolute; right: -.7ch; top: .1em; bottom: .05em; width: .55ch; background: var(--brand);
  --step: calc(1ch + .02em);
}
.mo .hero:not(.mo-in) .hero-copy > *, .mo .hero:not(.mo-in) .typed > span, .mo .hero:not(.mo-in) .ph,
.mo .hero:not(.mo-in) .ring, .mo .hero:not(.mo-in) .halo, .mo .hero:not(.mo-in) .mark, .mo .hero:not(.mo-in) .proof-head,
.mo .hero:not(.mo-in) .proof-row li, .mo .hero:not(.mo-in) .hero-quote { opacity: 0; }
.mo .hero.mo-in .hero-cmd { animation: fade-fast .9s var(--mo-ease) 0s both; }
.mo .hero.mo-in .typed > span { animation: key .9s linear calc(.3s + var(--c) * 69ms) both; }
.mo .hero.mo-in .typed .caret { animation: caret 1.2s linear .3s both; }
.mo .hero.mo-in .m-gt { animation: mark-life .9s var(--mo-ease) 0s both; }
.mo .hero.mo-in .m-nk { animation: mark-life .9s var(--mo-ease) .06s both; }
.mo .hero.mo-in .m-bar { animation: bar-life 1.3s var(--mo-ease) .12s both; }
.mo .hero.mo-in .ph { animation: photo 1s var(--mo-ease) .68s both; }
.mo .hero.mo-in .ring { animation: draw 1.4s cubic-bezier(.45,0,.2,1) .95s both; }
.mo .hero.mo-in .halo { animation: halo 1s var(--mo-ease) 1.5s both; }
.mo .hero.mo-in h1 { animation: rise .9s var(--mo-ease) .3s both; }
.mo .hero.mo-in .hero-title { animation: rise .9s var(--mo-ease) .42s both; }
.mo .hero.mo-in .proof-chip { animation: rise .9s var(--mo-ease) .54s both; }
.mo .hero.mo-in .hero-line { animation: rise .9s var(--mo-ease) .66s both; }
.mo .hero.mo-in .hero-support { animation: rise .9s var(--mo-ease) .78s both; }
.mo .hero.mo-in .btn-row { animation: rise .9s var(--mo-ease) .9s both; }
.mo .hero.mo-in .hero-note { animation: fade 1s var(--mo-ease) 1.05s both; }
.mo .hero.mo-in .cursor { animation: blink3 1.2s linear 1.8s both; }
.mo .hero.mo-in .hero-quote { animation: rise .9s var(--mo-ease) 1.2s both; }
.mo .hero.mo-in .proof-head { animation: fade 1s var(--mo-ease) 1.7s both; }
.mo .hero.mo-in .proof-row li { animation: rise .9s var(--mo-ease) calc(1.85s + var(--t) * 120ms) both; }
@keyframes fade-fast { from { opacity: 0; } 30% { opacity: 1; } to { opacity: 1; } }
@keyframes key { from { opacity: 0; } 1% { opacity: 1; } to { opacity: 1; } }
@keyframes caret {
  0% { opacity: 1; transform: translate3d(calc(-7 * var(--step)), 0, 0); animation-timing-function: steps(7, end); }
  44% { opacity: 1; transform: none; animation-timing-function: steps(1, end); }
  60% { opacity: 0; transform: none; animation-timing-function: steps(1, end); }
  76% { opacity: 1; transform: none; animation-timing-function: steps(1, end); }
  100% { opacity: 0; transform: none; }
}
@keyframes mark-life {
  0% { opacity: 0; transform: translate3d(0, 10px, 0); }
  25% { opacity: 1; transform: none; }
  48% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translate3d(0, -14px, 0) scale(.94); }
}
@keyframes bar-life {
  0% { opacity: 0; transform: scaleX(.2); }
  14% { opacity: 1; transform: none; animation-timing-function: steps(1, end); }
  22% { opacity: 0; animation-timing-function: steps(1, end); }
  30% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.65,0,.35,1); }
  70% { opacity: 1; transform: translate(-275.6px, 350px) scaleY(.45); }
  100% { opacity: 0; transform: translate(-275.6px, 350px) scale(0, .45); }
}
@keyframes draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes photo { from { opacity: 0; transform: scale(1.06); } 50% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes halo { from { opacity: 0; } to { opacity: .55; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: none; } }
@keyframes blink3 {
  0% { opacity: 1; animation-timing-function: steps(1, end); } 17% { opacity: 0; animation-timing-function: steps(1, end); }
  33% { opacity: 1; animation-timing-function: steps(1, end); } 50% { opacity: 0; animation-timing-function: steps(1, end); }
  67% { opacity: 1; animation-timing-function: steps(1, end); } 83% { opacity: 0; animation-timing-function: steps(1, end); }
  100% { opacity: 1; }
}

/* Trace (signature circuit line) */
.junction { position: relative; height: var(--section-gap); }
.junction::before { /* hairline between sections */
  content: ""; position: absolute; left: 0; right: 0; top: 64%; height: 1px; background: var(--line);
}
.junction svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; display: none; }
.junction line { stroke: var(--brand); stroke-width: 1.25; }
.junction circle { fill: var(--bg); stroke: var(--brand); stroke-width: 1.5; }
.junction circle.solid { fill: var(--brand); stroke: none; }
.junction .jd, .junction .jt { display: none; }
@media (min-width: 900px) { .junction svg.t-desk { display: block; } }

/* Mobile: straight left-edge line */
.flow { position: relative; }
@media (max-width: 899.98px) {
  /* the left-edge line, one segment per junction and section, so each can draw as it arrives (00001.15) */
  .flow > .junction::after, .flow > .section::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--gutter) / -2 - 1px); width: 1px;
    background: var(--brand); opacity: 0.8; transform-origin: 50% 0;
  }
  .flow > .section-last::before { background: linear-gradient(var(--brand), var(--brand) 60%, transparent); }
  .flow-start { position: relative; }
  .junction .jd {
    display: block; position: absolute; top: 64%; left: calc(var(--gutter) / -2 - 4px); width: 9px; height: 9px;
    margin-top: -4px; border-radius: 99px; background: var(--bg); border: 1.5px solid var(--brand);
  }
}

/* What I build: collapsed to one compact row inside #work (round 2) */
.builds { margin: 0 0 32px; }
.builds-label { font: 500 13px/1.4 var(--mono); color: var(--brand); margin: 0 0 12px; letter-spacing: 0; }
.builds-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.builds-row li {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
}
.builds-row .tile { flex: 0 0 auto; width: 34px; height: 34px; margin: 0; border-radius: 9px; }
.builds-row .tile .icon { width: 18px; height: 18px; }
.builds-row p { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.builds-row b { display: block; font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
@media (max-width: 599.98px) {
  /* phone: one swipeable row instead of four stacked cards (about 170 px instead of about 1,000) */
  .builds { margin: 0 calc(-1 * var(--gutter)) 28px; }
  .builds-label { padding: 0 var(--gutter); }
  .builds-row {
    display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 4px;
    scroll-padding: 0 var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .builds-row::-webkit-scrollbar { display: none; }
  .builds-row li { flex: 0 0 76%; scroll-snap-align: start; }
}
@media (min-width: 600px) { .builds-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .builds-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  transition: transform var(--mo-hover) var(--mo-ease);
}
.tile {
  width: 40px; height: 40px; border-radius: 10px; background: var(--tint); color: var(--brand);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}

/* Work */
/* v2 work: full-width section, featured 6 in two columns, more in three (videos are the proof). */
.work-head { display: grid; gap: 8px 32px; margin-bottom: 32px; }
.work-head .h2 { margin-bottom: 0; }
.work-head .muted { max-width: 520px; margin: 0; }
@media (min-width: 900px) {
  .work-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
  .work-head .muted { justify-self: end; }
}
.work-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 700px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.work-card { display: flex; flex-direction: column; overflow: hidden; }
.work-card:hover, .mini:hover { transform: translateY(-3px); border-color: var(--brand); }
.work-media { display: block; aspect-ratio: 16 / 10; border-bottom: 1px solid var(--line); background: #101014; overflow: hidden; }
.work-media img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.work-body { padding: 20px 20px 12px; display: flex; flex-direction: column; flex: 1; }
.work-body .h3 { margin-bottom: 8px; }
.work-body p { color: var(--muted); font-size: 16px; margin-bottom: 12px; }
.work-body .tags { font: 400 12.5px/1.5 var(--mono); color: var(--muted); margin: 0 0 4px; }
.work-links { margin-top: auto; padding-top: 4px; }
.nolink { display: inline-flex; align-items: center; min-height: 44px; font: 400 13px var(--mono); color: var(--muted); }

/* Portfolio loop cards: ported from the loom /j/ page (template.html 040.c). The thumbnail (594x334) is
   branded art with a transparent screen hole at 426x189 @ (84,145); the muted loop sits BEHIND it,
   positioned into the hole by percentage so it fits at any width. */
.pm-thumb { position: relative; aspect-ratio: 594 / 334; background: #070b09; text-decoration: none; color: #EAEAE8; }
.pm-thumb-video { position: absolute; left: 14.14%; top: 43.41%; width: 71.72%; height: 56.59%; overflow: hidden; background: #070b09; z-index: 1; }
.pm-thumb-video .pm-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.work-media .pm-thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 2; pointer-events: none; }
.pm-cue {
  position: absolute; right: 10px; top: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 6px;
  font: 500 12px/1 var(--mono); color: #EAEAE8; padding: 7px 11px; border-radius: 999px;
  background: rgba(16, 16, 20, 0.86); border: 1px solid rgba(21, 163, 168, 0.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform var(--mo-hover) var(--mo-ease);
}
.pm-cue .icon { width: 14px; height: 14px; }
a.pm-thumb:hover .pm-cue { background: #0D7377; transform: translateY(-1px); }

.more-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 48px 0 16px; }
.more-head .eyebrow { margin: 0; }
.more-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 700px) { .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .more-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mini { display: flex; flex-direction: column; overflow: hidden; }
.mini .work-media:not(.pm-thumb) { aspect-ratio: 594 / 334; }
.mini .work-body { padding: 16px 16px 8px; }
.mini .h3 { font-size: 19px; }
.mini p { font-size: 15px; }
.mini .pm-cue { right: 8px; top: 8px; font-size: 11.5px; padding: 6px 10px; }
.map-media { display: flex; align-items: center; justify-content: center; background: var(--bg); position: relative; }
.map-media::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px); background-size: 16px 16px;
}
.mini-map { position: relative; width: 86%; height: auto; }
.mini-map rect { fill: var(--surface); stroke: var(--line); }
.mini-map .hub rect { stroke: var(--brand); }
.mini-map text { font: 400 11.5px var(--mono); fill: var(--text); }
.mini-map .wire { stroke: var(--brand); stroke-width: 1.25; fill: none; }
.mini-map .port { fill: var(--brand); }
.upwork-card {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; padding: 28px;
  background: linear-gradient(160deg, var(--tint), transparent 70%), var(--surface); border-color: var(--brand);
}
.upwork-card .tile { margin-bottom: 6px; }
.upwork-card .h3 { margin: 0; }
.upwork-card p { color: var(--muted); margin: 0 0 8px; font-size: 16px; }
.upwork-card:hover { transform: translateY(-3px); }

/* About: no second headshot (the hero has it); the title column carries a stat line of true facts. */
@media (min-width: 900px) {
  .about-grid .title-col { grid-column: 1 / span 4; }
  .about-story { grid-column: 5 / span 8; }
}
.about-story { max-width: 680px; }
.about-story .lead { color: var(--text); margin-bottom: 20px; }
.about-story p { color: var(--muted); }
.stats { margin: 28px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.stats > div { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.stats dt { font-size: clamp(26px, 1vw + 18px, 34px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: var(--hl); }
.stats dd { margin: 0; font: 400 13px/1.4 var(--mono); color: var(--muted); }
@media (max-width: 899.98px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border-top: 0; }
  .stats > div { border-bottom: 0; border-top: 1px solid var(--line); padding: 12px 0 0; }
  .stats dt { font-size: 19px; white-space: nowrap; }
  .stats dd { font-size: 12px; }
}

/* Contact */
.contact-list {
  list-style: none; margin: 0; padding: 0;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden;
}
.contact-list li + li { border-top: 1px solid var(--line); }
.contact-row {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 20px; align-items: center; gap: 4px 16px;
  min-height: 68px; padding: 12px 20px; color: var(--text); text-decoration: none;
}
@media (min-width: 600px) { .contact-row { grid-template-columns: 40px 160px minmax(0, 1fr) 20px; } }
.contact-row:hover { background: var(--tint); }
.contact-row .tile { margin: 0; }
.c-label { font-weight: 500; }
.c-value { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
@media (max-width: 599.98px) {
  .contact-row .tile { grid-row: 1 / span 2; }
  .c-label { grid-column: 2; }
  .c-value { grid-column: 2; grid-row: 2; }
  .contact-row .chev { grid-column: 3; grid-row: 1 / span 2; }
}
.contact-row .chev { color: var(--muted); width: 20px; height: 20px; transition: transform var(--mo-hover) var(--mo-ease); }
.contact-row:hover .chev { transform: translateX(3px); color: var(--brand); }
.contact-list li.is-primary { border-bottom: 0; }
.contact-list li.is-primary .contact-row {
  background: var(--tint); box-shadow: inset 0 0 0 1px var(--brand); border-radius: 16px 16px 0 0;
}
.contact-list li.is-primary + li { border-top-color: transparent; }
.contact-list li.is-quiet .contact-row { color: var(--muted); }
.contact-list li.is-quiet .tile { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.contact-close { margin-top: 20px; color: var(--muted); }

/* Footer */
.site-footer { margin-top: var(--section-gap); border-top: 1px solid var(--line); padding: 32px 0 40px; }
.footer-inner { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 900px) { .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { height: 26px; width: auto; }
.footer-brand span { font: 400 13px var(--mono); color: var(--brand); }
.footer-facts { font-size: 14px; color: var(--muted); margin: 0; }
.footer-facts a { color: var(--muted); }
.footer-facts a:hover { color: var(--brand); }
.footer-facts .row { display: block; }
@media (min-width: 900px) { .footer-facts { text-align: right; } }

/* Section spacing */
.section { position: relative; }
.section-last { padding-bottom: 8px; }

/* Reviews: ported from the loom /j/ page (template.html 154.b), restyled to this site's tokens.
   Three real Upwork reviews stacked as rows in one card; each row expands on its own. */
.rv-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 4px 28px; overflow: hidden; }
.rv-row { padding: 28px 0; border-top: 1px solid var(--line); }
.rv-row:first-child { border-top: 0; }
.rv-row.is-live { box-shadow: inset 2px 0 0 var(--brand); padding-left: 18px; margin-left: -18px; }
.rv-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.rv-stars { display: inline-flex; gap: 3px; line-height: 0; }
.rv-star { width: 16px; height: 16px; fill: #F5B301; }
.rv-badge {
  display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px;
  font: 500 11.5px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--brand); background: var(--tint); cursor: help; white-space: nowrap;
}
.rv-name { margin: 0 0 8px; font: 500 13px/1.4 var(--mono); color: var(--muted); }
.rv-name::before { content: "> "; color: var(--brand); }
.rv-quote { margin: 0; font-size: clamp(18px, 0.4vw + 15px, 20px); line-height: 1.5; font-weight: 500; color: var(--text); }
.rv-quote::before { content: "\201C"; }
.rv-quote::after { content: "\201D"; }
.rv-row.is-short { padding: 20px 0 22px; }
.rv-row.is-short .rv-top { margin-bottom: 8px; }
.rv-row.is-short .rv-star { width: 13px; height: 13px; }
.rv-row.is-short .rv-quote { font-size: 16px; font-weight: 400; color: var(--muted); }
/* 00001.19: each review shows a short excerpt of its body; the toggle opens the rest. The full text is in the DOM
   (byte-identical to the source), CSS only clamps it, and only when JS runs (html.js, set in <head> before first
   paint), so JS off shows every word and hides the dead toggle. */
.rv-body { position: relative; white-space: pre-line; color: var(--muted); font-size: 16px; line-height: 1.65; margin-top: 14px; }
.js .rv-body { max-height: 8.25em; overflow: hidden; }
.js .rv-body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3.3em; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--surface)); }
.js .rv-row.is-open .rv-body { max-height: none; }
.js .rv-row.is-open .rv-body::after { display: none; }
html:not(.js) .rv-toggle { display: none; }
.rv-toggle {
  margin-top: 16px; min-height: 44px; background: transparent; border: 1px solid var(--line); color: var(--text);
  font: 500 13px/1 var(--mono); border-radius: 12px; padding: 0 14px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.rv-toggle:hover { border-color: var(--brand); color: var(--brand); }
.rv-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.rv-toggle .chev { width: 18px; height: 18px; color: var(--brand); transform: rotate(90deg); transition: transform .2s var(--mo-ease); }
.rv-row.is-open .rv-toggle .chev { transform: rotate(-90deg); }
.rv-end { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.rv-signoff { margin: 0; font-size: 18px; font-weight: 600; color: var(--text); }
#reviews .title-col .text-link { margin-top: 8px; }
@media (max-width: 599.98px) {
  .rv-card { padding: 2px 20px; }
  .rv-row { padding: 24px 0; }
  .rv-row.is-live { padding-left: 14px; margin-left: -14px; }
}
@media (prefers-reduced-motion: reduce) { .rv-toggle .chev, .pm-cue { transition: none; } }
/* The one card without a video runs wide and horizontal on desktop, so the last row closes cleanly
   next to the Upwork card instead of leaving a hole. */
@media (min-width: 1100px) {
  .more-grid .mini:not(.has-video) { grid-column: span 2; flex-direction: row; }
  .more-grid .mini:not(.has-video) .work-media { flex: 0 0 46%; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); }
  .more-grid .mini:not(.has-video) .work-body { padding: 24px 24px 12px; justify-content: center; }
}
.work-head .h2, #reviews .h2 { text-wrap: balance; }

/* Mobile menu (00001.19, FINDINGS fix 5): a <details> so it opens with JS off too; hidden where the nav shows. */
.menu { position: static; }
.menu summary {
  list-style: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--text); border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
.menu summary::-webkit-details-marker { display: none; }
.menu .i-close, .menu[open] .i-menu { display: none; }
.menu[open] .i-close { display: block; }
.menu-panel {
  position: absolute; left: var(--gutter); right: var(--gutter); top: calc(var(--header-h) - 2px); z-index: 60;
  display: grid; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}
.menu-panel a {
  display: flex; align-items: center; min-height: 52px; padding: 0 14px; border-radius: 10px;
  font: 500 16px/1 var(--mono); color: var(--text); text-decoration: none;
}
.menu-panel a span { color: var(--brand); }
.menu-panel a:hover, .menu-panel a:focus-visible { background: var(--tint); }
@media (min-width: 900px) { .menu { display: none; } }
@media (max-width: 380px) { .site-header .btn-sm { padding: 0 12px; } .header-actions { gap: 6px; } }

/* Device app card (00001.19): no recording exists and the app stays unnamed, so the media slot is a drawn
   diagram on the same dark stage as the video cards: a phone, its protection ring, and the three things
   the app does, in the site's terminal voice. Not a screenshot and not presented as one. */
.device-media {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 18px;
  padding: 18px 20px; background: radial-gradient(120% 90% at 20% 30%, rgba(13, 115, 119, .38), transparent 60%), #0c0d10; color: #EAEAE8;
}
.device-media::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(234, 234, 232, .07) 1px, transparent 1.2px); background-size: 16px 16px;
}
.dv-phone { position: relative; width: 76px; height: auto; }
.dv-phone .body { fill: #16171c; stroke: #3a3b44; stroke-width: 2; }
.dv-phone .glass { fill: #0f1013; }
.dv-phone .shield { fill: rgba(21, 163, 168, .18); stroke: #15A3A8; stroke-width: 2; stroke-linejoin: round; }
.dv-phone .tick { fill: none; stroke: #9CEFF2; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.dv-phone .orbit { fill: none; stroke: #15A3A8; stroke-width: 1.4; stroke-dasharray: 2 5; opacity: .8; }
.dv-flow { position: relative; list-style: none; margin: 0; padding: 0 0 0 18px; display: grid; gap: 10px; font: 400 12.5px/1.35 var(--mono); }
.dv-flow::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1px; background: #15A3A8; opacity: .7; }
.dv-flow li { position: relative; color: #C4CBCD; }
.dv-flow li::before { content: ""; position: absolute; left: -18px; top: .42em; width: 9px; height: 9px; border-radius: 99px; background: #0c0d10; border: 1.5px solid #15A3A8; }
.dv-flow li b { display: block; font-weight: 500; color: #EAEAE8; }
.dv-flow li.alert::before { border-color: #E8913A; }
.dv-flow li.alert b { color: #F2B477; }
@media (min-width: 1100px) { .dv-phone { width: 96px; } .dv-flow { font-size: 13px; gap: 14px; } }
@media (max-width: 599.98px) { .pm-cue { top: 8px; right: 8px; font-size: 11px; padding: 5px 9px; } }

/* ==== BOOKING DIALOG CSS (00001.21) BEGIN ==== booking-modal champion (design/inspiration/sections/booking-modal
   r3 v3; station line r5 f2; DESIGN-GUIDE section 12). One native <dialog>, no nested page header.
   >= 900px: three steps side by side (day, time, details) joined by one teal thread (inline SVG, drawn with
   stroke-dashoffset) that ends in a check node wired into the one orange Confirm. < 900px and the booked state:
   a station line on top and one step at a time. Fallback mode: the loom /cal iframe inside the same chrome.
   Mode lives in [data-book-mode] (idle, loading, flow, booked, fallback). Motion: transform, opacity and the
   thread's stroke-dashoffset only; the kit's reduced-motion rule shows every final state. */
html.book-lock { overflow: hidden; }
.book {
  --bk-panel: var(--surface); --bk-chip: #34343D; --bk-field: #141418; --bk-thread: #15A3A8; --bk-err: #F2B477;
  width: min(1180px, calc(100vw - 48px)); max-width: none; max-height: calc(100dvh - 48px); margin: auto; padding: 0;
  display: none; flex-direction: column; overflow: hidden;
  background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .5), 0 0 0 1px var(--glow);
}
:root[data-theme="light"] .book {
  --bk-chip: #DCDCD8; --bk-field: #FFFFFF; --bk-thread: #0D7377; --bk-err: #9A4A10;
  box-shadow: 0 24px 64px rgba(20, 20, 24, .18);
}
.book[open] { display: flex; }
.book [hidden] { display: none !important; }
.book::backdrop { background: rgba(10, 10, 12, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
:root[data-theme="light"] .book::backdrop { background: rgba(20, 20, 24, .45); }
.book-sentinel { position: absolute; width: 1px; height: 1px; overflow: hidden; outline: none; }

/* head: eyebrow, headline with the teal cursor, one sub line, close top right */
.book-head { position: relative; flex: none; padding: 26px 88px 18px 28px; }
.book-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 8px; }
.book-preview {
  font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--brand);
  background: var(--tint); border-radius: 8px; padding: 5px 9px; line-height: 1.3;
}
.book-title { margin: 0; font-size: clamp(26px, 2vw + 12px, 42px); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
/* the title is a block, not the hero's flex-end row, so the shared .cursor margin-bottom lifted the bar .1em off the
   baseline; drop it and sink the bar to straddle the baseline like the hero cursor (typed-underscore position) */
.book-title .cursor { margin-bottom: 0; vertical-align: -.07em; }
.book-sub { margin: 8px 0 0; font-size: 16px; line-height: 1.45; color: var(--muted); }
.book-actions { position: absolute; top: 18px; right: 18px; display: flex; align-items: center; gap: 8px; }
.book-newtab {
  display: none; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap;
}
.book[data-book-mode="fallback"] .book-newtab { display: inline-flex; }
.book-newtab .icon { width: 16px; height: 16px; }
.book-newtab:hover { color: var(--text); background: var(--tint); }
.book-close {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; flex: none; cursor: pointer;
  background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 12px;
}
:root:not([data-theme="light"]) .book-close { border-color: #3A3A44; }
.book-close:hover { border-color: var(--brand); background: var(--tint); }

/* body: the flow (steps), the booked panel, the fallback frame */
.book-flow { position: relative; flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.book-steps {
  position: relative; display: grid; align-items: start; gap: 16px;
  grid-template-columns: minmax(140px, 176px) minmax(140px, 176px) minmax(0, 1fr); padding: 6px 28px 28px;
}
.bk-step { position: relative; z-index: 1; min-width: 0; background: var(--bk-panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px 16px 16px; box-shadow: var(--shadow); }
.bk-step-details { border-color: transparent; padding: 18px 20px 20px 24px; }
.bk-step-label { margin: 0 0 14px; font: 500 13px/1.4 var(--mono); letter-spacing: .02em; color: var(--hl); outline: none; }
.bk-step-label span { color: var(--brand); }
.bk-step-label:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.bk-days, .bk-times { display: grid; gap: 8px; }
.bk-chip {
  position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  width: 100%; min-height: 44px; padding: 8px 34px 8px 14px; cursor: pointer; text-align: left;
  font: 400 15px/1.3 var(--font); color: var(--text); background: transparent;
  border: 1px solid var(--bk-chip); border-radius: 8px;
}
.bk-day { min-height: 56px; }
.bk-wd { font-weight: 500; }
.bk-dt { color: var(--muted); font-size: 14px; }
.bk-chip::after {
  content: ""; position: absolute; right: 13px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%;
  background: var(--hl); opacity: 0; transform: scale(.4); transition: opacity .3s var(--mo-ease), transform .5s var(--mo-ease-settle, var(--mo-ease));
}
.bk-chip:hover { border-color: var(--brand); }
.bk-chip[aria-pressed="true"] { border-color: var(--brand); background: var(--tint); box-shadow: inset 0 0 0 1px var(--brand); }
.bk-chip[aria-pressed="true"] .bk-dt { color: var(--text); }
.bk-chip[aria-pressed="true"]::after { opacity: 1; transform: none; }
.bk-chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
.bk-wait, .bk-tz { margin: 0; font: 400 12px/1.5 var(--mono); color: var(--muted); }
.bk-tz { margin-top: 12px; }
.bk-wait a { color: var(--hl); }

/* details: 2 field columns + a confirm column the thread comes down into */
.bk-step-details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 152px; column-gap: 16px; row-gap: 12px; }
.bk-step-details .bk-step-label { grid-column: 1 / -1; margin-bottom: 2px; }
.bk-field { min-width: 0; grid-column: 1; }
.bk-field.bk-col2 { grid-column: 2; }
.bk-field-wide { grid-column: 1 / 3; }
.bk-field label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 500; line-height: 1.3; }
.bk-field label span { color: var(--muted); font-weight: 400; }
.bk-field input, .bk-field textarea {
  display: block; width: 100%; min-height: 44px; margin: 0; padding: 10px 12px; font: 400 16px/1.4 var(--font);
  color: var(--text); background: var(--bk-field); border: 1px solid var(--bk-chip); border-radius: 8px;
}
.bk-field textarea { min-height: 112px; max-height: 60vh; resize: vertical; }
.bk-count { margin: 4px 0 0; font: 400 12px/1.3 var(--mono); color: var(--muted); text-align: right; }
.bk-field input::placeholder, .bk-field textarea::placeholder { color: var(--muted); opacity: .75; }
.bk-field input:focus-visible, .bk-field textarea:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); border-radius: 8px; }
.bk-field [aria-invalid="true"] { border-color: var(--bk-err); }
.bk-err { margin: 6px 0 0; font-size: 13px; line-height: 1.4; color: var(--bk-err); }
.bk-confirm { grid-column: 3; grid-row: 4; align-self: end; }
.bk-confirm-btn { width: 100%; padding: 0 12px; white-space: nowrap; }
.bk-confirm-btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.bk-alert {
  grid-column: 1 / -1; margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bk-panel); font-size: 15px; line-height: 1.5; color: var(--text);
}
.bk-alert a { color: var(--hl); }
.bk-alert button { font: inherit; color: var(--hl); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.bk-nav { display: none; }

/* the thread: one path (chip to chip, around the details panel, down to the node, stub into Confirm) */
.book-thread { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; overflow: visible; pointer-events: none; transition: opacity .4s var(--mo-ease); }
:root:not([data-theme="light"]) .book-thread { filter: drop-shadow(0 0 3px rgba(21, 163, 168, .55)); }
.book-thread.is-off { opacity: 0; }
.bt-path {
  fill: none; stroke: var(--bk-thread); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1 2; stroke-dashoffset: 0; transition: stroke-dashoffset var(--bt-dur, 1.4s) var(--mo-ease);
}
.bt-node { transform-box: fill-box; transform-origin: 50% 50%; transition: opacity .4s var(--mo-ease) var(--bt-dur, 1.4s), transform .7s var(--mo-ease-settle, var(--mo-ease)) var(--bt-dur, 1.4s); }
.bt-ring { fill: var(--bg); stroke: var(--bk-thread); stroke-width: 1.5; }
.bt-core { fill: var(--bk-thread); opacity: 0; transition: opacity .5s var(--mo-ease); }
.bt-tick { fill: none; stroke: var(--hl); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .3; transition: opacity .4s var(--mo-ease); }
.book-thread.is-ready .bt-tick { opacity: 1; }
.book-thread.is-booked .bt-core { opacity: 1; }
.book-thread.is-booked .bt-tick { opacity: 1; stroke: var(--bg); }
.book-thread.is-reset .bt-path { stroke-dashoffset: 1; transition: none; }
.book-thread.is-reset .bt-node { opacity: 0; transform: scale(.4); transition: none; }

/* station line (r5 f2): narrow widths and the booked state */
.book-line { display: none; position: relative; flex: none; margin: 4px 28px 14px; }
.book-track, .st-fill { position: absolute; left: 12.5%; right: 12.5%; top: 11px; height: 2px; border-radius: 2px; }
.book-track { background: var(--line); }
:root:not([data-theme="light"]) .book-track { background: #34343D; }
.st-fill { left: 0; right: 0; top: 0; background: var(--brand); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; transition: transform 1.4s var(--mo-ease); }
.st-fill.no-tr { transition: none; }
.book-stations { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.st { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; text-align: center; }
.st-node {
  position: relative; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--bk-chip); color: var(--bg);
}
.st-node::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; background: var(--brand); opacity: 0; transform: scale(.5); transition: opacity .4s var(--mo-ease), transform .6s var(--mo-ease-settle, var(--mo-ease)); }
.st-check { position: relative; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .4s var(--mo-ease) .2s; }
.st[aria-current="step"] .st-node { border-color: var(--brand); box-shadow: 0 0 0 4px var(--tint); }
.st[aria-current="step"] .st-node::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.st-confirm .st-node { border-color: var(--cta); }
.st.is-done .st-node { border-color: var(--brand); }
.st.is-done .st-node::before { opacity: 1; transform: none; }
.st.is-done .st-check { opacity: 1; }
.st-name { font: 500 12px/1.3 var(--mono); letter-spacing: .02em; color: var(--muted); }
.st[aria-current="step"] .st-name, .st.is-done .st-name { color: var(--hl); }
.st-confirm .st-name { color: var(--text); }
.st-val { min-height: 1.3em; font: 500 12px/1.3 var(--mono); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

/* booked panel */
.book-done { display: none; margin: 0 28px 28px; padding: 22px 22px 22px 20px; background: var(--bk-panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.bk-done-row { display: flex; gap: 16px; align-items: flex-start; }
.bk-done-mark { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--brand); color: var(--hl); }
.bk-done-mark svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bk-done-preview { display: inline-block; margin: 0 0 8px; line-height: 1.4; border-radius: 8px; text-transform: none; letter-spacing: .02em; font-size: 12px; }
.bk-done-title { margin: 0 0 4px; font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; outline: none; }
.bk-done-when { margin: 0 0 6px; font: 500 14px/1.5 var(--mono); color: var(--hl); }
.bk-done-note { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.bk-done-actions { display: flex; justify-content: flex-end; }

/* fallback: the loom /cal iframe (00001.20 behaviour) inside the new chrome */
.book-frame { display: none; position: relative; flex: 1 1 auto; min-height: 0; background: var(--bg); border-top: 1px solid var(--line); }
.book-frame iframe { display: block; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .35s var(--mo-ease); }
.book-frame.is-loaded iframe { opacity: 1; }
.book-status {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 24px; text-align: center; font: 400 14px/1.5 var(--mono); color: var(--muted);
}
.book-frame.is-loaded .book-status { display: none; }
.book-status a { color: var(--hl); }

/* modes */
.book[data-book-mode="booked"] .book-flow, .book[data-book-mode="fallback"] .book-flow { display: none; }
.book[data-book-mode="booked"] .book-line { display: block; }
.book[data-book-mode="booked"] .book-done { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px 24px; }
.book[data-book-mode="fallback"] { width: min(760px, calc(100vw - 48px)); height: min(820px, calc(100dvh - 48px)); }
.book[data-book-mode="fallback"] .book-frame { display: block; }
.book[data-book-mode="fallback"] .book-head { padding-right: 230px; }
.book[data-book-mode="loading"] .bk-step-time, .book[data-book-mode="idle"] .bk-step-time { min-height: 120px; }

/* motion: the dialog arrives, then the head and the panels settle in beats; the thread draws after them */
@keyframes bk-in { from { opacity: 0; transform: translate3d(0, 16px, 0) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes bk-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translate3d(0, 12px, 0) scale(.985); } }
@keyframes bk-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes bk-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes bk-sheet-in { from { transform: translate3d(0, 100%, 0); } to { transform: none; } }
@keyframes bk-sheet-out { from { transform: none; } to { transform: translate3d(0, 100%, 0); } }
@keyframes bk-rise { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: none; } }
.book[open] { animation: bk-in .45s var(--mo-ease) both; }
.book[open]::backdrop { animation: bk-fade-in .35s var(--mo-ease) both; }
.book.is-closing { animation: bk-out .24s var(--mo-ease) both; }
.book.is-closing::backdrop { animation: bk-fade-out .24s var(--mo-ease) both; }
.book.is-entering .bk-beat { animation: bk-rise .9s var(--mo-ease) both; animation-delay: calc(var(--b, 0) * 150ms + 100ms); }
.book-done.is-in { animation: bk-rise .9s var(--mo-ease) .15s both; }

/* below the three-column width: station line, one step at a time, Back / Next */
@media (max-width: 1099.98px) {
  .book-steps { grid-template-columns: 168px 168px minmax(0, 1fr); padding: 6px 24px 24px; gap: 14px; }
  .bk-step-day, .bk-step-time { padding-left: 14px; padding-right: 14px; }
  .bk-step-label { font-size: 12.5px; letter-spacing: 0; }
  .bk-step-details { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 124px; column-gap: 14px; padding-left: 18px; padding-right: 16px; }
  .book-head { padding-left: 24px; }
}
@media (max-width: 899.98px) {
  .book { width: min(640px, calc(100vw - 32px)); height: min(780px, calc(100dvh - 32px)); max-height: none; }
  .book-head { padding: 20px 76px 12px 20px; }
  .book-actions { top: 12px; right: 12px; }
  .book-sub { font-size: 15px; margin-top: 6px; }
  .book-line { display: block; margin: 6px 12px 12px; }
  .book-steps { display: flex; flex-direction: column; align-items: stretch; min-height: 100%; padding: 0 20px 0; gap: 12px; }
  .book-thread { display: none; }
  .bk-step { display: none; padding: 16px; }
  .bk-step.is-current { display: block; }
  .book.is-entering .bk-step.bk-beat { animation-delay: 400ms; }
  .bk-step-details.is-current { display: grid; }
  .bk-step-details { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-color: var(--line); }
  .bk-field.bk-col2 { grid-column: 2; }
  .bk-field-wide, .bk-confirm { grid-column: 1 / -1; grid-row: auto; }
  .bk-confirm { margin-top: 4px; }
  .bk-days { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
  .bk-times { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
  .bk-nav {
    position: sticky; bottom: 0; z-index: 3; display: flex; justify-content: space-between; gap: 12px;
    margin: auto -20px 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--bg); border-top: 1px solid var(--line);
  }
  .bk-nav .btn { min-width: 112px; }
  .bk-next { border-color: var(--brand); }
  .bk-next[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
  .bk-back[disabled] { visibility: hidden; }
  .book[data-book-mode="booked"] .book-done { margin: 4px 20px 20px; }
  .book[data-book-mode="fallback"] .book-line { display: none; }
  .book[data-book-mode="fallback"] .book-head { padding-right: 76px; padding-bottom: 6px; }
  .book[data-book-mode="fallback"] .book-actions { position: static; margin-top: 2px; }
  .book[data-book-mode="fallback"] .book-newtab { padding: 0; }
  .book[data-book-mode="fallback"] .book-close { position: absolute; top: 12px; right: 12px; }
  .book[data-book-mode="fallback"] { width: min(760px, calc(100vw - 32px)); height: calc(100dvh - 32px); }
}
@media (max-width: 599.98px) {
  .book, .book[data-book-mode="fallback"] {
    width: 100vw; height: calc(100dvh - 8px); margin: auto 0 0; border-radius: 16px 16px 0 0;
    border-left: 0; border-right: 0; border-bottom: 0;
  }
  .book-head { padding: 16px 68px 10px 16px; }
  .book-actions { top: 10px; right: 10px; }
  .book-title { font-size: 24px; }
  .book-line { margin: 4px 16px 10px; }
  .st-name, .st-val { font-size: 11px; letter-spacing: 0; }
  .book-steps { padding: 0 16px; }
  .bk-nav { margin: auto -16px 0; padding-left: 16px; padding-right: 16px; }
  .bk-step-details { grid-template-columns: minmax(0, 1fr); }
  .bk-field.bk-col2 { grid-column: 1; }
  .book-done { padding: 18px 16px; }
  .book[data-book-mode="booked"] .book-done { grid-template-columns: minmax(0, 1fr); }
  .book[data-book-mode="booked"] .book-done { margin: 4px 16px 16px; }
  .book[open] { animation: bk-sheet-in .45s var(--mo-ease) both; }
  .book.is-closing { animation: bk-sheet-out .26s var(--mo-ease) both; }
}
@media (prefers-reduced-motion: reduce) {
  .book[open], .book[open]::backdrop, .book.is-closing, .book.is-closing::backdrop, .book.is-entering .bk-beat, .book-done.is-in { animation: none; }
  .book-thread, .bt-path, .bt-node, .bt-core, .bt-tick, .st-fill, .st-node::before, .st-check, .bk-chip::after, .book-frame iframe { transition: none; }
}
/* ==== BOOKING DIALOG CSS (00001.21) END ==== */

/* ---------- section motion (00001.15; SOP 6b). Keyframes run only from .mo-in (GO-011 safe), fill backwards so a
   finished element falls back to its own styles (hover states). The hidden start state lives under html.mo and
   :not(.mo-in) only, so JS off and reduced motion show the finished page. Transform, opacity, stroke-dashoffset. ---- */
:is(.builds-row, .contact-list, .stats, .about-story, .dv-flow, .rv-stars) > :nth-child(2) { --n: 1; }
:is(.builds-row, .contact-list, .stats, .about-story, .dv-flow, .rv-stars) > :nth-child(3) { --n: 2; }
:is(.builds-row, .contact-list, .stats, .about-story, .dv-flow, .rv-stars) > :nth-child(4) { --n: 3; }
:is(.builds-row, .contact-list, .stats, .about-story, .dv-flow, .rv-stars) > :nth-child(5) { --n: 4; }
:is(.builds-row, .contact-list, .stats, .about-story, .dv-flow, .rv-stars) > :nth-child(6) { --n: 5; }
:is(.builds-row, .contact-list, .stats, .about-story, .dv-flow, .rv-stars) > :nth-child(7) { --n: 6; }
@keyframes mo-in-left { from { opacity: 0; transform: translate3d(-12px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes mo-slide { from { opacity: 0; transform: translate3d(-24px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes mo-set { from { opacity: 0; transform: scale(.55); } 40% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes mo-drop { from { opacity: 0; transform: translate3d(0, -14px, 0); } 35% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes mo-focus { from { opacity: 0; transform: scale(1.08); } 45% { opacity: 1; } to { opacity: 1; transform: none; } }

/* Trace: a current runs down, across, down to the section node (desktop SVG), then the hairline spreads from it */
@keyframes jl1 { from { stroke-dashoffset: 100; } 28% { stroke-dashoffset: 0; } to { stroke-dashoffset: 0; } }
@keyframes jl2 { from, 28% { stroke-dashoffset: 100; } 62% { stroke-dashoffset: 0; } to { stroke-dashoffset: 0; } }
@keyframes jl3 { from, 62% { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes jl23 { from, 28% { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes jnode { from, 74% { opacity: 0; } 86% { opacity: 1; } to { opacity: 1; } }
@keyframes jt { from { opacity: 0; transform: translate3d(var(--x1), 0, 0); } 6% { opacity: 1; }
  28% { transform: translate3d(var(--x1), 35%, 0); } 62% { transform: translate3d(var(--x2), 35%, 0); }
  79% { opacity: 1; transform: translate3d(var(--x2), 64%, 0); } to { opacity: 0; transform: translate3d(var(--x2), 64%, 0); } }
@keyframes jt-straight { from { opacity: 0; transform: translate3d(var(--x1), 0, 0); } 6% { opacity: 1; }
  76% { opacity: 1; transform: translate3d(var(--x1), 64%, 0); } to { opacity: 0; transform: translate3d(var(--x1), 64%, 0); } }
@keyframes jhair { from { transform: scaleX(0); } to { transform: none; } }
@keyframes jdown { from { transform: scaleY(0); } to { transform: none; } }
/* set per section by site.js (r2); registered non-inherited so a change restyles only the section, not its subtree */
@property --mo-line { syntax: '<number>'; inherits: false; initial-value: 0; }
@property --mo-tip { syntax: '<length>'; inherits: false; initial-value: 0px; }
.mo .junction line { stroke-dasharray: 100; }
.mo .junction:not(.mo-in) line { stroke-dashoffset: 100; }
.mo .junction:not(.mo-in) circle, .mo .junction:not(.mo-in) .jd { opacity: 0; }
.mo .junction:not(.mo-in)::before { transform: scaleX(0); }
.mo .junction.mo-in line { animation: jl1 1.6s linear backwards; }
.mo .junction.mo-in line:nth-of-type(2) { animation-name: jl2; }
.mo .junction.mo-in line:nth-of-type(2):last-of-type { animation-name: jl23; }
.mo .junction.mo-in line:nth-of-type(3) { animation-name: jl3; }
.mo .junction.mo-in circle { animation: jnode 1.6s linear backwards; }
.junction::before { transform-origin: var(--x2, 0) 50%; }
.mo .junction.mo-in::before { animation: jhair 1.4s var(--mo-ease) 1.1s backwards; }
.junction .jt { position: absolute; inset: 0; overflow: clip; overflow-clip-margin: 10px; pointer-events: none; }
.junction .jt > span { position: absolute; inset: 0; opacity: 0; }
.junction .jt > span::before {
  content: ""; position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 99px;
  background: var(--brand); box-shadow: 0 0 0 3px var(--tint), 0 0 12px var(--brand);
}
.mo .junction.mo-in .jt > span { animation: jt 1.6s linear backwards; }
.mo .junction.j-straight.mo-in .jt > span { animation-name: jt-straight; }
@media (min-width: 900px) { .mo .junction .jt { display: block; } }
@media (max-width: 899.98px) {
  .junction::before { transform-origin: 0 50%; }
  .junction .jd { z-index: 1; }
  .mo .flow > .junction:not(.mo-in)::after, .mo .flow > .section:not(.mo-in)::before { transform: scaleY(0); }
  .mo .flow > .junction.mo-in::after { animation: jdown .9s linear backwards; }
  .mo .junction.mo-in .jd { animation: mo-set .9s var(--mo-ease-settle) .55s backwards; }
  .mo .junction.mo-in::before { animation-delay: .7s; }
  /* r2: a section's segment grows to the top of its newest revealed block (--mo-line/--mo-tip, set by site.js from the
     kit's reveals), so the line keeps drawing as you scroll through a long section; a node rides the tip and settles */
  .mo .flow > .section::before, .mo .flow > .section::after { --mo-line: inherit; --mo-tip: inherit; }
  .mo .flow > .section::before { transition: transform 1.1s cubic-bezier(.3,0,.2,1); }
  .mo .flow > .section.mo-in::before { transform: scaleY(var(--mo-line, 0)); }
  .mo .flow > .section::after {
    content: ""; position: absolute; top: 0; left: calc(var(--gutter) / -2 - 4px); width: 9px; height: 9px; margin-top: -4px;
    border-radius: 99px; background: var(--bg); border: 1.5px solid var(--brand); z-index: 1; opacity: 0;
    transform: translate3d(0, var(--mo-tip, 0px), 0);
    transition: transform 1.1s var(--mo-ease-settle), opacity .9s var(--mo-ease);
  }
  .mo .flow > .section.mo-in:not(.mo-line-end)::after { opacity: 1; }
  .mo .flow > .section.mo-line-end::after { transition-delay: 0s, .6s; }
}

/* Section heads (work head + every title column): the prompt slides in, the heading rises, then the rest */
.mo :is(.work-head, .title-col)[data-mo=hook]:not(.mo-in) :is(.eyebrow, .h2, .muted, .text-link, .stats > div),
.mo .title-col[data-mo=hook]:not(.mo-in) > .stats { opacity: 0; }
.mo :is(.work-head, .title-col).mo-in .eyebrow { animation: mo-in-left .9s var(--mo-ease) backwards; }
.mo :is(.work-head, .title-col).mo-in .h2 { animation: rise .9s var(--mo-ease) .15s backwards; }
.mo :is(.work-head, .title-col).mo-in :is(.muted, .text-link) { animation: rise .9s var(--mo-ease) .3s backwards; }
.mo .title-col.mo-in > .stats { animation: fade .9s var(--mo-ease) .3s backwards; }
.mo .title-col.mo-in .stats > div { animation: mo-drop 1.4s var(--mo-ease-settle) calc(.45s + var(--n, 0) * 160ms) backwards; }

/* Work: the build tiles assemble (story), each recording comes into focus in its card */
.mo .builds[data-mo=hook]:not(.mo-in) :is(.builds-label, li, .tile) { opacity: 0; }
.mo .builds.mo-in .builds-label { animation: mo-in-left .9s var(--mo-ease) backwards; }
.mo .builds.mo-in li { animation: rise .9s var(--mo-ease) calc(.15s + var(--n, 0) * 150ms) backwards; }
.mo .builds.mo-in .tile { animation: mo-set 1.4s var(--mo-ease-settle) calc(.3s + var(--n, 0) * 150ms) backwards; }
.mo .card[data-mo]:not(.mo-in) :is(.pm-video, .chip-status, .dv-flow li) { opacity: 0; }
.mo .card.mo-in .pm-video { animation: mo-focus 1.4s var(--mo-ease) calc(var(--mo-i, 0) * 120ms + .2s) backwards; }
.mo .card.mo-in .chip-status { animation: fade .9s var(--mo-ease) calc(var(--mo-i, 0) * 120ms + .6s) backwards; }
.mo .card.mo-in .dv-flow li { animation: rise .9s var(--mo-ease) calc(var(--mo-i, 0) * 120ms + .3s + var(--n, 0) * 150ms) backwards; }

/* Reviews: each review rises on its own, its five stars light up one by one (story) */
.mo .rv-row[data-mo]:not(.mo-in) .rv-star { opacity: 0; }
.mo .rv-row.mo-in .rv-star { animation: mo-set 1.4s var(--mo-ease-settle) calc(var(--mo-i, 0) * 120ms + .3s + var(--n, 0) * 120ms) backwards; }
.mo .rv-end[data-mo=hook]:not(.mo-in) > * { opacity: 0; }
.mo .rv-end.mo-in > * { animation: rise .9s var(--mo-ease) backwards; }
.mo .rv-end.mo-in > .btn { animation-delay: .2s; }

/* About: the story reads in paragraph by paragraph; the two facts drop into place (story, in the head above) */
.mo .about-story[data-mo=hook]:not(.mo-in) > p { opacity: 0; }
.mo .about-story.mo-in > p { animation: rise .9s var(--mo-ease) calc(.15s + var(--n, 0) * 150ms) backwards; }

/* Contact: the ways to reach me slide in down the list, each icon tile snapping into its slot (story) */
.mo .contact-list[data-mo=hook]:not(.mo-in) :is(li, .tile) { opacity: 0; }
.mo .contact-list.mo-in li { animation: mo-slide .9s var(--mo-ease) calc(var(--n, 0) * 130ms) backwards; }
.mo .contact-list.mo-in .tile { animation: mo-set 1.4s var(--mo-ease-settle) calc(.15s + var(--n, 0) * 130ms) backwards; }
/* the closing line belongs to the list's stagger (r2), so a direct load of #contact shows it without a scroll */
.mo .contact-list[data-mo=hook]:not(.mo-in) ~ .contact-close { opacity: 0; }
.mo .contact-list.mo-in ~ .contact-close { animation: fade .9s var(--mo-ease) 1s backwards; }

@media print {
  .mo [data-mo]:not(.hero) *, .mo .junction::before, .mo .flow > *::before, .mo .flow > *::after { transition: none !important; animation: none !important; opacity: 1 !important; transform: none !important; }
  .mo .contact-close { animation: none !important; opacity: 1 !important; }
  .mo .flow > .section::after { display: none; }
  .mo .junction line { stroke-dashoffset: 0 !important; }
  .junction .jt { display: none !important; }
}
