/* ==========================================================================
   Brief Enterprises — main.css
   Shared foundation for every page + the homepage sections.
   Depends on css/tokens.css (all colors, type, motion live there).
   Mobile-first. Breakpoints: 480 · 768 · 900 (nav) · 1024 · 1280.

   Contents
   01  Lenis
   02  Reset & base
   03  Accessibility helpers
   04  Layout primitives
   05  Type helpers
   06  Eyebrow
   07  Buttons
   08  Serif accent
   09  Reveal
   10  Light section modifier
   11  Grain texture utility
   12  Header & navigation
   13  Mobile menu
   14  Footer
   15  Home — hero
   16  Home — marquee
   17  Home — about
   18  Home — ventures
   19  Home — approach
   20  Home — contact
   21  Reduced motion
   ========================================================================== */

:root {
  /* Fixed header height including the notch inset on phones. */
  --header-offset: calc(var(--header-h) + env(safe-area-inset-top, 0px));

  /* Fine film grain — inline SVG feTurbulence, tiled. */
  --grain-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  /* Four-point sparkle used as a separator glyph (CSS mask). */
  --sparkle-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0c.5 4.4 3.1 7 8 8-4.9 1-7.5 3.6-8 8-.5-4.4-3.1-7-8-8 4.9-1 7.5-3.6 8-8Z'/%3E%3C/svg%3E");
}


/* --------------------------------------------------------------------------
   01  Lenis (recommended CSS)
   -------------------------------------------------------------------------- */
html.lenis,
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }


/* --------------------------------------------------------------------------
   02  Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background-color: var(--ink-950);
}

/* Native smooth scrolling only when Lenis isn't driving the page. */
@media (prefers-reduced-motion: no-preference) {
  html:not(.lenis) { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background-color: var(--ink-950);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: var(--lh-body);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* safety net only — real overflow causes are fixed at source */
}

img,
svg,
video { display: block; max-width: 100%; }

/* Margins are reset only on classed elements so prose (e.g. legal pages) keeps rhythm. */
:where(h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd)[class] { margin: 0; }

:where(h1, h2, h3, h4, h5, h6) {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-heading);
  text-wrap: balance;
}

p { text-wrap: pretty; }

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

:where(ul, ol)[class] { list-style: none; margin: 0; padding: 0; }

::selection { background-color: var(--gold); color: var(--ink-950); }

/* Anchored targets clear the fixed header (native / no-JS fallback). */
[id] { scroll-margin-top: calc(var(--header-offset) + 1rem); }

/* Thin, quiet scrollbar on desktop pointers. */
@media (hover: hover) and (pointer: fine) {
  html {
    scrollbar-width: thin;
    scrollbar-color: var(--ink-600) var(--ink-950);
  }
}


/* --------------------------------------------------------------------------
   03  Accessibility helpers
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
/* Programmatic focus targets (sections after anchor jumps) don't need a ring. */
[tabindex="-1"]:focus { outline: none; }

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

.skip-link {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 0.75rem);
  left: max(0.75rem, env(safe-area-inset-left, 0px));
  z-index: var(--z-skip);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.1rem;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: var(--ink-950);
  font-size: var(--fs-sm);
  font-weight: 600;
  transform: translateY(calc(-100% - 1.5rem));
  transition: transform var(--dur-2) var(--ease-out);
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: none;
  outline: 2px solid var(--ivory-50);
  outline-offset: 2px;
}


/* --------------------------------------------------------------------------
   04  Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.container--narrow { max-width: var(--container-narrow); }

.section {
  position: relative;
  padding-block: var(--section-y);
}


/* --------------------------------------------------------------------------
   05  Type helpers
   -------------------------------------------------------------------------- */
.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.042em;
  text-wrap: balance;
}

.eyebrow + .section-title { margin-top: clamp(1.25rem, 2vw, 1.75rem); }

.lead {
  max-width: 34rem;
  color: var(--text-muted);
  font-size: var(--fs-lg);
  line-height: 1.55;
}


/* --------------------------------------------------------------------------
   06  Eyebrow — small tracked label with a glowing gold dot
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85em;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--gold) 14%, transparent),
    0 0 14px color-mix(in srgb, var(--gold) 70%, transparent);
}


/* --------------------------------------------------------------------------
   07  Buttons
   .btn--primary (filled ivory → gold), .btn--ghost (hairline), .btn--sm, .btn--xl
   --mag-x / --mag-y are written by the magnetic-hover script (desktop only).
   -------------------------------------------------------------------------- */
.btn {
  --btn-h: 3.25rem;
  --btn-px: 1.5rem;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  min-height: var(--btn-h);
  padding: 0 var(--btn-px);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transform: translate3d(var(--mag-x, 0px), var(--mag-y, 0px), 0);
  transition:
    transform var(--dur-3) var(--ease-out),
    background-color var(--dur-2) var(--ease-out),
    border-color var(--dur-2) var(--ease-out),
    color var(--dur-2) var(--ease-out),
    box-shadow var(--dur-2) var(--ease-out);
}

.btn__label {
  position: relative;
  display: inline-block;
  transform: translate3d(calc(var(--mag-x, 0px) * 0.3), calc(var(--mag-y, 0px) * 0.3), 0);
  transition: transform var(--dur-3) var(--ease-out);
}

.btn__arrow {
  flex: none;
  width: 1em;
  height: 1em;
  transition: transform var(--dur-2) var(--ease-out);
}
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn:hover .btn__arrow--diag { transform: translate(2px, -2px); }

/* Primary — ivory pill that warms to champagne */
.btn--primary {
  background-color: var(--text);
  color: var(--ink-950);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--ivory-50) 30%, transparent) inset,
    0 14px 34px -14px color-mix(in srgb, var(--gold) 55%, transparent);
}
.btn--primary::before {
  /* soft sheen that sweeps across on hover */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 30%, color-mix(in srgb, var(--ivory-50) 80%, transparent) 50%, transparent 70%) no-repeat;
  background-size: 250% 100%;
  background-position: 120% 0;
  opacity: 0;
  transition: background-position var(--dur-4) var(--ease-out), opacity var(--dur-2) var(--ease-out);
}
.btn--primary:hover {
  background-color: var(--gold-light);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--ivory-50) 40%, transparent) inset,
    0 18px 44px -14px color-mix(in srgb, var(--gold) 75%, transparent);
}
.btn--primary:hover::before { opacity: 1; background-position: -20% 0; }

/* Ghost — hairline outline */
.btn--ghost {
  background-color: color-mix(in srgb, var(--text) 3%, transparent);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover {
  background-color: color-mix(in srgb, var(--text) 7%, transparent);
  border-color: color-mix(in srgb, var(--gold) 55%, transparent);
}

.btn--sm {
  --btn-h: 2.75rem;
  --btn-px: 1.1rem;
  font-size: var(--fs-sm);
}

.btn--xl {
  --btn-h: 4.25rem;
  --btn-px: 1.75rem;
  gap: 1rem;
  font-size: var(--fs-lg);
  letter-spacing: -0.01em;
}

/* Round icon bubble used inside the XL email button */
.btn__bubble {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--ink-950);
  color: var(--gold-light);
  transition: transform var(--dur-3) var(--ease-out), background-color var(--dur-2) var(--ease-out);
}
.btn__bubble .btn__arrow { width: 1rem; height: 1rem; }
.btn:hover .btn__bubble { transform: rotate(-8deg) scale(1.04); }
.btn--xl:has(.btn__bubble) { padding-right: 0.6rem; }


/* --------------------------------------------------------------------------
   08  Serif accent — Instrument Serif italic with the brand gradient
   -------------------------------------------------------------------------- */
.serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  background-image: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  /* breathing room so the italic overhang isn't clipped by background-clip */
  padding-inline: 0.04em 0.1em;
  margin-inline: -0.04em -0.1em;
}


/* --------------------------------------------------------------------------
   09  Reveal — hidden only when JS is present; JS adds .is-visible once
   -------------------------------------------------------------------------- */
html.js .reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 1s var(--ease-out) var(--delay, 0ms),
    transform 1.2s var(--ease-out) var(--delay, 0ms);
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}


/* --------------------------------------------------------------------------
   10  Light section modifier (ivory surface, ink text)
   -------------------------------------------------------------------------- */
.section--light {
  background-color: var(--ivory-50);
  color: var(--text-ink);
  color-scheme: light;
}
.section--light ::selection { background-color: var(--ink-950); color: var(--ivory-50); }
.section--light :focus-visible { outline-color: var(--ink-950); }
.section--light .eyebrow { color: var(--text-ink-muted); }
.section--light .eyebrow::before {
  background: var(--gold-deep);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-deep) 16%, transparent);
}
.section--light .lead { color: var(--text-ink-muted); }
.section--light .serif-accent {
  background-image: linear-gradient(110deg, var(--gold-deep) 0%, color-mix(in oklab, var(--gold-deep) 55%, var(--ember)) 100%);
}
.section--light .btn--primary { background-color: var(--ink-950); color: var(--ivory-50); box-shadow: none; }
.section--light .btn--primary:hover { background-color: var(--ink-800); }
.section--light .btn--ghost { background-color: transparent; border-color: var(--line-ink-strong); color: var(--text-ink); }
.section--light .btn--ghost:hover { border-color: var(--gold-deep); }


/* --------------------------------------------------------------------------
   11  Grain texture utility
   -------------------------------------------------------------------------- */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: var(--grain-url);
  background-size: 200px 200px;
  opacity: 0.05;
}


/* --------------------------------------------------------------------------
   12  Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-header);
  padding-top: env(safe-area-inset-top, 0px);
  transition: transform var(--dur-3) var(--ease-out);
}

/* Frosted glass layer — fades in once the page scrolls. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Dense enough that the ivory Ventures slab reads as a soft glow, not a grey band. */
  background: color-mix(in srgb, var(--ink-950) 82%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity var(--dur-3) var(--ease-out);
}
.site-header.is-scrolled::before,
html:not(.js) .site-header::before { opacity: 1; }
.site-header.is-hidden { transform: translate3d(0, -100%, 0); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--header-h);
}

/* Brand lockup (also used in the footer) */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  margin-right: auto;
  color: var(--text);
  border-radius: var(--radius-xs);
}
.brand__mark {
  display: inline-flex;
  flex: none;
  width: 28px;
  height: 28px;
  color: var(--gold);
  transition: transform var(--dur-3) var(--ease-out);
}
.brand__mark svg { display: block; width: 100%; height: 100%; }
.brand:hover .brand__mark { transform: rotate(-6deg); }
.brand__word {
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: var(--tracking-wordmark);
  text-transform: uppercase;
  white-space: nowrap;
}
.brand__word-strong { color: var(--text); font-weight: 600; }

/* Desktop nav */
.site-nav { display: none; }
.site-nav__list { display: flex; align-items: center; gap: 0.25rem; }
.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.95rem;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: 450;
  transition: color var(--dur-2) var(--ease-out);
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0.95rem;
  right: 0.95rem;
  bottom: 0.7rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--dur-3) var(--ease-out);
}
.site-nav__link:hover,
.site-nav__link.is-active { color: var(--text); }
.site-nav__link:hover::after,
.site-nav__link.is-active::after { transform: scaleX(1); transform-origin: left center; }

.site-header__cta { display: none; }

/* Menu toggle — two bars that morph into an X */
.menu-toggle {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  margin-right: -0.5rem;
  border-radius: 50%;
  color: var(--text);
}
.menu-toggle__bar {
  position: absolute;
  top: 50%;
  left: 11px;
  right: 11px;
  height: 1.5px;
  margin-top: -0.75px;
  border-radius: 2px;
  background: currentColor;
  transform: translateY(-4px);
  transition: transform var(--dur-3) var(--ease-out);
}
.menu-toggle__bar ~ .menu-toggle__bar { transform: translateY(4px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar ~ .menu-toggle__bar { transform: rotate(-45deg); }

/* Without JS the toggle can't work — show the CTA instead. */
html:not(.js) .menu-toggle { display: none; }
html:not(.js) .site-header__cta { display: inline-flex; }

/* While the menu is open the header floats above it, glass removed. */
html.menu-open .site-header { z-index: calc(var(--z-menu) + 1); transform: none; }
html.menu-open .site-header::before { opacity: 0; }

@media (min-width: 900px) {
  .site-header__inner { gap: 1.5rem; }
  .site-nav { display: block; }
  .site-header__cta { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* Homepage: header settles in with the hero */
html.js .page-home .site-header__inner { opacity: 0; transform: translate3d(0, -8px, 0); }
html.js.is-loaded .page-home .site-header__inner {
  opacity: 1;
  transform: none;
  transition: opacity var(--dur-4) var(--ease-out) 700ms, transform var(--dur-4) var(--ease-out) 700ms;
}


/* --------------------------------------------------------------------------
   13  Mobile menu (full-screen overlay, < 900px)
   -------------------------------------------------------------------------- */
html.menu-open,
html.menu-open body { overflow: hidden; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  padding:
    calc(var(--header-offset) + clamp(1.5rem, 6vh, 3rem))
    max(var(--gutter), env(safe-area-inset-right, 0px))
    calc(1.75rem + env(safe-area-inset-bottom, 0px))
    max(var(--gutter), env(safe-area-inset-left, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(90% 55% at 100% 0%, color-mix(in srgb, var(--teal-deep) 70%, transparent), transparent 70%),
    radial-gradient(70% 45% at 0% 100%, color-mix(in srgb, var(--gold) 12%, transparent), transparent 70%),
    var(--ink-950);
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--dur-3) var(--ease-out), visibility 0s linear var(--dur-3);
}
html.menu-open .mobile-menu {
  visibility: visible;
  opacity: 1;
  transition: opacity var(--dur-3) var(--ease-out), visibility 0s;
}

.mobile-menu__list {
  counter-reset: menu;
  border-top: 1px solid var(--line);
}
.mobile-menu__list > li {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  padding: 0.55em 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: var(--tracking-heading);
  transform: translate3d(0, 105%, 0);
  transition: transform var(--dur-4) var(--ease-out), color var(--dur-2) var(--ease-out);
}
.mobile-menu__link::after {
  counter-increment: menu;
  content: "0" counter(menu);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}
.mobile-menu__link:hover,
.mobile-menu__link:focus-visible { color: var(--gold-light); }
/* the li masks overflow for the slide-in, so draw the focus ring inside */
.mobile-menu__link:focus-visible { outline-offset: -2px; border-radius: var(--radius-xs); }
html.menu-open .mobile-menu__link { transform: none; }
html.menu-open .mobile-menu__list > li:nth-child(1) .mobile-menu__link { transition-delay: 80ms, 0ms; }
html.menu-open .mobile-menu__list > li:nth-child(2) .mobile-menu__link { transition-delay: 140ms, 0ms; }
html.menu-open .mobile-menu__list > li:nth-child(3) .mobile-menu__link { transition-delay: 200ms, 0ms; }
html.menu-open .mobile-menu__list > li:nth-child(4) .mobile-menu__link { transition-delay: 260ms, 0ms; }
html.menu-open .mobile-menu__list > li:nth-child(5) .mobile-menu__link { transition-delay: 320ms, 0ms; }

.mobile-menu__foot {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
}
html.menu-open .mobile-menu__foot {
  opacity: 1;
  transform: none;
  transition-delay: 360ms;
}
.mobile-menu__email {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 44px;
  color: var(--text);
  font-size: var(--fs-lg);
  font-weight: 500;
  overflow-wrap: anywhere;
}
.mobile-menu__meta {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

@media (min-width: 900px) {
  .mobile-menu { display: none; }
}


/* --------------------------------------------------------------------------
   14  Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(4rem, 9vw, 7.5rem);
  padding-bottom: calc(1.75rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background:
    radial-gradient(60% 50% at 50% 100%, color-mix(in srgb, var(--gold) 7%, transparent), transparent 70%),
    var(--ink-950);
}
.site-footer > .container { container-type: inline-size; }

.site-footer__top {
  display: grid;
  gap: 3rem;
}
.site-footer__tag {
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.65;
}

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem 1.5rem;
}
.site-footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: var(--fs-sm);
}
/* Contact column (long email) spans the full row on small screens. */
.site-footer__col:nth-child(2) { grid-column: 1 / -1; order: 1; }

.site-footer__heading {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}
.site-footer__col a,
.site-footer__col span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  overflow-wrap: anywhere;
}
.site-footer__col span { color: var(--text-muted); }
.site-footer__col a {
  background: linear-gradient(var(--gold), var(--gold)) no-repeat 0 calc(50% + 0.8em) / 0 1px;
  transition: color var(--dur-2) var(--ease-out), background-size var(--dur-3) var(--ease-out);
}
.site-footer__col a:hover { color: var(--gold-light); background-size: 100% 1px; }

/* Giant wordmark — ink spans the container edge to edge (measured: "Brief" in
   Inter Tight 600 @ -0.03em = 1.934em of ink, 0.053em left side-bearing),
   sized in container units and cropped just above the baseline. */
.site-footer__giant {
  height: 0.8em;
  margin-top: clamp(2rem, 5vw, 4rem);
  margin-left: -0.053em;      /* optical: pull the B's stem onto the grid line */
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 40vw;            /* fallback */
  font-size: 51.5cqi;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  text-align: left;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  background-image: linear-gradient(180deg,
    color-mix(in srgb, var(--gold-light) 34%, transparent) 0%,
    color-mix(in srgb, var(--gold) 16%, transparent) 45%,
    transparent 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.site-footer__base p { margin: 0; }
.site-footer__base {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: var(--fs-xs);
}

@media (min-width: 640px) {
  .site-footer__nav {
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    column-gap: clamp(2.5rem, 6vw, 5rem);
  }
  .site-footer__col:nth-child(2) { grid-column: auto; order: 0; }
}

@media (min-width: 900px) {
  .site-footer__top {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
  .site-footer__col a,
  .site-footer__col span { min-height: 2.25rem; }
}

@media (min-width: 768px) {
  .site-footer__base {
    flex-direction: row;
    justify-content: space-between;
  }
}


/* ==========================================================================
   HOMEPAGE
   ========================================================================== */

/* --------------------------------------------------------------------------
   15  Home — hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: var(--header-offset);
  overflow: hidden;
}

/* --- Atmosphere ---------------------------------------------------------- */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
/* Fade the atmosphere into the page at the bottom edge. */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  background: linear-gradient(to bottom, transparent, var(--ink-950));
}

.hero__aurora { position: absolute; inset: 0; }

.hero__blob {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  animation: hero-drift-a 26s var(--ease-in-out) infinite alternate;
}
.hero__blob--teal {
  top: -42%;
  left: -24%;
  width: min(82vmax, 1500px);
  background: radial-gradient(closest-side,
    color-mix(in srgb, var(--teal) 30%, transparent),
    color-mix(in srgb, var(--teal-deep) 30%, transparent) 55%,
    transparent);
}
.hero__blob--gold {
  top: -36%;
  right: -22%;
  width: min(66vmax, 1150px);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) 20%, transparent), transparent);
  animation-name: hero-drift-b;
  animation-duration: 32s;
}
.hero__blob--ember {
  bottom: -30%;
  right: 4%;
  width: min(48vmax, 860px);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--ember) 13%, transparent), transparent);
  animation-name: hero-drift-c;
  animation-duration: 38s;
}
.hero__blob--deep {
  bottom: -55%;
  left: 6%;
  width: min(74vmax, 1300px);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--teal-deep) 75%, transparent), transparent);
  animation-name: hero-drift-b;
  animation-duration: 44s;
  animation-direction: alternate-reverse;
}

@keyframes hero-drift-a {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(7vw, 5vh, 0) scale(1.08); }
  100% { transform: translate3d(-3vw, 9vh, 0) scale(0.95); }
}
@keyframes hero-drift-b {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-8vw, 7vh, 0) scale(0.94); }
  100% { transform: translate3d(-2vw, -4vh, 0) scale(1.06); }
}
@keyframes hero-drift-c {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-10vw, -8vh, 0) scale(1.12); }
}

/* Architectural grid that dissolves toward the edges */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 96px 96px;
  background-position: calc(50% + 48px) 0;
  -webkit-mask-image: radial-gradient(ellipse 72% 62% at 50% 38%, #000 10%, transparent 78%);
  mask-image: radial-gradient(ellipse 72% 62% at 50% 38%, #000 10%, transparent 78%);
}

/* Pointer-follow glow (desktop) — positioned by JS via transform */
.hero__glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 720px;
  height: 720px;
  margin: -360px 0 0 -360px;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) 11%, transparent), transparent);
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
}
.hero.is-pointer .hero__glow { opacity: 1; }

.hero__grain { opacity: 0.055; }

/* Pause the drift when the hero is off screen (class set by JS). */
.hero.is-offscreen .hero__blob { animation-play-state: paused; }

/* --- Content ------------------------------------------------------------- */
.hero__inner {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: clamp(2.5rem, 8vh, 6rem);
  padding-bottom: clamp(1rem, 2.5vh, 1.75rem);
}
.hero__content {
  padding-bottom: clamp(2.75rem, 9vh, 6.5rem);
  will-change: auto;
}

.hero__title {
  margin-top: clamp(1.25rem, 2.6vh, 2rem);
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 1.84rem + 7.33vw, 9rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.048em;
  text-wrap: balance;
}
.hero__line {
  display: block;
  overflow: hidden;
  /* room for descenders inside the mask, compensated so rhythm is unchanged */
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.hero__line-inner { display: block; }
.hero__title .serif-accent {
  font-size: 1.06em;
  letter-spacing: -0.02em;
}

.hero__meta {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: clamp(1.75rem, 4vh, 3rem);
}
.hero__sub {
  max-width: 33rem;
  color: var(--text-muted);
  font-size: var(--fs-lg);
  line-height: 1.55;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* --- Foot: sectors + scroll cue ------------------------------------------ */
.hero__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.hero__sectors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.9rem;
  color: var(--text-muted);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero__sectors li {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}
.hero__sectors li + li::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--gold);
  -webkit-mask: var(--sparkle-url) center / contain no-repeat;
  mask: var(--sparkle-url) center / contain no-repeat;
}

.hero__scroll {
  display: none;
  align-items: center;
  gap: 0.85rem;
  min-height: 44px;
  color: var(--text-muted);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color var(--dur-2) var(--ease-out);
}
.hero__scroll:hover { color: var(--text); }
.hero__scroll-line {
  position: relative;
  width: 1px;
  height: 2.25rem;
  overflow: hidden;
  background: var(--line-strong);
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, var(--gold));
  transform: translate3d(0, -100%, 0);
  animation: hero-scroll-cue 2.6s var(--ease-in-out) infinite;
}
@keyframes hero-scroll-cue {
  0%   { transform: translate3d(0, -100%, 0); }
  65%  { transform: translate3d(0, 100%, 0); }
  100% { transform: translate3d(0, 100%, 0); }
}

/* --- Load choreography (JS adds html.is-loaded once fonts are ready) ----- */
html.js .hero__line-inner { transform: translate3d(0, 108%, 0); }
html.js .hero__eyebrow,
html.js .hero__meta,
html.js .hero__foot { opacity: 0; transform: translate3d(0, 18px, 0); }
html.js .hero__bg { opacity: 0; }

html.js.is-loaded .hero__line-inner {
  transform: none;
  transition: transform 1.5s var(--ease-out) 150ms;
}
html.js.is-loaded .hero__line:nth-child(2) .hero__line-inner { transition-delay: 270ms; }
html.js.is-loaded .hero__eyebrow,
html.js.is-loaded .hero__meta,
html.js.is-loaded .hero__foot {
  opacity: 1;
  transform: none;
  transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
}
html.js.is-loaded .hero__eyebrow { transition-delay: 60ms; }
html.js.is-loaded .hero__meta { transition-delay: 620ms; }
html.js.is-loaded .hero__foot { transition-delay: 860ms; }
html.js.is-loaded .hero__bg { opacity: 1; transition: opacity 2.4s var(--ease-out); }

@media (min-width: 480px) {
  .hero__sectors { font-size: var(--fs-xs); letter-spacing: var(--tracking-eyebrow); gap: 0.4rem 1.1rem; }
  .hero__sectors li { gap: 1.1rem; }
}

@media (min-width: 640px) {
  .hero__scroll { display: inline-flex; }
}

@media (min-width: 1024px) {
  .hero__meta {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3rem;
  }
  .hero__actions { flex-wrap: nowrap; flex: none; }
}

/* Small phones: stack CTAs full width; sector labels become an even 3-up row. */
@media (max-width: 479.98px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: space-between; }
  .hero__foot { display: block; }
  .hero__sectors {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: space-between;
    letter-spacing: 0.1em;
  }
  .hero__sectors li + li::before { display: none; }
}


/* --------------------------------------------------------------------------
   16  Home — marquee
   -------------------------------------------------------------------------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: clamp(1.4rem, 3vw, 2.4rem);
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 70s linear infinite;
}
.marquee:hover .marquee__track,
.marquee.is-paused .marquee__track { animation-play-state: paused; }

.marquee__group {
  --marquee-gap: clamp(1.5rem, 3.2vw, 3.25rem);
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--marquee-gap);
  padding-right: var(--marquee-gap);
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: var(--marquee-gap);
  color: var(--text);
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.035em;
  white-space: nowrap;
}
.marquee__item:nth-child(even) {
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: calc(var(--fs-3xl) * 1.06);
  letter-spacing: -0.01em;
}
.marquee__item::after {
  content: "";
  flex: none;
  width: 0.36em;
  height: 0.36em;
  background: var(--gold);
  -webkit-mask: var(--sparkle-url) center / contain no-repeat;
  mask: var(--sparkle-url) center / contain no-repeat;
}

@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}


/* --------------------------------------------------------------------------
   17  Home — about
   -------------------------------------------------------------------------- */
.about__grid {
  display: grid;
  gap: 2rem;
}
.about__label { padding-top: 0.6rem; }

.about__statement {
  max-width: 24em;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.05rem + 2.6vw, 3.4rem);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.032em;
}
.about__statement .serif-accent { font-size: 1.05em; }

/* Scroll-driven word reveal (JS splits words and drives opacity). */
.about__statement.is-split .word {
  opacity: 0.16;
  transition: opacity 0.35s linear;
}
/* Gradient text must live on each word once the phrase is split. */
.about__statement.is-split .serif-accent {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: inherit;
}
.about__statement.is-split .serif-accent .word {
  background-image: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 0.08em;
  margin-right: -0.08em;
}

.about__pillars {
  display: grid;
  gap: 2.75rem;
  margin-top: clamp(3.5rem, 8vw, 6.5rem);
}
.pillar {
  position: relative;
  display: grid;
  gap: 0.85rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-strong);
}
.pillar::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 3.5rem;
  height: 1px;
  background: var(--gold);
}
.pillar__index {
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  font-style: italic;
  line-height: 1;
}
.pillar__title {
  font-size: var(--fs-xl);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.pillar__text {
  max-width: 30rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .about__pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; }
}

@media (min-width: 1024px) {
  .about__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 2rem;
  }
  .about__label { grid-column: 1 / span 3; }
  .about__body { grid-column: 4 / -1; }
}


/* --------------------------------------------------------------------------
   18  Home — ventures (ivory slab)
   -------------------------------------------------------------------------- */
.ventures {
  margin-inline: clamp(0.5rem, 1.25vw, 1.25rem);
  border-radius: var(--radius-xl);
  isolation: isolate;
  overflow: hidden;
}
/* faint warm wash in the top corner so the ivory feels lit, not flat */
.ventures::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 45% at 100% 0%, color-mix(in srgb, var(--gold-light) 34%, transparent), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, color-mix(in srgb, var(--ivory-200) 60%, transparent), transparent 70%);
  pointer-events: none;
}

.ventures__head {
  display: grid;
  gap: 1.75rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.ventures .section-title { max-width: 12em; }
.ventures__lead { max-width: 27rem; }

.ventures__grid {
  display: grid;
  gap: 1rem;
}
.ventures__item { display: grid; }

.venture-card {
  --mx: 50%;
  --my: 0%;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  border: 1px solid var(--line-ink);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--ivory-50) 40%, white),
    color-mix(in srgb, var(--ivory-50) 75%, white));
  box-shadow:
    0 1px 0 color-mix(in srgb, white 80%, transparent) inset,
    0 1px 2px color-mix(in srgb, var(--ink-950) 4%, transparent),
    0 24px 48px -32px color-mix(in srgb, var(--ink-950) 22%, transparent);
  transition:
    translate var(--dur-3) var(--ease-out),
    box-shadow var(--dur-3) var(--ease-out),
    border-color var(--dur-3) var(--ease-out);
}
/* Spotlight fill */
.venture-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(520px circle at var(--mx) var(--my),
    color-mix(in srgb, var(--gold) 16%, transparent), transparent 45%);
  opacity: 0;
  transition: opacity var(--dur-3) var(--ease-out);
}
/* Gradient hairline border that follows the pointer */
.venture-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(340px circle at var(--mx) var(--my),
    var(--gold-deep), color-mix(in srgb, var(--gold) 40%, transparent) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-3) var(--ease-out);
}

.venture-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: clamp(2.5rem, 7vw, 5rem);
}
.venture-card__icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid var(--line-ink);
  border-radius: 14px;
  background: var(--ivory-50);
  color: var(--gold-deep);
  transition: border-color var(--dur-3) var(--ease-out), background-color var(--dur-3) var(--ease-out);
}
.venture-card__icon svg { width: 1.75rem; height: 1.75rem; }
.venture-card__index {
  color: var(--text-ink-muted);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
.venture-card__title {
  font-size: var(--fs-2xl);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.032em;
}
.venture-card__text {
  max-width: 30rem;
  margin-top: 0.9rem;
  color: var(--text-ink-muted);
}
.venture-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 2rem;
}
.venture-card__tags li {
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line-ink-strong);
  border-radius: var(--radius-pill);
  color: var(--text-ink-muted);
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
/* the text block needs space before tags pinned to the bottom */
.venture-card__text { margin-bottom: 0.25rem; }

@media (hover: hover) and (pointer: fine) {
  .venture-card:hover {
    translate: 0 -4px;
    border-color: var(--line-ink-strong);
    box-shadow:
      0 1px 0 color-mix(in srgb, white 80%, transparent) inset,
      0 2px 4px color-mix(in srgb, var(--ink-950) 4%, transparent),
      0 40px 70px -36px color-mix(in srgb, var(--ink-950) 32%, transparent);
  }
  .venture-card:hover::before { opacity: 1; }
  .ventures__grid:hover .venture-card::after { opacity: 1; }
  .venture-card:hover .venture-card__icon {
    border-color: color-mix(in srgb, var(--gold-deep) 45%, transparent);
    background-color: color-mix(in srgb, var(--gold-light) 30%, var(--ivory-50));
  }
}

@media (min-width: 768px) {
  .ventures__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ventures__item:last-child { grid-column: 1 / -1; }
}

@media (min-width: 1180px) {
  .ventures__head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    column-gap: 3rem;
  }
  .ventures__lead { justify-self: end; }
}

@media (min-width: 1024px) {
  .ventures__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
  .ventures__item:last-child { grid-column: auto; }
  .venture-card { min-height: 30rem; }
}

/* --- Technology in focus: web development, current projects, product ---- */
.tech-focus {
  position: relative;
  display: grid;
  grid-template-areas: "intro" "work" "product";
  gap: clamp(2.25rem, 6vw, 3rem);
  margin-top: 1rem;
  padding: clamp(1.5rem, 4.5vw, 3.5rem);
  border: 1px solid var(--line-ink);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--ivory-50) 40%, white),
    color-mix(in srgb, var(--ivory-50) 75%, white));
  box-shadow:
    0 1px 0 color-mix(in srgb, white 80%, transparent) inset,
    0 1px 2px color-mix(in srgb, var(--ink-950) 4%, transparent),
    0 24px 48px -32px color-mix(in srgb, var(--ink-950) 22%, transparent);
}
.tech-focus__intro { grid-area: intro; }
.tech-focus__title {
  max-width: 11em;
  margin-top: 1.25rem;
  font-size: var(--fs-3xl);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.038em;
  text-wrap: balance;
}
.tech-focus__text {
  max-width: 30rem;
  margin-top: 1.25rem;
  color: var(--text-ink-muted);
}

.tech-focus__more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-block: 0.35rem;
  color: var(--text-ink);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  background: linear-gradient(var(--gold-deep), var(--gold-deep)) no-repeat 0 100% / 100% 1px;
  transition: background-size var(--dur-3) var(--ease-out);
}
.tech-focus__more svg {
  width: 1rem;
  height: 1rem;
  color: var(--gold-deep);
  transition: translate var(--dur-2) var(--ease-out);
}
.tech-focus__more:hover svg { translate: 3px 0; }
.tech-focus__more:hover { background-size: 0% 1px; background-position: 100% 100%; }

.tech-focus__work { grid-area: work; }
.tech-focus__work-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-ink-strong);
}
.tech-focus__label {
  color: var(--text-ink-muted);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}
.tech-focus__count {
  color: var(--text-ink-faint);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.projects { margin: 0; padding: 0; list-style: none; }
.project {
  position: relative;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  column-gap: 0.75rem;
  align-items: baseline;
  padding-block: 1.3rem;
  border-bottom: 1px solid var(--line-ink);
}
.project__index {
  color: var(--gold-deep);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1;
}
.project__name {
  color: var(--text-ink);
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.project__meta {
  margin-top: 0.3rem;
  color: var(--text-ink-muted);
  font-size: var(--fs-sm);
}
.project__tag {
  grid-column: 2;
  justify-self: start;
  margin-top: 0.8rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line-ink-strong);
  border-radius: var(--radius-pill);
  color: var(--text-ink-muted);
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
/* The whole row opens the project's site. */
.project__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: inherit;
  text-decoration: none;
}
.project__link::after { content: ""; position: absolute; inset: 0; }
.project__link svg {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--gold-deep);
  transition: translate var(--dur-2) var(--ease-out);
}
.project__link:focus-visible { outline: none; }
.project:has(.project__link:focus-visible) {
  outline: 2px solid var(--ink-950);
  outline-offset: 4px;
  border-radius: var(--radius-xs);
}
@media (hover: hover) and (pointer: fine) {
  .project__name { transition: translate var(--dur-3) var(--ease-out); }
  .project:hover .project__name { translate: 4px 0; }
  .project:hover .project__link svg { translate: 2px -2px; }
}
@media (min-width: 640px) {
  .project {
    grid-template-columns: 2.75rem minmax(0, 1fr) auto;
    align-items: center;
  }
  .project__tag { grid-column: 3; grid-row: 1; margin-top: 0; }
}

/* Product in development — the one dark tile in the ivory slab. */
.product-tile {
  grid-area: product;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: var(--ink-900);
  color: var(--text);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.06) inset,
    0 30px 60px -34px color-mix(in srgb, var(--ink-950) 70%, transparent);
}
.product-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(80% 90% at 100% 0%, color-mix(in srgb, var(--teal) 32%, transparent), transparent 62%),
    radial-gradient(70% 80% at 0% 100%, color-mix(in srgb, var(--gold) 20%, transparent), transparent 62%);
}
.product-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
  border-radius: inherit;
  pointer-events: none;
}
.product-tile__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}
.product-tile__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgb(255 255 255 / 0.03);
  color: var(--gold-light);
}
.product-tile__icon svg { width: 1.5rem; height: 1.5rem; }
.product-tile__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  border-radius: var(--radius-pill);
  color: var(--gold-light);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.product-tile__badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: product-pulse 2.4s var(--ease-out) infinite;
}
@keyframes product-pulse {
  0%        { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 55%, transparent); }
  70%, 100% { box-shadow: 0 0 0 7px transparent; }
}
.product-tile__title {
  color: var(--text);
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.product-tile__text {
  max-width: 26rem;
  margin-top: 0.6rem;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.6;
}
@media (prefers-reduced-motion: reduce) {
  .product-tile__badge::before { animation: none; }
}

@media (min-width: 1024px) {
  .tech-focus {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas: "intro work" "product product";
    align-items: start;
    column-gap: clamp(3rem, 6vw, 6rem);
    row-gap: clamp(2.5rem, 4vw, 3.5rem);
    margin-top: 1.25rem;
  }
  .project { padding-block: 1.45rem; }
  /* The product becomes a full-width banner: icon · title + text · badge. */
  .product-tile {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: 1.75rem;
    align-items: center;
    padding: 1.9rem 2.25rem;
  }
  .product-tile__top { display: contents; }
  .product-tile__icon { grid-column: 1; grid-row: 1 / span 2; width: 3.5rem; height: 3.5rem; }
  .product-tile__badge { grid-column: 3; grid-row: 1 / span 2; }
  .product-tile__title { grid-column: 2; grid-row: 1; align-self: end; }
  .product-tile__text { grid-column: 2; grid-row: 2; align-self: start; max-width: 40rem; }
}

/* --------------------------------------------------------------------------
   19  Home — approach (sticky intro + numbered principles)
   -------------------------------------------------------------------------- */
.approach__grid {
  display: grid;
  gap: clamp(3rem, 6vw, 4rem);
}
.approach__lead { margin-top: 1.5rem; max-width: 26rem; }
.approach__title { max-width: 8.5em; }

.approach__meter {
  display: none;
  align-items: center;
  gap: 1rem;
  margin-top: 3.5rem;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
.approach__meter-count { color: var(--gold); min-width: 2ch; }
.approach__meter-track {
  position: relative;
  width: 9rem;
  height: 1px;
  overflow: hidden;
  background: var(--line-strong);
}
.approach__meter-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-light));
  transform: scaleX(var(--progress, 0.25));
  transform-origin: left center;
  transition: transform var(--dur-4) var(--ease-out);
}

.principles { border-top: 1px solid var(--line); }
.principle {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: clamp(2rem, 4.2vw, 3.25rem);
  border-bottom: 1px solid var(--line);
}
/* gold hairline that draws in across the top of the active principle */
.principle::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), color-mix(in srgb, var(--gold) 0%, transparent));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.2s var(--ease-out);
}
.principle.is-active::before { transform: scaleX(1); }

.principle__num {
  padding-top: 0.15em;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: var(--fs-2xl);
  font-style: italic;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.principle__title {
  font-size: var(--fs-2xl);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.principle__text {
  max-width: 32rem;
  margin-top: 0.85rem;
  color: var(--text-muted);
  font-size: var(--fs-lg);
  line-height: 1.55;
}

@media (min-width: 768px) {
  .principle { grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1.5rem; }
}

@media (min-width: 1024px) {
  .approach__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(3rem, 7vw, 7rem);
    align-items: start;
  }
  .approach__intro {
    position: sticky;
    top: calc(var(--header-offset) + 3rem);
  }
  .approach__meter { display: flex; }
}


/* --------------------------------------------------------------------------
   20  Home — contact (cinematic closing panel)
   -------------------------------------------------------------------------- */
.contact { padding-top: 0; }

.contact__panel {
  --mx: 50%;
  --my: 30%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(4rem, 10vw, 8.5rem) clamp(1.25rem, 5vw, 5rem) clamp(5rem, 9vw, 8rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--ink-900);
  text-align: center;
}

.contact__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(70% 55% at 50% 118%, color-mix(in srgb, var(--teal) 30%, transparent), transparent 70%),
    radial-gradient(40% 35% at 50% 108%, color-mix(in srgb, var(--gold) 26%, transparent), transparent 70%),
    radial-gradient(30% 30% at 82% 96%, color-mix(in srgb, var(--ember) 14%, transparent), transparent 70%),
    radial-gradient(50% 45% at 15% 0%, color-mix(in srgb, var(--teal-deep) 55%, transparent), transparent 70%);
}
/* pointer spotlight inside the panel (desktop) */
.contact__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx) var(--my), color-mix(in srgb, var(--gold) 9%, transparent), transparent 50%);
  opacity: 0;
  transition: opacity var(--dur-3) var(--ease-out);
}
.contact__panel:hover .contact__bg::after { opacity: 1; }

.contact__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000, transparent 75%);
}

/* Dusk horizon — a thin luminous arc rising from below */
.contact__horizon {
  position: absolute;
  left: 50%;
  top: calc(100% - clamp(2.75rem, 6vw, 5.25rem));
  width: max(160%, 900px);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--ink-950) 70%, transparent) 97%, transparent);
  box-shadow:
    0 -1px 0 0 color-mix(in srgb, var(--gold-light) 55%, transparent),
    0 -18px 60px -12px color-mix(in srgb, var(--gold) 30%, transparent),
    0 -60px 140px -40px color-mix(in srgb, var(--teal) 35%, transparent);
}

.contact__grain { opacity: 0.05; }

.contact__content {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact__title {
  max-width: 13em;
  margin-top: clamp(1.25rem, 2vw, 1.75rem);
  font-size: var(--fs-4xl);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.042em;
}
.contact__text {
  max-width: 30rem;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: var(--fs-lg);
  line-height: 1.55;
}
.contact__action {
  width: 100%;
  margin-top: clamp(2.25rem, 4vw, 3rem);
}
.contact__email {
  max-width: 100%;
  font-size: clamp(0.9375rem, 0.82rem + 0.6vw, 1.25rem);
}
.contact__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.75rem;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.contact__meta::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px color-mix(in srgb, var(--gold) 80%, transparent);
}

@media (max-width: 479.98px) {
  .contact__email {
    --btn-px: 1.1rem;
    --btn-h: 3.75rem;
    gap: 0.6rem;
    width: 100%;
    justify-content: space-between;
  }
  .contact__email .btn__bubble { width: 2.5rem; height: 2.5rem; }
  .btn--xl:has(.btn__bubble) { padding-right: 0.55rem; }
}


/* --------------------------------------------------------------------------
   21  Reduced motion — everything settles instantly, nothing drifts
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html.js .reveal,
  html.js .hero__line-inner,
  html.js .hero__eyebrow,
  html.js .hero__meta,
  html.js .hero__foot,
  html.js .hero__bg,
  html.js .page-home .site-header__inner {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__blob,
  .hero__scroll-line::after,
  .marquee__track { animation: none; }
  .hero__glow { display: none; }
  .btn,
  .btn__label { transform: none; }
  .mobile-menu__link,
  .mobile-menu__foot { transform: none; transition: none; }
  .site-header.is-hidden { transform: none; }
}
