/* ────────────────────────────────────────────────────────────────────────
   VegasBusinessAI - styles.css
   Cold-stone-corporate. Deep black, restrained red, architectural panels.
   ──────────────────────────────────────────────────────────────────────── */

:root {
  /* Palette */
  --bg:           #050507;
  --bg-elev:      #0B0B0E;
  --bg-elev-2:    #131318;
  --bg-elev-3:    #1A1A21;
  --bg-elev-4:    #22222B;
  --fg:           #F5F5F7;
  --fg-dim:       #C9C9CF;
  --fg-muted:     #7A7A82;
  --fg-faint:     #4A4A52;
  --line:         rgba(255,255,255,0.06);
  --line-2:       rgba(255,255,255,0.11);
  --line-3:       rgba(255,255,255,0.20);
  --red:          #DC1F2C;
  --red-hover:    #E8323F;
  --red-deep:     #8B1219;
  --red-faint:    rgba(220,31,44,0.08);

  /* Type */
  --font-display: 'Saira', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --container:    1240px;
  --gutter:       32px;
  --radius:       2px;
  --radius-lg:    4px;

  /* Motion */
  --ease:         cubic-bezier(.2,.7,.2,1);
}

/* ─── Reset / base ──────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
em { font-style: italic; color: var(--fg); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ─── Display type ──────────────────────────────────────────────────── */
.section-title,
.hero-headline,
h2.section-title,
h3,
h4 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.05;
  font-weight: 600;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--red);
  text-transform: uppercase;
  margin: 0 0 24px;
  font-weight: 500;
}

.section-title {
  font-size: clamp(1.9rem, 3.5vw, 3.1rem);
  margin: 0 0 28px;
  font-weight: 600;
  letter-spacing: 0.025em;
}
.section-title .dim {
  color: var(--fg-muted);
  font-weight: 400;
}
.section-title .red { color: var(--red); }

.section-head {
  max-width: 880px;
  margin: 0 0 72px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--fg-dim);
  max-width: 720px;
  line-height: 1.75;
}

.red { color: var(--red); }
.dim { color: var(--fg-muted); }

/* ─── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: all .2s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.btn svg { transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-3);
}
.btn-ghost:hover {
  border-color: var(--fg);
  background: rgba(255,255,255,0.03);
}

.btn-lg { padding: 18px 32px; font-size: 0.92rem; }
.btn-block { width: 100%; }

/* ─── Nav ───────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5,5,7,0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-block: 20px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { height: 44px; width: auto; }
.brand-wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg);
  line-height: 1;
}
.brand-ai { color: var(--red); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
  transition: color .18s var(--ease);
  position: relative;
  padding-block: 4px;
}
.nav-links a:hover,
.nav-links a.active { color: var(--fg); }
.nav-links a.active::after { right: 0; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--red);
  transition: right .25s var(--ease);
}
.nav-links a:hover::after { right: 0; }

.nav-cta { padding: 11px 20px; font-size: 0.78rem; letter-spacing: 0.14em; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  width: 42px; height: 42px;
  padding: 11px 9px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--fg);
  width: 100%;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 18px var(--gutter) 28px;
  border-top: 1px solid var(--line);
  background: rgba(5,5,7,0.98);
}
.mobile-menu a {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--fg-dim);
  font-size: 0.92rem;
}
.mobile-menu .btn { margin-top: 18px; }
.mobile-menu.open { display: flex; }

/* ─── HERO ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(40px, 5vw, 80px) clamp(96px, 12vw, 160px);
  background: var(--bg);
}
.hero-inner { position: relative; z-index: 2; }

.hero-bg {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

/* Architectural panels: overlapping angled rectangles like the business card */
.panels {
  position: absolute;
  inset: 0;
}
.panels > .panel-a,
.panels > .panel-b,
.panels > .panel-c {
  content: "";
  position: absolute;
}

/* Panel A: large background panel, slight angle, deepest shade */
.panels > .panel-a {
  top: -10%;
  right: -8%;
  width: 60%;
  height: 130%;
  background: var(--bg-elev);
  transform: skewX(-12deg);
  border-left: 1px solid var(--line);
}

/* Panel B: medium panel, slightly brighter, narrower.
   Slides UP into place on page load with a red leading-edge accent. */
.panels > .panel-b {
  top: -6%;
  right: -2%;
  width: 35%;
  height: 116%;
  background: var(--bg-elev-2);
  transform: skewX(-12deg);
  border-left: 1px solid var(--line-2);
  animation: panel-b-slide-up 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0s 1 both;
}
.panels > .panel-b::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--red);
  box-shadow:
    0 0 16px rgba(220, 31, 44, 0.65),
    0 6px 28px rgba(220, 31, 44, 0.35);
  pointer-events: none;
}
/* Panel-b clips the testimonial track so beams don't bleed past its bounds. */
.panels > .panel-b { overflow: hidden; }

/* Testimonial carousel track: real DOM beams scrolling UP through panel-b.
   Bright beams carry testimonial text, mid beams are colored spacers. The
   stack is two identical 6-beam patterns so animation translateY by exactly
   one pattern produces a seamless loop. */
.panel-b-track {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  opacity: 0;
  will-change: transform;
  animation:
    panel-stripe-fade-in 0.7s ease-out 2.8s 1 forwards,
    panel-b-track-scroll 18s linear 3.0s infinite;
}

.beam {
  flex: 0 0 30vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 8% 0 3%;
  box-sizing: border-box;
  overflow: hidden;
}
.beam--bright { background-color: rgba(220, 31, 44, 0.85); }
.beam--mid    { background-color: rgba(220, 31, 44, 0.45); }

/* Counter-skew the text so it reads horizontal inside the -12deg-skewed panel.
   Left-aligned and anchored to the inner-left edge of the beam. */
.beam-text {
  transform: skewX(12deg);
  transform-origin: left center;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(0.78rem, 0.95vw, 1.0rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: left;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  max-width: 100%;
  font-style: italic;
}
.beam-text em {
  display: block;
  font-style: normal;
  font-size: 0.72em;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 8px;
}

@keyframes panel-b-track-scroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-180vh); }  /* 6 beams × 30vh = one pattern */
}

/* Panel C: narrow accent panel, brightest face shade.
   Slides DOWN into place on page load.
   right: -2% (matches panel-b) so panel-c fully covers panel-b's right edge
   — no thin red strip peeking out at the far right. */
.panels > .panel-c {
  top: -2%;
  right: -2%;
  width: 18%;
  height: 108%;
  background: var(--bg-elev-3);
  transform: skewX(-12deg);
  border-left: 1px solid var(--line-3);
  animation: panel-c-slide-down 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0s 1 both;
}
/* Solid racing beams — back-to-back white-glow bars scrolling DOWN through
   panel-c. Mirror of panel-b: alternating soft glow (0.10α) and brighter
   glow (0.28α) blocks. Column never goes dark. */
.panels > .panel-c::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.10) 0%,
    rgba(255, 255, 255, 0.10) 50%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(255, 255, 255, 0.28) 100%
  );
  background-size: 100% 45vh;
  background-repeat: repeat;
  pointer-events: none;
  opacity: 0;
  will-change: background-position;
  animation:
    panel-stripe-fade-in-soft 0.7s ease-out 2.8s 1 forwards,
    panel-c-racing 2.1s linear 3.0s infinite;
}

@keyframes panel-b-slide-up {
  from { transform: skewX(-12deg) translateY(130%); }
  to   { transform: skewX(-12deg) translateY(0); }
}

@keyframes panel-c-slide-down {
  from { transform: skewX(-12deg) translateY(-130%); }
  to   { transform: skewX(-12deg) translateY(0); }
}

@keyframes panel-stripe-fade-in {
  from { opacity: 0; }
  to   { opacity: 0.90; }
}

@keyframes panel-stripe-fade-in-soft {
  from { opacity: 0; }
  to   { opacity: 0.75; }
}

@keyframes panel-c-racing {
  from { background-position: 0 0; }      /* zero → one tile down → beams scroll DOWN */
  to   { background-position: 0 45vh; }
}

/* Red wedge in the lower-right, echoing the business card corner.
   Hidden — the only red accent in the hero is panel-b's racing track. */
.red-wedge {
  display: none;
}

/* Subtle noise/stone texture */
.stone {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.08 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  opacity: 0.4;
  mix-blend-mode: overlay;
}

/* Wide watermark container so the Remotion stinger has real off-page-right
   distance to travel during the entrance. Container is anchored to the
   right edge (right: 0) so the right portion of the video frame is flush
   with the page edge, and the canvas's left portion extends inward.
   `min()` instead of `clamp()` so there's no fixed minimum that overflows
   on small viewports — the watermark scales from tiny phones to 4K. */
.va-watermark {
  position: absolute;
  right: 0;
  top: 6%;
  width: min(90vw, 1300px);
  opacity: 0.10;
  animation: va-watermark-ramp 2.2s var(--ease) 0.1s 1 both;
}
.va-watermark img,
.va-watermark video { width: 100%; height: auto; display: block; }

/* Quick fade in, settle at full opacity briefly, then settle to the 10%
   resting watermark state. Cleaner curve to match the simplified stinger. */
@keyframes va-watermark-ramp {
  0%   { opacity: 0; }
  10%  { opacity: 0.85; }
  78%  { opacity: 1.00; }
  100% { opacity: 0.10; }
}

@media (prefers-reduced-motion: reduce) {
  .va-watermark {
    animation: none;
    opacity: 0.10;
    width: clamp(320px, 38vw, 580px);
    right: 4%;
  }
  .va-watermark-vid { display: none; }
  .va-watermark::after {
    content: '';
    display: block;
    width: 100%;
    aspect-ratio: 612 / 301;
    background: url("assets/logo-mark-va.png") center/contain no-repeat;
  }
}

/* Hero foreground */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  color: var(--fg-dim);
  text-transform: uppercase;
  margin-bottom: 36px;
}
.eyebrow-bar {
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--red);
}

.hero-headline {
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 1.0;
  margin: 0 0 32px;
  font-weight: 600;
  letter-spacing: 0.005em;
  max-width: 11ch;
  text-transform: none;
}
.hero-headline .red { color: var(--red); }

.hero-sub {
  font-size: clamp(1.05rem, 1.3vw, 1.18rem);
  color: var(--fg-dim);
  max-width: 620px;
  margin: 0 0 36px;
  line-height: 1.75;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-bottom: 52px;
  padding-top: 26px;
  border-top: 1px solid var(--line-2);
  max-width: 720px;
}
.hero-tags span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--fg-dim);
  text-transform: uppercase;
  padding: 7px 12px;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.015);
  border-radius: var(--radius);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 72px;
}

.hero-trust {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 760px;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.012);
}
.trust-item {
  flex: 1;
  padding: 28px 30px;
  border-right: 1px solid var(--line);
}
.trust-item:last-child { border-right: none; }
.trust-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
  color: var(--fg);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.trust-num .hr,
.trust-num .pct {
  font-size: 1.2rem;
  color: var(--red);
  margin-left: 2px;
}
.trust-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* ─── Currently building strip (numbered indicators) ────────────────── */
.building {
  padding-block: 60px;
  border-block: 1px solid var(--line);
  background: var(--bg-elev);
}
.building-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  align-items: center;
}
.building-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--red);
  text-transform: uppercase;
  margin: 0;
}
.building-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.building-list li {
  border-left: 1px solid var(--line-2);
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.building-ind {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  color: var(--red);
  text-transform: uppercase;
}
.building-text {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--fg);
  line-height: 1.4;
}

/* ─── Sections (common spacing) ─────────────────────────────────────── */
.services,
.approach,
.why,
.work,
.process,
.team,
.contact {
  padding-block: clamp(90px, 11vw, 150px);
  position: relative;
}

/* ─── Services ──────────────────────────────────────────────────────── */
.services { background: var(--bg); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
}
.service-card {
  position: relative;
  background: var(--bg-elev);
  padding: 36px 30px 32px;
  transition: background .25s var(--ease);
  overflow: hidden;
}
.service-card:hover {
  background: var(--bg-elev-2);
}

.service-card-wide { grid-column: span 2; }

.service-icon {
  color: var(--fg);
  margin-bottom: 28px;
}
.service-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--red);
  margin-bottom: 10px;
}
.service-card h3 {
  font-size: 1.25rem;
  margin: 0 0 14px;
  letter-spacing: 0.03em;
  font-weight: 600;
}
.service-card p {
  color: var(--fg-dim);
  font-size: 0.97rem;
  margin-bottom: 22px;
  line-height: 1.7;
}
.service-bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.service-bullets li {
  position: relative;
  padding-left: 20px;
  font-size: 0.86rem;
  color: var(--fg-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.service-bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 10px;
  height: 1px;
  background: var(--red);
}

/* ─── Approach ──────────────────────────────────────────────────────── */
.approach {
  background: var(--bg-elev);
  border-block: 1px solid var(--line);
}
.approach-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 72px;
  align-items: start;
}
.approach-copy .section-title { margin-bottom: 28px; }
.approach-copy .lede {
  font-size: 1.18rem;
  color: var(--fg);
  margin-bottom: 24px;
  font-weight: 500;
  line-height: 1.6;
}
.approach-copy p {
  color: var(--fg-dim);
  line-height: 1.8;
}

.approach-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
}
.panel {
  background: var(--bg);
  padding: 28px 26px;
  position: relative;
  transition: background .25s var(--ease);
}
.panel:hover { background: var(--bg-elev-2); }
.panel-key {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--red);
  margin-bottom: 18px;
}
.panel h4 {
  font-size: 1.02rem;
  margin: 0 0 12px;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.panel p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--fg-dim);
  line-height: 1.65;
}

/* ─── Why (pillars) ─────────────────────────────────────────────────── */
.why {
  background: var(--bg);
  padding-block: clamp(56px, 7vw, 90px);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
}
.why-cell {
  padding: 40px 30px;
  background: var(--bg-elev);
  transition: background .25s var(--ease);
}
.why-cell:hover { background: var(--bg-elev-2); }
.why-icon {
  color: var(--red);
  margin: 0 0 22px;
  display: inline-flex;
}
.why-cell h4 {
  font-size: 1.08rem;
  margin: 0 0 12px;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.why-cell p {
  font-size: 0.9rem;
  color: var(--fg-dim);
  margin: 0;
  line-height: 1.65;
}

/* ─── Work / case studies ───────────────────────────────────────────── */
.work { background: var(--bg-elev); border-block: 1px solid var(--line); }
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
}
.case-card {
  background: var(--bg);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  transition: background .25s var(--ease);
}
.case-card:hover { background: var(--bg-elev-2); }
.case-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.case-card h3 {
  font-size: 1.22rem;
  margin: 0 0 16px;
  letter-spacing: 0.02em;
  font-weight: 600;
  line-height: 1.25;
}
.case-deck {
  color: var(--fg-dim);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
  flex: 1;
}
.case-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.case-stats li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--fg-dim);
}
.case-stats li span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  min-width: 82px;
}
.work-footnote {
  margin: 44px 0 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  color: var(--fg-muted);
  text-transform: uppercase;
}

/* ─── Process ───────────────────────────────────────────────────────── */
.process { background: var(--bg); }
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.process-steps li {
  padding: 36px 32px 36px 0;
  border-top: 1px solid var(--line-2);
  position: relative;
  padding-top: 32px;
}
.process-steps li::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 36px;
  height: 1px;
  background: var(--red);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--red);
  margin-bottom: 16px;
}
.process-steps h3 {
  font-size: 1.5rem;
  margin: 0 0 16px;
  letter-spacing: 0.02em;
  font-weight: 600;
}
.process-steps p {
  color: var(--fg-dim);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

/* ─── Team ──────────────────────────────────────────────────────────── */
.team {
  background: var(--bg-elev);
  border-block: 1px solid var(--line);
}
.team-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 72px;
  align-items: center;
}
.team-copy p {
  color: var(--fg-dim);
  line-height: 1.8;
  font-size: 1.02rem;
}

/* ─── Team founder cards (replaces old team-stat block) ─────────────── */
.team-card {
  background: var(--bg);
  border: 1px solid var(--line-2);
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}
.team-card::after {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 44px;
  height: 1px;
  background: var(--red);
}
.founder {
  padding: 32px 36px;
  border-bottom: 1px solid var(--line);
}
.founder:last-child { border-bottom: none; }
.founder-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 6px;
  color: var(--fg);
}
.founder-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 22px;
}
.founder-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.founder-contact a {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--fg-dim);
  transition: color .18s var(--ease);
  letter-spacing: 0.02em;
  word-break: break-word;
}
.founder-contact a:hover { color: var(--red); }

/* ─── Contact ───────────────────────────────────────────────────────── */
.contact {
  background: var(--bg);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.contact-copy .section-title { margin-bottom: 24px; }
.contact-copy .lede {
  font-size: 1.1rem;
  color: var(--fg-dim);
  line-height: 1.75;
  margin-bottom: 32px;
}
.contact-facts {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}
.contact-facts li {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--fg-dim);
  padding-left: 22px;
  position: relative;
  letter-spacing: 0.02em;
}
.contact-facts li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.7em;
  width: 12px;
  height: 1px;
  background: var(--red);
}
.contact-facts li span {
  font-family: var(--font-display);
  color: var(--fg);
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-right: 8px;
  text-transform: uppercase;
}
.contact-direct {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--fg-dim);
}
.contact-direct p { margin: 0 0 8px; font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg-muted); }
.contact-direct a { color: var(--fg); transition: color .18s var(--ease); }
.contact-direct a:hover { color: var(--red); }
.contact-direct .sep { color: var(--fg-faint); padding-inline: 10px; }

/* Form */
.contact-form,
.contact-success {
  background: var(--bg-elev);
  border: 1px solid var(--line-2);
  padding: 40px 36px;
  position: relative;
}
.contact-form::before,
.contact-success::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 44px;
  height: 1px;
  background: var(--red);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.form-full { margin-bottom: 16px; }
.contact-form label > span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--fg-muted);
  text-transform: uppercase;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 14px 16px;
  transition: border-color .18s var(--ease);
}
.contact-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--fg-dim) 50%), linear-gradient(135deg, var(--fg-dim) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 38px;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
}
.form-checkbox {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 12px !important;
  margin-bottom: 24px;
}
.form-checkbox input { width: 16px; height: 16px; accent-color: var(--red); margin-top: 4px; }
.form-checkbox span {
  font-family: var(--font-body) !important;
  font-size: 0.86rem !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  color: var(--fg-dim) !important;
  line-height: 1.55;
}
.form-fineprint {
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  text-align: center;
}

.contact-success {
  text-align: center;
  padding: 56px 36px;
}
.contact-success .success-mark {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}
.contact-success h3 {
  font-size: 1.7rem;
  margin: 0 0 16px;
  letter-spacing: 0.02em;
  font-weight: 600;
}
.contact-success p {
  color: var(--fg-dim);
  margin: 0 auto 28px;
  max-width: 320px;
}

/* ─── Footer ────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding-block: 80px 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-tagline {
  margin: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  color: var(--red);
  text-transform: uppercase;
}
.footer-blurb {
  margin: 14px 0 0;
  color: var(--fg-muted);
  font-size: 0.92rem;
  max-width: 360px;
  line-height: 1.7;
}
.footer h5 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  color: var(--fg);
  margin: 0 0 18px;
  font-weight: 600;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  font-size: 0.92rem;
  color: var(--fg-muted);
  transition: color .18s var(--ease);
}
.footer-col a:hover { color: var(--fg); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 24px;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--fg-muted);
  text-transform: uppercase;
}

/* ─── Reveal on scroll ──────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ─── Brand lockup divider ──────────────────────────────────────────── */
.lockup-section {
  padding-block: clamp(80px, 10vw, 120px);
  border-block: 1px solid var(--line);
  background: var(--bg);
}
.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  color: var(--fg);
  text-align: center;
}
.brand-lockup-wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 4.2vw, 3.2rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
.brand-lockup-ai { color: var(--red); }
.brand-lockup-tagline {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 720px;
}
.brand-lockup-rule {
  flex: 1;
  height: 1px;
  background: var(--red);
}
.brand-lockup-tagline-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(0.78rem, 1.1vw, 0.95rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg);
  white-space: nowrap;
}

/* ─── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card-wide { grid-column: span 2; }
  .case-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 8px 24px; }
  .approach-grid,
  .team-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .building-inner { grid-template-columns: 1fr; gap: 28px; }
  .building-list { grid-template-columns: 1fr; gap: 18px; }
  .lockup-section { padding-block: 88px; }
  .brand-lockup-tagline { max-width: 560px; gap: 14px; }
}

@media (max-width: 720px) {
  :root { --gutter: 22px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding-block: 32px 64px; }
  .hero-headline { font-size: clamp(2.2rem, 11vw, 3.6rem); }
  .hero-trust { flex-wrap: wrap; }
  .hero-trust .trust-item { flex: 1 0 100%; border-right: none; border-bottom: 1px solid var(--line); }
  .hero-trust .trust-item:last-child { border-bottom: none; }
  .service-grid,
  .case-grid,
  .approach-panels,
  .process-steps,
  .footer-inner { grid-template-columns: 1fr; }
  .service-card-wide { grid-column: auto; }
  .why-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .brand-wordmark { font-size: 0.9rem; }
  /* Mobile: watermark uses near-full viewport width, lifted slightly so it
     sits behind the hero copy without pushing the eyebrow down. Right edge
     stays flush with page (right: 0 from desktop rule). */
  .va-watermark { width: 95vw; top: 4%; }
  .hero-cta-row .btn { flex: 1 0 100%; }
  .lockup-section { padding-block: 64px; }
  .brand-lockup-wordmark { letter-spacing: 0.14em; font-size: 1.4rem; }
  .brand-lockup-tagline-text { letter-spacing: 0.22em; font-size: 0.7rem; }
  .brand-lockup-tagline { gap: 12px; }
  .building { padding-block: 44px; }
  .building-list li { padding-left: 18px; gap: 6px; }
  .building-text { font-size: 0.92rem; letter-spacing: 0.01em; }
}

/* ─── Tablet tune (720 < w ≤ 1024) ──────────────────────────────────── */
@media (min-width: 721px) and (max-width: 1024px) {
  .va-watermark { width: 85vw; top: 5%; }
}

/* ─── Ultra-wide tune (≥ 1920) ──────────────────────────────────────── */
@media (min-width: 1920px) {
  /* On 4K and ultra-wide, %-based panels become very large — pin the red
     column to a more proportionate width so it doesn't dominate the hero. */
  .panels > .panel-b { width: 30%; }
  .panels > .panel-c { width: 15%; }
}

/* ─── Reduced motion ────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  /* Panels keep their rest transform even with the override above */
  .panels > .panel-b { transform: skewX(-12deg); }
  .panels > .panel-c { transform: skewX(-12deg); }
  /* No infinite racing stripes for reduced-motion users.
     For panel-b track: kill the scroll animation but keep the beams visible
     as static colored blocks (testimonials still readable). */
  .panels > .panel-c::before { display: none; }
  .panel-b-track { animation: none; opacity: 1; }
}

/* Hide testimonial text on narrow viewports where panel-b is too thin
   to fit readable copy. The colored beams still scroll for visual rhythm. */
@media (max-width: 720px) {
  .beam-text { display: none; }
}

/* ─── Focus visibility ──────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* ─── Form validation ───────────────────────────────────────────────── */
.contact-form label[data-error] > span {
  color: var(--red);
}
.contact-form label[data-error] input,
.contact-form label[data-error] select,
.contact-form label[data-error] textarea {
  border-color: var(--red);
}
.field-error {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--red);
  text-transform: uppercase;
  font-weight: 500;
}

/* ─── Disabled buttons ──────────────────────────────────────────────── */
.btn[disabled],
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* ─── Noscript fallback ─────────────────────────────────────────────── */
.contact-noscript {
  background: var(--bg-elev);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 28px 30px;
  display: grid;
  gap: 14px;
}
.contact-noscript p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--fg-dim);
}
.contact-noscript a {
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.contact-noscript a:hover {
  opacity: 0.85;
}

/* ─── Legal pages (privacy.html, terms.html) ────────────────────────── */
.legal {
  padding: clamp(96px, 14vw, 160px) 0 clamp(72px, 10vw, 120px);
  background: var(--bg);
}
.legal-container {
  max-width: 820px;
}
.legal-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.05;
  font-weight: 600;
  margin: 8px 0 12px;
}
.legal-effective {
  color: var(--fg-muted);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 36px;
}
.legal h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 24px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--fg);
  margin: 40px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.legal h2:first-of-type {
  border-top: none;
  padding-top: 0;
}
.legal p,
.legal li {
  color: var(--fg-dim);
  font-size: 16px;
  line-height: 1.75;
}
.legal ul {
  margin: 0 0 1.2em;
  padding-left: 22px;
  list-style: disc;
}
.legal ul li {
  margin-bottom: 8px;
}
.legal a {
  color: var(--red);
  border-bottom: 1px solid rgba(220,31,44,0.35);
  transition: border-color 160ms var(--ease), color 160ms var(--ease);
}
.legal a:hover {
  color: var(--red-hover);
  border-bottom-color: currentColor;
}
.legal strong {
  color: var(--fg);
  font-weight: 600;
}
.legal-back {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.legal-back a {
  border-bottom: none;
  color: var(--fg-muted);
}
.legal-back a:hover {
  color: var(--fg);
}

/* Footer legal links row */
.footer-legal-links {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-legal-links li {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-legal-links a {
  color: var(--fg-muted);
  transition: color 160ms var(--ease);
}
.footer-legal-links a:hover {
  color: var(--fg);
}
@media (max-width: 720px) {
  .footer-legal-links {
    order: 2;
    width: 100%;
    justify-content: center;
  }
}
