/* ==========================================================================
   Be4 Group of Companies: Stylesheet
   --------------------------------------------------------------------------
   MAINTENANCE MAP (everything you'd normally change lives in section 1):
     1. Design tokens .... brand COLORS, fonts, spacing. Change here, once.
     2. Base / reset ..... element defaults + themed browser surfaces.
     3. Layout ........... container, sections, grids.
     4. Type ............. headings, display, body.
     5. Buttons.
     6. Header / nav.
     7. Hero + page hero.
     8. Cards, tiles, panels, icons.
     9. Editorial bands (ledger, values, journey video, timeline).
    10. About page (structure, leadership).
    11. Contact page.
    12. Footer.
    13. Motion + utilities.
    14. Mobile refinements (phones).
   Mobile-first: base rules target the smallest screens; @media(min-width)
   blocks enhance larger ones. Core content and the mobile menu work with
   JavaScript disabled, so the site stays usable on basic/older phones.
   ========================================================================== */

/* ---------- 1. Design tokens (EDIT BRAND HERE) ---------------------------- */
:root {
  /* Blue-forward palette, analogous, drawn from the Be4 logos. No red. */
  --navy:      #0a1b4d;   /* deepest ink blue: headings, footer, washes */
  --navy-700:  #122a6b;
  --blue:      #1e3fd0;   /* primary royal blue: links, labels */
  --electric:  #2b4bff;   /* electric blue: primary action, accents */
  --azure:     #3b7bf0;   /* lighter accent: icons and lines only */
  --sky:       #cae8ff;   /* soft fills */
  --sky-soft:  #e7f1ff;   /* lighter sky */
  --paper:     #f4f8ff;   /* cool near-white page tint */
  --white:     #ffffff;
  --accent-on-navy: #8fb6ff;
  --on-navy-soft: #cfe0ff;  /* secondary text and links on navy */
  --placeholder:  #66749b;  /* form placeholders (passes 4.5:1 on white) */

  /* Text */
  --ink:       #0c1633;   /* body text */
  --muted:     #46557f;   /* secondary text: cool slate-blue, never gray */
  --muted-on-navy: #adc2ef;
  --line:      #dbe5f5;   /* hairlines on light */
  --line-navy: rgba(255,255,255,.16);

  /* Type */
  --font:      "Hanken Grotesk", "Segoe UI", Roboto, system-ui, sans-serif;
  --display:   "Archivo", "Segoe UI", Roboto, system-ui, sans-serif;
  /* Small and control text steps (the larger steps live in section 4) */
  --fs-footer:    .82rem;   /* footer column headings */
  --fs-label:     .9rem;    /* meta lines, notes, small labels */
  --fs-body-sm:   .95rem;   /* card, tile, panel, and caption text */
  --fs-control:   1rem;     /* buttons and nav links */
  --fs-statement: clamp(1.35rem, 2.6vw, 2rem);  /* pull statements and the verse */

  /* Spacing scale */
  --s1: .5rem;  --s2: 1rem;  --s3: 1.5rem;  --s4: 2.5rem;  --s5: 4rem;  --s6: 6rem;

  --radius:    12px;
  --radius-sm: 8px;
  /* Layered shadows: real offset + soft blur, light grounds only */
  --shadow-sm: 0 1px 2px rgba(10,27,77,.06), 0 4px 12px rgba(10,27,77,.08);
  --shadow:    0 2px 6px rgba(10,27,77,.08), 0 18px 40px rgba(10,27,77,.14);
  --maxw:      1200px;
  --header-h:  84px;
  --logo-h:    46px;    /* header logo height (desktop) */
}

/* ---------- 2. Base & themed browser surfaces ---------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* Anchored sections clear the sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

::selection { background: var(--sky); color: var(--navy); }
:root { accent-color: var(--electric); caret-color: var(--electric); }
* { scrollbar-color: var(--azure) var(--sky-soft); scrollbar-width: thin; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--sky-soft); }
::-webkit-scrollbar-thumb { background: var(--azure); border: 3px solid var(--sky-soft); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

a { color: var(--blue); text-decoration: none; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration: underline; }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, label:focus-visible, video:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--electric);
  outline-offset: 2px;
}

.skip-link {
  position: fixed; left: 0; top: 0; z-index: 1000;
  transform: translateY(-120%); transition: transform .15s ease;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 3. Layout ----------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s3); }
.section { padding: var(--s5) 0; }
@media (min-width: 860px) { .section { padding: var(--s6) 0; } }
.section--paper { background: var(--paper); }
.section--sky   { background: linear-gradient(180deg, var(--sky-soft), var(--white)); }
.section--navy  { background: var(--navy); color: #eaf1ff; }
.section--navy h2, .section--navy h3 { color: #fff; }

.center { text-align: center; }
.measure { max-width: 68ch; }
.center .measure { margin-left: auto; margin-right: auto; }
.lead { font-size: clamp(1.1rem, 1.3vw, 1.25rem); color: var(--muted); line-height: 1.55; }
.section--navy .lead { color: var(--muted-on-navy); }

.section-head { max-width: 72ch; margin-bottom: var(--s4); }
.section-head.center { margin-left: auto; margin-right: auto; }
/* The home video heading runs on one line wherever the screen allows */
#our-journey .section-head { max-width: none; }
#our-journey h2 { text-wrap: balance; }

.grid { display: grid; gap: var(--s3); }
@media (min-width: 620px) { .grid--2 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 720px) { .grid--3 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 980px) { .grid--3 { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 720px) { .grid--4 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1000px){ .grid--4 { grid-template-columns: repeat(4,1fr); } }

/* ---------- 4. Type ------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--display); color: var(--navy); margin: 0 0 var(--s2); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); letter-spacing: -0.02em; }
p { margin: 0 0 var(--s2); }


/* ---------- 5. Buttons ---------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: var(--radius-sm);
  font-family: var(--display); font-weight: 700; font-size: var(--fs-control); letter-spacing: -0.01em;
  border: 1.5px solid transparent; cursor: pointer; text-align: center;
  transition: transform .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn svg { width: 1.1em; height: 1.1em; }
.btn--primary { background: var(--electric); color: #fff; }
.btn--primary:hover { background: var(--blue); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-700); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.section--navy .btn--ghost, .hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.section--navy .btn--ghost:hover, .hero .btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ---------- 6. Header / nav ---------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__logo { height: var(--logo-h); width: auto; }

.nav__toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 46px; padding: 11px; border: 0; background: transparent; cursor: pointer; }
.nav__toggle span { display: block; height: 2.5px; width: 100%; background: var(--navy); border-radius: 999px; transition: transform .2s; }
.nav__check { position: absolute; opacity: 0; pointer-events: none; }

.nav__menu { list-style: none; margin: 0; padding: 0; }
.nav__menu a { display: flex; align-items: center; gap: .4rem; font-family: var(--display); font-weight: 600; font-size: var(--fs-control); color: var(--navy); }
.nav__menu a svg { width: 1.05em; height: 1.05em; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.nav__menu a:not(.btn):hover, .nav__menu a:not(.btn)[aria-current] { color: var(--electric); text-decoration: underline; text-decoration-color: var(--electric); text-decoration-thickness: 2px; text-underline-offset: 7px; }
.nav__menu .btn { color: #fff; }

@media (max-width: 979px) {
  .nav__menu { position: absolute; left: 0; right: 0; top: var(--header-h); background: #fff; border-bottom: 1px solid var(--line); padding: var(--s1) var(--s3) var(--s3); box-shadow: var(--shadow); display: none; }
  .nav__check:checked ~ .nav__menu { display: block; }
  .nav__menu li { border-top: 1px solid var(--line); }
  .nav__menu li:first-child { border-top: 0; }
  .nav__menu a { padding: .95rem 0; }
  .nav__menu .btn { margin-top: var(--s2); justify-content: center; }
}
@media (min-width: 980px) {
  .nav__toggle { display: none; }
  .nav__menu { display: flex; align-items: center; gap: var(--s4); }
  .nav__menu a { padding: .4rem 0; }
  .nav__menu .btn { padding: .6rem 1.25rem; }
}

/* ---------- 7. Hero ------------------------------------------------------- */
.hero { position: relative; color: #fff; background: var(--navy); }
.hero__media { position: relative; min-height: clamp(520px, 78vh, 760px); display: flex; }
.hero__media > img, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Subtle auto-crossfade carousel */
.hero__slides { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__dots { position: absolute; z-index: 3; bottom: var(--s2); right: var(--s3); display: flex; align-items: center; gap: .15rem; }
/* 24px tap target around an 11px visible dot */
.hero__dot { position: relative; width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.hero__dot::before { content: ""; position: absolute; inset: 6.5px; border-radius: 50%; border: 1px solid rgba(255,255,255,.55); transition: background .25s ease, border-color .25s ease; }
.hero__dot.is-active::before { background: #fff; border-color: #fff; }
.hero__dot:hover::before { background: rgba(255,255,255,.55); }
.hero__toggle { width: 26px; height: 26px; margin-left: .4rem; padding: 0; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: transparent; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .25s ease; }
.hero__toggle:hover { background: rgba(255,255,255,.18); }
.hero__toggle[hidden] { display: none; }
.hero__toggle svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; fill: none; }
.hero__toggle .hero__toggle-play { display: none; fill: currentColor; stroke: none; }
.hero__toggle.is-paused .hero__toggle-pause { display: none; }
.hero__toggle.is-paused .hero__toggle-play { display: block; }
@media (prefers-reduced-motion: reduce) { .hero__slide { transition: none; } }
.hero__wash { position: absolute; inset: 0;
  background:
    radial-gradient(70% 90% at 92% 12%, rgba(43,75,255,.38), transparent 60%),
    linear-gradient(103deg, rgba(10,27,77,.93) 0%, rgba(10,27,77,.74) 46%, rgba(10,27,77,.32) 100%),
    linear-gradient(0deg, rgba(10,27,77,.86) 0%, rgba(10,27,77,0) 42%); }
.hero__inner { position: relative; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: var(--s5) var(--s3); align-self: center; }
.hero__content { max-width: 46rem; }
.hero h1 { color: #fff; margin-bottom: var(--s3); font-size: clamp(2rem, 5.2vw, 3.7rem); }
/* Home motto: one sentence per line on every screen size */
.hero__motto .hero__line { display: block; white-space: nowrap; }
.hero__sub { color: #dbe6ff; font-size: clamp(1.1rem, 1.6vw, 1.35rem); max-width: 52ch; line-height: 1.5; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
/* Credential strip anchored to the hero's lower edge */
.hero__creds { position: relative; z-index: 2; border-top: 1px solid var(--line-navy); background: rgba(8,20,58,.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.hero__creds ul { list-style: none; margin: 0 auto; padding: var(--s2) var(--s3); max-width: var(--maxw); display: flex; flex-wrap: wrap; gap: .4rem var(--s3); font-family: var(--display); }
.hero__creds li { color: var(--on-navy-soft); font-weight: 600; font-size: var(--fs-label); display: flex; align-items: center; gap: var(--s3); }
.hero__creds li + li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--azure); }
.hero__creds b { color: #fff; font-weight: 800; }

/* Sub-page hero (compact, no photo) */
.pagehero { background: linear-gradient(130deg, var(--navy-700) 0%, var(--navy) 55%), var(--navy); color: #fff; padding: var(--s6) 0 var(--s5); }
.pagehero h1 { color: #fff; max-width: 22ch; }
.pagehero h1::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 999px; background: var(--electric); margin-top: var(--s3); }
.pagehero p { color: var(--on-navy-soft); font-size: clamp(1.05rem,1.4vw,1.25rem); max-width: 60ch; }

/* ---------- 8. Cards, tiles, panels, icons ------------------------------- */
.icon { display: inline-flex; width: 1.5rem; height: 1.5rem; stroke: currentColor; stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }

/* Business card (image-led) */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; display: flex; flex-direction: column; height: 100%; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--electric); }
.card__media { aspect-ratio: 16/10; background: var(--sky-soft); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: var(--s3); display: flex; flex-direction: column; flex: 1; }
.card h3 { margin-bottom: .2rem; }
/* Sector line sits under the title (sentence case, never an eyebrow) */
.card .card__meta { flex: none; font-family: var(--display); font-weight: 600; font-size: var(--fs-label); color: var(--blue); margin: 0 0 .6rem; }
.card p { color: var(--muted); font-size: var(--fs-body-sm); flex: 1; margin-bottom: var(--s2); }
.card__link { margin-top: auto; font-family: var(--display); font-weight: 700; color: var(--electric); display: inline-flex; align-items: center; gap: .4rem; }
.card:hover .card__link { gap: .7rem; }
.card__note { margin-top: auto; font-size: var(--fs-label); color: var(--muted); }

/* Tile (service / feature): hairline, plain icon, no icon chip */
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3); height: 100%; transition: border-color .18s ease, box-shadow .18s ease; }
.tile:hover { border-color: var(--sky); box-shadow: var(--shadow-sm); }
.tile__ico { display: inline-flex; color: var(--electric); margin-bottom: var(--s2); }
.tile__ico .icon { width: 30px; height: 30px; stroke-width: 1.6; }
.tile h3 { margin-bottom: .35rem; }
.tile p { color: var(--muted); margin: 0; font-size: var(--fs-body-sm); }
.section--navy .tile { background: rgba(255,255,255,.05); border-color: var(--line-navy); }
.section--navy .tile:hover { box-shadow: none; background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.3); }
.section--navy .tile p { color: var(--muted-on-navy); }
.section--navy .tile__ico { color: var(--accent-on-navy); }

/* Panel (branch / info): 1px border, optional photo, header row */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); height: 100%; display: flex; flex-direction: column; }
.panel__media { aspect-ratio: 16/10; overflow: hidden; background: var(--sky-soft); }
.panel__media img { width: 100%; height: 100%; object-fit: cover; }
.panel__head { padding: var(--s3) var(--s3) var(--s2); border-bottom: 1px solid var(--line); background: var(--sky-soft); }
.panel__head h3 { margin: 0; }
.panel__meta { font-family: var(--display); font-weight: 600; font-size: var(--fs-label); color: var(--blue); margin: .3rem 0 0; }
.panel__body { padding: var(--s3); }
.panel__body p { color: var(--muted); font-size: var(--fs-body-sm); }

/* Checklist */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: .45rem 0 .45rem 2rem; color: var(--ink); }
.ticks li svg { position: absolute; left: 0; top: .5rem; width: 1.3rem; height: 1.3rem; color: var(--electric); stroke-width: 2; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }

/* Split media/content */
.split { display: grid; gap: var(--s4); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: var(--s6); } .split--reverse .split__media { order: 2; } }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

/* CTA banner */
.cta { background: linear-gradient(130deg, var(--electric) 0%, var(--blue) 42%, var(--navy) 100%); color: #fff; border-radius: var(--radius); padding: var(--s5) var(--s4); text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: #eef4ff; max-width: 56ch; margin: 0 auto var(--s3); }
.cta .btn--primary { background: #fff; color: var(--navy); }
.cta .btn--primary:hover { background: var(--sky); color: var(--navy); }

/* Accent rule under section headings (brand pop, not an eyebrow) */
.section-head h2::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 999px; background: var(--electric); margin-top: var(--s2); }
.section--navy .section-head h2::after { background: var(--accent-on-navy); }
.section-head.center h2::after { margin-left: auto; margin-right: auto; }

/* ---------- 9. Editorial bands ------------------------------------------- */
/* Credential ledger */
.ledger { background: var(--navy); color: #fff; }
.ledger__list { margin: 0 auto; max-width: var(--maxw); padding: var(--s4) var(--s3); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s3); }
@media (min-width: 720px) { .ledger__list { grid-template-columns: repeat(4,1fr); gap: var(--s3); } .ledger__item + .ledger__item { border-left: 1px solid var(--line-navy); padding-left: var(--s3); } }
.ledger dt { font-family: var(--display); font-size: clamp(2rem,3.4vw,2.8rem); font-weight: 900; color: var(--accent-on-navy); letter-spacing: -0.02em; margin: 0; }
.ledger dd { margin: .25rem 0 0; color: var(--muted-on-navy); font-size: var(--fs-label); font-weight: 600; }

/* Values: editorial columns divided by hairlines */
.values { display: grid; gap: var(--s4); }
@media (min-width: 820px) { .values { grid-template-columns: repeat(3,1fr); gap: 0; } .values > * { padding: 0 var(--s4); } .values > * + * { border-left: 1px solid var(--line); } .values > *:first-child { padding-left: 0; } .values > *:last-child { padding-right: 0; } }
.values__ico { display: inline-flex; color: var(--electric); margin-bottom: var(--s2); }
.values__ico .icon { width: 30px; height: 30px; stroke-width: 1.6; }
.values h3 { margin-bottom: .5rem; }
.values p { color: var(--muted); margin: 0; }

/* Journey: centered heading over the company video */
.videoframe { position: relative; aspect-ratio: 1280 / 602; border-radius: var(--radius); overflow: hidden; background: var(--navy); color: #eaf1ff; box-shadow: var(--shadow); }
.videoframe a { color: var(--accent-on-navy); }
.videoframe > video, .videoframe > img { width: 100%; height: 100%; object-fit: cover; }
.videoframe__sound { position: absolute; top: var(--s2); right: var(--s2); z-index: 2; display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; background: rgba(10,27,77,.72); color: #fff; font-family: var(--display); font-weight: 700; font-size: var(--fs-label); cursor: pointer; transition: background .2s ease; }
.videoframe__sound:hover { background: var(--navy); }
.videoframe__sound svg { width: 1.1rem; height: 1.1rem; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.videoframe__sound[hidden] { display: none; }

/* Timeline: years carry the sequence (vertical on phones, row on desktop) */
.timeline { list-style: none; margin: 0; padding: 0 0 0 var(--s3); display: grid; gap: var(--s4);
  background: linear-gradient(var(--line-navy), var(--line-navy)) no-repeat 0 .7rem / 1px calc(100% - .7rem); }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(-1 * var(--s3) - 9px); top: .4rem; box-sizing: content-box; width: 11px; height: 11px; border-radius: 50%; background: var(--electric); border: 4px solid var(--navy); }
.timeline__year { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1; letter-spacing: -0.02em; color: var(--accent-on-navy); }
.timeline h3 { margin: .6rem 0 .5rem; }
.timeline p { color: var(--muted-on-navy); margin: 0; }
@media (min-width: 900px) {
  .timeline { padding: 0; background: none; grid-template-columns: repeat(4,1fr); gap: var(--s4); }
  .timeline li { border-top: 1px solid var(--line-navy); padding-top: var(--s4); }
  .timeline li::before { left: 0; top: -10px; }
}

/* ---------- 10. About page ----------------------------------------------- */
/* Core vs supporting businesses */
.structure { display: grid; gap: var(--s4); }
@media (min-width: 940px) { .structure { grid-template-columns: 7fr 5fr; gap: var(--s5); align-items: start; } }
.core-list { display: grid; gap: var(--s3); }
.core { display: grid; gap: var(--s3); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3); box-shadow: var(--shadow-sm); }
@media (min-width: 560px) { .core { grid-template-columns: 132px 1fr; align-items: center; } }
.core__logo { width: 132px; height: 96px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: .6rem; }
.core__logo img { max-height: 100%; width: auto; object-fit: contain; }
.core__logo--fill { padding: 0; overflow: hidden; }
.core__logo--fill img { width: 100%; height: 100%; object-fit: cover; }
.core h4 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin-bottom: .3rem; }
.core p { color: var(--muted); margin: 0 0 .6rem; font-size: var(--fs-body-sm); }
.core__meta { font-family: var(--display); font-weight: 700; font-size: var(--fs-label); color: var(--blue); }
.support-list { list-style: none; margin: 0; padding: 0; }
.support-list li { border-top: 1px solid var(--line); }
.support-list li:last-child { border-bottom: 1px solid var(--line); }
.support-list a { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); padding: .95rem 0; color: var(--navy); }
.support-list a:hover { text-decoration: none; color: var(--electric); }
.support-list strong { font-family: var(--display); font-weight: 700; }
.support-list span { color: var(--muted); font-size: var(--fs-label); text-align: right; }
.subhead { font-family: var(--display); font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 800; color: var(--navy); margin: 0 0 var(--s2); }

/* Leadership: CEO feature + organization roster */
.leader { display: grid; gap: var(--s4); padding-bottom: var(--s5); border-bottom: 1px solid var(--line); margin-bottom: var(--s5); }
@media (min-width: 900px) { .leader { grid-template-columns: 1fr 1fr; gap: var(--s5); align-items: start; } }
.leader__name { font-size: clamp(1.8rem, 4vw, 2.9rem); margin-bottom: .4rem; }
.leader__role { font-family: var(--display); font-weight: 700; color: var(--blue); margin: 0 0 var(--s3); }
.leader__intro { container-type: inline-size; }
/* Companies led: one inline row (A, dot, B, dot, C) when it fits, otherwise a tidy bulleted list */
.leader__units { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; font-size: var(--fs-body-sm); font-weight: 600; color: var(--ink); }
.leader__units li { display: flex; align-items: center; gap: .6rem; }
.leader__units li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--azure); }
@container (min-width: 500px) {
  .leader__units { display: flex; gap: .7rem; }
  .leader__units li { white-space: nowrap; }
  .leader__units li:first-child::before { display: none; }
}
.leader__bio p { color: var(--ink); }
.leader__quote { margin: 0 0 var(--s4); padding: 0; }
.leader__quote::before { content: "\201C"; display: block; font-family: var(--display); font-weight: 900; font-size: clamp(2.3rem, 6vw, 4.2rem); line-height: .7; color: var(--electric); margin-bottom: .2rem; }
.leader__quote p { font-family: var(--display); font-weight: 800; font-size: var(--fs-statement); line-height: 1.4; letter-spacing: -0.02em; color: var(--navy); margin: 0; }
.roster { display: grid; gap: var(--s4) var(--s5); }
@media (min-width: 720px) { .roster { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1040px) { .roster { grid-template-columns: repeat(3,1fr); } }
.roster h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin-bottom: .3rem; }
.roster ul { list-style: none; margin: 0; padding: 0; }
.roster li { padding: .85rem 0; border-top: 1px solid var(--line); }
.roster__name { display: block; font-family: var(--display); font-weight: 700; color: var(--navy); }
.roster__title { display: block; color: var(--muted); font-size: var(--fs-body-sm); line-height: 1.45; }

/* ---------- 11. Contact page --------------------------------------------- */
.contact-layout { display: grid; gap: var(--s3); }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 1fr 1fr; gap: var(--s4); align-items: stretch; } }
.panel--contact { padding: var(--s4); }
.contact-side { display: flex; flex-direction: column; gap: var(--s3); }
.contact-side .panel { height: auto; }
.contact-side h3 { margin-top: var(--s3); }

.form { display: flex; flex-direction: column; gap: var(--s2); flex: 1; }
.form label { font-family: var(--display); font-weight: 600; color: var(--navy); display: block; margin-bottom: .4rem; }
.form input, .form textarea, .form select { width: 100%; padding: .85rem 1rem; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm); transition: border-color .15s ease; }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--electric); }
.form textarea { min-height: 150px; resize: vertical; }
/* The message field grows so the form card never leaves empty space */
.form__grow { flex: 1; display: flex; flex-direction: column; }
.form__grow textarea { flex: 1; }
.form ::placeholder { color: var(--placeholder); }
.form .req { color: var(--electric); }
.form__status { font-weight: 600; padding: .85rem 1rem; border-radius: var(--radius-sm); display: none; }
.form__status--ok  { display: block; background: var(--sky-soft); color: var(--navy); border: 1px solid var(--sky); }
.form__status--err { display: block; background: #eef3ff; color: var(--blue); border: 1px solid var(--line); }
.form__note { font-size: var(--fs-label); color: var(--muted); margin: 0; }
.form .btn { align-self: flex-start; }
.hp { position: absolute; left: -9999px; }

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: .9rem; padding: .8rem 0; border-top: 1px solid var(--line); align-items: flex-start; }
.contact-list li:first-child { border-top: 0; }
.contact-list svg { color: var(--blue); flex: 0 0 auto; width: 1.4rem; height: 1.4rem; margin-top: .1rem; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.contact-list a { word-break: break-word; }
.contact-list--navy li { border-color: var(--line-navy); color: #eaf1ff; }
.contact-list--navy svg { color: var(--accent-on-navy); }
.contact-list--navy a { color: var(--on-navy-soft); }
.maplink { display: flex; flex-direction: column; flex: 1; min-height: 240px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; }
.maplink:hover { text-decoration: none; }
.maplink img { flex: 1 1 auto; width: 100%; height: 0; min-height: 180px; object-fit: cover; }
.maplink span { display: flex; align-items: center; gap: .5rem; padding: .9rem 1.2rem; font-family: var(--display); font-weight: 700; color: var(--electric); border-top: 1px solid var(--line); }

/* ---------- 12. Footer ---------------------------------------------------- */
.site-footer { background: var(--navy); color: var(--muted-on-navy); padding: var(--s5) 0 var(--s4); }
.site-footer a { color: var(--on-navy-soft); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: var(--s4); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.3fr .8fr 1.1fr 1.1fr; } }
.footer-logo { height: 52px; width: auto; }
.site-footer h3 { color: #fff; font-family: var(--display); font-size: var(--fs-footer); letter-spacing: .14em; text-transform: uppercase; margin-bottom: var(--s2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: .28rem 0; }
.footer-note { max-width: 34ch; margin-top: var(--s3); color: var(--muted-on-navy); }
.footer-bottom { border-top: 1px solid var(--line-navy); margin-top: var(--s4); padding-top: var(--s3); font-size: var(--fs-label); display: flex; flex-wrap: wrap; gap: .5rem var(--s4); justify-content: space-between; }

/* ---------- 13. Motion + utilities --------------------------------------- */
.stack > * + * { margin-top: var(--s2); }
.mt4 { margin-top: var(--s4); }
.mt5 { margin-top: var(--s5); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

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

/* ---------- 13b. Detail pages, David's Grill, and shared additions ------- */
/* Breadcrumb in detail-page heroes: says which business you're viewing */
.crumbs { margin-bottom: var(--s3); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-family: var(--display); font-weight: 600; font-size: var(--fs-body-sm); color: #fff; }
.crumbs li + li::before { content: "/"; margin-right: .45rem; color: var(--accent-on-navy); }
.crumbs a { color: var(--on-navy-soft); text-decoration: underline; text-decoration-color: var(--accent-on-navy); text-underline-offset: 4px; }
.crumbs a:hover { color: #fff; }

/* Button pairs: "All businesses" sits to the left of the main action */
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-top: var(--s3); }
.btn-row--center { justify-content: center; }
.cta .btn-row { margin-top: 0; }
.cta .btn--ghost, .cta-photo .btn--ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.cta .btn--ghost:hover, .cta-photo .btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* Photo-backed closing card (kept clear of the footer by a light section) */
.cta-photo { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--navy); color: #eaf1ff; box-shadow: var(--shadow); }
.cta-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-photo__wash { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(10,27,77,.95) 0%, rgba(10,27,77,.86) 48%, rgba(18,42,107,.62) 100%); }
.cta-photo__inner { position: relative; display: grid; gap: var(--s4); padding: var(--s5) var(--s4); }
@media (min-width: 900px) { .cta-photo__inner { grid-template-columns: 1.1fr .9fr; align-items: center; gap: var(--s5); } }
.cta-photo h2, .cta-photo h3 { color: #fff; }
.cta-photo .lead { color: var(--muted-on-navy); }
.cta-photo .tile { background: rgba(10,27,77,.55); border-color: var(--line-navy); }
.cta-photo .tile:hover { box-shadow: none; border-color: rgba(255,255,255,.3); }

/* CEO portrait */
.leader__photo { width: 100%; max-width: 300px; aspect-ratio: 496 / 551; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: var(--s3); }

/* Business logo above an intro heading (an image mark, not a text label) */
.brand-mark { width: 116px; height: auto; margin-bottom: var(--s2); border-radius: var(--radius-sm); }

/* Full menu pages */
.menu-gallery { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--s3); }
@media (min-width: 760px) { .menu-gallery { grid-template-columns: repeat(4,1fr); } }
.menu-page { display: block; color: var(--navy); font-family: var(--display); font-weight: 700; font-size: var(--fs-body-sm); }
.menu-page:hover { text-decoration: none; color: var(--electric); }
.menu-page img { width: 100%; height: auto; aspect-ratio: 1100 / 1556; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); margin-bottom: .6rem; transition: transform .18s ease, box-shadow .18s ease; }
.menu-page:hover img { transform: translateY(-3px); box-shadow: var(--shadow); }

/* Verse band over the David's Grill napkin photo */
.verse { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 300px; text-align: center; background: var(--paper); }
.verse > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.verse__wash { position: absolute; inset: 0; background: rgba(244,248,255,.84); }
.verse__quote { position: relative; margin: 0; padding: var(--s5) var(--s3); max-width: 42rem; }
.verse__quote p { font-family: var(--display); font-weight: 800; font-size: var(--fs-statement); line-height: 1.4; letter-spacing: -0.02em; color: var(--navy); margin: 0 0 .7rem; }
.verse__quote cite { font-style: normal; font-family: var(--display); font-weight: 700; color: var(--blue); }

/* Organizational chart image (tap to open full size) + collapsible text list */
.orgchart { margin: 0; }
.orgchart a { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; }
.orgchart img { width: 100%; height: auto; }
.orgchart figcaption { margin-top: .6rem; text-align: center; font-size: var(--fs-label); color: var(--muted); }
.roster-toggle { margin-top: var(--s3); border-top: 1px solid var(--line); }
.roster-toggle summary { cursor: pointer; padding: var(--s2) 0; font-family: var(--display); font-weight: 700; color: var(--blue); }
.roster-toggle summary:hover { color: var(--electric); }
.roster-toggle[open] summary { margin-bottom: var(--s3); }

/* In-page image viewer (menu pages, org chart). Without JS the link opens the image. */
.lightbox { margin: 0; padding: 0; border: 0; background: transparent; }
.lightbox[open] { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; display: flex; flex-direction: column; color: var(--on-navy-soft); background: linear-gradient(#060e28, #060e28); }
.lightbox::backdrop { background: rgba(6,14,40,.6); }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: .75rem 1rem; }
.lightbox__count { font-family: var(--display); font-weight: 700; font-size: var(--fs-label); color: var(--on-navy-soft); }
.lightbox__stage { flex: 1; min-height: 0; overflow: auto; display: flex; padding: 0 1rem; -webkit-overflow-scrolling: touch; }
.lightbox__img { margin: auto; max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: var(--radius-sm); background: #fff; cursor: zoom-in; }
.lightbox__img.is-zoomed { max-width: none; max-height: none; cursor: zoom-out; }
.lightbox__caption { margin: 0; padding: .75rem 1rem 1rem; text-align: center; font-family: var(--display); font-weight: 600; color: var(--on-navy-soft); }
.lightbox__btn { width: 46px; height: 46px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; background: rgba(10,27,77,.75); color: #fff; cursor: pointer; transition: background .2s ease; }
.lightbox__btn:hover { background: var(--navy-700); }
.lightbox__btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__btn[hidden] { display: none; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }

/* ---------- 14. Mobile refinements (phones) ------------------------------ */
@media (max-width: 640px) {
  :root { --logo-h: 38px; --header-h: 72px; }

  /* Hero: hide the stat strip (the ledger carries it), more photo, full-width actions */
  .hero__creds { display: none; }
  .hero__media { min-height: 82vh; }
  .hero__inner { padding: var(--s4) var(--s3) var(--s5); }
  /* 12.3 = measured width of "Creating Opportunities." per 1px of font size, plus margin */
  .hero h1.hero__motto { font-size: calc((100vw - 48px) / 12.3); }
  .hero__sub { font-size: 1.08rem; }
  .hero__cta { flex-direction: column; align-items: stretch; gap: .7rem; width: 100%; }
  .hero__cta .btn { width: 100%; justify-content: center; padding: 1rem 1.2rem; }
  .hero__dots { bottom: var(--s2); right: 50%; transform: translateX(50%); }

  .pagehero { padding: var(--s5) 0 var(--s4); }
  .section { padding: var(--s4) 0; }
  .section-head { margin-bottom: var(--s3); }

  .ledger__list { padding: var(--s4) var(--s3); gap: var(--s3) var(--s2); }

  .values { gap: var(--s2); }
  .values > * { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3); }

  .cta { padding: var(--s4) var(--s3); }
  .cta .btn, .center > .btn { width: 100%; justify-content: center; }
  .card__media { aspect-ratio: 16 / 11; }

  .panel--contact { padding: var(--s3); }
  .form .btn { align-self: stretch; justify-content: center; }
  .videoframe__sound { top: var(--s1); right: var(--s1); padding: .4rem .7rem; font-size: var(--fs-footer); }
  .leader { padding-bottom: var(--s4); margin-bottom: var(--s4); }
  .support-list a { flex-direction: column; gap: .15rem; }
  .support-list span { text-align: left; }
  /* Paired buttons stack, main action on top */
  .btn-row { flex-direction: column-reverse; align-items: stretch; }
  .btn-row .btn { justify-content: center; width: 100%; }
  .cta-photo__inner { padding: var(--s4) var(--s3); }
  .leader__photo { max-width: 220px; }
  .verse { min-height: 240px; }
  .lightbox__nav { top: auto; bottom: 1rem; transform: none; }
  .lightbox__caption { padding-bottom: 4.75rem; }
}
