/* ============================================================
   Jacobs Construction LLC — jacobsconstructionmn.com
   Design system: "Field Ledger"
   Navy #1B263B / Orange #F4A261 — Barlow Condensed + Barlow
   ============================================================ */

:root {
  --navy: #1B263B;
  --navy-deep: #131C2C;
  --navy-panel: #223049;
  --navy-line: #33415C;
  --paper: #F6F4EF;
  --white: #FFFFFF;
  --ink: #212B3D;
  --slate: #55637A;
  --border: #E3DED4;
  --orange: #F4A261;
  --orange-deep: #DE8438;
  --on-navy: #BAC4D6;
  --on-navy-strong: #E9EDF4;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --radius: 4px;
  --radius-photo: 6px;
  --container: 1160px;
  --section: clamp(72px, 10vw, 128px);
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- Type ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--navy);
}
.h-xl { font-size: clamp(48px, 8vw, 92px); }
.h-lg { font-size: clamp(38px, 5.5vw, 60px); }
.h-md { font-size: clamp(28px, 3.6vw, 40px); }
.h-sm { font-size: clamp(22px, 2.6vw, 27px); letter-spacing: 0.02em; }
.lead { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.55; color: var(--slate); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark .display { color: var(--on-navy-strong); }
.on-dark p { color: var(--on-navy); }

/* Eyebrow: orange tick + condensed caps */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 10px; height: 10px;
  background: var(--orange);
  flex: none;
}
.on-dark .eyebrow { color: var(--orange); }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section) 0; }
.section--dark { background: var(--navy); }
.section--deep { background: var(--navy-deep); }
.section--white { background: var(--white); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head p { margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 180ms ease-out, color 180ms ease-out, border-color 180ms ease-out, transform 180ms ease-out;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--orange); color: var(--navy-deep); }
.btn--primary:hover { background: var(--orange-deep); color: var(--navy-deep); }
.btn--ghost { border-color: rgba(233, 237, 244, 0.45); color: var(--on-navy-strong); }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-panel); }
.btn--block { width: 100%; }

.text-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
  border-bottom: 2px solid var(--orange);
  padding-bottom: 2px;
  transition: color 160ms ease-out, border-color 160ms ease-out;
}
.text-link:hover { color: var(--orange-deep); }
.on-dark .text-link { color: var(--on-navy-strong); }
.on-dark .text-link:hover { color: var(--orange); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(233, 237, 244, 0.08);
}
/* Blur lives on a pseudo-element, not .site-header itself — backdrop-filter
   on an ancestor makes it the containing block for position:fixed descendants,
   which trapped the full-screen mobile nav panel inside the header's own height. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(19, 28, 44, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color 220ms ease-out;
}
.site-header.is-solid::before { background: rgba(19, 28, 44, 0.97); }
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Wordmark */
.wordmark { display: flex; flex-direction: column; text-decoration: none; line-height: 1; flex: none; }
.wordmark strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.04em;
  color: var(--white);
  text-transform: uppercase;
}
.wordmark span {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.42em;
  color: var(--orange);
  text-transform: uppercase;
  margin-top: 3px;
}

.main-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 28px; }
.main-nav a.nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--on-navy-strong);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 160ms ease-out, border-color 160ms ease-out;
}
.main-nav a.nav-link:hover, .main-nav a.nav-link[aria-current="page"] { color: var(--orange); }
.main-nav a.nav-link[aria-current="page"] { border-bottom-color: var(--orange); }

/* Services dropdown */
.has-drop { position: relative; }
.drop-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: none; padding: 6px 0; cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600; font-size: 17.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--on-navy-strong);
  border-bottom: 2px solid transparent;
  transition: color 160ms ease-out;
}
.drop-toggle::after {
  content: ""; width: 7px; height: 7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease-out;
}
.has-drop:hover .drop-toggle, .has-drop.is-open .drop-toggle, .drop-toggle[aria-current="page"] { color: var(--orange); }
.has-drop.is-open .drop-toggle::after { transform: rotate(225deg) translateY(-2px); }
.drop-menu {
  position: absolute; top: calc(100% + 14px); left: -20px;
  min-width: 230px;
  background: var(--navy-deep);
  border: 1px solid var(--navy-line);
  border-top: 3px solid var(--orange);
  border-radius: var(--radius);
  padding: 10px 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 180ms ease-out, transform 180ms ease-out, visibility 180ms;
  box-shadow: 0 18px 40px rgba(10, 16, 28, 0.45);
}
.has-drop:hover .drop-menu, .has-drop:focus-within .drop-menu, .has-drop.is-open .drop-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.drop-menu a {
  display: block;
  padding: 11px 22px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 17px; letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none;
  color: var(--on-navy);
  transition: color 140ms ease-out, background-color 140ms ease-out, padding-left 140ms ease-out;
}
.drop-menu a:hover, .drop-menu a[aria-current="page"] { color: var(--orange); background: rgba(244, 162, 97, 0.07); padding-left: 27px; }

.header-cta { display: flex; align-items: center; gap: 22px; }
.header-phone {
  display: flex; flex-direction: column; text-decoration: none; line-height: 1.15; text-align: right;
}
.header-phone small {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-navy); font-weight: 600;
}
.header-phone strong { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: 0.05em; color: var(--white); transition: color 150ms ease-out; }
.header-phone:hover strong { color: var(--orange); }
.btn--header { padding: 12px 22px; font-size: 17px; }

/* Mobile nav */
.nav-burger {
  display: none;
  margin-left: auto;
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px;
  position: relative;
}
.nav-burger span, .nav-burger::before, .nav-burger::after {
  content: ""; position: absolute; left: 8px; right: 8px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: transform 220ms ease-out, opacity 180ms ease-out, top 220ms ease-out;
}
.nav-burger::before { top: 14px; }
.nav-burger span { top: 21px; }
.nav-burger::after { top: 28px; }
body.nav-open .nav-burger::before { top: 21px; transform: rotate(45deg); }
body.nav-open .nav-burger span { opacity: 0; }
body.nav-open .nav-burger::after { top: 21px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .main-nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--navy-deep);
    margin: 0;
    padding: 32px 24px 48px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 260ms ease-out;
  }
  body.nav-open .main-nav { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a.nav-link, .drop-toggle {
    display: flex; width: 100%;
    font-size: 24px;
    padding: 16px 0;
    border-bottom: 1px solid var(--navy-line);
  }
  .main-nav a.nav-link[aria-current="page"] { border-bottom-color: var(--navy-line); }
  .drop-toggle { justify-content: space-between; }
  .drop-menu {
    position: static;
    min-width: 0;
    opacity: 1; visibility: visible; transform: none;
    border: none; border-left: 3px solid var(--orange);
    border-radius: 0;
    box-shadow: none;
    background: rgba(244, 162, 97, 0.04);
    margin: 0 0 8px;
    padding: 4px 0;
    display: none;
  }
  .has-drop.is-open .drop-menu { display: block; }
  .drop-menu a { font-size: 19px; padding: 12px 20px; }
  .header-cta { margin-top: 28px; flex-direction: column; align-items: stretch; gap: 16px; }
  .header-phone { text-align: center; align-items: center; }
  .header-phone strong { font-size: 26px; }
  .btn--header { padding: 16px 22px; font-size: 19px; }
  .nav-burger { display: block; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy-deep);
  color: var(--on-navy-strong);
  display: flex;
  align-items: flex-end;
  min-height: min(92vh, 860px);
  overflow: hidden;
}
.hero--page { min-height: min(62vh, 560px); }
.hero-media { position: absolute; inset: 0; }
.hero-media video, .hero-media img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(19, 28, 44, 0.94) 0%, rgba(19, 28, 44, 0.45) 45%, rgba(19, 28, 44, 0.35) 100%),
    linear-gradient(100deg, rgba(19, 28, 44, 0.55) 0%, rgba(19, 28, 44, 0) 60%);
}
.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: calc(var(--header-h) + 64px) 24px 72px;
}
.hero--page .hero-inner { padding-bottom: 56px; }
.hero h1 { color: var(--white); max-width: 13em; }
.hero .hero-sub { margin-top: 20px; max-width: 34em; font-size: clamp(18px, 2.3vw, 22px); line-height: 1.5; color: var(--on-navy); }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 16px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 17px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
}
.hero-kicker::before { content: ""; width: 34px; height: 2px; background: var(--orange); }

/* Graphic hero (no photo): blueprint grid texture */
.hero--graphic { background:
  linear-gradient(rgba(233,237,244,0.045) 1px, transparent 1px),
  linear-gradient(90deg, rgba(233,237,244,0.045) 1px, transparent 1px),
  var(--navy-deep);
  background-size: 56px 56px, 56px 56px, auto;
}

/* ---------- Stat band ---------- */
.stat-band { background: var(--navy-deep); border-top: 1px solid var(--navy-line); border-bottom: 1px solid var(--navy-line); }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 34px 24px;
  text-align: center;
  border-left: 1px solid var(--navy-line);
}
.stat:first-child { border-left: none; }
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1;
  color: var(--orange);
  letter-spacing: 0.01em;
}
.stat span {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-navy);
}
@media (max-width: 760px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat { border-left: none; border-top: 1px solid var(--navy-line); }
  .stat:nth-child(-n+2) { border-top: none; }
  .stat:nth-child(even) { border-left: 1px solid var(--navy-line); }
}

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card-grid--services { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px 28px;
  position: relative;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 200ms ease-out, border-color 200ms ease-out;
}
.card::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 3px;
  background: var(--navy);
  border-radius: var(--radius) var(--radius) 0 0;
  transition: background-color 200ms ease-out;
}
.card:hover { transform: translateY(-4px); border-color: #D3CDBF; }
.card:hover::before { background: var(--orange); }
.card h3 { font-size: 23px; margin: 18px 0 10px; letter-spacing: 0.03em; }
.card p { color: var(--slate); font-size: 16px; flex: 1; }
.card .card-more {
  margin-top: 20px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 16px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--orange-deep);
}
.card .card-more::after { content: " \2192"; }
.card-icon { width: 44px; height: 44px; color: var(--navy); }
.card:hover .card-icon { color: var(--orange-deep); }
.card-icon svg { width: 100%; height: 100%; }

/* Dark cards (on navy sections) */
.section--dark .card, .section--deep .card {
  background: var(--navy-panel);
  border-color: var(--navy-line);
}
.section--dark .card h3, .section--deep .card h3 { color: var(--on-navy-strong); }
.section--dark .card p, .section--deep .card p { color: var(--on-navy); }
.section--dark .card-icon, .section--deep .card-icon { color: var(--orange); }

/* ---------- Checklist ---------- */
.checklist { display: grid; gap: 18px; }
.checklist li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.checklist li::before {
  content: "";
  flex: none;
  width: 22px; height: 22px;
  margin-top: 2px;
  background: var(--orange-deep);
  -webkit-mask: var(--tick-mask) center / contain no-repeat;
  mask: var(--tick-mask) center / contain no-repeat;
}
.checklist strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 20px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--navy); }
.checklist span { color: var(--slate); font-size: 16px; }

/* ---------- Field note ---------- */
.field-note {
  background: var(--navy);
  border-left: 5px solid var(--orange);
  border-radius: var(--radius);
  padding: 28px 28px 30px;
  color: var(--on-navy);
}
.field-note h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.field-note h4::before { content: "\2691"; font-size: 15px; }
.field-note p { font-size: 17px; line-height: 1.6; }
.field-note p strong { color: var(--on-navy-strong); }

/* ---------- Split layout ---------- */
.split { display: grid; gap: clamp(36px, 6vw, 72px); grid-template-columns: 1fr 1fr; align-items: center; }
.split--wide-text { grid-template-columns: 1.15fr 0.85fr; }
@media (max-width: 880px) { .split, .split--wide-text { grid-template-columns: 1fr; } }
.split-photo { position: relative; }
.split-photo img { border-radius: var(--radius-photo); width: 100%; height: 100%; object-fit: cover; }
.split-photo::after {
  content: "";
  position: absolute;
  top: 18px; left: -18px; right: 18px; bottom: -18px;
  border: 2px solid var(--orange);
  border-radius: var(--radius-photo);
  z-index: -1;
  opacity: 0.55;
}
@media (max-width: 880px) { .split-photo::after { display: none; } }

/* Feature bullets (Jacobs Difference) */
.feature-list { display: grid; gap: 22px; margin-top: 32px; }
.feature-list li { display: flex; gap: 18px; }
.feature-list .f-tick {
  flex: none;
  width: 46px; height: 46px;
  background: var(--navy);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--orange);
}
.feature-list .f-tick svg { width: 24px; height: 24px; }
.feature-list strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 21px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--navy); margin-bottom: 2px; }
.feature-list p { color: var(--slate); font-size: 16px; }
.on-dark .feature-list strong { color: var(--on-navy-strong); }
.on-dark .feature-list p { color: var(--on-navy); }
.on-dark .feature-list .f-tick { background: var(--navy-panel); }

/* ---------- Process steps (numbered) ---------- */
.steps { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: step; }
.step {
  background: var(--navy-panel);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
  counter-increment: step;
}
.step::before {
  content: "0" counter(step);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 64px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--orange);
  display: block;
  margin-bottom: 14px;
}
.step h3 { color: var(--on-navy-strong); font-size: 23px; margin-bottom: 8px; }
.step p { color: var(--on-navy); font-size: 16px; }

/* Light variant */
.steps--light .step { background: var(--white); border-color: var(--border); }
.steps--light .step::before { -webkit-text-stroke-color: var(--orange-deep); }
.steps--light .step h3 { color: var(--navy); }
.steps--light .step p { color: var(--slate); }

/* ---------- Photo strip ---------- */
.photo-strip { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.photo-strip a, .photo-strip figure { display: block; border-radius: var(--radius-photo); overflow: hidden; position: relative; }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 400ms ease-out; }
.photo-strip a:hover img { transform: scale(1.04); }
@media (max-width: 700px) { .photo-strip { grid-template-columns: 1fr 1fr; } }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gallery-grid a { display: block; border-radius: var(--radius-photo); overflow: hidden; position: relative; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 400ms ease-out; }
.gallery-grid a:hover img { transform: scale(1.04); }
.gallery-grid a::after {
  content: attr(data-caption);
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 34px 16px 12px;
  background: linear-gradient(to top, rgba(19,28,44,0.85), transparent);
  color: var(--on-navy-strong);
  font-family: var(--font-display);
  font-weight: 500; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase;
  opacity: 0; transition: opacity 220ms ease-out;
}
.gallery-grid a:hover::after { opacity: 1; }

/* Case study chapters */
.chapter { display: grid; gap: clamp(32px, 5vw, 64px); grid-template-columns: 0.9fr 1.1fr; align-items: center; }
.chapter:nth-of-type(even) .chapter-text { order: 2; }
@media (max-width: 880px) {
  .chapter { grid-template-columns: 1fr; }
  .chapter:nth-of-type(even) .chapter-text { order: 0; }
}
.chapter + .chapter { margin-top: clamp(56px, 8vw, 96px); }
.chapter-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 7vw, 84px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--orange);
  display: block;
  margin-bottom: 16px;
}
.chapter-text h3 { font-size: clamp(26px, 3.4vw, 36px); color: var(--on-navy-strong); margin-bottom: 14px; }
.chapter-text p { color: var(--on-navy); }
.chapter-photos { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.chapter-photos a { display: block; border-radius: var(--radius-photo); overflow: hidden; }
.chapter-photos img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 400ms ease-out; }
.chapter-photos a:hover img { transform: scale(1.04); }
.chapter-photos a.tall { grid-row: span 2; }
.chapter-photos a.tall img { aspect-ratio: auto; height: 100%; }
.chapter-photos a.wide { grid-column: span 2; }
.chapter-photos a.wide img { aspect-ratio: 16 / 9; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 16, 28, 0.94);
  display: none;
  align-items: center; justify-content: center;
  padding: 48px 20px;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(1200px, 94vw);
  max-height: 84vh;
  border-radius: var(--radius-photo);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.lightbox-caption {
  position: absolute; left: 0; right: 0; bottom: 22px;
  text-align: center;
  color: var(--on-navy);
  font-family: var(--font-display);
  font-size: 16px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0 60px;
}
.lightbox button {
  position: absolute;
  background: rgba(34, 48, 73, 0.8);
  border: 1px solid var(--navy-line);
  color: var(--on-navy-strong);
  width: 52px; height: 52px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}
.lightbox button:hover { background: var(--orange); color: var(--navy-deep); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) {
  .lb-prev { left: 10px; } .lb-next { right: 10px; }
  .lightbox button { width: 44px; height: 44px; }
}

/* ---------- CTA band ---------- */
.cta-band {
  background:
    linear-gradient(100deg, rgba(19, 28, 44, 0.96) 30%, rgba(19, 28, 44, 0.82) 100%),
    var(--navy-deep);
  position: relative;
  overflow: hidden;
}
.cta-band .cta-photo {
  position: absolute; inset: 0;
}
.cta-band .cta-photo img { width: 100%; height: 100%; object-fit: cover; opacity: 0.22; }
.cta-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 110px) 24px;
  text-align: center;
}
.cta-inner h2 { color: var(--white); font-size: clamp(34px, 5vw, 56px); }
.cta-inner p { margin: 18px auto 0; max-width: 34em; color: var(--on-navy); font-size: 19px; }
.cta-inner .hero-actions { justify-content: center; }
.cta-phone-line { margin-top: 26px; font-family: var(--font-display); font-size: 19px; letter-spacing: 0.06em; color: var(--on-navy); text-transform: uppercase; }
.cta-phone-line a { color: var(--orange); text-decoration: none; font-weight: 600; }
.cta-phone-line a:hover { text-decoration: underline; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 7px;
}
.field label .req { color: var(--orange-deep); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 16.5px;
  color: var(--ink);
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(244, 162, 97, 0.25);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2355637A' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 42px; }
.form-status { display: none; margin-top: 18px; padding: 15px 18px; border-radius: var(--radius); font-size: 16px; }
.form-status.is-error { display: block; background: #FBEDE4; border: 1px solid #E8B08A; color: #8A4A1D; }
.form-status.is-sending { display: block; background: #EEF0F4; border: 1px solid var(--border); color: var(--slate); }

/* Info blocks on contact */
.info-block { display: flex; gap: 16px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--border); }
.info-block:last-of-type { border-bottom: none; }
.info-block .i-icon {
  flex: none; width: 46px; height: 46px;
  background: var(--navy); color: var(--orange);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}
.info-block .i-icon svg { width: 23px; height: 23px; }
.info-block h3 { font-size: 19px; letter-spacing: 0.06em; margin-bottom: 3px; }
.info-block p, .info-block a { color: var(--slate); font-size: 16.5px; text-decoration: none; }
.info-block a:hover { color: var(--orange-deep); }
.info-block a.big { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--navy); letter-spacing: 0.03em; }
.info-block a.big:hover { color: var(--orange-deep); }

.storm-callout {
  margin-top: 28px;
  background: linear-gradient(135deg, #FBEDDD, #F9E3C8);
  border: 1px solid #EEC391;
  border-left: 5px solid var(--orange-deep);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.storm-callout h4 {
  font-family: var(--font-display);
  font-weight: 700; font-size: 20px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 8px;
  display: flex; align-items: center; gap: 9px;
}
.storm-callout p { color: #6B573C; font-size: 16px; }

/* ---------- Quote band ---------- */
.quote-band { text-align: center; max-width: 860px; margin: 0 auto; }
.quote-band blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--white);
}
.quote-band blockquote em { font-style: normal; color: var(--orange); }
.quote-band cite { display: block; margin-top: 22px; font-style: normal; font-family: var(--font-body); font-size: 16px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-navy); }

/* ---------- Personal note (About) ---------- */
.personal-note {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  position: relative;
}
.personal-note::before {
  content: "\201C";
  position: absolute;
  top: -8px; left: 24px;
  font-family: var(--font-display);
  font-size: 110px;
  line-height: 1;
  color: var(--orange);
  opacity: 0.85;
}
.personal-note p { font-size: 18.5px; line-height: 1.7; color: var(--ink); font-style: italic; }
.personal-note footer { margin-top: 18px; font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-deep); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy); border-top: 3px solid var(--orange); }
.footer-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 80px) 24px 48px;
  display: grid;
  gap: 48px;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
}
@media (max-width: 960px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-logo, .footer-col:last-of-type { grid-column: 1 / -1; }
}
.footer-logo img { width: 190px; height: auto; }
.footer-tag { margin-top: 18px; font-size: 15.5px; line-height: 1.6; max-width: 30em; }
.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 600; font-size: 16px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--on-navy); text-decoration: none; font-size: 15.5px; transition: color 140ms ease-out; }
.footer-col a:hover { color: var(--orange); }
.footer-col p { font-size: 15.5px; line-height: 1.7; }
.footer-col .foot-phone { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--white); letter-spacing: 0.04em; }
.footer-col .foot-phone:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid var(--navy-line); }
.footer-bottom-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between;
  font-size: 13.5px;
  color: #7C8AA3;
}
.footer-bottom-inner a { color: #7C8AA3; text-decoration: none; }
.footer-bottom-inner a:hover { color: var(--orange); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease-out, transform 600ms ease-out; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 90ms; }
.reveal-d2 { transition-delay: 180ms; }
.reveal-d3 { transition-delay: 270ms; }
.reveal-d4 { transition-delay: 360ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .photo-strip img, .gallery-grid img, .chapter-photos img { transition: none; }
}

/* ---------- Utilities ---------- */
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .section-head { margin-left: auto; margin-right: auto; }
.two-col-70 { display: grid; gap: clamp(36px, 5vw, 64px); grid-template-columns: 1.6fr 1fr; align-items: start; }
@media (max-width: 880px) { .two-col-70 { grid-template-columns: 1fr; } }
.sticky-side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 24px; }
@media (max-width: 880px) { .sticky-side { position: static; } }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--orange); color: var(--navy-deep);
  padding: 12px 20px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- Field marks ---------- */
/* The hand-marked "field inspection" vocabulary: rubber stamps, pen ticks,
   and rough underlines. Shared assets live in custom properties so every
   component pulls the same marks. Reused by the Phase 2 case-study rebuild. */
:root {
  /* Hand-drawn double-hit check mark (alpha mask — paint with background-color) */
  --tick-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3.2 14.6l5 4.8L20.8 4.6' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M6.6 13l2.2 2.1' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E");
  /* Speckled rubber-stamp ink texture (alpha mask over the whole stamp) */
  --stamp-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='120'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2.4 -0.45'/%3E%3C/filter%3E%3Crect width='400' height='120' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* Rubber stamp — navy ink on light sections, orange ink on dark.
   Use a <div>/<b>, not a bare <span>, inside .stat (avoids .stat span rules). */
.stamp {
  display: inline-block;
  position: relative;
  padding: 8px 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.15;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--navy);
  border: 2px solid currentColor;
  border-radius: 3px;
  transform: rotate(-3.5deg);
  -webkit-mask-image: var(--stamp-grain);
  mask-image: var(--stamp-grain);
}
.stamp::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid currentColor;
  border-radius: 2px;
  opacity: 0.7;
  pointer-events: none;
}
.stamp--sm { padding: 5px 11px; font-size: 12.5px; letter-spacing: 0.16em; }
.on-dark .stamp, .section--dark .stamp, .section--deep .stamp,
.stat-band .stamp, .stamp--ink-orange { color: var(--orange); }
.stat .stamp { margin: 14px auto 0; display: table; }

/* Standalone pen tick — decorative accent beside numbers/claims */
.field-tick {
  display: inline-block;
  width: 1em; height: 1em;
  vertical-align: -0.1em;
  background: var(--orange-deep);
  -webkit-mask: var(--tick-mask) center / contain no-repeat;
  mask: var(--tick-mask) center / contain no-repeat;
}
.on-dark .field-tick, .section--dark .field-tick, .section--deep .field-tick { background: var(--orange); }

/* Rough hand-drawn underline for key claims (works on light and dark) */
.u-mark {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 9' preserveAspectRatio='none'%3E%3Cpath d='M2.5 6.2C28 3.2 58 7.6 117.5 4.2' fill='none' stroke='%23F4A261' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 0.3em;
  padding-bottom: 0.22em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Small icon slot in the top corner of a numbered .step */
.step-icon {
  position: absolute;
  top: 28px; right: 24px;
  width: 30px; height: 30px;
  color: var(--orange);
  opacity: 0.85;
}
.step-icon svg { width: 100%; height: 100%; }
.steps--light .step-icon { color: var(--orange-deep); }

/* Inline hand-marked icon inside a heading (chapter titles, etc.) */
.h-ink {
  display: inline-block;
  width: 0.82em; height: 0.82em;
  margin-right: 0.28em;
  vertical-align: -0.06em;
  color: var(--orange);
}
.h-ink svg { width: 100%; height: 100%; display: block; }

/* Footer field log — the live-weather line, styled as a logged ledger entry */
.field-log {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #93A1BA;
  border: 1px dashed rgba(244, 162, 97, 0.4);
  border-radius: 3px;
}
.field-log::before {
  content: "";
  flex: none;
  width: 11px; height: 11px;
  background: var(--orange);
  -webkit-mask: var(--tick-mask) center / contain no-repeat;
  mask: var(--tick-mask) center / contain no-repeat;
}
.field-log[hidden] { display: none; }

/* ============================================================
   Round-barn scrollytelling (Phase 2 — our-work.html)
   The base rules below ARE the no-JS / no-IntersectionObserver
   fallback: display:contents flattens the pane so each stage's
   hero photo sits in a static grid beside its text, story order
   intact, nothing hidden. js/main.js adds .scrolly--on when it
   can drive the sticky crossfade pane.
   ============================================================ */
.scrolly {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  column-gap: clamp(32px, 5vw, 64px);
  row-gap: clamp(56px, 8vw, 96px);
  align-items: center;
}
.scrolly-pane, .scrolly-frame, .scrolly-steps { display: contents; }
.scrolly-status { display: none; }
.scrolly-step { grid-column: 1; }
.scrolly-photo { grid-column: 2; margin: 0; }
.scrolly-steps .scrolly-step:nth-child(1) { grid-row: 1; }
.scrolly-steps .scrolly-step:nth-child(2) { grid-row: 2; }
.scrolly-steps .scrolly-step:nth-child(3) { grid-row: 3; }
.scrolly-steps .scrolly-step:nth-child(4) { grid-row: 4; }
.scrolly-frame .scrolly-photo:nth-of-type(1) { grid-row: 1; }
.scrolly-frame .scrolly-photo:nth-of-type(2) { grid-row: 2; }
.scrolly-frame .scrolly-photo:nth-of-type(3) { grid-row: 3; }
.scrolly-frame .scrolly-photo:nth-of-type(4) { grid-row: 4; }
.scrolly-photo a { display: block; }
.scrolly-photo img { width: 100%; border-radius: var(--radius-photo); }

/* Step content (heading color comes from .on-dark h3) */
.scrolly-step h3 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 14px; }
.scrolly-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
}
.scrolly-note .field-tick { width: 17px; height: 17px; flex: none; }
.scrolly-stampwrap { margin-top: 26px; }
.scrolly-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.scrolly-thumbs a { display: block; border-radius: var(--radius-photo); overflow: hidden; }
.scrolly-thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 400ms ease-out; }
.scrolly-thumbs a:hover img { transform: scale(1.04); }
.scrolly-thumbs a.wide { grid-column: span 2; }
.scrolly-thumbs a.wide img { aspect-ratio: 16 / 9; }

/* ----- Enhanced mode: sticky crossfade pane ----- */
.scrolly--on { align-items: stretch; }
.scrolly--on .scrolly-steps { display: block; grid-row: 1; grid-column: 1; }
.scrolly--on .scrolly-pane { display: block; grid-row: 1; grid-column: 2; }
.scrolly--on .scrolly-frame {
  display: block;
  position: sticky;
  top: calc(var(--header-h) + 28px);
  height: calc(100vh - var(--header-h) - 56px);
  height: calc(100svh - var(--header-h) - 56px);
  max-height: 840px;
  border-radius: var(--radius-photo);
  overflow: hidden;
  background: var(--navy-deep);
  box-shadow: 0 26px 60px rgba(10, 16, 28, 0.45);
}
.scrolly--on .scrolly-frame::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 130px;
  background: linear-gradient(to top, rgba(19, 28, 44, 0.72), transparent);
  pointer-events: none;
  z-index: 1;
}
.scrolly--on .scrolly-photo {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 650ms ease;
  pointer-events: none;
}
.scrolly--on .scrolly-photo.is-active { opacity: 1; pointer-events: auto; }
.scrolly--on .scrolly-photo a { height: 100%; }
.scrolly--on .scrolly-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transform: scale(1.045);
  transition: transform 1400ms ease-out;
}
.scrolly--on .scrolly-photo.is-active img { transform: scale(1); }

/* Stage readout chip, bottom-left of the pane (ledger entry style) */
.scrolly--on .scrolly-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  position: absolute;
  left: 18px; bottom: 16px;
  z-index: 2;
  margin: 0;
  padding: 7px 14px;
  border: 1px dashed rgba(244, 162, 97, 0.55);
  border-radius: 3px;
  background: rgba(19, 28, 44, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-navy-strong);
}
.scrolly--on .scrolly-status .field-tick { width: 13px; height: 13px; flex: none; }
.scrolly-status-labels { display: grid; }
.scrolly-status-labels span { grid-area: 1 / 1; white-space: nowrap; opacity: 0; transition: opacity 400ms ease; }
.scrolly-status-labels span.is-active { opacity: 1; }

/* Steps: one viewport-height beat each; inactive steps sit dimmed */
.scrolly--on .scrolly-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 86vh;
  padding: 6vh 0;
  opacity: 0.3;
  transition: opacity 450ms ease;
}
.scrolly--on .scrolly-step.is-active { opacity: 1; }

/* Field-note tick draws in shortly after the step lands */
.scrolly--on .scrolly-note {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 400ms ease-out 250ms, transform 400ms ease-out 250ms;
}
.scrolly--on .scrolly-step.is-active .scrolly-note { opacity: 1; transform: none; }
.scrolly--on .scrolly-note .field-tick {
  transform: scale(0);
  transition: transform 340ms cubic-bezier(0.34, 1.56, 0.64, 1) 480ms;
}
.scrolly--on .scrolly-step.is-active .scrolly-note .field-tick { transform: scale(1); }

/* Final payoff: the Job Complete stamp thumps in (wrapper animates so the
   .stamp's own -3.5deg rotation is untouched) */
.scrolly--on .scrolly-stampwrap {
  display: inline-block;
  opacity: 0;
  transform: scale(1.6) rotate(5deg);
  transform-origin: 50% 55%;
  transition: opacity 260ms ease-out 320ms, transform 400ms cubic-bezier(0.2, 1.5, 0.35, 1) 320ms;
}
.scrolly--on .scrolly-step.is-active .scrolly-stampwrap { opacity: 1; transform: scale(1) rotate(0deg); }

@media (max-width: 880px) {
  /* Fallback: single column, each stage's text directly above its photo */
  .scrolly { grid-template-columns: 1fr; row-gap: 28px; align-items: start; }
  .scrolly-step, .scrolly-photo { grid-column: 1; }
  .scrolly-steps .scrolly-step:nth-child(1) { grid-row: 1; }
  .scrolly-frame .scrolly-photo:nth-of-type(1) { grid-row: 2; }
  .scrolly-steps .scrolly-step:nth-child(2) { grid-row: 3; }
  .scrolly-frame .scrolly-photo:nth-of-type(2) { grid-row: 4; }
  .scrolly-steps .scrolly-step:nth-child(3) { grid-row: 5; }
  .scrolly-frame .scrolly-photo:nth-of-type(3) { grid-row: 6; }
  .scrolly-steps .scrolly-step:nth-child(4) { grid-row: 7; }
  .scrolly-frame .scrolly-photo:nth-of-type(4) { grid-row: 8; }

  /* Enhanced: pane pins below the header, text steps scroll beneath it */
  .scrolly--on { display: block; }
  .scrolly--on .scrolly-pane {
    position: sticky;
    top: calc(var(--header-h) + 8px);
    z-index: 5;
  }
  .scrolly--on .scrolly-frame {
    position: static;
    height: 38vh;
    height: 38svh;
    max-height: 420px;
    box-shadow: 0 18px 40px rgba(10, 16, 28, 0.5);
  }
  .scrolly--on .scrolly-steps { display: block; margin-top: 28px; }
  .scrolly--on .scrolly-step {
    min-height: 56vh;
    min-height: 56svh;
    justify-content: flex-start;
    padding: 4vh 0 10vh;
  }
  .scrolly--on .scrolly-step .chapter-num { font-size: 44px; margin-bottom: 10px; }
  .scrolly--on .scrolly-status { left: 12px; bottom: 10px; padding: 6px 11px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .scrolly--on .scrolly-photo { transition-duration: 220ms; }
  .scrolly--on .scrolly-photo img,
  .scrolly--on .scrolly-photo.is-active img { transform: none; transition: none; }
  .scrolly--on .scrolly-step { transition: none; }
  .scrolly--on .scrolly-note,
  .scrolly--on .scrolly-note .field-tick,
  .scrolly--on .scrolly-stampwrap { transition: none; transform: none; opacity: 1; }
  .scrolly--on .scrolly-note .field-tick { transform: scale(1); }
  .scrolly-thumbs img { transition: none; }
  .scrolly-status-labels span { transition: none; }
}
