/* ==========================================================================
   Hallpass — hallpassdigital.com
   One stylesheet. Tokens → base → layout → components → sections → motion.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --paper:      #F2EFE8;
  --paper-alt:  #FAFAF7;
  --ink:        #1A1A18;
  --ink-soft:   #3D3D38;
  --ink-mute:   #6B6B63;
  --sage:       #7A9E7E;
  --sage-deep:  #527456; /* deepened from #5B7D5F to clear 4.5:1 on --paper */
  --sage-light: #EAF0EB;
  --sage-pale:  #B8D0BB;
  --rule:       rgba(26,26,24,.14);
  --rule-soft:  rgba(26,26,24,.08);

  --paper-dim-92: rgba(242,239,232,.92);
  --paper-dim-65: rgba(242,239,232,.65);
  --paper-dim-52: rgba(242,239,232,.52); /* dimmest text on ink that still passes AA */
  --rule-dark:    rgba(242,239,232,.16);

  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Playfair Display", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: min(100% - 2.5rem, 1120px);
  --sect: clamp(4.5rem, 8vw, 8rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, .95rem + .25vw, 1.09rem);
  line-height: 1.62;
  font-weight: 400;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 500;
  text-wrap: balance;
  margin: 0 0 .55em;
}
h1 { font-size: clamp(2.55rem, 6.2vw, 4.6rem); letter-spacing: -.04em;  line-height: 1.05; }
h2 { font-size: clamp(1.85rem, 3.7vw, 2.85rem); letter-spacing: -.032em; line-height: 1.12; }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.4rem);  letter-spacing: -.02em;  line-height: 1.25; }

/* The signature rule: one Playfair italic outcome word per headline */
h1 em, h2 em, h3 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--sage-deep);
  letter-spacing: 0;
  position: relative;
  white-space: nowrap;
}
.on-dark h1 em, .on-dark h2 em, .on-dark h3 em,
.dark h1 em, .dark h2 em, .dark h3 em { color: var(--sage-pale); }

/* Hairline that draws under the italic word once its headline reveals */
h1 em::after, h2 em::after {
  content: "";
  position: absolute;
  left: .02em; right: .06em; bottom: -.04em;
  height: 1px;
  background: currentColor;
  opacity: .45;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .9s cubic-bezier(.22,1,.36,1) .55s;
}
.is-in h1 em::after, .is-in h2 em::after,
h1.is-in em::after, h2.is-in em::after { transform: scaleX(1); }

p { margin: 0 0 1.1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.1rem, 1.55vw, 1.32rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 44ch;
}

.eyebrow {
  display: block;
  font-size: .69rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .155em;
  color: var(--sage-deep);
  margin: 0 0 1.1rem;
}
.dark .eyebrow, .on-dark .eyebrow { color: var(--sage-pale); }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--sage-deep); }
.dark a:hover { color: var(--sage-pale); }

strong, b { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
  border-radius: 2px;
}
.dark :focus-visible { outline-color: var(--sage-pale); }

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

/* ---------- Layout primitives ---------- */
.wrap { width: var(--wrap); margin-inline: auto; }

.section { padding-block: var(--sect); }
.section + .section { border-top: 1px solid var(--rule-soft); }

.bg-alt   { background: var(--paper-alt); }
.bg-sage  { background: var(--sage-light); }
.dark {
  background: var(--ink);
  color: var(--paper-dim-92);
}
.dark .lede { color: var(--paper-dim-65); }
.dark .section + .section,
.dark.section + .section { border-top-color: var(--rule-dark); }

/* Asymmetric split — the default section layout */
.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2.25rem, 5vw, 5.5rem);
  align-items: start;
}
.split > .split-head { position: sticky; top: 6.5rem; }
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
  .split > .split-head { position: static; }
}

.mute { color: var(--ink-mute); }
.dark .mute { color: var(--paper-dim-65); }
.small { font-size: .88rem; }

.mono {
  font-family: var(--mono);
  font-size: .8em;
  letter-spacing: .02em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  padding: .95em 1.5em;
  border: 1px solid var(--ink);
  border-radius: 2px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background-color .25s cubic-bezier(.22,1,.36,1),
              color .25s cubic-bezier(.22,1,.36,1),
              transform .15s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: translateY(1px); }

.btn-fill { background: var(--ink); color: var(--paper); }
.btn-fill:hover { background: var(--ink-soft); border-color: var(--ink-soft); color: var(--paper); }

.dark .btn, .btn-paper {
  border-color: var(--paper-dim-92);
  color: var(--paper-dim-92);
}
.dark .btn:hover, .btn-paper:hover { background: var(--paper); color: var(--ink); }
.dark .btn-fill, .btn-fill-paper {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.dark .btn-fill:hover, .btn-fill-paper:hover { background: var(--sage-pale); border-color: var(--sage-pale); color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

.arrow-link {
  display: inline-block;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: .15em;
  transition: border-color .25s, color .25s;
}
.arrow-link:hover { color: var(--sage-deep); border-color: var(--sage-deep); }
.arrow-link::after { content: " \2192"; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: .7em 1.2em;
  border-radius: 2px;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

/* ---------- Masthead ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.masthead.is-stuck { border-bottom-color: var(--rule); }

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.05rem;
}

.wordmark {
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -.02em;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
}
.wordmark:hover { color: var(--ink); }
.wordmark .wm-hall {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}
.wordmark .wm-img {
  height: 26px;
  width: auto;
  display: block;
}
.footer .wordmark .wm-img { height: 23px; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(.25rem, 1.4vw, 1.1rem);
}
.nav a, .nav-toggle-btn {
  font-size: .93rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  padding: .5em .55em;
  border-radius: 2px;
}
.nav a:hover, .nav-toggle-btn:hover { color: var(--ink); }
.nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--sage-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: .4em;
}
.nav .btn { margin-left: .5rem; padding: .75em 1.2em; font-size: .9rem; }
.nav a.btn-fill { color: var(--paper); }
.nav a.btn-fill:hover { color: var(--paper); background: var(--ink-soft); }

/* Disclosure dropdowns */
.nav-group { position: relative; }
.nav-toggle-btn {
  font-family: var(--sans);
  background: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .35em;
}
.nav-toggle-btn::after {
  content: "";
  width: .42em; height: .42em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-.12em);
  transition: transform .2s ease;
}
.nav-toggle-btn[aria-expanded="true"]::after { transform: rotate(225deg) translateY(-.05em); }

.nav-panel {
  position: absolute;
  top: calc(100% + .55rem);
  left: -.5rem;
  min-width: 15.5rem;
  background: var(--paper-alt);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: .45rem;
  display: none;
}
.nav-panel.is-open { display: block; }
.nav-panel a {
  display: block;
  padding: .6em .8em;
  color: var(--ink-soft);
}
.nav-panel a:hover { background: var(--sage-light); color: var(--ink); }
.nav-panel .nav-panel-note {
  display: block;
  font-size: .69rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .155em;
  color: var(--ink-mute);
  padding: .55em .8em .3em;
}

/* Mobile nav */
.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: .55em .7em;
  cursor: pointer;
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink);
}

@media (max-width: 900px) {
  .menu-btn { display: inline-flex; align-items: center; gap: .5em; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .75rem 1.25rem 1.5rem;
  }
  .nav.is-open { display: flex; }
  .nav a, .nav-toggle-btn { padding: .8em .25em; width: 100%; text-align: left; justify-content: space-between; }
  .nav-panel {
    position: static;
    display: none;
    border: 0;
    border-left: 1px solid var(--rule);
    background: transparent;
    padding: 0 0 .5rem .75rem;
    margin-left: .25rem;
  }
  .nav-panel.is-open { display: block; }
  .nav .btn { margin: 1rem 0 0; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(3rem, 5vw, 5rem) clamp(4rem, 7vw, 6rem);
}
.hero-layout {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "copy"
    "proof"
    "credibility"
    "scene";
  row-gap: 0;
  align-items: start;
}
.hero-copy {
  grid-area: copy;
  position: relative;
  z-index: 2;
  max-width: 60rem;
  margin-bottom: clamp(3rem, 5vw, 4rem);
  min-width: 0;
}
.hero-title,
.hero-support { min-width: 0; }
.hero-support {
  max-width: 48rem;
  margin-top: clamp(1.5rem, 2.5vw, 2rem);
}
.hero .eyebrow {
  margin-bottom: .7rem;
  font-size: .64rem;
  letter-spacing: .11em;
}
.hero h1 {
  max-width: 16ch;
  margin-bottom: 0;
  font-size: clamp(2.55rem, 5vw, 4rem);
}
.hero .lede {
  margin-bottom: 1.5rem;
  max-width: 62ch;
  font-size: clamp(1.05rem, 1.25vw, 1.16rem);
  line-height: 1.45;
}

/* The rolls open from the center as the hand enters to mark the target. Scroll
   values are quantized in JS so the sequence feels editorial and frame-made. */
.hero-map-visual {
  --map-clip: 50%;
  --left-roll-x: 0%;
  --right-roll-x: 0%;
  --roll-scale: 1;
  --roll-opacity: 1;
  --hand-x: 180px;
  --hand-y: -95px;
  --hand-rotate: -3deg;
  --scene-jitter-x: 0px;
  --scene-jitter-y: 0px;
  --scene-jitter-r: 0deg;
  --scene-parallax-y: 0px;
  display: none;
}

@media (min-width: 1050px) {
  .hero-layout {
    grid-template-rows: minmax(clamp(34rem, 72vh, 40rem), auto) auto auto auto;
  }
  .hero-copy {
    max-width: 42rem;
    margin-bottom: 0;
  }
  .hero-support {
    max-width: 40rem;
  }
  .hero-map-visual {
    grid-area: copy;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    display: block;
    justify-self: end;
    align-self: start;
    width: clamp(23rem, 35vw, 29rem);
    margin-top: -1.25rem;
    margin-right: clamp(.25rem, 1.5vw, 1.25rem);
    contain: layout paint;
    transform: translate3d(0, var(--scene-parallax-y), 0);
  }
  .hero-map-stage {
    position: relative;
    aspect-ratio: 620 / 500;
    transform: translate3d(var(--scene-jitter-x), var(--scene-jitter-y), 0)
      rotate(var(--scene-jitter-r));
  }
  .hero-map-state {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .hero-map-state--open {
    z-index: 1;
    clip-path: inset(0 var(--map-clip) 0 var(--map-clip));
  }
  .hero-map-roll-piece {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: var(--roll-opacity);
    pointer-events: none;
  }
  .hero-map-roll-piece img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .hero-map-roll-piece--left {
    clip-path: inset(0 50% 0 0);
    transform-origin: 44.2% 50%;
    transform: translate3d(var(--left-roll-x), 0, 0)
      scaleX(var(--roll-scale));
  }
  .hero-map-roll-piece--right {
    clip-path: inset(0 0 0 50%);
    transform-origin: 59% 50%;
    transform: translate3d(var(--right-roll-x), 0, 0)
      scaleX(var(--roll-scale));
  }
  .hero-map-hand {
    position: absolute;
    z-index: 3;
    top: -2%;
    right: -13%;
    width: 80%;
    max-width: none;
    opacity: 1;
    mix-blend-mode: normal;
    filter: sepia(.08) contrast(.94) brightness(1.03)
      drop-shadow(6px 9px 10px rgba(26, 26, 24, .14));
    transform-origin: 82% 18%;
    transform: translate3d(var(--hand-x), var(--hand-y), 0)
      rotate(var(--hand-rotate));
  }
  .hero.has-map-motion .hero-map-visual,
  .hero.has-map-motion .hero-map-stage,
  .hero.has-map-motion .hero-map-roll-piece,
  .hero.has-map-motion .hero-map-hand {
    will-change: transform;
  }
}

.no-js .hero-map-visual {
  --map-clip: 0%;
  --left-roll-x: -33.1%;
  --right-roll-x: 29.7%;
  --roll-scale: .58;
  --roll-opacity: 0;
  --hand-x: -16px;
  --hand-y: -29px;
  --hand-rotate: -7deg;
}

@media (prefers-reduced-motion: reduce) {
  .hero-map-visual {
    --map-clip: 0%;
    --left-roll-x: -33.1%;
    --right-roll-x: 29.7%;
    --roll-scale: .58;
    --roll-opacity: 0;
    --hand-x: -16px;
    --hand-y: -29px;
    --hand-rotate: -7deg;
  }
  .hero-map-stage,
  .hero-map-roll-piece,
  .hero-map-hand {
    will-change: auto;
  }
}

.hero-scene {
  grid-area: scene;
  position: relative;
  z-index: 2;
  min-width: 0;
  margin: 0;
  aspect-ratio: 2000 / 853;
  overflow: hidden;
  border-block: 1px solid var(--rule);
  background: var(--sage-light);
}
.hero-scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.82) contrast(.96);
}

@media (max-width: 800px) {
  .hero { padding-block: clamp(2.5rem, 8vw, 4rem) var(--sect); }
  .hero-layout { gap: 0; }
  .hero-scene { aspect-ratio: 16 / 9; }
  .hero-scene img { object-position: center 58%; }
  .recognition-awards { grid-template-columns: repeat(4, minmax(0, 7.25rem)); }
}

/* Hero proof strip */
.hero-proof {
  grid-area: proof;
  position: relative;
  z-index: 2;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 clamp(2.25rem, 4vw, 3rem);
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--rule);
  background: var(--paper);
  max-width: none;
}
.hero-proof li {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--ink-mute);
  max-width: none;
}
.hero-proof b {
  display: block;
  font-family: var(--sans);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: .2rem;
}
@media (max-width: 640px) {
  .hero-proof { grid-template-columns: 1fr; gap: 1.2rem; }
}

/* Recognition sits beneath the performance proof so reach leads and names
   substantiate it without implying the publications were Hallpass clients. */
.credibility-strip {
  grid-area: credibility;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  max-width: none;
  margin: 0 0 clamp(4.5rem, 7vw, 6rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  background: var(--paper);
}
.credential-award,
.credential-press {
  min-width: 0;
}
.credential-label {
  display: block;
  margin-bottom: .3rem;
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
}
.recognition-awards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .4rem clamp(.5rem, 1vw, .75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.recognition-awards li {
  min-width: 0;
}
.award-emblem {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 3;
}
.award-laurels {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scaleX(1.08);
}
.award-logo {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: auto;
  height: auto;
  mix-blend-mode: multiply;
  transform: translate(-50%, -50%);
}
.award-logo--otia {
  max-width: 58%;
  max-height: 42%;
}
.award-logo--ace {
  max-width: 52%;
  max-height: 66%;
}
.award-logo--ocpra {
  max-width: 60%;
  max-height: 50%;
}
.award-logo--addy {
  max-width: 60%;
  max-height: 76%;
  filter: contrast(1.3) brightness(1.06);
  transform: translate(-50%, -50%) scale(1.22);
}
.publication-logos {
  max-width: 28rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem .75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.publication-logos li {
  display: grid;
  min-height: 2rem;
  place-items: center;
}
.publication-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
}
.publication-logo--ap { width: 1.5rem; }
.publication-logo--yahoo { width: 6.25rem; }
.publication-logo--bi { width: 9rem; }
.publication-logo--reuters { width: 5rem; }
.publication-logo--abc { width: 4.75rem; }
.publication-logo--nbc { width: 3.5rem; }
.publication-logo--cbs { width: 6.4rem; }
@media (max-width: 900px) and (min-width: 641px) {
  .publication-logos { max-width: 26rem; }
}
@media (max-width: 640px) {
  .credibility-strip { grid-template-columns: 1fr; gap: 1.2rem; }
  .recognition-awards { grid-template-columns: repeat(2, minmax(0, 7.25rem)); }
}

/* ---------- Placeholders (must be impossible to ship by accident) ---------- */
.tbd {
  background: #FFE9A8;
  color: #6A5200;
  padding: 0 .3em;
  border-radius: 2px;
  font-weight: 600;
}
.note-tbd {
  border: 1px dashed #C9A54A;
  background: #FFF6DC;
  color: #6A5200;
  border-radius: 2px;
  padding: .85rem 1.1rem;
  font-size: .88rem;
  line-height: 1.55;
  max-width: 62ch;
}
.note-tbd strong { color: inherit; }
.dark .note-tbd { background: rgba(255,233,168,.12); color: #EBD9A5; border-color: rgba(235,217,165,.5); }

/* Placeholder media slot */
.media-slot {
  border: 1px dashed var(--rule);
  border-radius: 2px;
  background: var(--paper-alt);
  display: grid;
  place-content: center;
  text-align: center;
  gap: .4rem;
  padding: 1.5rem;
  color: var(--ink-mute);
  font-size: .85rem;
  line-height: 1.5;
}
.media-slot .mono { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Stats ---------- */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  justify-content: flex-start;
  border-top: 1px solid var(--rule);
  padding-top: 1.8rem;
  margin-top: 2.4rem;
}
.dark .stats { border-top-color: var(--rule-dark); }
.stat b {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.stat b + span {
  display: block;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: .45rem;
  max-width: 16ch;
}
.dark .stat b + span { color: var(--paper-dim-65); }
@media (max-width: 640px) {
  .stats { flex-direction: column; gap: 1.4rem; }
}

/* Inline stat strip (video section) */
.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .5em 1.1em;
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .02em;
  color: var(--ink-soft);
  align-items: baseline;
}
.stat-strip .sep { color: var(--ink-mute); }
.dark .stat-strip { color: var(--paper-dim-92); }
.dark .stat-strip .sep { color: var(--paper-dim-52); }

/* ---------- Water Tower section ---------- */
.wt { border-top: 0; }
.wt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--rule-dark);
}
.wt-pane { padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3.5vw, 3rem); }
.wt-pane + .wt-pane { border-left: 1px solid var(--rule-dark); }
@media (max-width: 860px) {
  .wt-grid { grid-template-columns: 1fr; }
  .wt-pane + .wt-pane { border-left: 0; border-top: 1px solid var(--rule-dark); }
}

.wt-label {
  font-family: var(--mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .13em;
  margin-bottom: 1.9rem;
}
.wt-label-dead { color: var(--paper-dim-52); }
.wt-label-live { color: var(--sage-pale); }

/* Left pane: the shot list. Dim, mechanical, dead. */
.wt-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  font-family: var(--mono);
  font-size: .84rem;
  line-height: 1.7;
  color: var(--paper-dim-52); /* raised from .42 to keep AA */
}
.wt-list li {
  display: grid;
  grid-template-columns: 2.4em 1fr;
  padding-block: .32em;
}
.wt-list li::before {
  content: attr(data-n);
  opacity: .55;
}

.wt-verdict {
  border-top: 1px solid var(--rule-dark);
  padding-top: 1.6rem;
  color: var(--paper-dim-65);
  font-size: .95rem;
  max-width: 46ch;
}

/* Right pane: lit, alive */
.wt-reel {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--sage-pale);
  border-radius: 2px;
  display: grid;
  place-content: center;
  text-align: center;
  gap: .5rem;
  color: var(--paper-dim-65);
  font-size: .85rem;
  padding: 1rem;
  margin-bottom: 1.9rem;
}
.wt-reel .wt-play {
  width: 3.1rem; height: 3.1rem;
  border: 1px solid var(--sage-pale);
  border-radius: 50%;
  display: grid;
  place-content: center;
  margin-inline: auto;
  color: var(--sage-pale);
}
.wt-reel .mono { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--sage-pale); }

.wt-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.9rem;
}
.wt-stats b {
  display: block;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--paper-dim-92);
}
.wt-stats b + span {
  display: block;
  font-family: var(--mono);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--paper-dim-65);
  margin-top: .4rem;
}
@media (max-width: 640px) { .wt-stats { grid-template-columns: 1fr; } }

.wt-credo {
  border-top: 1px solid var(--rule-dark);
  padding-top: 1.6rem;
  color: var(--paper-dim-92);
  font-size: .95rem;
  max-width: 46ch;
}
.wt-credo strong { color: var(--sage-pale); font-weight: 500; }

/* ---------- Linked cards (Who we serve) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.card-grid--three { grid-template-columns: repeat(3, 1fr); }
.card-link {
  display: block;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  text-decoration: none;
  color: inherit;
  transition: background-color .3s cubic-bezier(.22,1,.36,1);
}
.card-link:hover, .card-link:focus-visible { background: var(--sage-light); color: inherit; }
.card-link h3 { margin-bottom: .45em; }
.card-link p { color: var(--ink-soft); margin-bottom: 1.1em; font-size: .98rem; }
.card-link .card-cta {
  font-size: .88rem;
  font-weight: 500;
  color: var(--sage-deep);
}
.card-link .card-cta::after { content: " \2192"; transition: transform .3s; display: inline-block; }
.card-link:hover .card-cta::after { transform: translateX(4px); }
@media (max-width: 700px) { .card-grid { grid-template-columns: 1fr; } }

/* ---------- Operating programs ---------- */
.program-list { border-top: 1px solid var(--rule); }
.program-row {
  display: grid;
  grid-template-columns: minmax(12rem, 1.05fr) minmax(18rem, 2fr) auto;
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: start;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-bottom: 1px solid var(--rule);
}
.program-row--featured {
  margin-inline: calc(clamp(1rem, 2vw, 1.5rem) * -1);
  padding-inline: clamp(1rem, 2vw, 1.5rem);
  background: var(--sage-light);
}
.program-name h3 { margin: .2rem 0 0; }
.program-kicker {
  display: block;
  color: var(--sage-deep);
  font-family: var(--mono);
  font-size: .69rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.program-row p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.program-row .arrow-link { white-space: nowrap; }
@media (max-width: 760px) {
  .program-row { grid-template-columns: 1fr; gap: .7rem; }
  .program-row--featured { margin-inline: -.8rem; padding-inline: .8rem; }
}

.wt-result-line {
  color: var(--paper-dim-92);
  max-width: 36ch;
  margin-bottom: 1.7rem;
}

.package-detail {
  scroll-margin-top: 6rem;
  border-top: 1px solid var(--rule);
  padding-block: clamp(2rem, 4vw, 3.25rem);
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(20rem, 1.8fr);
  gap: clamp(2rem, 5vw, 5rem);
}
.package-detail:last-child { border-bottom: 1px solid var(--rule); }
.package-detail--featured {
  background: var(--sage-light);
  margin-inline: calc(clamp(1rem, 2vw, 1.5rem) * -1);
  padding-inline: clamp(1rem, 2vw, 1.5rem);
}
.package-price {
  display: block;
  font-family: var(--mono);
  font-size: .85rem;
  color: var(--sage-deep);
  letter-spacing: .02em;
  margin-top: .75rem;
}
.system-note {
  border-top: 1px solid var(--sage-deep);
  padding-top: 1rem;
  color: var(--ink-soft);
}
@media (max-width: 760px) { .package-detail { grid-template-columns: 1fr; gap: 1.1rem; } }

/* ---------- Numbered steps (How it works / audit timeline ONLY) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  counter-reset: step;
}
.step {
  border-top: 1px solid var(--rule);
  padding-top: 1.4rem;
}
.step .step-n {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--sage-deep);
  display: block;
  margin-bottom: .9rem;
}
.step h3 { margin-bottom: .4em; }
.step .step-meta {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: block;
  margin-bottom: .8rem;
}
.step p { font-size: .98rem; color: var(--ink-soft); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Quote / testimonial ---------- */
.quote {
  border-top: 1px solid var(--sage-deep);
  padding-top: clamp(1.25rem, 2.5vw, 2rem);
  margin: 0;
}
.quote p {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.45;
  letter-spacing: -.01em;
  max-width: 38ch;
}
.quote .quote-face {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.1rem;
}
.quote footer {
  margin-top: 1.1rem;
  font-size: .9rem;
  color: var(--ink-mute);
}
.quote footer b { color: var(--ink); font-weight: 600; }

.quote-slot {
  border: 1px dashed var(--rule);
  border-radius: 2px;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  color: var(--ink-mute);
  font-size: .9rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}
@media (max-width: 860px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ accordion ---------- */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem .25rem;
  font-weight: 500;
  font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 1.05rem;
  color: var(--sage-deep);
  flex-shrink: 0;
  transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--sage-deep); }
.faq .faq-body { padding: 0 .25rem 1.35rem; }
.faq .faq-body p { color: var(--ink-soft); font-size: .98rem; max-width: 58ch; }

/* ---------- Pricing ---------- */
.price-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .25rem 2rem;
  border-top: 1px solid var(--rule);
  padding-block: 1.1rem;
}
.price-line:last-of-type { border-bottom: 1px solid var(--rule); }
.price-line .p-name { font-weight: 500; }
.price-line .p-note { font-size: .88rem; color: var(--ink-mute); flex-basis: 100%; max-width: 58ch; }
.price-line .p-amount {
  font-family: var(--mono);
  font-size: .95rem;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.compare {
  background: var(--sage-light);
  border-top: 1px solid var(--sage-deep);
  border-radius: 2px;
  padding: clamp(1.4rem, 2.5vw, 2rem);
  margin-block: 2rem;
}
.compare p { font-size: .98rem; }

/* ---------- Comparison table (retainer tiers) ---------- */
.table-scroll { overflow-x: auto; }
.tier-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-size: .94rem;
}
.tier-table th, .tier-table td {
  text-align: left;
  padding: .8em .9em;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.tier-table thead th {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--sage-deep);
  border-bottom: 1px solid var(--ink);
}
.tier-table tbody th {
  font-weight: 500;
  color: var(--ink-mute);
  font-size: .85rem;
  width: 11rem;
}
.tier-table .t-price { font-family: var(--mono); font-size: .9rem; }

/* ---------- Definition rows (what's included lists) ---------- */
.rows { border-top: 1px solid var(--rule); }
.row-item {
  display: grid;
  grid-template-columns: minmax(11rem, 16rem) 1fr;
  gap: 1.25rem;
  border-bottom: 1px solid var(--rule);
  padding-block: 1.3rem;
}
.row-item h3 { font-size: 1.02rem; margin: 0; }
.row-item p { font-size: .96rem; color: var(--ink-soft); }
@media (max-width: 700px) { .row-item { grid-template-columns: 1fr; gap: .35rem; } }

/* Simple check list */
.plain-list { margin: 0 0 1.1em; padding: 0; list-style: none; max-width: 62ch; }
.plain-list li {
  padding: .45em 0 .45em 1.4em;
  position: relative;
  color: var(--ink-soft);
  font-size: .98rem;
}
.plain-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.05em;
  width: .55em; height: 1px;
  background: var(--sage-deep);
}
.dark .plain-list li { color: var(--paper-dim-92); }
.dark .plain-list li::before { background: var(--sage-pale); }

/* ---------- Product blocks (websites page) ---------- */
.product {
  border-top: 1px solid var(--rule);
  padding-block: 1.8rem;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 1.25rem 2.5rem;
}
.product:last-of-type { border-bottom: 1px solid var(--rule); }
.product h3 { margin-bottom: .2em; }
.product .p-for {
  font-family: var(--mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-mute);
}
.product .p-price {
  font-family: var(--mono);
  font-size: 1rem;
  margin-top: .9rem;
  display: block;
}
.product p { font-size: .97rem; color: var(--ink-soft); }
@media (max-width: 700px) { .product { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
  max-width: 44rem;
}
.field { display: grid; gap: .45rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 500; }
.field .hint { font-size: .8rem; color: var(--ink-mute); }
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper-alt);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: .75em .85em;
  width: 100%;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 1px;
  border-color: var(--sage-deep);
}
.field .error {
  font-size: .82rem;
  color: #8A3B2E;
  display: none;
}
.field.has-error .error { display: block; }
.field.has-error input { border-color: #8A3B2E; }
.form-success {
  border-top: 1px solid var(--sage-deep);
  background: var(--sage-light);
  border-radius: 2px;
  padding: 1.2rem 1.4rem;
  max-width: 44rem;
}
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--paper-dim-65);
  padding-block: clamp(3.5rem, 6vw, 5.5rem) 2.5rem;
  font-size: .92rem;
}
.footer a { color: var(--paper-dim-92); text-decoration: none; }
.footer a:hover { color: var(--sage-pale); text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--rule-dark);
}
.footer .wordmark { color: var(--paper-dim-92); font-size: 1.25rem; }
.footer .footer-tag {
  margin-top: .9rem;
  max-width: 30ch;
  color: var(--paper-dim-65);
}
.footer .footer-lockup {
  font-family: var(--mono);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--sage-pale);
  margin-top: .4rem;
}
.footer-col h2 {
  font-size: .69rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .155em;
  color: var(--sage-pale);
  margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .55rem; }
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 2rem;
  font-size: .84rem;
  color: var(--paper-dim-65);
}
.footer-meta address { font-style: normal; }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- CTA band ---------- */
.cta-band { text-align: left; }
.cta-band h2 { max-width: 22ch; }
.cta-band .lede { margin-bottom: 2rem; }

/* ---------- Motion ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity .75s cubic-bezier(.22,1,.36,1),
    transform .75s cubic-bezier(.22,1,.36,1);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}
[data-delay="1"] { transition-delay: .09s; }
[data-delay="2"] { transition-delay: .18s; }
[data-delay="3"] { transition-delay: .27s; }
[data-delay="4"] { transition-delay: .36s; }
[data-delay="5"] { transition-delay: .45s; }
[data-delay="6"] { transition-delay: .54s; }

/* Water Tower shot list assembles line by line */
.wt-list li {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .6s ease, transform .6s ease;
}
.wt.is-in .wt-list li { opacity: 1; transform: none; }
.wt.is-in .wt-list li:nth-child(1) { transition-delay: .10s; }
.wt.is-in .wt-list li:nth-child(2) { transition-delay: .33s; }
.wt.is-in .wt-list li:nth-child(3) { transition-delay: .56s; }
.wt.is-in .wt-list li:nth-child(4) { transition-delay: .79s; }
.wt.is-in .wt-list li:nth-child(5) { transition-delay: 1.02s; }
.wt.is-in .wt-list li:nth-child(6) { transition-delay: 1.25s; }
.wt.is-in .wt-list li:nth-child(7) { transition-delay: 1.48s; }

/* No JS? Show everything. */
.no-js [data-reveal], .no-js .wt-list li { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
  [data-reveal], .wt-list li {
    opacity: 1 !important;
    transform: none !important;
  }
  h1 em::after, h2 em::after { transform: scaleX(1); }
}

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.maxw { max-width: 62ch; }
