/* ==========================================================================
   Boona — site styles
   1 tokens · 2 base + type · 3 grid overlay · 4 nav · 5 hero · 6 case studies
   7 product screens · 8 approach + plan · 9 experience · 10 testimonials
   11 writing · 12 contact · 13 footer · 14 keyframes · 15 load + responsive
   16 reduced motion · 17 placeholders
   ========================================================================== */

/* 1 ▸ tokens ------------------------------------------------------------- */
/* Every colour, type, grid, spacing, radius and motion value lives in tokens.json at the site root.
   design/scripts/build-tokens.mjs turns it into css/tokens.css, which index.html loads just before this file;
   this file only reads the variables. */

/* 2 ▸ base + type -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--nav-h) + 24px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--ink); color: var(--ground); padding: 8px 12px; }
.skip:focus { left: 8px; top: 8px; }

.m {
  font-family: var(--mono); font-size: 10px; line-height: 1.4; font-weight: 400;
  letter-spacing: .08em; text-transform: uppercase; color: var(--quiet);
}
.m b, .m strong { color: var(--ink); font-weight: 600; }
.wrap { position: relative; z-index: 1; width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.row { display: grid; grid-template-columns: repeat(var(--cols), 1fr); align-items: start; }
.section { padding: clamp(72px, 9vw, 128px) 0 clamp(40px, 5vw, 64px); }
.t { font-weight: 600; letter-spacing: -.03em; line-height: 1.12; text-wrap: balance; }
h2.t { font-size: clamp(24px, 2.3vw, 31px); }
h3.t { font-size: clamp(20px, 1.9vw, 25px); font-weight: 500; letter-spacing: -.025em; line-height: 1.2; }
.quiet { color: var(--quiet); }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .8s var(--ease); }
.reveal.is-in, .no-js .reveal { opacity: 1; transform: none; }

/* section head: a mono label, the title large, a short note at the right, one rule under it all */
.shead {
  display: grid; grid-template-columns: repeat(var(--cols), 1fr); align-items: end;
  border-bottom: 1px solid var(--ink); padding-bottom: 16px; margin-bottom: clamp(40px, 6vw, 88px);
}
.shead__lbl { grid-column: 1 / -1; padding-inline: var(--inset); margin-bottom: 22px; }
.shead__t {
  grid-column: 1 / span 9; padding-inline: var(--inset);
  font-size: clamp(44px, 7.4vw, 96px); font-weight: 600; letter-spacing: -.045em; line-height: .95; text-wrap: balance;
}
.shead__t--mid { font-size: clamp(34px, 5.4vw, 70px); }
.shead__d { grid-column: 10 / -1; padding-inline: var(--inset); color: var(--quiet); max-width: 34ch; padding-bottom: 6px; }
.shead--tight { margin-bottom: 0; }
.shead__t .key { background-size: 100% .07em; background-position: 0 90%; }

/* 3 ▸ grid overlay ------------------------------------------------------- */
.gridlines {
  position: fixed; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: min(100% - 2 * var(--gutter), var(--max)); pointer-events: none; z-index: 0;
}
.gridlines i {
  position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line);
  left: calc(var(--k) * 100% / var(--cols));
}
.gridlines i::before {
  content: ""; position: absolute; inset: 0; background: var(--signal);
  transform: scaleY(0); transform-origin: top; opacity: 0;
}
.gridlines i:nth-child(13) { transform: translateX(-1px); }
@media (max-width: 1023px) {
  .gridlines i:nth-child(n+10) { display: none; }
  .gridlines i:nth-child(9) { transform: translateX(-1px); }
}
@media (max-width: 639px) {
  .gridlines i:nth-child(n+6) { display: none; }
  .gridlines i:nth-child(5) { transform: translateX(-1px); }
}
.gridlines--local { position: absolute; z-index: 0; }
.gridlines--local i { background: var(--color-on-dark-hairline); }
html[data-grid="off"] .gridlines { display: none; }

html.is-loading .gridlines i::before {
  opacity: 1; animation: griddraw .7s var(--snap) forwards; animation-delay: calc(var(--k) * 30ms);
}
html.is-snapped .gridlines i::before { transition: opacity .7s ease; opacity: 0; }

/* 4 ▸ nav ---------------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--color-on-dark-strong); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--nav-h); }
.nav__brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: -.02em; font-size: 14px; }
.nav__brand .mark { width: 16px; height: 16px; display: block; }
.nav__links { display: flex; gap: 22px; }
.nav__links a { font-size: 13px; letter-spacing: -.01em; color: var(--ink); display: inline-flex; align-items: baseline; gap: 6px; }
.nav__links a i { font: 500 9px/1 var(--mono); letter-spacing: .06em; color: var(--quiet); font-style: normal; }
.nav__links a:hover { color: var(--quiet); }
.nav__right { display: flex; align-items: center; gap: 10px; }
.toggle {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px;
  border: 1px solid var(--color-overlay-line); border-radius: 999px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
}
.toggle__ico { display: inline-flex; gap: 2px; }
.toggle__ico i { display: block; width: 2px; height: 10px; background: var(--ink); transition: background .2s; }
.toggle kbd { font: inherit; color: var(--quiet); }
html[data-grid="off"] .toggle__ico i { background: var(--line); }
html[data-grid="off"] .toggle { color: var(--quiet); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 10px; border-radius: 999px;
  background: var(--ink); color: var(--ground); font-size: 13px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; flex: none;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex: none; animation: pulse 2.2s infinite; }

/* 5 ▸ hero --------------------------------------------------------------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding-top: calc(var(--nav-h) + 22px); position: relative; }
/* the moving constellation behind the landing section (drawn by site.js); fades in once the page has landed */
.hero__field {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none;
  opacity: 0; transition: opacity 1.8s ease .2s;
  -webkit-mask-image: linear-gradient(to top, transparent 0, rgba(0, 0, 0, .85) 30%, var(--ink) 55%);
  mask-image: linear-gradient(to top, transparent 0, rgba(0, 0, 0, .85) 30%, var(--ink) 55%);
}
html:not(.is-loading) .hero__field { opacity: 1; }
/* the crosshair that follows the pointer across the landing section, with its position and grid column */
.xhair { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .25s ease; --x: -10px; --y: -10px; }
.hero.is-xhair .xhair { opacity: 1; }
.xhair__v { position: absolute; top: 0; bottom: 0; width: 1px; left: var(--x); background: var(--signal); opacity: .55; }
.xhair__h { position: absolute; left: 0; right: 0; height: 1px; top: var(--y); background: var(--signal); opacity: .55; }
.xhair__lbl {
  position: absolute; left: var(--x); top: var(--y); transform: translate(12px, 12px);
  background: var(--signal); color: var(--ground); font-family: var(--mono); font-size: 10px; letter-spacing: .06em; line-height: 1.3;
  padding: 3px 6px; border-radius: 3px; white-space: nowrap;
}
.xhair.is-left .xhair__lbl { transform: translate(calc(-100% - 12px), 12px); }
.xhair.is-up .xhair__lbl { transform: translate(12px, calc(-100% - 12px)); }
.xhair.is-left.is-up .xhair__lbl { transform: translate(calc(-100% - 12px), calc(-100% - 12px)); }
.hero__meta { display: grid; grid-template-columns: repeat(var(--cols), 1fr); row-gap: 18px; }
.hero__meta > div { grid-column: span 3; padding-inline: var(--inset); display: flex; flex-direction: column; gap: 6px; }
.hero__meta .m { font-size: 10px; }
.hero__meta b { font-weight: 500; font-size: 14px; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.hero__meta time { font-variant-numeric: tabular-nums; }
.hero__name {
  flex: 1; display: flex; align-items: center; min-height: 0; margin-top: clamp(32px, 7vh, 110px);
  border-top: 1px solid var(--line); padding: 2vh max(16px, 2vw) 0; line-height: 0; position: relative; z-index: 1;
}
.name__txt { display: inline-block; position: relative; font-weight: 700; font-size: clamp(40px, 8.4vw, 200px); letter-spacing: -.04em; line-height: .95; max-width: 100%; text-wrap: balance; }
.name { display: block; margin: clamp(18px, 2.5vw, 36px) 0; line-height: 0; position: relative; }
.name svg { width: 100%; height: auto; display: block; overflow: visible; }
.name text { font-family: var(--sans); font-weight: 700; font-size: 280px; letter-spacing: -.04em; fill: var(--ink); }
.hero__bottom { display: grid; grid-template-columns: repeat(var(--cols), 1fr); align-items: end; margin-top: clamp(24px, 4vh, 48px); padding-bottom: clamp(24px, 4vh, 44px); }
.hero__intro { grid-column: 1 / span 4; padding-inline: var(--inset); font-size: 16px; line-height: 1.45; letter-spacing: -.01em; max-width: 38ch; }
.key { background: linear-gradient(var(--teal), var(--teal)) no-repeat 0 94% / 100% .12em; }

.thumbs { grid-column: 5 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-inline: var(--inset); }
.thumb { display: block; }
.thumb__art {
  aspect-ratio: 4 / 3; position: relative; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(var(--line) 1px, transparent 1.4px) 0 0 / 12px 12px var(--ground);
  transition: border-color .2s;
}
.thumb:hover .thumb__art { border-color: var(--ink); }
.thumb__cap { margin-top: 10px; }
.thumb__row { display: flex; justify-content: space-between; gap: 8px; }
.thumb h3 { font-size: 14px; font-weight: 600; letter-spacing: -.02em; margin-top: 6px; }
.thumb p { font-size: 12px; color: var(--quiet); margin-top: 2px; letter-spacing: -.01em; }
.mini { position: absolute; inset: 16% 18%; background: var(--ground); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.mini--dark { background: var(--color-dark-surface); border-color: var(--color-dark-surface); }
.readout {
  position: fixed; right: 10px; bottom: 28px; z-index: 40; writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 9px; letter-spacing: .1em; color: var(--quiet); pointer-events: none;
}
.mini i { position: absolute; display: block; border-radius: 2px; background: var(--line); }
.mini .ring { position: absolute; border: 2px solid var(--accent); border-radius: 50%; }
.mini--phone { inset: 8% 33%; border-radius: 10px; border: 2px solid var(--ink); }

/* 6 ▸ case studies ------------------------------------------------------- */
.case { padding-block: clamp(40px, 5vw, 64px); --accent: var(--ink); }
.case__meta {
  display: grid; grid-template-columns: repeat(var(--cols), 1fr); align-items: baseline;
  border-top: 1px solid var(--line); padding-top: 12px; margin-bottom: clamp(28px, 3.5vw, 44px);
}
.case__meta > span { padding-inline: var(--inset); }
.case__n { grid-column: 1 / span 2; }
.case__name { grid-column: 3 / span 3; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: -.01em; text-transform: none; color: var(--ink); }
.case__tag { grid-column: 6 / span 4; }
.case__yr { grid-column: 10 / span 3; text-align: right; }
.swatch { display: inline-block; width: 9px; height: 9px; background: var(--accent); vertical-align: 0; margin-right: 8px; }

/* the words pin under the top bar while the taller screen scrolls past them */
.case__text { padding-inline: var(--inset); position: sticky; top: var(--stick); align-self: start; }
.case__text .t { margin-bottom: 22px; }
.case__text p { color: var(--quiet); max-width: 44ch; }
.case__text p + p { margin-top: 12px; }
.results { margin-top: 34px; border-top: 1px solid var(--line); }
.results li { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.results .num {
  font-weight: 600; font-size: clamp(28px, 2.5vw, 36px); letter-spacing: -.04em; line-height: 1;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.results .num small { font-size: .45em; letter-spacing: 0; color: var(--quiet); font-weight: 500; }
.results .lbl { text-align: right; }
.case__screen { padding-inline: var(--inset); min-width: 0; }
.case__cap { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
.replay { font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--ink); display: inline-flex; gap: 6px; align-items: center; }
.replay i { font-style: normal; color: var(--teal); font-size: 8px; }
.replay:hover { text-decoration: underline; text-underline-offset: 3px; }

.case--split .case__text { grid-column: 1 / span 5; }
.case--split .case__screen { grid-column: 7 / -1; }
.case--flip .case__screen { grid-column: 1 / span 8; grid-row: 1; }
.case--flip .case__text { grid-column: 9 / -1; grid-row: 1; }
.case--full .case__screen, .case--dark .case__screen { grid-column: 1 / -1; }
.case--full .case__screen { margin-bottom: clamp(32px, 4vw, 56px); }
.case--dark .case__screen { margin-top: clamp(32px, 4vw, 56px); }
/* under (or over) a full-width screen the words sit in a row of their own */
.case__text--row { grid-column: 1 / -1; position: static; display: grid; grid-template-columns: repeat(var(--cols), 1fr); align-items: start; padding-inline: 0; }
.case__text--row .t { grid-column: 1 / span 5; padding-inline: var(--inset); margin-bottom: 0; }
.case__text--row .case__body { grid-column: 7 / span 3; padding-inline: var(--inset); }
.case__text--row .case__body p { max-width: none; }
.case__text--row .results { grid-column: 10 / -1; margin: 0 var(--inset); }

.band { background: var(--bar); color: var(--on-bar); position: relative; z-index: 1; margin-top: clamp(40px, 5vw, 72px); }
.band .m { color: var(--color-on-dark-muted); }
.band .m b { color: var(--ground); }
.band .case__name, .band .replay { color: var(--ground); }
.band .case__meta { border-top-color: var(--color-on-dark-faint); }
.band .results, .band .results li { border-color: var(--color-on-dark-hairline); }
.band .results .num small { color: var(--color-on-dark-muted); }
.band .case__text p { color: var(--color-on-dark-text); }

.backdrop {
  container-type: inline-size; position: relative; border: 1px solid var(--line); padding: 5%;
  background: radial-gradient(var(--line) 1px, transparent 1.4px) 0 0 / 16px 16px var(--ground);
}
.band .backdrop {
  border-color: var(--color-on-dark-hairline);
  background: radial-gradient(var(--color-on-dark-hairline) 1px, transparent 1.4px) 0 0 / 16px 16px var(--color-dark-backdrop);
}
.backdrop--phone { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 4%; }
/* beside pinned words the field is square, so the screen floats in it and the words have room to pin */
.case--split .backdrop { aspect-ratio: 1 / 1; display: grid; align-content: center; }

/* selection box (Figma-like) used on the name and on screens while landing */
.sel::before {
  content: ""; position: absolute; inset: -6px; border: 1px solid var(--signal); opacity: 0;
  transition: opacity .5s ease; pointer-events: none; z-index: 2;
}
.sel .h {
  position: absolute; width: 7px; height: 7px; background: var(--ground); border: 1px solid var(--signal); opacity: 0;
  transition: opacity .5s ease; z-index: 3; pointer-events: none;
}
.sel .h.tl { left: -9px; top: -9px; } .sel .h.tr { right: -9px; top: -9px; }
.sel .h.bl { left: -9px; bottom: -9px; } .sel .h.br { right: -9px; bottom: -9px; }
.sel .dim {
  position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%);
  background: var(--signal); color: var(--ground); font-family: var(--mono); font-size: 10px; letter-spacing: .06em;
  padding: 3px 6px; border-radius: 3px; opacity: 0; transition: opacity .5s ease; z-index: 3; pointer-events: none;
}
html.is-loading:not(.is-snapped) .hero .sel::before,
html.is-loading:not(.is-snapped) .hero .sel .h,
html.is-loading:not(.is-snapped) .hero .sel .dim,
.backdrop.is-landing:not(.is-snapped)::before,
.backdrop.is-landing:not(.is-snapped) .h,
.backdrop.is-landing:not(.is-snapped) .dim { opacity: 1; }

/* 7 ▸ product screens ---------------------------------------------------- */
.screen {
  position: relative; background: var(--ground); border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  aspect-ratio: 16 / 10; font-size: clamp(8.5px, 1.45cqw, 13px); line-height: 1.3; color: var(--ink);
  box-shadow: var(--shadow-screen);
  outline: 1px dashed transparent; outline-offset: 6px;
  opacity: 0; transform: translate(14px, 10px);
  transition: transform .45s var(--snap), opacity .4s ease, outline-color .5s ease;
}
.no-js .screen { opacity: 1; transform: none; }
.backdrop.is-landing .screen { opacity: 1; transform: translate(10px, 8px) rotate(.4deg); outline-color: var(--signal); }
.backdrop.is-snapped .screen { transform: none; outline-color: transparent; }
.screen--dark { background: var(--color-dark-band); border-color: var(--color-on-dark-hairline); color: var(--ground); }
.screen .ui-m { font-family: var(--mono); font-size: .75em; letter-spacing: .06em; text-transform: uppercase; color: var(--quiet); }
.screen .ui-m b { color: inherit; font-weight: 600; }
.screen--dark .ui-m { color: var(--color-on-dark-muted); }
.screen--dark .ui-m b { color: var(--ground); }
.btn {
  display: inline-flex; align-items: center; gap: .4em; white-space: nowrap;
  font-family: var(--mono); font-size: .75em; letter-spacing: .06em; text-transform: uppercase;
  padding: .55em .95em; border: 1px solid var(--line); border-radius: 999px; background: var(--ground); color: var(--ink);
  transition: transform .12s ease, background .12s ease, color .12s ease;
}
.btn.is-pressed { background: var(--ink); color: var(--ground); transform: scale(.95); }
.btn--end { background: var(--lost); border-color: var(--lost); color: var(--ground); }
.btn--dark { background: transparent; border-color: var(--color-on-dark-faint); color: var(--ground); }
.btn--dark.is-pressed, .btn--dark.is-on { background: var(--ground); color: var(--ink); }

.cursor {
  position: absolute; left: 0; top: 0; z-index: 6; width: 1.3em; height: 1.6em; opacity: 0; pointer-events: none;
  filter: drop-shadow(var(--shadow-cursor));
  transition: left .6s var(--snap), top .6s var(--snap), opacity .3s ease;
}
.cursor svg { width: 100%; height: 100%; display: block; }
.cursor::after {
  content: ""; position: absolute; left: -.7em; top: -.7em; width: 1.6em; height: 1.6em; border-radius: 50%;
  border: 2px solid var(--signal); opacity: 0; transform: scale(.3);
}
.cursor.is-click::after { animation: clickring .5s ease-out; }

/* 7a Azhagi — video call */
.az { display: grid; grid-template-columns: 1fr 38%; grid-template-rows: 1fr auto; height: 100%; }
.az__stage { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 50% 30%, var(--color-dark-stage), var(--color-dark-stage-deep)); }
.az__top { position: absolute; left: 1em; right: 1em; top: .9em; display: flex; justify-content: space-between; align-items: center; color: var(--color-on-dark-text); }
.az__live { display: flex; align-items: center; gap: .5em; }
.az__live i { width: .55em; height: .55em; border-radius: 50%; background: var(--lost); }
.is-playing .az__live i { animation: blinkdot 1.2s infinite; }
.az__sees { position: absolute; left: 1em; bottom: 1em; display: flex; gap: .4em; flex-wrap: wrap; }
.az__sees span {
  opacity: 0; transform: translateY(4px); font-family: var(--mono); font-size: .7em; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ground); border: 1px solid var(--color-on-dark-faint); padding: .3em .6em; border-radius: 999px; background: var(--color-overlay-shade);
}
.az__sees .k { color: var(--coral); border-color: var(--coral); }
.is-playing .az__sees span { animation: chipin .35s var(--snap) forwards; animation-delay: var(--d, 0s); }
.azface { position: absolute; left: 50%; top: 54%; width: 50%; transform: translate(-50%, -50%); overflow: visible; }
.azface .head { transform-box: fill-box; transform-origin: 50% 85%; }
.azface .eye { transform-box: fill-box; transform-origin: center; }
.is-playing .azface .eye { animation: blink 4.2s infinite; }
.azface.is-blink .eye { animation: blink1 .28s ease-in-out; }
.azface .mouth { transform-box: fill-box; transform-origin: center; }
.azface.is-talking .mouth { animation: talk .18s infinite alternate ease-in-out; }
.azface.is-nod .head { animation: nod .55s ease-in-out; }
.azface.is-nod3 .head { animation: nod .5s ease-in-out 3; }
.azface .hand { opacity: 0; transform-box: fill-box; transform-origin: 50% 95%; }
.azface.is-wave .hand { animation: wave 1.3s ease-in-out forwards; }
.az__chat { border-left: 1px solid var(--line); padding: .9em; display: flex; flex-direction: column; gap: .55em; overflow: hidden; background: var(--ground); }
.az__chat .ui-m { margin-bottom: .2em; }
.bub {
  max-width: 94%; padding: .55em .75em; border-radius: .8em; font-size: .95em; line-height: 1.35;
  opacity: 0; transform: translateY(6px);
}
.bub.u { align-self: flex-end; background: var(--ink); color: var(--ground); border-bottom-right-radius: .2em; }
.bub.a { align-self: flex-start; background: var(--color-surface-bubble); border-bottom-left-radius: .2em; }
.is-playing .bub { animation: bubin .35s var(--snap) forwards; animation-delay: var(--d, 0s); }
.az__bar {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: .6em;
  padding: .65em 1em; border-top: 1px solid var(--line); background: var(--ground);
}
.az__bar .grp { display: flex; gap: .4em; align-items: center; }
.levels { display: flex; gap: .22em; align-items: flex-end; height: 1.3em; margin-right: .4em; }
.levels i { display: block; width: .32em; height: 30%; background: var(--coral); border-radius: 1px; }
.is-playing .levels i { animation: level .5s infinite alternate ease-in-out; animation-delay: calc(var(--i) * 90ms); }

/* 7b Boona Cue — text to animation */
.cue { display: grid; grid-template-columns: 34% 1fr; grid-template-rows: auto 1fr; height: 100%; }
.cue__top { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: .6em 1em; border-bottom: 1px solid var(--line); }
.cue__left { border-right: 1px solid var(--line); padding: 1em; display: flex; flex-direction: column; gap: .7em; min-height: 0; }
.prompt { border: 1px solid var(--ink); border-radius: .4em; padding: .7em .8em; min-height: 3.4em; font-size: 1em; transition: box-shadow .2s; }
.prompt.is-pressed { box-shadow: 0 0 0 .2em var(--color-violet-glow); }
.typed { display: inline-block; white-space: nowrap; overflow: hidden; vertical-align: bottom; max-width: 100%; width: 0; border-right: .12em solid var(--violet); }
.is-typing .typed { animation: typing 1.6s steps(34) forwards, caret .7s step-end infinite; }
.cues { display: flex; flex-direction: column; gap: .4em; }
.cue-item {
  display: flex; align-items: center; gap: .6em; padding: .5em .6em; border: 1px solid var(--line); border-radius: .3em;
  opacity: 0; transform: translateX(-6px); font-family: var(--mono); font-size: .78em; letter-spacing: .06em; text-transform: uppercase; color: var(--quiet);
}
.cue-item .sw { width: .7em; height: .7em; background: var(--violet); border-radius: 2px; flex: none; }
.cue-item .n { margin-left: auto; color: var(--ink); font-weight: 600; }
.is-parsed .cue-item { animation: slidein .3s var(--snap) forwards; animation-delay: var(--d, 0s); }
.cue__face { margin-top: auto; width: 46%; aspect-ratio: 1; align-self: center; background: var(--color-dark-surface); border-radius: 50%; overflow: hidden; position: relative; }
.cue__face svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cue__right { padding: 1em; display: grid; grid-template-rows: auto 1fr auto; gap: .8em; min-height: 0; }
.ruler { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: .3em; padding-left: 4.5em; }
.tracks { position: relative; display: flex; flex-direction: column; gap: .6em; padding-top: .2em; }
.track { display: grid; grid-template-columns: 4.5em 1fr; align-items: center; height: 2.4em; }
.lane { position: relative; height: 100%; border-radius: .2em; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 10%) var(--color-surface-lane); }
.kf { position: absolute; top: 15%; height: 70%; left: var(--x); width: var(--w); background: var(--violet); border-radius: .2em; transform: scaleX(0); transform-origin: left; }
.is-parsed .kf { animation: kfin .3s var(--snap) forwards; animation-delay: var(--d, 0s); }
.playhead { position: absolute; top: 0; bottom: 0; left: 4.5em; width: 1px; background: var(--ink); }
.playhead::before { content: ""; position: absolute; top: -.4em; left: -.35em; border: .35em solid transparent; border-top: .5em solid var(--ink); }
.is-scrubbing .playhead { animation: scrub 3.2s linear forwards; }
.counters { display: flex; gap: 1.2em; flex-wrap: wrap; align-items: center; }
.counters b { font-variant-numeric: tabular-nums; }
.counters .btn { margin-left: auto; }

/* 7c Thali — phone */
.phone {
  height: 100%; aspect-ratio: 9 / 18.5; max-width: 100%; background: var(--ground); border: .45em solid var(--color-dark-surface); border-radius: 2.2em; overflow: hidden;
  position: relative; display: flex; flex-direction: column; font-size: clamp(8px, 1.3cqw, 12px); line-height: 1.3;
  box-shadow: var(--shadow-phone);
  outline: 1px dashed transparent; outline-offset: 8px; opacity: 0; transform: translate(14px, 10px);
  transition: transform .45s var(--snap), opacity .4s ease, outline-color .5s ease;
}
.no-js .phone { opacity: 1; transform: none; }
.backdrop.is-landing .phone { opacity: 1; transform: translate(10px, 8px) rotate(.6deg); outline-color: var(--signal); }
.backdrop.is-snapped .phone { transform: none; outline-color: transparent; }
.phone__status { display: flex; justify-content: space-between; padding: .9em 1.3em .2em; font-family: var(--mono); font-size: .75em; }
.th__head { padding: .5em 1.3em .8em; border-bottom: 1px solid var(--line); }
.th__head h4 { font-size: 1.5em; letter-spacing: -.03em; font-weight: 600; }
.th__head .ui-m { margin-top: .2em; }
.chips { display: flex; gap: .35em; flex-wrap: wrap; padding: .7em 1.3em 0; }
.chip {
  font-family: var(--mono); font-size: .62em; letter-spacing: .05em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 999px; padding: .3em .6em; color: var(--quiet);
}
.chip.on { border-color: var(--teal); color: var(--ink); background: var(--color-teal-tint); }
.days { display: grid; grid-template-columns: repeat(7, 1fr); padding: .8em 1.3em 0; font-family: var(--mono); font-size: .65em; text-align: center; letter-spacing: .04em; }
.days span { padding: .4em 0; border-bottom: 2px solid transparent; color: var(--quiet); }
.days .on { color: var(--ink); border-color: var(--teal); }
.meals { padding: .7em 1.3em .4em; display: flex; flex-direction: column; gap: .5em; flex: 1; }
.meal {
  display: grid; grid-template-columns: 1fr auto; gap: .15em .6em; padding: .6em .75em; border: 1px solid var(--line); border-radius: .6em;
  opacity: 0; transform: translateY(5px);
}
.is-playing .meal { animation: bubin .35s var(--snap) forwards; animation-delay: var(--d, 0s); }
.meal .k { grid-column: 1 / -1; font-family: var(--mono); font-size: .6em; letter-spacing: .06em; text-transform: uppercase; color: var(--quiet); }
.meal .d { font-weight: 600; font-size: .95em; letter-spacing: -.01em; }
.meal .q { font-family: var(--mono); font-size: .7em; color: var(--color-teal-ink); align-self: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
.meal .q.is-bump { animation: bump .35s var(--snap); }
.variety { padding: 0 1.3em .6em; }
.variety .lbl, .people .lbl { display: flex; justify-content: space-between; margin-bottom: .4em; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: .3em; height: 2.2em; align-items: end; }
.bars i { display: block; height: calc(var(--v) * 1%); background: var(--teal); border-radius: 2px 2px 0 0; transform: scaleY(0); transform-origin: bottom; }
.is-playing .bars i { animation: barin .5s var(--snap) forwards; animation-delay: calc(1.1s + var(--i) * 70ms); }
.people { padding: .6em 1.3em .9em; border-top: 1px solid var(--line); }
.slider { position: relative; height: 1.6em; }
.slider .rail { position: absolute; left: .5em; right: .5em; top: 50%; height: 2px; background: var(--line); transform: translateY(-50%); }
.slider .fill { position: absolute; left: .5em; top: 50%; height: 2px; background: var(--teal); transform: translateY(-50%); width: calc((100% - 1em) * var(--pf, 0)); transition: width .9s var(--snap); }
.slider .knob {
  position: absolute; top: 50%; left: calc(.5em + (100% - 1em) * var(--pf, 0)); width: 1.4em; height: 1.4em; border-radius: 50%;
  background: var(--ground); border: 2px solid var(--teal); transform: translate(-50%, -50%); transition: left .9s var(--snap);
}
.th__foot { text-align: center; padding: .5em; border-top: 1px solid var(--line); }

/* 7d Boona Fit — dark app */
.fit { display: grid; grid-template-columns: 46% 1fr; grid-template-rows: auto 1fr; height: 100%; }
.fit__top { grid-column: 1 / -1; display: flex; justify-content: space-between; padding: .6em 1em; border-bottom: 1px solid var(--color-on-dark-hairline); }
.fit__rings { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6em; padding: 1em .8em; border-right: 1px solid var(--color-on-dark-hairline); align-content: start; }
.ring { text-align: center; }
.ring svg { width: 100%; height: auto; display: block; transform: rotate(-90deg); }
.ring .bg { fill: none; stroke: var(--color-on-dark-hairline); stroke-width: 8; }
.ring .fg { fill: none; stroke: var(--c); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 264; stroke-dashoffset: 264; }
.is-playing .ring .fg { animation: ringin 1.2s var(--snap) forwards; animation-delay: var(--d, 0s); }
.ring .v { display: block; font-weight: 600; font-size: 1.15em; letter-spacing: -.03em; margin-top: .5em; }
.ring .l { font-family: var(--mono); font-size: .6em; letter-spacing: .06em; text-transform: uppercase; color: var(--color-on-dark-muted); }
.fit__right { padding: 1em; display: grid; grid-template-rows: auto 1fr auto auto; gap: .8em; min-height: 0; }
.fit__chart .lbl, .fit__slider .lbl { display: flex; justify-content: space-between; margin-bottom: .4em; }
.fit__bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: .4em; height: 4.6em; align-items: end; }
.fit__bars i { display: block; height: calc(var(--v) * 1%); background: var(--color-on-dark-faint); transform: scaleY(0); transform-origin: bottom; border-radius: 2px 2px 0 0; }
.fit__bars i.on { background: var(--teal); }
.is-playing .fit__bars i { animation: barin .5s var(--snap) forwards; animation-delay: calc(.5s + var(--i) * 70ms); }
.fit__session { display: flex; align-items: center; justify-content: space-between; gap: .6em; }
.fit__timer { font-family: var(--mono); font-size: 1.1em; font-variant-numeric: tabular-nums; }
.fit__slider .slider .rail { background: var(--color-on-dark-hairline); }
.fit__slider .slider .fill { background: var(--coral); }
.fit__slider .slider .knob { border-color: var(--coral); background: var(--color-dark-band); }

/* 8 ▸ approach + plan ---------------------------------------------------- */
.lede {
  padding-inline: var(--inset); font-size: clamp(26px, 3vw, 40px); font-weight: 500; letter-spacing: -.03em; line-height: 1.15;
  max-width: 24ch; margin-bottom: clamp(40px, 5vw, 72px); text-wrap: balance;
}
.index { border-bottom: 1px solid var(--line); }
.index li { position: relative; display: grid; grid-template-columns: repeat(var(--cols), 1fr); border-top: 1px solid var(--line); padding: 26px 0 30px; align-items: start; }
.index li::after { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--ink); transition: width .8s var(--ease); }
.index li:hover::after { width: 100%; }
.index .idx { grid-column: 1 / span 1; padding-inline: var(--inset); color: var(--color-teal-ink); padding-top: 7px; }
.index h3 { grid-column: 2 / span 4; padding-inline: var(--inset); transition: transform .5s var(--ease); }
.index li:hover h3 { transform: translateX(8px); }
.index p { grid-column: 7 / span 5; padding-inline: var(--inset); color: var(--quiet); max-width: 50ch; padding-top: 4px; }
.index .idx__r { grid-column: 12 / span 1; grid-row: 1; padding-inline: var(--inset); text-align: right; color: var(--color-teal-ink); padding-top: 7px; }

.plan { margin-top: clamp(64px, 8vw, 120px); }
.plan__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-inline: var(--inset); margin-bottom: 16px; }
.plan__head h3 { font-size: clamp(18px, 1.7vw, 22px); font-weight: 500; letter-spacing: -.02em; }
.plan__weeks { display: grid; grid-template-columns: repeat(12, 1fr); border-top: 1px solid var(--ink); padding-top: 8px; }
.plan__weeks span { padding-left: 6px; border-left: 1px solid var(--line); min-height: 14px; }
.plan__rows {
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(100% / 12));
  border-bottom: 1px solid var(--line); margin-top: 12px; padding-bottom: 18px;
}
.plan__row { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto auto; padding-top: 14px; }
.plan__lbl { grid-column: var(--s) / -1; grid-row: 1; font-size: 12px; letter-spacing: -.01em; padding: 0 0 5px 2px; }
.plan__bar {
  grid-column: var(--s) / span var(--n); grid-row: 2; height: 26px; background: var(--ink);
  display: flex; align-items: center; justify-content: flex-end; padding-right: 8px;
  transform: scaleX(0); transform-origin: left; position: relative;
}
.plan__bar .m { color: var(--color-on-dark-text); font-size: 9px; white-space: nowrap; }
.plan__bar::after { content: ""; position: absolute; left: 100%; top: 0; bottom: 0; width: calc(100% / var(--n) * var(--r, 0)); border: 1px dashed var(--quiet); border-left: 0; }
.plan__bar.teal { background: var(--teal); }
.plan__bar.teal .m { color: var(--color-ink-muted); }
.plan.is-in .plan__bar, .no-js .plan__bar { animation: barx .7s var(--ease) forwards; animation-delay: calc(var(--i) * 120ms); }
.plan__cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; padding-inline: var(--inset); }
.plan__cap .range { display: inline-block; width: 22px; height: 10px; border: 1px dashed var(--quiet); vertical-align: -1px; margin-right: 6px; }

/* 9 ▸ experience --------------------------------------------------------- */
/* the column stretches to the row's full height, so the block inside can stay pinned while the timeline scrolls */
.exp__side { grid-column: 1 / span 4; padding-inline: var(--inset); align-self: stretch; }
.sticky { position: sticky; top: var(--stick); }
.bignum { display: flex; align-items: baseline; gap: 6px; border-bottom: 1px solid var(--ink); padding-bottom: 10px; }
.bignum b { font-size: clamp(72px, 8.5vw, 120px); font-weight: 600; letter-spacing: -.06em; line-height: .9; font-variant-numeric: tabular-nums; }
.bignum span { font-size: clamp(20px, 2.2vw, 30px); color: var(--quiet); letter-spacing: -.02em; }
.stats li { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.stats li b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

.exp__tl { grid-column: 6 / -1; }
.timeline { --tlp: clamp(24px, 3vw, 44px); position: relative; padding-left: var(--tlp); }
.timeline::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 0; width: 1px; background: var(--line); }
.tl__line { position: absolute; left: 0; top: 4px; bottom: 0; width: 1px; background: var(--ink); transform: scaleY(var(--p, 0)); transform-origin: top; }
.timeline li { position: relative; min-height: 32vh; padding-bottom: clamp(44px, 5vw, 72px); opacity: .28; transition: opacity .7s ease; }
.timeline li.is-past, .no-js .timeline li { opacity: 1; }
.timeline li:last-child { min-height: 0; padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: calc(-1 * var(--tlp) - 5px); top: 2px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--ink);
}
.timeline li.is-now::before { background: var(--teal); }
.timeline .yrs { margin-bottom: 12px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.timeline .yrs b { color: var(--quiet); font-weight: 400; }
.timeline .yrs .now { color: var(--color-teal-ink); }
.timeline h3 { font-size: clamp(22px, 2vw, 27px); margin-bottom: 8px; }
.timeline .where { color: var(--quiet); margin-bottom: 14px; }
.timeline .where b { color: var(--ink); font-weight: 600; }
.timeline p { color: var(--quiet); max-width: 56ch; }
.timeline p + p { margin-top: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tags span { border: 1px solid var(--line); padding: 5px 8px; color: var(--ink); }
.tags .rule { border-color: var(--teal); }

/* 10 ▸ testimonials ------------------------------------------------------ */
.said__lbl { display: block; padding-inline: var(--inset); margin-bottom: clamp(28px, 4vw, 48px); }
.quote--big { display: grid; grid-template-columns: repeat(var(--cols), 1fr); }
.quote--big blockquote {
  grid-column: 2 / span 10; padding-inline: var(--inset); position: relative;
  font-size: clamp(24px, 2.8vw, 38px); font-weight: 500; letter-spacing: -.03em; line-height: 1.18; text-wrap: balance;
}
.quote--big blockquote::before { content: "\201C"; position: absolute; left: -.45em; top: 0; color: var(--teal); font-weight: 600; }
.quote--big figcaption { grid-column: 2 / span 10; padding-inline: var(--inset); margin-top: 18px; font-size: 13px; color: var(--quiet); }
.quote--big figcaption b { color: var(--ink); font-weight: 600; }
.quotes { display: grid; grid-template-columns: repeat(var(--cols), 1fr); margin-top: clamp(40px, 5vw, 64px); }
.quotes .quote { grid-column: span 4; padding: 18px var(--inset) 0; border-top: 1px solid var(--ink); }
.quotes .quote:first-child { grid-column: 5 / span 4; }
.quotes .quote blockquote { font-size: 15px; line-height: 1.5; }
.quotes .quote figcaption { margin-top: 20px; font-size: 13px; color: var(--quiet); }
.quotes .quote figcaption b { color: var(--ink); font-weight: 600; }

/* 11 ▸ writing ----------------------------------------------------------- */
.channels { display: flex; gap: 24px; flex-wrap: wrap; padding: 14px var(--inset) 18px; }
.channels a { display: inline-flex; gap: 8px; align-items: center; color: var(--ink); }
.table { width: 100%; border-collapse: collapse; table-layout: fixed; border-top: 1px solid var(--line); }
.table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.table tbody tr { border-bottom: 1px solid var(--line); transition: background .25s ease, color .25s ease; }
.table td { padding: 22px var(--inset); vertical-align: middle; }
.table .title { font-size: clamp(18px, 1.9vw, 25px); font-weight: 500; letter-spacing: -.025em; line-height: 1.2; transition: transform .5s var(--ease); }
.table .rd { text-align: right; white-space: nowrap; }
.table .read { color: inherit; }
.table .read::after { content: " \2192"; }
.table tbody tr:hover { background: var(--ink); color: var(--ground); }
.table tbody tr:hover .m, .table tbody tr:hover .ph { color: var(--color-on-dark-text); }
.table tbody tr:hover .title { transform: translateX(8px); }

/* 12 ▸ contact ----------------------------------------------------------- */
.contact__main { grid-column: 1 / span 5; padding-inline: var(--inset); }
.contact__main > .m { display: block; }
.email { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 8px 0 36px; }
.email a { font-weight: 600; font-size: clamp(20px, 2vw, 26px); letter-spacing: -.03em; word-break: break-all; }
.email a:hover { text-decoration: underline; text-underline-offset: 5px; }
.copy {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border: 1px solid var(--ink); border-radius: 999px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; transition: background .2s, color .2s, border-color .2s;
}
.copy:hover { background: var(--ink); color: var(--ground); }
.copy.is-done { background: var(--teal); border-color: var(--teal); color: var(--ink); }
.facts { margin: 0 0 36px; }
.facts > div { display: grid; grid-template-columns: 7em 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); align-items: baseline; }
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts time { font-variant-numeric: tabular-nums; }
.avail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.avail li { border: 1px solid var(--ink); min-height: 92px; padding: 10px 12px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; font-size: 13px; }
.avail li b { font-weight: 500; display: flex; align-items: center; gap: 8px; letter-spacing: -.01em; }
.avail li.is-open { background: var(--teal); border-color: var(--teal); }
.avail li.is-open .m { color: var(--color-ink-muted); }
.avail li.is-open .dot { background: var(--ink); animation: none; }

.form { grid-column: 7 / -1; padding-inline: var(--inset); display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; position: sticky; top: var(--stick); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.form input, .form textarea, .form select {
  font: inherit; color: inherit; background: transparent; border: 0; border-bottom: 1px solid var(--ink); padding: 8px 0;
  border-radius: 0; font-size: 15px; width: 100%;
}
.form textarea { min-height: 96px; resize: vertical; }
.form ::placeholder { color: var(--quiet); }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-bottom-color: var(--teal); box-shadow: 0 1px 0 var(--teal); }
.submit { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.btn-main {
  display: inline-flex; align-items: center; gap: 18px; background: var(--ink); color: var(--ground);
  font-size: 15px; font-weight: 600; letter-spacing: -.01em; padding: 16px 22px; transition: background .2s;
}
.btn-main i { font-style: normal; transition: transform .3s var(--ease); }
.btn-main:hover { background: var(--color-dark-hover); }
.btn-main:hover i { transform: translateX(4px); }

/* 13 ▸ footer ------------------------------------------------------------ */
.foot { background: var(--bar); color: var(--on-bar); margin-top: clamp(56px, 7vw, 96px); padding: clamp(56px, 7vw, 96px) 0 28px; position: relative; z-index: 1; }
.foot .m { color: var(--color-on-dark-muted); }
.foot .ph { color: var(--color-on-dark-muted); }
.foot__cols { display: grid; grid-template-columns: repeat(var(--cols), 1fr); }
.foot__col { grid-column: span 3; padding-inline: var(--inset); }
.foot__col > .m { display: block; margin-bottom: 16px; }
.foot__col a, .foot__col .v { display: block; color: var(--ground); margin-top: 8px; font-size: 15px; letter-spacing: -.01em; }
.foot__col p { color: var(--color-on-dark-strong); max-width: 32ch; }
.foot__col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot__col a.m { font-size: 10px; color: var(--color-on-dark-strong); margin-top: 16px; letter-spacing: .08em; }
.foot__bot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(48px, 6vw, 88px); padding: 14px var(--inset) 0; border-top: 1px solid var(--color-on-dark-hairline); }

/* 14 ▸ keyframes --------------------------------------------------------- */
@keyframes griddraw { to { transform: scaleY(1); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--color-teal-pulse); } 70% { box-shadow: 0 0 0 7px rgba(63, 201, 176, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 201, 176, 0); } }
@keyframes blinkdot { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes chipin { to { opacity: 1; transform: none; } }
@keyframes bubin { to { opacity: 1; transform: none; } }
@keyframes slidein { to { opacity: 1; transform: none; } }
@keyframes kfin { to { transform: scaleX(1); } }
@keyframes typing { from { width: 0; } to { width: 34ch; } }
@keyframes caret { 50% { border-color: transparent; } }
@keyframes scrub { from { left: 4.5em; } to { left: 100%; } }
@keyframes level { from { height: 20%; } to { height: 100%; } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.08); } }
@keyframes blink1 { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.08); } }
@keyframes talk { from { transform: scaleY(1); } to { transform: scaleY(2.6); } }
@keyframes nod { 0% { transform: translateY(0) rotate(0); } 35% { transform: translateY(5px) rotate(1.5deg); } 70% { transform: translateY(-2px) rotate(-.5deg); } 100% { transform: translateY(0) rotate(0); } }
@keyframes wave { 0% { opacity: 0; transform: rotate(0); } 15% { opacity: 1; transform: rotate(-18deg); } 40% { transform: rotate(18deg); } 65% { transform: rotate(-16deg); } 85% { opacity: 1; transform: rotate(12deg); } 100% { opacity: 0; transform: rotate(0); } }
@keyframes clickring { 0% { opacity: 1; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.2); } }
@keyframes ringin { to { stroke-dashoffset: var(--off); } }
@keyframes barin { to { transform: scaleY(1); } }
@keyframes barx { to { transform: scaleX(1); } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.18); color: var(--ink); } 100% { transform: scale(1); } }

/* 15 ▸ load choreography + responsive ------------------------------------ */
.piece { outline: 1px dashed transparent; outline-offset: 6px; transition: transform .45s var(--snap), outline-color .6s ease; }
html.is-loading .piece {
  transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--rot, 0deg));
  outline-color: var(--signal);
}
html.is-snapped .piece { transform: none; outline-color: transparent; }

@media (max-width: 1023px) {
  .nav__links { gap: 14px; }
  .nav__links a i { display: none; }
  .toggle .txt { display: none; }
  .hero { min-height: 0; }
  .hero__meta > div { grid-column: span 4; padding-block: 6px; }
  .hero__intro { grid-column: 1 / -1; max-width: 46ch; }
  .thumbs { grid-column: 1 / -1; grid-template-columns: repeat(2, 1fr); margin-top: 28px; }
  .readout { display: none; }
  .shead__t, .shead__d { grid-column: 1 / -1; }
  .shead__d { margin-top: 16px; max-width: 46ch; padding-bottom: 0; }
  .case__n, .case__name, .case__tag, .case__yr { grid-column: span 4; padding-block: 3px; }
  .case__yr { text-align: left; }
  .case--split .case__text, .case--flip .case__text, .case--split .case__screen, .case--flip .case__screen { grid-column: 1 / -1; grid-row: auto; }
  .case__text { position: static; }
  .case--split .case__screen { margin-top: 36px; }
  .case--flip .case__text { margin-top: 36px; }
  .case__text p { max-width: 58ch; }
  .case__text--row .t { grid-column: 1 / -1; }
  .case__text--row .case__body { grid-column: 1 / span 6; margin-top: 16px; }
  .case__text--row .results { grid-column: 1 / -1; margin-top: 24px; }
  .backdrop--phone { aspect-ratio: 1 / 1; }
  .index h3 { grid-column: 2 / span 6; }
  .index p { grid-column: 2 / span 6; margin-top: 10px; }
  .index .idx__r { grid-column: 8; }
  .exp__side, .exp__tl { grid-column: 1 / -1; }
  .timeline li { min-height: 0; }
  .exp__tl { margin-top: 48px; }
  .sticky { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; }
  .quote--big blockquote, .quote--big figcaption { grid-column: 1 / -1; padding-left: calc(var(--inset) + 22px); }
  .quotes .quote, .quotes .quote:first-child { grid-column: span 4; }
  .contact__main, .form { grid-column: 1 / -1; }
  .form { margin-top: 48px; position: static; }
  .foot__col { grid-column: span 4; margin-bottom: 28px; }
}
@media (max-width: 639px) {
  .nav__links { display: none; }
  .nav__brand { font-size: 17px; }
  .toggle { padding: 0 8px; }
  .toggle .txt { display: none; }
  .section { padding: 64px 0 32px; }
  .shead__t { font-size: clamp(38px, 11vw, 48px); }
  .shead__t--mid { font-size: clamp(30px, 8.5vw, 40px); }
  .hero { padding-top: calc(var(--nav-h) + 16px); }
  .hero__field { display: none; }
  .name__txt { font-size: clamp(40px, 12.5vw, 60px); }
  .hero__meta > div { grid-column: span 2; }
  .hero__meta b { font-size: 13px; }
  .hero__intro { font-size: 15px; }
  .thumbs { gap: 12px; }
  .case__n, .case__name, .case__tag, .case__yr { grid-column: span 2; }
  .results .num { font-size: 26px; }
  .backdrop { padding: 4%; }
  .backdrop--phone { aspect-ratio: 3 / 4; }
  .case__text--row .case__body { grid-column: 1 / -1; }
  .lede { max-width: none; }
  .index li { padding: 18px 0 22px; }
  .index h3 { grid-column: 2 / span 2; }
  .index p { grid-column: 1 / -1; margin-top: 12px; }
  .index .idx__r { grid-column: 4; }
  .plan__weeks span { font-size: 8px; padding-left: 3px; letter-spacing: 0; }
  .plan__bar { height: 22px; }
  .plan__bar .m { display: none; }
  .plan__cap > span:last-child { display: none; }
  .sticky { grid-template-columns: 1fr; }
  .timeline { --tlp: 22px; }
  .quotes .quote, .quotes .quote:first-child { grid-column: 1 / -1; }
  .quotes .quote + .quote { margin-top: 20px; }
  .table, .table tbody { display: block; }
  .table colgroup { display: none; }
  .table tbody tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 16px var(--inset); }
  .table td { display: block; padding: 0; }
  .table td.title { grid-column: 1 / -1; }
  .table .rd { text-align: left; }
  .avail { grid-template-columns: 1fr; }
  .avail li { min-height: 0; flex-direction: row; align-items: center; justify-content: space-between; }
  .form { grid-template-columns: 1fr; }
  .foot__col { grid-column: span 2; }
  .foot__col:nth-child(n+3) { grid-column: 1 / -1; }
  .foot__col a, .foot__col .v { overflow-wrap: anywhere; }
  .foot__bot { margin-top: 32px; }
}

/* 16 ▸ reduced motion ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; transition-delay: 0s !important;
  }
  .dot, .az__live i, .levels i, .azface .eye { animation: none !important; }
  .cursor { display: none; }
  .screen, .phone { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; }
  .tl__line { transform: scaleY(1); }
  .plan__bar { transform: scaleX(1); }
  .typed { width: 34ch; }
  .kf { transform: scaleX(1); }
  .bub, .meal, .cue-item, .az__sees span { opacity: 1; transform: none; }
  .timeline li { opacity: 1; }
  .index li::after { display: none; }
}

/* 17 ▸ placeholders -------------------------------------------------------
   Anything still to be filled in is wrapped in <span class="ph">…</span>.
   To hide the markers once you are done, change data-placeholders="show" to "hide"
   in the <html> tag of index.html. */
html[data-placeholders="show"] .ph { position: relative; outline: 1px dashed var(--lost); outline-offset: 2px; color: var(--quiet); }
html[data-placeholders="show"] .ph::after {
  content: "FILL"; position: absolute; top: -9px; right: -4px; font: 600 8px/1 var(--mono); letter-spacing: .08em; color: var(--lost);
}
html[data-placeholders="hide"] .ph { color: inherit; }
.btn.is-on { background: var(--ink); color: var(--ground); border-color: var(--ink); }

/* fixes after the first browser check (Boona Cue screen) */
.cue__face .azface { left: 0; top: 0; width: 100%; height: 100%; transform: none; }
.cue__face { width: 40%; }
.cue__facewrap { margin-top: auto; display: flex; align-items: center; gap: .8em; }
.cue__facewrap .ui-m { line-height: 1.5; }
.cue__right { grid-template-rows: auto auto 1fr auto; }
.lane--empty { background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 10%) var(--color-surface-lane-empty); opacity: .7; }
.cue__log { align-self: end; border-top: 1px solid var(--line); padding-top: .6em; display: flex; flex-direction: column; gap: .25em; }
.cue__log span { opacity: 0; }
.is-parsed .cue__log span { animation: chipin .3s var(--snap) forwards; animation-delay: var(--d, 0s); }
