/* Team Audio homepage concept
   Palette: ink #231F20 and star gold #FFB31F are sampled from the Team Audio logo;
   slate #313140 is carried over from the current site; tally red comes from the
   LED key displays on their own comms panel. */

@font-face {
  font-family: "Archivo";
  src: url("/case-studies/concepts/team-audio/assets/fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/case-studies/concepts/team-audio/assets/fonts/jetbrains-mono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Righteous";
  src: url("/case-studies/concepts/team-audio/assets/fonts/righteous-wordmark.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #231F20;
  --ink-soft: #57514F;
  --paper: #F4F1EA;
  --paper-2: #EBE6DB;
  --white: #FFFFFF;
  --line: #DDD6C8;
  --line-strong: #CBC2B0;
  --stage: #111117;
  --stage-2: #17171F;
  --slate: #313140;
  --mist: #B9B6C6;
  --gold: #FFB31F;
  --gold-hover: #FFC44F;
  --gold-ink: #8A5300;
  --gold-tint: #FFF0C9;
  --tally: #FF5147;
  --tally-ink: #A3271D;
  --led: #F27D73;
  --focus: #8A5300;
  --radius: 20px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: var(--gold-ink); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; }
[hidden] { display: none !important; }
section[id], [id^="service-"] { scroll-margin-top: calc(var(--header-h) + 16px); }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .wrap { padding-inline: 32px; } }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-align: center;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-hover); }
.btn-ghost { color: var(--paper); border-color: rgba(255, 255, 255, .38); }
.btn-ghost:hover { border-color: var(--paper); }
.btn-ghost-dark { color: var(--paper); border-color: rgba(255, 255, 255, .3); }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: .95rem; }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-logo { height: 42px; width: auto; }
.brand-word { font-family: "Righteous", var(--sans); font-size: 1.45rem; line-height: 1; letter-spacing: .01em; white-space: nowrap; }
@media (max-width: 374px) {
  .header-in { gap: 12px; }
  .site-header .brand { gap: 8px; }
  .site-header .brand-logo { height: 34px; }
  .site-header .brand-word { font-size: 1.22rem; }
  .menu-btn { padding-inline: 14px; gap: 8px; }
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: transform .3s ease;
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-in { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.nav { display: none; margin-left: auto; }
.nav ul { display: flex; gap: 26px; list-style: none; padding: 0; }
.nav a { text-decoration: none; font-weight: 600; font-size: .98rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--gold); }
.header-phone { display: none; font-family: var(--mono); font-size: .9rem; text-decoration: none; white-space: nowrap; }
.header-phone:hover { text-decoration: underline; }
.header-cta { display: none; }
.menu-btn {
  margin-left: auto; display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 8px 16px; border-radius: 999px;
  background: var(--ink); color: var(--paper); border: 0; font: inherit; font-weight: 700; cursor: pointer;
}
.menu-btn-lines { width: 16px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; position: relative; }
.menu-btn-lines::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid currentColor; }
@media (min-width: 900px) { .header-cta { display: inline-flex; } .menu-btn { margin-left: 0; } .header-in { justify-content: space-between; } }
@media (min-width: 1080px) {
  :root { --header-h: 76px; }
  .nav { display: block; }
  .menu-btn { display: none; }
  .brand-logo { height: 48px; }
}
@media (min-width: 1240px) { .header-phone { display: inline; } }

/* Mobile menu */
.menu { position: fixed; inset: 0; z-index: 60; background: rgba(17, 17, 23, .55); display: flex; justify-content: flex-end; }
.menu-panel {
  width: min(400px, 100%); height: 100%; overflow-y: auto;
  background: var(--paper); padding: 16px 20px 28px; display: flex; flex-direction: column; gap: 22px;
}
.menu-top { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.menu-close {
  min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--ink);
  background: transparent; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer;
}
.menu-links { list-style: none; padding: 0; }
.menu-links a {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--line);
  font-size: 1.5rem; font-weight: 800; font-stretch: 110%; text-decoration: none; letter-spacing: -.01em;
}
.menu-contact { display: flex; flex-direction: column; gap: 8px; font-family: var(--mono); font-size: .95rem; margin: 0; }
body.menu-open { overflow: hidden; }

/* Shared type */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px;
  font-family: var(--mono); font-size: .82rem; line-height: 1.3; color: var(--gold-ink);
}
.eyebrow-dark { color: var(--gold); }
h1, h2 { font-weight: 800; font-stretch: 112%; letter-spacing: -.025em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.5rem); line-height: 1.02; margin-bottom: .45em; }
h3 { font-size: 1.3rem; font-weight: 750; font-stretch: 104%; line-height: 1.18; letter-spacing: -.01em; }
.section { padding-block: clamp(64px, 8vw, 120px); }
.section-head { max-width: 780px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-lede { font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem); color: var(--ink-soft); max-width: 40em; }

.tally {
  flex: none; width: 9px; height: 9px; border-radius: 50%;
  background: var(--tally); box-shadow: 0 0 0 3px rgba(255, 81, 71, .18), 0 0 12px rgba(255, 81, 71, .7);
  animation: tally 2.4s ease-in-out infinite;
}
@keyframes tally { 50% { box-shadow: 0 0 0 5px rgba(255, 81, 71, .08), 0 0 4px rgba(255, 81, 71, .4); } }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: var(--paper);
  background:
    radial-gradient(55% 60% at 85% 20%, rgba(92, 70, 255, .30), transparent 70%),
    radial-gradient(40% 45% at 0% 100%, rgba(255, 179, 31, .10), transparent 70%),
    var(--stage);
  padding-top: clamp(40px, 6vw, 96px);
}
.hero-spectrum {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 160px;
  fill: none; stroke: rgba(255, 179, 31, .38); stroke-width: 1.4; pointer-events: none;
}
.hero-spectrum path { vector-effect: non-scaling-stroke; }
.hero-grid { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.hero h1 { font-size: clamp(2.45rem, 1.5rem + 4.4vw, 5.1rem); line-height: .98; margin-bottom: .45em; }
.hero .lede { font-size: clamp(1.06rem, .98rem + .4vw, 1.27rem); color: #D2CFDC; max-width: 34em; margin-bottom: 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero :focus-visible { outline-color: var(--gold); }
.hero-proof { list-style: none; padding: 0; display: grid; gap: 14px; }
@media (min-width: 620px) { .hero-proof { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.hero-proof li { border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.proof-k { font-family: var(--mono); font-size: .8rem; color: var(--gold); }
.proof-v { font-size: .94rem; line-height: 1.4; color: #D2CFDC; }
.hero-media { position: relative; margin: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 40px 80px rgba(0, 0, 0, .5); border: 1px solid rgba(255, 255, 255, .1); }
.hero-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 75% 55%; }
@media (min-width: 960px) { .hero-media img { aspect-ratio: 5 / 4.4; } }
.on-air {
  position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px; background: rgba(10, 10, 13, .8);
  border: 1px solid rgba(255, 255, 255, .14); font-family: var(--mono); font-size: .78rem; color: var(--paper);
}

/* Credits */
.credits { position: relative; padding-block: 56px 64px; }
.credits-title { font-family: var(--mono); font-size: .82rem; font-weight: 500; font-stretch: 100%; letter-spacing: 0; color: var(--mist); margin: 0 0 18px; line-height: 1.3; }
.credits-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.credits-list li { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-stretch: 106%; font-size: clamp(.98rem, .9rem + .3vw, 1.12rem); color: #E4E1EC; }
.credits-list li::before {
  content: ""; flex: none; width: 10px; height: 10px; background: var(--gold);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* Why */
.why { background: var(--white); }
.why-top { display: grid; gap: 32px; align-items: center; margin-bottom: clamp(36px, 4vw, 56px); }
@media (min-width: 960px) { .why-top { grid-template-columns: 1.25fr .75fr; gap: 56px; } }
.why-head { max-width: 860px; }
.why-head .section-lede { margin-bottom: 0; }
.why-media { margin: 0; }
.why-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 40% 50%; border-radius: var(--radius); }
.why-media figcaption { font-family: var(--mono); font-size: .8rem; color: var(--ink-soft); margin-top: 10px; }
.promises { list-style: none; padding: 0; display: grid; gap: 16px; }
@media (min-width: 860px) { .promises { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.promise { background: var(--paper); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.promise-no {
  display: inline-block; font-family: var(--mono); font-size: .78rem; color: var(--tally-ink);
  border: 1px solid rgba(163, 39, 29, .35); border-radius: 999px; padding: 3px 10px; margin-bottom: 18px;
}
.promise h3 { margin-bottom: 10px; }
.promise p { margin: 0; color: var(--ink-soft); }

/* Services */
.cards { display: grid; gap: 18px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(35, 31, 32, .08); }
.card-icon {
  width: 50px; height: 50px; padding: 11px; border-radius: 14px; background: var(--gold-tint);
  fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 20px;
}
.card h3 { margin-bottom: 10px; }
.card > p { color: var(--ink-soft); }
.ticks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; font-size: .97rem; }
.ticks li { position: relative; padding-left: 26px; line-height: 1.45; }
.ticks li::before {
  content: ""; position: absolute; left: 6px; top: .2em; width: 6px; height: 11px;
  border-right: 2px solid var(--gold-ink); border-bottom: 2px solid var(--gold-ink); transform: rotate(45deg);
}
.card-aside { font-size: .95rem; }
.card-link {
  margin-top: auto; padding-top: 8px; font-weight: 700; text-decoration: underline;
  text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 5px; align-self: flex-start;
}
.card-link::after { content: " \2192"; }

/* Matrix demo */
.matrix {
  color: var(--paper);
  background:
    radial-gradient(rgba(255, 255, 255, .045) 1px, transparent 1.5px) 0 0 / 22px 22px,
    radial-gradient(50% 60% at 100% 50%, rgba(92, 70, 255, .18), transparent 70%),
    var(--stage-2);
}
.matrix :focus-visible { outline-color: var(--gold); }
.matrix .section-lede { color: #D2CFDC; }
.matrix-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 1020px) { .matrix-grid { grid-template-columns: .9fr 1.1fr; gap: 64px; } }
.matrix-kit { font-family: var(--mono); font-size: .84rem; line-height: 1.6; color: var(--mist); margin: 8px 0 28px; max-width: 36em; }
.panel {
  background: linear-gradient(180deg, #2C2C38, #1B1B24); border-radius: 20px; padding: 14px;
  border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 30px 70px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.panel-face { position: relative; background: linear-gradient(180deg, #363642, #272730); border-radius: 13px; padding: 16px 14px 18px; }
.panel-screw { position: absolute; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #8b8b97, #3a3a44); }
.panel-screw:first-child { left: 10px; }
.panel-screw:nth-child(2) { right: 10px; }
.panel-label { font-family: var(--mono); font-size: .76rem; color: var(--mist); text-align: center; margin: 0 0 12px; }
.keys { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 480px) { .keys { grid-template-columns: repeat(4, 1fr); } }
.key {
  appearance: none; -webkit-appearance: none; border: 0; margin: 0; cursor: pointer;
  display: flex; flex-direction: column; gap: 8px; padding: 10px 8px 9px;
  background: #121217; color: var(--paper); border-radius: 10px; font: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), 0 2px 0 #08080b;
  transition: box-shadow .2s ease, background-color .2s ease;
}
.key:hover { background: #18181f; }
.key-leds { height: 6px; background: radial-gradient(circle, #44444f 1.8px, transparent 2.4px) center / 10px 6px repeat-x; }
.key-display {
  display: block; font-family: var(--mono); font-size: .9rem; line-height: 1.2; color: var(--led);
  background: #070709; border-radius: 6px; padding: 10px 4px; text-align: center; white-space: nowrap;
  text-shadow: 0 0 6px rgba(255, 81, 71, .35);
}
.key-tag { display: block; min-height: 1.2em; font-family: var(--mono); font-size: .7rem; line-height: 1.2; color: #8E8B9B; text-align: center; }
.key.is-active { background: #1E1011; box-shadow: inset 0 0 0 1.5px rgba(255, 81, 71, .75), 0 0 26px rgba(255, 81, 71, .22); }
.key.is-active .key-leds { background-image: radial-gradient(circle, var(--tally) 1.8px, transparent 2.4px); }
.key.is-active .key-display { color: #FF7066; text-shadow: 0 0 10px rgba(255, 81, 71, .8); }
.key.is-active .key-tag { color: #FF8A80; }
.key.is-linked { box-shadow: inset 0 0 0 1.5px rgba(255, 179, 31, .5); }
.key.is-linked .key-leds { background-image: radial-gradient(circle, var(--gold) 1.8px, transparent 2.4px); }
.key.is-linked .key-display { color: var(--gold); text-shadow: 0 0 8px rgba(255, 179, 31, .45); }
.key.is-linked .key-tag { color: var(--gold); }
.readout {
  margin-top: 12px; background: #0A0A0D; border-radius: 13px; padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, .07); min-height: 250px;
}
.readout-name { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 1.02rem; color: #FF8A80; margin: 0 0 14px; }
.readout-list { display: grid; gap: 10px; margin: 0 0 14px; }
@media (min-width: 560px) { .readout-list { grid-template-columns: 1fr 1fr; gap: 18px; } }
.readout-list dt { font-family: var(--mono); font-size: .72rem; color: var(--mist); margin-bottom: 2px; }
.readout-list dd { margin: 0; font-size: .95rem; line-height: 1.45; color: var(--paper); }
.readout-desc { margin: 0; font-size: .95rem; line-height: 1.55; color: #D2CFDC; }

/* Work */
.work { background: var(--white); }
.cues { list-style: none; padding: 0; border-top: 2px solid var(--ink); }
.cue { display: grid; gap: 10px; padding: 26px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .cue { grid-template-columns: 150px 1fr 1.3fr; gap: 32px; padding: 30px 0; } }
.cue-meta { display: flex; gap: 14px; font-family: var(--mono); font-size: .82rem; }
@media (min-width: 900px) { .cue-meta { flex-direction: column; gap: 4px; } }
.cue-no { color: var(--tally-ink); }
.cue-when { color: var(--ink-soft); }
.cue-head h3 { margin-bottom: 6px; font-size: clamp(1.2rem, 1.1rem + .4vw, 1.45rem); }
.cue-tags { margin: 0; font-size: .93rem; color: var(--gold-ink); font-weight: 600; }
.cue-body { margin: 0; color: var(--ink-soft); }
.cues-more { margin: 28px 0 0; color: var(--ink-soft); max-width: 60em; }
.cues-more-k { display: block; font-family: var(--mono); font-size: .82rem; color: var(--tally-ink); margin-bottom: 6px; }

/* Team */
.team { background: var(--paper); }
.team-grid { display: grid; gap: 44px; }
@media (min-width: 1020px) { .team-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; } }
.team-intro > p:not(.eyebrow):not(.section-lede) { color: var(--ink-soft); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 32px 0 0; }
.stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; border-top: 2px solid var(--ink); padding-top: 12px; }
.stats dd { margin: 0; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 800; font-stretch: 112%; line-height: 1; letter-spacing: -.02em; }
.stats dt { font-size: .86rem; line-height: 1.35; color: var(--ink-soft); margin-top: 8px; }
.people { display: grid; gap: 18px; }
.person {
  display: grid; grid-template-columns: 84px 1fr; gap: 0 16px; align-items: start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
}
.person-text { display: contents; }
.person picture { grid-row: 1 / span 2; }
.person h3 { grid-column: 2; align-self: end; }
.person-role { grid-column: 2; align-self: start; }
.person-text p:last-child { grid-column: 1 / -1; margin-top: 16px !important; }
@media (min-width: 520px) {
  .person { grid-template-columns: 140px 1fr; gap: 22px; padding: 22px; }
  .person-text { display: block; }
  .person picture { grid-row: auto; }
  .person-text p:last-child { margin-top: 0 !important; }
}
.person img { width: 100%; border-radius: 14px; filter: grayscale(1) contrast(1.06); }
.person h3 { margin-bottom: 2px; }
.person-role { font-family: var(--mono); font-size: .8rem; color: var(--gold-ink); margin-bottom: 10px; }
.person-text p:last-child { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* Process */
.process { background: var(--white); }
.steps { list-style: none; padding: 0; display: grid; gap: 0; position: relative; }
.step { position: relative; padding: 0 0 28px 64px; }
.step::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step-no {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: var(--gold); font-family: var(--mono); font-size: 1rem;
}
.step h3 { font-size: 1.15rem; margin: 9px 0 6px; }
.step p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
@media (min-width: 940px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .steps::before { content: ""; position: absolute; left: 22px; right: 22px; top: 21px; height: 2px; background: var(--line); }
  .step { padding: 0; }
  .step::before { display: none; }
  .step-no { position: relative; }
  .step h3 { margin-top: 20px; }
}

/* FAQ */
.faq { background: var(--paper); }
.faq-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; } }
.faq-head p:last-child { color: var(--ink-soft); }
.qa { border-bottom: 1px solid var(--line-strong); }
.qa:first-child { border-top: 1px solid var(--line-strong); }
.qa summary {
  list-style: none; cursor: pointer; position: relative; padding: 20px 48px 20px 0;
  font-weight: 700; font-size: 1.08rem; line-height: 1.35;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  background: linear-gradient(var(--ink), var(--ink)) center / 18px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 18px no-repeat;
  transition: transform .25s ease;
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa-a p { margin: 0 0 22px; color: var(--ink-soft); max-width: 46em; }

/* Brief */
.brief {
  color: var(--paper);
  background:
    radial-gradient(50% 60% at 0% 0%, rgba(255, 179, 31, .12), transparent 70%),
    radial-gradient(50% 60% at 100% 100%, rgba(92, 70, 255, .2), transparent 70%),
    var(--stage);
}
.brief .section-lede { color: #D2CFDC; }
.brief-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1020px) {
  .brief-grid { grid-template-columns: .85fr 1.15fr; gap: 56px; }
  .brief-intro { position: sticky; top: calc(var(--header-h) + 24px); }
}
.brief-intro :focus-visible { outline-color: var(--gold); }
.brief-summary { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .13); border-radius: 16px; padding: 18px 20px; margin: 28px 0; }
.brief-summary-title { font-family: var(--mono); font-size: .8rem; color: var(--gold); margin: 0 0 8px; }
.brief-summary ul { list-style: none; padding: 0; }
.brief-summary li { padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: .97rem; line-height: 1.4; }
.brief-summary li:last-child { border-bottom: 0; }
.brief-summary li.is-empty { color: var(--mist); }
.brief-summary .k { display: block; font-family: var(--mono); font-size: .72rem; color: var(--mist); }
.brief-direct { color: var(--mist); margin: 0; }
.brief-direct a { color: var(--paper); text-decoration-color: var(--gold); }

.form {
  background: var(--white); color: var(--ink); border-radius: 24px;
  padding: clamp(20px, 3.4vw, 40px); box-shadow: 0 40px 80px rgba(0, 0, 0, .35);
}
.fs { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.fs legend { padding: 0; margin-bottom: 12px; font-weight: 750; font-size: 1.08rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 15px;
  border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--white);
  font-size: .95rem; line-height: 1.25; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.chip span:hover { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip input:checked + span::before {
  content: ""; width: 5px; height: 10px; margin: -3px 2px 0 0; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg);
}
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.row { display: grid; gap: 14px; margin-bottom: 14px; }
@media (min-width: 640px) { .row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 760px) { .row-3 { grid-template-columns: repeat(3, 1fr); } }
.field label { display: block; font-weight: 650; font-size: .93rem; margin-bottom: 6px; }
.req { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; line-height: 1.4; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: #FFFDF9;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: 3px solid var(--focus); outline-offset: 1px; }
.field input::placeholder { color: #7A7471; }
.field [aria-invalid="true"] { border-color: var(--tally-ink); background: #FFF7F6; }
.err { color: var(--tally-ink); font-size: .88rem; font-weight: 600; margin: 6px 0 0; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.form-note { margin: 0; font-size: .88rem; color: var(--ink-soft); max-width: 30em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 56px 0 28px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; } }
.footer-brand .brand-logo { height: 60px; }
.footer-brand .brand-word { font-size: 1.7rem; }
.footer-line { font-family: var(--mono); font-size: .9rem; color: var(--ink-soft); margin: 14px 0 0; }
.footer-h { font-size: 1rem; font-weight: 750; font-stretch: 100%; letter-spacing: 0; margin: 0 0 12px; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--ink-soft); }
.footer-col a:hover { color: var(--ink); }
.footer-address { color: var(--ink-soft); }
.footer-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-legal p { margin: 0; }

/* Mobile action bar */
.mobile-bar {
  position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: grid; grid-template-columns: 1fr 1.7fr; gap: 8px; padding: 8px;
  background: rgba(17, 17, 23, .94); border-radius: 20px; box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
  transition: transform .3s ease, opacity .3s ease;
}
.mobile-bar :focus-visible { outline-color: var(--gold); }
.mobile-bar .btn { min-height: 48px; padding-inline: 12px; }
.mobile-bar.is-away { transform: translateY(150%); opacity: 0; pointer-events: none; }
@media (max-width: 899px) { .site-footer { padding-bottom: 104px; } }
@media (min-width: 900px) { .mobile-bar { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Thank-you and 404 pages */
.simple-hero { padding-block: clamp(64px, 10vw, 140px); min-height: 60vh; display: flex; align-items: center; }
.simple-in { max-width: 860px; }
.simple-hero .hero-ctas { margin-bottom: 0; }
.simple-footer { padding-top: 0; }
.simple-footer .footer-legal { margin-top: 0; border-top: 0; }
