/* ============================================================
   Full Moon Creative — Global Styles
   Builds on tokens.css. Vanilla CSS, framework-agnostic.
   ============================================================ */

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-page);
  color: var(--fg-primary);
  font-family: var(--font-primary);
  font-size: var(--text-body);
  line-height: var(--leading-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-void); }
::-webkit-scrollbar-thumb { background: var(--color-ash); border-radius: 4px; }

/* ── Layout helpers ──────────────────────────────────────── */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--gutter-desktop);
  padding-right: var(--gutter-desktop);
}
@media (max-width: 900px) {
  .container { padding-left: var(--gutter-tablet); padding-right: var(--gutter-tablet); }
}
@media (max-width: 640px) {
  .container { padding-left: var(--gutter-mobile); padding-right: var(--gutter-mobile); }
}

.section {
  padding: var(--space-24) 0;
  background: var(--color-cosmos);
}
.section-tight { padding: var(--space-20) 0; }
/* Variant: solid void section (used for darker rhythm beats) */
.section.void { background: var(--color-void); }
/* Variant: solid space section (no gradient) */
.section.space { background: var(--color-space); }
/* Variant: cosmos section, e.g. team strips */
.section.cosmos { background: var(--color-cosmos); }

/* Section eyebrow / kicker — hidden site-wide per design direction */
.eyebrow {
  display: none;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  padding: 13px 30px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all var(--duration-base) var(--ease-out);
  text-decoration: none;
}
.btn-primary {
  background: var(--gradient-cta);
  color: var(--fg-primary);
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  box-shadow: 0 0 32px rgba(123, 47, 190, 0.55);
  transform: translateY(-1px);
}
.btn-primary:active { transform: scale(0.97); }

.btn-secondary {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--fg-primary);
  border-color: rgba(255,255,255,0.18);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--fg-primary);
  border-color: rgba(255,255,255,0.18);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.35); }

.btn-sm { padding: 9px 22px; font-size: 0.8125rem; }
.btn-lg { padding: 16px 38px; font-size: 1rem; }

/* ── Header / Nav ────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--glass-nav);
  backdrop-filter: blur(var(--glass-blur-nav));
  -webkit-backdrop-filter: blur(var(--glass-blur-nav));
  border-bottom: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 40px;
  gap: 24px;
  transition: background var(--duration-slow) ease;
}
.site-header.scrolled { background: rgba(8,12,24,0.92); }

.nav-list {
  display: flex; align-items: center; gap: 28px;
  list-style: none;
}
.nav-list.left { justify-content: flex-end; }
.nav-list.right { justify-content: flex-start; }

.nav-link {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--fg-secondary);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color var(--duration-base) ease, border-color var(--duration-base) ease;
  white-space: nowrap;
}
.nav-link:hover { color: var(--fg-primary); }
.nav-link[aria-current="page"] {
  color: var(--fg-primary);
  border-bottom-color: var(--color-lunar);
}

.nav-logo {
  display: flex; align-items: center; justify-content: center;
}
.nav-logo img {
  height: 48px;
  object-fit: contain;
}

.nav-cta-wrap {
  display: flex; align-items: center; gap: 28px;
  /* right links hug the logo; CTA gets pushed right via auto-margin on itself */
}
.nav-cta-wrap > .btn { margin-left: auto; }

.nav-hamburger {
  display: none;
  background: none; border: none;
  flex-direction: column; gap: 5px; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--fg-secondary); border-radius: 2px;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 44px 1fr 44px;
    padding: 0 24px;
  }
  .site-header .nav-list,
  .site-header .nav-cta-wrap {
    display: none;
  }
  .nav-hamburger {
    display: flex;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }
  .nav-logo {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    justify-content: center;
  }
}

.mobile-menu {
  position: fixed; top: var(--nav-height); left: 0; right: 0;
  background: rgba(8,12,24,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 20px 24px 28px;
  display: none; flex-direction: column; gap: 4px;
  z-index: 99;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.0625rem; font-weight: 500;
  color: var(--fg-secondary);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mobile-menu a[aria-current="page"] { color: var(--fg-primary); }
.mobile-menu .btn { margin-top: 12px; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  min-height: 720px;
  height: 100vh;
  overflow: hidden;
  background: var(--color-void);
  display: flex; align-items: center;
}
.hero-video, .hero-bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-video { opacity: 0.55; }
.hero-bg {
  background:
    radial-gradient(ellipse at 70% 35%, rgba(123,47,190,0.22) 0%, transparent 55%),
    linear-gradient(135deg, #04060D 0%, #0D1530 40%, #13203F 70%, #04060D 100%);
}
.starfield {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 5% 10%, rgba(255,255,255,0.9) 0%, transparent 100%),
    radial-gradient(1px 1px at 18% 35%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 32% 8%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 47% 22%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(2px 2px at 62% 10%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 73% 45%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 28%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 92% 15%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 12% 70%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 28% 85%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 75%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(2px 2px at 78% 80%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 95% 65%, rgba(255,255,255,0.6) 0%, transparent 100%);
}
.hero-vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(4,6,13,0.5) 100%),
    linear-gradient(to top, rgba(4,6,13,0.7) 0%, transparent 40%);
}
.hero-headline--oneliner {
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  white-space: nowrap;
  text-shadow: 0 2px 32px rgba(0,0,0,0.7);
  max-width: none;
}
.hero-content--oneliner { gap: 20px; }
.home-mobile-intro { display: none; }
@media (max-width: 640px) {
  .hero { min-height: 0; height: auto; aspect-ratio: 16 / 9; }
  .hero-content { display: none; }
  .hero-headline--oneliner { white-space: normal; }
  .hero-vignette {
    background: linear-gradient(to bottom,
      var(--color-void) 0%, transparent 16%,
      transparent 84%, var(--color-void) 100%);
  }
  .home-mobile-intro {
    display: block;
    background: var(--color-void);
    text-align: center;
    padding: calc(var(--nav-height) + 26px) 22px 22px;
  }
  .home-mobile-intro p {
    font-size: clamp(1.6rem, 6.8vw, 2.15rem);
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -0.02em;
    color: var(--fg-primary);
  }
}
.hero-watermark {
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  width: 60vw; max-width: 800px;
  opacity: 0.06; pointer-events: none; z-index: 0;
}

.hero-content {
  position: relative; z-index: 2;
  width: 100%;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 22px;
  padding: 0 40px;
}
.hero-headline {
  font-family: var(--font-primary);
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  font-weight: var(--weight-bold);
  line-height: 1.05;
  letter-spacing: var(--tracking-tight);
  color: var(--fg-primary);
  text-shadow: 0 2px 32px rgba(0,0,0,0.7);
  max-width: 18ch;
  text-wrap: pretty;
}
.hero-headline .mistral {
  font-family: var(--font-accent);
  font-weight: 400;
  color: var(--color-aurora);
  font-size: 0.85em;
}
.hero-sub {
  max-width: 560px;
  font-size: 1.0625rem;
  color: rgba(242,244,255,0.72);
  line-height: 1.6;
}
.hero-cta-row {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  margin-top: 4px;
}

/* Sub-page hero (smaller, left-aligned) */
.subhero {
  position: relative;
  background: linear-gradient(180deg, #04060D 0%, #0D1530 60%, #080C18 100%);
  overflow: hidden;
  padding: calc(var(--nav-height) + 80px) 0 80px;
}
.subhero .container {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: 18px;
  align-items: center;
  text-align: center;
}
.subhero h1 { margin-inline: auto; max-width: 75%; }
.subhero p { margin-inline: auto; }
.subhero h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
  white-space: pre-line;
}
.subhero p { max-width: 640px; color: var(--fg-secondary); font-size: 1.0625rem; text-wrap: pretty; }
/* hide eyebrows on sub-page heroes per design */
.subhero .eyebrow { display: none; }
/* center the CTA row when used inside a subhero */
.subhero .hero-cta-row { justify-content: center !important; }
.subhero .starfield { z-index: 0; }
/* Soft fade from the subhero into whatever section follows it so the seam
   between the dark hero and the next dark section isn't a hard line. */
.subhero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 140px;
  background: linear-gradient(180deg, transparent 0%, var(--color-cosmos) 100%);
  pointer-events: none;
  z-index: 1;
}
.subhero-glow {
  position: absolute; top: -10%; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(123,47,190,0.16) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}

/* Scroll cue */
.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 5; opacity: 0.4; pointer-events: none;
  animation: bob 2.4s var(--ease-in-out) infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

/* ── Section header (eyebrow + h2 + lede) ───────────────── */
.section-head {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 56px;
}
.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: 1.15;
  color: var(--fg-primary);
}
.section-head .lede {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              background var(--duration-base) var(--ease-out);
}
.card:hover {
  background: var(--bg-elevated);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.55);
}

/* Service card */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .service-grid { grid-template-columns: 1fr; } }

.service-card {
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 14px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.service-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--gradient-cta);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.service-icon svg { width: 22px; height: 22px; stroke: #fff; }
.service-card h3 {
  font-size: 1.0625rem;
  font-weight: var(--weight-semibold);
  color: var(--fg-primary);
}
.service-card p {
  font-size: var(--text-sm);
  color: var(--fg-muted);
  line-height: 1.65;
  flex: 1;
}
.service-link {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-aurora);
  transition: color var(--duration-base) ease;
}
.service-card:hover .service-link { color: var(--color-stardust); }

/* Project card */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .project-grid { grid-template-columns: 1fr; } }

.project-card { overflow: hidden; cursor: pointer; }

/* Clickable card wrapper — keeps card visuals identical, lifts on hover */
.project-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-lg);
  transition: transform var(--duration-base) ease, box-shadow var(--duration-base) ease;
  /* Stretch in any grid container so adjacent cards share height even when
     one card has a longer (multi-line) title. */
  height: 100%;
}
.project-card-link > .project-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.project-card-link > .project-card > .project-body { flex: 1 1 auto; }
.project-card-link:hover {
  transform: translateY(-4px);
}
.project-card-link:hover .project-card { box-shadow: var(--shadow-lg); border-color: rgba(255,255,255,0.14); }
.project-card-link:hover .project-thumb { transform: scale(1.02); }
.project-card-link:focus-visible {
  outline: 2px solid var(--color-aurora);
  outline-offset: 4px;
}
.project-thumb {
  position: relative;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #0D1530 0%, #13203F 100%);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: grid; place-items: center;
  overflow: hidden;
}
.project-thumb::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, var(--accent-tint, rgba(123,47,190,0.18)) 0%, transparent 70%);
}
.project-thumb-label {
  position: relative;
  font-size: 0.75rem; font-weight: var(--weight-bold);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-ash);
}
.project-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.project-tag {
  align-self: flex-start;
  font-size: 0.6875rem; font-weight: var(--weight-semibold);
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: var(--radius-full);
  border: 1px solid var(--tag-border, rgba(155,89,232,0.3));
  color: var(--tag-color, var(--color-aurora));
  background: var(--tag-bg, rgba(155,89,232,0.10));
}
.project-card h3 { font-size: 1.0625rem; font-weight: var(--weight-semibold); color: var(--fg-primary); }
.project-card .project-desc { font-size: var(--text-sm); color: var(--fg-muted); line-height: 1.6; }

/* ── About strip / stats ─────────────────────────────────── */
.about-strip {
  background: var(--color-cosmos);
  padding: 96px 0;
}
.about-strip .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) { .about-strip .container { grid-template-columns: 1fr; gap: 48px; } }

.about-copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.about-copy h2 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); font-weight: var(--weight-bold); line-height: 1.2; letter-spacing: var(--tracking-tight); }
.about-copy p { color: var(--fg-secondary); line-height: 1.75; }

/* Long-form story body (About "Our Story") — single column, centered max-width */
.story-copy {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.story-copy p { color: var(--fg-secondary); line-height: 1.75; }
.story-copy h3 {
  font-size: 1.25rem;
  font-weight: var(--weight-bold);
  line-height: 1.3;
  margin-top: 14px;
  color: var(--fg-primary);
}

.stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.stat {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  display: flex; flex-direction: column; gap: 6px;
}
.stat-num { font-size: 2.25rem; font-weight: var(--weight-bold); line-height: 1; }
.stat-label { font-size: 0.75rem; font-weight: var(--weight-medium); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); }

/* About portrait placeholder */
.about-portrait {
  position: relative;
  aspect-ratio: 4/5;
  width: 100%;
  border-radius: var(--radius-md);
  background:
    radial-gradient(ellipse at 30% 30%, rgba(123,47,190,0.22) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 75%, rgba(75,143,232,0.18) 0%, transparent 60%),
    linear-gradient(135deg, var(--color-cosmos) 0%, var(--color-nebula) 100%);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid; place-items: center;
}
.about-portrait .project-thumb-label {
  position: relative; z-index: 1;
  color: var(--color-ash);
}

/* ── Stats band ──────────────────────────────────────────── */
.stats-band {
  padding: 56px 0;
  border-top: 1px solid rgba(123,63,228,0.15);
  border-bottom: 1px solid rgba(123,63,228,0.15);
}
.stats-band-row {
  display: flex;
  width: 100%;
  justify-content: center;
}
.stats-band-item {
  flex: 1;
  text-align: center;
  padding: 16px 24px;
  position: relative;
}
.stats-band-item + .stats-band-item::before {
  content: '';
  position: absolute;
  left: 0; top: 20%;
  width: 1px; height: 60%;
  background: linear-gradient(180deg, transparent, rgba(123,63,228,0.4), transparent);
}
.stats-band-item .stat-num {
  display: block;
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  font-weight: var(--weight-bold);
  color: var(--color-aurora);
  line-height: 1;
  margin-bottom: 8px;
}
.stats-band-item .stat-label {
  font-size: 0.875rem;
  color: var(--fg-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@media (max-width: 640px) {
  .stats-band-row { flex-wrap: wrap; }
  .stats-band-item { flex-basis: 50%; }
  .stats-band-item + .stats-band-item::before { display: none; }
}

/* ── Service card with image ─────────────────────────────── */
.service-card-media {
  margin: -28px -24px 4px;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  flex-shrink: 0;
}
.service-card-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out);
}
.service-card:hover .service-card-media img {
  transform: scale(1.06);
}

/* ── About portrait with real image ─────────────────────── */
.about-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* ── Quote / pull-quote with Mistral ─────────────────────── */
.pullquote {
  background: linear-gradient(180deg, var(--color-space) 0%, var(--color-cosmos) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 96px 0;
  text-align: center;
}
.pullquote blockquote {
  font-family: var(--font-accent);
  font-size: var(--text-mistral);
  color: var(--fg-primary);
  line-height: 1.25;
  max-width: 18ch;
  margin: 0 auto;
}
.pullquote cite {
  display: block; margin-top: 24px;
  font-style: normal;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* ── Carousel tracks (testimonials + projects) ─────────────
   Flex/transform-based slide carousels. JS toggles transform
   on .t-track / .proj-track to move between pages. */
.t-carousel,
.proj-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
}
.t-track,
.proj-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: transform 0.55s var(--ease-out);
  will-change: transform;
}

/* Testimonials: 3 cards on desktop, 1 when hamburger nav appears */
.t-track { gap: 24px; }
.t-track > .t-card {
  flex: 0 0 calc((100% - 48px) / 3);
  width: calc((100% - 48px) / 3);
  max-width: calc((100% - 48px) / 3);
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}
.t-track > .t-card .t-quote { flex: 1 1 auto; }
.t-track > .t-card .t-meta  { margin-top: auto; }

@media (max-width: 900px) {
  .t-track { gap: 0; }
  .t-track > .t-card {
    flex-basis: 100%;
    width: 100%;
    max-width: 100%;
  }
}

/* Projects: 3 per page desktop, 1 per page mobile */
.proj-track { gap: 24px; }
.proj-track > .project-card-link {
  flex: 0 0 calc((100% - 48px) / 3);
  width: calc((100% - 48px) / 3);
  max-width: calc((100% - 48px) / 3);
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
  display: block;
}
.proj-track > .project-card-link > .project-card { height: 100%; }

@media (max-width: 767px) {
  .proj-track { gap: 0; }
  .proj-track > .project-card-link {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }
}

/* ── Testimonials carousel ───────────────────────────────── */
.testimonials .section-head { text-align: center; }

/* gold star gradient — defined once, referenced via fill="url(#fmcStarGold)" */
.t-stars-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.t-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 28px 28px 24px;
  display: flex; flex-direction: column; gap: 16px;
  align-items: flex-start;
  width: 100%;
  text-align: left;
}
.t-stars { display: inline-flex; gap: 3px; line-height: 0; }
.t-stars svg {
  width: 14px; height: 14px;
  display: block;
  fill: url(#fmcStarGold);
  filter: drop-shadow(0 0 6px rgba(232,160,64,0.25));
}
.t-quote {
  font-size: 0.9375rem;
  font-weight: var(--weight-regular);
  line-height: 1.6;
  color: var(--fg-primary);
  letter-spacing: 0;
  text-wrap: pretty;
}
.t-meta {
  display: flex; align-items: center; gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
  margin-top: auto;
}
.t-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gradient-cta);
  display: grid; place-items: center;
  font-size: 0.6875rem; font-weight: var(--weight-bold);
  letter-spacing: 0.05em;
  color: var(--fg-primary);
  flex-shrink: 0;
}
.t-name { font-size: 0.875rem; font-weight: var(--weight-semibold); color: var(--fg-primary); }
.t-role { font-size: 0.75rem; color: var(--fg-muted); margin-top: 2px; }

.t-controls,
.proj-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}
.t-arrow {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 50%;
  transition: all var(--duration-base) ease;
}
.t-arrow:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.25); }
.t-arrow svg { width: 18px; height: 18px; stroke: var(--fg-secondary); }
.t-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.t-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: none; padding: 0;
  cursor: pointer;
  transition: background var(--duration-slow) ease, transform var(--duration-slow) ease;
  flex-shrink: 0;
  -webkit-appearance: none;
  appearance: none;
}
.t-dot:hover { background: rgba(255,255,255,0.5); }
.t-dot.active,
.t-dot.is-active {
  background: rgba(255,255,255,0.95);
  transform: scale(1.4);
}

.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }
.step {
  padding: 28px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex; flex-direction: column; gap: 10px;
}
.step-num {
  font-family: var(--font-primary);
  font-size: 0.75rem; font-weight: var(--weight-bold);
  letter-spacing: 0.16em; color: var(--color-aurora);
}
.step h3 { font-size: 1.0625rem; font-weight: var(--weight-semibold); color: var(--fg-primary); }
.step p { font-size: var(--text-sm); color: var(--fg-muted); line-height: 1.65; }

/* ── Demo reel (services) ────────────────────────────────── */
.demo-reel-section { padding-bottom: 0; }
.demo-reel-section + .section { padding-top: calc(var(--space-24) + var(--space-12)); }
.demo-reel {
  position: relative;
  aspect-ratio: 16/9;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  background:
    radial-gradient(ellipse at 50% 40%, rgba(155,89,232,0.18) 0%, transparent 65%),
    linear-gradient(135deg, var(--color-nebula) 0%, var(--color-cosmos) 100%);
  display: grid; place-items: center;
  cursor: pointer;
}
.demo-reel-play {
  position: relative; z-index: 1;
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--gradient-cta);
  display: grid; place-items: center;
  box-shadow: 0 8px 32px rgba(155,89,232,0.45), 0 0 0 8px rgba(255,255,255,0.04);
  transition: transform var(--duration-base) ease;
}
.demo-reel:hover .demo-reel-play { transform: scale(1.08); }
.demo-reel-play svg { width: 32px; height: 32px; fill: var(--fg-primary); margin-left: 4px; }
/* Inline <video> fills the reel container; parent's overflow:hidden handles the radius */
.demo-reel-video { width: 100%; display: block; }
.demo-reel-label {
  position: absolute; left: 24px; bottom: 24px;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  background: rgba(0,0,0,0.55);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

/* ── Tweaks panel (vanilla) ──────────────────────────────── */
.tweaks-panel {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 9999;
  display: none;
  background: rgba(15,16,28,0.92);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
  min-width: 240px;
  font-family: var(--font-primary);
  color: var(--fg-primary);
}
.tweaks-panel.open { display: block; }
.tweaks-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.tweaks-title {
  font-size: 0.75rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.tweaks-close {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  background: transparent;
  color: var(--fg-muted);
  font-size: 18px; line-height: 1;
}
.tweaks-close:hover { color: var(--fg-primary); }
.tweaks-section { display: flex; flex-direction: column; gap: 6px; }
.tweaks-label {
  font-size: 0.75rem; color: var(--fg-secondary);
}
.tweaks-segment {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0;
  padding: 3px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
}
.tweaks-segment button {
  font-size: 0.8125rem;
  padding: 6px 14px;
  border-radius: 7px;
  background: transparent;
  color: var(--fg-secondary);
  font-weight: var(--weight-medium);
  transition: all var(--duration-base) ease;
}
.tweaks-segment button[aria-pressed="true"] {
  background: var(--gradient-cta);
  color: var(--fg-primary);
  box-shadow: 0 4px 12px rgba(155,89,232,0.25);
}

/* ── Blog feed (single-column vertical) ───────────────────── */
.blog-feed {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}

.blog-feed-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-lg);
  transition: transform var(--duration-base) ease;
}
.blog-feed-link:hover { transform: translateY(-3px); }
.blog-feed-link:hover .blog-feed-card { box-shadow: var(--shadow-lg); border-color: rgba(255,255,255,0.14); }
.blog-feed-link:focus-visible { outline: 2px solid var(--color-aurora); outline-offset: 4px; }

.blog-feed-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  overflow: hidden;
  min-height: 200px;
}

.blog-feed-thumb {
  background-size: cover;
  background-position: center;
  min-height: 200px;
}
.blog-feed-thumb--placeholder {
  background: linear-gradient(135deg, rgba(75,143,232,0.15), rgba(155,89,232,0.10));
  border-right: 1px solid var(--border-subtle);
}

.blog-feed-body {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.blog-feed-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--tag-color, var(--fg-secondary));
  background: var(--tag-bg, rgba(255,255,255,0.06));
  border: 1px solid var(--tag-border, rgba(255,255,255,0.12));
  width: fit-content;
}

.blog-feed-body h2 {
  font-size: 1.125rem;
  font-weight: var(--weight-semibold);
  color: var(--fg-primary);
  line-height: 1.35;
  margin: 0;
}

.blog-feed-excerpt {
  font-size: var(--text-sm);
  color: var(--fg-secondary);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-meta {
  margin-top: 4px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

@media (max-width: 640px) {
  .blog-feed-card { grid-template-columns: 1fr; }
  .blog-feed-thumb { min-height: 180px; aspect-ratio: 16/9; }
  .blog-feed-body { padding: 20px; }
}

/* Legacy grid (kept for any other page that still uses it) */
.subhero + .blog-index-section {
  background: linear-gradient(180deg, #080C18 0%, var(--color-void) 96px);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 1024px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .blog-grid { grid-template-columns: 1fr; } }

.blog-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-lg);
  transition: transform var(--duration-base) ease;
}
.blog-card-link:hover { transform: translateY(-4px); }
.blog-card-link:hover .blog-card { box-shadow: var(--shadow-lg); border-color: rgba(255,255,255,0.14); }
.blog-card-link:hover .project-thumb { transform: scale(1.02); }
.blog-card-link:focus-visible { outline: 2px solid var(--color-aurora); outline-offset: 4px; }
.blog-card { overflow: hidden; height: 100%; }
.blog-card .project-thumb {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  transition: transform var(--duration-base) ease;
}
.blog-card .project-body { min-height: 256px; }
.blog-card h2,
.blog-card h3 { font-size: 1.125rem; font-weight: var(--weight-semibold); color: var(--fg-primary); line-height: 1.35; }

/* Pagination scaffold (hidden by default, ready when post count grows) */
.blog-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}
.blog-pager[hidden] { display: none; }
.blog-pager-link {
  color: var(--fg-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: all var(--duration-base) ease;
}
.blog-pager-link:hover { color: var(--fg-primary); border-color: rgba(255,255,255,0.18); background: rgba(255,255,255,0.03); }
.blog-pager-info { font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); }

/* Single post */
.post { display: block; }
.post-hero {
  position: relative;
  padding: clamp(80px, 12vw, 140px) 0 clamp(40px, 6vw, 64px);
  overflow: hidden;
}
.post-hero .container { position: relative; z-index: 1; max-width: 820px; }
.post-breadcrumb { margin-bottom: 24px; font-size: 0.875rem; }
.post-breadcrumb a { color: var(--fg-muted); text-decoration: none; transition: color var(--duration-base) ease; }
.post-breadcrumb a:hover { color: var(--fg-primary); }
.post-hero .project-tag { display: inline-block; margin-bottom: 20px; }
.post-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: var(--weight-semibold);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  text-wrap: balance;
}
.post-hero .lede { max-width: 640px; }
.post-meta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.post-cover {
  position: relative;
  max-width: 1100px;
  margin: 0 auto 64px;
  padding: 0 24px;
}
.post-cover img {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
}
.post-cover-fallback {
  aspect-ratio: 16/9;
  width: calc(100% - 48px);
  margin: 0 auto 64px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  display: grid; place-items: center;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(155,89,232,0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 75%, rgba(75,143,232,0.14) 0%, transparent 60%),
    linear-gradient(135deg, var(--color-nebula) 0%, var(--color-cosmos) 100%);
}
.post-cover-fallback img { display: none; }
.post-cover-fallback-label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.post-cover:not(.post-cover-fallback) .post-cover-fallback-label { display: none; }

.post-body {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 96px;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--fg-secondary);
}
.post-body > * + * { margin-top: 1.25em; }
.post-body h2 {
  margin-top: 2em;
  font-size: 1.625rem;
  font-weight: var(--weight-semibold);
  color: var(--fg-primary);
  letter-spacing: -0.01em;
}
.post-body h3 {
  margin-top: 1.6em;
  font-size: 1.25rem;
  font-weight: var(--weight-semibold);
  color: var(--fg-primary);
}
.post-body a { color: var(--color-aurora); text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover { color: var(--color-electric); }
.post-body ul, .post-body ol { padding-left: 1.4em; }
.post-body li + li { margin-top: 0.4em; }
.post-body blockquote {
  margin: 2em 0;
  padding: 20px 28px;
  border-left: 3px solid var(--color-aurora);
  background: rgba(155,89,232,0.06);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 1.125rem;
  color: var(--fg-primary);
  font-style: italic;
}
.post-body blockquote cite {
  display: block;
  margin-top: 12px;
  font-size: 0.875rem;
  font-style: normal;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
}
.post-body figure { margin: 2em 0; }
.post-body figure img {
  width: 100%;
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}
.post-body figcaption {
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--fg-muted);
  text-align: center;
}
.post-body .fig-placeholder {
  aspect-ratio: 16/9;
  display: grid; place-items: center;
  background: var(--bg-surface);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--fg-muted);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.post-body code {
  font-family: var(--font-mono, ui-monospace, monospace);
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
.post-body hr {
  border: 0;
  border-top: 1px solid var(--border-subtle);
  margin: 2.5em 0;
}

/* ── Weak-points grid (services pages) ───────────────────── */
.weakpoints-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.weakpoint {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px 32px 28px;
  display: flex; flex-direction: column; gap: 12px;
  overflow: hidden;
}
.weakpoint::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(155,89,232,0.10), transparent 60%);
  pointer-events: none;
}
.weakpoint > * { position: relative; }
.weakpoint-num {
  font-family: var(--font-primary);
  font-size: 1.625rem;
  letter-spacing: 0.06em;
  color: var(--color-aurora);
  display: inline-block; margin-bottom: 4px;
}
.weakpoint h3 {
  font-size: 1.125rem;
  font-weight: var(--weight-semibold);
  color: var(--fg-primary);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.weakpoint p {
  font-size: 0.9375rem;
  color: var(--fg-secondary);
  line-height: 1.65;
  margin: 0;
  text-wrap: pretty;
}
@media (max-width: 1024px) { .weakpoints-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .weakpoints-grid { grid-template-columns: 1fr; } }

/* ── CTA banner ──────────────────────────────────────────── */
.cta-banner {
  position: relative;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(123,47,190,0.25) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 50%, rgba(75,143,232,0.18) 0%, transparent 55%),
    var(--color-void);
  padding: 96px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}
.cta-banner .container { display: block; text-align: left; }
.cta-banner-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.cta-banner-copy { display: flex; flex-direction: column; gap: 18px; }
.cta-banner h2 {
  font-size: clamp(1.875rem, 3.4vw, 2.75rem);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: 1.05;
  text-wrap: balance;
  margin: 0;
}
.cta-banner p { color: var(--fg-secondary); max-width: 46ch; margin: 0; }
.cta-bullets {
  list-style: none; padding: 0; margin: 8px 0 0;
  display: flex; flex-direction: column; gap: 10px;
}
.cta-bullets li {
  position: relative; padding-left: 26px;
  color: var(--fg-secondary); font-size: 0.9375rem;
}
.cta-bullets li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 14px; height: 14px;
  background: var(--gradient-cta);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(155,89,232,0.35);
}
.cta-form {
  display: flex; flex-direction: column; gap: 14px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(6px);
}
.cta-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cta-form .form-field { display: flex; flex-direction: column; gap: 6px; }
.cta-form .form-label {
  font-size: 0.75rem; font-weight: var(--weight-semibold);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-muted);
}
.cta-form .form-optional { font-weight: var(--weight-regular); text-transform: none; letter-spacing: 0; opacity: 0.7; }
.cta-form input, .cta-form select, .cta-form textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--fg-primary);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color var(--duration-base) ease, background var(--duration-base) ease;
  width: 100%;
}
.cta-form input::placeholder, .cta-form textarea::placeholder { color: rgba(255,255,255,0.35); }
.cta-form input:focus, .cta-form select:focus, .cta-form textarea:focus {
  outline: none;
  border-color: var(--color-aurora);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 3px rgba(155,89,232,0.15);
}
.cta-form textarea { resize: vertical; min-height: 90px; }
.cta-form select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1l5 5 5-5' stroke='%23B8B8C5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.cta-form-submit { margin-top: 4px; align-self: flex-start; }
.cta-form-hint { font-size: 0.75rem; color: var(--fg-muted); margin: 0; }
.cta-form .form-success {
  background: rgba(155,89,232,0.10);
  border: 1px solid rgba(155,89,232,0.30);
  color: var(--fg-primary);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.9375rem;
}
@media (max-width: 900px) {
  .cta-banner-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-form .form-row { grid-template-columns: 1fr; }
  .cta-form-submit { align-self: stretch; }
}

/* ── Forms ───────────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.contact-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; gap: 28px; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 0.75rem; font-weight: var(--weight-bold);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-secondary);
}
.field input, .field select, .field textarea {
  background: rgba(13,21,48,0.8);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  color: var(--fg-primary);
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  padding: 12px 16px;
  outline: none;
  transition: border-color var(--duration-base) ease, box-shadow var(--duration-base) ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--color-aurora);
  box-shadow: 0 0 0 3px rgba(155,89,232,0.18);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-muted); }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form .btn[type="submit"] { align-self: flex-start; }

/* Contact info ladder (right column on /contact) */
.contact-intro { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.contact-intro h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: var(--weight-bold);
  line-height: 1.2;
  letter-spacing: var(--tracking-tight);
}
.contact-intro p { color: var(--fg-secondary); line-height: 1.75; }
/* Contact page: styled confirmation panel when form is submitted */
.page-contact .form-success {
  padding: 28px 32px;
  margin-top: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(155, 89, 232, 0.30);
  background: linear-gradient(135deg, var(--color-cosmos) 0%, var(--color-nebula) 100%);
  color: var(--fg-primary);
  text-align: center;
  font-size: 1.0625rem;
  line-height: 1.65;
  box-shadow: 0 0 30px rgba(155, 89, 232, 0.22), 0 8px 28px rgba(0, 0, 0, 0.5);
}

.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: var(--color-cosmos);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-base) var(--ease-out), background var(--duration-base) var(--ease-out);
}
.contact-info-item:hover {
  border-color: rgba(155,89,232,0.30);
  background: var(--color-nebula);
}
.contact-info-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: var(--gradient-cta);
  display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(155,89,232,0.30);
}
.contact-info-icon svg { width: 18px; height: 18px; stroke: #fff; }
.contact-info-item h3 {
  font-size: 1rem;
  font-weight: var(--weight-semibold);
  color: var(--fg-primary);
  margin-bottom: 4px;
}
.contact-info-item p {
  font-size: var(--text-sm);
  color: var(--fg-muted);
  line-height: 1.55;
  margin: 0;
}
.contact-link { color: var(--color-electric); font-weight: var(--weight-medium); }
.contact-link:hover { color: var(--color-stardust); }

/* What happens next: 3-step expectations block under the form */
.contact-next {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .contact-next { grid-template-columns: 1fr; gap: 20px; } }
.contact-next-item {
  padding: 24px;
  background: var(--color-cosmos);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex; flex-direction: column; gap: 10px;
}
.contact-next-num {
  font-size: 0.75rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.16em;
  color: var(--color-aurora);
}
.contact-next-item h3 {
  font-size: 1.0625rem;
  font-weight: var(--weight-semibold);
  color: var(--fg-primary);
}
.contact-next-item p {
  font-size: var(--text-sm);
  color: var(--fg-muted);
  line-height: 1.65;
  margin: 0;
}

/* Embedded map frame */
.map-frame {
  height: 380px;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}
.map-frame iframe { border: 0; display: block; width: 100%; height: 100%; }

/* Narrow content container (e.g. /contact) */
.container.container--narrow { max-width: 960px; }

/* Centered section header variant — also widens the column so long ledes don't wrap to a tight 640px ribbon */
.section-head.center {
  text-align: center;
  align-items: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.section-head.center .lede { margin-inline: auto; }

/* Centered "see more" CTA below a section grid */
.section-cta-row {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--color-void);
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-subtle);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 640px) {
  .site-footer { padding: 40px 0 24px; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-bottom: 24px;
    justify-items: center;
    text-align: center;
  }
  .footer-brand { align-items: center; gap: 12px; }
  .footer-brand img { object-position: center; }
  .footer-brand p { max-width: 300px; }
  .footer-socials { justify-content: center; }
  .footer-col h4 { margin-bottom: 10px; }
  .footer-col ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
  }
  .footer-col:last-child ul { flex-direction: column; gap: 8px; }
  .footer-col:last-child ul li:nth-child(n+3) { display: none; }
  .footer-bottom { justify-content: center; text-align: center; padding-top: 18px; }
  .footer-bottom .legal { justify-content: center; }
}

.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand img { height: 56px; object-fit: contain; object-position: left; }
.footer-brand p { font-size: var(--text-sm); color: var(--fg-muted); line-height: 1.7; max-width: 280px; }

.footer-socials { display: flex; gap: 10px; margin-top: 4px; }
.footer-socials a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  transition: all var(--duration-base) ease;
}
.footer-socials a:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.20);
}
.footer-socials svg { width: 16px; height: 16px; stroke: var(--fg-muted); fill: none; stroke-width: 1.5; }
.footer-socials a:hover svg { stroke: var(--fg-primary); }

.footer-col h4 {
  font-size: 0.75rem; font-weight: var(--weight-bold);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-secondary); margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col li {
  font-size: var(--text-sm);
  color: var(--fg-muted);
  transition: color var(--duration-base) ease;
}
.footer-col a:hover { color: var(--fg-primary); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; flex-wrap: wrap; gap: 12px;
  font-size: var(--text-xs); color: var(--color-ash);
}
.footer-bottom .legal { display: flex; gap: 24px; }
.footer-bottom a:hover { color: var(--fg-secondary); }

/* ── Entry animations ────────────────────────────────────── */
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.fade-up.in { opacity: 1; transform: translateY(0); }

/* ── Accessibility ───────────────────────────────────────── */

/* Skip-to-content link — visible on focus only */
.skip-link {
  position: absolute;
  top: -100%;
  left: 24px;
  z-index: 9999;
  background: var(--gradient-cta);
  color: var(--fg-primary);
  padding: 10px 20px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 0.875rem;
  font-weight: var(--weight-semibold);
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

/* Visible focus rings on interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-aurora);
  outline-offset: 3px;
}
/* Primary button gets glow focus */
.btn-primary:focus-visible {
  outline: 2px solid var(--color-aurora);
  outline-offset: 4px;
  box-shadow: 0 0 0 5px rgba(155,89,232,0.20);
}

/* Event Production page: tighter vertical rhythm */
.page-events .section { padding: var(--space-16) 0; }
.page-events .section-head { margin-bottom: var(--space-10); }
.page-events .demo-reel-section + .section { padding-top: var(--space-16); }
.page-events .subhero { padding-bottom: var(--space-10); }

/* Video page: tightest vertical rhythm */
.page-video .section { padding: var(--space-10) 0; }
.page-video .section-head { margin-bottom: var(--space-8); }
.page-video .demo-reel-section + .section { padding-top: var(--space-10); }
.page-video .subhero { padding-bottom: var(--space-8); }

/* Digital page: tighter section rhythm */
.page-digital .section { padding: var(--space-10) 0; }
.page-digital .section-head { margin-bottom: var(--space-8); }
.page-digital .subhero { padding-bottom: var(--space-10); }

/* Government page: tighter section rhythm */
.page-government .section { padding: var(--space-10) 0; }
.page-government .section-head { margin-bottom: var(--space-8); }
.page-government .subhero { padding-bottom: var(--space-10); }

/* AV Installs page: tighter section rhythm */
.page-av-installs .section { padding: var(--space-10) 0; }
.page-av-installs .section-head { margin-bottom: var(--space-8); }
.page-av-installs .subhero { padding-bottom: var(--space-10); }

/* Home page: tighter section rhythm on mobile */
@media (max-width: 640px) {
  .page-home .section { padding: var(--space-10) 0; }
  .page-home .section-head { margin-bottom: var(--space-8); }
}
.page-events .service-card-media { aspect-ratio: 2 / 1; max-height: 200px; position: relative; }
.page-events .service-card-media img {
  width: 100%; height: 100%; max-height: none;
  object-fit: cover;
  object-position: center top;
  /* Source images have a baked-in watermark along the bottom edge.
     Scale up 20% anchored to top so the bottom band crops off. */
  transform: scale(1.20);
  transform-origin: center top;
}
.page-events .service-card:hover .service-card-media img {
  transform: scale(1.26);
  transform-origin: center top;
}

/* ── Premium card treatment: cinematic overlay + aurora hover ──
   Applied across events service cards, home service cards, and blog cards */

/* Cinematic gradient + aurora rim over media regions */
.page-events .service-card-media,
.page-home .service-card-media,
.page-blog .blog-card .project-thumb {
  position: relative;
}
.page-events .service-card-media::after,
.page-home .service-card-media::after,
.page-blog .blog-card .project-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(155,89,232,0.14) 0%, transparent 55%),
    linear-gradient(180deg, transparent 50%, rgba(4,6,13,0.55) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Light sweep + aurora glow on hover */
.page-events .service-card,
.page-home .service-card,
.page-government .service-card,
.page-blog .blog-card {
  position: relative;
  overflow: hidden;
}
.page-events .service-card::before,
.page-home .service-card::before,
.page-government .service-card::before,
.page-blog .blog-card::before {
  content: "";
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.07) 50%, transparent 100%);
  transform: skewX(-18deg);
  pointer-events: none;
  transition: left 0.7s var(--ease-out);
  z-index: 2;
}
@media (hover: hover) {
  .page-events .service-card:hover,
  .page-home .service-card:hover,
  .page-government .service-card:hover,
  .page-blog .blog-card-link:hover .blog-card {
    box-shadow:
      0 16px 40px rgba(0,0,0,0.6),
      0 0 0 1px rgba(155,89,232,0.30),
      0 0 30px rgba(155,89,232,0.22);
  }
  .page-events .service-card:hover::before,
  .page-home .service-card:hover::before,
  .page-government .service-card:hover::before,
  .page-blog .blog-card-link:hover .blog-card::before { left: 125%; }
}

/* Government page: aurora glow on the service icons themselves */
.page-government .service-icon {
  box-shadow: 0 0 18px rgba(155, 89, 232, 0.35), 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: box-shadow var(--duration-base) var(--ease-out);
}
.page-government .service-card:hover .service-icon {
  box-shadow: 0 0 28px rgba(155, 89, 232, 0.55), 0 6px 18px rgba(0, 0, 0, 0.5);
}

/* Universal aurora glow on content images and videos */
img, video {
  box-shadow: 0 0 24px rgba(155, 89, 232, 0.18), 0 8px 24px rgba(0, 0, 0, 0.4);
}
/* Exclusions: brand chrome, seals, social icons, and elements with their own styling */
.nav-logo img,
.footer-brand img,
.seal-plate img,
.footer-socials img,
.footer-socials svg,
.service-icon img,
.service-icon svg {
  box-shadow: none;
}

.section-head-wide { max-width: none; }

/* Blog page — Stars + Soft Glow background */
.page-blog {
  background:
    url('/assets/images/FMC_Stars_and_Soft_Glow_background.svg') center top / cover no-repeat fixed,
    var(--color-void);
}
.page-blog .section,
.page-blog .subhero { background: transparent; }


/* ── City seal marquee (auto-scrolling trust strip) ──────── */
.seal-marquee {
  padding: var(--space-16) 0 var(--space-12);
  background: var(--color-cosmos);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}
.seal-marquee-head {
  text-align: center;
  margin-bottom: var(--space-10);
  padding: 0 var(--gutter-mobile);
}
.seal-marquee-head h2 {
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--fg-secondary);
  margin: 0;
}
.seal-marquee-viewport {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.seal-marquee-track {
  display: flex;
  gap: var(--space-12);
  width: max-content;
  animation: seal-scroll 80s linear infinite;
}
.seal-marquee-viewport:hover .seal-marquee-track {
  animation-play-state: paused;
}
.seal-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 140px;
  flex-shrink: 0;
}
.seal-plate {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-shadow: var(--shadow-md);
}
.seal-item, .seal-plate, .seal-plate img { cursor: default; }
.seal-plate img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
/* Per-seal fits: seals whose source has tight edges and renders too small with contain */
.seal-plate:has(img[src*="miami-springs.webp"]) { padding: 0; }
.seal-plate img[src*="miami-springs.webp"] {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.seal-plate:has(img[src*="sunrise.webp"]) { padding: 8px; }
.seal-plate img[src*="sunrise.webp"] {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.seal-name {
  font-size: 0.75rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--fg-muted);
  text-align: center;
  line-height: 1.3;
}
@keyframes seal-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 640px) {
  .seal-item { width: 108px; }
  .seal-plate { width: 92px; height: 92px; }
  .seal-marquee-track { gap: var(--space-8); animation-duration: 60s; }
}
@media (prefers-reduced-motion: reduce) {
  .seal-marquee-track {
    animation: none;
    transform: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: var(--space-8);
  }
}

/* Honeypot field — must remain invisible to real users */
.form-honeypot {
  display: none !important;
  visibility: hidden;
  position: absolute;
  left: -9999px;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scroll-cue { animation: none; }
}
