/* ==========================================================================
   BU Engineering · BU Design & Construction
   Design tokens + components. Palette is taken from the BU logo:
   navy fill, black line-work, grey hatch. Warm stone neutral for calm.
   ========================================================================== */

:root {
  /* Brand */
  --navy: #253f77;          /* logo fill */
  --navy-700: #1c3161;
  --navy-900: #121f3f;
  --navy-50: #eef1f8;
  --ink: #111418;           /* logo line-work */
  --ink-2: #2a2f37;
  --muted: #5a616d;         /* 6.0:1 on white */
  --stone: #f4f1ec;         /* warm neutral surface */
  --stone-2: #ebe6de;
  --paper: #ffffff;
  --line: #dcd6cc;
  --line-strong: #b9b2a6;
  --hatch: #8a8f98;

  /* Type */
  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Spacing (8pt rhythm) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  --radius: 20px;
  --radius-sm: 12px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);

  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --dur: 220ms;

  --z-header: 50;
  --z-menu: 60;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 600;
  text-wrap: balance;
}
p { margin: 0; }
p + p { margin-top: var(--s4); }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s4); top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: var(--s3) var(--s4);
  border-radius: 8px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: var(--s4); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--stone { background: var(--stone); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

/* Eyebrow label — small caps with a drafting tick, echoes the logo's lines */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s3);
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy);
  margin-bottom: var(--s4);
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: currentColor;
}
.on-dark .eyebrow { color: #aebde0; }

.display {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.h2 { font-size: clamp(30px, 4vw, 48px); }
.h2 .soft, .display .soft { color: var(--muted); font-weight: 500; }
.on-dark .h2 .soft { color: #9aa3b5; }
.lede { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy); --btn-fg: #fff; --btn-bd: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s5);
  border-radius: 999px; border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-display); font-weight: 500; font-size: 15px;
  text-decoration: none; cursor: pointer;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  touch-action: manipulation;
}
.btn:hover { --btn-bg: var(--navy-700); --btn-bd: var(--navy-700); }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; transition: transform var(--dur) var(--ease-out); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }
.btn--light:hover { --btn-bg: var(--stone); --btn-bd: var(--stone); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.5); }
.btn--outline-light:hover { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }

.text-link {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-family: var(--font-display); font-weight: 500; font-size: 15px;
  color: var(--navy); text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.text-link:hover { color: var(--ink); }
.text-link svg { width: 16px; height: 16px; flex: none; }

/* ---------- Logo ---------- */
.brand {
  display: inline-flex; align-items: center; gap: var(--s3);
  text-decoration: none; color: var(--ink);
  min-height: 44px;
}
.brand__mark { width: 52px; height: 42px; flex: none; --mark-bg: #fff; }
.brand__word {
  position: relative; display: grid;
  font-family: var(--font-display); font-weight: 700;
  font-size: 15px; letter-spacing: .01em; line-height: 1.1;
  text-transform: uppercase; white-space: nowrap;
}
.brand__word > span { grid-area: 1 / 1; transition: opacity 500ms ease, transform 500ms var(--ease-out); }
.brand__word small {
  display: block; font-family: var(--font-body); font-weight: 500;
  font-size: 11px; letter-spacing: .12em; color: var(--muted); margin-top: 2px;
}
/* Home/neutral pages: the wordmark alternates between the two divisions */
.brand__word[data-cycle] > span:not(.is-active) { opacity: 0; transform: translateY(6px); }

/* ---------- Header ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: var(--z-header);
  padding-top: var(--s4);
}
.site-header--solid { position: sticky; top: 0; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); padding-block: var(--s2); }
.nav-bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  background: #fff; border-radius: 999px;
  padding: var(--s2) var(--s2) var(--s2) var(--s5);
  box-shadow: 0 1px 0 rgba(17,20,24,.04), 0 12px 32px -12px rgba(17,20,24,.18);
}
.site-header--solid .nav-bar { box-shadow: none; padding-inline: 0; background: transparent; }
.nav { display: flex; align-items: center; gap: var(--s1); }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s4);
  font-family: var(--font-display); font-size: 15px; font-weight: 500;
  color: var(--ink-2); text-decoration: none; border-radius: 999px;
  transition: background-color var(--dur), color var(--dur);
}
.nav a:hover { background: var(--stone); }
.nav a[aria-current="page"] { color: var(--navy); background: var(--navy-50); }
.nav .btn { margin-left: var(--s2); }
.nav .btn, .nav .btn:hover { color: #fff; }
.nav .btn:hover { background: var(--navy-700); }

.menu-toggle {
  display: none; width: 48px; height: 48px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 0; z-index: var(--z-menu);
    flex-direction: column; align-items: stretch; justify-content: center; gap: var(--s2);
    padding: var(--s9) var(--gutter) var(--s7);
    background: var(--paper);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 200ms ease, transform 250ms var(--ease-out), visibility 0s linear 250ms;
  }
  .nav a { font-size: 26px; min-height: 56px; padding-inline: var(--s4); }
  .nav .btn { margin: var(--s5) 0 0; font-size: 17px; min-height: 56px; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-close { position: absolute; top: var(--s5); right: var(--gutter); }
  .brand__word { font-size: 13px; }
  .brand__mark { width: 44px; height: 36px; }
  .nav-bar { padding-left: var(--s4); }
}
@media (max-width: 480px) {
  .brand { gap: var(--s2); }
  .brand__word { font-size: 12px; white-space: normal; }
  .brand__word small { font-size: 10px; letter-spacing: .08em; }
  .menu-toggle { width: 44px; height: 44px; flex: none; }
}
@media (min-width: 961px) { .nav-close { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: var(--s3); }
.hero__frame {
  position: relative; overflow: hidden;
  border-radius: calc(var(--radius) + 8px);
  min-height: min(88vh, 860px);
  display: flex; align-items: flex-end;
  background: var(--navy-900);
}
.hero__frame > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero__frame::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,16,32,.72) 0%, rgba(10,16,32,.42) 45%, rgba(10,16,32,.05) 80%),
    linear-gradient(180deg, rgba(10,16,32,.35) 0%, rgba(10,16,32,0) 28%, rgba(10,16,32,0) 50%, rgba(10,16,32,.6) 100%);
}
@media (max-width: 860px) {
  .hero__frame::after { background: linear-gradient(180deg, rgba(10,16,32,.4) 0%, rgba(10,16,32,.25) 35%, rgba(10,16,32,.8) 100%); }
}
.hero__content {
  position: relative; z-index: 1; width: 100%;
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: var(--s6);
  padding: 120px var(--gutter) var(--s5);
  max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto;
  color: #fff;
}
.hero__content h1 { color: #fff; max-width: 14ch; }
.hero__content .lede { color: rgba(255,255,255,.86); margin-top: var(--s5); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }

/* The floating tab, straight from the reference: a white notch cut into the photo */
.hero__tab {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: var(--s5);
  background: #fff; color: var(--ink);
  padding: var(--s4) var(--s4) var(--s4) var(--s5);
  border-radius: var(--radius) var(--radius) 0 0;
  margin-bottom: calc(-1 * var(--s5));
  font-family: var(--font-display); font-weight: 500;
}
.hero__tab ul { display: flex; gap: var(--s5); font-size: 14px; color: var(--muted); }
.hero__tab li { display: flex; align-items: center; gap: var(--s2); white-space: nowrap; }
.hero__tab svg { width: 18px; height: 18px; color: var(--navy); }

.page-hero .hero__frame { min-height: min(68vh, 640px); }

@media (max-width: 860px) {
  .hero__content { grid-template-columns: 1fr; padding-bottom: var(--s6); }
  .hero__tab { display: none; }
  .hero__frame { min-height: 82vh; min-height: 82dvh; }
  .page-hero .hero__frame { min-height: 64vh; min-height: 64dvh; }
}

/* ---------- Trust strip ---------- */
.trust {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}
.trust li {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s5) var(--s4);
  font-family: var(--font-display); font-weight: 500; font-size: 15px; color: var(--ink);
}
.trust li + li { border-left: 1px solid var(--line); }
.trust svg { width: 26px; height: 26px; flex: none; color: var(--navy); }
@media (max-width: 860px) {
  .trust { 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); }
}

/* ---------- Split intro ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start;
}
.split .lede { color: var(--ink-2); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Drafted frame: construction lines overshoot the corners (logo motif) ---------- */
.drafted { position: relative; }
.drafted::before, .drafted::after {
  content: ""; position: absolute; pointer-events: none; z-index: 2;
  border-color: var(--line-strong); border-style: solid; border-width: 0;
}
.drafted::before { inset: -14px 0; border-left-width: 1px; border-right-width: 1px; }
.drafted::after { inset: 0 -14px; border-top-width: 1px; border-bottom-width: 1px; }
.on-dark .drafted::before, .on-dark .drafted::after { border-color: rgba(255,255,255,.22); }

/* ---------- Division cards (company structure) ---------- */
.divisions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); margin-top: var(--s8); }
.division {
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: inherit;
  box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--line);
  transition: box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.division:hover { box-shadow: 0 0 0 1px var(--line-strong), 0 24px 48px -24px rgba(17,20,24,.28); transform: translateY(-3px); }
.division__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--stone-2); }
.division__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.division:hover .division__media img { transform: scale(1.03); }
.division__body { padding: var(--s6); display: flex; flex-direction: column; gap: var(--s4); flex: 1; }
.division__tag {
  font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.division h3 { font-size: clamp(24px, 2.4vw, 30px); }
.division p { color: var(--muted); }
.division ul { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s2); }
.division li {
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  padding: 6px 12px; border-radius: 999px; background: var(--stone);
}
.division .text-link { margin-top: auto; align-self: flex-start; }
@media (max-width: 860px) { .divisions { grid-template-columns: 1fr; } }

/* ---------- Structure diagram: one team, two disciplines ---------- */
.flow {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: var(--s8); counter-reset: step;
  border-top: 1px solid var(--ink);
}
.flow li { padding: var(--s5) var(--s5) 0 0; position: relative; }
.flow li::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--font-display); font-size: 13px; font-weight: 600;
  letter-spacing: .1em; color: var(--navy); margin-bottom: var(--s4);
}
.flow li::after {
  content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px;
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: 50%;
}
.flow h3 { font-size: 20px; margin-bottom: var(--s2); }
.flow p { font-size: 15px; color: var(--muted); }
.flow .who {
  display: inline-block; margin-top: var(--s3);
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
}
.section--stone .flow li::after { background: var(--stone); }
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr 1fr; row-gap: var(--s7); }
}
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--ink); padding-left: var(--s5); row-gap: var(--s6); }
  .flow li { padding: 0; }
  .flow li::after { top: 4px; left: calc(-1 * var(--s5) - 5px); }
}

/* ---------- Dark services section (reference 2) ---------- */
.services {
  background: var(--ink); color: #d6d9df;
  position: relative; overflow: hidden;
}
.services .h2 { color: #fff; }
.services__head { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s7); align-items: end; margin-bottom: var(--s8); }
.services__head .lede { color: #aab0bb; }
@media (max-width: 860px) { .services__head { grid-template-columns: 1fr; gap: var(--s5); } }

/* Accordion categories — grouped services instead of a laundry list */
.acc { border-top: 1px solid rgba(255,255,255,.16); }
.acc__item { border-bottom: 1px solid rgba(255,255,255,.16); }
.acc__item summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 64px 1fr auto; gap: var(--s5); align-items: center;
  padding: var(--s6) 0; min-height: 64px;
}
.acc__item summary::-webkit-details-marker { display: none; }
.acc__num { font-family: var(--font-display); font-size: 14px; font-weight: 500; color: #7f889a; letter-spacing: .08em; }
.acc__title { display: block; font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 34px); font-weight: 500; color: #fff; letter-spacing: -0.02em; line-height: 1.2; }
.acc__sum { display: block; margin-top: var(--s2); color: #aab0bb; font-size: 16px; max-width: 62ch; }
.acc__icon {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28);
  display: grid; place-items: center; color: #fff;
  transition: background-color var(--dur), border-color var(--dur), transform 300ms var(--ease-out);
}
.acc__icon svg { width: 20px; height: 20px; }
.acc__item summary:hover .acc__icon { background: #fff; color: var(--ink); border-color: #fff; }
.acc__item[open] .acc__icon { transform: rotate(45deg); background: var(--navy); border-color: var(--navy); }
.acc__item summary:focus-visible { outline-offset: -2px; }
.acc__panel {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px;
  background: rgba(255,255,255,.12);
  margin: 0 0 var(--s6) calc(64px + var(--s5));
  border-radius: var(--radius-sm); overflow: hidden;
}
.acc__panel li { background: #1a1e24; padding: var(--s5); }
.acc__panel h4 { color: #fff; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: var(--s2); }
.acc__panel p { font-size: 15px; line-height: 1.55; color: #a3aab6; }
.acc__item[open] .acc__panel { animation: panelIn 320ms var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .acc__item summary { grid-template-columns: 1fr auto; }
  .acc__num { display: none; }
  .acc__panel { grid-template-columns: 1fr; margin-left: 0; }
}

/* ---------- Image tiles (reference 1: industries grid) ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); margin-top: var(--s7); }
.tile {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--stone-2);
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.tile:hover img { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.66)); }
.tile span {
  position: absolute; left: var(--s4); right: var(--s4); bottom: var(--s4); z-index: 1;
  color: #fff; font-family: var(--font-display); font-weight: 500; font-size: 17px; line-height: 1.25;
}
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr 1fr; } }

/* ---------- Service area ---------- */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); margin-top: var(--s7); }
.area {
  background: #fff; border-radius: var(--radius); padding: var(--s6);
  box-shadow: 0 0 0 1px var(--line);
}
.area h3 { font-size: 22px; display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); }
.area h3 small { font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.area p { margin-top: var(--s3); color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .areas { grid-template-columns: 1fr; } }

/* ---------- Audience list ---------- */
.audience { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s4); margin-top: var(--s7); }
.audience li {
  padding: var(--s5); border-radius: var(--radius-sm); background: var(--stone);
  font-family: var(--font-display); font-weight: 500; color: var(--ink); font-size: 16px; line-height: 1.3;
}
.audience svg { width: 26px; height: 26px; color: var(--navy); margin-bottom: var(--s4); display: block; }
@media (max-width: 480px) { .audience { grid-template-columns: 1fr 1fr; } }

/* ---------- Cross-sell ---------- */
.crosssell {
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  background: var(--stone); border-radius: calc(var(--radius) + 4px); overflow: hidden;
}
.crosssell__media { min-height: 320px; }
.crosssell__media img { width: 100%; height: 100%; object-fit: cover; }
.crosssell__body { padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; gap: var(--s4); }
.crosssell__body .btn { align-self: flex-start; margin-top: var(--s3); }
@media (max-width: 860px) { .crosssell { grid-template-columns: 1fr; } .crosssell__media { min-height: 240px; aspect-ratio: 16/9; } }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy); color: #fff; border-radius: calc(var(--radius) + 8px);
  padding: clamp(40px, 6vw, 80px);
  display: grid; grid-template-columns: 1fr auto; gap: var(--s6); align-items: center;
}
/* Hatch texture pulled from the logo's shaded panels */
.cta-band::before {
  content: ""; position: absolute; inset: 0 0 0 55%; z-index: -1;
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,.10) 0 1px, transparent 1px 12px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%);
          mask-image: linear-gradient(90deg, transparent, #000 40%);
}
.cta-band h2 { color: #fff; font-size: clamp(28px, 3.6vw, 44px); }
.cta-band h2 .soft { color: #b8c5e4; font-weight: 500; }
.cta-band p { color: #d5dcef; margin-top: var(--s3); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Values (about) ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); margin-top: var(--s7); }
.values li { border-top: 1px solid var(--ink); padding-top: var(--s5); }
.values h3 { font-size: 20px; margin-bottom: var(--s2); }
.values p { color: var(--muted); font-size: 16px; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }

.photo-pair { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s4); }
.photo-pair img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); aspect-ratio: 4/5; }
.photo-pair img:first-child { aspect-ratio: auto; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { margin-top: var(--s6); display: grid; gap: var(--s4); }
.contact-list a, .contact-list div {
  display: flex; align-items: center; gap: var(--s4); min-height: 56px;
  text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 500; font-size: 18px;
}
.contact-list .ic {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--navy-50); color: var(--navy);
}
.contact-list .ic svg { width: 20px; height: 20px; }
.contact-list small { display: block; font-family: var(--font-body); font-size: 13px; color: var(--muted); font-weight: 500; }
.contact-list a:hover { color: var(--navy); }

.form {
  background: var(--stone); border-radius: calc(var(--radius) + 4px);
  padding: clamp(24px, 4vw, 48px);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5);
}
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: var(--s2); }
.field label, .field legend {
  font-family: var(--font-display); font-size: 14px; font-weight: 500; color: var(--ink);
}
.field .req { color: #b42318; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: 10px;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(37,63,119,.18);
}
.field[data-invalid] input, .field[data-invalid] select, .field[data-invalid] textarea { border-color: #b42318; }
.field .err { font-size: 14px; color: #b42318; min-height: 0; }
.field .err:empty { display: none; }
.field .hint { font-size: 14px; color: var(--muted); }
.form fieldset { border: 0; padding: 0; margin: 0; }
.seg { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s2); }
.seg label {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s4);
  border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; cursor: pointer;
  font-family: var(--font-body); font-weight: 500; font-size: 15px; color: var(--ink-2);
  transition: background-color var(--dur), border-color var(--dur), color var(--dur);
}
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.seg label:has(input:checked) { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg label:has(input:focus-visible) { outline: 3px solid var(--navy); outline-offset: 2px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); }
.form__foot p { font-size: 14px; color: var(--muted); }
.form .btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.form-status { padding: var(--s4) var(--s5); border-radius: 10px; font-weight: 500; }
.form-status[data-state="success"] { background: #e7f4ec; color: #14532d; }
.form-status[data-state="error"] { background: #fdecec; color: #8a1c1c; }
.form-status:empty { display: none; }
.hp { position: absolute !important; left: -9999px !important; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--stone); padding-top: var(--s9); margin-top: var(--s9); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: var(--s7); }
.footer-grid h4 {
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: var(--s4);
}
.footer-grid li + li { margin-top: var(--s2); }
.footer-grid a { text-decoration: none; color: var(--ink-2); }
.footer-grid a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.footer-brand p { margin-top: var(--s4); color: var(--muted); font-size: 15px; max-width: 34ch; }
.footer-brand .brand__mark { --mark-bg: var(--stone); }
.socials { display: flex; gap: var(--s2); margin-top: var(--s5); }
.socials a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line);
  transition: background-color var(--dur), color var(--dur);
}
.socials a:hover { background: var(--navy); color: #fff; text-decoration: none; }
.socials svg { width: 18px; height: 18px; }
.map { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; background: var(--stone-2); box-shadow: 0 0 0 1px var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.6) contrast(1.05); }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s4);
  margin-top: var(--s8); padding-block: var(--s5); border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll (subtle) ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
  .reveal { opacity: 1; transform: none; }
}

.mt-4 { margin-top: var(--s4); } .mt-5 { margin-top: var(--s5); } .mt-6 { margin-top: var(--s6); } .mt-7 { margin-top: var(--s7); }
