/* VATTS one-page site. Palette from the white VATTS logo card: white · navy #011a3c (wordmark) · map blue #386098 · orange #fc5c04 (dots).
   J-directed 2026-10-13: light theme, logo centered + large. No inline styles anywhere (strict CSP: style-src 'self').
   v3 UX pass (spec 2026-10-13-site-v3-ux): motion tokens, hero CTA row, sticky bar, three bands, case-study card,
   video loop, bigger footer. Every motion is gated on prefers-reduced-motion: no-preference;
   the default (and reduced-motion) state of every element is fully visible.
   J 2026-10-13 12:23: the Fraunces serif display face was dropped. J 14:36: display text (tagline, card/feature titles,
   footer tagline) uses Inter, a blocky professional sans — self-hosted variable WOFF2 (OFL, fonts/Inter-OFL.txt), latin subset,
   font-src 'self' under the strict CSP. Body text stays on the system stack. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/fonts/Inter.woff2?v=4") format("woff2"); }

:root {
  --bg: #ffffff;
  --bg2: #f3f6fa;
  --navy: #011a3c;
  --navy-2: #0a2a55;
  --blue: #386098;
  --blue-soft: #d8e0e8;
  --blue-on-navy: #a9bedb;
  --orange: #fc5c04;
  --text: #011a3c;
  --muted: #44566e;
  --line: rgba(56, 96, 152, 0.28);
  --wrap: 960px;
  --pad: clamp(20px, 5vw, 40px);
  --bar-h: 56px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --display: "Inter", var(--font);
  /* Motion tokens + one house easing (research #5). Zeroed under reduced motion below. */
  --dur-1: 150ms;
  --dur-2: 250ms;
  --dur-3: 400ms;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: radial-gradient(120% 50% at 50% 0%, var(--bg2) 0%, var(--bg) 60%) no-repeat, var(--bg);
}

img, video { display: block; max-width: 100%; height: auto; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--pad));
  margin: 0 auto;
  padding-left: max(var(--pad), env(safe-area-inset-left, 0px));
  padding-right: max(var(--pad), env(safe-area-inset-right, 0px));
}

/* In-page anchors land below the slim bar. */
section[id], header[id] { scroll-margin-top: calc(var(--bar-h) + 8px); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 30;
  padding: 10px 16px; border-radius: 8px;
  background: var(--orange); color: var(--navy); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

a:focus-visible, video:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* ---------- slim sticky bar (research #4) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--bar-h); }
.topbar-brand img { width: 56px; border-radius: 3px; border: 1px solid var(--blue-soft); }
.topbar-nav, .footer-nav { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.topbar-nav a, .footer-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--navy); font-weight: 700; font-size: 0.95rem; text-decoration: none;
  border-radius: 8px;
  transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.topbar-nav a:hover, .footer-nav a:hover { background: var(--bg2); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }

/* With scripting, the bar is fixed and hidden until the big logo has scrolled away (reveal.js sets html.is-stuck).
   visibility:hidden also takes its links out of the tab order while it is hidden; the hero row carries the same anchors. */
@media (scripting: enabled) {
  .topbar {
    position: fixed; left: 0; right: 0;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease), visibility 0s linear var(--dur-2);
  }
  .is-stuck .topbar {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease), visibility 0s;
  }
}

/* ---------- header: logo centered on its own line, large ---------- */
.site-header { padding-top: max(28px, env(safe-area-inset-top, 0px)); }
.header-inner { display: flex; justify-content: center; align-items: center; }
.brand { display: inline-flex; justify-content: center; align-items: center; color: var(--text); text-decoration: none; }
/* The logo is an opaque 4:3 white card with rounded corners: round to the card's own radius, never circle-crop.
   On the white page the card edge is carried by a soft shadow + hairline so it reads as a card, not floating art. */
.brand-logo {
  width: clamp(220px, 46vw, 360px);
  height: auto;
  border-radius: 3% / 4%;
  border: 1px solid var(--blue-soft);
  box-shadow: 0 8px 28px rgba(1, 26, 60, 0.10);
}
/* Visually the logo carries the wordmark; the text stays for screen readers and search. */
.brand-word {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- hero (research #1) ---------- */
.hero { padding-top: clamp(24px, 5vw, 48px); padding-bottom: clamp(40px, 8vw, 80px); text-align: center; }
h1 {
  margin: 0 auto 18px;
  max-width: 18ch;
  font-family: var(--display);
  font-size: clamp(2.2rem, 6.2vw, 3.8rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.lede { margin: 0 auto; max-width: 60ch; font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 28px; margin-top: 28px; }

.kicker {
  margin: 0 0 20px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ---------- full-bleed bands (research #8): white hero · light services · navy work ---------- */
.band { padding-top: clamp(48px, 8vw, 88px); padding-bottom: clamp(48px, 8vw, 88px); }
.band-light { background: var(--bg2); border-top: 1px solid var(--line); }
.band-navy { background: var(--navy); color: #fff; }
.band-navy .kicker { color: var(--blue-on-navy); }

/* ---------- services ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0; padding: 0; list-style: none;
}
.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 16px;
  background: var(--bg);
  transition: border-color var(--dur-2) var(--ease), translate var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.card:hover, .card:focus-within { border-top-color: var(--orange); translate: 0 -2px; box-shadow: 0 10px 24px rgba(1, 26, 60, 0.08); }
.card h3 { margin: 0 0 8px; font-family: var(--display); font-size: 1.45rem; font-weight: 650; line-height: 1.2; color: var(--navy); }
.card p { margin: 0; color: var(--muted); }

/* ---------- featured work: case-study card (research #3) + video (research #7) ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: var(--navy-2);
  color: #fff;
  transition: border-color var(--dur-2) var(--ease);
}
.feature:hover, .feature:focus-within { border-color: var(--orange); }
.feature-shot { margin: 0; }
.media {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--navy);
  aspect-ratio: 16 / 9;
}
.feature-video {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: scale var(--dur-2) var(--ease);
}
.feature:hover .feature-video { scale: 1.03; }
.feature-shot figcaption { margin-top: 10px; font-size: 0.9rem; line-height: 1.45; color: #d8e0e8; }
.feature-body { padding: 0 8px 8px; }
.feature-body .meta {
  margin: 0 0 10px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue-on-navy);
}
.feature-body h3 { margin: 0 0 12px; font-family: var(--display); font-size: clamp(1.6rem, 3.4vw, 2.1rem); font-weight: 650; line-height: 1.15; color: #fff; }
.feature-body p { margin: 0 0 16px; color: #d8e0e8; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 16px; padding: 12px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.95rem; }
.facts dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-on-navy); }
.facts dd { margin: 0; color: #fff; }
.feature-body .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 8px 0 0; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px;
  border-radius: 24px;
  background: var(--orange); color: var(--navy);
  font-weight: 800; text-decoration: none;
  transition: background-color var(--dur-1) var(--ease), translate var(--dur-1) var(--ease);
}
.button:hover { background: #ff7a2e; }
.button:active { translate: 0 1px; }
.band-navy .button:focus-visible { outline-color: #fff; }

.textlink {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--navy); font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(252, 92, 4, 0.8);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: text-decoration-color var(--dur-1) var(--ease);
}
.textlink:hover { text-decoration-color: var(--orange); }
.band-navy .textlink { color: #fff; font-weight: 400; text-decoration-thickness: 1px; }

/* ---------- footer (research #9) ---------- */
.site-footer {
  padding-top: clamp(32px, 5vw, 48px);
  padding-bottom: max(28px, env(safe-area-inset-bottom, 0px));
  background: var(--bg);
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-top { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-bottom: 20px; }
.footer-brand img { width: 88px; border-radius: 4px; border: 1px solid var(--blue-soft); }
.footer-tagline { flex: 1 1 220px; margin: 0; font-family: var(--display); font-size: 1.15rem; font-weight: 600; line-height: 1.3; color: var(--navy); }
.footer-nav { margin-left: -12px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; }
.footer-legal::before { content: ""; flex: 0 0 100%; height: 1px; margin-bottom: 16px; background: var(--line); }
.site-footer p { margin: 0; }

/* ---------- wider screens ---------- */
@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .card { padding: 28px 24px; }
  .footer-nav { margin-left: 0; }
}
@media (min-width: 900px) {
  .feature { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 32px; padding: 20px; }
  .feature-body { padding: 8px 12px 8px 0; }
}

/* Short landscape phones: keep the logo and hero compact so content shows above the fold. */
@media (max-height: 480px) and (orientation: landscape) {
  .brand-logo { width: 180px; }
  .hero { padding-top: 16px; padding-bottom: 32px; }
  h1 { max-width: 24ch; }
  .hero-actions { margin-top: 18px; }
}

/* ---------- motion: every enhancement is opt-in under no-preference ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* One-time hero entrance (research #1): CSS only, finishes in < 0.6 s, never depends on JS. */
  .brand-logo { animation: enter-scale var(--dur-3) var(--ease) both; }
  h1 { animation: enter-rise var(--dur-3) var(--ease) 80ms both; }
  .lede, .hero-actions { animation: enter-rise var(--dur-3) var(--ease) 160ms both; }

  /* Scroll reveal (research #2): scroll-driven where supported... */
  @supports (animation-timeline: view()) {
    .reveal { animation: enter-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
    .cards .reveal:nth-child(2) { animation-range: entry 5% entry 40%; }
    .cards .reveal:nth-child(3) { animation-range: entry 10% entry 45%; }
  }
  /* ...and an IntersectionObserver fallback elsewhere: reveal.js marks only below-the-fold items .is-pending, then
     clears it on entry. Without JS nothing is ever hidden. */
  .reveal.is-pending { opacity: 0; translate: 0 14px; }
  .reveal.is-shown { transition: opacity var(--dur-3) var(--ease), translate var(--dur-3) var(--ease); }
  .cards .reveal.is-shown:nth-child(2) { transition-delay: 80ms; }
  .cards .reveal.is-shown:nth-child(3) { transition-delay: 160ms; }

  /* Page transitions (research #11): crossfade for future same-origin subpages. */
  @view-transition { navigation: auto; }
}

/* Print: always the final, static state. */
@media print { .reveal, .brand-logo, h1, .lede, .hero-actions { animation: none !important; opacity: 1 !important; translate: none !important; } .topbar { display: none; } }

@keyframes enter-scale { from { opacity: 0; scale: 0.98; } }
@keyframes enter-rise { from { opacity: 0; translate: 0 14px; } }

@media (prefers-reduced-motion: reduce) {
  :root { --dur-1: 0s; --dur-2: 0s; --dur-3: 0s; }
  /* Backstop (kept from v1): nothing moves, whatever a future rule forgets. */
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .feature:hover .feature-video { scale: none; }
}
