/* ==========================================================================
   DESIGN SYSTEM v1 — "Standard & Signal"
   bensachwitz.com ground-up redesign (2026-09-24)

   One material system, many motifs. Every section shares the same palette,
   type scale, hairline language, spacing rhythm and motion language — the
   BACKGROUND MOTIF varies per section (grid / contours / dots / scanlines /
   aurora), never the material. Cohesive, never patchwork.

   Motion language adopts transitions.dev tokens (durations/easings) and the
   choreography engine in motion.js ([data-choreo] in AND out, stagger,
   parallax, progress, 3D tilt). Every animation honors
   prefers-reduced-motion.
   ========================================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
  /* material */
  --ds-ink: #0b0b0c;
  --ds-ink-2: #131315;
  --ds-ink-3: #1c1c1f;
  --ds-bone: #f5f1e8;
  --ds-bone-2: #eae4d4;
  --ds-bone-3: #ddd4bd;
  --ds-ox: #8c1d18;
  --ds-ox-deep: #5c100d;
  --ds-ox-bright: #b3271e;
  --ds-gold: #d2a13f;
  --ds-gold-2: #b4832c;
  --ds-gold-3: #ebcb85;
  --ds-line: rgba(11, 11, 12, .14);
  --ds-line-soft: rgba(11, 11, 12, .07);
  --ds-line-d: rgba(245, 241, 232, .16);
  --ds-line-d-soft: rgba(245, 241, 232, .08);
  --ds-ink-faint: rgba(11, 11, 12, .38);

  /* type */
  --ds-serif: "Fraunces", ui-serif, Georgia, serif;
  --ds-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --ds-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ds-display: clamp(3.2rem, 9vw, 8rem);
  --ds-h1: clamp(2.6rem, 6vw, 5rem);
  --ds-h2: clamp(2.1rem, 4.6vw, 3.6rem);
  --ds-h3: clamp(1.4rem, 2.6vw, 2rem);
  --ds-lede: clamp(1.05rem, 1.6vw, 1.25rem);
  --ds-body: 1rem;
  --ds-eyebrow: .72rem;

  /* rhythm */
  --ds-section-y: clamp(3.75rem, 7.5vw, 6.5rem);
  --ds-container: 88rem;
  --ds-gutter: clamp(1.25rem, 4vw, 3rem);
  --ds-r-sm: 4px;
  --ds-r-md: 8px;
  --ds-r-pill: 999px;

  /* motion — transitions.dev token scale, adopted verbatim */
  --duration-stagger: 40ms;
  --duration-micro: 80ms;
  --duration-quick: 150ms;
  --duration-fast: 250ms;
  --duration-medium: 350ms;
  --duration-slow: 400ms;
  --duration-very-slow: 500ms;
  --ease-smooth-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: ease-in-out;
  --ease-out: ease-out;
  --ease-linear: linear;
  --ease-bounce: cubic-bezier(.34, 1.36, .64, 1);
  --ease-bounce-strong: cubic-bezier(.34, 3.85, .64, 1);
  --ds-ease: var(--ease-smooth-out);
  --ds-spring: cubic-bezier(.3, 1.45, .5, 1);
  --distance-medium: 12px;
  --blur-medium: 3px;

  /* choreography defaults */
  --choreo-y: 26px;
  --choreo-blur: 5px;
  --choreo-dur: var(--duration-fast); /* 250ms entrance — arcade-snap discipline */
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ds-bone); }
html.rm { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--ds-sans);
  font-size: var(--ds-body);
  line-height: 1.7;
  color: var(--ds-ink);
  background: var(--ds-bone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--ds-ox); color: var(--ds-bone); }

/* film grain — the shared material across every section */
.ds-grain::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E");
}

/* ---------- 3. TYPE ---------- */
.ds-display, .display-h {
  font-family: var(--ds-serif);
  font-weight: 340;
  font-size: var(--ds-h2);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
.ds-display em, .display-h em { font-style: italic; font-weight: 400; }
.ds-hero-title {
  font-family: var(--ds-serif);
  font-weight: 330;
  font-size: var(--ds-display);
  line-height: .98;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.ds-hero-title em { font-style: italic; color: var(--ds-ox); font-weight: 400; }
.ds-lede { font-size: var(--ds-lede); line-height: 1.65; max-width: 62ch; }
.ds-eyebrow {
  font-family: var(--ds-mono);
  font-size: var(--ds-eyebrow);
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: .9em;
}
.ds-eyebrow::before {
  content: "";
  width: 2.4em; height: 1px;
  background: currentColor;
  opacity: .7;
  flex: none;
}
.ds-eyebrow.no-rule::before { display: none; }
.ds-mono { font-family: var(--ds-mono); }
.on-dark { color: var(--ds-bone); }
.on-dark .ds-hero-title em { color: var(--ds-gold-3); }

/* ---------- 4. SCAFFOLD ---------- */
.ds-section { position: relative; padding: var(--ds-section-y) 0; overflow: clip; }
.ds-container { max-width: var(--ds-container); margin: 0 auto; padding: 0 var(--ds-gutter); position: relative; }
.ds-section-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); position: relative; }
.ds-section-head .ds-eyebrow { color: var(--ds-ox); margin-bottom: 1.15rem; }
.on-dark .ds-section-head .ds-eyebrow, .ds-section-head.on-dark .ds-eyebrow { color: var(--ds-gold-3); }
.ds-section-head .ds-lede { color: rgba(11,11,12,.66); margin-top: 1.25rem; }
.on-dark .ds-section-head .ds-lede { color: rgba(245,241,232,.66); }
.ds-chapter-num {
  position: absolute; right: 0; top: -1.2em;
  font-family: var(--ds-serif); font-style: italic;
  font-size: clamp(5rem, 10vw, 9rem);
  line-height: 1; color: transparent;
  -webkit-text-stroke: 1px var(--ds-line);
  opacity: .55; pointer-events: none; user-select: none;
}
.on-dark .ds-chapter-num { -webkit-text-stroke: 1px var(--ds-line-d); }

/* hairline dividers */
.ds-rule { border: 0; border-top: 1px solid var(--ds-line); margin: 0; }
.on-dark .ds-rule { border-color: var(--ds-line-d); }

/* ---------- 5. BUTTONS & LINKS ---------- */
.ds-btn {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--ds-mono); font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  padding: 1em 1.7em; border-radius: var(--ds-r-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: transform var(--duration-fast) var(--ds-ease),
              box-shadow var(--duration-fast) var(--ds-ease),
              background-color var(--duration-fast) var(--ds-ease),
              color var(--duration-fast) var(--ds-ease),
              border-color var(--duration-fast) var(--ds-ease);
  will-change: transform;
}
.ds-btn svg { transition: transform var(--duration-fast) var(--ds-ease); }
.ds-btn:hover svg { transform: translate(2px, -2px); }
.ds-btn-ink { background: var(--ds-ink); color: var(--ds-bone); }
.ds-btn-ink:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(11,11,12,.5); }
.ds-btn-bone { background: var(--ds-bone); color: var(--ds-ink); }
.ds-btn-bone:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(0,0,0,.55); }
.ds-btn-ox { background: var(--ds-ox); color: var(--ds-bone); }
.ds-btn-ox:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(140,29,24,.65); }
.ds-btn-ghost { border-color: var(--ds-line); color: var(--ds-ink); background: transparent; }
.ds-btn-ghost:hover { border-color: var(--ds-ink); transform: translateY(-2px); }
.on-dark .ds-btn-ghost { border-color: var(--ds-line-d); color: var(--ds-bone); }
.on-dark .ds-btn-ghost:hover { border-color: var(--ds-bone); }
.ds-btn:active { transform: translateY(0) scale(.98); }

.ds-link-line {
  position: relative; text-decoration: none; font-weight: 600;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size var(--duration-fast) var(--ds-ease), color var(--duration-fast) var(--ds-ease);
  padding-bottom: 2px;
}
.ds-link-line:hover { background-size: 0% 1px; background-position: 100% 100%; }

/* focus visibility — bespoke, always */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--ds-gold);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark a:focus-visible, .on-dark button:focus-visible { outline-color: var(--ds-gold-3); }

/* ---------- 6. SECTION BACKGROUND MOTIFS ----------
   One material (ink/bone/ox/gold + grain + hairlines), distinct motif per
   section. Motifs live on ::before (art) so content stays on top. */

/* HERO (bone) — blueprint grid + drifting contour rings */
.ds-bg-hero { background: var(--ds-bone); }
.ds-bg-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(210,161,63,.14), transparent 60%),
    linear-gradient(rgba(11,11,12,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,11,12,.05) 1px, transparent 1px);
  background-size: 100% 100%, 72px 72px, 72px 72px;
  mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 30%, transparent 75%);
}
.ds-hero-rings { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ds-hero-rings svg { position: absolute; right: -12%; top: -20%; width: min(60vw, 760px); opacity: .5; }

/* ABOUT (bone-2) — ghost numeral + ledger hairlines */
.ds-bg-about { background: var(--ds-bone-2); }
.ds-bg-about::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(0deg, transparent 0 71px, rgba(11,11,12,.045) 71px 72px);
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
}

/* CAREER (ink) — oxblood aurora wash */
.ds-bg-career { background: var(--ds-ink); color: var(--ds-bone); }
.ds-bg-career::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 12% 8%, rgba(140,29,24,.5), transparent 65%),
    radial-gradient(ellipse 45% 40% at 88% 90%, rgba(140,29,24,.28), transparent 60%),
    radial-gradient(ellipse 30% 25% at 70% 15%, rgba(210,161,63,.1), transparent 60%);
  animation: ds-aurora 16s var(--ease-in-out) infinite alternate;
}
@keyframes ds-aurora {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.12) translate(-2%, 3%); }
}

/* CREDO (oxblood field) — full-bleed ox with breathing light */
.ds-bg-credo { background: linear-gradient(160deg, var(--ds-ox-deep), var(--ds-ox) 55%, var(--ds-ox-deep)); color: var(--ds-bone); }
.ds-bg-credo::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 80% at 50% 40%, rgba(235,203,133,.16), transparent 65%);
  animation: ds-breathe 9s var(--ease-in-out) infinite alternate;
}
@keyframes ds-breathe { from { opacity: .6; transform: scale(1); } to { opacity: 1; transform: scale(1.08); } }

/* WORLDS (bone) — topographic contours, slow drift */
.ds-bg-worlds { background: var(--ds-bone); }
.ds-bg-worlds::before {
  content: ""; position: absolute; inset: -10%; pointer-events: none; opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520' viewBox='0 0 520 520'%3E%3Cg fill='none' stroke='%230b0b0c' stroke-opacity='0.10'%3E%3Cpath d='M-20 130 C120 90 260 170 540 110'/%3E%3Cpath d='M-20 190 C120 150 260 230 540 170'/%3E%3Cpath d='M-20 250 C120 210 260 290 540 230'/%3E%3Cpath d='M-20 310 C120 270 260 350 540 290'/%3E%3Cpath d='M-20 370 C120 330 260 410 540 350'/%3E%3Cpath d='M-20 430 C120 390 260 470 540 410'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 520px 520px;
  animation: ds-drift 40s var(--ease-linear) infinite;
}
@keyframes ds-drift { from { transform: translate3d(0,0,0); } to { transform: translate3d(-260px, 130px, 0); } }

/* ARCADE (deep ink) — scanlines + gold node grid */
.ds-bg-arcade { background: #08080a; color: var(--ds-bone); }
.ds-bg-arcade::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(ellipse 50% 35% at 50% 0%, rgba(210,161,63,.12), transparent 65%),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(245,241,232,.022) 3px 4px),
    linear-gradient(rgba(210,161,63,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(210,161,63,.05) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 56px 56px, 56px 56px;
}

/* EXPERTISE (bone) — dot matrix */
.ds-bg-expertise { background: var(--ds-bone); }
.ds-bg-expertise::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(11,11,12,.10) 1px, transparent 1.4px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 20%, transparent 80%);
}

/* WORK / selected work (bone-2) — ledger rules */
.ds-bg-work { background: var(--ds-bone-2); }
.ds-bg-work::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, transparent 0 119px, rgba(11,11,12,.05) 119px 120px);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

/* WEBSITES (ink) — perspective glow horizon */
.ds-bg-websites { background: var(--ds-ink); color: var(--ds-bone); }
.ds-bg-websites::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, transparent 55%, rgba(140,29,24,.22) 82%, rgba(140,29,24,.4)),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(245,241,232,.05) 79px 80px);
  mask-image: linear-gradient(180deg, #000 40%, transparent 95%);
  transform: perspective(700px) rotateX(24deg) scale(1.4);
  transform-origin: 50% 100%;
}

/* APPS showcase (deep ink) — aurora + spotlight host */
.ds-bg-apps { background: #0a0a0d; color: var(--ds-bone); }
.ds-bg-apps::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 15% 10%, rgba(140,29,24,.42), transparent 62%),
    radial-gradient(ellipse 50% 40% at 85% 85%, rgba(210,161,63,.12), transparent 60%),
    radial-gradient(ellipse 40% 30% at 60% 45%, rgba(92,16,13,.35), transparent 65%);
  animation: ds-aurora 20s var(--ease-in-out) infinite alternate-reverse;
}
.ds-spotlight { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity var(--duration-slow) var(--ds-ease); }
.ds-bg-apps:hover .ds-spotlight { opacity: 1; }
.ds-spotlight::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 40%), rgba(235,203,133,.09), transparent 65%);
}

/* CREDENTIALS (bone) — index grid */
.ds-bg-creds { background: var(--ds-bone); }
.ds-bg-creds::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(11,11,12,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,11,12,.05) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 10%, transparent 75%);
}

/* LIFE (bone-2) — warm wash */
.ds-bg-life { background: linear-gradient(180deg, var(--ds-bone-2), var(--ds-bone-3)); }

/* CONTACT (ink) — signal contours */
.ds-bg-contact { background: var(--ds-ink); color: var(--ds-bone); }
.ds-bg-contact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='640' viewBox='0 0 640 640'%3E%3Cg fill='none' stroke='%23d2a13f' stroke-opacity='0.08'%3E%3Ccircle cx='320' cy='320' r='60'/%3E%3Ccircle cx='320' cy='320' r='120'/%3E%3Ccircle cx='320' cy='320' r='180'/%3E%3Ccircle cx='320' cy='320' r='240'/%3E%3Ccircle cx='320' cy='320' r='300'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 640px 640px;
  background-position: 85% 20%;
  animation: ds-drift 60s var(--ease-linear) infinite reverse;
}

/* FOOTER (ink) — quiet */
.ds-bg-footer { background: var(--ds-ink); color: var(--ds-bone); border-top: 1px solid var(--ds-line-d); }

/* ---------- 7. NAV ---------- */
#nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  transition: background-color var(--duration-fast) var(--ds-ease),
              border-color var(--duration-fast) var(--ds-ease),
              backdrop-filter var(--duration-fast) var(--ds-ease);
  border-bottom: 1px solid transparent;
}
#nav.nav-hero { background: transparent; }
#nav.nav-scrolled {
  background: rgba(245, 241, 232, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--ds-line-soft);
}
.ds-nav-inner {
  max-width: var(--ds-container); margin: 0 auto; padding: 0 var(--ds-gutter);
  height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.ds-nav-links { display: none; align-items: center; gap: 2rem; }
@media (min-width: 900px) { .ds-nav-links { display: inline-flex; } }
.nlink {
  font-family: var(--ds-mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  color: rgba(11,11,12,.62); position: relative; padding: .4em 0;
  transition: color var(--duration-quick) var(--ds-ease);
}
.nlink::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--ds-ox); transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform var(--duration-fast) var(--ds-ease);
}
.nlink:hover, .nlink.is-active { color: var(--ds-ink); }
.nlink:hover::after, .nlink.is-active::after { transform: scaleX(1); transform-origin: 0 50%; }
.nlink.is-active::after { background: var(--ds-gold-2); }
#scrollProg { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: linear-gradient(90deg, var(--ds-ox), var(--ds-gold)); }

/* hamburger */
#hb {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
  width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px;
}
@media (min-width: 900px) { #hb { display: none; } }
/* Hide the header "Book a call" CTA below 900px so the index header never
   overflows at 390px (brand + CTA + hamburger exceed the 350px inner width).
   Restored 2026-09-25: the rule was dropped in the 3c1a4ff2 repair. */
@media (max-width: 899px) { .ds-nav-cta .ds-btn { display: none; } }
#hb span { display: block; height: 2px; width: 100%; background: currentColor; transition: transform var(--duration-fast) var(--ds-ease), opacity var(--duration-quick) var(--ds-ease); }
#hb.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#hb.open span:nth-child(2) { opacity: 0; }
#hb.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* mobile menu — full ink takeover, staggered links */
#mmenu {
  position: fixed; inset: 0; z-index: 55; background: var(--ds-ink); color: var(--ds-bone);
  display: flex; flex-direction: column; justify-content: center; padding: 0 var(--ds-gutter);
  clip-path: inset(0 0 100% 0);
  transition: clip-path var(--duration-slow) var(--ds-ease);
  visibility: hidden;
}
#mmenu.open { clip-path: inset(0 0 0% 0); visibility: visible; }
#mmenu .mlink {
  font-family: var(--ds-serif); font-size: clamp(2rem, 9vw, 3.2rem); font-weight: 340;
  text-decoration: none; padding: .35em 0; border-bottom: 1px solid var(--ds-line-d-soft);
  display: flex; align-items: baseline; justify-content: space-between;
  opacity: 0; transform: translateY(24px);
  transition: opacity var(--duration-fast) var(--ds-ease), transform var(--duration-fast) var(--ds-ease), color var(--duration-quick) var(--ds-ease);
}
#mmenu.open .mlink { opacity: 1; transform: none; }
#mmenu.open .mlink:nth-child(1) { transition-delay: 120ms; }
#mmenu.open .mlink:nth-child(2) { transition-delay: 170ms; }
#mmenu.open .mlink:nth-child(3) { transition-delay: 220ms; }
#mmenu.open .mlink:nth-child(4) { transition-delay: 270ms; }
#mmenu.open .mlink:nth-child(5) { transition-delay: 320ms; }
#mmenu.open .mlink:nth-child(6) { transition-delay: 370ms; }
#mmenu.open .mlink:nth-child(7) { transition-delay: 420ms; }
#mmenu .mlink:hover { color: var(--ds-gold-3); }
#mmenu .mlink .ds-mono { font-size: .7rem; color: rgba(245,241,232,.4); }

/* floating book button */
#bookFloat {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 50;
  transform: translateY(140%); transition: transform var(--duration-medium) var(--ds-spring);
}
#bookFloat.show { transform: none; }
#bookFloat.show:hover { transform: translateY(-2px); }
#bookFloat.show:active { transform: translateY(0) scale(.98); }

/* ---------- 8. LOADER ---------- */
#loader {
  position: fixed; inset: 0; z-index: 100; background: var(--ds-ink); color: var(--ds-bone);
  display: grid; place-items: center;
  transition: opacity var(--duration-slow) var(--ds-ease), visibility 0s linear var(--duration-slow);
}
#loader.hide { opacity: 0; visibility: hidden; }
.ds-loader-inner { text-align: center; }
.ds-loader-bar { width: 180px; height: 1px; background: var(--ds-line-d-soft); margin: 1.4rem auto 0; overflow: hidden; }
.ds-loader-bar i { display: block; height: 100%; width: 40%; background: var(--ds-gold); animation: ds-loader-slide 1.1s var(--ease-in-out) infinite; }
@keyframes ds-loader-slide { from { transform: translateX(-100%); } to { transform: translateX(450%); } }
.ds-loader-word { font-family: var(--ds-mono); font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(245,241,232,.5); margin-top: 1rem; }

/* ---------- 9. HERO ---------- */
.ds-hero { min-height: 100svh; display: flex; align-items: center; padding-top: 4.5rem; position: relative; overflow: clip; }
@media (max-width: 700px) {
  .ds-hero { min-height: 92svh; }
}
.ds-hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1000px) { .ds-hero-grid { grid-template-columns: 1.25fr .85fr; gap: 4rem; } }
.ds-hero-kicker { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.8rem; }
.ds-chip {
  font-family: var(--ds-mono); font-size: .68rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid var(--ds-line); border-radius: var(--ds-r-pill); padding: .55em 1.1em;
  color: rgba(11,11,12,.72); background: rgba(245,241,232,.6);
  display: inline-flex; align-items: center; gap: .6em;
}
.ds-chip .ds-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ds-ox); flex: none; }
.ds-chip.gold { border-color: rgba(210,161,63,.5); color: var(--ds-gold-2); }
.ds-chip.gold .ds-dot { background: var(--ds-gold); animation: ds-blink 2.2s var(--ease-in-out) infinite; }
@keyframes ds-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.ds-hero-sub { margin-top: 1.6rem; color: rgba(11,11,12,.72); font-size: var(--ds-lede); max-width: 56ch; }
.ds-hero-sub strong { color: var(--ds-ink); font-weight: 650; }
.ds-hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.ds-hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--ds-line); }
.ds-stat { text-decoration: none; display: block; }
.ds-stat-num { font-family: var(--ds-serif); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 340; line-height: 1; transition: color var(--duration-quick) var(--ds-ease); }
.ds-stat-num .ds-accent { color: var(--ds-ox); }
.ds-stat:hover .ds-stat-num { color: var(--ds-ox); }
.ds-stat-label { font-family: var(--ds-mono); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(11,11,12,.5); margin-top: .5rem; }

/* hero portrait — layered perspective card */
.ds-hero-media { position: relative; perspective: 1200px; }
.ds-hero-photo-wrap {
  position: relative; border-radius: var(--ds-r-md); overflow: hidden;
  border: 1px solid var(--ds-line);
  box-shadow: 0 40px 80px -40px rgba(11,11,12,.45);
  transform: rotateY(-8deg) rotateX(4deg);
  transform-style: preserve-3d;
  transition: transform var(--duration-slow) var(--ds-ease);
}
.ds-hero-media:hover .ds-hero-photo-wrap { transform: rotateY(-2deg) rotateX(1deg); }
/* hero portrait — parallax is driven by [data-parallax] on the wrapper (motion.js) */
.hero-parallax-photo { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; object-position: center 18%; }
.ds-hero-photo-caption {
  position: absolute; left: 1rem; bottom: 1rem;
  font-family: var(--ds-mono); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
  background: rgba(11,11,12,.72); color: var(--ds-bone); padding: .7em 1.1em; border-radius: var(--ds-r-pill);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.ds-hero-badge {
  position: absolute; right: -1rem; top: -1rem; z-index: 2;
  background: var(--ds-ox); color: var(--ds-bone); border-radius: 50%;
  width: 7.5rem; height: 7.5rem; display: grid; place-items: center; text-align: center;
  font-family: var(--ds-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; line-height: 1.5;
  box-shadow: 0 18px 40px -12px rgba(140,29,24,.6);
  animation: ds-spin-slow 24s var(--ease-linear) infinite;
}
@keyframes ds-spin-slow { to { transform: rotate(360deg); } }
.ds-scroll-cue {
  position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
  font-family: var(--ds-mono); font-size: .64rem; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(11,11,12,.45); text-decoration: none;
}
.ds-scroll-cue i { width: 1px; height: 3.2rem; background: var(--ds-line); position: relative; overflow: hidden; display: block; }
.ds-scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--ds-ox); animation: ds-cue 1.8s var(--ds-ease) infinite; }
@keyframes ds-cue { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* ---------- 10. SHOWCASE CARDS (apps) — equal height by construction ----------
   .ds-show-grid: stretch; .ds-show-card: flex column, height 100%;
   .ds-show-ctas: margin-top auto → CTAs baseline-align across cards.
   Media uses fixed aspect-ratio so visuals align too. */
.ds-show-grid { display: grid; gap: 1.75rem; align-items: stretch; }
@media (min-width: 900px) { .ds-show-grid { grid-template-columns: repeat(3, 1fr); } }
.ds-show-card {
  display: flex; flex-direction: column; height: 100%;
  background: linear-gradient(165deg, rgba(245,241,232,.06), rgba(245,241,232,.015));
  border: 1px solid var(--ds-line-d-soft);
  border-radius: var(--ds-r-md);
  overflow: hidden; position: relative;
  transition: transform var(--duration-medium) var(--ds-ease),
              border-color var(--duration-fast) var(--ds-ease),
              box-shadow var(--duration-medium) var(--ds-ease);
  transform-style: preserve-3d;
}
.ds-show-media {
  position: relative; aspect-ratio: 16/10; overflow: hidden; flex: none;
  border-bottom: 1px solid var(--ds-line-d-soft);
  background: var(--ds-ink-2);
}
.ds-show-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--duration-slow) var(--ds-ease);
}
.ds-show-card:hover .ds-show-media img { transform: scale(1.045); }
.ds-show-pill {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--ds-mono); font-size: .64rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  background: rgba(11,11,12,.72); color: var(--ds-bone);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--ds-line-d-soft);
  padding: .65em 1.1em; border-radius: var(--ds-r-pill);
}
.ds-show-pill.beta { background: rgba(140,29,24,.85); border-color: rgba(235,203,133,.35); color: var(--ds-gold-3); }
/* cursor-tracked glare */
.ds-show-glare {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: radial-gradient(480px circle at var(--gx, 50%) var(--gy, 30%), rgba(255,255,255,.14), transparent 60%);
  transition: opacity var(--duration-fast) var(--ds-ease);
}
.ds-show-card:hover .ds-show-glare { opacity: 1; }
.ds-show-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 1.75rem 1.75rem 1.6rem; }
.ds-show-kicker { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.ds-show-kicker .ds-eyebrow { font-size: .64rem; }
.ds-show-kicker .ds-eyebrow::before { display: none; }
.ds-show-index { font-family: var(--ds-mono); font-size: .68rem; letter-spacing: .22em; color: rgba(245,241,232,.35); }
.ds-show-title { font-family: var(--ds-serif); font-weight: 340; font-size: var(--ds-h3); line-height: 1.1; margin: 0 0 .9rem; letter-spacing: -0.01em; }
.ds-show-tag { color: rgba(245,241,232,.68); font-size: .98rem; line-height: 1.65; margin: 0 0 1.25rem; }
.ds-show-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.ds-tag {
  font-family: var(--ds-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid var(--ds-line-d-soft); color: rgba(245,241,232,.6);
  padding: .5em .95em; border-radius: var(--ds-r-pill);
  transition: border-color var(--duration-quick) var(--ds-ease), color var(--duration-quick) var(--ds-ease);
}
/* CTA stack pinned to the card foot — this is what kills the ragged bottoms */
.ds-show-ctas { margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--ds-line-d-soft); display: flex; flex-direction: column; gap: .9rem; }
.ds-show-links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.ds-show-links a { font-size: .86rem; color: rgba(245,241,232,.72); }

/* ---------- 11. WORK CARDS ---------- */
.ds-case-grid { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .ds-case-grid { grid-template-columns: 1fr 1fr; } }
.ds-case {
  display: flex; flex-direction: column; height: 100%;
  background: var(--ds-bone); border: 1px solid var(--ds-line); border-radius: var(--ds-r-md);
  padding: 2rem; text-decoration: none; position: relative; overflow: hidden;
  transition: transform var(--duration-medium) var(--ds-ease), box-shadow var(--duration-medium) var(--ds-ease), border-color var(--duration-fast) var(--ds-ease);
}
.ds-case::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(140,29,24,.07), transparent 70%);
  transition: opacity var(--duration-medium) var(--ds-ease);
}
.ds-case:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -30px rgba(11,11,12,.35); border-color: rgba(140,29,24,.35); }
.ds-case:hover::before { opacity: 1; }
.ds-case-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2.2rem; }
.ds-case-num { font-family: var(--ds-mono); font-size: .7rem; letter-spacing: .24em; color: rgba(11,11,12,.45); }
.ds-case-kicker { font-family: var(--ds-mono); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ds-ox); }
.ds-case h3 { font-family: var(--ds-serif); font-weight: 340; font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.12; margin: 0 0 1rem; letter-spacing: -0.01em; }
.ds-case p { color: rgba(11,11,12,.68); font-size: .98rem; margin: 0 0 1.5rem; max-width: 52ch; }
.ds-case-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.ds-case-tags .ds-tag { border-color: var(--ds-line); color: rgba(11,11,12,.6); }
.ds-case-foot { margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--ds-line-soft); display: flex; align-items: center; justify-content: space-between; font-family: var(--ds-mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ds-ink); }
.ds-case-foot svg { transition: transform var(--duration-fast) var(--ds-ease); }
.ds-case:hover .ds-case-foot svg { transform: translate(3px, -3px); }
.ds-case:hover .ds-case-foot { color: var(--ds-ox); }

/* ---------- 12. WEBSITE CARDS ---------- */
.ds-web-grid { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .ds-web-grid { grid-template-columns: 1fr 1fr; } }
.ds-web {
  display: grid; grid-template-columns: 1fr; border: 1px solid var(--ds-line-d-soft); border-radius: var(--ds-r-md);
  overflow: hidden; background: rgba(245,241,232,.03); text-decoration: none;
  transition: transform var(--duration-medium) var(--ds-ease), border-color var(--duration-fast) var(--ds-ease), box-shadow var(--duration-medium) var(--ds-ease);
}
@media (min-width: 640px) { .ds-web { grid-template-columns: 200px 1fr; } }
.ds-web-visual { position: relative; min-height: 150px; background: var(--ds-ink-2); overflow: hidden; }
.ds-web-visual .ds-web-glyph {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--ds-serif); font-style: italic; font-size: 3.4rem; color: rgba(235,203,133,.85);
}
.ds-web-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(140,29,24,.25), transparent 55%); }
.ds-web-body { padding: 1.6rem; display: flex; flex-direction: column; }
.ds-web-domain { font-family: var(--ds-mono); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ds-gold-3); margin-bottom: .8rem; display: flex; align-items: center; gap: .7em; }
.ds-web-domain .ds-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px #4ade80; animation: ds-blink 2.4s var(--ease-in-out) infinite; }
.ds-web h3 { font-family: var(--ds-serif); font-weight: 340; font-size: 1.5rem; margin: 0 0 .7rem; }
.ds-web p { color: rgba(245,241,232,.62); font-size: .94rem; margin: 0 0 1.2rem; }
.ds-web-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-family: var(--ds-mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(245,241,232,.75); }

/* ---------- 13. CERTIFICATIONS ---------- */
.ds-ticker { overflow: hidden; border-top: 1px solid var(--ds-line); border-bottom: 1px solid var(--ds-line); background: var(--ds-ink); color: var(--ds-bone); padding: .9rem 0; position: relative; }
.ds-ticker-track { display: flex; gap: 0; width: max-content; animation: ds-marquee 60s var(--ease-linear) infinite; }
.ds-ticker:hover .ds-ticker-track { animation-play-state: paused; }
@keyframes ds-marquee { to { transform: translateX(-50%); } }
.cert-pill {
  display: inline-flex; align-items: center; gap: .7em; white-space: nowrap;
  font-family: var(--ds-mono); font-size: .72rem; letter-spacing: .1em;
  padding: .4em 1.6em; color: rgba(245,241,232,.75);
}
.cert-pill + .cert-pill { border-left: 1px solid var(--ds-line-d-soft); }
.cp-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ds-gold); flex: none; }
.cp-org { color: rgba(245,241,232,.4); }
.ds-cert-filters { display: flex; flex-wrap: wrap; gap: .6rem; margin: 2.2rem 0; }
.cert-filter {
  font-family: var(--ds-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--ds-line); background: transparent; color: rgba(11,11,12,.65);
  padding: .7em 1.3em; border-radius: var(--ds-r-pill); cursor: pointer;
  transition: all var(--duration-fast) var(--ds-ease);
  position: relative;
}
.cert-filter:hover { border-color: var(--ds-ink); color: var(--ds-ink); }
.cert-filter:active { transform: scale(.97); }
.cert-filter.is-active { background: var(--ds-ink); border-color: var(--ds-ink); color: var(--ds-bone); }
.cf-count { opacity: .55; margin-left: .4em; }
.ds-cert-grid { display: grid; gap: .8rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ds-cert-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .ds-cert-grid { grid-template-columns: 1fr 1fr 1fr; } }
.cert-chip {
  display: flex; align-items: center; gap: 1rem; text-align: left;
  background: var(--ds-bone); border: 1px solid var(--ds-line); border-radius: var(--ds-r-sm);
  padding: 1rem 1.15rem; cursor: pointer; width: 100%;
  transition: transform var(--duration-fast) var(--ds-ease), border-color var(--duration-fast) var(--ds-ease), box-shadow var(--duration-fast) var(--ds-ease);
}
.cert-chip:hover { transform: translateY(-2px); border-color: rgba(140,29,24,.4); box-shadow: 0 14px 30px -18px rgba(11,11,12,.4); }
.cert-chip:active { transform: translateY(0) scale(.985); }
.cert-chip[data-hidden="1"] { display: none; }
.cert-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ds-ox); flex: none; transition: background-color var(--duration-quick) var(--ds-ease); }
.cert-chip:hover .dot { background: var(--ds-gold-2); }
.cert-chip .cbody { display: flex; flex-direction: column; gap: .15rem; min-width: 0; flex: 1; }
.cert-chip .cname { font-weight: 600; font-size: .92rem; line-height: 1.35; }
.cert-chip .cmeta { font-family: var(--ds-mono); font-size: .68rem; letter-spacing: .06em; color: rgba(11,11,12,.5); }
.cert-chip .chev { flex: none; color: rgba(11,11,12,.35); transition: transform var(--duration-fast) var(--ds-ease); }
.cert-chip:hover .chev { transform: translate(2px, -2px); color: var(--ds-ox); }
/* cert modal — transitions.dev modal open/close language */
#certModal {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 1.25rem;
  visibility: hidden; opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-smooth-out), visibility 0s linear var(--duration-fast);
}
#certModal.is-open { visibility: visible; opacity: 1; transition-delay: 0s; }
#certModal .ds-modal-scrim { position: absolute; inset: 0; background: rgba(11,11,12,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
#certModal .ds-modal-card {
  position: relative; background: var(--ds-bone); border-radius: var(--ds-r-md); max-width: 34rem; width: 100%;
  padding: 2.4rem; border: 1px solid var(--ds-line);
  transform: scale(.96) translateY(10px);
  transition: transform var(--duration-fast) var(--ease-smooth-out);
  max-height: 86vh; overflow: auto;
}
#certModal.is-open .ds-modal-card { transform: none; }
.cert-skill {
  display: inline-block; font-family: var(--ds-mono); font-size: .66rem; letter-spacing: .1em;
  border: 1px solid var(--ds-line); border-radius: var(--ds-r-pill); padding: .45em 1em; margin: 0 .4rem .4rem 0;
  color: rgba(11,11,12,.7);
}

/* ---------- 14. ARCADE TEASER ---------- */
.ds-arcade-stage {
  position: relative; border: 1px solid var(--ds-line-d-soft); border-radius: var(--ds-r-md);
  background: linear-gradient(180deg, #0d0d10, #08080a);
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center; overflow: hidden;
}
.ds-arcade-stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 55% 60% at 50% 110%, rgba(210,161,63,.16), transparent 65%);
}
.ds-arcade-marquee {
  font-family: var(--ds-serif); font-style: italic; font-size: clamp(2.6rem, 7vw, 5.4rem);
  color: var(--ds-gold-3); line-height: 1; margin: 0 0 1rem;
  text-shadow: 0 0 34px rgba(210,161,63,.45), 0 0 90px rgba(210,161,63,.2);
  animation: ds-neon 4s var(--ease-in-out) infinite alternate;
}
@keyframes ds-neon { from { text-shadow: 0 0 22px rgba(210,161,63,.35), 0 0 70px rgba(210,161,63,.14); } to { text-shadow: 0 0 40px rgba(210,161,63,.6), 0 0 110px rgba(210,161,63,.28); } }
.ds-game-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 2rem 0; }

/* ---------- 15. CONTACT / BOOKING / FORM ---------- */
.ds-contact-grid { display: grid; gap: 3rem; }
@media (min-width: 1000px) { .ds-contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.ds-contact-card {
  border: 1px solid var(--ds-line-d-soft); border-radius: var(--ds-r-md);
  background: rgba(245,241,232,.03); padding: clamp(1.6rem, 3vw, 2.6rem);
}
/* form */
.flabel { display: block; font-family: var(--ds-mono); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(245,241,232,.55); margin-bottom: .6rem; }
.finput {
  width: 100%; background: rgba(245,241,232,.05); border: 1px solid var(--ds-line-d-soft);
  border-radius: var(--ds-r-sm); color: var(--ds-bone); padding: .95em 1.1em;
  font-family: var(--ds-sans); font-size: .98rem;
  transition: border-color var(--duration-quick) var(--ds-ease), background-color var(--duration-quick) var(--ds-ease), box-shadow var(--duration-quick) var(--ds-ease);
}
.finput::placeholder { color: rgba(245,241,232,.3); }
.finput:focus { border-color: var(--ds-ink); background: rgba(245,241,232,.08); box-shadow: 0 0 0 3px rgba(11,11,12,.18); outline: none; }
textarea.finput { resize: vertical; min-height: 7rem; }
.field-err { display: block; min-height: 1.2em; font-size: .8rem; color: #f08a80; margin-top: .4rem; }
/* error shake — transitions.dev language */
@keyframes ds-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); } 40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); } 80% { transform: translateX(2px); }
}
.finput.is-error { border-color: #c0492f; animation: ds-shake var(--duration-medium) var(--ease-out); }
@keyframes ds-draw { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }
/* certification filter sliding pill — motion.js positions .cf-pill under
   the .cert-filter.is-active button (app.js renders the buttons). */
.ds-cert-filters { position: relative; }
.cf-pill {
  position: absolute; top: 0; bottom: 0; left: 0; width: 0;
  background: var(--ds-ink); border-radius: var(--ds-r-pill);
  transition: left var(--duration-fast) var(--ds-ease), width var(--duration-fast) var(--ds-ease);
  pointer-events: none;
}
.cert-filter { position: relative; z-index: 1; }
.booking-cal-inline { min-height: 420px; border: 1px solid var(--ds-line-d-soft); border-radius: var(--ds-r-md); overflow: hidden; background: #fff; }

/* ---------- 16. FOOTER ---------- */
.ds-footer-name {
  font-family: var(--ds-serif); font-weight: 330; font-size: clamp(3rem, 10vw, 8.5rem);
  line-height: .95; letter-spacing: -0.02em; margin: 0;
}
.ds-footer-grid { display: grid; gap: 2.5rem; margin: 3.5rem 0; }
@media (min-width: 800px) { .ds-footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; } }
.ds-footer-col h4 { font-family: var(--ds-mono); font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(245,241,232,.42); margin: 0 0 1.1rem; }
.ds-footer-col a { display: block; color: rgba(245,241,232,.78); text-decoration: none; padding: .32em 0; font-size: .95rem; transition: color var(--duration-quick) var(--ds-ease), transform var(--duration-quick) var(--ds-ease); }
.ds-footer-base { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding-top: 2rem; border-top: 1px solid var(--ds-line-d-soft); font-family: var(--ds-mono); font-size: .68rem; letter-spacing: .1em; color: rgba(245,241,232,.42); }

/* ---------- 17. CHOREOGRAPHY (motion.js drives these) ----------
   Elements animate IN on enter, OUT (depart) when scrolled past, and reset
   when still below the fold — alive in both scroll directions. */
[data-choreo] {
  opacity: 0;
  transform: translateY(var(--choreo-y, 30px));
  filter: blur(var(--choreo-blur, 6px));
  transition: opacity var(--choreo-dur) var(--ds-ease),
              transform var(--choreo-dur) var(--ds-ease),
              filter var(--choreo-dur) var(--ds-ease);
  transition-delay: var(--choreo-delay, 0ms);
  will-change: opacity, transform, filter;
}
[data-choreo="fade"] { transform: none; --choreo-blur: 0px; }
[data-choreo="scale"] { transform: scale(.94) translateY(14px); --choreo-blur: 4px; }
[data-choreo="left"] { transform: translateX(-36px); --choreo-y: 0px; }
[data-choreo="right"] { transform: translateX(36px); --choreo-y: 0px; }
[data-choreo].is-in { opacity: 1; transform: none; filter: blur(0); }
/* exits are quicker and quieter than entrances — never blur-out, reads cheap */
[data-choreo].is-out { --choreo-dur: var(--duration-quick); opacity: 0; transform: translateY(-14px); filter: blur(0); }
/* stagger stanzas */
[data-stagger] > [data-choreo]:nth-child(1) { --choreo-delay: 0ms; }
[data-stagger] > [data-choreo]:nth-child(2) { --choreo-delay: 70ms; }
[data-stagger] > [data-choreo]:nth-child(3) { --choreo-delay: 140ms; }
[data-stagger] > [data-choreo]:nth-child(4) { --choreo-delay: 210ms; }
[data-stagger] > [data-choreo]:nth-child(5) { --choreo-delay: 280ms; }
[data-stagger] > [data-choreo]:nth-child(6) { --choreo-delay: 350ms; }
[data-stagger] > [data-choreo]:nth-child(7) { --choreo-delay: 420ms; }
[data-stagger] > [data-choreo]:nth-child(8) { --choreo-delay: 490ms; }
[data-stagger] > [data-choreo]:nth-child(n+9) { --choreo-delay: 560ms; }
/* parallax layers */
[data-parallax] { will-change: transform; }
/* section progress hairline */
.ds-progress { height: 2px; background: var(--ds-line-soft); border-radius: 2px; overflow: hidden; margin-top: 2.5rem; }
.on-dark .ds-progress { background: var(--ds-line-d-soft); }
/* 3D tilt */
[data-tilt] { transform-style: preserve-3d; }
[data-tilt-inner] { transform: translateZ(30px); }
/* (magnetic behavior removed 2026-09-24 — kill remains locked; see motion.js) */

/* ---------- 18. CAREER TIMELINE ---------- */
.ds-timeline { position: relative; margin-top: 1rem; }
.ds-timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--ds-line-d-soft); }

/* ---------- 19. WORLDS / EXPERTISE / LIFE ---------- */
.ds-world-grid { display: grid; gap: 1.25rem; }
@media (min-width: 800px) { .ds-world-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .ds-world-grid { grid-template-columns: repeat(4, 1fr); } }
.ds-world {
  border: 1px solid var(--ds-line); border-radius: var(--ds-r-md); background: rgba(245,241,232,.55);
  padding: 1.8rem; position: relative; overflow: hidden; height: 100%;
  transition: transform var(--duration-medium) var(--ds-ease), box-shadow var(--duration-medium) var(--ds-ease);
}
.ds-world:hover { transform: translateY(-5px) rotate(-.4deg); box-shadow: 0 26px 50px -26px rgba(11,11,12,.4); }
.ds-world-code { font-family: var(--ds-mono); font-size: .66rem; letter-spacing: .2em; color: var(--ds-ox); }
.ds-world h3 { font-family: var(--ds-serif); font-weight: 400; font-size: 1.35rem; margin: .9rem 0 .5rem; }
.ds-world p { font-size: .92rem; color: rgba(11,11,12,.64); margin: 0; }
.ds-world-num { position: absolute; right: .9rem; bottom: .4rem; font-family: var(--ds-serif); font-style: italic; font-size: 3rem; color: transparent; -webkit-text-stroke: 1px var(--ds-line); }
.ds-exp-grid { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .ds-exp-grid { grid-template-columns: repeat(3, 1fr); } }
.ds-exp { border-top: 2px solid var(--ds-ink); padding-top: 1.6rem; }
.ds-exp-index { font-family: var(--ds-mono); font-size: .68rem; letter-spacing: .22em; color: rgba(11,11,12,.45); }
.ds-exp h3 { font-family: var(--ds-serif); font-weight: 400; font-size: 1.6rem; margin: .8rem 0 .9rem; }
.ds-exp p { font-size: .95rem; color: rgba(11,11,12,.66); }
.ds-exp .ds-tag { border-color: var(--ds-line); color: rgba(11,11,12,.62); }
.ds-life-strip { display: grid; grid-auto-flow: column; grid-auto-columns: min(68vw, 340px); gap: 1.25rem; overflow-x: auto; padding-bottom: 1rem; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ds-life-strip::-webkit-scrollbar { display: none; }
.ds-life-card { scroll-snap-align: start; border-radius: var(--ds-r-md); overflow: hidden; border: 1px solid var(--ds-line); position: relative; }
.ds-life-card img { width: 100%; height: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform var(--duration-slow) var(--ds-ease); }
.ds-life-card:hover img { transform: scale(1.05); }
.ds-life-card figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2.4rem 1.2rem 1.1rem; color: var(--ds-bone);
  background: linear-gradient(180deg, transparent, rgba(11,11,12,.78));
  font-family: var(--ds-mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase;
}

/* ---------- 20. CREDO ---------- */
.ds-credo-quote { font-family: var(--ds-serif); font-weight: 330; font-size: clamp(2.2rem, 5.5vw, 4.6rem); line-height: 1.08; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
.ds-credo-sub { margin-top: 1.8rem; max-width: 58ch; color: rgba(245,241,232,.78); font-size: var(--ds-lede); }

/* ---------- 21. MISC ---------- */
.ds-note-band { border: 1px solid var(--ds-line-d-soft); border-radius: var(--ds-r-sm); padding: 1.1rem 1.4rem; font-size: .9rem; color: rgba(245,241,232,.66); background: rgba(245,241,232,.03); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 200; background: var(--ds-ink); color: var(--ds-bone); padding: .9em 1.4em; border-radius: var(--ds-r-pill); font-family: var(--ds-mono); font-size: .75rem; letter-spacing: .12em; text-decoration: none; transition: top var(--duration-fast) var(--ds-ease); }
.skip-link:focus { top: 1rem; }

/* legacy hook compatibility — app.js owns .reveal one-shot reveals; the new
   system uses [data-choreo] (motion.js, bidirectional). Never override .reveal
   here: forcing it visible would kill app.js reveals on any element that
   carries the class. */
#bookFloat .ds-btn { box-shadow: 0 18px 44px -12px rgba(11,11,12,.5); }

/* ---------- 22. REDUCED MOTION — designed stillness, not disabled ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  [data-choreo] { opacity: 1; transform: none; filter: none; }
  .ds-bg-career::before, .ds-bg-apps::before, .ds-bg-worlds::before, .ds-bg-contact::before, .ds-bg-credo::before { animation: none; }
  .ds-ticker-track { animation: none; flex-wrap: wrap; width: auto; }
  .ds-arcade-marquee { animation: none; text-shadow: 0 0 24px rgba(210,161,63,.35); }
  .ds-hero-badge { animation: none; }
  .ds-hero-photo-wrap { transform: none; }
}

/* ---------- 23. RESPONSIVE ---------- */
@media (max-width: 899px) {
  .ds-chapter-num { display: none; }
  .ds-hero-stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .ds-show-grid { grid-template-columns: 1fr; }
  .ds-hero-badge { width: 5.6rem; height: 5.6rem; right: -.4rem; font-size: .54rem; }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .ds-show-grid { grid-template-columns: repeat(3, 1fr); }
  .ds-show-body { padding: 1.4rem 1.3rem; }
}

/* ---------- 24. HERO ENTRANCE (body.is-loaded gates the first paint) ---------- */
[data-hero] { opacity: 0; transform: translateY(36px); filter: blur(8px); }
body.is-loaded [data-hero] {
  animation: ds-hero-in 1s var(--ds-ease) forwards;
  animation-delay: var(--hd, 0ms);
}
@keyframes ds-hero-in {
  to { opacity: 1; transform: none; filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  [data-hero] { opacity: 1; transform: none; filter: none; }
  body.is-loaded [data-hero] { animation: none; }
}

/* ---------- 25. HEADLINES / TYPEWRITER / TICKER DIRECTIONS ---------- */
/* .ds-h — section display headline (Fraunces). app.js split-text targets
   .display-h; the new system uses .ds-h + [data-choreo] for clean ownership. */
.ds-h {
  font-family: var(--ds-serif); font-weight: 340; line-height: 1.02;
  letter-spacing: -0.015em; font-size: var(--ds-h2); margin: 0;
  text-wrap: balance;
}
.ds-h em { font-style: italic; font-weight: 330; }
.on-dark .ds-h em { color: var(--ds-bone); }
/* typewriter role line (researcher A.9) */
.ds-type-line { font-family: var(--ds-mono); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(11,11,12,.62); min-height: 1.6em; }
.ds-type-caret { display: inline-block; width: .6em; height: 1.05em; background: var(--ds-ox); vertical-align: -0.15em; margin-left: .15em; animation: ds-caret 1.06s steps(1) infinite; }
@keyframes ds-caret { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
/* ticker reverse direction (row B) */
.ds-ticker-track.rev { animation-direction: reverse; }

/* ==========================================================================
   26. RESOURCE ADOPTIONS — transitions.dev · BFS page-transition ·
   BrandedLoader · motion-spec personal law (120–200ms, ease-out)
   ========================================================================== */

/* ---- transitions.dev motion tokens (subset actually used; personal retune) ---- */
:root {
  --toast-open: 200ms; --toast-close: 150ms; --toast-distance: 16px;
  --toast-blur: 2px; --toast-scale: .97;
  --toast-ease: cubic-bezier(.22,1,.36,1);
  --modal-open-dur: 200ms; --modal-close-dur: 150ms;
  --modal-scale: .96; --modal-scale-close: .96;
  --modal-ease: cubic-bezier(.22,1,.36,1);
  --bfs-pt-dur: 200ms;
}

/* ---- t-toast (transitions.dev 22) — booking/contact transient confirmations ---- */
.t-toast-region {
  position: fixed; left: 50%; bottom: max(1.25rem, env(safe-area-inset-bottom));
  transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column;
  gap: .5rem; align-items: center; pointer-events: none; width: min(92vw, 26rem);
}
.t-toast {
  pointer-events: auto; display: flex; align-items: center; gap: .6rem;
  background: var(--ds-ink); color: var(--ds-bone);
  border: 1px solid rgba(245,242,236,.16); border-radius: 999px;
  padding: .65rem 1.1rem .65rem .8rem; font-size: .85rem; line-height: 1.35;
  box-shadow: 0 12px 40px rgba(11,11,12,.35); max-width: 100%;
  opacity: 0; transform: translateY(var(--toast-distance)) scale(var(--toast-scale));
  filter: blur(var(--toast-blur)); will-change: transform, opacity, filter;
  transition: opacity var(--toast-close) var(--toast-ease),
    transform var(--toast-close) var(--toast-ease), filter var(--toast-close) var(--toast-ease);
}
.t-toast.is-open {
  opacity: 1; transform: translateY(0) scale(1); filter: blur(0);
  transition: opacity var(--toast-open) var(--toast-ease),
    transform var(--toast-open) var(--toast-ease), filter var(--toast-open) var(--toast-ease);
}
.t-toast .t-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--ds-bone); flex: none; }
.t-toast.is-err .t-dot { background: #c0564d; }

/* ---- t-modal (transitions.dev 06) — booking modal open/close ---- */
.t-modal {
  transform-origin: center; transform: scale(var(--modal-scale)); opacity: 0;
  pointer-events: none;
  transition: transform var(--modal-open-dur) var(--modal-ease), opacity var(--modal-open-dur) var(--modal-ease);
  will-change: transform, opacity;
}
.t-modal.is-open { transform: scale(1); opacity: 1; pointer-events: auto; }
.t-modal.is-closing {
  transform: scale(var(--modal-scale-close)); opacity: 0; pointer-events: none;
  transition: transform var(--modal-close-dur) var(--modal-ease), opacity var(--modal-close-dur) var(--modal-ease);
}

/* ---- BFS page transition — personal variant: rise (page-transition.css) ---- */
.bfs-pt { position: relative; }
.bfs-pt-layer {
  animation-duration: var(--bfs-pt-dur, 200ms);
  animation-timing-function: cubic-bezier(.22,1,.36,1); animation-fill-mode: both;
}
.bfs-pt--rise .bfs-pt-entering { animation-name: bfs-pt-rise-in; }
@keyframes bfs-pt-rise-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
/* MPA page curtain: covers on exit, lifts on entrance (JS-driven) */
.pt-curtain {
  position: fixed; inset: 0; z-index: 300; background: var(--ds-ink);
  transform: scaleY(0); transform-origin: bottom; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.pt-curtain::after {
  content: ""; width: min(12rem, 40vw); height: 2px; background: var(--ds-ink);
  transform: scaleX(0); transform-origin: left;
}
.pt-curtain.is-covering { pointer-events: all; animation: pt-cover 200ms cubic-bezier(.22,1,.36,1) forwards; }
.pt-curtain.is-covering::after { animation: pt-line 200ms cubic-bezier(.22,1,.36,1) forwards; }
.pt-curtain.is-lifting { animation: pt-lift 200ms cubic-bezier(.22,1,.36,1) forwards; }
@keyframes pt-cover { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes pt-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pt-lift { from { transform: scaleY(1); transform-origin: top; } to { transform: scaleY(0); transform-origin: top; } }

/* ---- BrandedLoader — personal: arcade pixel dots chase (branded-loader.css) ---- */
.bfs-loader { display: inline-flex; align-items: center; justify-content: center; }
.bfs-loader svg { display: block; overflow: visible; }
.bfs-loader--personal .bl-dot { animation: bl-chase 1.2s ease-in-out infinite; }
.bfs-loader--personal .bl-dot:nth-child(2) { animation-delay: .15s; }
.bfs-loader--personal .bl-dot:nth-child(3) { animation-delay: .3s; }
.bfs-loader--personal .bl-dot:nth-child(4) { animation-delay: .45s; }
@keyframes bl-chase {
  0%,100% { opacity: .25; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}

/* ---- liquid brand-mark (liquid-logo adoption): SVG turbulence on the emblem ---- */
.liquid-mark { display: inline-block; }
.liquid-mark svg { display: block; }
.liquid-mark:hover .emblem-img, .liquid-mark:focus-visible .emblem-img {
  filter: url(#liquid-displace);
}

/* ---- liquid-glass surface (iOS 26 language) — floating CTA + booking modal ---- */
.liquid-glass {
  background: linear-gradient(135deg, rgba(245,242,236,.14), rgba(245,242,236,.05));
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(245,242,236,.22);
  box-shadow: 0 8px 32px rgba(11,11,12,.18), inset 0 1px 0 rgba(255,255,255,.25), inset 0 -1px 0 rgba(11,11,12,.08);
  position: relative; overflow: hidden;
}
.liquid-glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,0) 32%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .liquid-glass { background: rgba(20,20,22,.82); }
  .liquid-glass::before { display: none; }
}

/* ---- reduced motion: zero all adopted transitions (motion-spec static frame) ---- */
@media (prefers-reduced-motion: reduce) {
  .t-toast, .t-modal { transition: none !important; }
  .bfs-pt-layer { animation: none !important; }
  .pt-curtain { display: none !important; }
  .bfs-loader * { animation: none !important; }
  .bfs-loader--personal .bl-dot { opacity: 1; transform: none; }
}

/* ==========================================================================
   27. BATCH-3 ADOPTIONS — RHF validation pattern · Magic UI shimmer ·
   tailwindcss-animated utilities · Space Grotesk voice · icon grammar
   ========================================================================== */

/* ---- Space Grotesk voice: kickers, buttons, arcade labels ---- */
.ds-grotesk { font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif; }
.eyebrow { font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif; }

/* ---- t-error-msg / t-shake (React Hook Form pattern, vanilla port) ----
   Contact + booking validation: visible error text, 120ms shake on the form. */
.t-error-msg {
  display: none; font-size: .82rem; line-height: 1.4; color: #c0564d; margin-top: .5rem;
}
.t-error-msg.is-visible { display: block; }
.on-dark .t-error-msg { color: #e08d85; }
@keyframes t-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}
.t-shake { animation: t-shake 120ms ease-out; }

/* ---- Button shine sweep (hand-built, vanilla; Magic UI "shimmer button" grammar) ----
   NOTE: .ds-btn-gold is a legacy name (pre-r40). It renders INK per the de-gold
   spec, do not re-gold. Source: magicuidesign/magicui. */
.ds-btn { position: relative; overflow: hidden; }
.ds-btn-gold { background: var(--ds-ink); color: var(--ds-bone); border-color: transparent; }
.ds-btn-gold:hover { background: #26262a; color: var(--ds-bone); transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(11,11,12,.55); }
.ds-btn-gold:active { transform: translateY(0) scale(.98); }
.ds-btn-gold::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%);
}
.ds-btn-gold:hover::after { transform: translateX(120%); transition: transform 600ms ease; }

/* ---- tailwindcss-animated utilities (hand-ported keyframes we actually use) ----
   Source: tailwindcss-animated / tw-animations keyframe grammar. */
@keyframes ds-fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-up { animation: ds-fade-up 200ms cubic-bezier(.22,1,.36,1) both; }
@keyframes ds-pop-in { 0% { opacity: 0; transform: scale(.96); } 100% { opacity: 1; transform: scale(1); } }
.animate-pop-in { animation: ds-pop-in 200ms cubic-bezier(.22,1,.36,1) both; }

/* ---- icon grammar: Lucide-geometry inline SVGs (24 grid, 2px stroke) ----
   Bespoke-ified per Ben's rule; source geometry: lucide.dev (ISC). */
.ic { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.18em;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- reduced motion: zero batch-3 motion ---- */
@media (prefers-reduced-motion: reduce) {
  .t-shake, .animate-fade-up, .animate-pop-in { animation: none !important; }
  .ds-btn-gold::after { display: none; }
}

/* ===== Homepage v2 — components added for the ground-up redesign ===== */
.ds-about-grid{display:grid;gap:3rem;grid-template-columns:1fr;align-items:start}
@media(min-width:960px){.ds-about-grid{grid-template-columns:1.1fr .9fr}}
.ds-about-photo{margin:0;border-radius:18px;overflow:hidden;border:1px solid rgba(11,11,12,.14);background:#101012}
.ds-about-photo img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.ds-about-photo figcaption{padding:.75rem 1rem;color:var(--muted,#9b9b98);font-size:.85rem}
.ds-about-links{display:flex;gap:1.25rem;margin-top:1.5rem;flex-wrap:wrap}
.ds-app-body{padding:1.75rem}
.ds-app-cta{display:flex;align-items:center;gap:1rem;margin-top:1.5rem;flex-wrap:wrap}
.ds-app-note{font-size:.8rem;color:var(--muted,#9b9b98)}
.ds-badge-appstore{display:inline-flex;align-items:center;gap:.5rem;padding:.7rem 1.2rem;border-radius:999px;border:1px solid rgba(11,11,12,.4);color:var(--ds-ink);font-weight:600;font-size:.95rem;text-decoration:none;background:transparent;transition:border-color .2s,color .2s,background .2s,transform var(--duration-fast) var(--ds-ease)}
.ds-badge-appstore:hover{border-color:var(--ds-ink);background:var(--ds-ink);color:var(--ds-bone);transform:translateY(-1px)}
.ds-badge-appstore:active{transform:translateY(0) scale(.98)}
.ds-arcade-grid{display:grid;gap:3rem;grid-template-columns:1fr;align-items:start}
@media(min-width:960px){.ds-arcade-grid{grid-template-columns:auto 1fr}}
.ds-snake-head{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1rem;flex-wrap:wrap}
.ds-snake-head p{margin:0;font-size:.95rem}
#snakeCanvas{display:block;width:100%;max-width:400px;height:auto;aspect-ratio:1/1;border-radius:12px;background:#0B0B0C;border:1px solid rgba(255,255,255,.08);touch-action:none}
.ds-snake-foot{margin-top:1.25rem;display:flex;gap:1rem;align-items:center}
.ds-life-grid{display:grid;gap:2rem;grid-template-columns:1fr}
@media(min-width:760px){.ds-life-grid{grid-template-columns:1fr 1fr}}
.ds-life-photo{margin:0;border-radius:18px;overflow:hidden;border:1px solid rgba(255,255,255,.1);background:#101012}
.ds-life-photo img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}
.ds-life-photo figcaption{padding:.75rem 1rem;color:var(--muted,#9b9b98);font-size:.85rem}
.ds-contact-grid{display:grid;gap:3rem;grid-template-columns:1fr;align-items:start}
@media(min-width:960px){.ds-contact-grid{grid-template-columns:1fr 1fr}}
.ds-contact-note{margin-top:1rem;color:var(--muted,#9b9b98)}
.ds-form{padding:2rem;border-radius:20px}
.ds-form h3{margin:0 0 1.5rem;font-size:1.35rem}
.ds-field{margin-bottom:1.25rem}
.ds-field label{display:block;font-size:.85rem;font-weight:600;letter-spacing:.06em;margin-bottom:.5rem}
.ds-field input,.ds-field textarea{width:100%;padding:.85rem 1rem;border-radius:12px;border:1px solid rgba(255,255,255,.14);background:rgba(11,11,12,.6);color:#f5f1e6;font-size:1rem;font-family:inherit}
.ds-field input:focus,.ds-field textarea:focus{outline:none;border-color:var(--ds-bone);box-shadow:0 0 0 3px rgba(245,241,232,.16)}
.ds-field textarea{resize:vertical;min-height:120px}
.ds-btn-lg{padding:1.1rem 2rem;font-size:1.1rem}
#t-toast-stack{position:fixed;bottom:1.5rem;right:1.5rem;z-index:1200;display:flex;flex-direction:column;gap:.75rem;align-items:flex-end;pointer-events:none}
#t-toast-stack .t-toast{pointer-events:auto}
.ds-snake-over{position:absolute;inset:0;display:none;flex-direction:column;align-items:center;justify-content:center;gap:1rem;background:rgba(5,5,5,.82);border-radius:12px;text-align:center;padding:1.5rem}
.ds-snake-over.show{display:flex}
.ds-snake-over p{font-size:1.25rem;margin:0}

/* ===== Homepage v2 — theme coherence (light-first system; dark hero/apps/footer) ===== */
.eyebrow{font-size:var(--ds-eyebrow);letter-spacing:.24em;text-transform:uppercase;font-weight:600;color:var(--ds-ox);margin:0 0 1.1rem;display:flex;align-items:center;gap:.9em}
.eyebrow::before{content:"";width:2.4em;height:1px;background:currentColor;opacity:.7;flex:none}
.on-dark .eyebrow{color:var(--ds-bone)}
.ds-brand-word{font-family:var(--ds-mono);font-size:.78rem;letter-spacing:.18em;text-transform:uppercase;font-weight:600}
.ds-prose{max-width:62ch}
.ds-prose p{margin:0 0 1.1em;color:rgba(11,11,12,.78)}
.on-dark .ds-prose p{color:rgba(245,241,232,.78)}
.ds-lede{color:rgba(11,11,12,.66)}
.on-dark .ds-lede{color:rgba(245,241,232,.66)}
.ds-section-alt{background:linear-gradient(to bottom,var(--ds-bone) 0%,var(--ds-bone-2) 10%,var(--ds-bone-2) 90%,var(--ds-bone) 100%)}
/* dark hero */
.ds-hero.on-dark{background:#0B0B0C}
.on-dark .ds-hero-sub{color:rgba(245,241,232,.72)}
.on-dark .ds-type-line{color:rgba(245,241,232,.6)}
.on-dark .ds-hero-stats{border-top-color:var(--ds-line-d)}
.ds-hero-stats{grid-template-columns:repeat(2,1fr)}
@media(min-width:700px){.ds-hero-stats{grid-template-columns:repeat(4,1fr)}}
.ds-hero-stats dt{font-size:.72rem;letter-spacing:.18em;text-transform:uppercase;opacity:.6}
.ds-hero-stats dd{margin:.35rem 0 0;font-family:var(--ds-serif);font-size:2rem}
/* work cards (light) */
.ds-work-grid{display:grid;gap:1.25rem;grid-template-columns:1fr}
@media(min-width:800px){.ds-work-grid{grid-template-columns:1fr 1fr}}
.ds-work-card{display:block;background:var(--ds-bone);border:1px solid var(--ds-line);border-radius:18px;padding:2rem;text-decoration:none;color:inherit;transition:transform .2s var(--ds-ease),border-color .2s var(--ds-ease),box-shadow .2s var(--ds-ease)}
.ds-work-card:hover{transform:translateY(-4px);border-color:rgba(140,29,24,.45);box-shadow:0 24px 48px -24px rgba(11,11,12,.35)}
.ds-work-card:active{transform:translateY(-1px) scale(.985)}
.ds-work-card h3{font-family:var(--ds-serif);font-size:1.6rem;margin:0 0 .75rem;font-weight:400}
.ds-work-card p{color:rgba(11,11,12,.66);margin:0 0 1.25rem}
/* apps (dark) */
.ds-apps-grid{display:grid;gap:1.5rem;grid-template-columns:1fr}
@media(min-width:900px){.ds-apps-grid{grid-template-columns:repeat(3,1fr)}}
.ds-app-card{background:#141416;border:1px solid var(--ds-line-d-soft);border-radius:20px;overflow:hidden;display:flex;flex-direction:column;transition:transform .2s var(--ds-ease),border-color .2s var(--ds-ease)}
.ds-app-card:active{transform:translateY(-1px) scale(.985)}
.ds-app-card>img{width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;display:block}
.ds-app-card h3{font-family:var(--ds-serif);font-weight:400;font-size:1.5rem;margin:0 0 .6rem}
.ds-app-card .ds-app-body p{color:rgba(245,241,232,.66);margin:0}
/* footer (dark) */
.ds-footer{background:#0B0B0C;color:rgba(245,241,232,.78);padding:4rem 0 2rem}
.ds-footer-grid{display:grid;gap:2.5rem;margin-bottom:3rem}
@media(min-width:800px){.ds-footer-grid{grid-template-columns:1.2fr 1fr 1fr 1fr}}
.ds-footer nav p{font-family:var(--ds-mono);font-size:.66rem;letter-spacing:.22em;text-transform:uppercase;color:rgba(245,241,232,.42);margin:0 0 1rem}
.ds-footer nav a{display:block;color:rgba(245,241,232,.78);text-decoration:none;padding:.32em 0;font-size:.95rem}
.ds-footer nav a:hover{color:var(--ds-bone)}
.ds-footer-credo{font-family:var(--ds-serif);font-style:italic;font-size:1.25rem;color:var(--ds-bone);margin:1rem 0 0}
.ds-footer-copy{border-top:1px solid var(--ds-line-d-soft);padding-top:1.5rem;font-size:.85rem;color:rgba(245,241,232,.5);margin:0}
/* light form card */
.ds-form{background:#fff;border:1px solid var(--ds-line);box-shadow:0 24px 60px -40px rgba(11,11,12,.35)}
.ds-field input,.ds-field textarea{background:#fbf9f4;color:var(--ds-ink)}
.ds-field label{color:var(--ds-ink)}
#certSearch{background:#fff;border:1px solid var(--ds-line);color:var(--ds-ink)}
#certSearch::placeholder{color:rgba(11,11,12,.4)}
/* arcade cabinet stays a dark object on the light section — intentional */

/* ==========================================================================
   20. transitions.dev runtime components (2026-09-24)
   Hand-built bespoke implementations of transitions.dev patterns — not copied
   components: bespoke code tuned to the lane's ≤300ms motion law and theme.
   Lane law overrides transitions.dev's 500ms defaults wherever they conflict.
   Sources: transitions.dev snippets 06 (modal), 10 (success check),
   12 (error state shake), 15 (shimmer text). Reduced-motion guards required.
   ========================================================================== */
:root {
  /* Motion tokens — shared scale (transitions.dev _root.css, lane-tuned) */
  --duration-stagger: 40ms;
  --duration-micro: 80ms;
  --duration-quick: 150ms;
  --duration-fast: 250ms;
  --duration-medium: 350ms;
  --duration-slow: 400ms;
  --ease-smooth-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: ease-in-out;
  --ease-out: ease-out;
  --ease-linear: linear;
  --ease-bounce: cubic-bezier(0.34, 1.36, 0.64, 1);
  /* Modal (06) — open 250ms / close 150ms, scale .96 */
  --modal-open-dur: 250ms;
  --modal-close-dur: 150ms;
  --modal-scale: 0.96;
  --modal-ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* Success check (10) — LANE-TUNED: circle settle 240ms, check draw 300ms
     (lane ≤300ms law; transitions.dev defaults 500ms are superseded) */
  --check-opacity-dur: 240ms;
  --check-rotate-dur: 240ms;
  --check-rotate-from: 80deg;
  --check-bob-dur: 240ms;
  --check-y-amount: 24px;
  --check-path-dur: 300ms;
  --check-path-delay: 120ms;
  --check-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --check-ease-opacity: cubic-bezier(0.22, 1, 0.36, 1);
  --check-ease-rotate: cubic-bezier(0.22, 1, 0.36, 1);
  --check-ease-bob: cubic-bezier(0.34, 1.35, 0.64, 1);
  --check-ease-path: cubic-bezier(0.22, 1, 0.36, 1);
  /* Error state shake (12) */
  --shake-distance: 6px;
  --shake-overshoot: 4px;
  --shake-dur-a: 80ms;
  --shake-dur-b: 60ms;
  --shake-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --revert-hold: 3000ms;
  --revert-dur: 280ms;
  /* Shimmer text (15) — availability line uses gold-on-ink theme */
  --shimmer-dur: 2000ms;
  --shimmer-base: rgba(245,241,232,.62);
  --shimmer-highlight: #E8C77D;
  --shimmer-band: 400%;
  --shimmer-ease: linear;
  /* Toast (22) */
  --toast-open: 350ms;
  --toast-close: 250ms;
  --toast-distance: 16px;
  --toast-blur: 2px;
  --toast-scale: 0.97;
  --toast-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- t-success-check (10) — contact + booking success marks ----
   Wrapper drives fade + rotate + blur + Y-bob; circle draws first,
   check path draws after --check-path-delay. pathLength="100" on the
   SVG shapes normalizes dash math (no getTotalLength needed). */
.t-success-check {
  display: inline-block;
  transform-origin: center;
  opacity: 0;
  will-change: transform, opacity, filter;
}
.t-success-check svg { display: block; overflow: visible; }
.t-success-check circle,
.t-success-check path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.t-success-check[data-state="in"] {
  animation:
    t-check-fade   var(--check-opacity-dur) var(--check-ease-opacity) forwards,
    t-check-rotate var(--check-rotate-dur)  var(--check-ease-rotate)  forwards,
    t-check-bob    var(--check-bob-dur)     var(--check-ease-bob)     forwards;
}
.t-success-check[data-state="in"] circle {
  animation: t-check-draw var(--check-path-dur) var(--check-ease-path) 0ms forwards;
}
.t-success-check[data-state="in"] path {
  animation: t-check-draw var(--check-path-dur) var(--check-ease-path) var(--check-path-delay) forwards;
}
@keyframes t-check-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes t-check-rotate {
  from { transform: rotate(var(--check-rotate-from)); }
  to   { transform: rotate(0deg); }
}
@keyframes t-check-bob {
  from { translate: 0 var(--check-y-amount); }
  to   { translate: 0 0; }
}
@keyframes t-check-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .t-success-check { animation: none !important; opacity: 1; }
  .t-success-check circle, .t-success-check path { animation: none !important; stroke-dashoffset: 0 !important; }
}

/* ---- t-error-state-shake (12) — form validation feedback ----
   .t-input-wrap owns the message, .t-input owns border + shake. */
.t-input { transition: border-color 150ms ease-out; will-change: transform; }
.t-input.is-error { border-color: #b3402f !important; transition: border-color var(--revert-dur, 280ms) ease-out; }
.t-error-msg {
  opacity: 0; visibility: hidden; margin: .4rem 0 0; font-size: .8rem; color: #b3402f;
  transition: opacity var(--revert-dur, 280ms) ease-out, visibility 0s linear var(--revert-dur, 280ms);
}
.t-input-wrap.is-error .t-error-msg {
  opacity: 1; visibility: visible; transition: opacity var(--revert-dur, 280ms) ease-out, visibility 0s linear 0s;
}
.t-input.is-shaking {
  animation: t-input-shake calc(var(--shake-dur-a) * 2 + var(--shake-dur-b) * 2) linear;
}
@keyframes t-input-shake {
  0%     { transform: translateX(0);                                  animation-timing-function: var(--shake-ease); }
  28.57% { transform: translateX(var(--shake-distance));             animation-timing-function: var(--shake-ease); }
  57.14% { transform: translateX(calc(var(--shake-distance) * -1)); animation-timing-function: var(--shake-ease); }
  78.57% { transform: translateX(var(--shake-overshoot));            animation-timing-function: var(--shake-ease); }
  100%   { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .t-input { animation: none !important; transform: none !important; }
}

/* ---- t-shimmer (15) — availability line, gold sweep on dark ---- */
.t-shimmer {
  position: relative; display: inline-block; color: var(--shimmer-base);
}
.t-shimmer::before {
  content: attr(data-text);
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(90deg, transparent 0%, transparent 40%, var(--shimmer-highlight) 50%, transparent 60%, transparent 100%);
  background-size: var(--shimmer-band) 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: t-shimmer var(--shimmer-dur) var(--shimmer-ease) infinite;
}
@keyframes t-shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: 0% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .t-shimmer::before { animation: none !important; }
}

/* ---- form error banner + success card (contact, channel-aware) ---- */
.ds-form-error {
  border: 1px solid rgba(179,64,47,.45); background: rgba(179,64,47,.07);
  color: #8f3226; border-radius: 12px; padding: .85rem 1rem; font-size: .9rem; margin: 0 0 1rem;
}
.ds-success-card {
  background: #fff; border: 1px solid var(--ds-line);
  box-shadow: 0 24px 60px -40px rgba(11,11,12,.35);
  border-radius: 18px; padding: 2.25rem 2rem; text-align: center; max-width: 560px;
}
.ds-success-card .t-success-check { color: #2F6E3B; margin-bottom: 1.1rem; }
.ds-success-card h3 { font-family: var(--ds-serif); font-weight: 400; font-size: 1.6rem; margin: 0 0 .5rem; color: var(--ds-ink); }
.ds-success-card p { color: rgba(11,11,12,.68); font-size: .95rem; margin: 0 0 1.4rem; }
.ds-contact-avail { margin-top: 1.1rem; font-size: .85rem; letter-spacing: .02em; }

/* ---- site search dialog (t-modal 06) ---- */
.search-dialog { border: 0; padding: 0; background: transparent; max-width: min(640px, calc(100vw - 2rem)); width: 100%; }
.search-dialog::backdrop { background: rgba(11,11,12,.55); backdrop-filter: blur(6px); }
.search-panel {
  background: #F5F2EC; color: #141414; border-radius: 18px; padding: 1.25rem;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.5);
  transform: scale(var(--modal-scale)); opacity: 0;
  transition: transform var(--modal-open-dur) var(--modal-ease), opacity var(--modal-open-dur) var(--modal-ease);
}
.search-dialog[open] .search-panel { transform: scale(1); opacity: 1; }
.search-input-row { display: flex; align-items: center; gap: .6rem; border-bottom: 1px solid rgba(11,11,12,.14); padding-bottom: .8rem; }
#searchInput { flex: 1; border: 0; background: transparent; font-size: 1.05rem; color: #141414; outline: none; font-family: inherit; }
#searchInput::placeholder { color: rgba(11,11,12,.4); }
.search-results { max-height: 46vh; overflow: auto; margin-top: .6rem; }
.search-result { display: block; width: 100%; text-align: left; padding: .7rem .8rem; border-radius: 10px; border: 0; background: transparent; cursor: pointer; font: inherit; color: inherit; }
.search-result:hover, .search-result.is-active { background: rgba(11,11,12,.06); }
.search-result .sr-kind { font-family: var(--ds-mono); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: #8B1A1A; display: block; margin-bottom: .15rem; }
.search-result .sr-title { font-weight: 600; font-size: .95rem; display: block; }
.search-result .sr-desc { font-size: .82rem; color: rgba(11,11,12,.6); display: block; margin-top: .1rem; }
.search-empty { padding: 1.4rem .8rem; text-align: center; color: rgba(11,11,12,.5); font-size: .9rem; }
@media (prefers-reduced-motion: reduce) {
  .search-panel { transition: none; transform: none; opacity: 1; }
}

/* ==========================================================================
   RESOURCE-ADOPTION WAVE — 2026-09-25
   transitions.dev recipes (original code, never copied source) + LiveCharts2
   design-language fold-in (decorative motif only, no chart dependency).
   Brand: Arcade snap — 120–200ms, steps/ease-out, ≤300ms hard cap.
   Every recipe honors prefers-reduced-motion. Zero Google anything.
   ========================================================================== */

/* ---- (14) t-skel — skeleton pulse -> cross-blur content reveal ---- */
.t-skel { position: relative; display: inline-block; overflow: hidden; background: rgba(237,233,223,.06); vertical-align: middle; }
.t-skel::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, transparent 20%, rgba(237,233,223,.10) 50%, transparent 80%);
  background-size: 200% 100%; animation: t-skel-pulse 1.2s linear infinite; }
.t-skel img { position: relative; z-index: 0; opacity: 0; filter: blur(2px);
  transition: opacity .4s ease-out, filter .4s ease-out; }
.t-skel.is-loaded::before { display: none; }
.t-skel.is-loaded img { opacity: 1; filter: blur(0); }
@keyframes t-skel-pulse { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .t-skel::before { animation: none; display: none; }
  .t-skel img { opacity: 1; filter: none; transition: none; }
}

/* ---- (18) t-stagger — staggered blurred text reveal ---- */
.t-stagger > .ts-w { display: inline-block; opacity: 0; transform: translateY(12px); filter: blur(3px);
  transition: opacity .5s ease-in-out, transform .5s ease-in-out, filter .5s ease-in-out;
  transition-delay: calc(var(--i, 0) * 40ms); }
.t-stagger.is-shown > .ts-w { opacity: 1; transform: translateY(0); filter: blur(0); }
@media (prefers-reduced-motion: reduce) {
  .t-stagger > .ts-w { opacity: 1; transform: none; filter: none; transition: none; }
}

/* ---- (24) learn-more hover — chevron slides + arms spread into arrow ---- */
.ds-link .ic { transition: transform .15s ease-out; }
.ds-link .ic path { transform-box: fill-box; transform-origin: right center; transition: transform .15s ease-out; }
a:hover > .ds-link .ic, a:hover .ds-link .ic, .ds-link:hover .ic { transform: translateX(4px); }
a:hover > .ds-link .ic path, a:hover .ds-link .ic path, .ds-link:hover .ic path { transform: scaleX(1.3); }
@media (prefers-reduced-motion: reduce) {
  .ds-link .ic, .ds-link .ic path { transition: none; }
}

/* ---- (09) icon swap — #hb hamburger <-> close with cross-blur beat ---- */
#hb span { transition: transform var(--duration-fast) var(--ds-ease), opacity var(--duration-quick) var(--ds-ease), filter var(--duration-quick) var(--ds-ease); }
#hb.is-swapping span { filter: blur(2px); }
@media (prefers-reduced-motion: reduce) {
  #hb span { transition: none; }
  #hb.is-swapping span { filter: none; }
}

/* ---- (04) t-tswap — in-place text state swap, blur + 4px slide ---- */
.t-tswap { display: inline-block; transition: opacity .15s ease-out, transform .15s ease-out, filter .15s ease-out; }
.t-tswap.is-out { opacity: 0; transform: translateY(-4px); filter: blur(2px); }
@media (prefers-reduced-motion: reduce) {
  .t-tswap, .t-tswap.is-out { transition: none; opacity: 1; transform: none; filter: none; }
}

/* ---- (A.10) character 3D flip — arcade letter tiles ---- */
[data-charflip] .cf-ch { display: inline-block; backface-visibility: hidden; }
[data-charflip].cf-go .cf-ch { animation: cf-flip .4s cubic-bezier(.34,1.36,.64,1); animation-delay: calc(var(--i, 0) * 30ms); }
@keyframes cf-flip { from { transform: rotateX(0deg); } to { transform: rotateX(360deg); } }
@media (prefers-reduced-motion: reduce) {
  [data-charflip].cf-go .cf-ch { animation: none; }
}

/* ---- (A.11) ds-dashrule — animated dash-phase section divider ---- */
.ds-dashrule { display: block; width: min(72rem, calc(100% - 3rem)); height: 1px; margin: 0 auto; overflow: visible; }
.ds-dashrule line { stroke: rgba(232,180,74,.4); stroke-width: 1; stroke-dasharray: 6 8;
  animation: dash-crawl 1.2s linear infinite; }
@keyframes dash-crawl { to { stroke-dashoffset: -28px; } }
@media (prefers-reduced-motion: reduce) {
  .ds-dashrule line { animation: none; }
}

/* ---- (26) t-slot — slot-machine digit reels ---- */
.t-slot { display: inline-flex; overflow: hidden; line-height: 1; vertical-align: baseline; }
.slot-reel { display: inline-block; height: 1em; overflow: hidden; }
.slot-digit { display: block; height: 1em; line-height: 1; }
.slot-strip { display: block; transition: transform .7s cubic-bezier(.22,1,.36,1), filter .25s ease-out;
  transition-delay: calc(var(--i, 0) * 60ms); }
.slot-strip.spinning { filter: blur(1px); }
@media (prefers-reduced-motion: reduce) {
  .slot-strip { transition: none; }
}

/* ---- LiveCharts2 fold-in: decorative chart motif (NOT a data viz) ----
   Pure brand texture for the arcade section: hand-authored smooth path,
   token-driven gradient, rounded caps. No axes, no labels, no numbers —
   visually obvious as decoration, never presented as real data. */
.ds-chart-motif { position: absolute; left: 0; right: 0; bottom: -6px; height: 110px; width: 100%;
  pointer-events: none; opacity: .55; }
.ds-chart-motif .cm-line { stroke: var(--acc, #E8B44A); stroke-width: 2; stroke-linecap: round;
  stroke-linejoin: round; fill: none; stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1s ease-out; }
.ds-chart-motif .cm-area { opacity: 0; transition: opacity .8s ease-out .3s; }
.ds-chart-motif .cm-area-stop-a { stop-color: var(--acc, #E8B44A); stop-opacity: .28; }
.ds-chart-motif .cm-area-stop-b { stop-color: var(--acc, #E8B44A); stop-opacity: 0; }
.ds-chart-motif.is-in .cm-line { stroke-dashoffset: 0; }
.ds-chart-motif.is-in .cm-area { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .ds-chart-motif .cm-line { stroke-dashoffset: 0; transition: none; }
  .ds-chart-motif .cm-area { opacity: 1; transition: none; }
}

/* ==========================================================================
   BESPOKE SCROLL-DRIVEN 3D — scroll3d.js (BFS original, 2026-09-25)
   Arcade-snap 3D: gentle perspective leans, depth-layer parallax,
   scale-through-z, one sticky cinematic (arcade, desktop only).
   Rules: transform/opacity ONLY (60fps), <=8deg rotations (no spins),
   reduced-motion = final composed state, no-JS = normal static section
   (the scroll track + depth layers are JS-created).
   ========================================================================== */
.has-3d { perspective: 1400px; }
.s3d { transform-style: preserve-3d; will-change: transform; }
.ds-hero-inner { transform-origin: 50% 0; }
/* sticky cinematic stage (arcade) */
.ds-cine { position: relative; }
.ds-cine-stage { position: sticky; top: 0; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; }
.cine-layer { position: absolute; inset: -12%; pointer-events: none; }
.cine-layer-back { background-image: radial-gradient(circle, rgba(232,180,74,.16) 1.5px, transparent 2.5px);
  background-size: 26px 26px; }
.cine-layer-front { background: repeating-linear-gradient(0deg, rgba(0,0,0,.20) 0 1px, transparent 1px 4px); }
@media (prefers-reduced-motion: reduce) {
  .has-3d { perspective: none; }
  .s3d { will-change: auto; }
}

/* ==========================================================================
   CONNECTIVITY NOTIFIER & TOAST PILL
   Tactile feedback pill for online/offline events and micro-interaction toasts.
   ========================================================================== */
.connectivity-pill {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(40px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  z-index: 99999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: var(--ds-mono, ui-monospace, monospace);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(11, 11, 12, 0.88);
  color: var(--ds-bone, #f7f5f0);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 12px rgba(232, 180, 74, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1), opacity 200ms ease;
}
.connectivity-pill.is-visible {
  transform: translateX(-50%) translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.connectivity-pill.is-offline {
  border-color: rgba(245, 158, 11, 0.4);
  color: #fef3c7;
}
.connectivity-pill.is-online {
  border-color: rgba(34, 197, 94, 0.4);
  color: #dcfce7;
}
.connectivity-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}
.connectivity-pill.is-online .connectivity-pill-dot {
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}
@media (prefers-reduced-motion: reduce) {
  .connectivity-pill {
    transition: opacity 150ms ease !important;
    transform: translateX(-50%) translateY(0) !important;
  }
}

/* ==========================================================================
   R29 RESTORE (2026-10-05): white-design rules reinstated after DEEPFIELD,
   plus the elevate-pass components. All motion scroll/time-driven only
   (R1 cursor-follow ban, Ben 2026-09-28) and reduced-motion-safe.
   ========================================================================== */

/* Hero 3D canvas: full-bleed behind hero content, sized responsively */
#hero3d.ds-hero-3d, .ds-hero-3d {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  pointer-events: none;
}
@media (max-width: 700px) {
  #hero3d.ds-hero-3d, .ds-hero-3d { opacity: .8; }
}

/* ---------- FAQ (ds voice) ---------- */
.ds-faq-list { display: grid; gap: .8rem; }
.ds-faq {
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-r-md);
  background: rgba(255, 255, 255, .42);
  transition: border-color var(--duration-quick) var(--ds-ease), background var(--duration-quick) var(--ds-ease);
}
.ds-faq:hover { border-color: rgba(11, 11, 12, .28); }
.ds-faq[open] { background: rgba(255, 255, 255, .68); border-color: rgba(11, 11, 12, .22); }
.ds-faq > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 1.25rem;
  font-family: var(--ds-serif); font-size: 1.12rem; line-height: 1.35; color: var(--ds-ink);
}
.ds-faq > summary::-webkit-details-marker { display: none; }
.ds-faq > summary:focus-visible { outline: 2px solid var(--ds-ink); outline-offset: 3px; border-radius: var(--ds-r-md); }
.ds-faq-q { flex: 1; }
.ds-faq-plus { position: relative; width: 14px; height: 14px; flex: none; }
.ds-faq-plus::before, .ds-faq-plus::after {
  content: ""; position: absolute; background: var(--ds-ox); border-radius: 2px;
  transition: transform var(--duration-quick) var(--ds-ease);
}
.ds-faq-plus::before { left: 0; top: 6px; width: 14px; height: 2px; }
.ds-faq-plus::after { left: 6px; top: 0; width: 2px; height: 14px; }
.ds-faq[open] .ds-faq-plus::after { transform: rotate(90deg); }
.ds-faq-a { margin: 0; padding: 0 1.25rem 1.25rem; color: rgba(11, 11, 12, .78); line-height: 1.65; max-width: 62ch; }

/* ---------- About photo flip-through ---------- */
.ds-flip-frame { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--ds-r-md); background: var(--ds-bone-2); }
.ds-flip-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--duration-medium) var(--ds-ease); }
.ds-flip-img.is-active { opacity: 1; }
.ds-flip-instant .ds-flip-img { transition: none; }
.ds-flip-bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-top: .8rem; }
.ds-flip-cap { margin: 0; font-size: .85rem; color: rgba(11, 11, 12, .6); font-style: italic; font-family: var(--ds-serif); min-height: 1.4em; }
.ds-flip-cap span { display: inline-block; transition: opacity .18s ease; }
.ds-flip-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: var(--ds-r-pill);
  border: 1px solid var(--ds-line); background: transparent; color: var(--ds-ink);
  cursor: pointer; transition: border-color var(--duration-quick) var(--ds-ease), transform var(--duration-quick) var(--ds-ease);
}
.ds-flip-btn .ic { width: 14px; height: 14px; }
.ds-flip-btn[data-flip-prev] .ic { transform: rotate(180deg); }
.ds-flip-btn:hover { border-color: var(--ds-ox); transform: translateY(-1px); }
.ds-flip-btn:active { transform: translateY(0) scale(.96); }
.ds-flip-btn:focus-visible { outline: 2px solid var(--ds-ink); outline-offset: 3px; }

/* ---------- Footer badge + made line ---------- */
.ds-footer-badge { display: inline-flex; align-items: center; gap: .7rem; font-size: .92rem; color: rgba(245, 241, 232, .85); }
.ds-footer-badge img { border-radius: 50%; flex: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.ds-footer-made { margin: .9rem 0 0; font-size: .85rem; color: rgba(245, 241, 232, .55); }
.ds-footer-made .copy-egg { color: rgba(245, 241, 232, .75); }
.ds-footer-made .copy-egg:hover { color: var(--ds-bone); }

@media (prefers-reduced-motion: reduce) {
  .ds-flip-img, .ds-faq, .ds-faq-plus::before, .ds-faq-plus::after, .ds-flip-btn { transition: none !important; }
}

/* ============ r31: split hero + locked homepage sections ============ */
:root { --ds-ink-soft: rgba(11, 11, 12, .62); }
.ds-hero-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; width: 100%; position: relative; z-index: 1; }
.ds-hero-copy{min-width:0}
.ds-hero-copy .ds-hero-title { font-size: clamp(3rem, 7.5vw, 5.75rem); line-height: 1.02; letter-spacing: -0.02em; overflow-wrap: break-word; }
.ds-hero-media { margin: 0; }
.ds-hero-media .ds-flip { max-width: 460px; margin-left: auto; }
.ds-hero-symbols { position: absolute; inset: 0; overflow: clip; pointer-events: none; z-index: 0; }
.ds-sym { position: absolute; font-family: Georgia, serif; color: var(--ds-ink); opacity: .05; line-height: 1; }
.ds-sym-1 { font-size: 9rem; top: 8%; left: 4%; transform: rotate(-12deg); }
.ds-sym-2 { font-size: 6rem; top: 68%; left: 10%; }
.ds-sym-3 { font-size: 4.5rem; top: 18%; right: 6%; }
.ds-sym-4 { font-size: 7rem; bottom: 6%; right: 12%; transform: rotate(18deg); }
.ds-sym-5 { font-size: 5rem; top: 44%; left: 44%; opacity: .035; }
.ds-about-img-frame { display: block; border-radius: 18px; overflow: hidden; border: 1px solid var(--ds-line); box-shadow: 0 24px 60px -30px rgba(11,11,12,.25); }
.ds-about-img-frame img { display: block; width: 100%; height: auto; }
.ds-about-cap { margin-top: .6rem; font-size: .85rem; color: var(--ds-ink-soft); }
/* Timeline (light, all logos, reveal via data-choreo) */
.ds-timeline { list-style: none; margin: 2.5rem 0 0; padding: 0; border-top: 1px solid var(--ds-line); }
.ds-tl-row { display: grid; grid-template-columns: 180px 1fr; gap: 1.5rem; align-items: center; padding: 1.4rem 0; border-bottom: 1px solid var(--ds-line); }
.ds-tl-date { font-family: ui-monospace, monospace; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ds-ink-soft); }
.ds-tl-now .ds-tl-date { color: var(--ds-ox); font-weight: 700; }
.ds-tl-main { display: flex; align-items: center; gap: 1.1rem; }
.ds-tl-logo { width: 52px; height: 52px; object-fit: contain; border-radius: 12px; background: #fff; border: 1px solid var(--ds-line); padding: 6px; flex-shrink: 0; }
.ds-tl-main h3 { font-family: var(--ds-serif); font-weight: 500; font-size: 1.25rem; margin: 0 0 .15rem; }
.ds-tl-main p { margin: 0; color: var(--ds-ink-soft); font-size: .92rem; }
.ds-section-cta { margin-top: 1.75rem; }
/* App snippet trio */
.ds-apps-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.25rem; }
.ds-app-mini { border: 1px solid var(--ds-line); border-radius: 18px; overflow: hidden; background: #fff; transition: transform .35s ease, box-shadow .35s ease; }
.ds-app-mini:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(11,11,12,.3); }
.ds-app-mini img { display: block; width: 100%; height: auto; }
.ds-app-mini > div { padding: 1.25rem 1.35rem 1.4rem; }
.ds-app-mini h3 { font-family: var(--ds-serif); font-size: 1.2rem; font-weight: 500; margin: .3rem 0 .9rem; }
/* BFS snippet */
.ds-bfs-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.ds-bfs-ctas { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.4rem; }
.ds-bfs-badge { text-align: center; }
.ds-bfs-badge img { width: 180px; height: 180px; border-radius: 50%; box-shadow: 0 30px 70px -30px rgba(11,11,12,.35); }
/* Arcade snippet */
.ds-arcade-strip { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.ds-arcade-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.ds-arcade-tile { aspect-ratio: 4/3; border-radius: 12px; background: linear-gradient(135deg, var(--ds-ink) 0%, var(--ds-ink-3) 60%, var(--ds-ox-deep) 100%); border: 1px solid var(--ds-line-d); position: relative; overflow: hidden; }
.ds-arcade-tile::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 70% 20%, rgba(201,162,39,.35), transparent 60%); }
/* Contact strip */
.ds-contact-strip { text-align: center; max-width: 640px; margin: 0 auto; }
.ds-contact-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.75rem; }
/* Short footer */
.ds-footer-short { border-top: 1px solid var(--ds-line); padding: 2rem 0 1.6rem; background: var(--ds-bone); }
.ds-footer-short-top { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.ds-footer-brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--ds-serif); font-size: 1.05rem; color: var(--ds-ink); text-decoration: none; }
.ds-footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: center; }
.ds-footer-links a, .ds-footer-links button { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ds-ink-soft); text-decoration: none; background: none; border: 0; cursor: pointer; padding: 0; font-family: inherit; }
.ds-footer-links a:hover, .ds-footer-links button:hover { color: var(--ds-ox); }
.ds-footer-short-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.1rem; border-top: 1px solid var(--ds-line); font-size: .8rem; color: var(--ds-ink-soft); }
.ds-footer-badge { display: inline-flex; align-items: center; gap: .5rem; }
.ds-footer-badge img { border-radius: 50%; }
.ds-footer-legal { display: flex; gap: 1rem; }
.ds-footer-legal a { color: var(--ds-ink-soft); text-decoration: none; }
.ds-footer-legal a:hover { color: var(--ds-ox); }
@media (max-width: 900px) {
  .ds-hero-split { grid-template-columns: 1fr; }
  .ds-hero-media .ds-flip { margin: 0 auto; }
  .ds-about-grid { grid-template-columns: 1fr; }
  .ds-tl-row { grid-template-columns: 1fr; gap: .6rem; }
  .ds-apps-trio { grid-template-columns: 1fr; }
  .ds-bfs-grid { grid-template-columns: 1fr; }
  .ds-bfs-badge { order: -1; }
  .ds-arcade-strip { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ds-app-mini { transition: none; }
  .ds-app-mini:hover { transform: none; }
}

/* r31: rules for previously unstyled homepage classes */
.ds-hero-eyebrow { margin-bottom: 1.1rem; }
.ds-hero-mark { display: inline-block; margin-bottom: 1.25rem; }
.ds-hero-mark .emblem-img { border-radius: 50%; filter: drop-shadow(0 18px 30px rgba(11,11,12,.28)); }
.bf-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ds-gold); margin-right: .5rem; animation: bf-pulse 2.2s ease-in-out infinite; }
@keyframes bf-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }
.ds-hb { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: .6rem; }
.ds-hb span { display: block; width: 22px; height: 2px; background: var(--ds-ink); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
@media (max-width: 900px) { .ds-hb { display: inline-flex; } .ds-nav-links { display: none; } }
.booking-form { margin-top: 1rem; }
@media (prefers-reduced-motion: reduce) {
  .bf-dot { animation: none; }
  .ds-hb span { transition: none; }
}

/* ============ r35 PERSONAL FIX PACK (2026-10-06, Ben phone-QA) ============ */
/* Nav polish: alignment, spacing, refined brand mark */
.ds-nav-inner { height: 4.5rem; }
.emblem-img { display: block; border-radius: 50%; }
.ds-nav-cta { display: flex; align-items: center; gap: .75rem; }
/* Hamburger: crisp X transition */
#hb span { transition: transform .28s cubic-bezier(.65, 0, .35, 1), opacity .18s ease; }
#hb.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#hb.open span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
#hb.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
#hb:focus-visible { outline: 2px solid var(--ds-gold); outline-offset: 2px; border-radius: 6px; }
/* Desktop nav hover polish */
.nlink:focus-visible { outline: 2px solid var(--ds-gold); outline-offset: 4px; border-radius: 2px; }
/* Mobile menu: premium vertical rhythm, generous touch targets */
#mmenu {
  padding: max(5rem, env(safe-area-inset-top)) var(--ds-gutter) calc(2.5rem + env(safe-area-inset-bottom));
  overscroll-behavior: contain;
}
#mmenu nav { display: flex; flex-direction: column; width: 100%; }
#mmenu .mlink { padding: .6em 0; min-height: 52px; align-items: center; letter-spacing: 0; }
#mmenu .ds-btn { margin-top: 1.75rem; align-self: flex-start; }
/* Flip arrows: subtle secondary to autoplay */
.ds-flip-btn { opacity: .55; }
.ds-flip-btn:hover, .ds-flip-btn:focus-visible { opacity: 1; }
/* Floating book widget: never cover app-card content on mobile */
#bookFloat.show.hide-apps { transform: translateY(140%); }
#bookFloat.show.hide-head { transform: translateY(140%); }
@media (max-width: 900px) {
  #bookFloat { right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); }
}
/* Footer elsewhere row: compact */
.ds-footer-ext { width: 100%; margin-top: .15rem; }
.ds-footer-ext a { font-size: .74rem; }
/* Arcade cabinet: marquee, screen, deck. White on-brand, tasteful. */
.ds-cabinet {
  background: var(--ds-bone); border: 1px solid var(--ds-line); border-radius: 22px;
  padding: 1.15rem; max-width: 430px; width: 100%;
  box-shadow: 0 30px 70px -35px rgba(11, 11, 12, .35);
}
.ds-cab-marquee {
  display: flex; align-items: center; justify-content: center; gap: .9rem;
  background: var(--ds-ink); border-radius: 14px; padding: .75rem 1rem; margin-bottom: 1rem;
}
a.ds-cab-title{text-decoration:none;display:inline-block}
a.ds-cab-title:hover{color:var(--ds-gold-2)}
a.ds-cab-deck{text-decoration:none;cursor:pointer}
a.ds-cab-deck:hover .ds-cab-stick{transform:translateY(-2px)}
.ds-cab-deck .ds-cab-stick{transition:transform .18s ease}
.ds-cab-title {
  font-family: var(--ds-mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .32em; text-transform: uppercase; color: var(--ds-gold-3);
  margin-right: -.32em;
}
.ds-cab-bulb { width: 8px; height: 8px; border-radius: 50%; background: var(--ds-gold-3); box-shadow: 0 0 10px var(--ds-gold-3); flex: none; }
.ds-cab-screen { background: #0d0d0f; border-radius: 14px; padding: .9rem; border: 1px solid var(--ds-line-d); }
#cabSnake { width: 100%; height: auto; display: block; border-radius: 8px; background: #101014; touch-action: none; cursor: pointer; }
.ds-cab-hud { display: flex; align-items: center; gap: 1rem; margin-top: .75rem; color: var(--ds-bone); font-family: var(--ds-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.ds-cab-play {
  margin-left: auto; font-family: var(--ds-mono); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ds-ink); background: var(--ds-gold-3); border: 0; border-radius: 999px; padding: .55em 1.3em; cursor: pointer;
  transition: transform .18s ease, background-color .18s ease;
}
.ds-cab-play:hover { transform: translateY(-1px); }
.ds-cab-play:active { transform: scale(.96); }
.ds-cab-hint { color: rgba(245, 241, 232, .5); font-size: .74rem; margin: .55rem 0 0; }
.ds-cab-deck { display: flex; align-items: center; justify-content: center; gap: 1.75rem; padding: 1.05rem 0 .3rem; }
.ds-cab-stick { width: 40px; height: 40px; border-radius: 50%; background: var(--ds-ink); position: relative; box-shadow: inset 0 2px 6px rgba(245,241,232,.25), 0 4px 10px rgba(11,11,12,.3); }
.ds-cab-stick i { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--ds-ox); box-shadow: 0 2px 6px rgba(11,11,12,.4); }
.ds-cab-buttons { display: flex; gap: .6rem; }
.ds-cab-buttons i { width: 22px; height: 22px; border-radius: 50%; background: var(--ds-gold-3); box-shadow: inset 0 -3px 6px rgba(11,11,12,.35), 0 3px 8px rgba(11,11,12,.25); }
.ds-cab-buttons i:nth-child(2) { background: var(--ds-ox); }
.ds-cab-buttons i:nth-child(3) { background: var(--ds-ink-3); }
@media (max-width: 900px) {
  .ds-cabinet { margin: 0 auto; }
  .ds-arcade-strip { grid-template-columns: 1fr; }
}

/* ================= r36 · footer redesign, loader, studio polish, contact elevation ================= */

/* ---------- LOADER · bespoke BS monogram on cream (replaces black pixel-dots) ---------- */
#loader {
  position: fixed; inset: 0; z-index: 100; background: var(--ds-bone); color: var(--ds-ink);
  display: grid; place-items: center;
  transition: opacity .65s var(--ds-ease), visibility 0s linear .65s;
}
#loader.hide { opacity: 0; visibility: hidden; }
.ld-inner { text-align: center; padding: 0 1.5rem; }
.ld-seal { position: relative; width: 104px; height: 104px; margin: 0 auto; animation: ld-rise .85s var(--ds-ease) both; }
@keyframes ld-rise { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }
.ld-mark {
  width: 104px; height: 104px; border-radius: 50%; display: block;
  filter: drop-shadow(0 22px 34px rgba(11,11,12,.28));
}
.ld-draw { position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); transform: rotate(-90deg); }
.ld-draw circle {
  fill: none; stroke: var(--ds-ink); stroke-width: 2;
  stroke-dasharray: 352; stroke-dashoffset: 352; stroke-linecap: round;
  animation: ld-draw 1.15s .25s var(--ds-ease) forwards;
}
@keyframes ld-draw { to { stroke-dashoffset: 0; } }
.ld-rule { width: 148px; height: 2px; background: rgba(26,24,20,.10); margin: 1.5rem auto 0; overflow: hidden; border-radius: 2px; }
.ld-rule i { display: block; height: 100%; width: 40%; background: var(--ds-ink); border-radius: 2px; animation: ld-sweep 1.15s var(--ds-ease) infinite; }
@keyframes ld-sweep { from { transform: translateX(-110%); } to { transform: translateX(390%); } }
.ld-word { font-family: var(--ds-mono); font-size: .66rem; letter-spacing: .32em; text-transform: uppercase; color: var(--ds-ink-soft); margin: 1rem 0 0; animation: ld-word 1s .45s var(--ds-ease) both; }
@keyframes ld-word { from { opacity: 0; letter-spacing: .42em; } to { opacity: 1; letter-spacing: .32em; } }
@media (prefers-reduced-motion: reduce) {
  .ld-seal, .ld-word { animation: none; }
  .ld-draw circle { animation: none; stroke-dashoffset: 0; }
  .ld-rule i { animation: none; transform: none; width: 100%; }
}

/* ---------- FOOTER r36 · compact, elegant, grouped ---------- */
.ft { border-top: 0; background: var(--ds-bone); padding: 1.5rem 0 1rem; position: relative; }
.ft::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(72rem, 92%); height: 1px; background: linear-gradient(to right, transparent, var(--ds-line), transparent); }
.ft-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; padding-bottom: 1.1rem; }
.ft-brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.ft-brand img { border-radius: 50%; filter: drop-shadow(0 8px 14px rgba(11,11,12,.14)); flex: none; }
.ft-brand-t { display: flex; flex-direction: column; gap: .22rem; }
.ft-brand-t strong { font-family: var(--ds-serif); font-weight: 400; font-size: 1rem; line-height: 1.2; color: var(--ds-ink); }
.ft-brand-t small { font-family: var(--ds-mono); font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ds-ink-soft); }
.ft-groups { display: flex; gap: clamp(2rem, 5vw, 3.5rem); flex-wrap: wrap; }
.ft-group p { font-family: var(--ds-mono); font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(26,24,20,.42); margin: 0 0 .55rem; }
.ft-group a, .ft-group button {
  display: block; padding: .31em 0; font-size: .93rem; line-height: 1.45; color: var(--ds-ink-soft);
  text-decoration: none; background: none; border: 0; cursor: pointer; font-family: inherit; text-align: left;
  transition: color .18s var(--ds-ease), transform .18s var(--ds-ease);
}
.ft-group a:hover, .ft-group button:hover { color: var(--ds-ox); transform: translateX(3px); }
.ft-bottom { display: flex; align-items: center; justify-content: space-between; gap: .7rem 1.25rem; flex-wrap: wrap; padding-top: .75rem; border-top: 1px solid var(--ds-line); font-size: .78rem; color: var(--ds-ink-soft); }
.ft-badge { display: inline-flex; align-items: center; gap: .55rem; }
.ft-badge img { border-radius: 50%; flex: none; }
.ft-legal { display: inline-flex; gap: 1.15rem; }
.ft-legal a { color: var(--ds-ink-soft); text-decoration: none; transition: color .18s var(--ds-ease); }
.ft-legal a:hover { color: var(--ds-ox); }
@media (max-width: 720px) {
  .ft { padding: 1.25rem 0 .9rem; }
  .ft-top { flex-direction: column; gap: 1.1rem; padding-bottom: 1rem; }
  .ft-groups { gap: 1.25rem 2.5rem; }
  .ft-bottom { flex-direction: column; align-items: flex-start; gap: .6rem; }
}

/* ---------- STUDIO section polish r36 ---------- */
.ds-bfs-badge-cap { font-family: var(--ds-mono); font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ds-ink-soft); margin: 1.5rem 0 0; }
.ds-bfs-badge img { outline: 1px solid var(--ds-line); outline-offset: 12px; }
@media (max-width: 800px) { .ds-bfs-badge img { outline-offset: 8px; } }

/* ---------- CONTACT strip elevation r36 ---------- */
.ds-contact-strip { max-width: 720px; }
.ds-contact-strip .ds-h { font-size: clamp(2.1rem, 5.4vw, 3.4rem); letter-spacing: -.01em; }
.ds-contact-strip .ds-lede { font-size: 1.06rem; max-width: 34rem; margin-left: auto; margin-right: auto; }

/* ============ r36-apps: bookFloat redesign, compact intentional pill ============ */
#bookFloat {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 50;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .72rem 1.15rem;
  border-radius: var(--ds-r-pill);
  background: var(--ds-ink); color: var(--ds-bone);
  border: 1px solid rgba(245, 241, 232, .14);
  font-family: var(--ds-sans); font-size: .86rem; font-weight: 600; letter-spacing: .02em;
  box-shadow: 0 18px 44px -14px rgba(11, 11, 12, .55), inset 0 1px 0 rgba(255, 255, 255, .12);
  cursor: pointer;
  transform: translateY(140%);
  transition: transform var(--duration-medium) var(--ds-spring), box-shadow var(--duration-fast) var(--ds-ease), background var(--duration-fast) var(--ds-ease);
  max-width: calc(100vw - 2.5rem);
  white-space: nowrap;
}
#bookFloat .ic { width: 1rem; height: 1rem; flex: none; }
#bookFloat .bf-dot { margin-right: 0; }
#bookFloat.show { transform: none; }
#bookFloat.show:hover { transform: translateY(-2px); box-shadow: 0 24px 54px -14px rgba(11, 11, 12, .6); background: var(--ds-ink-2); }
#bookFloat.show:active { transform: translateY(0) scale(.98); }
#bookFloat:focus-visible { outline: 2px solid var(--ds-ink); outline-offset: 3px; }

/* ============ r36-apps: apps carousel ============ */
.ds-apps-carousel { margin-top: 2.5rem; }
.ds-ac-viewport { overflow: hidden; border-radius: 22px; border: 1px solid var(--ds-line); background: #fff; box-shadow: 0 30px 70px -38px rgba(11, 11, 12, .35); touch-action: pan-y; }
.ds-ac-track { display: flex; transition: transform .55s cubic-bezier(.22, .9, .28, 1); }
.ds-ac-track.no-anim { transition: none; }
.ds-ac-slide { flex: 0 0 100%; display: grid; grid-template-columns: 1.15fr 1fr; min-width: 0; }
.ds-ac-media { position: relative; min-height: 300px; background: var(--ds-ink); overflow: hidden; }
.ds-ac-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ds-ac-copy { padding: clamp(1.6rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: center; position: relative; }
.ds-ac-copy .eyebrow { margin-bottom: .4rem; }
.ds-ac-copy h3 { font-family: var(--ds-serif); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; margin: 0 0 .8rem; color: var(--ds-ink); }
.ds-ac-desc { color: var(--ds-ink-soft); font-size: 1rem; line-height: 1.65; margin: 0 0 1.4rem; max-width: 42ch; }
.ds-ac-ctas { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.ds-ac-note { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ds-ink-soft); }
.ds-ac-count { position: absolute; top: 1.25rem; right: 1.5rem; font-family: var(--ds-mono); font-size: .72rem; letter-spacing: .2em; color: var(--ds-ink-faint, rgba(11,11,12,.38)); }
.ds-ac-bar { display: flex; align-items: center; justify-content: center; gap: 1.1rem; margin-top: 1.25rem; }
.ds-ac-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ds-line); background: #fff; color: var(--ds-ink); display: grid; place-items: center; cursor: pointer; transition: border-color var(--duration-fast) var(--ds-ease), transform var(--duration-fast) var(--ds-ease), background var(--duration-fast) var(--ds-ease); }
.ds-ac-btn:hover { border-color: var(--ds-ink); transform: translateY(-1px); }
.ds-ac-btn:active { transform: scale(.96); }
.ds-ac-btn .ic { width: 1.1rem; height: 1.1rem; }
.ds-ac-btn[data-ac-prev] .ic { transform: rotate(180deg); }
.ds-ac-dots { display: flex; gap: .55rem; }
.ds-ac-dot { width: 26px; height: 4px; border-radius: 999px; border: 0; background: var(--ds-bone-3); cursor: pointer; padding: 0; transition: background var(--duration-fast) var(--ds-ease), width var(--duration-fast) var(--ds-ease); }
.ds-ac-dot.is-active { background: var(--ds-ink); width: 40px; }
.ds-ac-dot:focus-visible { outline: 2px solid var(--ds-ink); outline-offset: 2px; }
.ds-apps-more { margin-top: 1.6rem; text-align: center; }
.ds-link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--ds-ink); text-decoration: none; border-bottom: 1px solid var(--ds-gold); padding-bottom: .15rem; transition: color var(--duration-fast) var(--ds-ease), gap var(--duration-fast) var(--ds-ease); }
.ds-link-arrow:hover { color: var(--ds-ox); gap: .75rem; }
.ds-link-arrow .ic { width: 1rem; height: 1rem; }

/* ============ r36-apps: formatting rhythm ============ */
.ds-h { margin: 0 0 1rem; }
.eyebrow { margin-bottom: .9rem; }
.ds-prose p + p { margin-top: 1rem; }
.ds-prose { max-width: 62ch; }

@media (max-width: 900px) {
  .ds-ac-slide { grid-template-columns: 1fr; }
  .ds-ac-media { min-height: 220px; aspect-ratio: 16 / 10; }
  .ds-ac-media img { position: static; height: 100%; }
  .ds-ac-copy { padding: 1.5rem 1.35rem 1.75rem; }
  .ds-ac-count { top: 1rem; right: 1.25rem; }
  #bookFloat { right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); padding: .65rem 1rem; font-size: .82rem; }
  .ds-section { padding-top: calc(var(--ds-section-y) * .72); padding-bottom: calc(var(--ds-section-y) * .72); }
}
@media (prefers-reduced-motion: reduce) {
  .ds-ac-track { transition: none; }
  #bookFloat { transition: none; }
  .bf-dot { animation: none; }
}

/* ============ r40 PERSONAL REDESIGN (2026-10-06) ============
   Ben's orders: logo = just "BS" (no circle/seal, no gold); NO gold/yellow
   buttons or chrome; densify; ambient animated backgrounds; scroll reveals.
   Reduced-motion safe throughout. */

/* ---- 1. BS monogram mark ---- */
.bs-mark { display: block; transition: transform .3s ease; }
.ds-hero-mark .bs-mark { filter: drop-shadow(0 18px 30px rgba(11,11,12,.28)); }
.ld-seal .bs-mark { margin: 0 auto; filter: drop-shadow(0 22px 34px rgba(11,11,12,.28)); }
.liquid-mark:hover .bs-mark, .liquid-mark:focus-visible .bs-mark { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .bs-mark { transition: none; } }

/* ---- 2. (r44) ink-CTA override retired: the .ds-btn-gold base now renders ink
   directly (see the legacy-name note at its definition). ---- */

/* ---- 3. De-gold chrome: every gold accent -> ink/bone ---- */
#scrollProg { background: linear-gradient(90deg, var(--ds-ox), var(--ds-ink)); }
.nlink.is-active::after { background: var(--ds-ink); }
.bf-dot { background: var(--ds-ink); }
.ds-chip.gold { border-color: rgba(11,11,12,.28); color: var(--ds-ink); }
.ds-chip.gold .ds-dot { background: var(--ds-ink); }
.cp-dot { background: var(--ds-ink); }
.ds-loader-bar i { background: var(--ds-ink); }
.ds-web-domain { color: var(--ds-ink-soft); }
.ds-about-photo { border-color: rgba(11,11,12,.14); }
.ds-work-num { color: var(--ds-ink-soft); }
.ds-appbadge:hover { border-color: var(--ds-ink); box-shadow: 0 12px 28px -10px rgba(11,11,12,.35); }
.cert-chip:hover .dot { background: var(--ds-ink); }
.ds-show-pill.beta { border-color: rgba(11,11,12,.2); color: var(--ds-bone); }
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline-color: var(--ds-ink); }
.on-dark a:focus-visible, .on-dark button:focus-visible { outline-color: var(--ds-bone); }
#hb:focus-visible, .nlink:focus-visible { outline-color: var(--ds-ink); }
.on-dark .ds-hero-title em { color: var(--ds-bone); }
.on-dark .ds-section-head .ds-eyebrow, .ds-section-head.on-dark .ds-eyebrow { color: var(--ds-bone); }
#mmenu .mlink:hover { color: var(--ds-bone); }

/* ---- 4. About flip-card fix (r39 verification defect): higher-specificity
   override so flip images fill the 4/5 frame ---- */
.ds-about-photo .ds-flip-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---- 5. Ambient animated background (self-running, subtle) ---- */
.ds-ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ds-ambient i { position: absolute; display: block; border-radius: 50%; filter: blur(90px); animation: ds-amb-drift 30s ease-in-out infinite alternate; will-change: transform; }
.ds-ambient i:nth-child(1) { width: 46vmax; height: 46vmax; left: -14vmax; top: -12vmax; background: radial-gradient(circle, rgba(11,11,12,.055), transparent 70%); }
.ds-ambient i:nth-child(2) { width: 38vmax; height: 38vmax; right: -12vmax; top: 32vh; background: radial-gradient(circle, rgba(11,11,12,.045), transparent 70%); animation-duration: 38s; animation-delay: -9s; }
.ds-ambient i:nth-child(3) { width: 32vmax; height: 32vmax; left: 22vw; bottom: -14vmax; background: radial-gradient(circle, rgba(140,29,24,.04), transparent 70%); animation-duration: 26s; animation-delay: -15s; }
@keyframes ds-amb-drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(4vmax,3vmax,0) scale(1.12); } }
/* hero symbols drift (uses independent `translate` so rotate transforms survive) */
.ds-sym { animation: ds-sym-drift 24s ease-in-out infinite alternate; }
.ds-sym-2 { animation-duration: 30s; animation-delay: -7s; }
.ds-sym-3 { animation-duration: 20s; animation-delay: -4s; }
.ds-sym-4 { animation-duration: 27s; animation-delay: -11s; }
.ds-sym-5 { animation-duration: 33s; animation-delay: -2s; }
@keyframes ds-sym-drift { from { translate: 0 0; } to { translate: 26px -20px; } }
@media (prefers-reduced-motion: reduce) {
  .ds-ambient, .ds-ambient i, .ds-sym { animation: none !important; }
}

/* ---- 6. Densify: tighter rhythm, richer stats band ---- */
:root { --ds-section-y: clamp(3.25rem, 6vw, 5.5rem); }
.ds-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ds-line); border: 1px solid var(--ds-line); border-radius: var(--ds-r-md); overflow: hidden; margin-top: 2rem; }
.ds-stats > div { background: var(--ds-bone); padding: 1.25rem 1rem; text-align: center; }
.ds-stats dt { font-family: var(--ds-serif); font-size: 2rem; font-weight: 600; color: var(--ds-ink); line-height: 1; }
.ds-stats dd { margin: .5rem 0 0; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ds-ink-soft); }
@media (max-width: 640px) { .ds-stats { grid-template-columns: 1fr 1fr 1fr; } .ds-stats dt { font-size: 1.5rem; } }
