/* =============================================================
   STRATA — mining & geological consultancy
   Design system / shared stylesheet
   Palette: phyllite slate · weathered stone · copper patina · iron ochre
   Type: Archivo (display/UI) · Source Serif 4 (body) · IBM Plex Mono (data)
   ============================================================= */

:root {
  /* color */
  --slate:    #1B2127;   /* deep phyllite — dark surfaces + text on light */
  --slate-2:  #232B33;   /* raised slate */
  --grey:     #5E656C;   /* muted slate — secondary text */
  --grey-2:   #9AA0A5;   /* faint labels on dark */
  --stone:    #E7E8E4;   /* weathered-stone page background (cool, not cream) */
  --paper:    #F3F3F0;   /* light panel */
  --line:     #D2D4CF;   /* hairlines on light */
  --line-dk:  #333C45;   /* hairlines on dark */
  --patina:   #2E6E69;   /* oxidized copper — primary accent / actions / links */
  --patina-d: #245752;   /* patina pressed */
  --ochre:    #C28A1C;   /* brand gold (matches logo) — accents, strata, data */
  --ochre-l:  #E0AE36;   /* bright gold — on dark surfaces */
  --ochre-d:  #9A6F12;   /* deep gold — hover / pressed */

  /* type */
  --display: "Archivo", system-ui, sans-serif;
  --body:    "Source Serif 4", Georgia, serif;
  --mono:    "IBM Plex Mono", ui-monospace, monospace;

  /* scale */
  --step--1: clamp(0.78rem, 0.74rem + 0.2vw, 0.85rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3:  clamp(2rem, 1.6rem + 2vw, 3rem);
  --step-4:  clamp(2.6rem, 1.9rem + 3.4vw, 4.6rem);

  /* space + shell */
  --gutter: clamp(1.1rem, 0.6rem + 2.5vw, 2.5rem);
  --maxw: 1180px;
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--stone);
  color: var(--slate);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--slate);
}

p { margin: 0 0 1rem; }
a { color: var(--patina); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }

/* eyebrow / data label */
.eyebrow {
  font-family: var(--mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--patina);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 1.6em; height: 2px;
  background: var(--ochre);
}
.eyebrow.on-dark { color: var(--ochre-l); }

/* ---- layout shell ---- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 2rem + 6vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 1.6rem + 4vw, 4rem); }

/* =============================================================
   NAV
   ============================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--slate);
  border-bottom: 1px solid var(--line-dk);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 64px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand:hover { text-decoration: none; }
.brand__mark { height: 36px; width: auto; flex: none; }
.brand__lock { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.brand__sub { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.24em; color: var(--ochre-l); text-transform: uppercase; }
.brand__name {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: 0.01em;
  font-size: 1.12rem;
  color: var(--stone);
  text-transform: uppercase;
}
.brand__name .placeholder { color: var(--ochre-l); }

.nav__links { display: flex; align-items: center; gap: 0.4rem; }
.nav__links a {
  color: var(--grey-2);
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
}
.nav__links a:hover { color: var(--stone); text-decoration: none; }
.nav__links a[aria-current="page"] { color: var(--stone); }
.nav__links a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; margin-top: 3px; background: var(--ochre);
}

.nav__toggle {
  display: none; background: none; border: 1px solid var(--line-dk);
  border-radius: var(--radius); padding: 0.45rem 0.55rem; cursor: pointer;
}
.nav__toggle span { display: block; width: 20px; height: 2px; background: var(--stone); margin: 4px 0; transition: transform .25s, opacity .2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* button */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--display); font-weight: 600; font-size: 0.95rem;
  padding: 0.7rem 1.25rem; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--ochre); color: var(--slate); }
.btn--primary:hover { background: var(--ochre-d); color: var(--slate); }
.btn--ghost { background: transparent; color: var(--slate); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--slate); }
.btn--on-dark { background: transparent; color: var(--stone); border-color: var(--line-dk); }
.btn--on-dark:hover { border-color: var(--ochre-l); color: var(--ochre-l); }
.btn--lg { padding: 0.85rem 1.6rem; font-size: 1rem; }
.btn .arr { transition: transform .18s; }
.btn:hover .arr { transform: translateX(3px); }

.nav .btn--primary { padding: 0.55rem 1.05rem; }

/* =============================================================
   HERO  (the signature: stratigraphic cross-section)
   ============================================================= */
.hero { background: var(--slate); color: var(--stone); overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.5rem, 1rem + 3vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 2rem + 5vw, 5.5rem);
}
.hero h1 {
  color: var(--stone);
  font-size: var(--step-4);
  font-stretch: 108%;
  margin: 1.1rem 0 1.2rem;
}
.hero h1 em { font-style: normal; color: var(--ochre-l); }
.hero__sub { color: var(--grey-2); font-size: var(--step-1); max-width: 34ch; margin-bottom: 1.8rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* cross-section panel */
.section-fig { position: relative; }
.section-fig svg { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.section-fig__cap {
  font-family: var(--mono); font-size: var(--step--1); color: var(--grey-2);
  margin-top: 0.7rem; letter-spacing: 0.03em;
}

/* draw-in for contour lines */
.contour { fill: none; stroke: var(--ochre-l); stroke-width: 1; opacity: 0.85; }
@media (prefers-reduced-motion: no-preference) {
  .contour {
    stroke-dasharray: 1200; stroke-dashoffset: 1200;
    animation: draw 2.2s ease forwards;
  }
  .contour:nth-child(2) { animation-delay: .15s; }
  .contour:nth-child(3) { animation-delay: .3s; }
  .contour:nth-child(4) { animation-delay: .45s; }
  .contour:nth-child(5) { animation-delay: .6s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* depth axis labels */
.depth-label { font-family: var(--mono); font-size: 10px; fill: var(--grey-2); letter-spacing: 0.05em; }
.strata-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; }

/* =============================================================
   STRATA DIVIDER  (reused section break — borehole log)
   ============================================================= */
.strata {
  display: flex; align-items: stretch; gap: 0; height: 14px; width: 100%;
  border-radius: 2px; overflow: hidden; border: 1px solid var(--line);
}
.strata span { display: block; flex: 1; }
.strata .s1 { background: var(--slate); flex: 1.4; }
.strata .s2 { background: var(--grey); flex: 0.8; }
.strata .s3 { background: var(--ochre); flex: 0.5; }
.strata .s4 { background: var(--patina); flex: 1.1; }
.strata .s5 { background: #C2C4BE; flex: 0.7; }
.strata-row { display: flex; align-items: center; gap: 1rem; }
.strata-row .strata { flex: 1; }
.strata-row .tag { font-family: var(--mono); font-size: var(--step--1); color: var(--grey); white-space: nowrap; letter-spacing: 0.08em; }

/* =============================================================
   SECTION HEADERS + intro
   ============================================================= */
.sec-head { max-width: 60ch; margin-bottom: clamp(2rem, 1.4rem + 2vw, 3rem); }
.sec-head h2 { font-size: var(--step-3); margin: 0.9rem 0 0.8rem; font-stretch: 104%; }
.sec-head p { color: var(--grey); font-size: var(--step-1); }
.lead { color: var(--grey); font-size: var(--step-1); max-width: 65ch; }

/* =============================================================
   SERVICE CARDS
   ============================================================= */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.svc {
  background: var(--paper); padding: 1.8rem 1.6rem 2rem;
  display: flex; flex-direction: column; gap: 0.7rem;
  transition: background .2s;
}
.svc:hover { background: #fff; }
.svc__no { font-family: var(--mono); font-size: var(--step--1); color: var(--ochre); letter-spacing: 0.1em; }
.svc h3 { font-size: var(--step-1); }
.svc p { color: var(--grey); font-size: 0.98rem; margin: 0; }
.svc__meta { margin-top: auto; padding-top: 0.8rem; font-family: var(--mono); font-size: 0.72rem; color: var(--grey); letter-spacing: 0.06em; border-top: 1px solid var(--line); }

/* detailed service list (services page) */
.svc-list { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.svc-item {
  background: var(--stone); display: grid; grid-template-columns: 5rem 1fr; gap: clamp(1rem,2vw,2.5rem);
  padding: clamp(1.5rem, 1rem + 2vw, 2.6rem) 0;
}
.svc-item .wrap2 { display: contents; }
.svc-item__no { font-family: var(--mono); font-weight: 600; color: var(--ochre); font-size: 1rem; letter-spacing: 0.08em; padding-top: 0.35rem; }
.svc-item__body h3 { font-size: var(--step-2); font-stretch: 104%; margin-bottom: 0.7rem; }
.svc-item__body p { color: var(--grey); max-width: 62ch; }
.svc-item__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.tag-chip { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.05em; color: var(--slate); background: var(--paper); border: 1px solid var(--line); padding: 0.3rem 0.6rem; border-radius: 2px; }

/* =============================================================
   CAPABILITY / STAT STRIP
   ============================================================= */
.strip { background: var(--slate); color: var(--stone); }
.strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dk); border: 1px solid var(--line-dk); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--slate); padding: 1.7rem 1.4rem; }
.stat__k { font-family: var(--display); font-weight: 800; font-size: var(--step-3); font-stretch: 108%; color: var(--stone); line-height: 1; }
.stat__k span { color: var(--ochre-l); }
.stat__l { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; color: var(--grey-2); text-transform: uppercase; margin-top: 0.6rem; }

/* =============================================================
   CTA BAND
   ============================================================= */
.cta-band { background: var(--patina); color: #fff; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-block: clamp(2.5rem, 1.6rem + 3vw, 3.5rem); }
.cta-band h2 { color: #fff; font-size: var(--step-3); font-stretch: 104%; max-width: 20ch; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0.6rem 0 0; max-width: 42ch; }
.cta-band .btn--primary { background: var(--ochre); color: var(--slate); }
.cta-band .btn--primary:hover { background: var(--ochre-l); color: var(--slate); }

/* =============================================================
   FORM  (apply page)
   ============================================================= */
.form-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 1.5rem + 3vw, 4.5rem); align-items: start; }
.form-aside { position: sticky; top: 88px; }
.form-aside h2 { font-size: var(--step-2); font-stretch: 104%; margin-bottom: 0.9rem; }
.form-aside p { color: var(--grey); }
.form-aside ol { font-family: var(--mono); font-size: 0.85rem; color: var(--slate); padding-left: 1.2rem; margin-top: 1.4rem; line-height: 1.9; }

.field { margin-bottom: 1.2rem; }
.field label { display: block; font-family: var(--display); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; }
.field .hint { font-family: var(--mono); font-size: 0.72rem; color: var(--grey); font-weight: 400; }
.field .req { color: var(--ochre); }
.field input[type=text],
.field input[type=email],
.field input[type=tel],
.field select,
.field textarea {
  width: 100%; font-family: var(--body); font-size: 1rem; color: var(--slate);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.7rem 0.85rem; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--patina); box-shadow: 0 0 0 3px rgba(46,110,105,0.15);
}
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.65rem 0.8rem; font-size: 0.92rem; cursor: pointer; }
.check input { margin-top: 0.2rem; accent-color: var(--patina); }
.check:hover { border-color: var(--grey); }

.honey { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-status { font-family: var(--mono); font-size: 0.85rem; padding: 0.8rem 1rem; border-radius: var(--radius); margin-top: 0.5rem; display: none; }
.form-status.is-ok { display: block; background: rgba(46,110,105,0.12); border: 1px solid var(--patina); color: var(--patina-d); }
.form-status.is-err { display: block; background: rgba(176,130,42,0.12); border: 1px solid var(--ochre); color: #7a5a18; }

.notice {
  font-family: var(--mono); font-size: 0.78rem; line-height: 1.6; color: #7a5a18;
  background: rgba(176,130,42,0.10); border: 1px solid var(--ochre);
  border-radius: var(--radius); padding: 0.8rem 1rem; margin-bottom: 1.6rem;
}

/* =============================================================
   CV / RESUME PAGE
   ============================================================= */
.cv-head { background: var(--slate); color: var(--stone); }
.cv-head__grid { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; padding-block: clamp(2.5rem,2rem+4vw,4.5rem); }
.cv-head h1 { color: var(--stone); font-size: var(--step-4); font-stretch: 106%; }
.cv-head .role { font-family: var(--mono); color: var(--ochre-l); letter-spacing: 0.1em; text-transform: uppercase; font-size: var(--step--1); margin-bottom: 0.8rem; }
.cv-head .meta { color: var(--grey-2); font-family: var(--mono); font-size: 0.85rem; line-height: 1.9; }
.cv-head .meta a { color: var(--stone); }

.cv-layout { display: grid; grid-template-columns: 0.85fr 2fr; gap: clamp(2rem, 1.5rem + 3vw, 4.5rem); align-items: start; }
.cv-side { position: sticky; top: 88px; display: grid; gap: 2rem; }
.cv-block h2, .cv-side h2 {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--patina); margin-bottom: 0.9rem;
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--line);
}
.cv-side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.cv-side li { font-size: 0.95rem; color: var(--slate); }
.skill-bar { display: grid; gap: 0.5rem; }
.skill { display: flex; justify-content: space-between; font-size: 0.92rem; padding-bottom: 0.4rem; border-bottom: 1px dotted var(--line); }
.skill span:last-child { font-family: var(--mono); font-size: 0.78rem; color: var(--grey); }

.cv-main { display: grid; gap: clamp(2rem, 1.5rem + 2vw, 3rem); }
.entry { display: grid; grid-template-columns: 8rem 1fr; gap: 1.4rem; }
.entry__when { font-family: var(--mono); font-size: 0.8rem; color: var(--grey); letter-spacing: 0.04em; padding-top: 0.2rem; }
.entry__what h3 { font-size: var(--step-1); margin-bottom: 0.2rem; }
.entry__what .org { color: var(--patina); font-weight: 600; font-family: var(--display); font-size: 0.95rem; margin-bottom: 0.6rem; }
.entry__what p { color: var(--grey); margin: 0 0 0.5rem; }
.entry__what ul { color: var(--grey); margin: 0.4rem 0 0; padding-left: 1.1rem; }
.entry__what li { margin-bottom: 0.35rem; }

/* =============================================================
   FOOTER
   ============================================================= */
.footer { background: var(--slate); color: var(--grey-2); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-block: 3.5rem 2rem; }
.footer__brand .brand__name { color: var(--stone); }
.footer p { color: var(--grey-2); font-size: 0.95rem; max-width: 32ch; }
.footer__logo { width: 156px; height: auto; margin-bottom: 0.9rem; }
.footer__addr strong { color: var(--stone); font-family: var(--display); font-weight: 600; font-style: normal; }
.cv-head__logo { height: 64px; width: auto; margin-bottom: 1.1rem; }
.footer h4 { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.footer a { color: var(--grey-2); font-size: 0.95rem; }
.footer a:hover { color: var(--stone); }
.footer__addr { font-family: var(--mono); font-size: 0.85rem; line-height: 1.9; color: var(--grey-2); }
.footer__bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 1.5rem; border-top: 1px solid var(--line-dk); font-family: var(--mono); font-size: 0.74rem; color: var(--grey); letter-spacing: 0.04em; }

/* =============================================================
   REVEAL ON SCROLL
   ============================================================= */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* focus visibility */
:focus-visible { outline: 2px solid var(--patina); outline-offset: 2px; border-radius: 2px; }
.hero :focus-visible, .nav :focus-visible, .footer :focus-visible, .cv-head :focus-visible { outline-color: var(--ochre-l); }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; }
  .section-fig { order: -1; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .strip__grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .form-aside { position: static; }
  .cv-layout { grid-template-columns: 1fr; }
  .cv-side { position: static; grid-template-columns: repeat(2, 1fr); }
  .cv-head__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--slate); border-bottom: 1px solid var(--line-dk);
    padding: 0.5rem var(--gutter) 1rem;
    display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 0.7rem 0; }
  .nav__links .btn { margin-top: 0.5rem; justify-content: center; }
  .svc-grid { grid-template-columns: 1fr; }
  .strip__grid { grid-template-columns: 1fr 1fr; }
  .checks { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
  .entry { grid-template-columns: 1fr; gap: 0.4rem; }
  .entry__when { padding-top: 0; }
  .cv-side { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}

/* =============================================================
   FIELD REEL  (video + image slider — shared, all pages)
   ============================================================= */
.reel-head { margin-bottom: 1.1rem; }
.reel-head .tag { color: var(--ochre-d); }

.reel {
  position: relative;
  background: var(--slate);
  border: 1px solid var(--line-dk);
  border-radius: var(--radius);
  overflow: hidden;
}

.reel__stage {
  position: relative;
  height: clamp(380px, 60vh, 600px);
  background: radial-gradient(125% 85% at 50% 0%, #232B33 0%, #1B2127 58%, #14191D 100%);
  overflow: hidden;
}
/* faint survey grid, fading at the edges */
.reel__stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.45;
  background-image:
    linear-gradient(var(--line-dk) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dk) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 38%, #000 52%, transparent 100%);
          mask-image: radial-gradient(120% 100% at 50% 38%, #000 52%, transparent 100%);
}

.reel__slide {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity .5s ease, visibility 0s linear .5s;
}
.reel__slide.is-active {
  opacity: 1; visibility: visible;
  transition: opacity .5s ease, visibility 0s;
}
.reel__media {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  margin: auto; display: block; background: transparent;
}

/* caption sits at the TOP so it never collides with video controls */
.reel__cap {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 1.3rem 2.6rem;
  background: linear-gradient(to bottom, rgba(18,22,26,0.92), rgba(18,22,26,0));
  pointer-events: none;
}
.reel__cap h3 { color: var(--stone); font-size: var(--step-1); font-stretch: 104%; margin: 0; }
.reel__cap p {
  color: var(--grey-2); font-family: var(--mono); font-size: 0.78rem;
  letter-spacing: 0.04em; margin: 0.3rem 0 0;
}
.reel__tag {
  flex: none; font-family: var(--mono); font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate);
  background: var(--ochre); padding: 0.32rem 0.6rem; border-radius: 2px; white-space: nowrap;
}

/* prev / next */
.reel__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(20,24,28,0.55); border: 1px solid var(--line-dk);
  color: var(--stone); font-size: 1.3rem; line-height: 1; cursor: pointer;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background .18s, border-color .18s, color .18s;
}
.reel__nav:hover { background: rgba(20,24,28,0.85); border-color: var(--ochre-l); color: var(--ochre-l); }
.reel__nav--prev { left: 14px; }
.reel__nav--next { right: 14px; }

/* control bar under the stage (keeps clear of native video controls) */
.reel__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 1rem; border-top: 1px solid var(--line-dk); background: var(--slate);
}
.reel__dots { display: flex; gap: 0.5rem; }
.reel__dot {
  width: 9px; height: 9px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1px solid var(--grey-2); background: transparent;
  transition: background .18s, border-color .18s, transform .18s;
}
.reel__dot:hover { border-color: var(--stone); }
.reel__dot.is-active { background: var(--ochre-l); border-color: var(--ochre-l); transform: scale(1.18); }
.reel__count { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; color: var(--grey-2); }
.reel__count b { color: var(--ochre-l); font-weight: 600; }

@media (max-width: 640px) {
  .reel__stage { height: 68vh; max-height: 560px; }
  .reel__nav { width: 40px; height: 40px; font-size: 1.15rem; }
  .reel__cap h3 { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  .reel__slide { transition: none; }
}

/* =============================================================
   INLINE REEL  (embedded slider — Home hero & Services hero)
   Sized to sit comfortably next to / above adjacent content.
   ============================================================= */
.reel--inline .reel__stage { height: auto; aspect-ratio: 16 / 10; }
.reel--inline .reel__nav { width: 38px; height: 38px; font-size: 1.1rem; }
.reel--inline .reel__nav--prev { left: 10px; }
.reel--inline .reel__nav--next { right: 10px; }
.reel--inline .reel__cap { padding: 0.85rem 1.05rem 2.2rem; }
.reel--inline .reel__cap h3 { font-size: 1.02rem; }

/* Home hero: slider stacked above the Fig. 01 cross-section, same width */
.hero__media { display: flex; flex-direction: column; gap: 1.25rem; }

/* Services hero: heading on the left, slider on the right */
.svc-hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: center;
}
@media (max-width: 920px) {
  .svc-hero__grid { grid-template-columns: 1fr; }
}
