:root {
  --charcoal: #111114;
  --slate: #1A1D22;
  --slate-2: #24282F;
  --em: #3D8F73;
  --em-bright: #5CB892;
  --em-deep: #2F6E59;
  --white: #F5F7F6;
  --muted: rgba(245, 247, 246, 0.68);
  --faint: rgba(245, 247, 246, 0.42);
  --line: rgba(245, 247, 246, 0.12);
  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--white);
  background: var(--charcoal);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 0.45em;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums;
  color: var(--white);
}
.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--em-bright);
}

.demo-notice {
  background: #0A0A0C;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 9px 16px;
  position: relative;
  z-index: 60;
}
.demo-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 7px;
  margin-right: 8px;
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  white-space: nowrap;
  vertical-align: 1px;
}
.demo-notice a { color: var(--em-bright); text-decoration: underline; margin-left: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1.15rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 6px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-em { background: var(--em); color: #fff; }
.btn-em:hover { background: var(--em-deep); }
.btn-lift:hover { transform: translateY(-2px); }
.btn-line {
  background: transparent;
  color: var(--white);
  border-color: rgba(245, 247, 246, 0.35);
}
.btn-line:hover { border-color: #fff; }
.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border-color: var(--line);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.35rem; }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 17, 20, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 12px;
  padding-bottom: 12px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-right: auto;
}
.nav-logo span { color: var(--muted); font-weight: 500; }
.nav-links { display: flex; gap: 1.25rem; }
.nav-links a { font-weight: 600; color: var(--muted); font-size: 0.92rem; }
.nav-links a:hover { color: var(--em-bright); }
.nav-actions { display: flex; align-items: center; gap: 0.85rem; }
.nav-phone { font-weight: 700; white-space: nowrap; }
.nav-cta { min-height: 40px; padding: 0 1rem; font-size: 0.88rem; }
.nav-drawer {
  display: none;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0 24px 18px;
  max-width: 1140px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.nav-drawer a { font-weight: 600; color: var(--muted); }
.nav-drawer-phone { color: #fff !important; }
.nav-drawer-cta { align-self: flex-start; margin-top: 0.35rem; }
details.nav-menu[open] + .nav-drawer { display: flex; }

.nav .nav-toggle-bars span {
  background: #F5F7F6;
}

@media (max-width: 960px) {
  .nav-links, .nav-actions { display: none; }
}

/* Asymmetric hero: blended workshop photo with soft left-edge feather */
.hero {
  position: relative;
  min-height: min(90vh, 860px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--charcoal);
}
.hero-photo {
  position: absolute;
  top: 0;
  right: 0;
  width: min(70%, 980px);
  height: 100%;
  z-index: 0;
  overflow: hidden;
  /* Soft opacity feather only; no blur on subjects */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 6%, #000 14%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 6%, #000 14%, #000 100%);
}
.hero-photo__base {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% center;
  filter: grayscale(0.1) contrast(1.04) brightness(0.84);
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, var(--charcoal) 0%, var(--charcoal) 28%, rgba(17, 17, 20, 0.45) 36%, rgba(17, 17, 20, 0.12) 46%, transparent 56%),
    linear-gradient(180deg, rgba(17, 17, 20, 0.05), rgba(17, 17, 20, 0.18));
  pointer-events: none;
}
.hero-layout {
  position: relative;
  z-index: 2;
  display: block;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  width: 100%;
}
.hero-copy { max-width: 34rem; }
.hero h1 {
  font-size: clamp(2.7rem, 5.5vw, 4.2rem);
  margin-bottom: 0.55rem;
}
.lead {
  margin: 0;
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 36ch;
}
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.6rem;
}
.hero-pills span {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(61, 143, 115, 0.45);
  background: rgba(61, 143, 115, 0.1);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--em-bright);
}
.hero-pills i { font-style: normal; opacity: 0.7; margin-left: 0.25rem; }

.impact {
  position: relative;
  z-index: 3;
  margin-top: 0;
  padding: 1.5rem 0 1.75rem;
  background: var(--charcoal);
  border-top: 1px solid var(--line);
}
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
.float-card {
  padding: 1.1rem 1.15rem;
  border-radius: 14px;
  background: var(--slate-2);
  border: 1px solid rgba(245, 247, 246, 0.14);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}
.float-kicker {
  margin: 0 0 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--em-bright);
}
.float-value {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-variant-numeric: lining-nums;
  line-height: 1;
}
.float-note {
  margin: 0;
  font-size: 0.86rem;
  color: var(--faint);
}

.js-motion .hero-copy { animation: rise 0.7s ease both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.section-head { max-width: 38rem; margin-bottom: 1.75rem; }
.section-head h2 { font-size: clamp(1.85rem, 3vw, 2.5rem); }
.section-head p:last-child { margin: 0; color: var(--muted); }

.work {
  padding: 4rem 0 3rem;
  background: var(--slate);
  border-top: 1px solid var(--line);
}
.slider {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--charcoal);
  padding: 1.5rem 1.35rem 1.4rem;
}
.slider-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.35rem;
  padding-top: 0.35rem;
}
.slider-rail::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 18px;
  height: 2px;
  background: rgba(245, 247, 246, 0.12);
}
.slider-fill {
  position: absolute;
  left: 8%;
  top: 18px;
  height: 2px;
  width: 0;
  background: var(--em);
  transition: width 0.3s ease;
  pointer-events: none;
}
.slider-node {
  position: relative;
  z-index: 1;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  cursor: pointer;
  text-align: center;
  padding: 0;
}
.node-dot {
  display: block;
  width: 14px;
  height: 14px;
  margin: 0 auto 0.65rem;
  border-radius: 50%;
  background: var(--slate-2);
  border: 2px solid rgba(245, 247, 246, 0.35);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.slider-node.is-active .node-dot,
.slider-node:hover .node-dot {
  background: var(--em);
  border-color: var(--em-bright);
  box-shadow: 0 0 0 4px rgba(61, 143, 115, 0.2);
}
.node-label {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
}
.slider-detail {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}
.slide { display: none; }
.slide.is-active { display: block; }
.slide h3 { font-size: 1.45rem; }
.slide p { margin: 0 0 0.9rem; color: var(--muted); max-width: 48ch; }
.slide ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}
.slide li {
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: rgba(61, 143, 115, 0.1);
  border: 1px solid rgba(61, 143, 115, 0.28);
  font-weight: 600;
  font-size: 0.92rem;
}

.engagements {
  padding: 3.5rem 0;
  background: var(--charcoal);
}
.stage-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.stage-filter {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
}
.stage-filter.is-active {
  background: var(--em);
  border-color: var(--em);
  color: #fff;
}
.eng-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.eng-card {
  position: relative;
  min-height: 220px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(245, 247, 246, 0.14);
  background: rgba(36, 40, 47, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, transform 0.25s ease;
}
.eng-card:hover {
  border-color: rgba(61, 143, 115, 0.55);
  transform: translateY(-3px);
}
.eng-card.is-hidden { display: none; }
.eng-top { padding: 1.25rem 1.25rem 1.4rem; }
.dur {
  display: inline-block;
  margin-bottom: 0.7rem;
  padding: 0.28rem 0.6rem;
  border-radius: 6px;
  background: rgba(61, 143, 115, 0.18);
  color: var(--em-bright);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.eng-top h3 { font-size: 1.35rem; }
.eng-top p { margin: 0; color: var(--muted); }
.eng-hover {
  position: absolute;
  inset: 0;
  padding: 1.25rem;
  background: rgba(17, 17, 20, 0.94);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.eng-card:hover .eng-hover,
.eng-card:focus-within .eng-hover {
  opacity: 1;
  transform: none;
}
.eng-hover p {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--em-bright);
}
.eng-hover ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}
.eng-hover li {
  font-weight: 600;
  padding-left: 0.9rem;
  position: relative;
}
.eng-hover li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--em);
}
.eng-empty { margin: 1rem 0 0; color: var(--faint); font-weight: 600; }

.scope {
  padding: 1rem 0 4rem;
  background: var(--slate);
  border-top: 1px solid var(--line);
}
.scope-box {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--charcoal);
  padding: 1.25rem;
}
.scope-controls fieldset {
  border: 0;
  margin: 0 0 1.1rem;
  padding: 0;
}
.scope-controls fieldset:last-of-type { margin-bottom: 0; }
.scope-controls legend {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.6rem;
  padding: 0;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip-row--stack { flex-direction: column; }
.chip { position: relative; cursor: pointer; }
.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--slate-2);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.chip-row--stack .chip span { width: 100%; justify-content: flex-start; }
.chip input:checked + span {
  border-color: var(--em);
  background: rgba(61, 143, 115, 0.16);
  color: #fff;
}
.chip input:focus-visible + span {
  outline: 2px solid var(--em-bright);
  outline-offset: 2px;
}
.scope-out {
  border-left: 1px solid var(--line);
  padding-left: 1.15rem;
}
.scope-label {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--em-bright);
}
.scope-out h3 { font-size: 1.55rem; }
.scope-out p { margin: 0 0 0.85rem; color: var(--muted); }
.scope-meta { color: var(--faint) !important; font-size: 0.9rem !important; }

.proof {
  padding: 3.5rem 0;
  background: var(--charcoal);
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.case-card {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--slate);
  padding: 1.25rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
}
.case-metric {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--em-bright);
  font-variant-numeric: lining-nums;
}
.case-line {
  margin: 0 0 0.75rem;
  font-weight: 700;
  color: #fff;
}
.case-quote {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.96rem;
}
.case-foot {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.7rem;
  align-items: center;
  margin-top: auto;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border: 1px solid var(--line);
  background: var(--charcoal);
}
.case-who {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  line-height: 1.25;
}
.case-who strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}
.case-who span {
  display: block;
  font-size: 0.78rem;
  color: var(--faint);
  margin-top: 0.12rem;
}
.mark {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
}

.intake {
  padding: 0 0 4.5rem;
  background: var(--charcoal);
}
.intake-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--slate);
  padding: 1.75rem 1.4rem;
}
.intake-copy p { color: var(--muted); margin: 0 0 0.85rem; }
.intake-phone a {
  color: var(--em-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.intake-widget {
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.2rem 1.15rem 1.3rem;
}
.intake-progress {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.intake-progress span {
  height: 3px;
  flex: 1;
  border-radius: 3px;
  background: rgba(245, 247, 246, 0.12);
}
.intake-progress span.is-on { background: var(--em); }
.step-label {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.step-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.35rem;
}
.intake-step .btn { margin-top: 0.85rem; }
.intake-note {
  margin: 0.75rem 0 0;
  color: #E0B07A;
  font-size: 0.9rem;
  font-weight: 600;
}

.foot {
  border-top: 1px solid var(--line);
  padding: 1.35rem 0 1.7rem;
  background: #0A0A0C;
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
}
.foot-brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
}
.foot-note {
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.85rem;
  color: var(--faint);
}
.foot a { font-weight: 700; color: var(--em-bright); }

.js-motion .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js-motion .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .hero-layout,
  .impact-grid,
  .eng-grid,
  .scope-box,
  .case-grid,
  .intake-layout,
  .slide ul {
    grid-template-columns: 1fr;
  }

  /* Mobile: full-bleed photo behind copy, soft bottom blur into charcoal */
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: min(88vh, 640px);
  }
  .hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    right: auto;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  }
  .hero-photo__base {
    object-position: 48% 28%;
  }
  .hero-shade {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(17, 17, 20, 0.2) 0%, rgba(17, 17, 20, 0.3) 30%, rgba(17, 17, 20, 0.78) 68%, var(--charcoal) 92%);
  }
  .hero-layout {
    padding-top: 5rem;
    padding-bottom: 2.25rem;
  }
  .hero-copy { max-width: none; }
  .hero h1 { font-size: clamp(2.2rem, 9vw, 2.8rem); }
  .lead { max-width: none; font-size: 1.02rem; }
  .btn-row { width: 100%; }
  .btn-row .btn { flex: 1 1 auto; min-width: 0; }
  .hero-pills { gap: 0.4rem; }
  .hero-pills span { font-size: 0.74rem; padding: 0.35rem 0.65rem; }

  .impact {
    margin-top: 0;
    padding: 1.15rem 0 1.5rem;
  }
  .impact-grid {
    grid-template-columns: 1fr;
  }
  .float-value { font-size: 1.55rem; }

  .scope-out {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 1.1rem;
  }
  .slider-rail { grid-template-columns: 1fr; }
  .slider-rail::before,
  .slider-fill { display: none; }
  .node-dot { display: inline-block; margin: 0 0.5rem 0 0; vertical-align: middle; }
  .slider-node {
    text-align: left;
    padding: 0.55rem 0.4rem;
    border-radius: 8px;
  }
  .slider-node.is-active { background: rgba(61, 143, 115, 0.12); }

  .intake-layout {
    padding: 1.25rem 1rem;
  }
  .nav-phone { display: none; }
}

@media (max-width: 560px) {
  .hero {
    min-height: min(92vh, 620px);
  }
  .btn-row {
    flex-direction: column;
  }
  .btn-row .btn {
    width: 100%;
  }
  .case-grid {
    grid-template-columns: 1fr;
  }
  .chip-row:not(.chip-row--stack) {
    flex-direction: column;
  }
  .chip-row:not(.chip-row--stack) .chip span {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo__base {
    filter: grayscale(0.1) contrast(1.04) brightness(0.8);
  }
}

@media (hover: none) {
  .eng-hover {
    position: static;
    opacity: 1;
    transform: none;
    background: transparent;
    padding: 0 1.25rem 1.25rem;
  }
  .eng-card { min-height: 0; }
}


/* --- Accessibility baseline (Web Interface Guidelines) --- */
.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1000;
  padding: 10px 14px;
  background: #111;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: 6px;
  transform: translateY(-200%);
}
.skip-link:focus { outline: none; }
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
[id] {
  scroll-margin-top: calc(5.5rem + env(safe-area-inset-top, 0px));
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Safe-area gutters on sticky chrome; contain scroll chaining in drawers/overlays */
.nav, .nav-min, .masthead, .bar {
  padding-left: max(0px, env(safe-area-inset-left, 0px));
  padding-right: max(0px, env(safe-area-inset-right, 0px));
}
.nav-drawer {
  overscroll-behavior: contain;
}

/* --- Web Interface Guidelines extras --- */
a, button, summary, input, select, textarea, label, [role="button"], [role="tab"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.08);
}
h1, h2, h3 { text-wrap: pretty; }
