/* ==========================================================================
   DiversionTrade — site styles
   Structure: 1 Tokens · 2 Base · 3 Layout · 4 Components · 5 Sections · 6 Motion
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
@font-face {
  font-family: "Sora";
  src: url("../assets/fonts/sora-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0b2d4d;
  --navy-deep: #082340;
  --teal: #087c7b;
  --gold: #c9a75d;
  --warm: #f8f7f3;
  --charcoal: #303943;
  --white: #ffffff;

  --teal-tint: #eaf3f2;
  --line: #dfe3e4;
  --line-dark: rgba(255, 255, 255, 0.16);
  --muted: #5b6672; /* charcoal, softened — 5.6:1 on warm white */

  --font-head: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(72px, 9vw, 128px);
  --header-h: 88px;
  --header-h-compact: 66px;

  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(11, 45, 77, 0.06), 0 2px 8px rgba(11, 45, 77, 0.05);
  --shadow-md: 0 10px 30px -12px rgba(11, 45, 77, 0.25);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.7s;
}

/* 2. BASE ------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-compact) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--warm);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.12;
}
h1 { font-size: clamp(2.375rem, 4.7vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.875rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); line-height: 1.2; }
h4 { font-size: 1.05rem; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible,
.site-footer :focus-visible { outline-color: var(--gold); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; color: var(--white); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 3. LAYOUT ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--tint { background: var(--teal-tint); }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); color: rgba(255, 255, 255, 0.82); }
.section--navy h2, .section--navy h3, .section--navy h4 { color: var(--white); }
.section--navy a { color: #7ed0cb; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.section--navy .eyebrow, .on-dark .eyebrow, .partner .eyebrow, .division--3 .eyebrow { color: #7ed0cb; }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head p { margin-top: 20px; color: var(--muted); font-size: 1.125rem; }
.section--navy .section-head p { color: rgba(255, 255, 255, 0.72); }

.lead { font-size: clamp(1.1rem, 1.5vw, 1.275rem); line-height: 1.6; color: var(--muted); }

/* 4. COMPONENTS ------------------------------------------------------------ */

/* Buttons */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: var(--white);
  --btn-bd: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  font: 600 0.9375rem/1 var(--font-body);
  letter-spacing: 0.01em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--teal);
  transform: translateY(101%);
  transition: transform 0.4s var(--ease);
}
.btn:hover { color: var(--white); border-color: var(--teal); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: translateY(0); }
.btn .arrow { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--outline { --btn-bg: transparent; --btn-fg: var(--navy); --btn-bd: var(--navy); }
.btn--outline:hover { --btn-fg: var(--white); }
.btn--outline::before { background: var(--navy); }
.btn--outline:hover { border-color: var(--navy); }

.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--navy); --btn-bd: var(--gold); }
.btn--gold::before { background: var(--white); }
.btn--gold:hover { color: var(--navy); border-color: var(--white); }

.btn--light { --btn-bg: transparent; --btn-fg: var(--white); --btn-bd: rgba(255, 255, 255, 0.5); }
.btn--light::before { background: var(--white); }
.btn--light:hover { color: var(--navy); border-color: var(--white); }

.btn--sm { min-height: 44px; padding: 0 20px; font-size: 0.875rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--navy);
  text-decoration: none;
  padding-bottom: 4px;
  background: linear-gradient(var(--gold), var(--gold)) left bottom / 100% 1px no-repeat;
  transition: color 0.3s var(--ease), background-size 0.4s var(--ease);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.link-arrow:hover { color: var(--teal); background-size: 0 1px; }
.link-arrow:hover svg { transform: translateX(4px); }
.section--navy .link-arrow { color: var(--white); }
.section--navy .link-arrow:hover { color: #7ed0cb; }

/* Media frame with hover zoom */
.media {
  position: relative;
  overflow: hidden;
  background: var(--teal-tint);
  border-radius: var(--radius);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.media:hover img { transform: scale(1.045); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 247, 243, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.site-header.is-compact { border-bottom-color: var(--line); box-shadow: 0 6px 24px -16px rgba(11, 45, 77, 0.35); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: var(--header-h);
  transition: height 0.35s var(--ease);
}
.is-compact .header-inner { height: var(--header-h-compact); }

.brand { display: block; flex: none; line-height: 0; }
.brand img {
  width: 176px;
  height: auto;
  aspect-ratio: 1406 / 493;
  transition: width 0.35s var(--ease);
}
.is-compact .brand img { width: 140px; }

.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.nav-list { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav-link:hover, .nav-link[aria-current="true"], .nav-link[aria-current="page"] { color: var(--teal); }
.nav-link:hover::after, .nav-link[aria-current="true"]::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  margin-right: -10px;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
  color: var(--navy);
}
.nav-toggle span {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.2s var(--ease), top 0.35s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

.nav-cta-mobile { display: none; }

@media (max-width: 960px) {
  :root { --header-h: 74px; --header-h-compact: 62px; }
  .brand img { width: 150px; }
  .is-compact .brand img { width: 128px; }
  .nav-toggle { display: block; }
  .nav-cta-desktop { display: none; }
  .nav-cta-mobile { display: block; }

  .nav {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 28px;
    background: var(--warm);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(11, 45, 77, 0.35);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-link { display: block; padding: 18px 0; font-size: 1.0625rem; }
  .nav-link::after { display: none; }
  .nav-cta-mobile { margin-top: 24px; }
  .nav-cta-mobile .btn { width: 100%; }
}

/* Hero --------------------------------------------------------------------- */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(64px, 8vw, 112px); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.hero h1 .accent { color: var(--teal); }
.hero .lead { margin-top: 28px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.hero-collage {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  aspect-ratio: 1 / 0.96;
}
.hero-collage::before {
  content: "";
  position: absolute;
  z-index: 0;
  right: -18px; bottom: -18px;
  width: 58%; height: 52%;
  background: var(--navy);
  border-radius: var(--radius);
}
.tile { position: relative; z-index: 1; min-height: 0; }
.tile .media { height: 100%; }
.tile--a { grid-row: 1 / span 2; }
.tile--b { transform: translateY(-18px); }
.tile--c { transform: translateY(18px); }
.tile img { object-position: 50% 78%; }
.tile--a img { object-position: 50% 50%; }
.tile figcaption {
  position: absolute;
  left: 12px; bottom: 12px;
  z-index: 2;
  padding: 7px 12px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 2px;
}
.tile figcaption::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--gold);
  vertical-align: 1px;
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-collage { max-width: 560px; aspect-ratio: 1 / 0.95; margin-inline: 4px 18px; }
}

/* Divisions ---------------------------------------------------------------- */
.divisions-intro { padding-block: clamp(16px, 3vw, 40px) clamp(40px, 5vw, 64px); background: var(--warm); }
.division { padding-block: clamp(64px, 8vw, 112px); }
.division--1 { background: var(--warm); padding-top: 0; }
.division--2 { background: var(--teal-tint); }
.division--3 { background: var(--navy); color: rgba(255, 255, 255, 0.82); }
.division--3 h3 { color: var(--white); }
.division--3 .link-arrow { color: var(--white); }
.division--3 .link-arrow:hover { color: #7ed0cb; }

.division-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.division-media { grid-column: 1 / span 5; }
.division-copy { grid-column: 7 / span 6; }
.division--2 .division-media { grid-column: 8 / span 5; grid-row: 1; }
.division--2 .division-copy { grid-column: 1 / span 6; grid-row: 1; }

.division-media .media { aspect-ratio: 4 / 5; box-shadow: var(--shadow-md); }
.division--3 .division-media .media { box-shadow: none; }
.division-num {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}
.division-num b {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 2.25rem;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--gold);
}
.division--3 .division-num { color: #7ed0cb; }
.division-copy h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.division-copy p { margin-top: 20px; font-size: 1.125rem; max-width: 520px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 36px; }
.tag-list li {
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 100px;
}
.division--2 .tag-list li { border-color: #cfe1df; }
.division--3 .tag-list li { color: var(--white); background: transparent; border-color: var(--line-dark); }

@media (max-width: 860px) {
  .division-media, .division-copy,
  .division--2 .division-media, .division--2 .division-copy { grid-column: 1 / -1; grid-row: auto; }
  .division-media .media { aspect-ratio: 4 / 3.4; }
  .division-media .media img { object-position: 50% 72%; }
}

/* About -------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 80px);
  align-items: stretch;
}
.about-copy { grid-column: 1 / span 6; }
.about-copy h2 { margin-bottom: 28px; }
.about-copy p { color: var(--muted); font-size: 1.125rem; }

.about-panel {
  grid-column: 8 / span 5;
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 3.4vw, 44px);
  background-color: var(--navy);
  background-image: url("../assets/img/pattern-tile.svg");
  background-size: 80px 80px;
  border-radius: var(--radius);
  color: var(--white);
  overflow: hidden;
}
.about-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(11, 45, 77, 0.2) 10%, rgba(11, 45, 77, 0.92) 78%);
}
.about-panel > * { position: relative; z-index: 1; }
.about-panel .sprout { width: 92px; height: 92px; }
.about-panel ul { display: grid; gap: 0; }
.about-panel li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.about-panel li span {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.approach {
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
}
.approach-head { grid-column: 1 / span 5; }
.approach-head h3 { font-size: clamp(1.6rem, 2.6vw, 2.125rem); }
.approach-head p { margin-top: 18px; color: var(--muted); font-size: 1.125rem; }
.approach-points { grid-column: 7 / span 6; display: grid; gap: 0; }
.approach-points li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.approach-points li:first-child { padding-top: 0; }
.approach-points strong { font-family: var(--font-head); font-weight: 600; color: var(--navy); }
.approach-points span { color: var(--muted); }

@media (max-width: 860px) {
  .about-copy, .about-panel, .approach-head, .approach-points { grid-column: 1 / -1; }
  .about-panel { min-height: 320px; }
  .approach-points li { grid-template-columns: 1fr; gap: 4px; }
}

/* Why ---------------------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.why-item {
  padding: clamp(28px, 3vw, 44px) clamp(20px, 2.4vw, 36px);
  border-right: 1px solid var(--line);
  background: var(--white);
  transition: background-color 0.4s var(--ease);
}
.why-item:last-child { border-right: 0; }
.why-item:hover { background: var(--warm); }
.why-icon { width: 44px; height: 44px; margin-bottom: 32px; color: var(--teal); }
.why-icon .gold { stroke: var(--gold); }
.why-item h3 { font-size: 1.2rem; margin-bottom: 12px; }
.why-item p { color: var(--muted); font-size: 0.975rem; }

@media (max-width: 1000px) {
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 0; }
  .why-item { border-bottom: 1px solid var(--line); }
  .why-item:nth-child(2n) { border-right: 0; }
}
@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-item { border-right: 0; }
}

/* Partnerships ------------------------------------------------------------- */
.partner {
  position: relative;
  background-color: var(--navy);
  background-image: url("../assets/img/pattern-tile.svg");
  background-size: 80px 80px;
  color: rgba(255, 255, 255, 0.8);
  overflow: hidden;
}
.partner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(11, 45, 77, 0.96) 35%, rgba(11, 45, 77, 0.78));
}
.partner .container { position: relative; z-index: 1; }
.partner-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.partner-copy { grid-column: 1 / span 7; }
.partner h2 { color: var(--white); }
.partner-copy p { margin: 24px 0 36px; font-size: 1.125rem; max-width: 560px; }
.partner-list { grid-column: 9 / span 4; }
.partner-list li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line-dark);
  color: var(--white);
  font-weight: 500;
}
.partner-list li:last-child { border-bottom: 1px solid var(--line-dark); }
.partner-list li::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
@media (max-width: 860px) {
  .partner-copy, .partner-list { grid-column: 1 / -1; }
}

/* Contact ------------------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.contact-info { grid-column: 1 / span 5; }
.contact-info h2 { margin-bottom: 20px; }
.contact-info > p { color: var(--muted); font-size: 1.125rem; }
.contact-list { margin-top: 36px; display: grid; gap: 0; }
.contact-list > div {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.contact-list > div:last-child { border-bottom: 1px solid var(--line); }
.contact-list dt {
  margin-bottom: 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}
.contact-list dd { margin: 0; color: var(--charcoal); }
.contact-list dd a { color: var(--navy); font-weight: 600; text-decoration: none; font-size: 1.125rem; }
.contact-list dd a:hover { color: var(--teal); }
.contact-list address { font-style: normal; }
.contact-list .map-link { display: inline-block; margin-top: 10px; font-size: 0.9rem; font-weight: 600; }

.form-card {
  grid-column: 7 / span 6;
  padding: clamp(24px, 3.4vw, 48px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.form-card h3 { margin-bottom: 6px; }
.form-card > p { color: var(--muted); font-size: 0.95rem; margin-bottom: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.8125rem; font-weight: 600; color: var(--navy); }
.field label .req { color: var(--teal); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  font: 400 1rem/1.4 var(--font-body);
  color: var(--charcoal);
  background: var(--warm);
  border: 1px solid #cdd3d6;
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
.field select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none' stroke='%230B2D4D' stroke-width='1.6'%3E%3Cpath d='M1 1.5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9fb0b4; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8, 124, 123, 0.16);
}
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #b3261e; background: #fff8f7; }
.field-error { min-height: 0; font-size: 0.8125rem; color: #b3261e; }
.field-error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 26px; }
.form-note { font-size: 0.8125rem; color: var(--muted); margin: 20px 0 0; }
.btn[disabled] { opacity: 0.65; cursor: progress; }

.form-status {
  margin-top: 22px;
  padding: 16px 18px;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
}
.form-status[hidden] { display: none; }
.form-status.is-success { color: #0b4f2e; background: #e9f6ee; border-color: #b9e0c7; }
.form-status.is-error { color: #7a1a14; background: #fdeeed; border-color: #f2c3bf; }
.form-status.is-info { color: var(--navy); background: var(--teal-tint); border-color: #cfe1df; }
.form-status a { font-weight: 600; }

@media (max-width: 960px) {
  .contact-info, .form-card { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* Footer ------------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9375rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1fr 1.3fr;
  gap: clamp(32px, 4vw, 64px);
  padding-block: clamp(56px, 7vw, 88px) clamp(40px, 5vw, 64px);
}
.footer-brand img { width: 200px; height: auto; aspect-ratio: 1406 / 493; margin-bottom: 24px; }
.footer-brand p { max-width: 320px; }
.site-footer h4 {
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-links { display: grid; gap: 12px; }
.site-footer a { color: rgba(255, 255, 255, 0.82); text-decoration: none; transition: color 0.25s var(--ease); }
.site-footer a:hover { color: #7ed0cb; }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-phones { margin-top: 14px; display: grid; gap: 4px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.56);
}
@media (max-width: 960px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* Inner (division) pages --------------------------------------------------- */
.page-hero { padding-block: clamp(32px, 5vw, 72px) clamp(56px, 7vw, 96px); }
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; font-size: 0.8125rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: #aab4b8; }
.page-hero h1 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); }
.page-hero .lead { margin-top: 24px; max-width: 520px; }
.page-hero .hero-actions { margin-top: 36px; }
.page-hero .media { aspect-ratio: 4 / 4.6; box-shadow: var(--shadow-md); }
.page-hero.theme-navy { background: var(--navy); }
.page-hero.theme-navy h1 { color: var(--white); }
.page-hero.theme-navy .lead, .page-hero.theme-navy .breadcrumb, .page-hero.theme-navy .breadcrumb a { color: rgba(255, 255, 255, 0.74); }
.page-hero.theme-navy .eyebrow { color: #7ed0cb; }
.page-hero.theme-tint { background: var(--teal-tint); }

.focus-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.focus-item { padding: 32px 32px 32px 0; }
.focus-item + .focus-item { padding-left: 32px; border-left: 1px solid var(--line); }
.focus-item .n { display: block; margin-bottom: 18px; font-family: var(--font-head); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.08em; color: var(--gold); }
.focus-item h3 { font-size: 1.25rem; margin-bottom: 12px; }
.focus-item p { color: var(--muted); font-size: 0.975rem; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: s; }
.steps li { counter-increment: s; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before {
  content: counter(s, decimal-leading-zero);
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--teal);
}
.steps h3 { font-size: 1.15rem; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 0.95rem; }

.notice {
  display: flex;
  gap: 18px;
  padding: 24px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  color: var(--charcoal);
  font-size: 0.975rem;
}

.cta-band { background: var(--navy); color: rgba(255, 255, 255, 0.8); padding-block: clamp(56px, 7vw, 88px); }
.cta-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.cta-band h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.25rem); max-width: 620px; }
.other-divisions { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 18px; }

@media (max-width: 860px) {
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero .media { aspect-ratio: 4 / 3.4; }
  .page-hero .media img { object-position: 50% 72%; }
  .focus-grid, .steps { grid-template-columns: 1fr; }
  .focus-item, .focus-item + .focus-item { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* 6. MOTION ---------------------------------------------------------------- */

/* Hero load-in (CSS only, so it works instantly and without waiting on JS) */
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
[data-load] { animation: rise 0.9s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms + 80ms); }
.hero-collage .tile { animation: rise 1.1s var(--ease) both; animation-delay: calc(var(--i, 0) * 140ms + 250ms); }
.tile--b { --ty: -18px; }
.tile--c { --ty: 18px; }
@keyframes rise-b { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(-18px); } }
@keyframes rise-c { from { opacity: 0; transform: translateY(70px); } to { opacity: 1; transform: translateY(18px); } }
.hero-collage .tile--b { animation-name: rise-b; }
.hero-collage .tile--c { animation-name: rise-c; }

/* Scroll reveals — only hidden when JS is running (see js/main.js) */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: calc(var(--i, 0) * 120ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Page transitions: native cross-document fade where supported, soft fade-in elsewhere */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.22s var(--ease) both fade-out; }
::view-transition-new(root) { animation: 0.38s var(--ease) both fade-in; }
@keyframes fade-out { to { opacity: 0; } }
body { animation: fade-in 0.45s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .tile--b { transform: translateY(-18px) !important; }
  .tile--c { transform: translateY(18px) !important; }
  .media:hover img { transform: none; }
  @view-transition { navigation: none; }
}

/* Small-screen refinements */
@media (max-width: 560px) {
  .tile figcaption { left: 8px; bottom: 8px; padding: 5px 8px; font-size: 0.5625rem; letter-spacing: 0.08em; }
  .tile figcaption::before { width: 5px; height: 5px; margin-right: 6px; }
  .tile--b { transform: translateY(-10px); }
  .tile--c { transform: translateY(10px); }
  @keyframes rise-b { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(-10px); } }
  @keyframes rise-c { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: translateY(10px); } }
}

/* List resets for ordered lists used as UI */
ol.breadcrumb, ol.steps { list-style: none; margin-left: 0; padding-left: 0; }
ol.breadcrumb { margin-top: 0; }
.cta-band .link-arrow { color: var(--white); }
.cta-band .link-arrow:hover { color: #7ed0cb; }
