/* Unity Rail Services — site styles */
@import url('../fonts/barlow-condensed/fonts.css');
@import url('../fonts/barlow/fonts.css');

:root {
  /* Palette taken from the Unity Rail Services logo: navy wordmark, blue emblem, silver rails */
  --ballast: #071F38;
  --ballast-2: #0A2745;
  --ballast-3: #0E2F52;
  --steel: #2E4A69;
  --steel-2: #4F6A88;
  --line-dark: #173556;
  --cream: #EEF2F6;
  --cream-2: #DFE6EE;
  --paper: #FFFFFF;
  --silver: #D1D3D6;
  --navy: #072B4D;
  --accent: #3A93DB;
  --accent-light: #5AA8E6;
  --accent-dark: #1F6FB5;
  --accent-ink: #0A5A9C; /* logo blue for small text on light backgrounds (AA contrast) */
  --ink: #0A1E33;
  --ink-2: #474D55;
  --on-dark: #EEF2F6;
  --on-dark-muted: #A9B9CB;
  --font-head: 'Barlow Condensed', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --max: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --nav-h: 76px;
  --radius: 4px;
}

*, *::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;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.9rem, 7.2vw, 6.4rem); }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.skip-link {
  position: absolute; left: 8px; top: -60px;
  background: var(--accent); color: var(--ink); padding: 10px 14px;
  font-weight: 600; z-index: 200; border-radius: var(--radius);
}
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(40px, 6vw, 80px); }
.section--dark { background: var(--ballast); color: var(--on-dark); }
.section--dark-2 { background: var(--ballast-2); color: var(--on-dark); }
.section--cream { background: var(--cream); }
.section--paper { background: var(--paper); }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex; align-items: flex-start; gap: 12px; line-height: 1.4;
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--accent); flex: none; margin-top: .55em; }
.section--cream .eyebrow, .section--paper .eyebrow, .svc .eyebrow, .card .eyebrow { color: var(--accent-ink); }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.5; max-width: 60ch; }
.section--dark .lede, .section--dark-2 .lede { color: var(--on-dark-muted); }
.muted { color: var(--ink-2); }
.section--dark .muted, .section--dark-2 .muted { color: var(--on-dark-muted); }
.measure { max-width: 62ch; }

/* Hazard stripe divider */
.hazard {
  height: 8px;
  background: repeating-linear-gradient(135deg, var(--accent) 0 16px, var(--ballast) 16px 32px);
}
.hazard--thin { height: 5px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-weight: 600; font-size: 1.15rem; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 14px 24px; border-radius: var(--radius);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
  line-height: 1;
}
.btn--primary { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-light); border-color: var(--accent-light); }
.btn--ghost { background: transparent; color: var(--on-dark); border-color: rgba(238,242,246,.45); }
.btn--ghost:hover { border-color: var(--on-dark); }
.btn--ghost-dark { background: transparent; color: var(--ink); border-color: rgba(7,31,56,.35); }
.btn--ghost-dark:hover { border-color: var(--ink); }
.btn .arrow { width: 18px; height: 18px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

/* Text link */
.textlink {
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px; color: inherit;
  border-bottom: 2px solid var(--accent); padding-bottom: 2px;
}
.textlink:hover { color: var(--accent); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(7,31,56,.12);
  box-shadow: 0 1px 12px rgba(7,31,56,.08);
  color: var(--ink);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: inherit; flex: none; }
.brand__logo { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav__list { display: flex; gap: 28px; }
.nav__list a {
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-2); padding: 6px 0; position: relative;
}
.nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.nav__list a:hover, .nav__list a[aria-current="page"] { color: var(--navy); }
.nav__list a[aria-current="page"]::after, .nav__list a:hover::after { transform: scaleX(1); }
.nav .btn { padding: 11px 18px; font-size: 1.02rem; }
.nav-toggle {
  display: none; background: none; border: 2px solid rgba(7,31,56,.3); color: var(--navy);
  width: 46px; height: 46px; border-radius: var(--radius); cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor; transition: transform .2s ease; }
.nav-toggle span::before { top: -7px; } .nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  .brand__logo { height: 48px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h));
    background: var(--ballast); flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 24px var(--gutter) 40px; gap: 24px;
    transform: translateX(100%); transition: transform .25s ease; overflow: auto;
  }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; gap: 0; border-top: 1px solid var(--line-dark); }
  .nav__list li { border-bottom: 1px solid var(--line-dark); }
  .nav__list a, .nav__list a:hover, .nav__list a[aria-current="page"] { display: block; font-size: 1.8rem; padding: 18px 0; color: var(--on-dark); }
  .nav__list a::after { display: none; }
  .nav .btn { align-self: flex-start; font-size: 1.15rem; padding: 14px 24px; }
}

main { padding-top: var(--nav-h); }

/* Hero (home) */
.hero {
  position: relative; min-height: calc(100svh - var(--nav-h)); min-height: calc(100vh - var(--nav-h));
  display: grid; align-items: end; color: var(--on-dark); background: var(--ballast); overflow: hidden;
  isolation: isolate;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(7,31,56,.96) 0%, rgba(7,31,56,.82) 38%, rgba(7,31,56,.45) 72%, rgba(7,31,56,.35) 100%),
    linear-gradient(90deg, rgba(7,31,56,.72) 0%, rgba(7,31,56,.42) 48%, rgba(7,31,56,0) 100%);
}
.hero .eyebrow { color: #7DBDF0; text-shadow: 0 1px 2px rgba(7,31,56,.6); }
.hero h1 { text-shadow: 0 2px 12px rgba(7,31,56,.45); }
@media (max-width: 900px) {
  .hero::after {
    background:
      linear-gradient(to top, rgba(7,31,56,.97) 0%, rgba(7,31,56,.88) 45%, rgba(7,31,56,.55) 80%, rgba(7,31,56,.4) 100%);
  }
  .hero__img { object-position: 70% 50%; }
}
.hero__content { padding-block: clamp(56px, 9vw, 120px) clamp(48px, 7vw, 96px); max-width: 920px; }
.hero h1 { margin-bottom: 0.3em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { color: #E2E8F0; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__locator {
  position: absolute; right: var(--gutter); bottom: 28px; display: none; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .9rem; color: var(--on-dark-muted);
}
.hero__locator::before { content: ""; width: 10px; height: 10px; background: var(--accent); border-radius: 50%; }
@media (min-width: 900px) { .hero__locator { display: inline-flex; } }

/* Fact strip */
.facts { background: var(--ballast-2); color: var(--on-dark); border-top: 1px solid var(--line-dark); }
.facts .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { padding: 26px 24px 26px 0; border-right: 1px solid var(--line-dark); }
.fact:last-child { border-right: 0; }
.fact + .fact { padding-left: 24px; }
.fact__label { font-family: var(--font-head); font-weight: 600; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.fact__value { font-family: var(--font-head); font-weight: 600; font-size: 1.45rem; line-height: 1.1; }
@media (max-width: 760px) {
  .facts .wrap { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line-dark); padding: 18px 0; }
  .fact + .fact { padding-left: 0; }
  .fact:last-child { border-bottom: 0; }
}

/* Section headers */
.section-head { display: grid; gap: 20px; margin-bottom: clamp(36px, 5vw, 64px); }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1.1fr 1fr; align-items: end; }
  .section-head .lede { margin: 0 0 .5rem; }
}

/* Service index (home) */
.svc-index { border-top: 2px solid var(--ink); }
.svc-row {
  display: grid; grid-template-columns: 90px 1.1fr 1.6fr auto; gap: 24px; align-items: start;
  padding: 30px 0; border-bottom: 1px solid rgba(7,31,56,.18); text-decoration: none; color: inherit;
  transition: background-color .2s ease;
}
.svc-row:hover { background: rgba(58,147,219,.08); }
.svc-row__num { font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--accent-dark); }
.svc-row h3 { margin: 0; font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.svc-row p { margin: 0; color: var(--ink-2); }
.svc-row__go { font-family: var(--font-head); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding-top: 6px; }
.svc-row__go svg { width: 20px; height: 20px; transition: transform .2s ease; }
.svc-row:hover .svc-row__go svg { transform: translateX(4px); }
@media (max-width: 900px) {
  .svc-row { grid-template-columns: 56px 1fr; gap: 10px 16px; padding: 22px 0; }
  .svc-row__num { font-size: 1.8rem; grid-row: span 3; }
  .svc-row p, .svc-row__go { grid-column: 2; }
}

/* Two-column text blocks */
.cols { display: grid; gap: clamp(28px, 5vw, 72px); }
@media (min-width: 900px) { .cols { grid-template-columns: 1fr 1fr; } .cols--13 { grid-template-columns: 1fr 1.4fr; } }

/* Sector list */
.sectors { border-top: 1px solid var(--line-dark); }
.sectors li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line-dark); font-family: var(--font-head); font-weight: 600; font-size: 1.45rem; line-height: 1.15; }
.sectors li span { color: var(--accent); font-size: .95rem; letter-spacing: .1em; padding-top: .35em; }

/* Commitments */
.commit { display: grid; gap: 2px; background: var(--line-dark); border: 1px solid var(--line-dark); }
@media (min-width: 700px) { .commit { grid-template-columns: 1fr 1fr; } }
.commit > div { background: var(--ballast); padding: clamp(24px, 3vw, 40px); }
.commit__n { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--accent); letter-spacing: .14em; margin-bottom: 14px; }
.commit h3 { font-size: 1.7rem; margin-bottom: .35em; }
.commit p { margin: 0; color: var(--on-dark-muted); }

/* Image band */
.band { position: relative; color: var(--on-dark); background: var(--ballast); isolation: isolate; overflow: hidden; }
.band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,31,56,.9) 0%, rgba(7,31,56,.65) 50%, rgba(7,31,56,.3) 100%); }
.band .wrap { padding-block: clamp(72px, 12vw, 160px); }
.band__inner { max-width: 640px; }
.band .lede { color: #E2E8F0; }

/* Group block */
.group-cards { display: grid; gap: 16px; }
@media (min-width: 700px) { .group-cards { grid-template-columns: 1fr 1fr; } }
.gcard { background: var(--paper); border-left: 4px solid var(--accent); padding: 22px 24px; }
.gcard h3 { font-size: 1.5rem; margin-bottom: .25em; }
.gcard p { margin: 0; color: var(--ink-2); }

/* CTA band */
.cta { background: var(--ballast); color: var(--on-dark); position: relative; overflow: hidden; }
.cta .wrap { display: grid; gap: 32px; padding-block: clamp(64px, 9vw, 120px); }
@media (min-width: 900px) { .cta .wrap { grid-template-columns: 1.4fr 1fr; align-items: center; } }
.cta h2 { font-size: clamp(2.6rem, 5.5vw, 4.6rem); }
.cta address { font-style: normal; color: var(--on-dark-muted); line-height: 1.5; }
.cta .muted { color: var(--on-dark-muted); }
.cta address strong { color: var(--on-dark); font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; letter-spacing: .02em; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; }

/* Footer */
.site-footer { background: #04172B; color: var(--on-dark-muted); font-size: .95rem; }
.site-footer .wrap { display: grid; gap: 32px; padding-block: 56px 32px; }
@media (min-width: 900px) { .site-footer .wrap { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer h3 { font-size: .9rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer address { font-style: normal; line-height: 1.55; }
.site-footer .brand { margin-bottom: 18px; color: var(--on-dark); }
.site-footer .brand__logo { height: 64px; }
.site-footer__legal { border-top: 1px solid var(--line-dark); }
.site-footer__legal .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px; font-size: .88rem; }

/* Page header (inner pages) */
.page-head { background: var(--ballast); color: var(--on-dark); position: relative; isolation: isolate; overflow: hidden; }
.page-head .wrap { padding-block: clamp(56px, 9vw, 120px) clamp(40px, 6vw, 72px); max-width: 980px; margin-inline: auto; }
.page-head--image { min-height: 52vh; display: grid; align-items: end; }
.page-head__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-head--image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(7,31,56,.95) 10%, rgba(7,31,56,.45) 60%, rgba(7,31,56,.3) 100%); }
.page-head h1 { font-size: clamp(2.8rem, 6.4vw, 5.6rem); }
.page-head .lede { color: #E2E8F0; margin: 0; }
.page-head .eyebrow { color: #7DBDF0; text-shadow: 0 1px 2px rgba(7,31,56,.6); }
.page-head--image .eyebrow { color: var(--on-dark); text-shadow: 0 1px 3px rgba(7,31,56,.85), 0 0 12px rgba(7,31,56,.5); }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 980px); margin-inline: auto; }

/* Anchor nav (services) */
.anchor-nav { background: var(--ballast-2); border-bottom: 1px solid var(--line-dark); position: sticky; top: var(--nav-h); z-index: 50; }
.anchor-nav ul { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.anchor-nav ul::-webkit-scrollbar { display: none; }
.anchor-nav a { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px 14px 0; margin-right: 20px; white-space: nowrap; font-family: var(--font-head); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-muted); text-decoration: none; font-size: 1rem; }
.anchor-nav a:hover { color: var(--on-dark); }
.anchor-nav a span { color: var(--accent); }

/* Service detail sections */
.svc { padding-block: clamp(56px, 8vw, 110px); border-bottom: 1px solid rgba(7,31,56,.12); scroll-margin-top: calc(var(--nav-h) + 56px); }
.svc .wrap { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) {
  .svc .wrap { grid-template-columns: 1fr 1fr; }
  .svc--flip .svc__media { order: 2; }
}
.svc__media { position: relative; margin: 0; }
.svc__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.svc__media figcaption { font-size: .85rem; color: var(--ink-2); margin-top: 10px; }
.svc__num { font-family: var(--font-head); font-weight: 700; font-size: clamp(3rem, 6vw, 5rem); line-height: 1; color: var(--accent-dark); margin-bottom: 10px; }
.svc h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); }
.scope { margin-top: 24px; border-top: 2px solid var(--ink); padding-top: 14px; }
.scope h3 { font-size: .92rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
.scope li { position: relative; padding: 8px 0 8px 22px; border-bottom: 1px solid rgba(7,31,56,.1); }
.scope li::before { content: ""; position: absolute; left: 0; top: 16px; width: 10px; height: 10px; background: var(--accent); }

/* Mosaic (about / services intro) */
.mosaic { display: grid; gap: 12px; }
@media (min-width: 700px) { .mosaic { grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; } .mosaic img:first-child { grid-row: span 2; } }
.mosaic img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
@media (min-width: 700px) { .mosaic img:first-child { aspect-ratio: auto; } }

/* Leadership */
.person { border-top: 2px solid var(--ink); padding-top: 18px; max-width: 420px; }
.person strong { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; display: block; line-height: 1.05; }
.person span { color: var(--accent); font-family: var(--font-head); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .95rem; }
.section--dark .person { border-top-color: var(--on-dark); }
.person__facts { margin-top: 18px; display: grid; gap: 10px; }
.person__facts div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line-dark); }
.person__facts dt { font-family: var(--font-head); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; color: var(--on-dark-muted); }
.person__facts dd { margin: 0; }

/* Compact commitments (about) */
.commit-list { border-top: 1px solid var(--line-dark); }
.commit-list li { display: grid; grid-template-columns: 40px 1fr; gap: 12px 16px; padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
.commit-list span { color: var(--accent); font-family: var(--font-head); font-weight: 700; letter-spacing: .12em; font-size: .95rem; padding-top: .3em; }
.commit-list h3 { font-size: 1.5rem; margin: 0 0 .2em; }
.commit-list p { margin: 0; color: var(--on-dark-muted); }

/* Registry table */
.reg { width: 100%; border-collapse: collapse; font-size: 1rem; }
.reg th, .reg td { text-align: left; padding: 12px 0; border-bottom: 1px solid rgba(7,31,56,.14); vertical-align: top; }
.reg th { font-family: var(--font-head); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .9rem; color: var(--ink-2); width: 42%; padding-right: 16px; }
.section--dark .reg th, .section--dark .reg td { border-bottom-color: var(--line-dark); }
.section--dark .reg th { color: var(--on-dark-muted); }

/* Contact */
.contact-grid { display: grid; gap: clamp(32px, 5vw, 72px); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.15fr; align-items: start; } }
.card { background: var(--paper); border-top: 4px solid var(--accent); padding: clamp(22px, 3vw, 36px); }
.card h2 { font-size: 1.9rem; }
.card address { font-style: normal; line-height: 1.55; font-size: 1.1rem; }
.notice {
  background: #EAF3FB; border: 1px solid #A9CBEA; border-left: 5px solid var(--accent);
  padding: 14px 18px; border-radius: var(--radius); font-size: .98rem; margin-bottom: 20px;
}
.notice strong { font-family: var(--font-head); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.map { margin-top: 20px; }
.map iframe { width: 100%; height: 300px; border: 0; display: block; filter: grayscale(1) contrast(1.05); background: var(--cream-2); }
.map .textlink { margin-top: 12px; }

.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; }
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-family: var(--font-head); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .92rem; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #A7B3C2; border-radius: var(--radius); background: var(--paper); color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field textarea { min-height: 150px; resize: vertical; }
.field small { display: block; color: var(--ink-2); margin-top: 6px; font-size: .88rem; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form__foot p { margin: 0; font-size: .92rem; color: var(--ink-2); }

/* Prose (privacy, 404) */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.9rem; margin-top: 2em; }
.prose ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--accent-ink); }

/* 404 */
.notfound { min-height: calc(100vh - var(--nav-h)); display: grid; align-items: center; background: var(--ballast); color: var(--on-dark); position: relative; isolation: isolate; overflow: hidden; }
.notfound__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .5; }
.notfound::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(7,31,56,.95), rgba(7,31,56,.5)); }
.notfound__code { font-family: var(--font-head); font-weight: 700; font-size: clamp(6rem, 18vw, 14rem); line-height: .9; color: var(--accent); }

/* Reveal motion (JS only) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
