/* ==========================================================================
   TD Protection Services — site styles
   Palette: deep navy + steel blue (client's favorite color), gold from the logo
   Type: Barlow Condensed (headings) + Barlow (body) — DIN-like, clean, serious
   ========================================================================== */

:root {
  --navy-950: #070f1c;
  --navy-900: #0b1728;
  --navy-850: #0f1e34;
  --navy-800: #13263f;
  --navy-700: #1b3355;
  --navy-600: #264670;
  --steel-400: #7fa6d0;
  --steel-300: #a9c6e6;
  --steel-100: #e6eef7;
  --paper: #f4f7fb;
  --white: #ffffff;
  --ink: #0e1a2b;
  --ink-soft: #4a5a70;
  --text: #e9eef5;
  --text-muted: #9fb0c6;
  --gold-300: #f7d77a;
  --gold-400: #e8b94f;
  --gold-600: #8f5b1f;
  --gold-grad: linear-gradient(100deg, #9a6424 0%, #e3b04a 35%, #f9df8d 52%, #e3b04a 68%, #9a6424 100%);
  --line: rgba(169, 198, 230, 0.14);

  --font-head: "Barlow Condensed", "DIN Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --header-h: 78px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--navy-900);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  -webkit-tap-highlight-color: transparent;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.02;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); letter-spacing: 0.005em; line-height: 0.98; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); letter-spacing: 0.012em; }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); letter-spacing: 0.03em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-head);
  font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--steel-300);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold-grad); }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--text-muted); max-width: 60ch; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gold-400); color: var(--ink); padding: 10px 16px;
}
.skip-link:focus { left: 16px; top: 16px; }

:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 3px; }

/* Placeholder copy awaiting client info — remove the class once filled in */
.tbd { background: rgba(232, 185, 79, 0.16); outline: 1px dashed rgba(232, 185, 79, 0.7); outline-offset: 1px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:active { transform: scale(0.97); transition-duration: 80ms; }
.btn-gold { background: var(--gold-grad); background-size: 200% 100%; background-position: 20% 0; color: var(--navy-950); }
.btn-gold:hover { background-position: 60% 0; }
.btn-outline { border-color: rgba(233, 238, 245, 0.45); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.06); }
.btn-navy { background: var(--navy-800); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.text-link {
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  color: var(--gold-300);
  display: inline-flex; align-items: center; gap: 8px;
}
.text-link::after { content: "→"; transition: transform 0.2s var(--ease); }
.text-link:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background-color 0.3s, box-shadow 0.3s;
}
.site-header.is-solid,
.site-header.nav-open {
  background: rgba(7, 15, 28, 0.94);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 1px 0 rgba(169, 198, 230, 0.06), 0 10px 24px -12px rgba(0, 0, 0, 0.55);
}
/* backdrop-filter would make the header the containing block for the fixed mobile menu */
.site-header.nav-open { background: var(--navy-950); backdrop-filter: none; -webkit-backdrop-filter: none; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.brand img { height: 44px; width: auto; transition: height 0.35s var(--ease); }
.site-header.is-solid .brand img { height: 38px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-family: var(--font-head); font-size: 1rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  color: var(--text); position: relative; padding: 6px 0;
}
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gold-grad); transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.main-nav a:not(.btn):hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav .btn { min-height: 44px; padding: 0 20px; font-size: 0.95rem; color: var(--navy-950); }

.nav-toggle {
  display: none; background: none; border: 0; color: var(--white);
  width: 44px; height: 44px; padding: 10px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: currentColor; margin: 6px 0; transition: transform 0.25s var(--ease), opacity 0.2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    height: calc(100dvh - var(--header-h));
    background: var(--navy-950);
    padding: 24px var(--gutter) 40px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
    overflow-y: auto;
  }
  .nav-open .main-nav { opacity: 1; transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav a:not(.btn) { display: block; padding: 18px 0; font-size: 1.35rem; }
  .main-nav a:not(.btn)::after { display: none; }
  .main-nav li:last-child { border: 0; padding-top: 24px; }
  .main-nav .btn { width: 100%; min-height: 54px; font-size: 1.05rem; }
}
@media (max-width: 420px) {
  .brand img, .site-header.is-solid .brand img { height: 34px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(100svh, 920px);
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 60px) 0 clamp(56px, 9vw, 110px);
  overflow: hidden;
}
.hero--page { min-height: min(72svh, 640px); }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 15, 28, 0.72) 0%, rgba(7, 15, 28, 0.25) 35%, rgba(7, 15, 28, 0.82) 78%, var(--navy-900) 100%),
    linear-gradient(90deg, rgba(11, 23, 40, 0.85) 0%, rgba(11, 23, 40, 0.2) 70%);
}
.hero h1 { max-width: 17ch; margin-bottom: 22px; }
.hero--page h1 { max-width: 18ch; }
.hero .lead { color: #cfd9e6; }
.tagline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px;
  font-family: var(--font-head); font-weight: 500;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--white); margin: 0 0 22px;
}
.tagline span { color: var(--gold-400); font-weight: 400; }

/* ---------- Trust bar ---------- */
.trust { background: var(--navy-950); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust ul {
  list-style: none; margin: 0 auto; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.trust li {
  padding: 26px 22px; display: flex; align-items: center; gap: 14px;
  font-family: var(--font-head); font-size: 1.02rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.25;
  border-left: 1px solid var(--line);
}
.trust li:first-child { border-left: 0; }
.trust svg { flex: none; width: 26px; height: 26px; color: var(--gold-400); }
@media (max-width: 900px) {
  .trust ul { grid-template-columns: 1fr 1fr; }
  .trust li:nth-child(3) { border-left: 0; }
  .trust li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .trust li { padding: 20px 12px; font-size: 0.9rem; gap: 10px; }
  .trust svg { width: 22px; height: 22px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.section--deep { background: var(--navy-950); }
.section--mid { background: var(--navy-850); }
.section--light { background: var(--paper); color: var(--ink); }
.section--light .eyebrow { color: var(--navy-600); }
.section--light .lead, .section--light p { color: var(--ink-soft); }
.section--light h2, .section--light h3 { color: var(--ink); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Service tiles (Molecule-style photo cards) ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tile {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 560px; border-radius: var(--radius);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(24px, 3.5vw, 44px);
  text-decoration: none; color: var(--white);
}
.tile img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7, 15, 28, 0.1) 20%, rgba(7, 15, 28, 0.92) 88%);
}
.tile:hover img { transform: scale(1.04); }
.tile { transition: transform 0.2s var(--ease); }
.tile:active { transform: scale(0.99); transition-duration: 80ms; }
.tile-kicker {
  font-family: var(--font-head); font-size: 0.9rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--steel-300); margin-bottom: 10px;
}
.tile h3 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin-bottom: 12px; }
.tile p { color: #cfd9e6; max-width: 46ch; margin-bottom: 22px; }
.tile--wide { grid-column: 1 / -1; min-height: 420px; }
.tile--wide::before { background: linear-gradient(90deg, rgba(7, 15, 28, 0.92) 0%, rgba(7, 15, 28, 0.55) 55%, rgba(7, 15, 28, 0.15) 100%); }
@media (max-width: 800px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 460px; }
  .tile--wide { min-height: 420px; }
}

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(14, 26, 43, 0.14); }
.pillar { padding: 40px 36px 8px 0; }
.pillar + .pillar { padding-left: 36px; border-left: 1px solid rgba(14, 26, 43, 0.14); }
.pillar-num {
  font-family: var(--font-head); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.2em;
  color: var(--gold-600); margin-bottom: 14px; display: block; text-transform: uppercase;
}
.section:not(.section--light) .pillars { border-top-color: var(--line); }
.section:not(.section--light) .pillar + .pillar { border-left-color: var(--line); }
.section:not(.section--light) .pillar p { color: var(--text-muted); }
.section:not(.section--light) .pillar-num { color: var(--gold-400); }
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 32px 0; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid rgba(14, 26, 43, 0.14); }
  .section:not(.section--light) .pillar + .pillar { border-top-color: var(--line); }
}

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.split--reverse .split-media { order: 2; }
.split-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, transparent 60%, rgba(7, 15, 28, 0.35));
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .split-media { aspect-ratio: 4 / 3; }
}

.checklist { list-style: none; padding: 0; margin: 28px 0 0; }
.checklist li {
  position: relative; padding: 14px 0 14px 36px;
  border-top: 1px solid var(--line);
}
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: 21px; width: 16px; height: 9px;
  border-left: 2px solid var(--gold-400); border-bottom: 2px solid var(--gold-400);
  transform: rotate(-45deg);
}
.checklist strong { color: var(--white); font-weight: 600; }
.section--light .checklist li { border-color: rgba(14, 26, 43, 0.12); }
.section--light .checklist strong { color: var(--ink); }
.section--light .checklist li::before { border-color: var(--gold-600); }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  counter-increment: step;
  background: var(--navy-800); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 30px 34px;
}
.step::before {
  content: "0" counter(step);
  display: block; font-family: var(--font-head); font-size: 3.4rem; font-weight: 700; line-height: 1;
  color: var(--gold-400);
  margin-bottom: 20px;
}
.step p { color: var(--text-muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Service area ---------- */
.areas { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.area-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.area-list li {
  break-inside: avoid; padding: 12px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-head); font-size: 1.2rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.area-list li span { display: block; font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0; text-transform: none; color: var(--text-muted); }
@media (max-width: 860px) { .areas { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .area-list { columns: 1; } }

/* ---------- Quote ---------- */
.quote { max-width: 900px; margin: 0 auto; text-align: center; }
.quote blockquote {
  margin: 0; font-family: var(--font-head); font-weight: 500; text-transform: none;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.2; letter-spacing: 0.01em;
}
.quote cite { display: block; margin-top: 22px; font-style: normal; font-family: var(--font-head); letter-spacing: 0.2em; text-transform: uppercase; color: var(--steel-300); font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid rgba(14, 26, 43, 0.14); }
.faq details:last-child { border-bottom: 1px solid rgba(14, 26, 43, 0.14); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 44px 24px 0; position: relative;
  font-family: var(--font-head); font-weight: 600; font-size: 1.35rem; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.8rem; font-weight: 400; color: var(--gold-600); transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 0 26px; max-width: 70ch; }

/* ---------- Cards (training modules, team) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: var(--navy-800); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px;
}
.card h3 { margin-bottom: 14px; }
.card p { color: var(--text-muted); }
.card .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip {
  font-family: var(--font-head); font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--steel-300);
}
.section--light .card { background: var(--white); border-color: rgba(14, 26, 43, 0.1); }
.section--light .card p { color: var(--ink-soft); }

.team-photo {
  aspect-ratio: 4 / 5; border-radius: var(--radius); margin-bottom: 22px;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  display: grid; place-items: center; color: var(--text-muted);
  font-family: var(--font-head); letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.9rem;
  border: 1px dashed rgba(169, 198, 230, 0.3);
}
.card--team { padding: 18px 18px 28px; }
.card--team h3 { margin-bottom: 4px; }
.role { font-family: var(--font-head); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-400); font-size: 0.95rem; margin-bottom: 20px; }
.section--light .role { color: var(--gold-600); }
.card--team .role { font-family: var(--font-head); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-400); font-size: 0.9rem; margin-bottom: 12px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-800); }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 85% 50%, rgba(127, 166, 208, 0.22), transparent 60%),
    radial-gradient(ellipse at 10% 120%, rgba(232, 185, 79, 0.12), transparent 50%);
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-inner h2 { max-width: 18ch; margin-bottom: 12px; }
.cta-inner .btn-row { margin-top: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-details { list-style: none; margin: 32px 0 0; padding: 0; }
.contact-details li { padding: 18px 0; border-top: 1px solid var(--line); }
.contact-details li:last-child { border-bottom: 1px solid var(--line); }
.contact-details .label {
  display: block; font-family: var(--font-head); font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--steel-300); margin-bottom: 2px;
}
.contact-details a { text-decoration: none; font-size: 1.15rem; color: var(--white); }
.contact-details a:hover { color: var(--gold-300); }

.form {
  background: var(--paper); color: var(--ink); border-radius: var(--radius);
  padding: clamp(26px, 4vw, 48px);
}
.form h2 { color: var(--ink); font-size: clamp(1.8rem, 3vw, 2.4rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field label {
  display: block; margin-bottom: 7px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--navy-700);
}
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--white); border: 1px solid #c9d4e2; border-radius: var(--radius);
  padding: 13px 14px; min-height: 50px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid {
  border-color: #b3261e; box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.14);
}
.field input:user-valid:not(:placeholder-shown) { border-color: #3d7a56; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(38, 70, 112, 0.18);
}
.form .btn { width: 100%; margin-top: 26px; }
.form-note { font-size: 0.9rem; color: var(--ink-soft); margin-top: 14px; text-align: center; }
.hidden { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); border-top: 1px solid var(--line); padding: 72px 0 32px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-name {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  font-size: 1.5rem; letter-spacing: 0.06em; line-height: 1;
  margin: 0 0 14px; color: var(--white);
}
.footer-brand p { color: var(--text-muted); max-width: 34ch; }
.site-footer h4 { font-size: 1rem; letter-spacing: 0.2em; color: var(--steel-300); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 4px; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 0; }
.site-footer a { text-decoration: none; color: var(--text); }
.site-footer a:hover { color: var(--gold-300); }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  color: var(--text-muted); font-size: 0.85rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- User preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .main-nav { transform: none !important; transition: opacity 0.2s !important; }
  .tile:hover img { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header.is-solid { background: var(--navy-950); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --text-muted: #cfd9e6; --line: rgba(169, 198, 230, 0.4); }
  .site-header.is-solid { background: var(--navy-950); border-bottom: 1px solid var(--steel-300); }
  .btn-outline { border-color: var(--white); }
  .hero::before { background: rgba(7, 15, 28, 0.82); }
}
