/* ─── Tokens ─────────────────────────────────────────────────── */
:root {
  --ink:        #070d0c;
  --ink-2:      #0c1614;
  --ink-3:      #14201d;
  --teal:       #0d4d4a;
  --teal-glow:  #5fb3aa;
  --gold:       #c9a35c;
  --gold-glow:  #e7c885;
  --cream:      #f3ead8;
  --cream-dim:  #bcb29c;
  --muted:      #6b6356;
  --rule:       rgba(243, 234, 216, 0.10);
  --rule-soft:  rgba(243, 234, 216, 0.05);

  --gutter:     clamp(20px, 4vw, 64px);
  --maxw:       1320px;

  --ff-display: "Italiana", "Cormorant Garamond", "Times New Roman", serif;
  --ff-italic:  "Cormorant Garamond", "Italiana", Georgia, serif;
  --ff-body:    "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--ink); }
body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Selection */
::selection { background: var(--gold); color: var(--ink); }

/* Smooth anchor scroll */
html { scroll-behavior: smooth; }

/* Grain overlay */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 2;
  opacity: 0.18; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1.2 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ─── Reveal animation ───────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ─── Shared atoms ───────────────────────────────────────────── */
.display {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(40px, 5.6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.012em;
  color: var(--cream);
  margin: 0;
  text-wrap: balance;
}
.display em {
  font-family: var(--ff-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.lede {
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.6;
  color: var(--cream-dim);
  max-width: 56ch;
  font-weight: 350;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.eyebrow--center { justify-content: center; }
.eyebrow__dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 12px var(--gold-glow);
}

.section-head {
  max-width: 880px;
  padding: clamp(48px, 5vw, 80px) var(--gutter) 0;
  margin: 0 auto;
}
.section-head--row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; max-width: var(--maxw); flex-wrap: wrap;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--ff-body);
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.02em;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  text-decoration: none;
  transition: all .3s cubic-bezier(.2,.7,.2,1);
  white-space: nowrap;
}
.btn__arrow {
  display: inline-block;
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--solid {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--gold), 0 8px 30px -8px var(--gold-glow);
}
.btn--solid:hover {
  background: var(--gold-glow);
  box-shadow: 0 0 0 1px var(--gold-glow), 0 12px 40px -10px var(--gold-glow);
}

.btn--ghost {
  background: rgba(243, 234, 216, 0.03);
  border-color: rgba(243, 234, 216, 0.14);
  backdrop-filter: blur(8px);
  color: var(--cream);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 163, 92, 0.06);
}

.btn--link {
  padding: 14px 4px;
  color: var(--cream-dim);
}
.btn--link:hover { color: var(--gold); }

.btn--lg {
  padding: 20px 34px;
  font-size: 15px;
}

/* ─── Nav ────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  transition: all .4s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav--scrolled {
  padding: 14px var(--gutter);
  background: linear-gradient(180deg, rgba(7,13,12,0.92) 0%, rgba(7,13,12,0.6) 70%, transparent 100%);
  backdrop-filter: blur(12px);
}

.nav__logo {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--cream);
  font-family: var(--ff-display);
  font-size: 22px;
  letter-spacing: 0.04em;
}
.nav__logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
}
.nav__logo-mark img {
  display: block;
  height: 28px;
  width: auto;
}

.nav__links {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 36px;
  font-family: var(--ff-body);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.nav__links a {
  color: var(--cream-dim);
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  transition: color .25s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.nav__links a:hover { color: var(--cream); }
.nav__links a:hover::after { transform: scaleX(1); }

@media (max-width: 800px) {
  .nav__links { display: none; }
}

/* Section dropdown — mobile-only nav element. Compact pill that
   shows the current section name and reveals all sections on tap.
   Active section is tinted gold. */
.section-dd {
  display: none;
  position: relative;
}
@media (max-width: 800px) {
  .section-dd { display: inline-flex; }
}
.section-dd__trigger {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 12px;
  border-radius: 999px;
  background: rgba(7, 13, 12, 0.55);
  border: 1px solid rgba(243, 234, 216, 0.12);
  color: var(--cream);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: border-color .25s, background .25s, color .25s;
  white-space: nowrap;
}
.section-dd__trigger:hover,
.section-dd__trigger.is-open {
  border-color: rgba(201, 163, 92, 0.5);
  background: rgba(7, 13, 12, 0.75);
  color: var(--cream);
}
.section-dd__label {
  color: var(--gold);
}
.section-dd__chevron {
  display: inline-flex;
  align-items: center;
  color: var(--cream-dim);
  transition: transform .2s cubic-bezier(.2,.7,.2,1), color .2s;
}
.section-dd__trigger.is-open .section-dd__chevron {
  transform: rotate(180deg);
  color: var(--gold);
}
.section-dd__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: auto;
  list-style: none;
  margin: 0;
  padding: 6px;
  min-width: 180px;
  background: rgba(7, 13, 12, 0.92);
  border: 1px solid rgba(243, 234, 216, 0.12);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  z-index: 100;
  animation: sectionDdIn .18s cubic-bezier(.2,.7,.2,1);
}
@keyframes sectionDdIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
.section-dd__item {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--cream);
  text-decoration: none;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background .15s, color .15s;
}
.section-dd__item:hover {
  background: rgba(201, 163, 92, 0.10);
}
.section-dd__item.is-active {
  color: var(--gold);
}
.section-dd__item.is-active::before {
  content: "›";
  margin-right: 6px;
  color: var(--gold);
}

/* Right group: language picker + CTA */
.nav__right {
  display: inline-flex; align-items: center; gap: 18px;
}
.lang {
  display: inline-flex; align-items: center;
  gap: 8px;
  position: relative;
}
.lang__inline {
  display: inline-flex; align-items: center; gap: 8px;
}
/* Trigger + menu live in the DOM at all sizes but are only visible
   below the mobile breakpoint via the @media block below. */
.lang__trigger {
  display: none;
  appearance: none;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 6px;
  border: 1px solid rgba(243, 234, 216, 0.12);
  border-radius: 999px;
  background: rgba(7, 13, 12, 0.55);
  color: var(--cream);
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: border-color .25s, background .25s;
}
.lang__trigger:hover,
.lang__trigger.is-open {
  border-color: rgba(201, 163, 92, 0.5);
  background: rgba(7, 13, 12, 0.75);
}
.lang__trigger-flag {
  display: inline-block;
  width: 22px; height: 15px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(243, 234, 216, 0.18);
}
.lang__chevron {
  display: inline-flex;
  align-items: center; justify-content: center;
  color: var(--cream-dim);
  transition: transform .2s cubic-bezier(.2,.7,.2,1), color .2s;
}
.lang__trigger.is-open .lang__chevron {
  transform: rotate(180deg);
  color: var(--gold);
}
.lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  list-style: none; margin: 0; padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  min-width: 140px;
  background: rgba(7, 13, 12, 0.92);
  border: 1px solid rgba(243, 234, 216, 0.12);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  z-index: 100;
  animation: langMenuIn .18s cubic-bezier(.2,.7,.2,1);
}
@keyframes langMenuIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
.lang__menu-item {
  appearance: none;
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--cream);
  font-family: var(--ff-body);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.lang__menu-item:hover { background: rgba(201, 163, 92, 0.10); }
.lang__menu-item.is-active { color: var(--gold); }
.lang__menu-flag {
  display: inline-block;
  width: 22px; height: 15px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(243, 234, 216, 0.18);
}
.lang__menu-item.is-active .lang__menu-flag {
  box-shadow: 0 0 0 1px var(--gold);
}
.lang__flag {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  width: 24px;
  height: 16px;
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  opacity: 0.45;
  filter: saturate(0.55);
  transition: opacity .25s, filter .25s, transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s;
  box-shadow: 0 0 0 1px rgba(243, 234, 216, 0.12);
}
.lang__flag:hover {
  opacity: 0.85;
  filter: saturate(0.85);
  transform: translateY(-1px);
}
.lang__flag.is-active {
  opacity: 1;
  filter: saturate(1);
  box-shadow: 0 0 0 1px var(--gold), 0 4px 14px -4px rgba(231, 200, 133, 0.6);
}
.flag__svg {
  display: block;
  width: 100%;
  height: 100%;
}
@media (max-width: 800px) {
  /* Hide the inline three-flag picker on mobile, show the dropdown
     trigger instead. The trigger's menu uses display:flex when the
     wrapper renders the <ul> (which only happens while open). */
  .lang__inline { display: none; }
  .lang__trigger { display: inline-flex; }
  .lang__menu { display: flex; }
}
/* Mobile nav slim-down — the header otherwise overflows on phones
   once the section dropdown + language picker + CTA are added to
   the logo. Trim type/padding so everything sits on one line. */
@media (max-width: 800px) {
  .nav { padding: 14px clamp(14px, 4vw, 22px); }
  .nav--scrolled { padding: 10px clamp(14px, 4vw, 22px); }
  .nav__logo { font-size: 18px; gap: 8px; }
  .nav__logo-mark img { height: 22px; }
  .nav .btn--ghost {
    padding: 8px 14px;
    font-size: 12px;
    gap: 6px;
  }
  .nav .btn--ghost .btn__arrow { font-size: 12px; }
  .section-dd__trigger {
    padding: 5px 8px 5px 10px;
    font-size: 10px;
    letter-spacing: 0.14em;
    gap: 4px;
  }
}
@media (max-width: 560px) {
  .nav__right { gap: 8px; }
  /* Hide the "Kevin Germin" wordmark below 560px; the gold mark
     stays visible as the brand anchor. */
  .nav__logo-text { display: none; }
  /* Tighten further for very narrow viewports. */
  .nav .btn--ghost { padding: 7px 12px; font-size: 11px; }
  .section-dd__trigger { padding: 4px 8px 4px 8px; font-size: 9.5px; }
  .lang__trigger { padding: 3px 7px 3px 6px; }
  .lang__trigger-flag { width: 20px; height: 14px; }
}

/* ─── Spine helix ────────────────────────────────────────────── */
.spine-wrap {
  position: fixed;
  top: 0; bottom: 0;
  right: clamp(8px, 2vw, 36px);
  width: 90px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
}
.spine-helix { height: 100%; width: 100%; }
.spine-helix svg { width: 100%; height: 100%; display: block; }

@media (max-width: 900px) {
  .spine-wrap { display: none; }
}

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  isolation: isolate;
}

.hero__media {
  position: absolute; inset: 0; z-index: 0;
}
.hero__bg-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
  pointer-events: none;
}

.hero__title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__toggle {
  appearance: none;
  background: rgba(7, 13, 12, 0.5);
  border: 1px solid rgba(201, 163, 92, 0.28);
  color: var(--gold);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  opacity: 0.85;
  flex-shrink: 0;
  transition: opacity .25s, color .25s, transform .25s cubic-bezier(.2,.7,.2,1), background .25s, border-color .25s;
}
.hero__toggle:hover {
  opacity: 1;
  color: var(--gold-glow);
  border-color: var(--gold);
  background: rgba(201, 163, 92, 0.08);
  transform: scale(1.08);
}
.hero__toggle svg { width: 18px; height: 18px; }

.hero--text-hidden .hero__eyebrow,
.hero--text-hidden .hero__title,
.hero--text-hidden .hero__sub,
.hero--text-hidden .hero__row,
.hero--text-hidden .hero__portrait,
.hero--text-hidden .hero__veil,
.hero--text-hidden .hero__vignette,
.hero--text-hidden .hero__helix {
  opacity: 0 !important;
  pointer-events: none !important;
  animation: none !important;
  transition: opacity .5s cubic-bezier(.2,.7,.2,1) !important;
}
.hero--text-hidden .hero__title,
.hero--text-hidden .hero__sub,
.hero--text-hidden .hero__row {
  transform: translateY(-8px) !important;
  transition: opacity .5s cubic-bezier(.2,.7,.2,1), transform .5s cubic-bezier(.2,.7,.2,1) !important;
}
.hero__eyebrow, .hero__title, .hero__sub, .hero__row, .hero__portrait, .hero__veil, .hero__vignette, .hero__helix {
  transition: opacity .5s cubic-bezier(.2,.7,.2,1);
}
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,13,12,0.18) 0%, rgba(7,13,12,0.08) 45%, rgba(7,13,12,0.78) 100%);
}
.hero__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}

.hero__helix {
  /* Hidden at every viewport — the background reel is the visual anchor;
     the helix strands crashing through it read as unwanted noise. */
  display: none;
}
.hero-helix-wrap { width: 100%; height: 100%; }
.hero-helix-wrap svg { width: 100%; height: 100%; display: block; }

.hero__inner {
  position: relative; z-index: 3;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  padding-top: 14vh;
}

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 8px 14px 8px 12px;
  border: 1px solid rgba(201, 163, 92, 0.22);
  border-radius: 999px;
  background: rgba(7, 13, 12, 0.5);
  backdrop-filter: blur(8px);
  margin-bottom: 32px;
  animation: fadeUp 1.1s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: 0.15s;
}
.hero__pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 var(--gold-glow);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(231, 200, 133, 0.55); }
  100% { box-shadow: 0 0 0 14px rgba(231, 200, 133, 0); }
}

.hero__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(54px, 10vw, 156px);
  line-height: 0.92;
  letter-spacing: -0.022em;
  margin: 0;
  max-width: 14ch;
  text-wrap: balance;
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.32em;
}
.hero__word {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp 1.2s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes fadeUp {
  to { opacity: 1; transform: none; }
}

.hero__sub {
  margin: 36px 0 44px;
  max-width: 46ch;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.55;
  color: var(--cream-dim);
  animation: fadeUp 1.2s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: 1.1s;
}

.hero__row {
  display: flex; gap: 20px; align-items: center;
  flex-wrap: wrap;
  animation: fadeUp 1.2s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: 1.3s;
}

.hero__portrait {
  position: absolute;
  right: clamp(20px, 4vw, 56px);
  bottom: clamp(48px, 8vh, 96px);
  top: auto;
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  animation: fadeUp 1.4s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: 1.5s;
}
.hero__portrait image-slot {
  width: 112px; height: 112px;
  --is-placeholder-bg: linear-gradient(135deg, var(--teal) 0%, var(--ink-2) 100%);
}
.hero__portrait-ring {
  position: absolute; top: -8px; left: 50%;
  width: 128px; height: 128px;
  transform: translateX(-50%);
  border: 1px solid var(--gold);
  border-radius: 50%;
  opacity: 0.5;
  animation: ringRotate 18s linear infinite;
}
.hero__portrait-ring::before,
.hero__portrait-ring::after {
  content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-glow);
  box-shadow: 0 0 10px var(--gold);
}
.hero__portrait-ring::before { top: -3px; left: 50%; transform: translateX(-50%); }
.hero__portrait-ring::after { bottom: -3px; left: 50%; transform: translateX(-50%); background: var(--teal-glow); box-shadow: 0 0 10px var(--teal-glow); }
@keyframes ringRotate {
  to { transform: translateX(-50%) rotate(360deg); }
}
@keyframes ringRotateInline {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
.hero__portrait-meta { text-align: center; }
.hero__portrait-name {
  font-family: var(--ff-display);
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--cream);
}
.hero__portrait-role {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-top: 2px;
}

.hero__scroll {
  position: absolute; bottom: 32px; left: var(--gutter);
  z-index: 3;
  display: flex; align-items: center; gap: 14px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cream-dim);
  animation: fadeUp 1.5s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: 1.7s;
}
.hero__scroll-line {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  position: relative; overflow: hidden;
}
.hero__scroll-line::after {
  content: ""; position: absolute; inset: 0;
  background: var(--cream);
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@media (max-width: 1100px) {
  .hero__scroll { display: none; }
}

/* Two portrait variants in the markup, switched by viewport. The floating
   one is absolute-positioned top-right (desktop). The inline one sits
   between the sub and the CTA row (mobile only). */
.hero__portrait--inline { display: none; }
@media (max-width: 800px) {
  .hero__portrait--floating { display: none; }
  .hero__portrait--inline {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    position: static;
    margin: 20px 0 28px;
    right: auto; top: auto; bottom: auto; transform: none;
  }
  .hero__portrait--inline image-slot { width: 64px; height: 64px; }
  .hero__portrait--inline .hero__portrait-ring {
    width: 78px; height: 78px; top: 50%; left: 32px;
    transform: translate(-50%, -50%);
    animation: ringRotateInline 18s linear infinite;
  }
  .hero__portrait--inline .hero__portrait-meta { text-align: left; }
}

/* ─── Worked for ─────────────────────────────────────────────── */
.worked {
  margin-top: clamp(64px, 9vw, 130px);
  padding: clamp(20px, 2.6vw, 34px) 0 clamp(18px, 2.4vw, 30px);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--ink-2);
  position: relative;
  z-index: 3;
  overflow: hidden;
}
.worked__head {
  max-width: var(--maxw);
  margin: 0 auto 10px;
  padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 22px;
}
.worked__title {
  margin: 0;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  white-space: nowrap;
}
.worked__rule {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--rule) 30%, transparent 100%);
  max-width: 220px;
}

/* Marquee */
.worked__marquee {
  position: relative;
  width: 100%;
  display: flex;
  gap: 0;
  overflow: hidden;
  /* Fade the edges into the bg so logos slide in/out smoothly */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.worked__track {
  list-style: none; padding: 0; margin: 0;
  display: flex; align-items: center;
  gap: clamp(48px, 5.5vw, 88px);
  padding-right: clamp(48px, 5.5vw, 88px);
  flex-shrink: 0;
  animation: marquee 38s linear infinite;
  will-change: transform;
}
.worked__marquee:hover .worked__track {
  animation-play-state: paused;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .worked__track { animation: none; }
}

.worked__logo {
  display: inline-flex; align-items: center;
  flex-shrink: 0;
}
.worked__logo a {
  display: inline-flex; align-items: center;
  text-decoration: none;
  padding: 4px 0;
}
.worked__logo img {
  display: block;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.55;
  transition: opacity .35s cubic-bezier(.2,.7,.2,1);
}
.worked__logo:hover img { opacity: 1; }

@media (max-width: 800px) {
  .worked__head { gap: 16px; }
  .worked__rule { max-width: 100px; }
  .worked__track { gap: 36px; padding-right: 36px; animation-duration: 30s; }
}

/* ─── Work grid ──────────────────────────────────────────────── */
.work {
  padding: clamp(40px, 5vw, 70px) var(--gutter) clamp(40px, 5vw, 70px);
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
  z-index: 3;
  border-top: 1px solid var(--rule);
}
.work__grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(28px, 3vw, 56px) clamp(18px, 2vw, 32px);
}

.work__disclaimer {
  max-width: 80ch;
  margin: 28px var(--gutter) 0;
  padding: 8px 0 8px 16px;
  position: relative;
  font-family: var(--ff-italic);
  font-style: italic;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.55;
  color: var(--cream-dim);
  text-wrap: pretty;
}
.work__disclaimer-mark {
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--gold);
  opacity: 0.6;
}
.work__item {
  margin: 0;
  display: flex; flex-direction: column;
  gap: 22px;
}
.work__item--1 { grid-column: span 7; }
.work__item--2 { grid-column: span 5; }
.work__item--3 { grid-column: span 5; }
.work__item--4 { grid-column: span 7; }
.work__media {
  position: relative;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(135deg, #0e1c1a, #0a1413);
}
.work__item--1 .work__media,
.work__item--4 .work__media { aspect-ratio: 16/10; }
.work__item--2 .work__media,
.work__item--3 .work__media { aspect-ratio: 4/5; }
.work__media image-slot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  --is-placeholder-bg: linear-gradient(135deg, #0e1c1a, #0a1413);
}
/* Force every image-slot in this design to fully contain its image.
   The shadow-DOM img is exposed via part="image"; !important beats the
   inline styles _applyView would otherwise set in cover mode. */
image-slot::part(image) {
  position: absolute !important;
  inset: 0 !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  transform: none !important;
  object-fit: contain !important;
  object-position: center center !important;
}

/* Mono treatment for tool tiles whose source logo is on a light bg or in
   a brand color that drowns on dark — match the worked-for marquee look. */
image-slot[id^="tool-n8n-"]::part(image),
image-slot[id^="tool-agents-"]::part(image),
image-slot[id^="tool-elevenlabs-"]::part(image) {
  filter: brightness(0) invert(1) !important;
  opacity: 0.78 !important;
}

/* Force the slot's internal img to fully fit, never crop. The shadow-DOM
   img is exposed via part="image"; ::part with !important beats the
   inline styles _applyView sets when fit=cover would otherwise apply. */
.work__media image-slot::part(image) {
  position: absolute !important;
  inset: 0 !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  transform: none !important;
  object-fit: contain !important;
  object-position: center center !important;
}

/* (Legacy .work__video class removed — videos now render with the
   shared .media__video class via the VideoPlayer component.) */

/* Shared media-player styling: applied wherever the VideoPlayer
   component renders — work tiles, the tools panel, the recognition
   card. Play overlay shows until the user activates the clip; then
   the controls bar takes over with play/pause + maximize only. */
.media-wrap {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.media__video,
.media__poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

/* Fullscreen styles — applied both when the browser's real Fullscreen
   API kicks in (:fullscreen / -webkit-full-screen) AND when we fall
   back to the JS-driven pseudo-fullscreen (via the .media-wrap--pseudo-fs
   class, which moves the wrap to <body> and pins it). Both paths share
   the same visual outcome: full viewport, contained video, slightly
   larger custom controls. */
.media-wrap:fullscreen,
.media-wrap:-webkit-full-screen,
.media-wrap--pseudo-fs {
  background: #000;
  width: 100vw;
  height: 100vh;
}
.media-wrap--pseudo-fs {
  /* Inline-style equivalent of the real fullscreen state — but
     anchored by JS-positioned styles below. position+inset are forced
     in case any unusual ancestor breaks the default cascade. */
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  inset: 0 !important;
  z-index: 99999 !important;
}
.media-wrap:fullscreen .media__video,
.media-wrap:-webkit-full-screen .media__video,
.media-wrap--pseudo-fs .media__video {
  object-fit: contain;
  background: #000;
}
.media-wrap:fullscreen .media__controls,
.media-wrap:-webkit-full-screen .media__controls,
.media-wrap--pseudo-fs .media__controls {
  padding: 20px clamp(20px, 4vw, 48px);
}
.media-wrap:fullscreen .media__ctrl,
.media-wrap:-webkit-full-screen .media__ctrl,
.media-wrap--pseudo-fs .media__ctrl {
  width: 48px;
  height: 48px;
}
.media__play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  appearance: none;
  background: linear-gradient(180deg, rgba(7, 13, 12, 0.10) 0%, rgba(7, 13, 12, 0.35) 100%);
  border: 0;
  padding: 0;
  cursor: pointer;
  z-index: 2;
  transition: background .3s ease;
}
.media__play:hover { background: linear-gradient(180deg, rgba(7, 13, 12, 0.18) 0%, rgba(7, 13, 12, 0.50) 100%); }
.media__play-circle {
  width: clamp(56px, 8vw, 84px);
  height: clamp(56px, 8vw, 84px);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(7, 13, 12, 0.55);
  border: 1.5px solid var(--gold);
  color: var(--gold);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 28px -8px rgba(231, 200, 133, 0.5);
  transform: translateZ(0);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), background .3s, color .3s, box-shadow .3s;
}
.media__play-circle svg {
  /* Nudge the triangle slightly right so it visually centers in the circle. */
  margin-left: 4px;
}
.media__play:hover .media__play-circle {
  transform: scale(1.06);
  background: rgba(201, 163, 92, 0.18);
  color: var(--gold-glow);
  box-shadow: 0 12px 36px -8px rgba(231, 200, 133, 0.7);
}

.media__controls {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(10px, 1.2vw, 16px);
  gap: 10px;
  z-index: 3;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 13, 12, 0.55) 100%);
  pointer-events: none; /* gradient layer doesn't intercept clicks */
}
.media__ctrl {
  pointer-events: auto;
  appearance: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(7, 13, 12, 0.65);
  border: 1px solid rgba(243, 234, 216, 0.18);
  color: var(--cream);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: color .2s, border-color .2s, background .2s, transform .2s cubic-bezier(.2,.7,.2,1);
}
.media__ctrl:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(201, 163, 92, 0.12);
  transform: scale(1.05);
}
.work__cap {
  display: flex; flex-direction: column;
  max-width: 46ch;
}
.work__tag {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.work__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(22px, 1.9vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin: 0 0 12px;
  color: var(--cream);
  text-wrap: balance;
}
.work__body {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--cream-dim);
}

@media (max-width: 800px) {
  .work__grid { grid-template-columns: 1fr; }
  .work__item { grid-column: span 1 !important; }
  .work__item--1 .work__media,
  .work__item--4 .work__media { aspect-ratio: 16/10; }
  .work__item--2 .work__media,
  .work__item--3 .work__media { aspect-ratio: 4/5; }
}

/* ─── Approach ───────────────────────────────────────────────── */
.approach {
  padding-bottom: clamp(40px, 5vw, 70px);
  position: relative;
  z-index: 3;
  border-top: 1px solid var(--rule);
}
.approach .section-head { text-align: left; }
.approach__grid {
  list-style: none; padding: 0; margin: 60px auto 0;
  max-width: var(--maxw);
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  counter-reset: step;
}
.approach__step {
  position: relative;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.approach__num {
  font-family: var(--ff-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 18px;
}
.approach__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(24px, 1.9vw, 32px);
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--cream);
}
.approach__body {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--cream-dim);
  margin: 0;
}
.approach__coda {
  max-width: 64ch;
  margin: clamp(60px, 8vw, 100px) auto 0;
  padding: 0 var(--gutter);
  font-family: var(--ff-italic);
  font-style: italic;
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.4;
  color: var(--cream);
  text-align: center;
  text-wrap: balance;
}
.approach__coda::before, .approach__coda::after {
  content: ""; display: block; height: 1px; width: 60px;
  background: var(--gold); margin: 24px auto;
  opacity: 0.5;
}

@media (max-width: 900px) {
  .approach__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 560px) {
  .approach__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ─── Services ───────────────────────────────────────────────── */
.services {
  padding-bottom: clamp(40px, 5vw, 70px);
  position: relative;
  z-index: 3;
  border-top: 1px solid var(--rule);
}
.services__grid {
  max-width: var(--maxw);
  margin: 60px auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: auto auto;
  gap: clamp(20px, 2vw, 32px) clamp(24px, 2.4vw, 40px);
  align-items: start;
}
.services__animations-label {
  /* Lives in the SAME grid row as cards I-III (cols 3-7), z-stacked
     above them. Translated down so the label's vertical center lands
     exactly on the cards' top-border hairline — same Y as Copywriting's
     border. The cards under it (For Brands + For Private Clients) have
     their own border-top hidden so the gold rule visually replaces it
     in those columns, broken only by the ANIMATIONS text in the middle. */
  grid-column: 3 / 7;
  grid-row: 1;
  align-self: start;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-bottom: 0;
  position: relative;
  z-index: 2;
  /* 40px = the .service padding-top above its head border; 50% of the
     label's own height pulls the center to that line. */
  transform: translateY(calc(40px - 50%));
}
.services__animations-text {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.services__animations-rule {
  flex: 1 1 auto;
  height: 1px;
  /* Solid gold line — extends across the full width of For Brands +
     For Private Clients so the label visibly scopes those two cards.
     Slight fade at the outermost ends so it dovetails into the card
     boundaries. */
  background: linear-gradient(90deg, rgba(201, 163, 92, 0.0) 0%, rgba(201, 163, 92, 0.85) 8%, rgba(201, 163, 92, 0.85) 92%, rgba(201, 163, 92, 0.0) 100%);
}
.service { grid-row: 1; }
/* Row 1: three crafts each take 2 of 6 cols → 3 across. */
.service:nth-of-type(1) { grid-column: 1 / 3; }
.service:nth-of-type(2) { grid-column: 3 / 5; }
.service:nth-of-type(3) { grid-column: 5 / 7; }
/* For Brands + For Private Clients lose their own border-top so the
   ANIMATIONS rule provides the visible hairline for those two cards. */
.service:nth-of-type(2) .service__head,
.service:nth-of-type(3) .service__head { border-top: 0; }
/* Row 2: Automations + Decentralization, each 2 cols, centered
   by leaving cols 1 and 6 empty (cards span 2-3 and 4-5). */
.service:nth-of-type(4),
.service:nth-of-type(5) { grid-row: 2; }
.service:nth-of-type(4) { grid-column: 2 / 4; }
.service:nth-of-type(5) { grid-column: 4 / 6; }

@media (max-width: 1180px) {
  /* Tablet + mobile: collapse to a single column with explicit stack
     order: Copywriting → Animations label → For Brands → For Private
     Clients → Automations → Decentralization. The desktop grid-row
     pinning on cards 4/5 (`grid-row: 2`) would otherwise leak through
     and float them above 1/2/3 — !important kills it for sure. */
  .services__grid {
    grid-template-columns: 1fr;
    gap: clamp(20px, 2vw, 32px);
  }
  .services__animations-label {
    grid-column: 1 !important;
    grid-row: 2 !important;
    transform: none;
    align-self: auto;
    margin-top: clamp(40px, 6vw, 64px);
    padding-bottom: 4px;
  }
  .service { grid-row: auto !important; grid-column: auto !important; }
  .service:nth-of-type(1) { grid-row: 1 !important; }
  .service:nth-of-type(2) { grid-row: 3 !important; }
  .service:nth-of-type(3) { grid-row: 4 !important; }
  .service:nth-of-type(4) { grid-row: 5 !important; }
  .service:nth-of-type(5) { grid-row: 6 !important; }
  /* The label is no longer on the same row as the brands/private
     cards in this layout, so restore their top-border hairlines. */
  .service:nth-of-type(2) .service__head,
  .service:nth-of-type(3) .service__head { border-top: 1px solid var(--rule); }
}
.service {
  position: relative;
  padding: 40px 0 0;
}
.service__head {
  display: flex; align-items: baseline; gap: 18px;
  border-top: 1px solid var(--rule);
  padding-top: 32px;
  margin-bottom: 28px;
}
.service__index {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  color: var(--gold);
}
.service__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(26px, 2.2vw, 36px);
  line-height: 1.05;
  margin: 0;
  color: var(--cream);
}
.service__lede {
  font-size: 21px;
  line-height: 1.5;
  color: var(--cream-dim);
  margin: 0 0 28px;
  max-width: 36ch;
  font-family: var(--ff-italic);
  font-style: italic;
}
.service__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
}
.service__list li {
  padding: 16px 0 16px 28px;
  border-bottom: 1px solid var(--rule);
  font-size: 16px;
  line-height: 1.5;
  color: var(--cream);
  position: relative;
  /* translate instead of padding-shift on hover so the text box width
     never changes — otherwise a word near the edge can re-wrap mid-hover. */
  transition: transform .3s cubic-bezier(.2,.7,.2,1), color .3s;
}
.service__list li:last-child { border-bottom: 0; }
.service__list li::before {
  content: ""; position: absolute; left: 0; top: 23px;
  width: 14px; height: 1px;
  background: var(--gold);
  transition: width .3s;
}
.service__list li:hover {
  transform: translateX(8px);
  color: var(--gold-glow);
}
.service__list li:hover::before { width: 22px; }

.services__audiences {
  max-width: var(--maxw);
  margin: clamp(60px, 7vw, 100px) auto 0;
  padding: 24px var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 18px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-family: var(--ff-display);
  font-size: clamp(18px, 1.6vw, 24px);
  letter-spacing: 0.02em;
}
.services__audiences-label {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.services__audiences-sep { color: var(--muted); }

/* ─── Tools ──────────────────────────────────────────────────── */
.tools {
  padding-bottom: clamp(40px, 5vw, 70px);
  position: relative;
  z-index: 3;
  border-top: 1px solid var(--rule);
}
.tools__head {
  padding: clamp(48px, 5vw, 80px) var(--gutter) 0;
  max-width: var(--maxw);
  margin: 0 auto;
}
.tools__display { font-size: clamp(36px, 4.4vw, 64px); }
.tools__head .lede { margin-top: 18px; }

/* Responsive layout: aside on the right (desktop) or inline panel after the
   clicked row (mobile). One source state, two render targets. */
.tools__layout {
  max-width: var(--maxw);
  margin: 56px auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1.4fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.tools__accordion {
  list-style: none; padding: 0; margin: 0;
  border-top: 1px solid var(--rule);
}
.tools__item { border-bottom: 1px solid var(--rule); }
/* The base .tools__panel rule (further down) sets display:flex on every
   panel, so the modifier hides need double-class specificity to outweigh
   it without resorting to !important. */
.tools__panel.tools__panel--aside {
  position: sticky;
  top: 88px;
  display: flex; flex-direction: column; gap: 22px;
}
.tools__panel.tools__panel--inline { display: none; }
.tools__row-toggle { display: none; }

.tools__split { display: none; }
.tools__list { display: none; }

@media (max-width: 900px) {
  .tools__layout { grid-template-columns: 1fr; }
  .tools__panel.tools__panel--aside { display: none; }
  .tools__panel.tools__panel--inline {
    display: flex; flex-direction: column;
    gap: 20px;
    padding: 18px 0 24px;
  }
  .tools__row-toggle { display: inline-flex; }
  .tools__row-role { display: none; }
}

.tools__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  border-top: 1px solid var(--rule);
}
.tools__list li { display: block; }
.tools__row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  color: var(--cream-dim);
  font-family: var(--ff-body);
  text-align: left;
  cursor: pointer;
  transition: color .25s, padding .3s cubic-bezier(.2,.7,.2,1);
  position: relative;
}
.tools__row::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 0; height: 1px; background: var(--gold);
  transform: translateY(-50%);
  transition: width .35s cubic-bezier(.2,.7,.2,1);
}
.tools__row:hover { color: var(--cream); }
.tools__row.is-active {
  color: var(--cream);
  padding-left: 28px;
}
.tools__row.is-active::before { width: 18px; }
.tools__row-num {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--gold);
  min-width: 22px;
}
.tools__row-name {
  font-family: var(--ff-display);
  font-size: clamp(18px, 1.5vw, 22px);
  letter-spacing: -0.005em;
}
.tools__row-role {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-dim);
  opacity: 0.55;
}
.tools__row-arrow {
  font-family: var(--ff-body);
  color: var(--gold);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .3s, transform .3s cubic-bezier(.2,.7,.2,1);
}
.tools__row.is-active .tools__row-arrow,
.tools__row:hover .tools__row-arrow {
  opacity: 1; transform: none;
}

.tools__panel {
  position: sticky;
  top: 88px;
  display: flex; flex-direction: column;
  gap: 28px;
  animation: panelIn .55s cubic-bezier(.2,.7,.2,1);
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.tools__panel-media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(135deg, #0e1c1a, #0a1413);
}
.tools__panel-media image-slot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  --is-placeholder-bg: linear-gradient(135deg, #0e1c1a, #0a1413);
}
.tools__panel-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}
.tools__panel-tag {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 6px 12px;
  background: rgba(7,13,12,0.7);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(201,163,92,0.25);
  border-radius: 999px;
}
.tools__panel-copy { display: flex; flex-direction: column; gap: 14px; }
.tools__panel-title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.008em;
  margin: 0;
  color: var(--cream);
  text-wrap: balance;
}
.tools__panel-body {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--cream-dim);
  max-width: 55ch;
}
.tools__panel-meta {
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-dim);
  padding-top: 8px;
}
.tools__panel-num { color: var(--gold); }

/* Thumbnail rail — small previews of each example sitting under the
   main media, replacing the previous thin-bar indicators. Always
   one row: thumbs share the available width equally and shrink as
   the count grows, never wrapping. */
.tools__thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: 4px;
  width: 100%;
}
.tools__thumb {
  appearance: none;
  background: rgba(7, 13, 12, 0.6);
  border: 1px solid rgba(243, 234, 216, 0.12);
  border-radius: 4px;
  padding: 0;
  cursor: pointer;
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color .25s ease, transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s;
}
.tools__thumb:hover {
  border-color: rgba(201, 163, 92, 0.55);
  transform: translateY(-1px);
}
.tools__thumb.is-active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 6px 18px -8px rgba(231, 200, 133, 0.7);
}
.tools__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tools__thumb-video,
.tools__thumb-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: linear-gradient(135deg, rgba(13, 77, 74, 0.25), rgba(7, 13, 12, 0.6));
  width: 100%; height: 100%;
}

/* Hover-revealed prev/next arrows on the main instrument media. */
.tools__nav {
  appearance: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(7, 13, 12, 0.65);
  border: 1px solid rgba(243, 234, 216, 0.18);
  color: var(--cream);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  transition: opacity .25s ease, color .2s, border-color .2s, background .2s, transform .25s cubic-bezier(.2,.7,.2,1);
}
.tools__nav--prev { left: 12px; }
.tools__nav--next { right: 12px; }
.tools__panel-media:hover .tools__nav,
.tools__nav:focus-visible {
  opacity: 1;
  pointer-events: auto;
}
.tools__nav:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(201, 163, 92, 0.14);
  transform: translateY(-50%) scale(1.06);
}
@media (hover: none) {
  /* Touch devices: arrows are always visible (no hover state). */
  .tools__nav { opacity: 1; pointer-events: auto; }
}

@media (max-width: 900px) {
  .tools__split { grid-template-columns: 1fr; }
  .tools__panel { position: static; }
  .tools__row-role { display: none; }
  .tools__row { grid-template-columns: auto 1fr auto; }
}

/* ─── Lightbox ─────────────────────────────────────────────── */
.lb {
  position: fixed; inset: 0;
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(7, 13, 12, 0.92);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  animation: lbFade .22s cubic-bezier(.2,.7,.2,1);
}
@keyframes lbFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lb__stage {
  position: relative;
  width: min(92vw, 1600px);
  height: min(88vh, 90vh);
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-out;
}
.lb__media {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8);
  animation: lbZoom .35s cubic-bezier(.2,.7,.2,1);
}
/* Images get scaled UP to fill the lightbox stage so a low-res
   screenshot (e.g. Enki Art at 812×444) is actually readable. The
   stage caps height; object-fit keeps the aspect ratio intact. */
img.lb__media {
  cursor: zoom-out;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
video.lb__media { cursor: default; outline: 1px solid var(--rule); }
@keyframes lbZoom {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: none; }
}
.lb__close,
.lb__nav {
  appearance: none;
  background: rgba(7, 13, 12, 0.6);
  border: 1px solid var(--rule);
  color: var(--cream);
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color .25s, border-color .25s, background .25s, transform .25s cubic-bezier(.2,.7,.2,1);
  position: absolute;
  z-index: 2;
}
.lb__close:hover,
.lb__nav:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(201, 163, 92, 0.08);
}
.lb__close {
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
}
.lb__nav {
  top: 50%; transform: translateY(-50%);
  width: 56px;
  height: 56px;
}
.lb__nav:hover { transform: translateY(-50%) scale(1.05); }
.lb__nav--prev { left: 24px; }
.lb__nav--next { right: 24px; }
.lb__counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.lb__counter span { color: var(--gold); opacity: 0.7; margin: 0 6px; }

@media (max-width: 720px) {
  .lb__close { top: 14px; right: 14px; width: 36px; height: 36px; }
  .lb__nav { width: 40px; height: 40px; }
  .lb__nav--prev { left: 8px; }
  .lb__nav--next { right: 8px; }
  .lb__stage { width: 96vw; height: 84vh; }
}
.award {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  /* Match the visible width of the testimonials grid above: maxw
     minus the section gutter on each side. Borders align cleanly
     with the left/right edges of the quote cards. */
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--maxw) - 2 * var(--gutter));
  margin: 48px auto 0;
  padding: clamp(28px, 3vw, 40px) clamp(28px, 3.5vw, 48px);
  border: 1px solid rgba(201, 163, 92, 0.22);
  border-radius: 4px;
  background:
    radial-gradient(ellipse at left, rgba(201,163,92,0.10), transparent 60%),
    linear-gradient(180deg, rgba(243,234,216,0.02), rgba(243,234,216,0));
  position: relative;
  overflow: hidden;
}
.award::before {
  content: ""; position: absolute; top: 0; left: 0; width: 50%; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.award__main {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: clamp(24px, 3vw, 40px);
}
.award__rank {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding-right: clamp(20px, 3vw, 36px);
  border-right: 1px solid var(--rule);
  min-width: 110px;
}
.award__rank-num {
  font-family: var(--ff-display);
  font-size: clamp(56px, 6vw, 88px);
  line-height: 0.9;
  color: var(--gold);
  letter-spacing: -0.02em;
}
.award__rank-of {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-top: 6px;
}
.award__copy { display: flex; flex-direction: column; gap: 10px; }
.award__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.award__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.15;
  margin: 0;
  color: var(--cream);
  text-wrap: balance;
}
.award__body {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--cream-dim);
  max-width: 56ch;
}
.award__handle {
  margin: 12px 0 0;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-glow);
  opacity: 0.85;
}
.award__cta {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 18px;
  align-self: flex-start;
  padding: 10px 14px 10px 10px;
  border-radius: 999px;
  border: 1px solid rgba(201, 163, 92, 0.22);
  color: var(--cream);
  white-space: nowrap;
  text-decoration: none;
  background: rgba(7, 13, 12, 0.4);
  transition: color .25s, border-color .25s, transform .25s cubic-bezier(.2,.7,.2,1), background .25s;
}
.award__cta:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(201, 163, 92, 0.05);
  transform: translateY(-1px);
}
.award__x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(201, 163, 92, 0.3);
  background: rgba(7, 13, 12, 0.5);
  color: var(--cream);
  transition: all .3s cubic-bezier(.2,.7,.2,1);
}
.award__cta:hover .award__x {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  transform: rotate(8deg);
}
.award__cta-text {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.award__cta-arrow {
  font-family: var(--ff-body);
  color: var(--gold);
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.award__cta:hover .award__cta-arrow { transform: translateX(4px); }

/* Right pane — video / placeholder */
.award__video {
  margin: 0;
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ink-2) 0%, var(--ink) 100%);
  border: 1px solid var(--rule);
  align-self: start;
}
.award__video-player {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}
.award__video-empty {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
  color: var(--cream-dim);
  text-align: center;
  padding: 20px;
  background-image:
    radial-gradient(ellipse at center, rgba(201, 163, 92, 0.06), transparent 60%);
}
.award__video-icon {
  display: inline-flex; color: var(--gold);
  opacity: 0.7;
  transition: opacity .3s, transform .3s cubic-bezier(.2,.7,.2,1);
}
.award__video:hover .award__video-icon {
  opacity: 1; transform: scale(1.04);
}
.award__video-label {
  font-family: var(--ff-display);
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--cream);
  letter-spacing: -0.005em;
}
.award__video-hint {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-dim);
  opacity: 0.7;
}

@media (max-width: 900px) {
  .award { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .award__main {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .award__rank {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 14px;
    min-width: 0;
  }
}

/* ─── Builder ────────────────────────────────────────────────── */
.builder {
  padding: clamp(80px, 9vw, 140px) var(--gutter);
  background:
    radial-gradient(ellipse at 80% 20%, rgba(13, 77, 74, 0.18), transparent 50%),
    var(--ink-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
  z-index: 3;
}
.builder__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.builder__copy .display { margin-bottom: 28px; }
.builder__copy .lede { margin: 0 0 18px; }

/* Left column wraps the copy and the under-the-hood rails table so
   they share the same column while the Enki Art screenshot stretches
   along the full height of the right column. */
.builder__left {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3.5vw, 48px);
}

.builder__media {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 92px;
}
/* The image hugs its own intrinsic ratio — no fixed-height frame, no
   gradient padding. Border traces the actual picture edge. */
.builder__media-img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 6px;
  /* Image carries its own ratio; the wrapper sizes to it exactly. */
}
.builder__media-cap {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
}

/* Chain chips — Solana / Base / LUKSO row sitting under the Enki Art
   screenshot to show where the marketplace will launch. */
.builder__chains {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}
.builder__chains-label {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.builder__chains-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(14px, 2.5vw, 28px);
}
.builder__chain {
  display: inline-flex;
  align-items: center;
  color: var(--cream);
  opacity: 0.85;
  transition: opacity .2s;
}
.builder__chain:hover { opacity: 1; }
/* Full brand lockup — mark + wordmark in the brand's own typeface,
   not the website font. Each chain's image already includes the
   correct wordmark, so all we do here is size them to a common
   visual height for the row. */
.builder__chain-lockup {
  display: inline-flex;
  align-items: center;
  height: 22px;
  color: var(--cream);
}
.builder__chain-lockup--image img {
  display: block;
  height: 100%;
  width: auto;
  object-fit: contain;
}
.builder__chain-lockup--mono img {
  /* Flatten brand colour (Solana gradient, LUKSO pink, etc.) to
     off-white so the row reads as a coherent set rather than a
     fruit salad of brand palettes fighting the cream/gold theme. */
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

/* Compact left-column table — sits under the copy, not as its own
   full-width strip below the grid. */
.builder__rails {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: clamp(20px, 2.5vw, 32px);
  border-top: 1px solid var(--rule);
}
.builder__rails-label {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.builder__rails-list { display: flex; flex-direction: column; gap: 0; }
.rail {
  display: flex; align-items: baseline; gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .8s, transform .8s;
}
.builder__rails.is-revealed .rail,
.builder__rails[data-reveal].is-revealed .rail,
.builder__rails-list .rail {
  opacity: 1; transform: none;
}
.rail__k {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  min-width: 90px;
  flex-shrink: 0;
}
.rail__dots {
  flex: 1; height: 1px;
  background-image: linear-gradient(90deg, var(--cream-dim) 0 4px, transparent 4px 8px);
  background-size: 8px 1px;
  opacity: 0.3;
  align-self: center;
}
.rail__v {
  font-size: 14px;
  color: var(--cream);
  text-align: right;
  max-width: 30ch;
}

@media (max-width: 900px) {
  .builder__grid {
    grid-template-columns: 1fr;
    gap: clamp(32px, 6vw, 50px);
  }
  .builder__left { gap: clamp(28px, 6vw, 40px); }
  .builder__media {
    position: static;
    top: auto;
  }
  .builder__media image-slot { height: clamp(220px, 56vw, 380px); }
  .rail__v { text-align: left; max-width: 100%; }
  .rail__dots { display: none; }
}

/* ─── Testimonials ───────────────────────────────────────────── */
.quotes {
  padding-bottom: clamp(60px, 7vw, 100px);
  position: relative;
  z-index: 3;
  border-top: 1px solid var(--rule);
}
.quotes__grid {
  max-width: var(--maxw);
  margin: 60px auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.quote {
  position: relative;
  margin: 0;
  padding: 44px 36px 36px;
  border: 1px solid var(--rule);
  background: linear-gradient(180deg, rgba(243,234,216,0.02), rgba(243,234,216,0));
  border-radius: 2px;
  overflow: hidden;
}
.quote::before {
  content: ""; position: absolute; top: 0; left: 0; width: 40%; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.quote__mark {
  position: absolute;
  top: 4px; left: 24px;
  font-family: var(--ff-display);
  font-size: 96px;
  line-height: 1;
  color: var(--gold);
  opacity: 0.5;
  pointer-events: none;
}
.quote__body {
  margin: 0;
  font-family: var(--ff-italic);
  font-style: italic;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.45;
  color: var(--cream);
  text-wrap: pretty;
}
.quote__cite {
  margin-top: 24px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-dim);
  display: flex; gap: 10px;
}
.quote__name { color: var(--gold); }

@media (max-width: 800px) {
  .quotes__grid { grid-template-columns: 1fr; }
}

/* ─── Final CTA ──────────────────────────────────────────────── */
.cta {
  padding: clamp(100px, 13vw, 200px) var(--gutter);
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 3;
  background:
    radial-gradient(ellipse at center bottom, rgba(201, 163, 92, 0.12), transparent 60%),
    var(--ink);
  border-top: 1px solid var(--rule);
}
.cta__inner { max-width: 760px; margin: 0 auto; position: relative; z-index: 1; }
.cta__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(40px, 6.2vw, 96px);
  line-height: 1.12;
  letter-spacing: -0.018em;
  margin: 0 0 56px;
  text-wrap: balance;
}
.cta__title em {
  font-family: var(--ff-italic);
  font-style: italic;
  color: var(--gold);
}
.cta__priceNote {
  margin: 0 auto 36px;
  max-width: 60ch;
  font-family: var(--ff-italic);
  font-style: italic;
  font-size: clamp(17px, 1.35vw, 22px);
  line-height: 1.55;
  color: var(--gold-glow);
  text-wrap: pretty;
}
.cta__priceNote::before, .cta__priceNote::after {
  content: "—"; color: var(--gold); opacity: 0.55; margin: 0 8px;
}
.cta__sub {
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.55;
  color: var(--cream-dim);
  margin: 0 auto 48px;
  max-width: 50ch;
}
.cta__meta {
  margin: 36px auto 0;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.cta__dot {
  width: 4px; height: 4px; border-radius: 50%; background: var(--gold);
}

/* ─── Project brief modal ────────────────────────────────────── */
.brief-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(24px, 5vh, 64px) clamp(12px, 3vw, 32px);
  background: rgba(7, 13, 12, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  overflow-y: auto;
  animation: briefModalIn .3s cubic-bezier(.2,.7,.2,1);
}
@keyframes briefModalIn {
  from { opacity: 0; backdrop-filter: blur(0); }
  to   { opacity: 1; }
}
.brief-modal__dialog {
  width: 100%;
  max-width: 720px;
  background:
    radial-gradient(ellipse at 75% 0%, rgba(13, 77, 74, 0.22), transparent 60%),
    var(--ink-2);
  border: 1px solid rgba(201, 163, 92, 0.22);
  border-radius: 10px;
  padding: clamp(32px, 4vw, 56px) clamp(28px, 4vw, 48px);
  position: relative;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  animation: briefDialogIn .35s cubic-bezier(.2,.7,.2,1);
}
@keyframes briefDialogIn {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}
.brief-modal__dialog::before {
  /* Same gold-rule motif as the recognition card. */
  content: "";
  position: absolute; top: 0; left: 0; width: 50%; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.brief-modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(7, 13, 12, 0.7);
  border: 1px solid rgba(243, 234, 216, 0.18);
  color: var(--cream);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color .2s, border-color .2s, background .2s, transform .25s cubic-bezier(.2,.7,.2,1);
  z-index: 2;
}
.brief-modal__close:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(201, 163, 92, 0.12);
  transform: scale(1.06);
}
.brief-modal__head {
  text-align: center;
  margin-bottom: 36px;
}
.brief-modal__head .eyebrow {
  justify-content: center;
}
.brief-modal__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 0 0 18px;
  text-wrap: balance;
  color: var(--cream);
}
.brief-modal__title em {
  font-family: var(--ff-italic);
  font-style: italic;
  color: var(--gold);
}
.brief-modal__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin-top: 8px;
}
.brief-modal__alt {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-dim);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 4px;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.brief-modal__alt:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.brief__form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  text-align: left;
}
.brief__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.brief__label {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brief__optional,
.brief__required {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  font-style: italic;
  text-transform: lowercase;
  padding: 2px 8px;
  border-radius: 999px;
}
.brief__optional {
  color: var(--cream-dim);
  background: rgba(243, 234, 216, 0.06);
}
.brief__required {
  color: var(--gold-glow);
  background: rgba(201, 163, 92, 0.10);
  border: 1px solid rgba(201, 163, 92, 0.28);
}

.brief__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.brief__choice {
  appearance: none;
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(7, 13, 12, 0.6);
  border: 1px solid rgba(243, 234, 216, 0.14);
  color: var(--cream);
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: color .25s, border-color .25s, background .25s, transform .25s cubic-bezier(.2,.7,.2,1);
}
.brief__choice:hover {
  border-color: rgba(201, 163, 92, 0.55);
  color: var(--gold-glow);
  transform: translateY(-1px);
}
.brief__choice.is-active {
  border-color: var(--gold);
  background: rgba(201, 163, 92, 0.14);
  color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 8px 24px -10px rgba(231, 200, 133, 0.5);
}

.brief__input {
  appearance: none;
  width: 100%;
  font-family: var(--ff-body);
  font-size: 15px;
  color: var(--cream);
  background: rgba(7, 13, 12, 0.55);
  border: 1px solid rgba(243, 234, 216, 0.14);
  border-radius: 6px;
  padding: 14px 16px;
  transition: border-color .25s, background .25s, box-shadow .25s;
  box-sizing: border-box;
}
.brief__input::placeholder { color: rgba(243, 234, 216, 0.35); }
.brief__input:hover { border-color: rgba(243, 234, 216, 0.28); }
.brief__input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(7, 13, 12, 0.75);
  box-shadow: 0 0 0 1px var(--gold), 0 6px 24px -12px rgba(231, 200, 133, 0.4);
}
.brief__input--select {
  /* Custom caret via background image so the native one isn't fighting our theme. */
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1 L6 6 L11 1' fill='none' stroke='%23c9a35c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.brief__input--textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.5;
  font-family: var(--ff-body);
}

.brief__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.brief__panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 8px;
  animation: briefIn .35s cubic-bezier(.2,.7,.2,1);
}
@keyframes briefIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.brief__submit { margin: 0; }
.brief__submit[disabled] { opacity: 0.6; cursor: progress; }

/* Honeypot — visually removed, still picked up by bots. */
.brief__honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

.brief-modal__error {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff6a8e;
  background: rgba(224, 0, 80, 0.08);
  border: 1px solid rgba(224, 0, 80, 0.35);
  border-radius: 6px;
  padding: 12px 16px;
  width: 100%;
}
.brief-modal__error-detail {
  display: block;
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--cream);
  background: rgba(7, 13, 12, 0.4);
  border-left: 2px solid rgba(255, 106, 142, 0.5);
  padding: 8px 10px;
  border-radius: 3px;
  white-space: pre-wrap;
  word-break: break-word;
}
.brief-modal__error .brief-modal__alt {
  align-self: flex-start;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 4px 0;
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 10.5px;
}
.brief-modal__error .brief-modal__alt:hover { color: var(--gold); border-bottom-color: var(--gold); }

.brief-modal__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 0 8px;
  text-align: center;
  animation: briefSuccessIn .35s cubic-bezier(.2,.7,.2,1);
}
@keyframes briefSuccessIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.brief-modal__success-mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 163, 92, 0.12);
  border: 1px solid var(--gold);
  color: var(--gold);
  box-shadow: 0 0 0 6px rgba(201, 163, 92, 0.06);
}
.brief-modal__success-body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--cream-dim);
  max-width: 36ch;
  margin: 0;
}
.brief-modal__success .btn--ghost {
  margin-top: 8px;
}

@media (max-width: 700px) {
  .brief__row { grid-template-columns: 1fr; }
  .brief-modal { padding: 12px; align-items: stretch; }
  .brief-modal__dialog { padding: clamp(24px, 6vw, 36px) clamp(20px, 5vw, 32px); }
  .brief-modal__close { top: 12px; right: 12px; width: 32px; height: 32px; }
  .brief-modal__actions { flex-direction: column; align-items: stretch; }
  .brief__submit { justify-content: center; }
  .brief-modal__alt { align-self: center; }
}

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
  padding: 36px var(--gutter);
  border-top: 1px solid var(--rule);
  background: var(--ink);
  position: relative;
  z-index: 3;
}
.footer__row {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.footer__brand {
  display: inline-flex; align-items: center; gap: 14px;
  justify-self: start;
}
.footer__mark img {
  display: block;
  height: 36px; width: auto;
}
.footer__brand-text {
  display: flex; flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}
.footer__name {
  font-family: var(--ff-display);
  font-size: 20px;
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--cream);
}
.footer__role {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-top: 4px;
}
.footer__socials {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 10px; align-items: center;
  justify-self: center;
}
.footer__socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--cream-dim);
  text-decoration: none;
  transition: color .25s, border-color .25s, background .25s, transform .25s;
}
.footer__socials a:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(201, 163, 92, 0.06);
  transform: translateY(-2px);
}
.footer__year { justify-self: end; }

@media (max-width: 700px) {
  .footer__row {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 20px;
  }
  .footer__brand,
  .footer__brand-text { align-items: center; justify-self: center; }
  .footer__socials { justify-self: center; }
  .footer__year { justify-self: center; }
}
