/* ============================================================================
   TVE Services — design system
   Dark industrial theme · safety-yellow accent · Barlow display + Inter body
   Motion states are gated behind html.js (no-JS visitors see a static page).
   ============================================================================ */

/* ---------- Fonts (self-hosted, woff2) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/InterVariable.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/Barlow-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/Barlow-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/Barlow-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/Barlow-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/Barlow-800.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  /* colour */
  --bg:        #0c1116;
  --bg-2:      #121921;
  --bg-3:      #1a2330;
  --ink:       #f2f5f8;
  --muted:     #97a5b3;
  --faint:     #66748233;
  --line:      #25303d;
  --accent:    #f5c518;
  --accent-2:  #ffd54a;
  --accent-ink:#161203;
  --blue:      #4f9fd8;
  --ok:        #58c98a;
  --danger:    #e2604f;

  /* type */
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-disp: 'Barlow', 'Inter', system-ui, sans-serif;

  /* motion */
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-swift:   cubic-bezier(0.77, 0, 0.18, 1);

  /* layout */
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 76px;
  --radius: 14px;
  --radius-sm: 8px;

  color-scheme: dark;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;          /* layout guard: slide-in reveals must not create h-scroll */
  overflow-x: clip;           /* modern fallback */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-disp);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 .5em;
  text-transform: uppercase;
  letter-spacing: .01em;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.7rem); letter-spacing: .02em; }
p { margin: 0 0 1em; }

.line-icon { flex: none; }

/* ---------- Utilities ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 500;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-disp);
  font-weight: 700;
}
.skip-link:focus { left: var(--gutter); }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(64px, 9vw, 116px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 72px); }
.section--alt { background: var(--bg-2); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-disp);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9em;
}
.eyebrow::before {
  content: '';
  width: 26px; height: 2px;
  background: var(--accent);
}
.lede {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: var(--muted);
  max-width: 62ch;
}
.grid { display: grid; gap: clamp(18px, 2.4vw, 30px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: .85em 1.6em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease-premium), box-shadow .35s var(--ease-premium), background .25s, color .25s;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgba(245, 197, 24, .5); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn--light-ghost { background: rgba(255,255,255,.08); color: var(--ink); border-color: rgba(255,255,255,.25); backdrop-filter: blur(6px); }
.btn--light-ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }

/* ---------- Chips / badges ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-disp);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .5em 1.1em;
}
.chip--accent { color: var(--accent); border-color: rgba(245,197,24,.4); background: rgba(245,197,24,.07); }

/* ============================================================================
   Header
   ============================================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(12, 17, 22, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s, background .4s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(12, 17, 22, .97); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-logo { width: 44px; height: 44px; flex: none; }
.brand-name {
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1;
}
.brand-name em { font-style: normal; color: var(--accent); }
.brand-sub { display: block; font-size: .62rem; letter-spacing: .22em; color: var(--muted); font-weight: 600; margin-top: 3px; }

.primary-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.primary-nav a {
  position: relative;
  text-decoration: none;
  font-family: var(--font-disp);
  font-weight: 600;
  font-size: .86rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 0;
  transition: color .25s;
}
.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: -2px;
  height: 2px; background: var(--accent);
  transition: right .35s var(--ease-premium);
}
.primary-nav a:hover, .primary-nav a.active { color: var(--ink); }
.primary-nav a.active::after, .primary-nav a:hover::after { right: 0; }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  text-decoration: none;
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .04em;
  color: var(--accent-ink);
  background: var(--accent);
  padding: .6em 1.1em;
  border-radius: var(--radius-sm);
  transition: transform .3s var(--ease-premium), box-shadow .3s var(--ease-premium);
}
.header-phone:hover { transform: translateY(-2px); box-shadow: 0 10px 26px -10px rgba(245,197,24,.55); }

/* mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  padding: 9px 10px;
  cursor: pointer;
}
@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(12, 17, 22, .98);
    border-bottom: 1px solid var(--line);
    padding: 10px var(--gutter) 20px;
    transform: translateY(-130%);
    transition: transform .45s var(--ease-premium);
    visibility: hidden;
  }
  .primary-nav.open { transform: translateY(0); visibility: visible; }
  .primary-nav a { padding: 13px 4px; font-size: .95rem; border-bottom: 1px solid var(--line); }
  .primary-nav a::after { display: none; }
}

/* scroll progress bar */
.scroll-progress {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 99;
}

/* ============================================================================
   Hero slider
   ============================================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-slider { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.4s var(--ease-swift), visibility 0s linear 1.4s;
}
.hero-slide.active { opacity: 1; visibility: visible; transition-delay: 0s; z-index: 1; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
}
.hero-slide.active img { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-shade {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(180deg, rgba(12,17,22,.72) 0%, rgba(12,17,22,.28) 42%, rgba(12,17,22,.55) 74%, var(--bg) 100%),
    linear-gradient(90deg, rgba(12,17,22,.66) 0%, rgba(12,17,22,.12) 55%, rgba(12,17,22,.4) 100%);
}
.hero-content { position: relative; z-index: 3; padding-bottom: clamp(84px, 13vh, 150px); padding-top: calc(var(--header-h) + 60px); }
.hero-kicker {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-disp); font-weight: 600; font-size: .82rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 22px;
}
.hero-kicker::before { content: ''; width: 34px; height: 2px; background: var(--accent); }
.hero h1 { max-width: 18ch; text-shadow: 0 4px 40px rgba(0,0,0,.5); }
/* word-by-word hero (JS restructures <h1> into .w spans) */
.w { display: inline-block; }
.w.nowrap { white-space: nowrap; }
.hero-lede { color: #cfd8e2; font-size: clamp(1.05rem, 1.8vw, 1.35rem); max-width: 56ch; margin-top: 18px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* slide controls */
.hero-dots {
  position: absolute; z-index: 5;
  left: var(--gutter); right: var(--gutter);
  bottom: clamp(28px, 5vh, 54px);
  display: flex; gap: 10px;
}
.hero-dot {
  width: 34px; height: 5px; border-radius: 3px;
  border: none; cursor: pointer;
  background: rgba(255,255,255,.28);
  transition: background .3s, width .3s var(--ease-premium);
}
.hero-dot.active { background: var(--accent); width: 54px; }
.hero-arrow {
  position: absolute; z-index: 5;
  bottom: clamp(28px, 5vh, 54px); right: var(--gutter);
  display: none;
}
@media (min-width: 941px) {
  .hero-dots { left: auto; right: calc(var(--gutter) + 110px); }
}

/* ============================================================================
   Page hero (interior pages)
   ============================================================================ */
.page-hero {
  position: relative;
  min-height: clamp(420px, 66vh, 680px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-hero > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.page-hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,17,22,.66) 0%, rgba(12,17,22,.35) 45%, var(--bg) 100%);
}
.page-hero-content {
  position: relative; z-index: 2;
  padding-bottom: clamp(64px, 9vh, 110px);
  padding-top: calc(var(--header-h) + 40px);
}
.page-hero-content h1 { max-width: 22ch; }

/* ============================================================================
   Marquee ticker
   ============================================================================ */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  padding-block: 16px;
}
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee-scroll 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-disp);
  font-weight: 600; font-size: .88rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.marquee-item svg { color: var(--accent); }
@keyframes marquee-scroll { to { transform: translateX(-50%); } }

/* ============================================================================
   Stats / counters
   ============================================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.6vw, 34px); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
  background: var(--bg-2);
}
.stat-num {
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  line-height: 1;
  color: var(--accent);
  display: flex; align-items: baseline; gap: .15em;
}
.stat-num .suffix { font-size: .55em; color: var(--ink); }
.stat-label { margin-top: .8em; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-family: var(--font-disp); font-weight: 600; }

/* ============================================================================
   Service cards
   ============================================================================ */
.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
  text-decoration: none;
  overflow: hidden;
  transition: transform .5s var(--ease-premium), border-color .4s, box-shadow .5s var(--ease-premium);
}
.svc-card::before {
  content: '';
  position: absolute; inset: 0 auto auto 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent 65%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease-premium);
}
.svc-card:hover { transform: translateY(-6px); border-color: rgba(245,197,24,.45); box-shadow: 0 24px 54px -28px rgba(0,0,0,.8); }
.svc-card:hover::before { transform: scaleX(1); }
.svc-icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(245,197,24,.1);
  border: 1px solid rgba(245,197,24,.3);
  color: var(--accent);
}
.svc-card h3 { margin: 0; }
.svc-sub { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); font-weight: 600; }
.svc-card p { color: var(--muted); margin: 0; }
.svc-more {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-disp); font-weight: 700; font-size: .85rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
}

/* sticky two-column (service detail pages) */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(34px, 5vw, 72px); align-items: start; }
@media (max-width: 940px) { .split { grid-template-columns: 1fr; } }
.split-sticky { position: sticky; top: calc(var(--header-h) + 28px); }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: .8em; padding-block: .7em; border-bottom: 1px solid var(--line); color: var(--muted); }
.checklist li svg { color: var(--accent); margin-top: 3px; }
.checklist li strong { color: var(--ink); }

/* ============================================================================
   Parallax band
   ============================================================================ */
.parallax-band {
  position: relative;
  min-height: clamp(380px, 62vh, 640px);
  display: flex; align-items: center;
  overflow: hidden;
}
.parallax-band .pimg {
  position: absolute; inset: -12% 0;
  will-change: transform;
}
.parallax-band .pimg img { width: 100%; height: 100%; object-fit: cover; }
.parallax-band .shade { position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(12,17,22,.35) 28%, rgba(12,17,22,.42) 70%, var(--bg) 100%); }
.parallax-band .container { position: relative; z-index: 2; }
.parallax-quote {
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: clamp(1.7rem, 4vw, 3.1rem);
  line-height: 1.15;
  max-width: 24ch;
  text-transform: uppercase;
  margin: 0;
}
.parallax-quote em { font-style: normal; color: var(--accent); }

/* ============================================================================
   Team
   ============================================================================ */
.team-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .5s var(--ease-premium), border-color .4s;
}
.team-card:hover { transform: translateY(-5px); border-color: rgba(245,197,24,.4); }
.team-photo {
  aspect-ratio: 4 / 4.6;
  background: var(--bg-2);
  display: grid; place-items: center;
  color: var(--faint);
  overflow: hidden;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-initials {
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: 3.4rem;
  color: var(--accent);
  opacity: .8;
}
.team-body { padding: 20px 22px 24px; }
.team-body h3 { font-size: 1.15rem; margin-bottom: .3em; }
.team-role { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 600; font-family: var(--font-disp); }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: '';
  position: absolute; left: 9px; top: 6px; bottom: 6px;
  width: 2px; background: var(--line);
}
.timeline li { position: relative; padding: 0 0 34px 44px; }
.timeline li::before {
  content: '';
  position: absolute; left: 2px; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
}
.timeline .year { font-family: var(--font-disp); font-weight: 800; font-size: 1.25rem; color: var(--accent); letter-spacing: .04em; }
.timeline h3 { font-size: 1.1rem; margin: .2em 0 .3em; }
.timeline p { color: var(--muted); margin: 0; }

/* ============================================================================
   Gallery + lightbox
   ============================================================================ */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr; } }
.gal-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid var(--line);
  padding: 0;
  background: var(--bg-3);
  aspect-ratio: 4 / 3;
}
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-premium); }
.gal-item:hover img { transform: scale(1.06); }
.gal-cap {
  position: absolute; inset: auto 0 0;
  padding: 34px 18px 14px;
  background: linear-gradient(0deg, rgba(12,17,22,.9), transparent);
  color: var(--ink);
  font-family: var(--font-disp); font-weight: 600; font-size: .85rem;
  letter-spacing: .1em; text-transform: uppercase;
}

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  background: rgba(8, 11, 14, .94);
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img { max-width: min(92vw, 1500px); max-height: 84vh; border-radius: var(--radius-sm); }
.lightbox-cap { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: var(--muted); font-family: var(--font-disp); letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; padding: 0 24px; }
.lightbox-close {
  position: absolute; top: 18px; right: 22px;
  background: rgba(255,255,255,.1); border: none; color: var(--ink);
  width: 46px; height: 46px; border-radius: 50%;
  font-size: 1.4rem; cursor: pointer;
}
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.1); border: none; color: var(--ink);
  width: 52px; height: 52px; border-radius: 50%;
  font-size: 1.5rem; cursor: pointer;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ============================================================================
   Reviews
   ============================================================================ */
.review-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
  display: flex; flex-direction: column; gap: 16px;
}
.stars { color: var(--accent); letter-spacing: .18em; font-size: 1.05rem; }
.review-card blockquote { margin: 0; color: #d7dfe7; font-size: 1.02rem; line-height: 1.6; }
.review-by { margin-top: auto; font-family: var(--font-disp); font-weight: 600; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ============================================================================
   CTA band
   ============================================================================ */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px; padding-block: clamp(56px, 7vw, 88px); }
.cta-band h2 { margin: 0 0 .35em; max-width: 22ch; }
.cta-band p { color: var(--muted); max-width: 52ch; margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ============================================================================
   Contact / form
   ============================================================================ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-disp); font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: .98rem;
  color: var(--ink);
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  transition: border-color .3s, box-shadow .3s;
  width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245,197,24,.15);
}
.field .optional { color: var(--faint); font-weight: 400; text-transform: none; letter-spacing: 0; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-status { display: none; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 500; }
.form-status.ok { display: block; background: rgba(88,201,138,.12); border: 1px solid rgba(88,201,138,.4); color: var(--ok); }
.form-status.error { display: block; background: rgba(226,96,79,.12); border: 1px solid rgba(226,96,79,.4); color: var(--danger); }
.contact-meta { display: grid; gap: 14px; }
.contact-line { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); }
.contact-line svg { color: var(--accent); margin-top: 3px; }
.contact-line a { color: var(--ink); text-decoration: none; }
.contact-line a:hover { color: var(--accent); }
.contact-line strong { display: block; font-family: var(--font-disp); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; color: var(--muted); margin-bottom: 3px; }

/* ============================================================================
   Footer
   ============================================================================ */
.site-footer { background: #090d11; border-top: 1px solid var(--line); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: clamp(28px, 4vw, 54px);
  padding-block: clamp(56px, 7vw, 84px);
}
.footer-grid > * { min-width: 0; } /* layout guard */
@media (max-width: 940px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { font-size: .85rem; letter-spacing: .18em; color: var(--muted); margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: #b9c4cf; text-decoration: none; overflow-wrap: anywhere; transition: color .25s; }
.footer-col a:hover { color: var(--accent); }
.footer-about p { color: var(--muted); font-size: .95rem; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 26px;
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: space-between; align-items: center;
  color: var(--faint); font-size: .85rem;
}
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }

/* ============================================================================
   Page veil (transition)
   ============================================================================ */
.page-veil {
  position: fixed; inset: 0; z-index: 300;
  background: var(--bg);
  opacity: 0; pointer-events: none;
  transition: opacity .32s var(--ease-swift);
}
html.js .page-veil { opacity: 1; }
html.js .page-veil.lift { opacity: 0; pointer-events: none; }
html.js body.page-exit .page-veil { opacity: 1; }

/* ============================================================================
   MOTION LAYER — all hidden/animated states scoped to html.js
   ============================================================================ */

/* entrance on load */
html.js .site-header { transform: translateY(-100%); transition: transform .6s var(--ease-premium) .12s; }
html.js body.is-ready .site-header { transform: translateY(0); }

/* hero word stagger */
html.js .hero .w { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .7s var(--ease-premium), transform .7s var(--ease-premium), filter .7s var(--ease-premium); transition-delay: calc(0.18s + var(--i, 0) * 0.055s); }
html.js body.is-ready .hero .w { opacity: 1; transform: translateY(0); filter: blur(0); }

/* above-fold staggered loads */
html.js [data-load] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-premium), transform .8s var(--ease-premium); transition-delay: var(--d, 0s); }
html.js body.is-ready [data-load] { opacity: 1; transform: translateY(0); }

/* scroll reveals */
html.js [data-reveal] { opacity: 0; transition: opacity .85s var(--ease-premium), transform .85s var(--ease-premium); transition-delay: var(--d, 0s); }
html.js [data-reveal="up"]   { transform: translateY(34px); }
html.js [data-reveal="left"] { transform: translateX(-34px); }
html.js [data-reveal="right"]{ transform: translateX(34px); }
html.js [data-reveal="zoom"] { transform: scale(.92); }
html.js [data-reveal].in-view { opacity: 1; transform: none; }

/* rotating word */
.rot-word { display: inline-block; overflow: hidden; vertical-align: bottom; min-width: 1ch; }
.rot-word.word-out { animation: rot-out .26s var(--ease-swift) forwards; }
.rot-word.word-in  { animation: rot-in .3s var(--ease-premium); }
@keyframes rot-out { to { opacity: 0; transform: translateY(-.7em); } }
@keyframes rot-in  { from { opacity: 0; transform: translateY(.7em); } }

/* reduced motion: skip everything */
@media (prefers-reduced-motion: reduce) {
  html.js [data-load], html.js [data-reveal], html.js .hero .w { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  html.js .site-header { transform: none !important; transition: none !important; }
  .marquee-track { animation: none; }
  .hero-slide.active img { animation: none; }
  .page-veil { display: none; }
  html { scroll-behavior: auto; }
}
