/* =========================================================================
   Torres AI Studio — Shared site styles
   Used by every page (index, about, services, contact).
   Pairs with colors_and_type.css (design tokens).
   ========================================================================= */

/* ---------- Page reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ---------- Background texture token (warm dot-grid, bold-concept ref) ---------- */
:root {
  --dot-grid: radial-gradient(circle, rgba(13,13,15,0.07) 1px, transparent 1px);
  --dot-grid-size: 22px 22px;
}
body {
  font-family: var(--font-sans);
  background: var(--brand-paper);
  background-image: var(--dot-grid);
  background-size: var(--dot-grid-size);
  color: var(--ink-on-light-1);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--brand-champagne-300); color: var(--brand-charcoal); }

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px){ .container { padding: 0 24px; } }

/* anchor offset for fixed nav */
[id]{ scroll-margin-top: 96px; }

/* ============================================================
   NAV — pill, fixed
   ============================================================ */
.nav-wrap {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  pointer-events: auto;
  background: rgba(244, 239, 231, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(13, 13, 15, 0.08);
  transition: background .3s var(--ease-standard),
              box-shadow .3s var(--ease-standard),
              border-color .3s var(--ease-standard);
}
/* Slightly stronger state once the page has scrolled */
.nav-wrap.scrolled {
  background: rgba(244, 239, 231, 0.9);
  border-bottom-color: rgba(13, 13, 15, 0.10);
  box-shadow: 0 6px 24px rgba(13, 13, 15, 0.06);
}
.nav {
  pointer-events: auto;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  min-height: 66px;
  padding: 8px 24px;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--ink-on-light-1);
}
.nav-brand { display: flex; align-items: center; gap: 14px; }
.nav-brand-mark { width: 42px; height: 42px; border-radius: 8px; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1; }
.nav-brand-1 {
  font-family: var(--font-sans);
  font-size: 15px; font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-on-light-1);
}
.nav-brand-2 {
  font-family: var(--font-sans);
  font-size: 9px; font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(250,247,242,0.55);
  margin-top: 3px;
}
.nav-links {
  justify-self: center;
  display: flex; gap: 36px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--ink-on-light-2);
}
.nav-links a { position: relative; padding: 6px 0; transition: color .24s var(--ease-standard); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink-on-light-1); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--brand-champagne-300);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--brand-charcoal);
  color: var(--brand-paper);
  padding: 7px 7px 7px 18px;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: 13.5px; font-weight: 500;
  transition: background .24s var(--ease-standard);
}
.nav-cta:hover { background: #000; }
.nav-cta .arrow {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--brand-champagne-300);
  color: var(--brand-charcoal);
  display: inline-flex; align-items: center; justify-content: center;
}
.nav-cta .arrow svg { width: 13px; height: 13px; }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  pointer-events: auto;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--brand-champagne-300);
  border: none;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 16px; height: 1.5px;
  background: var(--brand-charcoal);
  position: relative;
  transition: transform .25s var(--ease-out), opacity .2s var(--ease-out);
}
.nav-toggle span::before { position: absolute; top: -5px; }
.nav-toggle span::after  { position: absolute; top: 5px; }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(13,13,15,0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 0 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease-out);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 11vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--brand-paper);
}
.mobile-menu a .em { font-style: italic; text-transform: none; color: var(--brand-champagne-300); }
.mobile-menu .mm-meta {
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250,247,242,0.5);
}
body.menu-open { overflow: hidden; }

@media (max-width: 880px){
  .nav-links { display: none; }
  .nav-brand-2 { display: none; }
  /* Brand far left; Book a call + hamburger grouped on the right. */
  .nav { grid-template-columns: 1fr auto auto; gap: 12px; }
  .nav-cta { padding: 6px 6px 6px 16px; font-size: 12.5px; }
  .nav-toggle { display: inline-flex; justify-self: end; }
}
/* On the smallest phones drop the pill (still reachable in the menu) */
@media (max-width: 480px){
  .nav-cta { display: none; }
  .nav { grid-template-columns: 1fr auto; }
}

/* ============================================================
   HERO (homepage)
   ============================================================ */
.hero {
  position: relative;
  background:
    var(--dot-grid) 0 0 / var(--dot-grid-size),
    radial-gradient(ellipse 70% 40% at 70% 0%, rgba(205,162,132,0.10) 0%, rgba(205,162,132,0) 60%),
    var(--brand-paper);
  padding: 100px 0 72px;
  overflow: hidden;
}
@media (max-width: 700px){ .hero { padding: 92px 0 56px; } }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-sans);
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-champagne-500);
  margin-bottom: 28px;
}
.hero-eyebrow .pip { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-champagne-300); }
.hero-eyebrow .line { width: 38px; height: 1px; background: rgba(13,13,15,0.18); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 72px;
  align-items: end;
  overflow: hidden;
}
@media (max-width: 880px){ .hero-grid { grid-template-columns: 1fr; gap: 56px; } }

.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(56px, 7.5vw, 128px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--brand-charcoal);
  text-transform: uppercase;
  margin: 0;
  text-wrap: balance;
}
.display .accent {
  font-weight: 500;
  color: var(--brand-champagne-500);
  letter-spacing: -0.02em;
  text-transform: none;
}
.display .nb { white-space: nowrap; }
.display .row { display: block; }
.display .row.indent { padding-left: 0.55em; }
.display .row.indent-2 { padding-left: 1.4em; }

.hero-meta { margin-top: 40px; display: flex; gap: 56px; align-items: flex-start; flex-wrap: wrap; }
.hero-lede {
  max-width: 46ch;
  font-family: var(--font-sans);
  font-size: 16.5px; line-height: 1.6;
  color: var(--ink-on-light-2);
  margin: 0;
}
.hero-lede + .hero-lede { margin-top: 14px; }
.hero-actions { display: flex; flex-direction: column; gap: 16px; padding-top: 20px; }

.u-link {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--brand-charcoal);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--brand-charcoal);
  width: max-content;
  transition: gap .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out);
}
.u-link:hover { gap: 22px; color: var(--brand-champagne-500); border-color: var(--brand-champagne-500); }
.u-link .arr { transform: translateY(-1px); }
.u-link.muted { color: var(--ink-on-light-2); border-color: rgba(13,13,15,0.18); font-weight: 400; font-size: 13.5px; }
.u-link.muted:hover { color: var(--brand-charcoal); border-color: var(--brand-charcoal); }
.u-link.on-dark { color: var(--brand-paper); border-color: var(--brand-paper); }
.u-link.on-dark:hover { color: var(--brand-champagne-300); border-color: var(--brand-champagne-300); }

.hero-side { position: relative; align-self: stretch; min-height: 480px; }
.hero-figure {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 340px;
  margin-left: auto;
  border-radius: var(--r-md);
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(205,162,132,0.18) 0%, rgba(205,162,132,0) 70%),
    var(--gradient-charcoal-vignette);
  border: 1px solid rgba(250,247,242,0.08);
}
.hero-figure::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(250,247,242,0.04) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: screen;
  opacity: .35;
  pointer-events: none;
}
.hero-figure-mark {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -54%);
  width: 60%;
  filter: drop-shadow(0 30px 60px rgba(205,162,132,0.25));
}
.hero-figure-caption {
  position: absolute; left: 24px; bottom: 22px; right: 24px;
  display: flex; justify-content: space-between; align-items: end;
  color: rgba(250,247,242,0.7);
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
}
.hero-figure-caption .right { text-align: right; }
.hero-figure-tag {
  position: absolute; left: 22px; top: 22px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brand-champagne-300);
  border: 1px solid rgba(205,162,132,0.35);
  padding: 6px 10px;
  border-radius: var(--r-pill);
  background: rgba(13,13,15,0.4);
}
.hero-figure-tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-champagne-300); }

.hero-card {
  position: absolute; left: -8%; bottom: -36px;
  width: min(320px, 78%);
  background: var(--brand-paper);
  border: 1px solid rgba(13,13,15,0.08);
  border-radius: var(--r-lg);
  padding: 22px 22px 20px;
  box-shadow: 0 30px 60px rgba(13,13,15,0.10), 0 8px 18px rgba(13,13,15,0.04);
}
.hero-card-num {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.22em;
  color: var(--brand-champagne-500); text-transform: uppercase;
  margin-bottom: 14px; display: flex; align-items: center; gap: 10px;
}
.hero-card-num::after { content: ""; flex: 1; height: 1px; background: rgba(13,13,15,0.10); }
.hero-card-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: 26px; line-height: 1.1; letter-spacing: -0.02em;
  color: var(--brand-charcoal); margin: 0 0 8px;
}
.hero-card-title em { color: var(--brand-champagne-500); }
.hero-card-desc { font-size: 13.5px; line-height: 1.55; color: var(--ink-on-light-2); margin: 0 0 16px; }
.hero-card-row {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px; border-top: 1px solid rgba(13,13,15,0.08);
  font-size: 12.5px; color: var(--ink-on-light-2);
}
.hero-card-row .pillar { color: var(--brand-charcoal); font-weight: 500; }

@media (max-width: 880px){
  .hero-side { min-height: 0; }
  .hero-figure { max-width: 380px; margin: 0 auto; }
  .hero-card { left: 0; right: auto; bottom: -28px; }
}

/* ============================================================
   PAGE HERO (inner pages: about / services / contact)
   ============================================================ */
.page-hero {
  position: relative;
  background:
    radial-gradient(ellipse 70% 40% at 70% 0%, rgba(205,162,132,0.10) 0%, rgba(205,162,132,0) 60%),
    var(--brand-paper);
  padding: 168px 0 80px;
}
.page-hero.dark {
  background:
    radial-gradient(ellipse 70% 40% at 70% 0%, rgba(205,162,132,0.14) 0%, rgba(205,162,132,0) 60%),
    var(--brand-charcoal);
  color: var(--ink-on-dark-1);
}
.page-hero .section-tag { margin-bottom: 22px; }
.page-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(52px, 10vw, 144px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  color: var(--brand-charcoal);
  margin: 0;
  text-wrap: balance;
}
.page-hero.dark .page-title { color: var(--brand-paper); }
.page-title em {
  text-transform: none; font-weight: 500;
  color: var(--brand-champagne-500);
}
.page-hero.dark .page-title em {
  background: var(--gradient-champagne);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-lede {
  font-family: var(--font-sans);
  font-size: 18px; line-height: 1.65;
  color: var(--ink-on-light-2);
  max-width: 56ch;
  margin: 32px 0 0;
}
.page-hero.dark .page-lede { color: rgba(250,247,242,0.72); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 128px 0; }
@media (max-width: 800px){ .section { padding: 96px 0; } }
.section-ivory { background: var(--brand-paper); }
.section-bone { background: var(--brand-bone); }
.section-dark { background: var(--brand-charcoal); color: var(--ink-on-dark-1); }

.section-head {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px;
  align-items: end; margin-bottom: 56px;
}
@media (max-width: 880px){ .section-head { grid-template-columns: 1fr; gap: 28px; } }

.section-tag {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-sans);
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--brand-champagne-500);
  margin-bottom: 22px; white-space: nowrap;
}
.section-tag .num { font-family: var(--font-mono); font-size: 11px; color: var(--brand-champagne-500); }
.section-dark .section-tag, .section-dark .section-tag .num,
.page-hero.dark .section-tag, .page-hero.dark .section-tag .num { color: var(--brand-champagne-300); }

.section-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(40px, 6.8vw, 96px); line-height: 0.95;
  letter-spacing: -0.04em; text-transform: uppercase;
  color: var(--brand-charcoal); margin: 0;
}
.section-dark .section-title { color: var(--brand-paper); }
.section-title .accent {
  font-weight: 500; color: var(--brand-champagne-500);
  letter-spacing: -0.02em; text-transform: none;
}
.section-dark .section-title .accent {
  background: var(--gradient-champagne);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.section-aside {
  font-family: var(--font-sans);
  font-size: 16px; line-height: 1.65;
  color: var(--ink-on-light-2);
  max-width: 44ch; justify-self: end; text-wrap: pretty;
}
.section-dark .section-aside { color: rgba(250,247,242,0.72); }
@media (max-width: 880px){ .section-aside { justify-self: start; } }

/* ============================================================
   BENTO — services + stats (homepage)
   ============================================================ */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 200px; gap: 14px; }
@media (max-width: 980px){ .bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 180px; } }
@media (max-width: 640px){ .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; gap: 12px; } }

.b {
  position: relative; border-radius: var(--r-lg); padding: 28px; overflow: hidden;
  display: flex; flex-direction: column; border: 1px solid transparent;
  transition: border-color .3s var(--ease-standard), background .3s var(--ease-standard);
}
.b-light { background: #FFFFFF; border-color: rgba(13,13,15,0.08); }
.b-light:hover { border-color: rgba(205,162,132,0.45); }
.b-dark { background: var(--brand-charcoal); color: var(--ink-on-dark-1); border-color: rgba(250,247,242,0.08); }
.b-dark:hover { background: #161619; border-color: rgba(205,162,132,0.25); }
.b-bone { background: var(--brand-bone); border-color: rgba(13,13,15,0.06); }
.b-linen { background: var(--brand-linen); border-color: rgba(13,13,15,0.06); }

.b-ai        { grid-column: span 7; grid-row: span 2; }
.b-auto      { grid-column: span 5; grid-row: span 2; }
.b-stat-1    { grid-column: span 4; }
.b-digital   { grid-column: span 4; grid-row: span 2; }
.b-pattern-a { grid-column: span 4; }
.b-strategy  { grid-column: span 5; grid-row: span 2; }
.b-pattern-b { grid-column: span 3; grid-row: span 2; }
.b-stat-2    { grid-column: span 4; }

@media (max-width: 980px){
  .b-ai { grid-column: span 6; grid-row: span 2; }
  .b-auto { grid-column: span 6; grid-row: span 2; }
  .b-stat-1 { grid-column: span 3; }
  .b-pattern-a { grid-column: span 3; }
  .b-digital { grid-column: span 3; grid-row: span 2; }
  .b-strategy { grid-column: span 3; grid-row: span 2; }
  .b-pattern-b { grid-column: span 3; }
  .b-stat-2 { grid-column: span 3; }
}
@media (max-width: 640px){
  .b-ai, .b-auto, .b-digital, .b-strategy { grid-column: span 2; grid-row: span 2; }
  .b-stat-1, .b-stat-2 { grid-column: span 1; grid-row: span 1; }
  .b-pattern-a, .b-pattern-b { grid-column: span 1; grid-row: span 1; }
}

.b-eyebrow {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--brand-champagne-500);
  display: flex; align-items: center; gap: 10px;
}
.b-dark .b-eyebrow { color: var(--brand-champagne-300); }
.b-eyebrow .num { color: inherit; opacity: .7; }
.b-eyebrow .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.b-title {
  font-family: var(--font-display); font-weight: 500; font-size: 36px;
  line-height: 1; letter-spacing: -0.03em; text-transform: uppercase;
  color: var(--brand-charcoal); margin: 18px 0 12px;
}
.b-dark .b-title { color: var(--brand-paper); }
.b-title em { text-transform: none; color: var(--brand-champagne-500); }
.b-dark .b-title em {
  background: var(--gradient-champagne);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.b-desc { font-size: 14.5px; line-height: 1.55; color: var(--ink-on-light-2); margin: 0; max-width: 38ch; }
.b-dark .b-desc { color: rgba(250,247,242,0.66); }

.b-foot {
  margin-top: auto; display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; font-size: 12.5px; color: var(--ink-on-light-2);
}
.b-dark .b-foot { color: rgba(250,247,242,0.55); }
.b-foot .arr {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand-charcoal); color: var(--brand-paper);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .25s var(--ease-out), background .25s var(--ease-out);
}
.b-dark .b-foot .arr { background: var(--brand-champagne-300); color: var(--brand-charcoal); }
.b:hover .b-foot .arr { transform: rotate(-45deg); }

.b-stat { background: var(--brand-bone); border: 1px solid rgba(13,13,15,0.06); }
.b-stat .stat-num {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(64px, 7vw, 96px); line-height: 0.9; letter-spacing: -0.05em;
  color: var(--brand-champagne-500); margin: 0;
}
.b-stat .stat-num em { font-style: italic; }
.b-stat .stat-label {
  margin-top: auto; font-family: var(--font-sans);
  font-size: 13px; line-height: 1.5; color: var(--ink-on-light-2); max-width: 24ch;
}
.b-stat .stat-kicker {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--brand-champagne-500); margin-bottom: 8px;
}

.b-pattern { position: relative; overflow: hidden; }
.b-pattern-a { background: var(--brand-linen); }
.b-pattern-b { background: var(--brand-mist); }
.b-pattern svg.bg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--brand-charcoal); opacity: .14; }
.b-pattern .b-foot-label {
  margin-top: auto; position: relative;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--brand-charcoal); opacity: .65;
}

/* Value / outcome cards — meaningful content, not decorative filler */
.b-value { background: var(--brand-bone); border-color: rgba(13,13,15,0.06); justify-content: center; }
.b-value-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(26px, 2.6vw, 34px); line-height: 1.04; letter-spacing: -0.02em;
  color: var(--brand-charcoal); margin: 14px 0 12px;
}
.b-value-title em { color: var(--brand-champagne-500); }

.b-ai .b-title { font-size: 56px; }
.b-ai-figure {
  position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
  width: 240px; height: 240px; opacity: .9; pointer-events: none;
}
.b-ai .b-title, .b-ai .b-desc, .b-ai .b-foot, .b-ai .b-eyebrow { position: relative; z-index: 2; }
.b-ai .b-desc { max-width: 30ch; }

@media (max-width: 980px){ .b-ai .b-title { font-size: 44px; } .b-ai-figure { width: 200px; height: 200px; right: -60px; } }
@media (max-width: 640px){
  .b-title { font-size: 30px; }
  .b-ai .b-title { font-size: 36px; }
  .b-ai-figure { width: 160px; height: 160px; right: -80px; opacity: .6; }
  .b { padding: 22px; }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  background: var(--brand-charcoal); color: var(--ink-on-dark-1);
  border-top: 1px solid rgba(250,247,242,0.08);
  border-bottom: 1px solid rgba(250,247,242,0.08);
  overflow: hidden; padding: 36px 0;
}
.marquee-track { display: flex; gap: 64px; align-items: center; white-space: nowrap; animation: marquee 38s linear infinite; width: max-content; }
.marquee-item {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(26px, 3.4vw, 46px); line-height: 1; letter-spacing: -0.03em;
  text-transform: uppercase; color: var(--brand-paper);
  display: inline-flex; align-items: center; gap: 64px;
}
.marquee-item:nth-child(even) { color: transparent; -webkit-text-stroke: 1.2px var(--brand-paper); }
.diamond { display: inline-block; width: 18px; height: 18px; background: var(--brand-champagne-300); transform: rotate(45deg); flex-shrink: 0; }
/* When the marquee follows the hero, pull it up into the hero's empty
   bottom padding so the band reads as connected to the hero. */
.marquee-hero { margin-top: -28px; }
@media (max-width: 700px){ .marquee-hero { margin-top: -16px; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   PROBLEM / SOLUTION
   ============================================================ */
.problem { background: var(--brand-paper); padding: 128px 0; }
@media (max-width: 800px){ .problem { padding: 96px 0; } }
.problem-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 96px; align-items: center; }
@media (max-width: 980px){ .problem-grid { grid-template-columns: 1fr; gap: 56px; } }

.problem-figure {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 30% 80%, rgba(205,162,132,0.20) 0%, rgba(205,162,132,0) 70%),
    var(--gradient-charcoal-vignette);
  border: 1px solid rgba(250,247,242,0.08);
}
.problem-figure::before {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(250,247,242,0.05) 18px 19px),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(250,247,242,0.05) 18px 19px);
  mix-blend-mode: screen; opacity: .6;
}
.problem-figure .pf-mark { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: 55%; filter: drop-shadow(0 30px 60px rgba(205,162,132,0.20)); }
.problem-figure .pf-visual { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.problem-figure .pf-tag {
  position: absolute; left: 22px; top: 22px; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(250,247,242,0.7);
}
.problem-figure .pf-tag .pip { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-champagne-300); }
.problem-figure .pf-cap {
  position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 1;
  display: flex; justify-content: space-between; align-items: end;
  color: rgba(250,247,242,0.6); font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
}
.problem-body { padding-right: 24px; }
@media (max-width: 980px){ .problem-body { padding-right: 0; } }
.problem-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(40px, 6.5vw, 96px); line-height: 0.95; letter-spacing: -0.045em;
  text-transform: uppercase; color: var(--brand-charcoal); margin: 18px 0 28px;
}
.problem-title em { color: var(--brand-champagne-500); text-transform: none; font-weight: 500; }
.problem-lede { font-family: var(--font-sans); font-size: 17px; line-height: 1.65; color: var(--ink-on-light-2); max-width: 54ch; margin: 0 0 28px; }
.problem-attrib { display: flex; align-items: center; gap: 14px; font-family: var(--font-sans); font-size: 13px; color: var(--ink-on-light-2); }
.problem-attrib .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand-charcoal); color: var(--brand-champagne-300);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 500; font-size: 16px;
}
.problem-attrib .name { color: var(--brand-charcoal); font-weight: 500; }

/* ============================================================
   CHAOS CARD  (animated "messy → system" visual, left column of .problem)
   Scoped to .chaos-wrap so it won't collide with the rest of the page.
   Space Grotesk is loaded via the shared @import in colors_and_type.css.
   ============================================================ */
.chaos-wrap, .chaos-wrap *, .chaos-wrap *::before, .chaos-wrap *::after { box-sizing: border-box; }

/* Responsive container: fills its parent's width, holds a 560:420 (4:3) ratio */
.chaos-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 560 / 420;
  font-family: 'Space Grotesk', system-ui, sans-serif;
}

/* Fixed internal coordinate space — scaled to fit by JS */
.chaos-stage {
  position: absolute; top: 0; left: 0;
  width: 560px; height: 420px;
  transform-origin: top left;
  border-radius: 16px;
  overflow: hidden;
  background: #111009;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 28px, rgba(255,255,255,.025) 28px, rgba(255,255,255,.025) 29px),
    repeating-linear-gradient(90deg, transparent, transparent 28px, rgba(255,255,255,.025) 28px, rgba(255,255,255,.025) 29px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.07), 0 32px 80px rgba(0,0,0,.45);
}

.chaos-fig {
  position: absolute; top: 18px; left: 20px;
  font-size: 10px; letter-spacing: .15em; color: rgba(255,255,255,.3); z-index: 50;
}
.chaos-dot { width:8px; height:8px; border-radius:50%; background:#c17f5a; display:inline-block; margin-right:8px; vertical-align:middle; }

.chaos-note {
  position: absolute; top: 0; left: 0;
  width: 86px; height: 86px;
  border-radius: 6px; padding: 10px;
  will-change: transform, opacity;
  box-shadow: 0 10px 26px rgba(0,0,0,.5);
  display: flex; flex-direction: column; gap: 6px;
}
.chaos-note .ln { height: 5px; border-radius: 3px; background: rgba(0,0,0,.20); }
.chaos-note .corner { position:absolute; top:8px; right:8px; width:6px; height:6px; border-radius:50%; background:rgba(0,0,0,.24); }
.chaos-note .tag { font-size:8.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:rgba(0,0,0,.55); margin-bottom:1px; }

.chaos-headline {
  position: absolute; left: 50%; bottom: 30px;
  transform: translateX(-50%) translateY(8px);
  text-align: center; opacity: 0; z-index: 60;
  transition: opacity .5s ease, transform .5s cubic-bezier(.34,1.56,.64,1);
}
.chaos-big { font-size: 19px; font-weight: 700; color: #fff; letter-spacing: .01em; }
.chaos-accent { color: #c17f5a; }

.chaos-check {
  position: absolute; left: 50%; top: 47%;
  transform: translate(-50%,-50%) scale(0);
  width: 60px; height: 60px; border-radius: 50%;
  background: #c8a17c; display: flex; align-items: center; justify-content: center;
  z-index: 70; opacity: 0; box-shadow: 0 0 0 0 rgba(200,161,124,.5);
}
.chaos-check svg { width: 28px; height: 28px; }
@keyframes chaosPulse { 0% { box-shadow:0 0 0 0 rgba(200,161,124,.5);} 100% { box-shadow:0 0 0 26px rgba(200,161,124,0);} }

.chaos-bottom { position:absolute; bottom:18px; left:20px; font-size:10px; letter-spacing:.13em; color:rgba(255,255,255,.2); z-index:50; }

.chaos-replay {
  position: absolute; bottom: 14px; right: 18px;
  font-family: inherit; font-size: 11px; letter-spacing: .1em; color: #c17f5a;
  background: none; border: 1px solid rgba(193,127,90,.35); border-radius: 20px;
  padding: 4px 14px; cursor: pointer; opacity: 0; z-index: 80;
  transition: opacity .4s, background .2s;
}
.chaos-replay:hover { background: rgba(193,127,90,.1); }
.chaos-replay:focus-visible { outline: 2px solid #c17f5a; outline-offset: 2px; }

/* ============================================================
   LOGO STRIP
   ============================================================ */
.logos { background: var(--brand-bone); padding: 64px 0; border-top: 1px solid rgba(13,13,15,0.06); border-bottom: 1px solid rgba(13,13,15,0.06); }
.logos-head { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-on-light-2); text-align: center; margin-bottom: 36px; }
.logos-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 32px; align-items: center; }
@media (max-width: 880px){ .logos-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.logo-item { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 22px; text-align: center; color: var(--ink-on-light-2); opacity: .72; letter-spacing: -0.02em; }
.logo-item.sans { font-family: var(--font-sans); font-style: normal; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 13px; }
.logo-item.mono { font-family: var(--font-mono); font-style: normal; font-weight: 500; letter-spacing: 0.1em; font-size: 14px; }

/* ============================================================
   TESTIMONIAL + STATS
   ============================================================ */
.tstm { background: var(--brand-paper); padding: 128px 0; }
@media (max-width: 800px){ .tstm { padding: 96px 0; } }
.tstm-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 88px; align-items: center; }
@media (max-width: 980px){ .tstm-grid { grid-template-columns: 1fr; gap: 56px; } }
.tstm-quote-mark { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 120px; line-height: 0.6; color: var(--brand-champagne-300); margin-bottom: 8px; }
.tstm-quote { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.2; letter-spacing: -0.015em; color: var(--brand-charcoal); margin: 0 0 32px; text-wrap: balance; }
.tstm-quote em { font-style: italic; color: var(--brand-champagne-500); }
.tstm-attrib { display: flex; align-items: center; gap: 16px; }
.tstm-attrib .avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--brand-charcoal); color: var(--brand-champagne-300); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 500; font-size: 20px; }
.tstm-attrib .meta { display: flex; flex-direction: column; gap: 2px; }
.tstm-attrib .name { font-family: var(--font-sans); font-weight: 500; font-size: 15px; color: var(--brand-charcoal); }
.tstm-attrib .role { font-family: var(--font-sans); font-size: 13px; color: var(--ink-on-light-2); }
.tstm-stats { display: grid; gap: 28px; }
.tstm-stat { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: end; padding-bottom: 28px; border-bottom: 1px solid rgba(13,13,15,0.10); }
.tstm-stat:last-child { border-bottom: none; padding-bottom: 0; }
.tstm-stat-num { font-family: var(--font-display); font-weight: 500; font-size: clamp(72px, 9vw, 132px); line-height: 0.85; letter-spacing: -0.05em; color: var(--brand-champagne-500); }
.tstm-stat-num em { font-style: italic; }
.tstm-stat-num sup { font-size: 0.45em; vertical-align: super; color: var(--brand-champagne-500); font-style: normal; }
.tstm-stat-label { font-family: var(--font-sans); font-size: 13.5px; line-height: 1.5; color: var(--ink-on-light-2); padding-bottom: 10px; max-width: 24ch; }
.tstm-stat-label .key { color: var(--brand-charcoal); font-weight: 500; }

/* ============================================================
   CONTACT BAND
   ============================================================ */
.contact { background: var(--brand-charcoal); color: var(--ink-on-dark-1); padding: 128px 0 64px; }
@media (max-width: 800px){ .contact { padding: 96px 0 56px; } }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 80px; align-items: end; }
@media (max-width: 980px){ .contact-grid { grid-template-columns: 1fr; gap: 56px; align-items: start; } }
.contact-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(56px, 7.5vw, 108px); line-height: 0.85; letter-spacing: -0.05em; text-transform: uppercase; color: var(--brand-paper); margin: 24px 0 0; }
.contact-title em { text-transform: none; font-weight: 500; background: var(--gradient-champagne); -webkit-background-clip: text; background-clip: text; color: transparent; }
.contact-lede { font-family: var(--font-sans); font-size: 17px; line-height: 1.65; color: rgba(250,247,242,0.72); max-width: 44ch; margin: 32px 0 0; }
.contact-info { display: flex; flex-direction: column; gap: 36px; }
.contact-block { display: flex; flex-direction: column; gap: 8px; }
.contact-block .label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(250,247,242,0.45); }
.contact-block .value { font-family: var(--font-display); font-weight: 400; font-size: 24px; color: var(--brand-paper); letter-spacing: -0.02em; }
.contact-block .value a:hover { color: var(--brand-champagne-300); }
.contact-actions { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.pill-cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 12px 12px 24px; border-radius: var(--r-pill); background: var(--brand-champagne-300); color: var(--brand-charcoal); font-family: var(--font-sans); font-weight: 500; font-size: 15px; width: max-content; border: none; cursor: pointer; transition: background .25s var(--ease-standard); }
.pill-cta:hover { background: var(--brand-champagne-400); }
.pill-cta .arrow { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-charcoal); color: var(--brand-champagne-300); display: inline-flex; align-items: center; justify-content: center; }

.contact-nav { margin-top: 96px; padding-top: 32px; border-top: 1px solid rgba(250,247,242,0.10); display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
@media (max-width: 720px){ .contact-nav { grid-template-columns: repeat(2, 1fr); } }
.contact-nav-col { display: flex; flex-direction: column; gap: 10px; }
.contact-nav-col h4 { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(250,247,242,0.45); font-weight: 500; margin: 0 0 6px; }
.contact-nav-col a { font-family: var(--font-sans); font-size: 14.5px; color: rgba(250,247,242,0.78); transition: color .2s var(--ease-standard); }
.contact-nav-col a:hover { color: var(--brand-champagne-300); }

/* ============================================================
   FORMS (contact page)
   ============================================================ */
.form-grid { display: grid; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 640px){ .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(250,247,242,0.55);
}
.field input, .field select, .field textarea {
  font-family: var(--font-sans); font-size: 15px;
  color: var(--brand-paper);
  background: rgba(250,247,242,0.04);
  border: 1px solid rgba(250,247,242,0.16);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  transition: border-color .2s var(--ease-standard), background .2s var(--ease-standard);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(250,247,242,0.32); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-champagne-300); background: rgba(250,247,242,0.07);
}
.field select { appearance: none; cursor: pointer; }
.form-note { font-family: var(--font-sans); font-size: 12.5px; color: rgba(250,247,242,0.45); margin: 4px 0 0; }
.form-status { font-family: var(--font-sans); font-size: 14px; margin-top: 4px; min-height: 1.2em; }
.form-status.ok { color: var(--brand-champagne-300); }
.form-status.err { color: #E0A59B; }

/* contact-page layout: form left, details right */
.contact-page-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 80px; align-items: start; }
@media (max-width: 980px){ .contact-page-grid { grid-template-columns: 1fr; gap: 56px; } }

/* ============================================================
   GENERIC EDITORIAL / PROSE (about, services detail)
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
@media (max-width: 880px){ .split { grid-template-columns: 1fr; gap: 48px; } }
.prose p { font-family: var(--font-sans); font-size: 17px; line-height: 1.75; color: var(--ink-on-light-2); margin: 0 0 22px; max-width: 60ch; }
.section-dark .prose p { color: rgba(250,247,242,0.72); }
.prose p:last-child { margin-bottom: 0; }
.kicker {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(28px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.03em;
  color: var(--brand-charcoal); margin: 0 0 24px; text-wrap: balance;
}
.section-dark .kicker { color: var(--brand-paper); }
.kicker em { font-style: italic; color: var(--brand-champagne-500); }

/* Service detail rows */
.svc-list { display: grid; gap: 0; }
.svc-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: start;
  padding: 48px 0; border-top: 1px solid rgba(13,13,15,0.10);
}
.svc-row:last-child { border-bottom: 1px solid rgba(13,13,15,0.10); }
@media (max-width: 800px){ .svc-row { grid-template-columns: 1fr; gap: 18px; padding: 40px 0; } }
.svc-num { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.2em; color: var(--brand-champagne-500); padding-top: 12px; }
.svc-main { max-width: 60ch; }
.svc-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 4.2vw, 48px); line-height: 1; letter-spacing: -0.03em; text-transform: uppercase; color: var(--brand-charcoal); margin: 0 0 16px; }
.svc-title em { text-transform: none; color: var(--brand-champagne-500); }
.svc-desc { font-family: var(--font-sans); font-size: 16px; line-height: 1.7; color: var(--ink-on-light-2); margin: 0 0 18px; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-on-light-2); border: 1px solid rgba(13,13,15,0.14); border-radius: var(--r-pill); padding: 6px 12px; }
.svc-aside { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-on-light-2); padding-top: 14px; text-align: right; white-space: nowrap; }
@media (max-width: 800px){ .svc-aside { text-align: left; } }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 880px){ .steps { grid-template-columns: 1fr; } }
.step { background: var(--brand-bone); border: 1px solid rgba(13,13,15,0.06); border-radius: var(--r-lg); padding: 32px; }
.section-dark .step { background: #161619; border-color: rgba(250,247,242,0.08); }
.step .step-num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brand-champagne-500); margin-bottom: 18px; }
.step .step-title { font-family: var(--font-display); font-weight: 500; font-size: 26px; line-height: 1.1; letter-spacing: -0.02em; color: var(--brand-charcoal); margin: 0 0 10px; }
.section-dark .step .step-title { color: var(--brand-paper); }
.step .step-desc { font-family: var(--font-sans); font-size: 14.5px; line-height: 1.6; color: var(--ink-on-light-2); margin: 0; }
.section-dark .step .step-desc { color: rgba(250,247,242,0.66); }

/* ============================================================
   FOOTER WORDMARK
   ============================================================ */
/* Dark, full-width, brand-forward footer: three columns → huge wordmark → meta row. */
.footer-wordmark { background: var(--brand-charcoal); color: var(--brand-paper); padding: 112px 0 28px; overflow: hidden; }

/* --- Top: three bold columns (Email / Schedule / Explore) --- */
.footer-top { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 64px; }
.footer-col-label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: rgba(250,247,242,0.45); margin: 0 0 18px;
}
.footer-col-value {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(26px, 2.4vw, 34px); line-height: 1.05; letter-spacing: -0.02em;
  text-transform: uppercase; color: var(--brand-paper); display: block;
  transition: color .2s var(--ease-standard);
}
a.footer-col-value:hover { color: var(--brand-champagne-300); }
.footer-col-sub { font-family: var(--font-sans); font-size: 13.5px; line-height: 1.6; color: rgba(250,247,242,0.6); margin: 14px 0 0; max-width: 32ch; }
.footer-col-links { list-style: none; padding: 0; margin: 2px 0 0; display: grid; gap: 13px; }
.footer-col-links a {
  font-family: var(--font-sans); font-size: 14.5px; color: rgba(250,247,242,0.78);
  display: inline-flex; align-items: center; gap: 10px; transition: color .2s var(--ease-standard);
}
.footer-col-links a::before { content: "\2192"; color: var(--brand-champagne-300); font-size: 13px; }
.footer-col-links a:hover { color: var(--brand-champagne-300); }

/* --- Large wordmark: spans the footer grid width, sits low with breathing room --- */
.footer-wordmark-row { width: 100%; max-width: 1320px; margin: 0 auto; padding: 104px 32px 0; }
.footer-wordmark-text {
  display: flex; width: 100%; justify-content: space-between; align-items: baseline; gap: 0.06em;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(40px, 15vw, 200px); line-height: 0.85; letter-spacing: -0.055em;
  text-transform: uppercase; color: var(--brand-paper); white-space: nowrap; transform: translateY(0.06em);
}
.footer-wordmark-text .studio { background: var(--gradient-champagne); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 500; }

/* --- Bottom legal / meta row --- */
.footer-fine { border-top: 1px solid rgba(250,247,242,0.10); max-width: 1320px; margin: 44px auto 0; padding: 26px 32px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 28px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(250,247,242,0.45); }
.footer-legal { display: inline-flex; align-items: center; gap: 24px; }
.footer-fine .lang { display: inline-flex; align-items: center; gap: 8px; }
.footer-fine .lang a:hover, .footer-legal-item:hover { color: var(--brand-champagne-300); }

/* Tablet: three columns fold to two rows; wordmark scales via vw. */
@media (max-width: 860px){
  .footer-top { grid-template-columns: 1fr 1fr; gap: 48px 40px; }
}
/* Mobile: stack columns, centre + shrink the wordmark, stack the meta row. */
@media (max-width: 720px){
  .footer-wordmark { padding: 80px 0 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-wordmark-row { padding: 64px 24px 0; }
  .footer-wordmark-text { justify-content: center; gap: 0.3em; font-size: clamp(34px, 11vw, 92px); }
  .footer-fine { padding: 24px 24px 0; flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ============================================================
   CONTRAST — small champagne labels on light bg (WCAG AA at 10–12px).
   Big display type keeps champagne-500; small tracked labels go -600.
   Dark-surface variants already use champagne-300 above and are unaffected.
   ============================================================ */
.hero-eyebrow,
.section-tag, .section-tag .num,
.b-eyebrow,
.b-stat .stat-kicker,
.hero-card-num,
.svc-num { color: var(--brand-champagne-600); }
.section-dark .section-tag, .section-dark .section-tag .num,
.page-hero.dark .section-tag, .page-hero.dark .section-tag .num,
.b-dark .b-eyebrow { color: var(--brand-champagne-300); }

/* ============================================================
   PHOTO PLACEHOLDERS — real <img> sits under the on-brand grain/
   vignette overlays; a labelled placeholder shows until a file loads.
   ============================================================ */
.fig-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.awaiting-photo .fig-photo, .img-failed .fig-photo { opacity: 0; }
.photo-todo {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; gap: 8px;
  align-items: center; justify-content: center; text-align: center;
  padding: 28px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(250,247,242,0.78); pointer-events: none;
}
.photo-todo .arrow-down { font-size: 18px; letter-spacing: 0; color: var(--brand-champagne-300); }
.photo-todo code { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: none; color: var(--brand-champagne-300); }
.photo-todo .spec { color: rgba(250,247,242,0.45); font-size: 10px; }
figure:not(.awaiting-photo) .photo-todo { display: none; }

/* ============================================================
   SCROLL-REVEAL — gentle fade + rise (JS adds .is-in)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: none; }
.bento.reveal.is-in > *, .steps.reveal.is-in > *, .svc-list.reveal.is-in > * { animation: reveal-stagger .6s var(--ease-out) both; }
@keyframes reveal-stagger { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.bento.reveal.is-in > *:nth-child(2), .steps.reveal.is-in > *:nth-child(2), .svc-list.reveal.is-in > *:nth-child(2) { animation-delay: .06s; }
.bento.reveal.is-in > *:nth-child(3), .steps.reveal.is-in > *:nth-child(3), .svc-list.reveal.is-in > *:nth-child(3) { animation-delay: .12s; }
.bento.reveal.is-in > *:nth-child(4), .svc-list.reveal.is-in > *:nth-child(4) { animation-delay: .18s; }
.bento.reveal.is-in > *:nth-child(5) { animation-delay: .24s; }
.bento.reveal.is-in > *:nth-child(6) { animation-delay: .30s; }
.bento.reveal.is-in > *:nth-child(7) { animation-delay: .36s; }
.bento.reveal.is-in > *:nth-child(8) { animation-delay: .42s; }

/* ============================================================
   FOCUS-VISIBLE — keyboard accessibility (champagne ring)
   ============================================================ */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--brand-champagne-400); outline-offset: 3px; border-radius: var(--r-xs);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .bento.reveal.is-in > *, .steps.reveal.is-in > *, .svc-list.reveal.is-in > * { animation: none !important; }
  /* Animation pass v1: keep entrance content visible, kill motion accents */
  .hero-anim { opacity: 1 !important; transform: none !important; }
  /* Glow stays as a static accent (the * rule above already stops its motion) */
  .hero-orb { opacity: .7 !important; transform: none !important; }
}

/* ============================================================
   LOGO INTRO OVERLAY
   ============================================================ */
.logo-intro {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--brand-charcoal);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.logo-intro-mark {
  width: min(42vw, 380px);
  will-change: transform, opacity;
}
.logo-intro.is-leaving {
  transition: opacity 0.55s ease-in;
  opacity: 0;
}
.logo-intro-mark.is-leaving {
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.55s ease-in;
}
.logo-intro[hidden] { display: none; }

/* ============================================================
   HERO V2 — full-width headline + visual grid
   ============================================================ */
.display-hero {
  font-size: clamp(36px, 5.8vw, 90px);
  font-weight: 700;
  margin: 0 0 30px;
}
.display-hero .row-b { padding-left: 0.32em; }

.hero-sub {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  margin-bottom: 36px;
}
@media (max-width: 700px) { .hero-sub { grid-template-columns: 1fr; gap: 24px; } }

.hero-tagline {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.7;
  color: var(--ink-on-light-2);
  margin: 0;
  padding-top: 6px;
}
.hero-tagline em { color: var(--brand-champagne-500); font-style: normal; }

.hero-visual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 820px) { .hero-visual-grid { grid-template-columns: 1fr; } }

/* Left: large logo card */
.hero-logo-card {
  position: relative;
  background: var(--gradient-charcoal-vignette);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 500px;
  border: 1px solid rgba(210,167,140,0.22);
}
/* Warm copper glow blooming behind the brand mark — references the old
   reference's framed, back-lit logo card without the heavy animation. */
.hero-logo-card::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(58% 46% at 50% 40%, rgba(210,167,140,0.22) 0%, rgba(210,167,140,0) 68%);
  pointer-events: none; z-index: 0;
}
.hero-logo-card::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(250,247,242,0.035) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: screen; opacity: .4; pointer-events: none;
}
.hero-logo-card-tag {
  display: inline-flex; align-items: center; gap: 8px;
  position: absolute; top: 24px; left: 24px; z-index: 2;
  border: 1px solid rgba(250,247,242,0.18);
  border-radius: 100px;
  padding: 6px 14px;
  font-family: var(--font-sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(250,247,242,0.8);
}
.hero-logo-card-tag .pip {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-champagne-400);
  flex-shrink: 0;
}
.hero-logo-img {
  display: block;
  width: 76%;
  max-width: 460px;
  margin: auto;
  position: relative; z-index: 1;
  filter: drop-shadow(0 36px 72px rgba(205,162,132,0.30));
  padding: 56px 0 32px;
}
.hero-logo-card-bottom {
  position: relative; z-index: 2;
  margin: 0 24px;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(250,247,242,0.07);
}
.hero-logo-card-steps {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(250,247,242,0.5);
}
.hero-logo-card-steps b {
  font-weight: 600;
  color: var(--brand-champagne-300);
  margin-right: 7px;
}

/* Right: stacked cards */
.hero-right-stack {
  display: flex; flex-direction: column; gap: 16px;
}

.hero-case-card {
  background: var(--brand-paper);
  border: 1px solid rgba(13,13,15,0.08);
  border-radius: var(--r-md);
  padding: 24px;
  flex: 1;
}
.hero-case-card-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.hero-case-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--brand-charcoal);
  flex-shrink: 0;
}
.hero-case-name {
  font-family: var(--font-sans); font-size: 13px; font-weight: 600;
  color: var(--brand-charcoal); line-height: 1.2;
}
.hero-case-tag {
  font-family: var(--font-sans); font-size: 10px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-on-light-2);
}
.hero-case-quote {
  font-family: var(--font-display); font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 400; line-height: 1.3; letter-spacing: -0.01em;
  color: var(--brand-charcoal);
  margin: 0 0 20px;
}
.hero-case-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(13,13,15,0.08);
}
.hero-case-label {
  font-family: var(--font-sans); font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand-champagne-500);
}
.hero-case-read {
  font-family: var(--font-sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--brand-charcoal);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--brand-charcoal);
  transition: color .2s, border-color .2s;
}
.hero-case-read:hover { color: var(--brand-champagne-500); border-color: var(--brand-champagne-500); }

.hero-cta-block {
  background: var(--brand-paper);
  border: 1px solid rgba(13,13,15,0.08);
  border-radius: var(--r-md);
  padding: 24px;
}
.hero-cta-heading {
  display: block;
  font-family: var(--font-sans); font-size: 13px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand-charcoal);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color .2s;
}
.hero-cta-heading:hover { color: var(--brand-champagne-500); }
.hero-cta-desc {
  font-family: var(--font-sans); font-size: 13px; line-height: 1.6;
  color: var(--ink-on-light-2); margin: 0;
}

/* ============================================================
   ANIMATION PASS v1 — entrance, hover, float, orb, accordion.
   Every effect here is neutralized in the prefers-reduced-motion
   block above (which uses !important and so wins regardless of order).
   ============================================================ */

/* --- Hero background accent: one slow, gentle blurred orb --- */
.hero-orb {
  position: absolute; z-index: 0; pointer-events: none;
  width: 62vw; max-width: 720px; aspect-ratio: 1; border-radius: 50%;
  top: -20%; right: -10%;
  background: radial-gradient(circle at 50% 50%,
    rgba(205,162,132,0.32) 0%, rgba(205,162,132,0.10) 38%, rgba(205,162,132,0) 70%);
  filter: blur(40px); opacity: .75;
  /* slow drift + soft breathing (opacity pulse) */
  animation: orb-drift 26s ease-in-out infinite alternate,
             orb-breathe 11s ease-in-out infinite;
  will-change: transform, opacity;
}
/* Second, fainter glow lower-left for depth — keeps it organic, not a single blob */
.hero-orb::after {
  content: ""; position: absolute;
  width: 70%; aspect-ratio: 1; border-radius: 50%;
  left: -30%; bottom: -35%;
  background: radial-gradient(circle at 50% 50%,
    rgba(205,162,132,0.20) 0%, rgba(205,162,132,0) 70%);
  filter: blur(30px);
}
@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-7%, 6%) scale(1.08); }
}
@keyframes orb-breathe {
  0%, 100% { opacity: .6; }
  50%      { opacity: .9; }
}
/* Keep hero content above the orb */
.hero > .container { position: relative; z-index: 1; }

/* Soft warm glow + inner copper ring — gives the dark feature card the
   framed, premium presence of the old reference brand card. */
.hero-logo-card {
  box-shadow: 0 34px 80px rgba(13,13,15,0.22),
              0 0 64px rgba(205,162,132,0.18),
              inset 0 0 0 1px rgba(210,167,140,0.14);
}

/* --- Hero entrance: staggered fade-up on load --- */
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-anim { opacity: 0; animation: hero-fade-up .8s var(--ease-out) both; }
.hero-anim-1 { animation-delay: .05s; }
.hero-anim-2 { animation-delay: .20s; }
.hero-anim-3 { animation-delay: .34s; }
.hero-anim-4 { animation-delay: .48s; }

/* --- Hero logo: very slow gentle float --- */
@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
.hero-logo-img { animation: logo-float 5s ease-in-out infinite; }

/* --- Service / bento card hover: soft lift + shadow --- */
.b-ai, .b-auto, .b-digital, .b-strategy {
  transition: border-color .3s var(--ease-standard), background .3s var(--ease-standard),
              transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.b-ai:hover, .b-auto:hover, .b-digital:hover, .b-strategy:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(13,13,15,0.12);
}
.b-dark.b-ai:hover, .b-dark.b-strategy:hover {
  box-shadow: 0 18px 44px rgba(0,0,0,0.28);
}

/* --- Service detail rows (services page): gentle accent on hover --- */
.svc-row { transition: transform .3s var(--ease-out); }
.svc-row .svc-title, .svc-row .svc-num { transition: color .25s var(--ease-out); }
.svc-row:hover { transform: translateX(6px); }
.svc-row:hover .svc-num { color: var(--brand-champagne-600); }

/* --- Buttons: subtle lift + glow --- */
.nav-cta {
  transition: background .25s var(--ease-standard),
              transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(205,162,132,0.35); }
.pill-cta {
  transition: background .25s var(--ease-standard),
              transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.pill-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(205,162,132,0.40); }
.pill-cta .arrow { transition: transform .25s var(--ease-out); }
.pill-cta:hover .arrow { transform: translateX(3px); }

/* --- 4-up steps variant (homepage "How it works") --- */
.steps.steps-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px){ .steps.steps-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .steps.steps-4 { grid-template-columns: 1fr; } }
.step { transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s var(--ease-out); }
.step:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(13,13,15,0.08); border-color: rgba(205,162,132,0.45); }
/* extend the existing staggered reveal to a 4th card */
.steps.reveal.is-in > *:nth-child(4) { animation: reveal-stagger .6s var(--ease-out) both; animation-delay: .18s; }

/* --- 2-up steps variant ("What this looks like in practice") --- */
.steps.steps-2up { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px){ .steps.steps-2up { grid-template-columns: 1fr; } }

/* ============================================================
   FAQ ACCORDION — accessible, animated, lightweight
   ============================================================ */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(13,13,15,0.12); }
.faq-q {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 4px; text-align: left;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(18px, 2.2vw, 23px); line-height: 1.25; letter-spacing: -0.015em;
  color: var(--brand-charcoal);
  transition: color .2s var(--ease-out);
}
.faq-q:hover { color: var(--brand-champagne-600); }
.faq-icon {
  flex-shrink: 0; width: 26px; height: 26px; position: relative;
  transition: transform .35s var(--ease-out);
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  background: var(--brand-champagne-500); border-radius: 2px;
}
.faq-icon::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.faq-icon::after  { width: 2px; height: 14px; transform: translate(-50%, -50%);
  transition: transform .35s var(--ease-out); }
.faq-item.open .faq-icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-a-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease-out); }
.faq-item.open .faq-a-wrap { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a {
  font-family: var(--font-sans); font-size: 16px; line-height: 1.7;
  color: var(--ink-on-light-2); margin: 0; padding: 0 4px 26px; max-width: 64ch;
}

/* =========================================================================
   TYPOGRAPHY SYSTEM — bold-concept direction
   Anton condensed display + Inter body/UI + Instrument Serif italic accents.
   Pure type tuning layered on top of the existing rules — no layout, color,
   structure, or copy changes. Headlines pick up Anton via --font-display.
   ========================================================================= */

/* --- Display headlines (Anton) ------------------------------------------
   Anton ships a single weight (400); the old serif rules asked for 500/700,
   which the browser would synthesise as faux-bold. Normalise to 400 and relax
   the heavy negative tracking that was tuned for the wide serif. */
.display, .display-hero,
.page-title,
.section-title,
.svc-title,
.b-title, .b-value-title,
.problem-title,
.step .step-title,
.hero-card-title,
.contact-title,
.marquee-item,
.footer-wordmark-text,
.tstm-stat-num, .b-stat .stat-num {
  font-weight: 400;
}
.display, .display-hero { letter-spacing: 0; line-height: 0.94; }
.page-title             { letter-spacing: -0.005em; line-height: 0.94; }
.section-title          { letter-spacing: -0.005em; line-height: 0.96; }
.svc-title              { letter-spacing: 0; }
.contact-title          { letter-spacing: -0.01em; }
.footer-wordmark-text   { letter-spacing: -0.01em; }
.marquee-item           { letter-spacing: 0.01em; }

/* --- Sentence-length subheads stay clean Inter (not condensed Anton) ----- */
.kicker {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.18;
  text-transform: none;
}

/* Editorial pull-quote keeps an italic-capable serif (structured, warm) */
.tstm-quote { font-family: var(--font-serif); }

/* --- Major headline accents: upright condensed Anton, never soft italic.
   Emphasis comes from accent colour + uppercase contrast (set per element),
   so the display headline system reads bold, structured, and punchy. --- */
.display .accent,
.display-hero .accent,
.page-title em,
.section-title .accent,
.svc-title em,
.b-title em, .b-value-title em,
.problem-title em,
.step .step-title em,
.hero-card-title em,
.contact-title em,
.footer-wordmark-text .studio {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 400;
  letter-spacing: inherit;
  text-transform: uppercase;
}

/* --- Editorial emphasis (quotes, kicker, stat figures, marquee) keeps the
   warm Instrument Serif italic — these are not part of the headline system. --- */
.kicker em,
.tstm-quote em,
.tstm-stat-num em, .b-stat .stat-num em,
.logo-item {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

/* Keep machine-readable values in Inter, not condensed display */
.contact-block .value {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0;
}

/* --- Nav / buttons / CTA links: tight, uppercase, confident -------------- */
.nav-links {
  font-family: var(--font-nav);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 600;
}
.nav-cta, .pill-cta {
  font-family: var(--font-button);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.u-link {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 13px;
}
.u-link.muted { font-size: 12px; }

/* --- Footnote / eyebrow labels: intentional, not faint ------------------- */
.hero-eyebrow,
.section-tag {
  font-weight: 600;
  letter-spacing: 0.18em;
}
.hero-tagline {
  font-weight: 600;
  letter-spacing: 0.16em;
}

/* ============================================================
   BACKGROUND TEXTURE — subtle warm dot-grid (from bold-concept ref)
   Layered over the existing colour of each light surface so the page
   reads structured/technical without noise. Placed last so it overlays
   the section background-colour without disturbing it. Dark sections and
   solid cards keep their own opaque fills, so dots never sit behind them.
   ============================================================ */
.section-ivory,
.section-bone,
.problem,
.tstm,
.logos {
  background-image: var(--dot-grid);
  background-size: var(--dot-grid-size);
}
