/* ============================================================
   SAUK Utilities Ltd — Shared stylesheet
   Aesthetic: light, corporate, editorial. Numbered sections,
   confident typography, SAUK-yellow accent.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* -------- Design tokens -------- */
:root {
  --bg:           #F6F4EF;        /* warm off-white */
  --bg-alt:       #ECE8DF;        /* secondary band */
  --surface:      #FFFFFF;
  --ink:          #0B0B0B;        /* near-black */
  --ink-soft:     #2A2A2A;
  --muted:        #6B6B66;
  --line:         #D9D4C7;
  --line-soft:    #E7E3D8;
  --yellow:       #F4B41A;        /* SAUK yellow */
  --yellow-dark:  #D89A0A;
  --max:          1280px;
  --gutter:       clamp(20px, 4vw, 56px);

  --display: "Fraunces", "Times New Roman", serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* -------- Reset / base -------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

::selection { background: var(--yellow); color: var(--ink); }

/* -------- Layout helpers -------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--ink);
}
.eyebrow.no-rule::before { display: none; }

/* Section numbering chip (e.g. "01 — Heading") */
.section-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 18px;
}

/* -------- Typography -------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
h1 { font-size: clamp(48px, 7vw, 104px); }
h2 { font-size: clamp(36px, 5vw, 72px); }
h3 { font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -0.01em; line-height: 1.15; }
h4 { font-size: 18px; letter-spacing: 0; line-height: 1.3; font-weight: 600; font-family: var(--body); }

p { margin: 0 0 1em; }
.lede { font-size: clamp(18px, 1.6vw, 22px); color: var(--ink-soft); line-height: 1.5; max-width: 60ch; }

/* italic display word emphasis like the reference */
.disp-em { font-style: italic; font-weight: 400; }

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: var(--yellow); color: var(--ink); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-yellow {
  background: var(--yellow);
  color: var(--ink);
}
.btn-yellow:hover { background: var(--ink); color: var(--yellow); transform: translateY(-1px); }
.btn .arrow {
  display: inline-block;
  transition: transform .25s var(--ease);
}
.btn:hover .arrow { transform: translateX(4px); }

/* -------- Top utility strip -------- */
.utility {
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.utility .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 16px;
}
.utility .links { display: flex; gap: 22px; align-items: center; }
.utility .links a { opacity: 0.75; transition: opacity .2s, color .2s; }
.utility .links a:hover { opacity: 1; color: var(--yellow); }
.utility .pulse {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  margin-right: 8px;
  box-shadow: 0 0 0 0 rgba(244,180,26,0.6);
  animation: pulse 2s infinite;
  vertical-align: middle;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(244,180,26,0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(244,180,26,0); }
  100% { box-shadow: 0 0 0 0 rgba(244,180,26,0); }
}

/* -------- Header / navigation -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,244,239,0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .35s var(--ease);
}
.site-header.scrolled {
  box-shadow: 0 10px 30px -18px rgba(11,11,11,0.22);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  transition: padding .35s var(--ease);
}
.site-header.scrolled .wrap {
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  position: relative;
}
/* Periodic glint across the header logo — masked to the logo's own shape,
   so the light only touches the mark itself. Matches the footer sparkle. */
.brand::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg,
    transparent 42%,
    rgba(255, 255, 255, 0.75) 50%,
    transparent 58%);
  background-size: 250% 100%;
  background-repeat: no-repeat;
  -webkit-mask-image: url('assets/sauk-logo-black-yellow.png');
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: left center;
  mask-image: url('assets/sauk-logo-black-yellow.png');
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: left center;
  animation: brand-sheen 9s linear infinite;
}
@keyframes brand-sheen {
  0%   { background-position: 180% 0; }
  16%  { background-position: -80% 0; }
  100% { background-position: -80% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .brand::after { animation: none; display: none; }
}

/* Footer logo gets the same glint, masked to the light logo artwork */
.site-footer .flogo {
  position: relative;
  display: inline-block;
}
.site-footer .flogo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg,
    transparent 42%,
    rgba(255, 255, 255, 0.6) 50%,
    transparent 58%);
  background-size: 250% 100%;
  background-repeat: no-repeat;
  -webkit-mask-image: url('assets/sauk-logo-yellow-white.png');
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: left center;
  mask-image: url('assets/sauk-logo-yellow-white.png');
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: left center;
  animation: brand-sheen 9s linear infinite;
  animation-delay: 4.5s; /* offset from the header so they don't flash together */
}
@media (prefers-reduced-motion: reduce) {
  .site-footer .flogo::after { animation: none; display: none; }
}
.brand img {
  height: 68px;
  width: auto;
  transition: height .35s var(--ease);
}
.site-header.scrolled .brand img { height: 52px; }
@media (max-width: 700px) {
  .brand img { height: 52px; }
  .site-header.scrolled .brand img { height: 44px; }
}
.brand .wordmark {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a {
  position: relative;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: color .2s;
}
.nav a.btn-primary { color: var(--bg); }
.nav a.btn-primary:hover { color: var(--ink); }
.nav a.btn-yellow { color: var(--ink); }
.nav a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 6px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover::after,
.nav a.active::after { transform: scaleX(1); }
.nav a.btn::after { display: none; }
.nav a.active { color: var(--ink); }
/* the quote pill goes yellow when it's the current page — black-on-black otherwise */
.nav a.btn-primary.active { background: var(--yellow); color: var(--ink); }
.nav .btn { margin-left: 12px; }

.menu-toggle { display: none; }

/* -------- Hero -------- */
.hero {
  position: relative;
  padding: clamp(72px, 11vw, 140px) 0 clamp(60px, 9vw, 120px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(244,180,26,0.18), transparent 60%),
    linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: end;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.4fr 1fr; gap: 60px; }
}
.hero h1 .accent {
  color: var(--yellow-dark);
  font-style: italic;
}
.hero .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero .meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero .meta span::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--yellow);
  border-radius: 1px;
  display: inline-block;
}
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

/* hero stats panel on the right */
.hero-stats {
  border-top: 1px solid var(--ink);
}
.hero-stats .stat {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.hero-stats .stat .num {
  font-family: var(--display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}
.hero-stats .stat .num sup { font-size: 0.5em; color: var(--yellow-dark); vertical-align: top; }
.hero-stats .stat .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 22ch;
}

/* -------- Community / Charity feature -------- */
.charity-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
@media (min-width: 900px) {
  .charity-feature { grid-template-columns: 1fr 1fr; gap: 60px; }
}
.charity-img {
  background: var(--bg);
  border: 1px solid var(--line);
  overflow: hidden;
  border-radius: 6px;
}
.charity-img img {
  width: 100%;
  height: auto;
  display: block;
}
.charity-body h3 {
  font-family: var(--display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  max-width: 26ch;
  margin-bottom: 18px;
}
.charity-body p { color: var(--ink-soft); }
.charity-body p strong { color: var(--ink); }

.charity-stat {
  margin-top: clamp(40px, 6vw, 72px);
  padding: clamp(28px, 3.4vw, 40px) clamp(28px, 4vw, 44px);
  background: var(--ink);
  color: var(--bg);
  border-radius: 6px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
@media (min-width: 700px) {
  .charity-stat { grid-template-columns: auto 1fr; gap: 48px; }
}
.charity-stat::before {
  content: "";
  position: absolute;
  top: -80px; right: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(244,180,26,0.16), transparent 60%);
  pointer-events: none;
}
.charity-stat-num {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--yellow);
}
.charity-stat-label {
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  color: rgba(246,244,239,0.9);
  max-width: 44ch;
}

/* -------- Track record stat band -------- */
.track-band {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(64px, 8vw, 110px) 0;
  position: relative;
  overflow: hidden;
}
.track-band::before {
  content: "";
  position: absolute;
  bottom: -120px; left: -120px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(244,180,26,0.12), transparent 60%);
  pointer-events: none;
}
.track-band .head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
@media (min-width: 900px) {
  .track-band .head { grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: end; }
}
.track-band h2 { color: var(--bg); max-width: 16ch; }
.track-band .lede { color: rgba(246,244,239,0.78); }
.track-band .section-num { color: rgba(246,244,239,0.55); }
.track-band .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid rgba(246,244,239,0.18);
}
@media (min-width: 700px)  { .track-band .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .track-band .grid { grid-template-columns: repeat(4, 1fr); } }
.track-band .item {
  padding: 36px 30px 36px 0;
  border-bottom: 1px solid rgba(246,244,239,0.18);
  position: relative;
}
@media (min-width: 700px) {
  .track-band .item { border-right: 1px solid rgba(246,244,239,0.18); padding: 36px 30px; }
  .track-band .item:nth-child(2n) { border-right: 0; padding-right: 0; }
}
@media (min-width: 1024px) {
  .track-band .item:nth-child(2n) { border-right: 1px solid rgba(246,244,239,0.18); padding-right: 30px; }
  .track-band .item:nth-child(4n) { border-right: 0; padding-right: 0; }
  .track-band .item { padding: 40px 36px; }
  .track-band .item:first-child { padding-left: 0; }
}
.track-band .big {
  font-family: var(--display);
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--yellow);
}
.track-band .big sup { font-size: 0.4em; vertical-align: top; color: var(--bg); opacity: 0.9; margin-left: 4px; }
.track-band .item h4 {
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--bg);
  margin-top: 22px;
  margin-bottom: 6px;
}
.track-band .item p {
  color: rgba(246,244,239,0.65);
  font-size: 13px;
  margin: 0;
  max-width: 28ch;
  line-height: 1.5;
}

/* -------- Sections -------- */
section { padding: clamp(72px, 10vw, 130px) 0; }
section.alt { background: var(--bg-alt); }
section.dark {
  background: var(--ink);
  color: var(--bg);
}
section.dark h1,
section.dark h2,
section.dark h3,
section.dark h4 { color: var(--bg); }
section.dark .eyebrow { color: var(--bg); }
section.dark .eyebrow::before { background: var(--bg); }
section.dark .section-num { color: rgba(246,244,239,0.5); }
section.dark .lede { color: rgba(246,244,239,0.78); }

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: end; }
}
.section-head h2 { max-width: 16ch; }

/* -------- Capability cards (numbered list) -------- */
.cap-list { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
.cap {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  transition: background .35s var(--ease);
  position: relative;
}
@media (min-width: 800px) {
  .cap { grid-template-columns: 100px 1.1fr 2fr 120px; gap: 40px; align-items: start; }
}
.cap .num {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding-top: 6px;
}
.cap h3 { transition: color .25s var(--ease); }
.cap p { color: var(--ink-soft); margin: 8px 0 0; max-width: 60ch; }
.cap .arrow-link {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  align-self: start;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  transition: color .25s var(--ease), gap .25s var(--ease);
}
.cap:hover {
  background: linear-gradient(to right, transparent, rgba(244,180,26,0.08), transparent);
}
.cap:hover h3 { color: var(--yellow-dark); }
.cap:hover .arrow-link { color: var(--ink); gap: 14px; }
.cap .status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
}
.cap .status::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--yellow);
  border-radius: 50%;
}
.cap .status.live::before { background: #1FA86A; }

/* -------- Service/feature grid (Home) -------- */
/* Dividers are drawn as real borders on each card, not a 1px grid gap — a
   1px gap disappears at some browser zoom levels, which left only the middle
   lines visible and made an 8-card grid look like 4 quadrants.
   The container draws the top and left edges; every card draws its own right
   and bottom edge. That meets cleanly for any column count and row count. */
.feat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (min-width: 700px)  { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .feat-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 700px) and (max-width: 1023px) { .feat-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
.feat {
  background: var(--bg);
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 200px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feat .ico {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--ink);
  border-radius: 6px;
  margin-bottom: 18px;
  color: var(--ink);
}
.feat h4 { font-family: var(--display); font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.feat p { color: var(--muted); font-size: 15px; margin: 0; }

/* -------- Portfolio -------- */
.portfolio {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 720px)  { .portfolio { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .portfolio { grid-template-columns: repeat(3, 1fr); } }
.proj {
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.proj:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(11,11,11,0.18); }
.proj .thumb {
  aspect-ratio: 4 / 3;
  position: relative;
  background: var(--bg-alt);
  overflow: hidden;
}
.proj .thumb svg { width: 100%; height: 100%; display: block; }
.proj .tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--ink); color: var(--bg);
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
}
.proj .body { padding: 22px 24px 26px; }
.proj h4 { font-family: var(--display); font-size: 22px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 6px; }
.proj .loc { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.proj p { color: var(--ink-soft); font-size: 15px; }

/* -------- Testimonials -------- */
.quotes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(2, 1fr); } }
.quote {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 36px;
  position: relative;
}
.quote::before {
  content: "“";
  position: absolute;
  top: 6px; left: 22px;
  font-family: var(--display);
  font-size: 100px;
  line-height: 1;
  color: var(--yellow);
  opacity: 0.7;
}
.quote blockquote {
  margin: 0 0 24px;
  font-family: var(--display);
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.4;
  font-weight: 400;
  color: var(--ink);
  position: relative;
}
.quote .by {
  display: flex; gap: 14px; align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.quote .by .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em;
}
.quote .by .who { font-family: var(--body); font-size: 14px; font-weight: 600; color: var(--ink); }
.quote .by .role { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

/* -------- Team -------- */
.team {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--bg);
  /* real borders, not a 1px gap — gaps vanish at some zoom levels */
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (min-width: 700px)  { .team { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .team { grid-template-columns: repeat(3, 1fr); } }
.member {
  background: var(--bg);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 32px 36px;
  display: flex; flex-direction: column;
  position: relative;
  min-height: 560px;
}
.member .portrait {
  aspect-ratio: 4 / 5;
  background: var(--bg-alt);
  border-radius: 6px;
  margin-bottom: 26px;
  display: grid; place-items: center;
  color: var(--ink);
  font-family: var(--display);
  font-size: 120px;
  font-weight: 500;
  letter-spacing: -0.03em;
  position: relative;
  overflow: hidden;
}
.member .portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}
.member .portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(244,180,26,0.18), transparent 60%);
  pointer-events: none;
}
.member .portrait:has(img)::after { display: none; }
.member h4 { font-family: var(--display); font-size: 30px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 6px; line-height: 1.15; }
.member .role { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.member p { color: var(--ink-soft); font-size: 15px; margin-top: 18px; }

/* -------- CTA banner -------- */
.cta-banner {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(60px, 8vw, 110px) 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  top: -150px; right: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(244,180,26,0.18), transparent 60%);
}
.cta-banner h2 { color: var(--bg); max-width: 18ch; }
.cta-banner .row {
  display: grid; grid-template-columns: 1fr; gap: 30px;
  align-items: end;
}
@media (min-width: 900px) {
  .cta-banner .row { grid-template-columns: 1.4fr 1fr; }
}
.cta-banner .right { display: flex; flex-direction: column; gap: 12px; }
.cta-banner .right a { display: inline-flex; }
.cta-banner .lede { color: rgba(246,244,239,0.8); }

/* -------- Footer -------- */
.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding: 64px 0 32px;
}
.site-footer .wrap > .top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(246,244,239,0.16);
}
@media (min-width: 800px) {
  .site-footer .wrap > .top { grid-template-columns: 1.4fr repeat(3, 1fr); }
}
.site-footer h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
  margin: 0 0 16px;
  font-weight: 500;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer ul a { color: rgba(246,244,239,0.82); font-size: 14px; transition: color .2s; }
.site-footer ul a:hover { color: var(--yellow); }
.site-footer .brand-block img { height: 72px; width: auto; margin-bottom: 18px; }
@media (max-width: 700px) {
  .site-footer .brand-block img { height: 56px; }
}
/* 3D logo with the occasional glint — video blends into the dark footer */
.site-footer .brand-block .logo-spin {
  height: 112px;
  width: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  margin: -16px 0 4px -14px;
  -webkit-mask-image: radial-gradient(ellipse 62% 55% at 50% 50%, #000 50%, transparent 82%);
          mask-image: radial-gradient(ellipse 62% 55% at 50% 50%, #000 50%, transparent 82%);
}
@media (max-width: 700px) {
  .site-footer .brand-block .logo-spin { height: 88px; margin: -10px 0 4px -10px; }
}
.site-footer .brand-block p { color: rgba(246,244,239,0.7); font-size: 14px; max-width: 36ch; }
.site-footer .bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(246,244,239,0.5);
  flex-wrap: wrap;
  gap: 14px;
}

/* -------- Page header (interior pages) -------- */
.page-head {
  padding: clamp(80px, 10vw, 140px) 0 clamp(40px, 6vw, 80px);
  position: relative;
}
.page-head .crumbs {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.page-head .crumbs a:hover { color: var(--ink); }
.page-head .crumbs span { color: var(--ink); }
.page-head h1 { max-width: 16ch; }
.page-head .lede { margin-top: 24px; }

/* -------- Contact -------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 80px; } }
.contact-info .info-row {
  display: grid; grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info .info-row .lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
}
.contact-info .info-row .val { font-size: 15px; color: var(--ink); }
.contact-info .info-row .val a { transition: color .2s; }
.contact-info .info-row .val a:hover { color: var(--yellow-dark); }

.form {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 36px;
}
.form-row { margin-bottom: 18px; }
.form label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.form input, .form textarea, .form select {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--body);
  font-size: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: 0;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(244,180,26,0.25);
}
.form textarea { min-height: 130px; resize: vertical; }
.form-row.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}

/* -------- Mobile nav -------- */
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); flex-direction: column; align-items: stretch; padding: 14px var(--gutter) 28px; border-bottom: 1px solid var(--line); gap: 4px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
  .nav a::after { display: none; }
  .nav .btn { margin: 14px 0 0; align-self: start; }
  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
  }
  .menu-toggle span {
    display: block;
    width: 22px; height: 1.5px;
    background: var(--ink);
    transition: transform .25s var(--ease), opacity .2s;
  }
  .menu-toggle.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
}

/* -------- Reveal on scroll -------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(4px);
  transition: opacity .8s var(--ease), transform .8s var(--ease), filter .7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

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

/* ============================================================
   Discipline pages (Gas / Reinstatement / Vac-Ex)
   ============================================================ */

/* -------- Dropdown nav -------- */
.nav .has-sub { position: relative; }
.nav .has-sub > .sub-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  position: relative;
}
.nav .has-sub > .sub-toggle::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 6px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav .has-sub:hover > .sub-toggle::after,
.nav .has-sub.active > .sub-toggle::after,
.nav .has-sub.open > .sub-toggle::after { transform: scaleX(1); }
.nav .has-sub .caret {
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .25s var(--ease);
}
.nav .has-sub:hover .caret,
.nav .has-sub.open .caret { transform: rotate(225deg) translateY(-2px); }

.nav .submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s, transform .25s var(--ease);
  box-shadow: 0 20px 40px -24px rgba(11,11,11,0.18);
  z-index: 60;
}
.nav .has-sub:hover .submenu,
.nav .has-sub:focus-within .submenu,
.nav .has-sub.open .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav .submenu a {
  padding: 12px 14px;
  font-size: 14px;
  border-radius: 4px;
  border-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav .submenu a::after { display: none; }
.nav .submenu a:hover { background: var(--bg-alt); color: var(--yellow-dark); }
.nav .submenu a .sub-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Mobile: dropdown expands inline */
@media (max-width: 860px) {
  .nav .has-sub { width: 100%; }
  .nav .has-sub > .sub-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav .has-sub > .sub-toggle::after { display: none; }
  .nav .submenu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0 0 8px 16px;
    display: none;
  }
  .nav .has-sub.open .submenu { display: flex; transform: none; }
  .nav .submenu a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
}

/* -------- Discipline page header -------- */
.disc-head {
  padding: clamp(60px, 8vw, 100px) 0 clamp(40px, 6vw, 64px);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.disc-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 400px at 90% 0%, rgba(244,180,26,0.12), transparent 60%);
  pointer-events: none;
}
.disc-head .wrap { position: relative; }
.disc-head .crumbs {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.disc-head .crumbs a { color: var(--muted); transition: color .2s; }
.disc-head .crumbs a:hover { color: var(--ink); }
.disc-head h1 { font-size: clamp(40px, 6vw, 84px); max-width: 18ch; margin-top: 18px; }
.disc-head .lede { margin-top: 24px; max-width: 64ch; }
.disc-head .head-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.disc-head .head-meta > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.disc-head .head-meta .lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.disc-head .head-meta .val {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* -------- Specs strip (standards, accreditations, scope) -------- */
.specs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--bg);
  border: 1px solid var(--line);
}
.specs .spec {
  background: var(--bg);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 140px;
  /* separators drawn as real borders — a 1px grid gap disappears at some
     browser zoom levels, leaving the middle cards looking unseparated */
  border-top: 1px solid var(--line);
}
.specs .spec:first-child { border-top: 0; }

@media (min-width: 700px) {
  .specs { grid-template-columns: repeat(2, 1fr); }
  .specs .spec { border-top: 0; }
  .specs .spec:nth-child(odd)   { border-right: 1px solid var(--line); }
  .specs .spec:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (min-width: 1024px) {
  .specs { grid-template-columns: repeat(4, 1fr); }
  .specs .spec { border-top: 0; border-right: 1px solid var(--line); }
  .specs .spec:last-child { border-right: 0; }
}
.specs .spec .lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.specs .spec .val {
  font-family: var(--display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-top: 4px;
}
.specs .spec .note {
  font-size: 13px;
  color: var(--muted);
  margin-top: auto;
}

/* -------- Two-column prose layout for discipline pages -------- */
.prose-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 900px) {
  .prose-2col { grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }
}
.prose-2col .scope {
  background: var(--bg-alt);
  border-left: 3px solid var(--yellow);
  padding: 24px 28px;
}
.prose-2col .scope h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 14px;
}
.prose-2col .scope ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.prose-2col .scope ul li {
  font-size: 14px;
  padding-left: 22px;
  position: relative;
  color: var(--ink-soft);
}
.prose-2col .scope ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 12px; height: 1.5px;
  background: var(--yellow);
}

/* -------- Photo gallery -------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 700px)  { .gallery { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

.gallery-item {
  margin: 0;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-alt);
  cursor: zoom-in;
  border: 1px solid var(--line);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 14px 12px;
  background: linear-gradient(to top, rgba(11,11,11,0.85), transparent);
  color: var(--bg);
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.gallery-item:hover figcaption { opacity: 1; transform: translateY(0); }

/* Placeholder state — when no photo yet */
.gallery-item.placeholder {
  cursor: default;
  background:
    repeating-linear-gradient(
      45deg,
      var(--bg-alt),
      var(--bg-alt) 12px,
      var(--line-soft) 12px,
      var(--line-soft) 24px
    );
  display: grid;
  place-items: center;
}
.gallery-item.placeholder::after {
  content: "Photo coming";
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.gallery-item.placeholder:hover img { transform: none; }
.gallery-item.placeholder figcaption { display: none; }

/* -------- Lightbox -------- */
.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,11,11,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 40px;
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.lb-overlay.open {
  display: flex;
  opacity: 1;
}
.lb-stage {
  position: relative;
  max-width: min(1200px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lb-stage img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  border-radius: 4px;
}
.lb-caption {
  color: var(--bg);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-align: center;
  opacity: 0.85;
  max-width: 70ch;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(246,244,239,0.1);
  border: 1px solid rgba(246,244,239,0.25);
  color: var(--bg);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  font-size: 18px;
  line-height: 1;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  background: rgba(246,244,239,0.2);
  border-color: rgba(246,244,239,0.5);
}
.lb-close { top: -56px; right: 0; }
.lb-prev  { left: -64px; top: 50%; transform: translateY(-50%); }
.lb-next  { right: -64px; top: 50%; transform: translateY(-50%); }
@media (max-width: 800px) {
  .lb-overlay { padding: 20px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-close { top: 8px; right: 8px; }
}

/* -------- Hub cards (refactored capabilities page) -------- */
.hub-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 700px)  { .hub-cards { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 900px)  { .hub-cards { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
@media (min-width: 1100px) { .hub-cards.cols-4 { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.hub-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 36px 32px 32px;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  min-height: 320px;
}
.hub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -28px rgba(11,11,11,0.2);
  border-color: var(--ink);
}
.hub-card .num {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 28px;
}
.hub-card h3 {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.hub-card p {
  color: var(--ink-soft);
  font-size: 15px;
  flex: 1;
}
.hub-card .arrow-link {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .25s var(--ease), gap .25s var(--ease);
}
.hub-card:hover .arrow-link { color: var(--yellow-dark); gap: 14px; }

/* ============================================================
   Photo capability cards — shared base
   ------------------------------------------------------------
   Two treatments sit on top of this base:
     .sheen  — no frost. A glassy sheen over the whole photo,
               text at the bottom on a gradient scrim.
     .band   — a small frosted bar at the foot of the card,
               fixed height so all four match exactly.
   ============================================================ */

/* the reveal's blur() would become the backdrop root and kill any frost —
   these cards fade and rise, but never take a filter */
.hub-cards.glass .hub-card.reveal { filter: none; }

.hub-cards.glass .hub-card {
  background: var(--ink);
  background-image: var(--card-img);
  background-size: cover;
  background-position: center 42%;
  border: 1px solid rgba(11,11,11,0.14);
  padding: 0;
  min-height: 520px;
  overflow: hidden;
  justify-content: flex-end;
  isolation: isolate;
}
/* photo on its own layer, so it can scale on hover without moving the glass */
.hub-cards.glass .hub-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center 42%;
  transform: scale(1.001);
  transition: transform 1.1s var(--ease);
  z-index: 0;
}
.hub-cards.glass .hub-card:hover::before { transform: scale(1.055); }

.hub-cards.glass .hub-card .num {
  position: relative;
  z-index: 3;
  margin: 26px 26px auto;
  color: var(--yellow);
  text-shadow: 0 1px 12px rgba(11,11,11,0.7);
}
.hub-cards.glass .hub-card h3 {
  position: relative;
  color: var(--bg);
  font-size: clamp(22px, 2.1vw, 28px);
  margin-bottom: 0;
  text-shadow: 0 1px 16px rgba(11,11,11,0.5);
}
.hub-cards.glass .hub-card .arrow-link {
  position: relative;
  color: rgba(246,244,239,0.75);
}
.hub-cards.glass .hub-card:hover { border-color: rgba(11,11,11,0.28); }
.hub-cards.glass .hub-card:hover .arrow-link { color: var(--yellow); gap: 14px; }
.hub-cards.glass .hub-card:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .hub-cards.glass .hub-card::before,
  .hub-cards.glass .hub-card:hover::before { transition: none; transform: none; }
}

/* ---------- Treatment 1: sheen. No frost anywhere. ---------- */
/* a pane of glass laid over the photo: one soft diagonal highlight,
   a darkening at the foot to carry the type, nothing blurred */
.hub-cards.glass.sheen .hub-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(145deg,
      rgba(255,255,255,0.20) 0%,
      rgba(255,255,255,0.07) 22%,
      rgba(255,255,255,0) 46%),
    linear-gradient(to top,
      rgba(11,11,11,0.80) 0%,
      rgba(11,11,11,0.42) 20%,
      rgba(11,11,11,0.06) 42%,
      rgba(11,11,11,0) 60%,
      rgba(11,11,11,0.20) 100%);
  transition: opacity .45s var(--ease);
}
.hub-cards.glass.sheen .hub-card:hover::after { opacity: 0.88; }
/* the hairline that makes it read as a glass panel rather than a bare photo */
.hub-cards.glass.sheen .hub-card {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    inset 1px 0 0 rgba(255,255,255,0.10),
    inset -1px 0 0 rgba(255,255,255,0.05);
}
.hub-cards.glass.sheen .card-text {
  position: relative;
  z-index: 2;
  padding: 0 26px 26px;
  display: flex;
  flex-direction: column;
}
.hub-cards.glass.sheen .hub-card .arrow-link { margin-top: 14px; }

/* ---------- Treatment 2: band. Small frosted bar, fixed height. ---------- */
.hub-cards.glass.band .hub-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top,
      rgba(11,11,11,0.34) 0%,
      rgba(11,11,11,0.04) 30%,
      rgba(11,11,11,0) 60%,
      rgba(11,11,11,0.18) 100%);
}
.hub-cards.glass.band .card-text {
  position: relative;
  z-index: 2;
  /* fixed, not min — this is what keeps all four bands identical.
     one number to tune: change --band-h and every card follows */
  height: var(--band-h, 208px);
  flex: 0 0 var(--band-h, 208px);
  margin: 0;
  padding: 0 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(16,16,16,0.30);
  -webkit-backdrop-filter: blur(9px) saturate(1.2);
          backdrop-filter: blur(9px) saturate(1.2);
  border-top: 1px solid rgba(255,255,255,0.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16);
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease);
}
.hub-cards.glass.band .card-text::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(160deg,
      rgba(255,255,255,0.14) 0%,
      rgba(255,255,255,0.03) 40%,
      rgba(255,255,255,0) 70%);
}
.hub-cards.glass.band .hub-card:hover .card-text {
  background: rgba(16,16,16,0.40);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
          backdrop-filter: blur(12px) saturate(1.3);
}
.hub-cards.glass.band .hub-card .arrow-link { margin-top: 18px; }
/* taller band, so give the photo more room above it */
.hub-cards.glass.band .hub-card { min-height: 580px; }

/* compact: the same cards used as a footer on the four service pages,
   where they're a signpost rather than the main event */
.hub-cards.glass.band.compact { --band-h: 132px; }
.hub-cards.glass.band.compact .hub-card { min-height: 400px; }
.hub-cards.glass.band.compact .hub-card .num { margin: 18px 20px auto; font-size: 12px; }
.hub-cards.glass.band.compact .hub-card h3 { font-size: clamp(18px, 1.55vw, 21px); }
.hub-cards.glass.band.compact .card-text { padding: 0 20px; }
.hub-cards.glass.band.compact .hub-card .arrow-link { margin-top: 12px; font-size: 11px; }
@media (min-width: 1100px) {
  .hub-cards.glass.band.compact.cols-4 .hub-card h3 { min-height: 2.2em; }
}

/* no backdrop-filter? the band becomes an honest solid bar */
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .hub-cards.glass.band .card-text { background: rgba(14,14,14,0.78); }
  .hub-cards.glass.band .hub-card:hover .card-text { background: rgba(14,14,14,0.86); }
}

/* ============================================================
   v2 additions: video hero, parallax, staggered work, careers
   ============================================================ */

/* -------- Hero video variant -------- */
.hero.has-video {
  padding: 0;
  min-height: clamp(560px, 88vh, 880px);
  display: flex;
  align-items: center;
  color: var(--bg);
  background: var(--ink);
}
.hero.has-video::before { display: none; }
.hero.has-video .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}
.hero.has-video .hero-video video,
.hero.has-video .hero-video .poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero.has-video .hero-video .poster {
  background:
    radial-gradient(800px 500px at 30% 30%, #1a1a1a, transparent 70%),
    radial-gradient(900px 600px at 80% 70%, #222, transparent 70%),
    #0B0B0B;
  width: 100%;
  height: 100%;
}
.hero.has-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(11,11,11,0.58) 0%, rgba(11,11,11,0.25) 60%, rgba(11,11,11,0.32) 100%),
    linear-gradient(to bottom, rgba(11,11,11,0.18), rgba(11,11,11,0.45));
  z-index: 1;
  pointer-events: none;
}
.hero.has-video .wrap {
  position: relative;
  z-index: 2;
  padding-top: clamp(80px, 12vw, 140px);
  padding-bottom: clamp(60px, 9vw, 120px);
}

/* Adjust hero contents for dark background */
.hero.has-video .eyebrow { color: rgba(246,244,239,0.9); }
.hero.has-video .eyebrow::before { background: var(--yellow); }
.hero.has-video h1 { color: var(--bg); }
.hero.has-video h1 .accent { color: var(--yellow); }
.hero.has-video .lede { color: rgba(246,244,239,0.85); }
.hero.has-video .meta { color: rgba(246,244,239,0.7); }
.hero.has-video .meta span::before { background: var(--yellow); }
.hero.has-video .btn-primary {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
}
.hero.has-video .btn-primary:hover {
  background: var(--bg);
  border-color: var(--bg);
}
.hero.has-video .btn-ghost {
  border-color: rgba(246,244,239,0.5);
  color: var(--bg);
}
.hero.has-video .btn-ghost:hover {
  border-color: var(--bg);
  background: rgba(246,244,239,0.08);
  color: var(--bg);
}

/* Stats panel inside video hero */
.hero.has-video .hero-stats { border-top-color: rgba(246,244,239,0.4); }
.hero.has-video .hero-stats .stat { border-bottom-color: rgba(246,244,239,0.18); }
.hero.has-video .hero-stats .stat .num { color: var(--bg); }
.hero.has-video .hero-stats .stat .num sup { color: var(--yellow); }
.hero.has-video .hero-stats .stat .label { color: rgba(246,244,239,0.65); }

/* Crossfading playlist clips (stacked over the poster) */
.hero.has-video .hero-video video.hero-clip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.hero.has-video .hero-video video.hero-clip.on { opacity: 1; }

/* On narrow and mid screens: drop the forced line breaks so the headline
   flows horizontally, and size it down so the footage stays visible */
@media (max-width: 1100px) {
  .hero.has-video h1 br { display: none; }
  .hero.has-video h1 { font-size: clamp(34px, 5.5vw, 56px); }
  .hero.has-video .lede { font-size: 16px; max-width: 52ch; }
}

/* Reduced motion: don't autoplay video */
@media (prefers-reduced-motion: reduce) {
  .hero.has-video video { display: none; }
}

/* -------- Parallax band -------- */
.parallax {
  position: relative;
  min-height: clamp(420px, 60vh, 600px);
  display: flex;
  align-items: center;
  color: var(--bg);
  background-color: var(--ink);
  background-image: var(--parallax-img, none);
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  overflow: hidden;
}
/* iOS Safari ignores background-attachment: fixed cleanly — leave scrollable */
.parallax::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(11,11,11,0.75) 0%, rgba(11,11,11,0.4) 60%, rgba(11,11,11,0.55) 100%);
  pointer-events: none;
}
/* Placeholder pattern when no image is set */
.parallax.placeholder {
  background-image:
    repeating-linear-gradient(
      135deg,
      #1a1a1a 0,
      #1a1a1a 24px,
      #141414 24px,
      #141414 48px
    );
  background-attachment: scroll;
}
.parallax.placeholder::after {
  content: "Photo coming";
  position: absolute;
  top: 24px; right: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246,244,239,0.7);
  background: rgba(246,244,239,0.08);
  border: 1px solid rgba(246,244,239,0.2);
  padding: 6px 12px;
  border-radius: 999px;
  z-index: 2;
}
.parallax .wrap { position: relative; z-index: 1; }
.parallax .eyebrow { color: rgba(246,244,239,0.85); }
.parallax .eyebrow::before { background: var(--yellow); }
.parallax h2 {
  color: var(--bg);
  max-width: 18ch;
  margin-top: 16px;
}
.parallax h2 .disp-em { color: var(--yellow); }
.parallax .lede {
  color: rgba(246,244,239,0.85);
  max-width: 50ch;
  margin-top: 18px;
}

@media (max-width: 700px) {
  .parallax { background-attachment: scroll; }
}

/* -------- Staggered scroll-reveal work section -------- */
.work-staggered {
  display: flex;
  flex-direction: column;
  gap: clamp(60px, 9vw, 120px);
}
.work-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
@media (min-width: 900px) {
  .work-item { grid-template-columns: 1fr 1fr; gap: 64px; }
  .work-item.flip .work-photo { order: 2; }
  .work-item.flip .work-copy  { order: 1; }
}
.work-photo {
  position: relative;
  aspect-ratio: 5 / 6;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  cursor: zoom-in;
  /* start state — slide in from side */
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.work-item.flip .work-photo {
  transform: translateX(60px);
}
.work-item.in .work-photo {
  opacity: 1;
  transform: translateX(0);
}
.work-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.work-photo:hover img { transform: scale(1.04); }
.work-photo figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 20px 16px;
  background: linear-gradient(to top, rgba(11,11,11,0.85), transparent);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.work-photo:hover figcaption { opacity: 1; transform: translateY(0); }

/* Placeholder state for work-photo (no image yet) */
.work-photo.placeholder {
  cursor: default;
  background:
    repeating-linear-gradient(
      45deg,
      var(--bg-alt),
      var(--bg-alt) 14px,
      var(--line-soft) 14px,
      var(--line-soft) 28px
    );
  display: grid;
  place-items: center;
}
.work-photo.placeholder::after {
  content: "Photo coming";
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.work-photo.placeholder:hover img { transform: none; }
.work-photo.placeholder figcaption { display: none; }

.work-copy {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 1s var(--ease) .15s, transform 1s var(--ease) .15s;
}
.work-item.flip .work-copy { transform: translateX(-60px); }
.work-item.in .work-copy { opacity: 1; transform: translateX(0); }

.work-copy .work-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  display: block;
}
.work-copy h3 {
  font-family: var(--display);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.work-copy .loc {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.work-copy p { color: var(--ink-soft); }
.work-copy .scope-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.work-copy .scope-tags span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .work-photo, .work-copy { transition: none; opacity: 1; transform: none; }
}

/* -------- Careers page -------- */
.careers-roles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--bg);
  /* real borders, not a 1px gap — gaps vanish at some zoom levels */
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (min-width: 700px)  { .careers-roles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .careers-roles { grid-template-columns: repeat(2, 1fr); } }
.role-card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.role-card .role-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.role-card .role-meta span { display: inline-flex; align-items: center; gap: 6px; }
.role-card .role-meta span::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--yellow);
  border-radius: 50%;
}
.role-card h3 {
  font-family: var(--display);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.role-card p { color: var(--ink-soft); font-size: 15px; margin: 0; }
.role-card .role-foot {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.role-card .role-foot .status {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.role-card .role-foot .status.open { color: #1FA86A; }
.role-card .role-foot .arrow-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .25s var(--ease), gap .25s var(--ease);
}
.role-card:hover .arrow-link { color: var(--ink); gap: 14px; }

.careers-perks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--bg);
  /* real borders, not a 1px gap — gaps vanish at some zoom levels */
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (min-width: 700px)  { .careers-perks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .careers-perks { grid-template-columns: repeat(4, 1fr); } }
.perk {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 160px;
}
.perk .perk-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 10px;
}
.perk h4 {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}
.perk p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* ============================================================
   News / milestones section
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 700px)  { .news-grid { grid-template-columns: repeat(2, 1fr); gap: 26px; } }
@media (min-width: 1024px) { .news-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; } }

/* First card spans two columns on tablet+ — gives the headline item room */
@media (min-width: 700px) and (max-width: 1023px) {
  .news-grid .news-item.featured { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .news-grid .news-item.featured { grid-column: 1 / -1; }
}

.news-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 34px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  position: relative;
}
.news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -28px rgba(11,11,11,0.18);
  border-color: var(--ink);
}
.news-item .news-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.news-item .news-meta .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
}
.news-item .news-meta .tag::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--yellow);
  border-radius: 50%;
}
.news-item .news-meta .date { color: var(--muted); }

.news-item h3 {
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
}
.news-item.featured h3 {
  font-size: clamp(26px, 2.6vw, 36px);
  max-width: 22ch;
}
.news-item p {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0;
}
.news-item.featured p { font-size: 15px; }

.news-item .news-foot {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.news-item .news-foot .read-more {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .25s var(--ease), gap .25s var(--ease);
}
.news-item:hover .news-foot .read-more { color: var(--ink); gap: 14px; }

/* Featured card gets a subtle accent — yellow rule on top-left */
.news-item.featured::before {
  content: "";
  position: absolute;
  top: 0; left: 26px;
  width: 36px; height: 3px;
  background: var(--yellow);
}

/* ============================================================
   Accreditations strip
   ============================================================ */
.accreditations {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 600px)  { .accreditations { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 900px)  { .accreditations { grid-template-columns: repeat(4, 1fr); gap: 18px; } }

.acc-item {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.acc-item:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -20px rgba(11,11,11,0.18);
}
.acc-item img {
  max-width: 100%;
  max-height: 70px;
  width: auto;
  height: auto;
  display: block;
  /* Mono + slightly dimmed by default; hover restores */
  opacity: 0.75;
  transition: opacity .3s var(--ease);
}
.acc-item:hover img.acc-mono { opacity: 0; }
.acc-item img.acc-colour {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  max-width: calc(100% - 32px);
  max-height: 70px;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.acc-item:hover img.acc-colour { opacity: 1; }

/* Tooltip label under the badge */
.acc-item .acc-label {
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%) translateY(6px);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 3px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  z-index: 3;
}
.acc-item:hover .acc-label {
  opacity: 1;
  transform: translateX(-50%) translateY(14px);
}

/* Touch devices — disable hover-only behaviour, just show mono dimmed */
@media (hover: none) {
  .acc-item img.acc-colour { display: none; }
  .acc-item .acc-label { display: none; }
}

/* Reduced motion — kill transitions */
@media (prefers-reduced-motion: reduce) {
  .acc-item, .acc-item img, .acc-item .acc-label {
    transition: none;
  }
}

/* ============================================================
   Accreditations marquee — continuous left-to-right scroll
   ============================================================ */
.acc-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* Soft fade on the edges so badges don't appear/disappear abruptly */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.acc-marquee .acc-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  gap: 18px;
  animation: acc-scroll 40s linear infinite;
  /* Move from left edge (-50%) to the right edge (0) — visually L→R */
  animation-direction: reverse;
}
@keyframes acc-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Pause on hover so people can study a badge */
.acc-marquee:hover .acc-track {
  animation-play-state: paused;
}

/* Each acc-item inside the marquee needs a fixed width, otherwise flexbox
   tries to stretch them to fill and the layout collapses */
.acc-marquee .acc-item {
  flex: 0 0 auto;
  width: 200px;
  min-height: 120px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .acc-marquee .acc-track {
    animation: none;
    transform: none;
  }
  .acc-marquee {
    overflow-x: auto;
  }
}

/* Slow down slightly on narrow screens — fewer pixels = appears faster */
@media (max-width: 700px) {
  .acc-marquee .acc-track { animation-duration: 50s; }
  .acc-marquee .acc-item { width: 160px; min-height: 100px; }
}

/* ============================================================
   v3 additions: interactive layer + design polish
   ============================================================ */

/* -------- Scroll progress bar -------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2.5px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 100;
  pointer-events: none;
}

/* -------- Back to top -------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .35s var(--ease), transform .35s var(--ease),
              visibility .35s, background .25s var(--ease), color .25s var(--ease);
  box-shadow: 0 12px 28px -14px rgba(11,11,11,0.4);
}
.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.to-top:hover { background: var(--yellow); color: var(--ink); }

/* -------- Hero scroll cue -------- */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.85;
  transition: opacity .25s;
}
.scroll-cue:hover { opacity: 1; }
.scroll-cue .cue-line {
  display: block;
  width: 1.5px;
  height: 44px;
  background: rgba(246,244,239,0.35);
  position: relative;
  overflow: hidden;
}
.scroll-cue .cue-line::after {
  content: "";
  position: absolute;
  left: 0; top: -50%;
  width: 100%; height: 50%;
  background: var(--yellow);
  animation: cue-drop 2.2s var(--ease) infinite;
}
@keyframes cue-drop {
  0%   { top: -50%; }
  60%  { top: 100%; }
  100% { top: 100%; }
}
@media (max-width: 700px) { .scroll-cue { display: none; } }

/* -------- Hero accent underline draw -------- */
.hero h1 .accent {
  background-image: linear-gradient(rgba(244,180,26,0.55), rgba(244,180,26,0.55));
  background-repeat: no-repeat;
  background-size: 0% 0.07em;
  background-position: 0 94%;
  transition: background-size 0.9s var(--ease) 0.7s;
}
.hero h1.reveal.in .accent { background-size: 100% 0.07em; }

/* -------- Buttons: press state -------- */
.btn:active { transform: translateY(1px) scale(0.98) !important; }

/* -------- Focus visibility (keyboard users) -------- */
:focus-visible {
  outline: 2px solid var(--yellow-dark);
  outline-offset: 3px;
  border-radius: 2px;
}
.btn:focus-visible { outline-offset: 2px; }

/* -------- Feature cards: animated yellow top rule + icon fill -------- */
.feat { position: relative; transition: background .35s var(--ease); }
.feat::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.feat:hover { background: var(--surface); }
.feat:hover::before { transform: scaleX(1); }
.feat .ico { transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.feat:hover .ico { background: var(--ink); color: var(--yellow); border-color: var(--ink); }

/* ---- pictured feat cards: faint photo behind the text ---- */
/* set with a per-card variable:  style="--feat-img:url('assets/...')"  */
.feat-grid.pictured .feat { overflow: hidden; }
.feat-grid.pictured .feat::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--feat-img);
  background-size: var(--feat-size, cover);
  background-position: var(--feat-pos, center);
  background-repeat: no-repeat;
  opacity: 0.20;
  filter: grayscale(1) contrast(1.05);
  transition: opacity .5s var(--ease), filter .5s var(--ease);
  pointer-events: none;
  z-index: 0;
}
.feat-grid.pictured .feat > * { position: relative; z-index: 1; }
.feat-grid.pictured .feat:hover::after { opacity: 0.30; filter: grayscale(1) contrast(1.05); }

/* Same treatment for perks and role cards */
.perk, .role-card { position: relative; transition: background .35s var(--ease); }
.perk::before, .role-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.perk:hover, .role-card:hover { background: var(--surface); }
.perk:hover::before, .role-card:hover::before { transform: scaleX(1); }

/* -------- Stat items in dark band: yellow tick draws on hover -------- */
.track-band .item::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 1px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.track-band .item:hover::after { transform: scaleX(1); }

/* -------- Forms: warmer interaction -------- */
.form input:hover, .form textarea:hover, .form select:hover {
  border-color: var(--muted);
}
.form input:focus, .form textarea:focus, .form select:focus {
  border-color: var(--yellow-dark);
}
.form .btn { margin-top: 6px; }

/* -------- News cards: whole-card affordance -------- */
.news-item .news-foot a.read-more { color: var(--muted); }
.news-item:hover .news-foot a.read-more { color: var(--ink); gap: 14px; }

/* -------- Utility strip: hide on scroll-down feel — keep static, tighten -------- */
.utility .wrap { padding-top: 8px; padding-bottom: 8px; }

/* -------- Selection & tap highlight -------- */
* { -webkit-tap-highlight-color: rgba(244,180,26,0.25); }

/* -------- Shared backdrop: one long picture behind both dark bands --------
   Both the track-record band (02) and the parallax band use the SAME image
   with background-attachment: fixed, so they act as two windows onto one
   continuous picture as the page scrolls. To swap in your long photo,
   change the URL below — one line, both bands update. */
.shared-backdrop {
  --backdrop: url('assets/photos/backdrop-trench.jpg');
}
.track-band.shared-backdrop {
  background-color: var(--ink);
  /* same light veil as the parallax band — photo stays clearly visible */
  background-image:
    linear-gradient(to right, rgba(11, 11, 11, 0.75), rgba(11, 11, 11, 0.4) 60%, rgba(11, 11, 11, 0.55)),
    var(--backdrop);
  /* first position pins the dark tint layer to the viewport;
     second moves only the photo (driven by --sb-y from JS) */
  background-size: auto, 100vw auto;
  background-repeat: no-repeat;
  background-position: center 0, center var(--sb-y, 0px);
  background-attachment: fixed;
}
.parallax.shared-backdrop {
  --parallax-img: var(--backdrop);
  background-size: 100vw auto;
  background-repeat: no-repeat;
  background-position: center var(--sb-y, 0px);
}
@media (max-width: 700px) {
  /* iOS ignores fixed backgrounds — fall back gracefully */
  .track-band.shared-backdrop { background-attachment: scroll; }
}
@media (prefers-reduced-motion: reduce) {
  .track-band.shared-backdrop { background-attachment: scroll; }
}

/* -------- Scroll-read headlines: golden fill as you read -------- */
/* Context palettes via variables: rest (faint) -> edge (gold) -> final. */
.scroll-read {
  --w-rest: rgba(11,11,11,0.18);
  --w-final: var(--ink);
  --w-edge: var(--yellow-dark);
}
.track-band .scroll-read,
.parallax .scroll-read,
.cta-banner .scroll-read,
section.dark .scroll-read {
  --w-rest: rgba(246,244,239,0.22);
  --w-final: var(--bg);
  --w-edge: var(--yellow);
}
.scroll-read .w {
  color: var(--w-rest);
  transition: color .45s var(--ease);
}
/* Every word passes through gold on its way in — including the last one.
   The keyframes have no 100% frame, so the animation settles into the
   word's own final colour (black on light, cream on dark, gold for .disp-em). */
.scroll-read .w.lit {
  color: var(--w-final);
  animation: word-light .55s var(--ease);
}
@keyframes word-light {
  0%  { color: var(--w-rest); }
  55% { color: var(--w-edge); }
}
/* The word at the reading edge holds gold while you pause mid-scroll */
.scroll-read .w.edge { color: var(--w-edge); }
/* Italic emphasis words keep their gold once read */
.scroll-read .disp-em .w.lit { color: var(--w-edge); }

/* -------- 3D yard orbit — inside the Sheffield card -------- */
/* Sheffield card takes double space: wider left column, spans both rows */
@media (min-width: 1024px) {
  .feat-grid.depots { grid-template-columns: 1.6fr 1fr; }
  .depot-sheffield { grid-row: span 2; }
}
@media (min-width: 700px) and (max-width: 1023px) {
  .depot-sheffield { grid-column: 1 / -1; }
}
.hq3d-note {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 10px 0 0;
  text-align: center;
}
.hq3d-stage {
  position: relative;
  margin: 18px auto 0;
  width: 100%;
  flex: 1;
  min-height: 340px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(244, 180, 26, 0.45);
  background:
    radial-gradient(300px 300px at 50% 40%, rgba(244,180,26,0.10), transparent 70%),
    #131109;
}
/* attribution lives under the square, tiny but legible */
#hq3d-credits {
  margin-top: 6px;
  font-size: 9px;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}
#hq3d-credits img { display: none; }
#hq3d-credits a { color: var(--muted); }
.hq3d-stage .hq3d-go {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  white-space: nowrap;
}
.hq3d-stage .hq3d-go:active { transform: translate(-50%, -50%) scale(0.98) !important; }
.hq3d-stage .cesium-viewer { position: absolute; inset: 0; }
.hq3d-stage .cesium-viewer-bottom { font-size: 10px; opacity: 0.8; }
.hq3d-stage.loading::after {
  content: "Loading the yard…";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246,244,239,0.7);
}

/* -------- Interactive 3D badge (drag-to-spin turntable) -------- */
.spin3d {
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .spin3d { grid-template-columns: 1fr 1.5fr; }
}
.spin3d-copy {
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.spin3d-copy .eyebrow { color: rgba(246,244,239,0.85); }
.spin3d-copy .eyebrow::before { background: var(--yellow); }
.spin3d-copy h3 {
  font-family: var(--display);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--bg);
}
.spin3d-copy p { color: rgba(246,244,239,0.72); font-size: 15px; margin: 0; }
.spin3d-stage {
  position: relative;
  padding: clamp(10px, 2vw, 24px);
  display: grid;
  place-items: center;
}
.spin3d-stage canvas {
  width: min(100%, 520px);
  height: auto;
  display: block;
  cursor: grab;
  touch-action: none;
}
.spin3d-stage canvas:active { cursor: grabbing; }
.spin3d-hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246,244,239,0.5);
  pointer-events: none;
  transition: opacity .5s var(--ease);
}
.spin3d-hint.off { opacity: 0; }

/* -------- Testimonial carousel driven by the 3D badge -------- */
.tspin {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;   /* the edge arrows hang off this, clear of the 3D stage */
}
/* badge sits on top of the carousel, slightly overlapping it */
.tspin-badge {
  position: relative;
  z-index: 2;
  width: 100%;              /* was shrink-to-fit, and sized itself to the
                               canvas's 480px intrinsic width — so a 360px
                               canvas sat left-aligned inside it */
  margin-bottom: -70px;
}
.tspin-badge canvas {
  width: min(100%, 360px);
  height: auto;
  display: block;
  margin: 0 auto;           /* centred on the ring below, whatever the width */
  cursor: grab;
  touch-action: none;
}
.tspin-badge canvas:active { cursor: grabbing; }
.tclip {
  width: 100%;
  overflow: hidden;
}
.tstage {
  /* raised viewpoint: vanishing point above the stage = looking down on the disc */
  perspective: 2700px;
  perspective-origin: 50% -36%;
  height: 660px;
  position: relative;
}
/* soft shadow on the "floor" at the disc's centre */
.tshadow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 340px;
  height: 64px;
  transform: translate(-50%, 140px);
  background: radial-gradient(ellipse, rgba(11,11,11,0.18), transparent 68%);
  filter: blur(4px);
  pointer-events: none;
}
.tring {
  position: absolute;
  left: 50%;
  top: 44%;
  transform-style: preserve-3d;
  pointer-events: none; /* the badge is the only control */
}
.tcard {
  position: absolute;
  top: -170px;
  transform-style: preserve-3d;
}
.tcard .tface,
.tcard .tback {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.tcard .tface {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 20px 22px;
  box-shadow: 0 22px 40px -26px rgba(11,11,11,0.32);
}
/* card backs — dark, with the gold mark, like a deck of cards */
.tcard .tback {
  transform: rotateY(180deg);
  background:
    radial-gradient(ellipse at 50% 40%, rgba(244,180,26,0.08), transparent 65%),
    var(--ink);
  border: 1px solid #232019;
  background-repeat: no-repeat;
  box-shadow: 0 22px 40px -26px rgba(11,11,11,0.4);
}
.tcard .tback::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('assets/sauk-logo-yellow-white.png') center / 52% no-repeat;
  opacity: 0.85;
}
.tcard blockquote {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 14.5px;
  line-height: 1.42;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tcard .by {
  display: flex;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin: 0;
}
.tcard .by .avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px;
  flex: 0 0 auto;
}
.tcard .by .who { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.tcard .by .role { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

/* ---- accolade cards open in the pop-out reader ---- */
.tcard .tface { cursor: pointer; transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.tcard .tface:hover { border-color: var(--yellow-dark); box-shadow: 0 26px 46px -26px rgba(11,11,11,0.42); }
.tcard:focus-visible { outline: none; }
.tcard:focus-visible .tface { outline: 2px solid var(--yellow-dark); outline-offset: 3px; }

/* clamped cards lose a line to make room for the prompt; the line-clamp
   ellipsis already shows the text carries on */
.tcard.is-clipped blockquote { -webkit-line-clamp: 6; }
.tcard .tmore {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
  transition: color .25s var(--ease), gap .25s var(--ease);
}
.tcard .tface:hover .tmore { color: var(--yellow-dark); gap: 12px; }

/* ---- edge arrows: barely there until you move the mouse ---- */
.tarrow {
  position: absolute;
  top: 54%;
  transform: translateY(-50%);
  z-index: 6;
  width: 52px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(11,11,11,0.14);
  border-radius: 6px;
  background: rgba(246,244,239,0.70);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  color: var(--muted);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s var(--ease), background .25s var(--ease),
              color .25s var(--ease), border-color .25s var(--ease),
              transform .25s var(--ease);
}
.tarrow span { display: block; margin-top: -4px; }
.tarrow-l { left: 4px; }
.tarrow-r { right: 4px; }
.tspin.arrows-on .tarrow { opacity: 0.68; pointer-events: auto; }
.tspin.arrows-on .tarrow:hover,
.tarrow:focus-visible {
  opacity: 1;
  background: var(--yellow);
  border-color: var(--yellow-dark);
  color: var(--ink);
  box-shadow: 0 10px 22px -12px rgba(216,154,10,0.75);
}
.tarrow:focus-visible { outline: 2px solid var(--yellow-dark); outline-offset: 3px; pointer-events: auto; }
.tspin.arrows-on .tarrow-l:hover { transform: translateY(-50%) translateX(-2px); }

/* ---- gas emergency strip (in-your-area page) ---- */
.gas-alert {
  background: var(--ink);
  border-top: 3px solid var(--yellow);
  border-bottom: 3px solid var(--yellow);
  padding: 18px 0;
}
.gas-alert-inner {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.gas-alert-label {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
}
.gas-alert-num {
  font-family: var(--display);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--bg);
  text-decoration: none;
  white-space: nowrap;
}
.gas-alert-num:hover { color: var(--yellow); }
.gas-alert-note {
  font-size: 13.5px;
  color: rgba(246,244,239,0.7);
  max-width: 46ch;
}

.tspin.arrows-on .tarrow-r:hover { transform: translateY(-50%) translateX(2px); }
.tarrow:active { transform: translateY(-50%) scale(0.94); }

/* no hover to reveal them on a touch screen, so they simply stay */
@media (hover: none) {
  .tarrow { opacity: 0.72; pointer-events: auto; }
}
@media (max-width: 700px) {
  .tarrow { width: 42px; height: 64px; font-size: 25px; }
}

/* the reader itself: a single quote, so keep the panel narrow and quiet */
.modal-panel.modal-quote { max-width: 660px; }
.modal-panel.modal-quote blockquote {
  margin: 0 0 26px;
  font-family: var(--display);
  font-size: clamp(19px, 2.2vw, 25px);
  line-height: 1.45;
  color: var(--ink);
  /* the card clamps it — the reader must not */
  display: block;
  overflow: visible;
}
.modal-panel.modal-quote .by { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--line); padding-top: 20px; }
.modal-panel.modal-quote .by .avatar {
  width: 46px; height: 46px; flex: 0 0 46px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px; color: var(--muted);
}
.modal-panel.modal-quote .by .who { font-size: 15px; font-weight: 600; color: var(--ink); }
.modal-panel.modal-quote .by .role {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-top: 3px;
}
.tspin .spin3d-hint {
  position: static;
  transform: none;
  color: var(--muted);
  margin-top: 10px;
}
/* once the carousel is running, the flat grid bows out */
.quotes.spun-away { display: none; }
@media (max-width: 700px) {
  .tstage { height: 560px; }
}

/* -------- Easter egg: pipes vs sockets tic-tac-toe -------- */
.ttt-section { padding: clamp(40px, 6vw, 72px) 0; }
.ttt-teaser {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 auto;
  padding: 14px 22px;
  border: 1px dashed var(--line);
  border-radius: 999px;
  background: transparent;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.ttt-teaser:hover { color: var(--ink); border-color: var(--ink); background: var(--surface); }
.ttt-teaser .ttt-mini { width: 26px; height: 26px; flex: 0 0 auto; }
.ttt-teaser[aria-expanded="true"] { display: none; }

.ttt-game { max-width: 560px; margin: 0 auto; text-align: center; }
.ttt-head h3 {
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 10px 0 10px;
}
.ttt-head p { color: var(--ink-soft); font-size: 15px; max-width: 44ch; margin: 0 auto 28px; }

.ttt-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 380px;
  margin: 0 auto;
}
.ttt-cell {
  aspect-ratio: 1 / 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  padding: 12%;
  cursor: pointer;
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .1s;
  position: relative;
  overflow: visible;
}
.ttt-cell:hover:not(:disabled) { border-color: var(--yellow-dark); background: #fffdf6; }
.ttt-cell:disabled { cursor: default; }
.ttt-cell svg { width: 100%; height: 100%; display: block; overflow: visible; }
/* ghost preview of your pipe on hover */
.ttt-cell:hover:not(:disabled)::after {
  content: "";
  position: absolute;
  inset: 12%;
  background: radial-gradient(circle, rgba(244,180,26,0.18), transparent 70%);
  border-radius: 50%;
}
/* winning squares */
.ttt-cell.win {
  border-color: var(--yellow-dark);
  background: rgba(244,180,26,0.14);
  animation: ttt-glow 0.9s var(--ease) 2;
}
@keyframes ttt-glow {
  50% { box-shadow: 0 0 0 6px rgba(244,180,26,0.25); }
}

/* The dramatic drop: fall in, thump, rock side to side, settle */
.ttt-piece-drop {
  animation: ttt-drop 0.75s cubic-bezier(.2,.7,.3,1) both;
  transform-origin: 50% 85%;
}
@keyframes ttt-drop {
  0%   { transform: translateY(-110px) rotate(-24deg) scale(1.08); opacity: 0; }
  38%  { transform: translateY(0) rotate(7deg) scale(1); opacity: 1; }
  52%  { transform: translateY(-14px) rotate(-6deg); }
  66%  { transform: translateY(0) rotate(4deg); }
  78%  { transform: translateY(-4px) rotate(-2.5deg); }
  88%  { transform: translateY(0) rotate(1.2deg); }
  100% { transform: none; }
}
/* the board takes the knock */
.ttt-board.thud { animation: ttt-thud 0.4s var(--ease); }
@keyframes ttt-thud {
  0% { transform: none; }
  35% { transform: translateY(3px) rotate(0.4deg); }
  65% { transform: translateY(-1px) rotate(-0.2deg); }
  100% { transform: none; }
}

.ttt-foot {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.ttt-msg { font-family: var(--display); font-size: 20px; font-style: italic; color: var(--ink); min-height: 28px; }
.ttt-score {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.ttt-sound {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px dashed var(--line);
  padding: 2px 0;
  transition: color .25s var(--ease);
}
.ttt-sound:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .ttt-piece-drop, .ttt-board.thud, .ttt-cell.win { animation: none; }
}

/* -------- Reduced motion: neutralise v3 motion -------- */
@media (prefers-reduced-motion: reduce) {
  .scroll-cue .cue-line::after { animation: none; }
  .reveal { filter: none; }
  .hero h1 .accent { background-size: 100% 0.07em; transition: none; }
}

/* ==========================================================================
   Careers: have a go on the digger
   ========================================================================== */
.sim-section { padding: clamp(40px, 6vw, 72px) 0; }
.sim-teaser {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(24px, 4vw, 44px);
  background: var(--surface);
}
.sim-copy h3 {
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 10px 0 12px;
}
.sim-copy p { color: var(--ink-soft); font-size: 15px; max-width: 52ch; margin: 0 0 22px; }
.sim-note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 14px 0 0 !important;
}
.sim-art { width: 100%; height: auto; display: block; }
.sim-req {
  font-size: 14px !important;
  border-left: 3px solid var(--yellow);
  padding-left: 14px;
  margin-bottom: 22px !important;
}
.sim-req b { color: var(--ink); }

/* the simulator window */
.sim-stage {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #141414;
  display: flex;
  flex-direction: column;
  animation: sim-in .35s var(--ease);
}
.sim-stage[hidden] { display: none; }
@keyframes sim-in { from { opacity: 0; transform: scale(0.985); } }
.sim-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  background: #0f0d09;
  border-bottom: 1px solid rgba(246,244,239,0.12);
}
.sim-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
}
.sim-close {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #F6F4EF;
  background: transparent;
  border: 1px solid rgba(246,244,239,0.35);
  border-radius: 999px;
  padding: 6px 16px;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.sim-close:hover { background: var(--yellow); color: #14100a; border-color: var(--yellow); }
.sim-stage iframe { flex: 1 1 auto; width: 100%; border: 0; display: block; }

@media (max-width: 760px) {
  .sim-teaser { grid-template-columns: 1fr; }
  .sim-art { max-width: 180px; }
}

/* ==========================================================================
   Community: charity night collage (replaces the single poster)
   ========================================================================== */
.charity-collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 96px;
  gap: 6px;
}
.charity-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  filter: saturate(0.92) contrast(1.02);
  transition: filter .4s var(--ease), transform .4s var(--ease);
}
.charity-collage img:hover { filter: none; transform: scale(1.015); }
/* the group shot carries the block; the rest fill in around it */
.charity-collage img:nth-child(1) { grid-column: span 2; grid-row: span 2; }
@media (min-width: 760px) { .charity-collage { grid-auto-rows: 128px; } }
@media (max-width: 520px) {
  .charity-collage { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 84px; }
  .charity-collage img:nth-child(1) { grid-column: span 2; grid-row: span 2; }
}

/* the Andy's Man Club poster, pinned up beside the practical details */
.amc-poster {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.amc-poster a { flex: 0 0 132px; display: block; }
.amc-poster img {
  width: 100%;
  display: block;
  border-radius: 3px;
  transform: rotate(-1.6deg);
  box-shadow: 0 6px 18px rgba(20,20,20,.22);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.amc-poster a:hover img {
  transform: rotate(0deg) scale(1.03);
  box-shadow: 0 10px 26px rgba(20,20,20,.3);
}
.amc-poster p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}
.amc-tag {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink);
}
@media (max-width: 520px) {
  .amc-poster { flex-direction: column; }
  .amc-poster a { flex: 0 0 auto; max-width: 150px; }
}

/* a second cause, set beside the featured one without competing with it */
.cause-strip {
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
@media (min-width: 860px) {
  .cause-strip { grid-template-columns: 1fr 260px; gap: 48px; }
}
.cause-body h3 {
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 8px 0 14px;
}
.cause-body p { color: var(--ink-soft); font-size: 15px; margin: 0 0 14px; max-width: 62ch; }
.cause-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 20px; }
.cause-reg {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.cause-figure {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px 22px;
  text-align: center;
  background: var(--surface);
}
.cause-num {
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 52px);
  line-height: 1;
  color: var(--yellow-dark);
}
.cause-cap {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.7;
}
.cause-cap span { opacity: 0.6; }

/* the date panel for an upcoming night */
.cause-date { padding: 24px 20px; }
.cause-day {
  font-family: var(--display);
  font-size: clamp(34px, 4.4vw, 46px);
  line-height: 1;
  color: var(--yellow-dark);
}
.cause-month {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 8px;
}
.cause-date .cause-cap {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* photo collage inside a news card */
.news-collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 92px;
  gap: 5px;
  margin: 2px 0 4px;
}
.news-collage img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 3px;
  filter: saturate(0.92) contrast(1.02);
  transition: filter .4s var(--ease), transform .4s var(--ease);
}
.news-collage img:hover { filter: none; transform: scale(1.02); }
.news-collage img:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.news-collage img:nth-child(2) { grid-column: span 2; grid-row: span 2; }
@media (min-width: 1024px) { .news-collage { grid-auto-rows: 128px; } }
@media (min-width: 1024px) { .news-collage-3 { grid-auto-rows: 112px; } }

/* ==========================================================================
   Pop-out reader — full statements without leaving the page
   ========================================================================== */
.modal-source { display: none; }
.modal-veil {
  position: fixed; inset: 0; z-index: 9500;
  background: rgba(12, 11, 9, 0.72);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity .28s var(--ease);
}
.modal-veil.open { opacity: 1; }
.modal-panel {
  position: relative;
  background: var(--bg);
  border-radius: 10px;
  max-width: 940px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(28px, 4vw, 52px);
  box-shadow: 0 24px 70px rgba(0,0,0,.45);
  transform: translateY(14px) scale(.985);
  transition: transform .3s var(--ease);
}
.modal-veil.open .modal-panel { transform: none; }
.modal-panel h2 {
  font-family: var(--display);
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 10px 0 20px;
  max-width: 24ch;
}
.modal-panel p { font-size: 16px; line-height: 1.8; color: var(--ink-soft); margin: 0 0 18px; max-width: 68ch; }
.modal-panel p:last-child { margin-bottom: 0; }
.modal-panel strong { color: var(--ink); }
.modal-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.modal-x {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 16px; line-height: 1;
  color: var(--muted);
  cursor: pointer;
  transition: background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.modal-x:hover { background: var(--ink); border-color: var(--ink); color: var(--yellow); }
body.modal-open { overflow: hidden; }
button.read-more {
  background: none; border: 0; padding: 0;
  font: inherit; color: inherit; cursor: pointer;
}
/* a card you can open — the link inside still navigates */
.news-item[data-modal-target] { cursor: pointer; }
.news-item[data-modal-target]:hover { border-color: var(--yellow-dark); }
.news-item[data-modal-target]:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.news-item[data-modal-target] .news-foot a { cursor: pointer; position: relative; z-index: 1; }
/* three-photo variant of the news collage */
.news-collage-3 { grid-template-columns: repeat(2, 1fr); }
.news-collage-3 img:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.news-collage-3 img:nth-child(2),
.news-collage-3 img:nth-child(3) { grid-column: span 1; grid-row: span 1; }

/* pictures inside the pop-out — big enough to actually look at */
.modal-shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 22px 0 26px;
}
.modal-shots img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 5px;
  aspect-ratio: 4 / 3;
}
.modal-shots img:nth-child(1) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
@media (max-width: 620px) {
  .modal-shots { grid-template-columns: 1fr; }
  .modal-shots img:nth-child(1) { aspect-ratio: 4 / 3; }
}
/* single photo in a news card */
.news-photo { margin: 2px 0 4px; border-radius: 4px; overflow: hidden; }
.news-photo img {
  width: 100%; height: auto; display: block;
  filter: saturate(0.94) contrast(1.02);
  transition: filter .4s var(--ease);
}
.news-photo:hover img { filter: none; }
/* single-photo variant of the pop-out image block */
.modal-shots.one { grid-template-columns: 1fr; }
.modal-shots.one img { aspect-ratio: auto; max-height: 60vh; object-fit: contain; background: var(--surface); }
/* certificates sit on a light ground with a hairline, like paper */
.news-photo.cert { background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: 10px; }
.news-photo.cert img { filter: none; max-height: 300px; width: auto; margin: 0 auto; }
/* keep a tall photo from stretching its card past its neighbours */
.news-photo img { max-height: 260px; object-fit: cover; object-position: center; }
.news-photo.cert img { max-height: 300px; object-fit: contain; }


/* telematics screenshot in the pop-out */
.evi-shot { margin: 22px 0 6px; text-align: center; }
.evi-shot img { max-width: 100%; height: auto; display: block; margin: 0 auto; border-radius: 5px; }
.evi-shot figcaption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ==========================================================================
   News: an upcoming event, given its own colour
   ========================================================================== */
.news-item.upcoming {
  grid-column: 1 / -1;
  background: linear-gradient(180deg, rgba(244,180,26,0.10), rgba(244,180,26,0.03));
  border-color: var(--yellow);
}
.tag-up { background: var(--yellow) !important; color: var(--ink) !important; }
.up-row { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
@media (min-width: 760px) { .up-row { grid-template-columns: 1fr 190px; gap: 34px; } }
.up-copy p { margin-bottom: 14px; }
.up-poster { display: block; }
.up-poster img {
  width: 100%;
  display: block;
  border-radius: 4px;
  transform: rotate(-1.4deg);
  box-shadow: 0 8px 22px rgba(20,20,20,.26);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.up-poster:hover img { transform: rotate(0deg) scale(1.03); box-shadow: 0 12px 30px rgba(20,20,20,.34); }

/* ---- Phone fixes (real-device testing, 19 Aug 2026) ---------------------- */

/* Utility strip: the hours + phone + email don't fit a phone width, so the
   strip wrapped into a broken multi-line block. On phones keep just the two
   contact links, side by side, nowrap. */
@media (max-width: 700px) {
  .utility { font-size: 11px; letter-spacing: 0.04em; }
  .utility .wrap > div:first-child { display: none; }
  .utility .links { width: 100%; justify-content: space-between; gap: 12px; }
  .utility .links a { white-space: nowrap; }
}

/* News collages: on iPhone the fixed grid-auto-rows sizing collapsed and the
   photos painted over the text below. On phones, size every image by its own
   aspect-ratio instead — the card then grows to contain them and nothing can
   overlap. Lead photo full-width, the rest in a 2-up grid. */
@media (max-width: 700px) {
  .news-collage,
  .news-collage-3 { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .news-collage img,
  .news-collage-3 img {
    height: auto;
    aspect-ratio: 1 / 1;
    grid-column: auto;
    grid-row: auto;
  }
  .news-collage img:nth-child(1),
  .news-collage-3 img:nth-child(1) {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 10;
  }
}

/* Depot map pins are links to Google Maps */
a.ico.depot-pin { cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease); }
a.ico.depot-pin:hover { background: var(--ink); color: var(--yellow); transform: translateY(-2px); }
