/* ================================================================== *
 *  7 VERSIONS — motion + atmosphere enhancement layer
 *  Loaded AFTER style.css. Purely additive: adds the "motionsites.ai"
 *  feel (scroll reveals, prism/spectrum hero, drifting atmosphere,
 *  hover lift, embedded video loops) using the SITE'S OWN palette
 *  (forest / teal / amber / clay). No framework, no React.
 *
 *  Ported idioms from the 7versions-landing-page repo, recolored to
 *  the static brand. Every effect has a reduced-motion off-switch.
 * ================================================================== */

:root {
  /* The 7V spectrum, matched to the FDE-deck/OA-app brand gradient
     (teal -> bright teal -> amber -> clay). Stops are PALINDROMIC
     (both ends are the same teal) and the drift below moves exactly
     one tile, so the loop is seamless: no jump cut, no hard seam.
     The old sage-green mid-stop caused the visible hard line. */
  --v7-spectrum: linear-gradient(90deg,
    var(--teal) 0%, #12a594 22%, var(--amber) 46%, var(--clay) 54%,
    var(--amber) 62%, #12a594 82%, var(--teal) 100%);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-reveal: cubic-bezier(0.2, 0.7, 0.2, 1);  /* feature-videos reveal curve */
  --dur-fast: 200ms;
  --dur-base: 520ms;
  --dur-slow: 820ms;
}

/* ------------------------------------------------------------------ *
 *  1. SCROLL REVEAL — sections + cards fade/slide up as they enter.
 *     JS tags targets with data-reveal="ready", flips to "visible".
 *     Stagger delay is set inline by JS for grid children.
 * ------------------------------------------------------------------ */
/* Reveal uses an ANIMATION, not a transition: the cards' hover-lift rule also
 * sets `transition` at equal specificity, which was clobbering a transition-based
 * reveal down to 0.2s. An animation sidesteps that entirely. `backwards` holds
 * the hidden start-state through the stagger delay (no flash) and does NOT
 * persist forwards, so the hover-lift transform still works once revealed. */
[data-reveal="ready"] {
  opacity: 0;
  will-change: opacity, transform;
}
@keyframes v7-reveal {
  from { opacity: 0; transform: translateY(42px); }
  to   { opacity: 1; transform: translateY(0); }
}
[data-reveal="visible"] {
  opacity: 1;
  animation: v7-reveal 0.9s var(--ease-reveal) backwards;
}

/* ------------------------------------------------------------------ *
 *  2. HOVER LIFT — cards and buttons rise with a tinted shadow.
 * ------------------------------------------------------------------ */
.service-card,
.timeline article,
.proof-grid div,
.readiness-box,
.faq-list details,
.team-card {
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}
.service-card:hover,
.timeline article:hover,
.proof-grid div:hover,
.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 54px -26px rgba(15, 118, 110, 0.5);
  border-color: rgba(15, 118, 110, 0.4);
}
.button,
.header-cta {
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}
.button.primary:hover {
  box-shadow: 0 16px 34px -16px rgba(13, 59, 52, 0.7);
}

/* ------------------------------------------------------------------ *
 *  3. SPECTRUM TEXT — the brand signature, on one hero word.
 * ------------------------------------------------------------------ */
.spectrum-text {
  background: var(--v7-spectrum);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: v7-spectrum-drift 9s linear infinite;
}
@keyframes v7-spectrum-drift {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

/* A thin spectrum rule that can sit under section eyebrows. */
.spectrum-rule {
  width: 64px;
  height: 3px;
  margin: 0 0 18px;
  border-radius: 999px;
  background: var(--v7-spectrum);
  background-size: 200% 100%;
  animation: v7-spectrum-drift 9s linear infinite;
}

/* ------------------------------------------------------------------ *
 *  4. HERO — forest ground + the prism composited on the right.
 *     Review round 2: the flat hero read as bland with dead space on
 *     the right, and the translucent copy panel now guarantees the
 *     text stays readable (Jerry's note), so the prism returns as the
 *     hero visual. The clip is on pure black; screen blending drops
 *     the black so only the light and spectrum land on the forest.
 * ------------------------------------------------------------------ */
.hero {
  background:
    radial-gradient(95% 120% at 62% 48%, #061a17, transparent 62%),
    var(--forest);
}
.hero-prism {
  position: absolute;
  inset: 0 0 0 24%;   /* prism sits right of the copy */
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  /* Feather the layer's left edge into the forest so no seam shows. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%);
  mask-image: linear-gradient(90deg, transparent, #000 18%);
}
.hero-prism .prism-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 80% center;  /* rays exit toward the right edge */
  mix-blend-mode: screen;
  opacity: 0.96;
}

/* ------------------------------------------------------------------ *
 *  6. VIDEO SHOWCASE — embedded Remotion loops (added section in HTML).
 *     Sits on a dark forest ground so the violet-spectrum clips read
 *     as intentional accent rather than clashing with the paper UI.
 * ------------------------------------------------------------------ */
.motion-section {
  padding: clamp(64px, 9vw, 118px) clamp(20px, 4vw, 56px);
  color: var(--white);
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(15,118,110,0.22), transparent 60%),
    var(--forest);
}
.motion-section .eyebrow { color: #94e3dc; }
.motion-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}
.motion-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.motion-card:hover {
  transform: translateY(-5px);
  border-color: rgba(148, 227, 220, 0.5);
}
.motion-card video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #0b1a18;
}
.motion-card .label {
  display: block;
  padding: 16px 18px 20px;
}
.motion-card .label strong { display: block; font-size: 1.04rem; margin-bottom: 4px; }
.motion-card .label span { color: rgba(255, 255, 255, 0.68); font-size: 0.9rem; }

@media (max-width: 980px) {
  .motion-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ *
 *  7. NAV — subtle active-link underline + scrolled shadow.
 * ------------------------------------------------------------------ */
.site-header.is-scrolled {
  box-shadow: 0 10px 30px -18px rgba(18, 28, 27, 0.4);
}
.main-nav a {
  position: relative;
  transition: color var(--dur-fast) var(--ease-out);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 2px;
  background: var(--v7-spectrum);
  background-size: 200% 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--ease-out);
}
.main-nav a:hover::after { transform: scaleX(1); }
/* Panel links are cards, not inline links: no spectrum underline. */
.nav-panel-inner a::after { content: none; }

/* ================================================================== *
 *  PASS 2 — typographic + finish refinements.
 *  Brings the static site in line with the landing-page brand system:
 *  IBM Plex Mono kickers (the brand pairs Inter body with mono labels),
 *  spectrum micro-details where the color budget belongs, tightened
 *  display type, and the small states (focus, selection, FAQ marker)
 *  that read as "finished". Additive; base sheet untouched.
 * ================================================================== */

:root {
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* --- Display type: Apple-clean tracking at display sizes ---------- */
h1, h2 {
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.story-tagline { letter-spacing: -0.02em; }

/* --- Kicker system: every label/eyebrow speaks mono ---------------
   One size for every kicker-slot label, and nothing on the site
   below 14px (0.875rem): the designer's-eye floor from review
   round 2. */
.eyebrow,
.svc-tag,
.timeline span,
.selector-result-label,
.intake-form legend,
.resource-date,
.nav-panel-kicker {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
}
.svc-structure { font-family: var(--font-mono); font-weight: 500; font-size: 0.875rem; }

/* --- Spectrum tick before every eyebrow ---------------------------- */
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 2px;
  margin-right: 10px;
  border-radius: 999px;
  vertical-align: 0.22em;
  background: var(--v7-spectrum);
  background-size: 200% 100%;
  animation: v7-spectrum-drift 9s linear infinite;
}

/* --- Spectrum hairline riding the sticky header -------------------- */
.site-header::before {
  content: "";
  position: absolute;
  bottom: 0; left: 16px; right: 16px;   /* stops where the corners curve */
  height: 3.5px;
  background: var(--v7-spectrum);
  background-size: 200% 100%;
  animation: v7-spectrum-drift 9s linear infinite;
  opacity: 0.22;   /* faint track; the ::after fill shows progress */
}

/* --- Spectrum top edge on the rounded CTA / contact panels --------- */
.cta-band, .team-cta, .contact-section {
  position: relative;
  overflow: hidden;
}
.cta-band::before, .team-cta::before, .contact-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--v7-spectrum);
  background-size: 200% 100%;
  animation: v7-spectrum-drift 9s linear infinite;
  pointer-events: none;
}

/* --- Service-card numerals: oversized spectrum ghost figures ------- */
.service-card > .icon {
  display: block;
  width: auto;
  height: auto;
  margin-bottom: 18px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
  background-color: transparent;
  background-image: var(--v7-spectrum);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: v7-spectrum-drift 9s linear infinite;
  border-radius: 0;
}

/* --- FAQ: mono +/− marker instead of the default disclosure -------- */
.faq-list summary {
  position: relative;
  padding-right: 32px;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
}
.faq-list details[open] summary::after { content: "−"; }

/* --- Hero grain: filmic texture on the forest ground. Sits BELOW the
       copy (z-index 0 vs the copy's 1) so text never renders through it. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.25;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

/* --- States that read as "finished" --------------------------------- */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
::selection { background: rgba(15, 118, 110, 0.24); }
.hero ::selection, .process-section ::selection, .cta-band ::selection,
.team-cta ::selection, .contact-section ::selection {
  background: rgba(148, 227, 220, 0.35);
}

/* ================================================================== *
 *  PASS 3 — bolder brand presence: radial-glow dark sections and a
 *  proper dark footer. (The original hero-type bump and the scrolling
 *  trust marquee were retired in the 2026-07 redesign: the marquee
 *  distracted from the value proposition and the oversized H1 pushed
 *  the services section below the first scroll.)
 * ================================================================== */

/* --- Dark sections: the landing-page radial-glow idiom ------------- */
.process-section {
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(15, 118, 110, 0.28), transparent 60%),
    var(--forest);
}
.cta-band, .team-cta {
  background:
    radial-gradient(130% 150% at 85% 8%, rgba(15, 118, 110, 0.38), transparent 62%),
    var(--forest);
}

/* --- Subpage heroes: same grain as the home hero -------------------- */
.page-hero { position: relative; }
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

/* --- Footer: dark forest close with the spectrum hairline ----------- */
.site-footer {
  position: relative;
  padding-top: clamp(38px, 6vw, 58px);
  padding-bottom: clamp(38px, 6vw, 58px);
  color: rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(120% 120% at 18% 0%, rgba(15, 118, 110, 0.28), transparent 60%),
    var(--forest);
  border-top: 0;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--v7-spectrum);
  background-size: 200% 100%;
  animation: v7-spectrum-drift 9s linear infinite;
}
.site-footer a { color: rgba(255, 255, 255, 0.88); }
.site-footer a:hover { color: #94e3dc; }

/* On dark bands the primary button inverts (matches .contact-section). */
.cta-band .button.primary, .team-cta .button.primary {
  color: var(--forest);
  background: var(--white);
}

/* ------------------------------------------------------------------ *
 *  PASS 4 — copy-refresh support (2026-07): hero CTA row, dark-band
 *  contrast fixes, form-submit fix, story promise image grid.
 * ------------------------------------------------------------------ */

/* Hero CTA — inverted primary on the dark hero, ghost secondary. */
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero .button.primary { color: var(--forest); background: var(--white); }
.hero .button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
}
.hero-note {
  margin-top: 12px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
}

/* Section intros on dark bands were muted-ink on forest — unreadable.
   (:not(.eyebrow) keeps the teal kicker accent.) */
.process-section .section-heading p:not(.eyebrow) { color: rgba(247, 245, 239, 0.8); }

/* The submit button sits inside the white form card, so the inverted
   .contact-section primary was white-on-white. Restore forest there. */
.intake-form .button.primary { color: var(--white); background: var(--forest); }

/* Story: give the tagline room to land after the source line. */
.story-tagline { margin-top: 36px; }

/* Legal pages (privacy.html, terms.html). */
.legal-copy { max-width: 740px; }
.legal-copy .legal-date {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 22px;
}
.legal-copy h2 { font-size: 1.3rem; margin: 36px 0 10px; }
.legal-copy p { margin: 0 0 14px; }
.legal-copy a { color: var(--teal); }

/* Story promise: heading copy beside the prism image. */
.promise-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(26px, 5vw, 64px);
  align-items: center;
}
.promise-grid .section-heading { margin-bottom: 0; }
.promise-grid img { width: 100%; border-radius: 12px; display: block; }
@media (max-width: 760px) {
  .promise-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ *
 *  REDUCED MOTION — calm end-states for everyone who asks for it.
 * ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  [data-reveal="ready"], [data-reveal="visible"] { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .spectrum-text, .spectrum-rule { animation: none !important; }
  .eyebrow::before, .site-header::before, .cta-band::before,
  .team-cta::before, .contact-section::before, .site-footer::before,
  .service-card > .icon { animation: none !important; }
  .service-card:hover, .timeline article:hover, .proof-grid div:hover,
  .team-card:hover, .motion-card:hover { transform: none !important; }
}

/* --- Footer CTA shine: a slow light pass THROUGH the headline text,
       the same treatment family as the spectrum on "next version". --- */
.shine-text {
  background-image: linear-gradient(105deg,
    rgba(247, 245, 239, 0.82) 42%, #ffffff 50%, rgba(247, 245, 239, 0.82) 58%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: v7-shine 8s var(--ease-out) infinite;
}
@keyframes v7-shine {
  0% { background-position: 100% 0; }
  42%, 100% { background-position: 0% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .shine-text { animation: none !important; }
}

/* ================================================================== *
 *  PASS 5 — 2026-07-11 review round 7.
 * ================================================================== */

/* --- Spectrum drift direction: LEFT -> RIGHT sitewide.
       Measured on rendered frames: the original 0% -> 200% keyframes
       move the color pattern right-to-left, opposite the shine and
       reading direction. Redefining the keyframes here (last
       definition wins) flips every drift without touching PASS 1.
       200% is still exactly one tile, so the loop stays seamless. --- */
@keyframes v7-spectrum-drift {
  0% { background-position: 200% 0; }
  100% { background-position: 0% 0; }
}

/* --- Round 7: right-aligned section heading (story prism section).
       Mirrors the standard heading: text ragged-left, dash AFTER the
       eyebrow instead of before. --- */
.section-heading--right { text-align: right; }
.section-heading--right .eyebrow::before { content: none; }
.section-heading--right .eyebrow::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 2px;
  margin-left: 10px;
  border-radius: 999px;
  vertical-align: 0.22em;
  background: var(--v7-spectrum);
  background-size: 200% 100%;
  animation: v7-spectrum-drift 9s linear infinite;
}
.section-heading--right h2 { margin-left: auto; }
.section-heading--right p:not(.eyebrow) { margin-left: auto; }

/* --- Round 7: flipped promise grid (image left, copy right). --- */
.promise-grid--flip { grid-template-columns: 1fr 1fr; }
.promise-grid--flip img {
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

/* --- Round 7: article figures (FDE post diagrams). --- */
.post-figure { margin: 34px 0; }
.post-figure img {
  width: 100%;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.post-figure figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

/* Inline SVG variant of the post figure (inherits the page's Inter). */
.post-figure svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--line);
}

/* ================================================================== *
 *  PASS 6 — 2026-07-11 end-of-day polish.
 *  Loaded last, so these win by source order over the earlier nav
 *  kicker/panel and resource-date definitions.
 *  - Nav restructure: Home / Services / More(4) / Contact + shimmer.
 *  - Mobile hamburger (fixes the cramped scroll-strip + the resize
 *    size-mismatch where Our Story/Our Team rendered larger).
 *  - Prism story paragraph left-aligned; hero prism nudged right.
 *  - Blog date pill; wider blog figures; newsletter block.
 * ================================================================== */

/* --- Screen-reader-only utility (newsletter email label) ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Prism story: the body copy was right-justified in a narrow
       half-column, so the rag read as awkward. Keep the eyebrow and
       heading right-aligned (the design), but set the paragraph
       ragged-right (text-align:left) so it reads cleanly. --- */
.section-heading--right p:not(.eyebrow) { text-align: left; }

/* --- Homepage hero: nudge the prism clip a little further right so
       it clears the headline copy. --- */
.hero-prism { inset: 0 0 0 32%; }

/* ---------------- NAV: desktop structure ------------------------- */
/* Hamburger hidden on desktop; the link row is a flex group. */
.nav-toggle { display: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}
/* The More panel now carries four cards (Story, Team, FAQ, Resources). */
.nav-panel-inner { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Contact: a slow light pass THROUGH the text, the footer shine
   treatment tuned for the light glass bar (ink base, teal sheen). */
.nav-contact { position: relative; }
.nav-shine {
  background-image: linear-gradient(105deg,
    var(--ink) 42%, var(--teal) 50%, var(--ink) 58%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: v7-shine 8s var(--ease-out) infinite;
}
@media (prefers-reduced-motion: reduce) {
  .nav-shine { animation: none !important; }
}

/* Hamburger icon: three bars that fold into an X when open. */
.nav-toggle {
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  padding: 0; margin: 0; border: 0; background: none;
  color: var(--ink); cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block; width: 22px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before,
.nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after  { top: 7px; }
.main-nav.is-open .nav-toggle-bar { background: transparent; }
.main-nav.is-open .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.main-nav.is-open .nav-toggle-bar::after  { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- NAV: mobile hamburger panel -------------------- */
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { order: 0; width: auto; overflow: visible; }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    background: rgba(247, 245, 239, 0.97);
    border: 1px solid rgba(22, 32, 31, 0.10);
    border-radius: 14px;
    box-shadow: 0 22px 54px -24px rgba(18, 28, 27, 0.55);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    backdrop-filter: blur(20px) saturate(1.4);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }
  .main-nav.is-open .nav-links {
    opacity: 1; visibility: visible; transform: none;
  }

  .nav-links > a { display: block; width: 100%; padding: 12px 14px; border-radius: 10px; font-size: 1.05rem; text-align: left; }
  .nav-links > a:hover { background: rgba(15, 118, 110, 0.08); }
  .nav-links > a::after { content: none; }   /* no spectrum underline in the stack */

  /* More group flattens into a labelled stack (no nested toggle). */
  .nav-group { display: block; width: 100%; }
  .nav-group-toggle { display: none; }
  .nav-panel {
    position: static; inset: auto;
    display: block; width: 100%;
    padding: 0; background: none; border: 0; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    opacity: 1; visibility: visible; transform: none;
  }
  .nav-panel-inner { display: flex; flex-direction: column; gap: 2px; }
  .nav-panel-inner a { padding: 12px 14px; border-radius: 10px; text-align: left; color: var(--ink); }
  .nav-panel-inner a:hover { background: rgba(15, 118, 110, 0.08); }
  .nav-panel-desc { display: none; }

  /* Uniform link sizing at every width — this .nav-links descendant
     selector (0,2,0) beats the mono kicker rule (PASS 2, 0,1,0), so
     Our Story / Our Team no longer render larger than the rest. */
  .nav-links .nav-panel-kicker {
    margin: 0; color: var(--ink);
    font-family: inherit; font-weight: 700; font-size: 1.05rem;
    letter-spacing: normal; text-transform: none;
  }

  /* Contact is a plain stacked link here (drop the text-clip shine). */
  .nav-links .nav-shine {
    color: inherit;
    -webkit-text-fill-color: currentColor;
    background: none;
    -webkit-background-clip: border-box; background-clip: border-box;
    animation: none;
  }
}

/* ---------------- BLOG: date pill -------------------------------- */
/* Was a loud teal uppercase mono ISO string; now a subtle chip.
   .service-card .resource-date (0,2,0) overrides the three earlier
   .resource-date definitions. */
.service-card .resource-date {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.06);
  color: var(--muted);
  font-family: inherit;   /* Inter, not the mono kicker face */
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  text-transform: none;
}

/* ---------------- BLOG: larger figures --------------------------- */
/* The reading column widened to 860px (PASS 11); let figures break a
   little past it so diagrams read larger, centered on the column. */
.post-figure {
  width: min(1040px, calc(100vw - 48px));
  margin: 34px 0;
  margin-left: 50%;
  transform: translateX(-50%);
}

/* ---------------- NEWSLETTER (resources/blog) -------------------- */
.newsletter-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 44px) clamp(20px, 4vw, 40px);
  text-align: center;
  background: rgba(15, 118, 110, 0.05);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.newsletter-inner .eyebrow { justify-content: center; }
.newsletter-inner h2 { margin: 0 0 10px; }
.newsletter-inner > p { margin: 0 auto; max-width: 460px; color: var(--muted); }
.newsletter-form { margin-top: 22px; }
.newsletter-row {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}
.newsletter-input {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
.newsletter-input:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}
.newsletter-row .button.primary { white-space: nowrap; }
.newsletter-note { margin: 12px 0 0; text-align: center; }
.newsletter-note.is-error { color: #b15f3b; }
@media (max-width: 560px) {
  .newsletter-row { flex-direction: column; }
}

/* ================================================================== *
 *  PASS 7 — 2026-07-11 review round 2 (afternoon).
 *  Appended last: wins by source order over the earlier passes.
 * ================================================================== */

/* --- Hero prism: move further right so more of the prism reads
       clear of the copy panel. --- */
.hero-prism { inset: 0 0 0 44%; }

/* --- Footer CTA: the pill sat hard against the right edge (space-
       between), leaving a dead gap after the headline. Pull it in so it
       follows the headline with a comfortable gap. --- */
.footer-cta-row { justify-content: flex-start; gap: clamp(24px, 5vw, 72px); }
.footer-cta-row .button.primary { margin-right: 0; }
@media (max-width: 680px) {
  .footer-cta-row { justify-content: stretch; }
}

/* --- Mobile nav: Home/Services inherited muted grey while the More
       items were ink; make every link the same ink, current page teal. --- */
@media (max-width: 980px) {
  .nav-links > a { color: var(--ink); }
  .nav-links > a[aria-current="page"],
  .nav-links [aria-current="page"] .nav-panel-kicker,
  .nav-links [aria-current="page"] { color: var(--teal); }
}

/* --- Story page: standalone story sections span the glass-bar width
       (centered to the same 1180 as the header) instead of a narrow
       left column. The plain centered blocks AND the prism grid; not
       the mission/vision split. --- */
.page-story .section--centered > .section-heading {
  max-width: min(1180px, 100%);
  margin-left: auto;
  margin-right: auto;
}
.page-story .section--centered > .section-heading > .story-lede,
.page-story .section--centered > .section-heading > p:not(.eyebrow) {
  max-width: none;
}
/* Prism grid spans the same full width so the image's left edge lines up
   with the story prose above it, and the image itself reads larger (was a
   narrower 980px centred block indented from the text). */
.page-story .section--centered > .promise-grid--flip {
  max-width: min(1180px, 100%);
}

/* --- Resources newsletter: wide + landscape, matching the glass bar.
       Copy on the left, form on the right. --- */
.newsletter-band--wide .newsletter-inner {
  max-width: min(1180px, 100%);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
  text-align: left;
}
.newsletter-band--wide .newsletter-copy > p { margin: 0 0 4px; max-width: 46ch; }
.newsletter-band--wide .newsletter-inner .eyebrow { justify-content: flex-start; }
.newsletter-band--wide .newsletter-form { margin-top: 0; min-width: 360px; }
.newsletter-band--wide .newsletter-row { margin: 0; }
.newsletter-band--wide .newsletter-note { text-align: left; }
@media (max-width: 760px) {
  .newsletter-band--wide .newsletter-inner { grid-template-columns: 1fr; text-align: center; }
  /* Drop the 360px form floor on phones so the band never exceeds the
     viewport (was causing a small horizontal scroll under ~400px). */
  .newsletter-band--wide .newsletter-form { min-width: 0; }
  .newsletter-band--wide .newsletter-copy > p { max-width: none; }
  .newsletter-band--wide .newsletter-inner .eyebrow { justify-content: center; }
  .newsletter-band--wide .newsletter-note { text-align: center; }
}

/* --- Contact form: red asterisk marks the required fields. --- */
.req { color: #c0392b; font-weight: 700; margin-left: 1px; }

/* --- Services: the structure line under the divider read in IBM Plex
       Mono; match the body face (Inter), kept small and grey. --- */
.svc-structure { font-family: inherit; color: var(--muted); font-weight: 500; }

/* --- Contact band: layer the ambient glow hero asset behind the form
       band (the plainest dark surface), tinted so text stays legible. --- */
.contact-section {
  background:
    linear-gradient(135deg, rgba(13, 59, 52, 0.82), rgba(19, 40, 37, 0.82) 62%, rgba(55, 34, 24, 0.82)),
    url("../assets/hero-bg-glow.svg") center / cover no-repeat,
    var(--forest);
}

/* --- Blog post: widen the reading column toward the glass bar and let
       figures span the full glass width. --- */
.post-body { max-width: 1040px; }
.post-figure { width: min(1180px, calc(100vw - 48px)); }

/* --- Services: condense the gap between "Worth noting" and the
       "Find where to start" selector (two full section paddings stacked
       read as too much air). --- */
.selector-section { padding-top: clamp(16px, 2.5vw, 34px); }

/* --- Team headshots: normalize head size across the five photos.
       Each portrait is shot at a different distance, so heads render at
       different sizes. A .person-photo clip box (fixed 320h, overflow
       hidden) lets each image scale up toward the largest-headed photos
       (Michael / Jeremiah) via a per-person --head zoom, without the
       enlarged image bleeding onto the name (the box clips it). At
       --head:1 the render is identical to a bare img. --- */
.person-photo {
  display: block;
  width: 100%;
  height: 320px;
  overflow: hidden;
  margin-bottom: 16px;
}
.person-photo img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  /* --head sizes the head; --ty (px) nudges the crop vertically so every
     face lands on the same eye-line. Center origin + the base zoom give
     overflow on both edges so --ty can move up or down without a gap. */
  transform: translateY(var(--ty, 0)) scale(var(--head, 1.2));
  transform-origin: center center;
}
/* Read bio sits on a common bottom baseline across all cards, regardless
   of how many lines the role title takes. */
.person-card .person-more { margin-top: auto; }

/* --- Homepage: the testimonial + motion sections are commented out, so
       the newsletter band sits alone between "Why 7 Versions" and the
       footer. Two full 80px section paddings above and one below read as
       too much air. Tighten them (homepage only; the same .newsletter-band
       on /resources and .proof-section on /services keep their spacing). --- */
.page-home .proof-section { padding-bottom: clamp(24px, 3.5vw, 44px); }
.page-home .newsletter-band {
  padding-top: clamp(16px, 2.5vw, 32px);
  padding-bottom: clamp(24px, 3.5vw, 44px);
}

/* ------------------------------------------------------------------ *
 *  PASS 8 — 2026-07-11 (take 3): CTA glimmer.
 *  The light stays IN the text for the headline (.shine-text clips a
 *  moving highlight to the letterforms; left enabled) and is a slim
 *  glint clipped to the pill for the button. NO full-width overlay:
 *  the earlier blend overlay read as a big light block AND, sliding
 *  past the row edges, forced a horizontal scrollbar. "next version"
 *  keeps its spectrum. Pills go cream (--paper) so a white glint reads
 *  on them and matches the headline text; same glint on the hero pill.
 *  The glint glances just after the headline shine so the light reads
 *  as travelling from the text onto the button.
 * ------------------------------------------------------------------ */
.footer-cta-row .button.primary,
.hero .button.primary {
  background: var(--paper);
  position: relative;
  overflow: hidden;               /* clips the glint to the pill; no page overflow */
}
.footer-cta-row .button.primary::before,
.hero .button.primary::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg,
    transparent 44%,
    rgba(255, 255, 255, 0.85) 50%,
    transparent 56%);             /* a slim white streak, not a block */
  transform: translateX(-160%);
  animation: v7-btn-glint 12s ease-in-out infinite;
}
/* Same 12s period as the headline shine (below) so they stay in phase and
   read as one travelling light. The sweep spans 48-76% of the cycle — a
   slow, smooth glance (~3.4s) with a long calm rest, not a quick flick. */
@keyframes v7-btn-glint {
  0%, 48% { transform: translateX(-160%); }  /* rest while the headline shines */
  76%     { transform: translateX(160%); }   /* slow glance just after */
  100%    { transform: translateX(160%); }
}
/* Match the headline shine to the same 12s period so the two sync. */
.footer-cta-row .shine-text { animation-duration: 12s; }
@media (prefers-reduced-motion: reduce) {
  .footer-cta-row .button.primary::before,
  .hero .button.primary::before { animation: none; opacity: 0; }
}

/* ------------------------------------------------------------------ *
 *  PASS 9 — 2026-07-11: glass bar shrinks slightly on scroll-down.
 *  Scrolling down past the fold nudges the floating bar a touch smaller
 *  (width + height together, via one uniform scale). Scrolling back up,
 *  reaching the top, OR hovering the bar returns it to full size. JS
 *  toggles .is-compact by scroll direction (enhance.js, nav section);
 *  the :hover restore lives here so it works without JS.
 * ------------------------------------------------------------------ */
.site-header {
  transform-origin: center top;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
  will-change: transform;
}
.site-header.is-compact { transform: scale(0.93); }
.site-header.is-compact:hover { transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  .site-header { transition: none; }
  .site-header.is-compact { transform: none; }
}
