/* 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'). */
:root {
  --bg: #ffffff;
  --bg2: #f3f6fa;
  --navy: #011a3c;
  --blue: #386098;
  --blue-soft: #d8e0e8;
  --orange: #fc5c04;
    --text: #011a3c;
  --muted: #44566e;
  --line: rgba(56, 96, 152, 0.28);
  --wrap: 960px;
  --pad: clamp(20px, 5vw, 40px);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  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 { 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));
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  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 { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* ---------- 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 ---------- */
.hero { padding-top: clamp(32px, 7vw, 72px); padding-bottom: clamp(40px, 8vw, 80px); text-align: center; }
h1 {
  margin: 0 auto 20px;
  max-width: 18ch;
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--navy);
}
.lede { margin: 0 auto; max-width: 60ch; font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--muted); }

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

/* ---------- services ---------- */
.services { padding-bottom: clamp(48px, 8vw, 88px); }
.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(--bg2);
}
.card h3 { margin: 0 0 8px; font-size: 1.3rem; line-height: 1.25; color: var(--navy); }
.card p { margin: 0; color: var(--muted); }

/* ---------- featured work ---------- */
.work { padding-bottom: clamp(56px, 9vw, 104px); }
.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--navy);
  color: #fff;
}
.feature-shot { margin: 0; }
.feature-shot img {
  width: 100%;
  aspect-ratio: 1266 / 585;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--navy);
}
.feature-body { padding: 0 8px 8px; }
.feature-body h3 { margin: 0 0 12px; font-size: clamp(1.35rem, 3vw, 1.7rem); line-height: 1.2; color: #fff; }
.feature-body p { margin: 0 0 16px; color: #d8e0e8; }
.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;
}
.button:hover { background: #ff7a2e; }
.button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.textlink {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(252, 92, 4, 0.8);
  text-underline-offset: 3px;
}
.textlink:hover { text-decoration-color: var(--orange); }

/* ---------- footer ---------- */
.site-footer {
  padding-top: 28px;
  padding-bottom: max(28px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; }
.site-footer p { margin: 0; }

/* ---------- wider screens ---------- */
@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .card { padding: 28px 24px; }
}
@media (min-width: 900px) {
  .feature { grid-template-columns: 1.15fr 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: 20px; padding-bottom: 36px; }
  h1 { max-width: 24ch; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
