/* =========================================================================
   Zspez — universal stylesheet (index.html, visibility.html, education.html)

   Sections
     1. Tokens          shared design tokens + per-page extras
     2. Base            reset, typography, buttons, backdrop system, section base
     3. Home            index.html only
     4. Pillar          visibility.html + education.html
     5. CTA             shared form + per-page spacing

   Where the home page and the pillar pages used the same selector with
   different values, each variant is scoped with :where(.page-home) or
   :where(.page-pillar) (set on <body>). :where() adds no specificity, so the
   cascade behaves exactly as it did when each page had its own <style> block.

   Nav markup/styles/behavior live in header.html and footer.html and are
   fetched + injected at runtime.
   ========================================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --white: #fff;
  --black: #0a0a09;
  --black-soft: #121110;
  --ink: #f3f1ec;
  --ink-dim: rgba(243,241,236,.68);
  --ink-mute: rgba(243,241,236,.42);
  --line: rgba(243, 241, 236, 0.42);
  --line-soft: rgba(243,241,236,.07);
  --orange: #e8542a;
  --orange-deep: #cf4a25;
  --orange-glow: rgba(255,90,31,.35);
  --glass-border: rgba(255,255,255,.14);
  --max: 1240px;
  --pad: clamp(24px, 5vw, 64px);
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.16,.8,.24,1);
}
/* home-only tokens (--cinzel is also read by footer.html) */
:where(.page-home) {
  --panel: #17150f0f;
  --glass-bg: rgba(18,17,15,.5);
  --cinzel: "Cinzel", "Times New Roman", Times, serif;
}
/* pillar pages pin the nav height used by the sticky heading */
:where(.page-pillar) { --nav-h: 100px !important; }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
p { margin: 0; color: var(--ink-dim); }
::selection { background: var(--orange); color: #10090a; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--orange); outline-offset: 3px;
}

/* ---------- Type scale ---------- */
.display  { font-size: clamp(2.8rem, 7.2vw, 6.2rem); font-weight: 800; letter-spacing: -0.035em; }
.h1p      { font-size: clamp(2.6rem, 6vw, 4.8rem); font-weight: 800; letter-spacing: -0.03em; }
:where(.page-home) .h2   { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 700; letter-spacing: -0.025em; }
:where(.page-pillar) .h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 700; letter-spacing: -0.02em; }
.h3       { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 600; letter-spacing: -0.01em; }
.kicker   { font-size: clamp(1rem, 1.3vw, 1.2rem); font-weight: 600; color: var(--orange); margin-bottom: 18px; display: block; text-transform: uppercase; }
:where(.page-home) .kicker   { letter-spacing: .01em; }
:where(.page-pillar) .kicker { letter-spacing: .03em; }
.lede     { color: var(--ink-dim); }
:where(.page-home) .lede   { font-size: clamp(1.05rem, 1.4vw, 1.25rem); max-width: 46ch; }
:where(.page-pillar) .lede { font-size: clamp(1.02rem, 1.3vw, 1.18rem); max-width: 100ch; }
.fine     { font-size: .88rem; color: var(--ink-mute); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 1.8rem;
  font-weight: 600; font-size: .98rem; cursor: pointer;
  border: 1px solid transparent; transition: all .2s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(255,255,255,.04); }
.btn svg { transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.brand-name { font-family: var(--cinzel); font-weight: 550; font-size: 1.5rem; letter-spacing: -.01em; }

/* ---------- Backdrop system (shared) ---------- */
.backdrop { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
:where(.page-home) .backdrop img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.4) contrast(1.18) brightness(.62);
  transform: scale(1.03);
}
:where(.page-pillar) .backdrop img,
:where(.page-pillar) .backdrop video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.4) contrast(1.18) brightness(.5);
}
.backdrop .duo {
  position: absolute; inset: 0;
  background: linear-gradient(155deg, #05040300 0%, #6a270824 46%, #ff6a2b0d 115%);
  mix-blend-mode: color;
  opacity: .92;
}
:where(.page-home) .backdrop .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 7, 6, 0.46) 0%, rgba(8, 7, 6, 0.64) 55%, rgba(8,7,6,.92) 100%);
}
:where(.page-home) .backdrop .scrim.scrim-tight { background: linear-gradient(0deg, rgba(8, 7, 6, 0) 0%, rgba(8, 7, 6, 0.12) 55%, rgb(8, 7, 6) 100%); }
:where(.page-pillar) .backdrop .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(8, 7, 6, 0) 0%, rgba(8, 7, 6, 0.12) 55%, rgba(8, 7, 6, 0.8) 100%);
}
.backdrop .grain {
  position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Section base ---------- */
section { position: relative; background: var(--black); }
:where(.page-home) .pad   { padding: clamp(80px, 11vw, 140px) 0; }
:where(.page-pillar) .pad { padding: clamp(70px, 10vw, 120px) 0; }

.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;
}


/* =========================================================================
   3. HOME (index.html)
   ========================================================================= */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero .backdrop img.a { animation: heroPanA 24s ease-in-out infinite alternate, heroFadeA 16s ease-in-out infinite; }
.hero .backdrop img.b { animation: heroPanB 24s ease-in-out infinite alternate, heroFadeB 16s ease-in-out infinite; opacity: 0; }
@keyframes heroPanA { from { transform: scale(1.05) translate(0,0); } to { transform: scale(1.18) translate(-2%, -1%); } }
@keyframes heroPanB { from { transform: scale(1.12) translate(1%,0); } to { transform: scale(1.24) translate(-1%, -2%); } }
@keyframes heroFadeA { 0%, 42% { opacity: 1; } 50%, 92% { opacity: 0; } 100% { opacity: 1; } }
@keyframes heroFadeB { 0%, 42% { opacity: 0; } 50%, 92% { opacity: 1; } 100% { opacity: 0; } }

.hero-content {
  position: relative; z-index: 2;
  width: 100%;
  padding-top: clamp(140px, 22vw, 220px);
  padding-bottom: clamp(56px, 8vw, 96px);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero-content .rule {
  width: 56px; height: 2px; background: var(--orange); margin-bottom: 28px;
  opacity: 0; animation: riseIn .9s var(--ease) .15s forwards;
}
.hero h1 {
  color: var(--ink); max-width: 15ch;
  opacity: 0; transform: translateY(22px);
  animation: riseIn .9s var(--ease) .3s forwards;
}
.hero p.lede {
  margin-top: 24px; color: rgba(243,241,236,.78);
  max-width: 52ch;
  opacity: 0; transform: translateY(18px);
  animation: riseIn .9s var(--ease) .5s forwards;
}
:where(.page-home) .hero-ctas {
  display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap;
  justify-content: center;
  opacity: 0; transform: translateY(18px);
  animation: riseIn .9s var(--ease) .68s forwards;
}
@keyframes riseIn { to { opacity: 1; transform: translateY(0); } }

.scroll-cue {
  position: absolute; left: var(--pad); bottom: 28px; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  color: var(--ink-mute); font-size: .78rem; letter-spacing: .02em;
  opacity: 0; animation: riseIn .9s var(--ease) .95s forwards;
}
.scroll-cue .chev { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

@media (prefers-reduced-motion: reduce) {
  .hero .backdrop img, .hero .backdrop img.b { animation: none !important; opacity: 1 !important; }
  .hero h1, .hero p.lede, :where(.page-home) .hero-ctas, .hero-content .rule, .scroll-cue { animation: none !important; opacity: 1 !important; transform: none !important; }
  .scroll-cue .chev { animation: none !important; }
}

/* ---------- Method (editorial rows, text-forward) ---------- */
.method-head { max-width: 640px; margin: 0 auto clamp(48px, 7vw, 80px); text-align: center; }
.method-head h2 { color: var(--ink); }
.method-more { margin-top: clamp(32px, 5vw, 48px); }
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 90px 52px minmax(0, 250px) minmax(0, 1fr) auto;
  gap: clamp(16px, 3vw, 32px);
  align-items: center;
  padding: clamp(28px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--line);
}
.row .num { font-size: 1rem; color: var(--orange); font-weight: 600; font-variant-numeric: tabular-nums; }
.row-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 30%;
  color: var(--orange);
  background: rgba(255, 90, 31, 0.16);
}
.row-icon svg { width: 24px; height: 24px; }
.row h3 { color: var(--ink); }
.row .tag { display: block; font-size: .85rem; color: var(--ink-mute); margin-top: 4px; font-weight: 400; }
.row p { font-size: 1.02rem; max-width: 52ch; }
.row-go {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink);
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.row-go svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.row-go:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.row-go:hover svg { transform: translateX(2px); }
@media (max-width: 760px) {
  .row { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 8px 14px; }
  .row .num { grid-column: 1 / -1; }
  .row-icon { grid-column: 1; grid-row: 2; margin-bottom: 0; }
  .row > div:nth-child(3) { grid-column: 2; grid-row: 2; align-self: center; }
  .row h3 { display: block; }
  .row .tag { display: block; margin-top: 4px; }
  .row p { grid-column: 1 / -1; }
  .row-go { grid-column: 3; grid-row: 2; justify-self: end; align-self: center; }
  :where(.page-home) .pad { padding: clamp(80px, 11vw, 140px) 0; }
}

/* ---------- Statement break (full-bleed image + single line) ---------- */
.statement {
  position: relative; isolation: isolate;
  min-height: 80vh;
  display: flex; align-items: center; justify-content: flex-start;
  overflow: hidden;
}
.statement blockquote {
  position: relative; z-index: 1;
  margin: 0 auto; padding: clamp(80px, 12vw, 120px) 0;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.18;
  color: var(--ink); max-width: 18ch;
  text-align: center;
}
.statement cite { display: block; margin-top: 22px; font-style: normal; font-size: 1.08rem; font-weight: 500; color: var(--orange); }
.statement .wrap { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Focus (glass tiles over photo) ---------- */
.focus { position: relative; isolation: isolate; overflow: hidden; }
.focus-head { max-width: 640px; margin: 0 auto clamp(48px, 7vw, 80px); position: relative; z-index: 1; text-align: center; }
.focus-head h2 { color: var(--ink); }
.focus-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; backdrop-filter: blur(10px); }

/* home flip tiles */
:where(.page-home) .flip { perspective: 1300px; height: 300px; }
:where(.page-home) .flip-inner {
  position: relative; width: 100%; height: 100%;
  transition: transform .7s var(--ease);
  transform-style: preserve-3d;
}
:where(.page-home) .flip:hover .flip-inner,
:where(.page-home) .flip:focus-within .flip-inner { transform: rotateY(180deg); box-shadow: 0 0 42px var(--orange-glow); }
:where(.page-home) .flip-face {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 6px;
  border: 1px solid var(--glass-border);
  overflow: hidden;
}
:where(.page-home) .flip-front {
  background: rgba(37, 37, 37, 0.4);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  padding: 22px;
  text-align: center;
}
.flip-front .hint { position: absolute; top: 18px; right: 20px; font-size: .66rem; font-weight: 600; letter-spacing: .04em; color: var(--ink-mute); display: none; }
.flip-front .vis { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -60%); width: 66%; }
:where(.page-home) .flip-front h3 { color: var(--ink); font-size: 1.08rem; line-height: 1.25; font-weight: 500; text-transform: uppercase; }
:where(.page-home) .flip-back {
  transform: rotateY(180deg);
  padding: 26px 24px;
  background: rgba(20,15,10,.72);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  border-color: rgba(255,90,31,.4);
  text-align: center;
}
:where(.page-home) .flip-back h3 { color: var(--ink); margin-bottom: 10px; font-size: 1.02rem; font-weight: 500; text-transform: uppercase; }
:where(.page-home) .flip-back p { font-size: .92rem; }
@media (max-width: 900px) { .focus-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .focus-grid { grid-template-columns: 1fr; } :where(.page-home) .flip { height: 220px; } }
@media (prefers-reduced-motion: reduce) {
  :where(.page-home) .flip-inner { transition: none; }
  :where(.page-home) .flip:hover .flip-inner, :where(.page-home) .flip:focus-within .flip-inner { transform: none; }
}

/* ---------- Values ---------- */
.values-head { max-width: 640px; margin: 0 auto clamp(48px, 7vw, 80px); text-align: center; }
.values-head h2 { color: var(--ink); }
.values-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.value-item {
  padding: 30px 24px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
}
.value-item:last-child { border-right: none; }
.value-head-row { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin-bottom: 12px; }
.value-num { font-size: 1rem; color: var(--orange); font-weight: 600; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.value-item h3 { color: var(--ink); margin-bottom: 0; font-size: 1.08rem; }
.value-item p { font-size: .96rem; }
@media (max-width: 900px) {
  .values-list { grid-template-columns: 1fr 1fr; }
  .value-item:nth-child(2n) { border-right: none; }
}
@media (max-width: 560px) {
  .values-list { grid-template-columns: 1fr; }
  .value-item { border-right: none !important; }
}


/* =========================================================================
   4. PILLAR (visibility.html + education.html)
   ========================================================================= */

/* Breadcrumb */
.crumb { padding: clamp(120px,16vw,150px) 0 0; }
.crumb a { color: var(--ink-mute); font-size: .85rem; }
.crumb a:hover { color: var(--orange); }
.hero-copy .back-link { color: var(--ink-mute); font-size: .85rem; margin-bottom: 18px; display: block; }
.hero-copy .back-link:hover { color: var(--orange); }

/* Pillar hero
   Layout: a zero-height sticky "pin" sits above the hero inside .vis-flow, so it stays stuck
   under the nav for the whole page while everything else scrolls beneath it. */
.vis-flow { position: relative; }
.hero-pin { position: sticky; top: 0; height: 0; z-index: 30; }
.hero-pin-inner { position: absolute; top: 0; left: 0; right: 0; padding: var(--nav-h, 96px) var(--pad) 100px; text-align: center; transform: translateY(var(--pin-y, 0px)); will-change: transform; }
/* black fill + soft bottom edge, faded in by scroll (--black-fade set from JS) */
.hero-pin-inner::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: var(--black-fade, 0);
  background: linear-gradient(180deg, #000 0%, #000 8%, #000 28%, #000 42%, #000 54%, #000 68%, #000000e3 82%, #0000 100% ); }
.hero-pin .rule { display: none; }
.hero-pin h1 { color: var(--ink); }
.hero-pin h1 .accent { display: block; color: var(--orange); font-size: .46em; font-weight: 600; letter-spacing: -0.01em; margin-top: 14px; }

.pillar-hero { position: relative; isolation: isolate; overflow: hidden; height: 100vh; min-height: 520px; padding: 0; display: flex; align-items: center; justify-content: center; }
.pillar-hero .backdrop { opacity: calc(1 - var(--black-fade, 0)); }
.pillar-hero .wrap { position: relative; z-index: 1;
  padding-top: 25vh; }
.hero-copy { max-width: 700px; margin: 0 auto; text-align: center; }
.hero-copy .lede, .hero-copy .hero-ctas { margin-left: auto; margin-right: auto; opacity: var(--lede-o, 1); transform: translateY(var(--lede-y, 0px)); }
.hero-copy .hero-ctas { pointer-events: auto; }
/* The CTA hangs below the body text without adding to the hero's content height, so the body text
   sits at the same spot (and clears the sticky heading the same way) as on pages with no CTA. */
:where(.page-pillar) .hero-ctas { display: flex; gap: 14px; margin-top: 0; height: 0; align-items: flex-start; flex-wrap: wrap; justify-content: center; }
.hero-copy .hero-ctas .btn { margin-top: 36px; }

/* Clusters */
.clusters { position: relative; isolation: isolate; overflow: clip; }
.clusters.pad { padding-top: 0; }
.clusters > .wrap { position: relative; z-index: 1; padding-top: clamp(70px, 10vw, 120px); }
/* One static, viewport-sized video stage that stays put while the clusters scroll over it;
   the active cluster decides which video is showing. */
.cluster-bg { position: sticky; top: 0; height: 0; z-index: 0; }
.cluster-bg .backdrop { inset: auto; top: 0; left: 0; right: 0; height: 100vh; }
.cluster-bg video { opacity: 0; transition: opacity .9s var(--ease); }
.cluster-bg video.is-on { opacity: 1; }
.cluster {
  --cluster-gap: clamp(64px, 8vw, 110px);
  position: relative; margin-bottom: var(--cluster-gap);
  opacity: .38; filter: saturate(.7);
  transition: opacity .6s var(--ease), filter .6s var(--ease);
}
.cluster.is-active { opacity: 1; filter: saturate(1); }
.cluster:last-child { margin-bottom: 0; }
/* when linked to by #id, land below the sticky heading instead of underneath it */
.cluster[id] { scroll-margin-top: clamp(250px, 28vw, 330px); }
.cluster-head { max-width: 640px; margin: 0 auto clamp(32px, 5vw, 48px); text-align: center; }
.cluster-head h2 { color: var(--ink); margin-top: 8px; font-size: clamp(1.65rem, 3.1vw, 2.3rem); }
.cluster-head p { margin: 16px auto 0; }
.cluster-head p a, .flip-back p a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.cluster-head p a:hover, .flip-back p a:hover { color: var(--ink); }
@media (max-width: 760px) {
  .cluster { opacity: 1; filter: none; }
}

/* Process grid — flip cards, same interaction language as homepage's Focus tiles */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
/* clusters with 2 or 4 offerings sit in a centered 2-up grid so there are no orphan cards */
.process-grid.two { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin: 0 auto; }
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-grid, .process-grid.two { grid-template-columns: 1fr; } }
:where(.page-pillar) .flip { perspective: 1300px; height: 230px; backdrop-filter: blur(10px); }
:where(.page-pillar) .flip-inner { position: relative; width: 100%; height: 100%; transition: transform .7s var(--ease), box-shadow .4s var(--ease); transform-style: preserve-3d; border-radius: 6px; }
:where(.page-pillar) .flip:hover .flip-inner,
:where(.page-pillar) .flip:focus-within .flip-inner { transform: rotateY(180deg); box-shadow: 0 0 42px var(--orange-glow); }
:where(.page-pillar) .flip-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 6px; border: 1px solid var(--glass-border); overflow: hidden; }
:where(.page-pillar) .flip-front { background: rgba(37,37,37,.4); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; }
.flip-front .proc-num { font-size: .8rem; color: var(--orange); font-weight: 600; font-variant-numeric: tabular-nums; }
.flip-front .proc-icon { position: absolute; top: 40%; left: 50%; transform: translate(-50%, -52%); width: 55%; }
.flip-front .proc-icon svg { width: 100%; height: auto; display: block; }
:where(.page-pillar) .flip-front h3 { color: var(--ink); font-size: 1.08rem; line-height: 1.25; text-align: center; text-transform: uppercase; font-weight: 600; }
:where(.page-pillar) .flip-back { transform: rotateY(180deg); padding: 24px 22px; background: rgba(20,15,10,.72); backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%); display: flex; flex-direction: column; justify-content: center; border-color: rgba(255,90,31,.4); }
:where(.page-pillar) .flip-back h3 { color: var(--ink); margin-bottom: 10px; font-size: 1.02rem;  text-align: center;  text-transform: uppercase;  font-weight: 600;}
:where(.page-pillar) .flip-back p { font-size: .92rem; text-align: center; }
@media (prefers-reduced-motion: reduce) {
  :where(.page-pillar) .flip-inner { transition: none; }
  :where(.page-pillar) .flip:hover .flip-inner, :where(.page-pillar) .flip:focus-within .flip-inner { transform: none; box-shadow: 0 0 0 1px var(--orange); }
}


/* =========================================================================
   5. CTA (shared form; spacing differs per page group)
   ========================================================================= */
.cta { position: relative; isolation: isolate; overflow: hidden; }
.cta h2 { color: var(--ink); margin-bottom: 16px; }
.cta-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-form { display: flex; gap: 10px; max-width: 480px; flex-wrap: wrap; margin: 0 auto; justify-content: center; }
.cta-form input {
  flex: 1; padding: 15px 18px;
  border: 1px solid var(--glass-border);
  border-radius: 1.8rem;
  font-family: inherit; font-size: 1rem;
  color: var(--ink);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
}
.cta-form input::placeholder { color: var(--ink-mute); }
.cta-form input:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.cta-form button {
  padding: 15px 26px; border-radius: 1.8rem; border: 0;
  background: var(--orange); color: #fff; font-weight: 600; font-size: 1rem;
  cursor: pointer; transition: background .2s var(--ease);
}
.cta-form button:hover { background: var(--orange-deep); }

:where(.page-home) .cta-inner {
  position: relative; z-index: 1;
  padding: clamp(90px, 13vw, 150px) 0;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
:where(.page-pillar) .cta-inner { position: relative; z-index: 1; padding: clamp(80px, 12vw, 130px) 0; max-width: 620px; margin-left: auto; margin-right: auto; text-align: center; }
:where(.page-home) .cta p.lede { margin-bottom: 36px; }
:where(.page-pillar) .cta p.lede { margin: 0 auto 32px; }
:where(.page-home) .cta-form input { min-width: 210px; }
:where(.page-pillar) .cta-form input { min-width: 220px; }
:where(.page-home) .cta-note { color: var(--ink-mute); font-size: .85rem; margin-top: 16px; text-align: left; margin-left: 100px; }
:where(.page-pillar) .cta-note { color: var(--ink-mute); font-size: .85rem; margin-top: 16px; max-width: 480px; margin-left: 88px; margin-right: auto; text-align: left; }

@media (max-width: 720px) {
  :where(.page-home) .cta-inner { padding: clamp(80px, 13vw, 150px) 20px; }
  :where(.page-home) .statement { min-height: 60vh; }
  :where(.page-pillar) .cta-inner { margin-left: 20px; margin-right: 20px; }
  /* email field + button stay on one line at every mobile width */
  .cta-form { flex-wrap: nowrap; gap: 8px; width: 100%; }
  .cta-form input { min-width: 0; width: 100%; padding: 14px 16px; font-size: .95rem; }
  .cta-form button { flex: 0 0 auto; padding: 14px 20px; font-size: .95rem; white-space: nowrap; }
  /* note lines up with the email placeholder: same 480px column, offset by input border (1px) + padding (16px) */
  :where(.page-home) .cta-note { max-width: 480px; margin-left: auto; margin-right: auto; padding-left: 17px; text-align: left; }
  :where(.page-pillar) .cta-note { margin-left: auto; margin-right: auto; padding-left: 17px; text-align: left; }
  .flip-front .vis { position: absolute; top: 45%; left: 50%; transform: translate(-50%, -60%); width: 55%; }
}


/* =========================================================================
   6. CONTACT PAGE (contact.html) — body is .page-pillar, so type, buttons and
      backdrop styles are shared; only the form layout lives here.
   ========================================================================= */
.contact-page { position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; }
.contact-inner { position: relative; z-index: 1; padding-top: clamp(140px, 18vw, 170px); padding-bottom: clamp(100px, 14vw, 150px); }
.contact-head { max-width: 640px; margin: 0 auto clamp(32px, 5vw, 48px); text-align: center; }
.contact-head h1 { color: var(--ink); }
.contact-head .lede { margin: 18px auto 0; }

/* same glass surface as the flip cards */
.contact-card {
  max-width: 820px; margin: 0 auto;
  padding: clamp(24px, 4vw, 44px);
  background: rgba(10,10, 9, 0.78);
  backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--glass-border); border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.contact-title { color: var(--ink); text-align: center; margin-bottom: clamp(22px, 3vw, 32px); }

.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
.field { min-width: 0; }
.field label { display: block; margin-bottom: 8px; font-size: .88rem; font-weight: 600; color: var(--ink-dim); }
.contact-form input, .contact-form select {
  width: 100%; padding: 15px 18px;
  border: 1px solid var(--glass-border); border-radius: 1.8rem;
  font-family: inherit; font-size: 1rem; color: var(--ink);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.contact-form input::placeholder { color: var(--ink-mute); }
.contact-form input:hover, .contact-form select:hover { border-color: rgba(255,255,255,.28); }
/* active / focus highlight */
.contact-form input:focus, .contact-form select:focus {
  outline: none; border-color: var(--orange); background: rgba(255,255,255,.09);
  box-shadow: 0 0 0 3px var(--orange-glow);
}
.contact-form .is-invalid, .contact-form .is-invalid:focus { border-color: #ff7a66; }
.contact-form .is-invalid:focus { box-shadow: 0 0 0 3px rgba(255,122,102,.3); }

.select-wrap { position: relative; }
.contact-form select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; text-overflow: ellipsis; }
.contact-form select:required:invalid { color: var(--ink-mute); }
.contact-form select option { background: #17150f; color: var(--ink); }
.select-chev { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--ink-mute); pointer-events: none; }
.other-field { margin-top: 10px; }
.other-field[hidden] { display: none; }

.field-error { margin: 7px 0 0 18px; font-size: .82rem; line-height: 1.4; color: #ff7a66; }
.field-error:empty { display: none; }

.form-actions { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 6px; }
.form-actions .btn:disabled { opacity: .7; cursor: default; transform: none; }
.form-status { font-size: .9rem; text-align: center; color: var(--ink-mute); }
.form-status:empty { display: none; }
.form-status.is-error { color: #ff7a66; }
.form-status.is-ok { color: var(--ink-dim); }
.recaptcha-field { grid-column: 1 / -1; justify-self: center; max-width: 100%; }
.recaptcha-field iframe { max-width: 100%; }
.recaptcha-note { margin-top: 8px; max-width: 304px; font-size: .72rem; line-height: 1.4; color: var(--ink-mute); }
.recaptcha-note a { text-decoration: underline; }

/* mobile: single column */
@media (max-width: 640px) {
  .contact-form { grid-template-columns: 1fr; gap: 18px; }
  .contact-form input, .contact-form select { padding: 14px 16px; font-size: .95rem; }
  .form-actions .btn { width: 100%; justify-content: center; }
}

/* ---- custom dropdowns (contact form) ---- */
.select-wrap.is-enhanced select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.select-btn {
  display: block; width: 100%; padding: 15px 44px 15px 18px; text-align: left;
  border: 1px solid var(--glass-border); border-radius: 1.8rem;
  font-family: inherit; font-size: 1rem; line-height: 1.6; color: var(--ink);
  background: rgba(255,255,255,.06); backdrop-filter: blur(10px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.select-btn.is-placeholder { color: var(--ink-mute); }
.select-btn:hover { border-color: rgba(255,255,255,.28); }
.select-btn:focus, .select-wrap.is-open .select-btn {
  outline: none; border-color: var(--orange); background: rgba(255,255,255,.09); box-shadow: 0 0 0 3px var(--orange-glow);
}
.contact-form select.is-invalid ~ .select-btn { border-color: #ff7a66; }
.contact-form select.is-invalid ~ .select-btn:focus, .select-wrap.is-open select.is-invalid ~ .select-btn { box-shadow: 0 0 0 3px rgba(255,122,102,.3); }
.select-chev { transition: transform .2s var(--ease); }
.select-wrap.is-open .select-chev { transform: translateY(-50%) rotate(180deg); color: var(--orange); }

.select-list {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 30;
  margin: 0; padding: 6px; list-style: none; max-height: 264px; overflow-y: auto;
  background: rgba(20,15,10,.94); backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255,90,31,.4); border-radius: 18px; box-shadow: 0 18px 42px rgba(0,0,0,.45);
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent;
}
.select-list[hidden] { display: none; }
.select-opt { padding: 10px 14px; border-radius: 12px; font-size: .95rem; line-height: 1.4; color: var(--ink-dim); cursor: pointer; transition: background .15s var(--ease), color .15s var(--ease); }
.select-opt[aria-selected="true"] { color: var(--orange); font-weight: 600; }
.select-opt:hover, .select-opt.is-active { background: var(--orange); color: #fff; }
@media (max-width: 640px) { .select-btn { padding: 14px 44px 14px 16px; font-size: .95rem; } }
.select-wrap.opens-up .select-list { top: auto; bottom: calc(100% + 8px); }

/* ---- contact form: success state (card shows only the logo + thank-you line) ---- */
.contact-card.is-sent .contact-title, .contact-card.is-sent .contact-form { display: none; }
.contact-success { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; text-align: center; padding: clamp(28px, 6vw, 64px) 0; outline: none; }
.contact-success-logo { width: clamp(130px, 22vw, 180px); height: auto; }
.contact-success p { max-width: none; margin: 0 auto; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--ink); }

/* =========================================================================
   Contact popup (home page "Start a conversation")
   ========================================================================= */
.cmodal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; transition: opacity .2s var(--ease); }
.cmodal[hidden] { display: none; }
.cmodal.is-open { opacity: 1; }
.cmodal-overlay { position: absolute; inset: 0; background: rgba(8, 6, 4, 0.52); backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(14px); }
.cmodal-panel {
  position: relative; width: 100%; max-width: 820px; outline: none;
  transform: translateY(14px) scale(.98); transition: transform .25s var(--ease);
}
.cmodal.is-open .cmodal-panel { transform: none; }
/* the popup body is the same glass card used on the contact page; it scrolls, the close button stays put */
.cmodal-panel .contact-card {
  margin: 0; padding-top: clamp(52px, 6vw, 60px);
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent;
}
.cmodal-close {
  position: absolute; top: 12px; right: 12px; z-index: 5; width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer;
  color: var(--ink); background: rgba(255,255,255,.08); border: 1px solid var(--glass-border); border-radius: 50%;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.cmodal-close:hover, .cmodal-close:focus-visible { background: var(--orange); border-color: var(--orange); color: #fff; }
body.cmodal-open { overflow: hidden; }
@media (max-width: 640px) {
  .cmodal { padding: 10px; }
  .cmodal-panel .contact-card { max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); }
  .cmodal-close { top: 8px; right: 8px; width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) { .cmodal, .cmodal-panel { transition: none; } }
