/* Modeli Research Consultants — site styles
   Layout: left-aligned content on a 1200px measure. Ink bands (hero, video, footer)
   bracket cool-paper sections; cyan is kept for motion, marks and one closing band.
   Type: one family (Archivo) used across its width axis — expanded for headlines,
   normal for reading, condensed for data and document labels. */

:root {
  --ink: #070723;
  --ink-2: #0C1338;
  --navy: #003576;
  --cyan: #00CFFF;
  --cyan-2: #01B7E7;
  --cyan-ink: #006E92;
  --paper: #F2F6F9;
  --white: #FFFFFF;
  --line: #D5E0E9;
  --line-dark: rgba(255, 255, 255, 0.13);
  --text: #0E1530;
  --mute: #4A5570;
  --mute-dark: #A7B4CA;
  --dim: #8593A8;
  --amber: #F4A940;
  --amber-ink: #9A5B00;
  --coral: #C2413A;
  --error-bg: #FDECEC;
  --error-fg: #8A1C1C;
  --ok-bg: #E2F7FE;
  --ok-fg: #004F6B;

  --font: "Archivo", "Aptos", "Segoe UI", system-ui, -apple-system, sans-serif;
  --measure: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; text-wrap: balance; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--measure); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; background: var(--cyan); color: var(--ink); padding: 0.6em 1em; border-radius: 8px; font-weight: 650; }
.skip:focus { left: 16px; }

/* ---------- Type ---------- */
.h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.25rem); font-stretch: 118%; font-weight: 720; letter-spacing: -0.02em; line-height: 1.03; }
.h3 { font-size: 1.3rem; font-stretch: 108%; font-weight: 650; letter-spacing: -0.005em; line-height: 1.2; }
.lede { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); line-height: 1.55; max-width: 36em; color: var(--mute); }
.body-copy { max-width: 38em; color: var(--mute); }
.body-copy + .body-copy { margin-top: 1em; }
.cond { font-stretch: 80%; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: var(--h); padding: 0 1.5em; border-radius: 999px;
  font: inherit; font-weight: 650; font-stretch: 108%; font-size: 1rem; line-height: 1.1;
  text-decoration: none; text-align: center; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn .chev { width: 14px; height: 14px; flex: none; transition: transform 0.35s var(--ease); }
.btn:hover .chev { transform: translateX(4px); }
.btn-primary { background: var(--cyan); color: var(--ink); }
.btn-primary:hover { background: #63E2FF; }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--navy); }
.btn-line { border-color: currentColor; background: transparent; color: inherit; }
.btn-line:hover { background: rgba(127, 140, 170, 0.14); }
.btn-sm { --h: 42px; padding: 0 1.15em; font-size: 0.94rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60;
  background: var(--white); color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.site-header[data-tone="dark"] { background: var(--ink); color: var(--white); border-bottom-color: transparent; }
.nav-row { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; margin-right: auto; line-height: 0; text-decoration: none; }
.brand img { height: 46px; width: auto; max-width: none; }
.site-header .logo-on-dark { display: none; }
.site-header[data-tone="dark"] .logo-on-dark { display: block; }
.site-header[data-tone="dark"] .logo-on-light { display: none; }
@media (max-width: 600px) { .brand img { height: 38px; } }
@media (max-width: 430px) {
  .brand img { height: 32px; }
  .nav-toggle { padding: 0; width: 44px; justify-content: center; }
  .nav-toggle .toggle-text { display: none; }
}
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative; text-decoration: none; font-weight: 550; font-size: 0.98rem;
  padding: 0.55em 0.8em; border-radius: 999px;
}
.nav a::after {
  content: ""; position: absolute; left: 0.8em; right: 0.8em; bottom: 0.25em; height: 2px;
  background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .nav-login { display: inline-flex; align-items: center; gap: 0.45em; }
.nav .nav-login svg { width: 16px; height: 16px; }
.nav .nav-book { display: none; }
.nav-toggle {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border-radius: 999px; border: 1.5px solid currentColor; background: transparent; color: inherit;
  font: inherit; font-weight: 600; cursor: pointer;
}
.nav-toggle .bars { width: 18px; height: 12px; position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle .bars::before { top: 1px; }
.nav-toggle .bars::after { top: 9px; }
.nav-toggle[aria-expanded="true"] .bars::before { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { top: 5px; transform: rotate(-45deg); }

.nav-cta .cta-short { display: none; }
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav-row { gap: 10px; }
  .nav-cta { padding: 0 1em; }
  .nav-cta .cta-long { display: none; }
  .nav-cta .cta-short { display: inline; }
  .nav {
    position: fixed; left: 0; right: 0; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); color: var(--white);
    padding: 8px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.35s var(--ease), visibility 0.3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { font-size: 1.5rem; font-stretch: 112%; font-weight: 650; padding: 0.7em 0; border-radius: 0; border-bottom: 1px solid var(--line-dark); }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { color: var(--cyan); }
  .nav .nav-book { display: inline-flex; margin-top: 28px; border-bottom: 0; font-size: 1.05rem; padding: 0 1.5em; border-radius: 999px; font-stretch: 108%; }
}
body.nav-open { overflow: hidden; }

/* ---------- Bands ---------- */
.band { padding-block: clamp(64px, 9vw, 128px); }
.band-paper { background: var(--paper); }
.band-ink { background: var(--ink); color: var(--white); }
.band-ink .lede, .band-ink .body-copy { color: var(--mute-dark); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 780px; }
.split-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 5vw, 72px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
@media (max-width: 860px) { .split-head { grid-template-columns: 1fr; } }

/* ---------- Home hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(900px 520px at 84% 12%, rgba(0, 53, 118, 0.7), transparent 65%),
    radial-gradient(640px 460px at 0% 100%, rgba(0, 207, 255, 0.10), transparent 60%),
    var(--ink);
  padding-block: clamp(40px, 6vw, 88px) clamp(56px, 8vw, 104px);
}
.chev-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { position: relative; }
.hero-mark-wrap {
  position: absolute; top: clamp(20px, 4vw, 56px); right: calc(-1 * clamp(24px, 3vw, 56px));
  width: clamp(220px, 34vw, 540px); color: var(--cyan); opacity: 0.11; pointer-events: none;
  transform: translate3d(calc(var(--px, 0) * -18px), calc(var(--py, 0) * -12px), 0);
}
.hero-mark, .cta-mark { display: block; width: 100%; height: auto; overflow: visible; }
.hero-mark .mk-l, .hero-mark .mk-r { transition: transform 1.8s var(--ease), opacity 1.2s ease; }
.hero-mark:not(.is-joined) .mk-l { transform: translate(-240px, 240px); opacity: 0; }
.hero-mark:not(.is-joined) .mk-r { transform: translate(240px, -240px); opacity: 0; }
.hero-title {
  font-size: clamp(2.5rem, 0.4rem + 6.4vw, 5.6rem);
  font-stretch: 118%; font-weight: 760; letter-spacing: -0.028em; line-height: 1.0;
}
.hero-title .line { display: block; }
.rotator { position: relative; display: inline-block; padding-bottom: 0.14em; }
.rot-window { display: grid; overflow: hidden; padding-bottom: 0.06em; }
.rot-word {
  grid-area: 1 / 1; justify-self: start; white-space: nowrap;
  transition: transform 0.75s var(--ease), opacity 0.55s ease;
}
.rot-word:not(.is-active) { opacity: 0; transform: translateY(0.7em); }
.rot-word.is-leaving { opacity: 0; transform: translateY(-0.7em); }
.rot-bar {
  position: absolute; left: 0; bottom: 0; height: 0.075em; min-height: 4px; border-radius: 4px;
  background: var(--cyan); width: var(--bar-w, 0px); transition: width 0.8s var(--ease);
}
.hero-lower {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(32px, 5vw, 80px); align-items: start; margin-top: clamp(28px, 4vw, 52px);
}
.hero-lower .lede { color: var(--mute-dark); }
.hero-lower .actions { margin-top: 30px; }
.proof { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 10px; }
.proof li { display: flex; gap: 12px; align-items: baseline; color: var(--mute-dark); font-size: 0.98rem; }
.proof svg { flex: none; width: 14px; height: 14px; color: var(--cyan); transform: translateY(2px); }
@media (max-width: 960px) { .hero-lower { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .hero-title, .page-hero h1 { font-stretch: 100%; }
}

/* Audit trail card */
.audit {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(0, 207, 255, 0.24); border-radius: 18px;
  padding: clamp(18px, 2.4vw, 26px);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.audit-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.audit-title { font-stretch: 108%; font-weight: 650; font-size: 1.05rem; }
.audit-tag { font-stretch: 80%; font-size: 0.8rem; color: var(--mute-dark); border: 1px solid var(--line-dark); border-radius: 999px; padding: 0.15em 0.75em; white-space: nowrap; }
.audit-meter { margin-top: 16px; height: 6px; background: rgba(255, 255, 255, 0.09); border-radius: 99px; overflow: hidden; }
.audit-meter span { display: block; height: 100%; width: var(--p, 0%); background: var(--cyan); border-radius: 99px; transition: width 0.6s var(--ease); }
.audit-count { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-stretch: 80%; font-size: 0.86rem; color: var(--mute-dark); font-variant-numeric: tabular-nums; }
.audit-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; }
.audit-row {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; align-items: center;
  padding: 12px 0; border-top: 1px solid var(--line-dark);
}
.audit-doc { font-stretch: 94%; font-weight: 600; font-size: 0.96rem; line-height: 1.3; }
.audit-detail { grid-column: 1; font-stretch: 82%; font-size: 0.86rem; line-height: 1.35; color: var(--mute-dark); }
.chip {
  grid-row: 1 / span 2; grid-column: 2;
  min-width: 76px; text-align: center; white-space: nowrap;
  font-stretch: 80%; font-weight: 650; font-size: 0.8rem; letter-spacing: 0.02em;
  padding: 0.32em 0.8em; border-radius: 999px;
  border: 1px solid var(--amber); color: var(--amber);
  transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}
.audit-row.is-closed .chip { background: var(--cyan); border-color: var(--cyan); color: var(--ink); }
.audit-row.just-closed::before {
  content: ""; position: absolute; inset: 0 -12px; border-radius: 10px;
  background: linear-gradient(90deg, rgba(0, 207, 255, 0.18), transparent);
  animation: rowflash 1.2s ease forwards; pointer-events: none;
}
@keyframes rowflash { from { opacity: 1; } to { opacity: 0; } }
.audit-foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-weight: 650; font-stretch: 108%; color: var(--mute-dark); transition: color 0.5s; }
.audit-foot svg { width: 18px; height: 18px; }
.audit.is-ready .audit-foot { color: var(--cyan); }
.audit.is-ready { border-color: rgba(0, 207, 255, 0.55); }

/* ---------- Standards marquee ---------- */
.standards { background: var(--ink); color: var(--mute-dark); border-top: 1px solid var(--line-dark); padding-block: 22px 28px; overflow: hidden; }
.standards-lead { font-size: 0.92rem; margin-bottom: 14px; }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; flex: none; animation: marquee 66s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 26px; padding-right: 26px; white-space: nowrap; color: var(--white); font-stretch: 112%; font-weight: 600; font-size: clamp(1.1rem, 1rem + 0.6vw, 1.45rem); }
.marquee-item svg { width: 18px; height: 18px; color: var(--cyan); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Promise statement ---------- */
.promise { background: var(--white); }
.promise-list { list-style: none; padding: 0; margin: 0; display: grid; gap: clamp(8px, 1.2vw, 16px); }
.promise-item {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(12px, 1.6vw, 22px);
  font-size: clamp(2.2rem, 0.9rem + 4.6vw, 5.2rem); font-stretch: 118%; font-weight: 760;
  letter-spacing: -0.03em; line-height: 1.02; color: var(--dim); transition: color 0.7s ease;
}
.promise-item span { text-wrap: balance; min-width: 0; }
.promise-dot { width: 0.34em; height: 0.34em; margin-top: 0.36em; border-radius: 50%; background: var(--cyan); opacity: 0.3; transform: scale(0.55); transition: opacity 0.6s ease, transform 0.7s var(--ease); }
.promise-item.is-lit { color: var(--ink); }
.promise-item.is-lit .promise-dot { opacity: 1; transform: none; }
.promise-foot { margin-top: clamp(36px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 48px; }
@media (max-width: 600px) { .promise-item { font-stretch: 100%; } }

/* ---------- Site-level experience ---------- */
.sitelevel-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.sitelevel-copy { display: grid; gap: 24px; justify-items: start; }
@media (max-width: 900px) { .sitelevel-grid { grid-template-columns: 1fr; } }
.siteday-wrap { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-dark); border-radius: 20px; padding: clamp(22px, 3vw, 34px); min-width: 0; }
.siteday-title { font-size: 1.1rem; font-stretch: 108%; font-weight: 650; line-height: 1.3; color: var(--white); margin-bottom: 10px; }
.siteday { position: relative; list-style: none; margin: 0; padding: 0; display: grid; }
.siteday-line { position: absolute; left: 7px; top: 22px; bottom: 22px; width: 2px; background: var(--line-dark); }
.siteday-line span { display: block; width: 100%; height: 100%; background: var(--cyan); transform-origin: top; transform: scaleY(var(--p, 0)); transition: transform 0.7s var(--ease); }
.siteday .lightup { position: relative; display: grid; grid-template-columns: 16px 86px minmax(0, 1fr); column-gap: 16px; align-items: center; padding: 13px 0; }
.siteday .dot { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 2px solid rgba(255, 255, 255, 0.28); transition: background-color 0.5s, border-color 0.5s, box-shadow 0.5s; }
.siteday time { font-stretch: 80%; font-weight: 650; font-size: 0.98rem; color: var(--cyan); font-variant-numeric: tabular-nums; white-space: nowrap; }
.siteday p { color: var(--mute-dark); transition: color 0.5s; }
.siteday .lightup.is-lit .dot { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 0 6px rgba(0, 207, 255, 0.16); }
.siteday .lightup.is-lit p { color: var(--white); }
@media (max-width: 520px) {
  .siteday .lightup { grid-template-columns: 16px minmax(0, 1fr); row-gap: 2px; align-items: start; }
  .siteday .dot { margin-top: 4px; grid-row: 1 / span 2; }
  .siteday time, .siteday p { grid-column: 2; }
}

/* ---------- Intro / audiences ---------- */
.statement { font-size: clamp(1.9rem, 1.1rem + 3vw, 3.6rem); font-stretch: 118%; font-weight: 720; letter-spacing: -0.022em; line-height: 1.04; max-width: 16em; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: end; }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } }
.columns-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 80px); border-top: 2px solid var(--ink); }
.col { display: grid; gap: 12px; align-content: start; padding: 28px 28px 0 0; min-width: 0; }
.col + .col { padding-left: 28px; border-left: 1px solid var(--line); }
.col p { color: var(--mute); }
.col-mark { width: 30px; height: 30px; color: var(--cyan-ink); }
@media (max-width: 860px) {
  .columns-3 { grid-template-columns: 1fr; }
  .col, .col + .col { padding: 24px 0; border-left: 0; }
  .col + .col { border-top: 1px solid var(--line); }
}

/* ---------- Services list (home) ---------- */
.svc-list { display: grid; border-top: 1px solid var(--line); }
.svc-row {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr) 48px; gap: 24px; align-items: center;
  padding: 30px 12px; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--text);
  transition: color 0.35s;
}
.svc-row::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform 0.55s var(--ease);
}
.svc-row:hover, .svc-row:focus-visible { color: var(--white); }
.svc-row:hover::before, .svc-row:focus-visible::before { transform: scaleX(1); }
.svc-name { font-size: clamp(1.35rem, 1.05rem + 1.1vw, 2.05rem); font-stretch: 116%; font-weight: 700; letter-spacing: -0.015em; line-height: 1.1; transition: transform 0.55s var(--ease); }
.svc-row:hover .svc-name { transform: translateX(10px); }
.svc-desc { color: var(--mute); transition: color 0.35s; }
.svc-row:hover .svc-desc, .svc-row:focus-visible .svc-desc { color: var(--mute-dark); }
.svc-go { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; transition: background-color 0.35s, border-color 0.35s, color 0.35s; }
.svc-go svg { width: 14px; height: 14px; }
.svc-row:hover .svc-go, .svc-row:focus-visible .svc-go { background: var(--cyan); border-color: var(--cyan); color: var(--ink); }
@media (max-width: 760px) {
  .svc-row { grid-template-columns: minmax(0, 1fr) 40px; gap: 8px 16px; padding: 22px 4px; }
  .svc-desc { grid-column: 1; grid-row: 2; font-size: 0.98rem; }
  .svc-go { grid-column: 2; grid-row: 1 / span 2; width: 40px; height: 40px; }
}

/* ---------- Three days' notice ---------- */
.story-panel { position: relative; overflow: hidden; border-radius: 24px; background: var(--ink); color: var(--white); padding: clamp(28px, 5vw, 64px); }
.story-panel .panel-mark { right: -60px; bottom: -60px; width: 360px; opacity: 0.08; }
.story-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.story-copy { display: grid; gap: 22px; justify-items: start; }
.story-copy .body-copy { color: var(--mute-dark); }
.story-copy .body-copy + .body-copy { margin-top: -8px; }
.countdown { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.countdown-line { position: absolute; left: 9px; top: 26px; bottom: 26px; width: 2px; background: var(--line-dark); }
.countdown-line span { display: block; width: 100%; height: 100%; background: var(--cyan); transform-origin: top; transform: scaleY(var(--p, 0)); transition: transform 0.7s var(--ease); }
.countdown .lightup { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 18px; align-items: center; padding: 16px 0; }
.countdown .dot { width: 20px; height: 20px; border-radius: 50%; background: var(--ink); border: 2px solid rgba(255, 255, 255, 0.3); transition: background-color 0.5s, border-color 0.5s, box-shadow 0.5s; }
.countdown p { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem); font-stretch: 108%; font-weight: 620; color: var(--mute-dark); transition: color 0.5s; }
.countdown .lightup.is-lit .dot { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 0 7px rgba(0, 207, 255, 0.16); }
.countdown .lightup.is-lit p { color: var(--white); }
@media (max-width: 900px) { .story-grid { grid-template-columns: 1fr; } }
.story-card { position: relative; overflow: hidden; margin-top: 8px; background: var(--ink); color: var(--white); border-radius: 18px; padding: clamp(20px, 3vw, 28px); display: grid; gap: 8px; max-width: 40em; }
.story-card p { color: var(--mute-dark); position: relative; }
.story-card .h3 { position: relative; color: var(--cyan); }
.story-card .panel-mark { right: -30px; bottom: -40px; width: 200px; opacity: 0.1; }

/* ---------- Process ---------- */
.steps { position: relative; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.steps-line { position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: var(--line); }
.steps-line span { display: block; height: 100%; background: var(--cyan); transform-origin: left; transform: scaleX(var(--p, 0)); }
.step { position: relative; display: grid; gap: 12px; align-content: start; min-width: 0; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); border: 2px solid var(--line); color: var(--mute);
  font-stretch: 118%; font-weight: 750; font-size: 1.1rem; font-variant-numeric: tabular-nums;
  transition: background-color 0.45s, border-color 0.45s, color 0.45s;
}
.step.is-lit .step-num { background: var(--ink); border-color: var(--ink); color: var(--cyan); }
.step p { color: var(--mute); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps-line { left: 27px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .steps-line span { transform-origin: top; transform: scaleY(var(--p, 0)); }
  .step { grid-template-columns: 56px minmax(0, 1fr); column-gap: 20px; row-gap: 6px; }
  .step-num { grid-row: 1 / span 2; }
}

/* ---------- Video ---------- */
.video-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .video-grid { grid-template-columns: 1fr; } }
.video-frame {
  position: relative; aspect-ratio: 16 / 9; max-width: 100%; width: 100%;
  border-radius: 20px; overflow: hidden; border: 1px solid var(--line-dark);
  background: radial-gradient(600px 300px at 70% 30%, rgba(0, 53, 118, 0.85), transparent 70%), var(--ink-2);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 16px; text-align: center; color: var(--mute-dark); padding: 16px; }
.play {
  width: clamp(64px, 9vw, 92px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: var(--cyan); color: var(--ink); animation: pulse 2.6s ease-out infinite;
}
.play svg { width: 34%; height: 34%; transform: translateX(8%); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 207, 255, 0.45); } 70% { box-shadow: 0 0 0 26px rgba(0, 207, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 207, 255, 0); } }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.quote-stage { display: grid; }
.quote { grid-area: 1 / 1; margin: 0; transition: opacity 0.6s ease, transform 0.6s var(--ease), visibility 0.6s; }
.quote:not(.is-active) { opacity: 0; transform: translateY(18px); visibility: hidden; }
.quote-mark { width: 54px; height: 40px; color: var(--cyan); margin-bottom: 18px; }
.quote blockquote { margin: 0; font-size: clamp(1.35rem, 1.05rem + 1.4vw, 2.25rem); font-stretch: 106%; font-weight: 540; line-height: 1.32; letter-spacing: -0.01em; max-width: 30em; }
.quote figcaption { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.quote-name { font-weight: 650; }
.quote-role { color: var(--mute); }
.placeholder-tag { font-stretch: 82%; font-size: 0.8rem; font-weight: 650; color: var(--cyan-ink); border: 1px dashed var(--cyan-ink); border-radius: 6px; padding: 0.15em 0.55em; }
.quote-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 22px; }
.dots { display: flex; gap: 8px; }
.dot { width: 34px; height: 4px; border: 0; padding: 0; border-radius: 2px; background: var(--line); cursor: pointer; position: relative; overflow: hidden; }
.dot::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.dot.is-active::after { transform: scaleX(1); }
.dot.is-running::after { animation: dotfill var(--dur, 7s) linear forwards; }
@keyframes dotfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.qnav { display: flex; gap: 10px; }
.qbtn { width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background-color 0.25s, border-color 0.25s; }
.qbtn:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.qbtn svg { width: 14px; height: 14px; }
.qbtn.prev svg { transform: rotate(180deg); }

/* ---------- Portal + newsletter ---------- */
.duo { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }
.panel { position: relative; overflow: hidden; border-radius: 22px; padding: clamp(28px, 4vw, 48px); display: grid; gap: 18px; align-content: start; }
.panel-ink { background: var(--ink); color: var(--white); }
.panel-ink p { color: var(--mute-dark); }
.panel-light { background: var(--white); border: 1px solid var(--line); }
.panel-light p { color: var(--mute); }
.panel .actions { margin-top: 8px; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { border: 1px solid var(--line-dark); border-radius: 999px; padding: 0.35em 0.95em; font-stretch: 92%; font-size: 0.92rem; color: var(--white); }
.panel-mark { position: absolute; right: -56px; bottom: -44px; width: 300px; height: auto; color: var(--cyan); opacity: 0.12; pointer-events: none; }
.panel > *:not(.panel-mark) { position: relative; }

.duo-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .duo-even { grid-template-columns: 1fr; } }
.news-form { gap: 16px; margin-top: 4px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.94rem; color: var(--mute); cursor: pointer; line-height: 1.45; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }

/* ---------- Closing band ---------- */
.cta-band {
  position: relative; overflow: hidden; background: var(--cyan); color: var(--ink);
  padding-block: clamp(64px, 9vw, 124px);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; opacity: 0.06; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cpath d='M20 22l14 14-14 14M36 22l14 14-14 14' fill='none' stroke='%23070723' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 72px 72px;
  animation: drift 6s linear infinite;
}
@keyframes drift { to { background-position: 72px 0; } }
.cta-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: end; }
@media (max-width: 860px) { .cta-grid { grid-template-columns: 1fr; } }
.cta-head { display: grid; gap: clamp(20px, 3vw, 34px); align-content: end; justify-items: start; }
.cta-mark { width: clamp(88px, 9vw, 136px); color: var(--ink); }
.cta-mark .mk-l, .cta-mark .mk-r { transition: transform 1.2s var(--ease), opacity 0.8s ease; }
.cta-mark .mk-r { transition-delay: 0.08s; }
.cta-head:not(.is-joined) .mk-l { transform: translate(-320px, 320px); opacity: 0; }
.cta-head:not(.is-joined) .mk-r { transform: translate(320px, -320px); opacity: 0; }
.cta-title { font-size: clamp(3rem, 1.2rem + 7.2vw, 8rem); font-stretch: 125%; font-weight: 800; letter-spacing: -0.035em; line-height: 0.92; }
.cta-side { display: grid; gap: 20px; }
.cta-side p { font-size: 1.15rem; }
.cta-contact { display: grid; gap: 4px; font-weight: 600; }
.cta-contact a { text-decoration: none; }
.cta-contact a:hover { text-decoration: underline; }
@media (max-width: 600px) { .cta-title { font-stretch: 112%; } }

/* ---------- Footer ---------- */
.foot-news { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px 48px; align-items: center; padding-bottom: 48px; margin-bottom: 56px; border-bottom: 1px solid var(--line-dark); }
.foot-news-title { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); font-stretch: 118%; font-weight: 720; letter-spacing: -0.015em; color: var(--white); margin-bottom: 8px; }
.foot-news-form { position: relative; display: flex; flex-wrap: wrap; gap: 10px; }
.foot-news-form input[type="email"] {
  flex: 1 1 220px; min-width: 0; min-height: 52px; padding: 0 1.25em; border-radius: 999px;
  border: 1.5px solid var(--line-dark); background: rgba(255, 255, 255, 0.06); color: var(--white); font: inherit;
}
.foot-news-form input::placeholder { color: var(--mute-dark); }
.foot-news-form input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(0, 207, 255, 0.2); }
.foot-news-form .form-status { flex-basis: 100%; }
@media (max-width: 860px) { .foot-news { grid-template-columns: 1fr; } }
.site-footer { background: var(--ink); color: var(--mute-dark); padding-block: 72px calc(32px + env(safe-area-inset-bottom, 0px)); font-size: 0.96rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-brand .brand { margin-bottom: 22px; }
.foot-brand .brand img { height: 44px; }
.foot-brand p { max-width: 24em; }
.foot-col h2 { font-size: 0.98rem; font-stretch: 108%; font-weight: 650; color: var(--white); margin-bottom: 14px; }
.foot-col ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.foot-col a { text-decoration: none; }
.foot-col a:hover { color: var(--white); text-decoration: underline; }
.foot-base a { color: var(--mute-dark); }
.foot-base a:hover { color: var(--white); }
.band-rule { border-top: 1px solid var(--line); }
.foot-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 0.86rem; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(820px 460px at 88% 0%, rgba(0, 53, 118, 0.7), transparent 65%),
    var(--ink);
  padding-block: clamp(52px, 7vw, 104px) clamp(48px, 6vw, 88px);
}
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2.5rem, 1rem + 6vw, 6rem); font-stretch: 125%; font-weight: 780; letter-spacing: -0.032em; line-height: 0.96; max-width: 12em; }
.page-hero .lede { color: var(--mute-dark); margin-top: 24px; }
.page-hero .actions { margin-top: 30px; }

/* ---------- Services page ---------- */
.svc-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.svc-index { position: sticky; top: calc(var(--header-h) + 32px + env(safe-area-inset-top, 0px)); align-self: start; display: grid; gap: 2px; }
.svc-index a { display: block; text-decoration: none; color: var(--mute); padding: 0.55em 0 0.55em 16px; border-left: 2px solid var(--line); line-height: 1.3; transition: color 0.25s, border-color 0.25s; }
.svc-index a:hover { color: var(--ink); }
.svc-index a.is-current { color: var(--ink); border-left-color: var(--cyan); font-weight: 600; }
.svc-block { display: grid; gap: 20px; padding-bottom: clamp(56px, 7vw, 96px); min-width: 0; }
.svc-block + .svc-block { padding-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.svc-block:last-child { padding-bottom: 0; }
.svc-block .body-copy + .body-copy { margin-top: -6px; }
.svc-block .lead { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem); line-height: 1.45; font-weight: 550; color: var(--text); max-width: 34em; }
.included { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.included li { display: flex; gap: 12px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); min-width: 0; }
.included li svg { flex: none; width: 13px; height: 13px; color: var(--cyan-ink); transform: translateY(1px); }
@media (max-width: 860px) {
  .svc-layout { grid-template-columns: 1fr; }
  .svc-index { position: static; display: flex; flex-wrap: wrap; gap: 8px; }
  .svc-index a { border: 1.5px solid var(--line); border-radius: 999px; padding: 0.4em 0.95em; font-size: 0.94rem; }
  .svc-index a.is-current { border-color: var(--line); }
}
@media (max-width: 600px) { .included { grid-template-columns: 1fr; } }

/* ---------- Services: illustrations ---------- */
.svc-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: clamp(24px, 3.5vw, 44px); align-items: start; }
.svc-text { display: grid; gap: 14px; min-width: 0; }
.svc-text .body-copy + .body-copy { margin-top: 0; }
@media (max-width: 1180px) { .svc-split { grid-template-columns: 1fr; } .viz { max-width: 500px; } }
.included-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; margin-top: 8px; }
.included-head { font-size: 1rem; font-stretch: 108%; font-weight: 680; margin-bottom: 4px; }
.included-one { grid-template-columns: 1fr; margin-top: 0; }
@media (max-width: 600px) { .included-split { grid-template-columns: 1fr; gap: 20px; } }

.viz { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 2.4vw, 24px); display: grid; gap: 12px; align-content: start; min-width: 0; font-size: 0.92rem; line-height: 1.3; }
.viz-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.viz-title { font-weight: 680; font-stretch: 108%; font-size: 1rem; color: var(--text); }
.viz-tag { font-stretch: 82%; font-size: 0.78rem; color: var(--mute); border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 0.15em 0.7em; white-space: nowrap; }
.viz-sub { font-stretch: 86%; font-size: 0.86rem; color: var(--mute); margin-top: -6px; }
.viz-rows { list-style: none; padding: 0; margin: 0; display: grid; }
.viz-rows li { display: grid; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.viz-text { min-width: 0; color: var(--text); }
.viz i { font-style: normal; }
.viz [data-step], .viz [data-step] * { transition: background-color 0.45s ease, border-color 0.45s ease, color 0.45s ease, opacity 0.45s ease, transform 0.6s var(--ease); }

/* audit findings */
.viz-audit li { grid-template-columns: auto minmax(0, 1fr) auto; }
.sev { font-stretch: 80%; font-weight: 650; font-size: 0.74rem; padding: 0.2em 0.55em; border-radius: 6px; }
.sev-major { background: #FDF0DD; color: var(--amber-ink); }
.sev-minor { background: var(--white); color: var(--mute); border: 1px solid var(--line); }
.st { display: grid; justify-items: center; min-width: 62px; }
.st i { grid-area: 1 / 1; font-stretch: 80%; font-weight: 650; font-size: 0.76rem; padding: 0.25em 0.7em; border-radius: 999px; }
.st-open { border: 1px solid var(--amber); color: var(--amber-ink); opacity: 0; }
.st-closed { background: var(--cyan); color: var(--ink); }
.viz.js-anim li:not(.on) .st-open { opacity: 1; }
.viz.js-anim li:not(.on) .st-closed { opacity: 0; transform: scale(0.8); }

/* eRegulatory binder */
.viz-ereg li { grid-template-columns: 18px minmax(0, 1fr) auto; }
.folder { width: 18px; height: 14px; border-radius: 3px; background: var(--navy); position: relative; opacity: 0.85; }
.folder::before { content: ""; position: absolute; left: 0; top: -3px; width: 8px; height: 4px; border-radius: 2px 2px 0 0; background: var(--navy); }
.cur { display: inline-flex; align-items: center; gap: 6px; font-stretch: 82%; font-weight: 650; font-size: 0.78rem; color: var(--cyan-ink); }
.cur::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 207, 255, 0.18); }
.viz.js-anim li:not(.on) .cur { color: var(--mute); }
.viz.js-anim li:not(.on) .cur::before { background: var(--line); box-shadow: none; }

/* budget bars */
.bars li { grid-template-columns: 104px minmax(0, 1fr); }
.track { position: relative; height: 12px; border-radius: 99px; background: var(--white); border: 1px solid var(--line); }
.track .base, .track .gain { position: absolute; top: 0; bottom: 0; border-radius: 99px; }
.track .base { left: 0; width: var(--base); background: #B9C4D2; z-index: 1; }
.track .gain { left: 0; width: calc(var(--base) + var(--gain)); background: var(--cyan); transform-origin: left; }
.track .fmv { position: absolute; top: -5px; bottom: -5px; left: 90%; width: 2px; background: var(--ink); border-radius: 2px; z-index: 2; }
.viz.js-anim li:not(.on) .gain { transform: scaleX(0.35); opacity: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-stretch: 86%; font-size: 0.8rem; color: var(--mute); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 12px; height: 8px; border-radius: 4px; }
.k-base { background: #B9C4D2; } .k-gain { background: var(--cyan); } .k-fmv { width: 2px !important; height: 12px !important; background: var(--ink); border-radius: 1px; }

/* eSource visit */
.viz-esource li { grid-template-columns: 20px minmax(0, 1fr); }
.box { width: 20px; height: 20px; border-radius: 6px; background: var(--cyan); border: 1.5px solid var(--cyan); position: relative; }
.box::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--ink); border-width: 0 2.2px 2.2px 0; transform: rotate(45deg); }
.viz.js-anim li:not(.on) .box { background: var(--white); border-color: var(--line); }
.viz.js-anim li:not(.on) .box::after { opacity: 0; }

/* SOP gap analysis */
.viz-sop li { grid-template-columns: minmax(0, 1fr) auto; }
.gap { display: grid; justify-items: end; min-width: 76px; }
.gap i { grid-area: 1 / 1; font-stretch: 80%; font-weight: 650; font-size: 0.76rem; padding: 0.25em 0.7em; border-radius: 999px; white-space: nowrap; }
.g-wait { color: var(--mute); border: 1px dashed var(--line); opacity: 0; }
.g-ok { background: var(--cyan); color: var(--ink); }
.g-upd { border: 1px solid var(--amber); color: var(--amber-ink); background: #FFF8EC; }
.g-miss { border: 1px solid var(--coral); color: var(--coral); background: #FDF1F0; }
.viz.js-anim li:not(.on) .g-wait { opacity: 1; }
.viz.js-anim li:not(.on) .g-res { opacity: 0; transform: translateX(6px); }

/* start-up steps */
.viz-steps { list-style: none; padding: 0; margin: 0; display: grid; }
.viz-steps li { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: center; padding: 7px 0; }
.viz-steps li + li::before { content: ""; position: absolute; left: 12px; top: -9px; height: 18px; width: 2px; background: var(--cyan); }
.viz-steps .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--cyan); font-weight: 750; font-size: 0.8rem; font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.viz.js-anim .viz-steps li:not(.on) .n { background: var(--white); color: var(--mute); box-shadow: inset 0 0 0 2px var(--line); }
.viz.js-anim .viz-steps li:not(.on)::before { background: var(--line); }
.viz.js-anim .viz-steps li:not(.on) .viz-text { color: var(--mute); }

/* ---------- About ---------- */
.lead-person { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .lead-person { grid-template-columns: 1fr; } }
.photo { position: relative; aspect-ratio: 4 / 5; max-width: 100%; border-radius: 20px; overflow: hidden; background: var(--ink); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo .mono { position: absolute; inset: 0; display: grid; place-items: center; font-stretch: 125%; font-weight: 800; font-size: clamp(3rem, 2rem + 4vw, 6rem); letter-spacing: 0.02em; color: var(--cyan); }
.photo .mono .mono-mark { position: absolute; width: 86%; height: auto; right: -26%; bottom: -8%; color: var(--cyan); opacity: 0.14; }
.person-meta { display: grid; gap: 6px; }
.person-name { font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); font-stretch: 118%; font-weight: 740; letter-spacing: -0.02em; }
.person-role { font-size: 1.1rem; font-weight: 600; }
.person-creds { font-stretch: 82%; font-weight: 650; color: var(--cyan-ink); letter-spacing: 0.02em; }
.roles { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 0; }
.roles li { display: flex; gap: 12px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--line); }
.roles svg { flex: none; width: 13px; height: 13px; color: var(--cyan-ink); transform: translateY(1px); }
.team-more { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); display: grid; gap: 40px; }
.person-compact { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; max-width: 900px; }
.person-name-sm { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); }
@media (max-width: 600px) { .person-compact { grid-template-columns: 1fr; } .person-compact .photo { max-width: 240px; } }
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
@media (max-width: 860px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .team { grid-template-columns: 1fr; } }
.person { display: grid; gap: 14px; align-content: start; min-width: 0; }
.person.is-placeholder .photo { background: var(--paper); border: 1.5px dashed var(--line); }
.person.is-placeholder .mono { color: var(--line); }
.person h3 { font-size: 1.25rem; font-stretch: 108%; font-weight: 680; }
.person .role { color: var(--mute); font-size: 0.98rem; }
.person p.bio { color: var(--mute); font-size: 0.98rem; }

.leaders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 5vw, 64px); }
.leader { display: grid; gap: 24px; align-content: start; min-width: 0; }
.leader .photo { aspect-ratio: 5 / 4; }
.leader .photo img { object-position: center; }
.leader-bio { margin-top: 10px; }
.consultants { margin-top: clamp(56px, 7vw, 96px); }
.consultants .h2 { max-width: 17em; }
.consultants p { max-width: 42em; }
@media (max-width: 800px) { .leaders { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 0.96rem; padding: 0; }
.field .hint { font-weight: 400; color: var(--mute); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--text); background: var(--white);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 0.8em 1em; min-height: 52px; width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan-ink); box-shadow: 0 0 0 4px rgba(0, 207, 255, 0.25); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 600px) { .row-2 { grid-template-columns: 1fr; } }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { position: relative; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check span { display: inline-flex; padding: 0.5em 0.95em; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 0.94rem; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.check input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.check input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 0.9rem; color: var(--mute); }
.form-status { border-radius: 12px; padding: 0.85em 1em; font-size: 0.95rem; background: var(--ok-bg); color: var(--ok-fg); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-card { background: var(--ink); color: var(--white); border-radius: 22px; padding: clamp(24px, 3vw, 36px); display: grid; gap: 22px; align-content: start; }
.info-card dl { margin: 0; display: grid; gap: 20px; }
.info-card dt { font-size: 0.86rem; color: var(--mute-dark); font-stretch: 92%; }
.info-card dd { margin: 4px 0 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.info-card a { text-decoration: none; }
.info-card a:hover { text-decoration: underline; }
.hours { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; font-variant-numeric: tabular-nums; }
.hours span:nth-child(odd) { color: var(--mute-dark); }
.expect { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: x; }
.expect li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-top: 1px solid var(--line-dark); }
.expect li::before { counter-increment: x; content: counter(x); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--cyan); color: var(--ink); font-weight: 700; font-size: 0.9rem; }
.scheduler { width: 100%; min-height: 720px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }

/* ---------- Auth + members ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 640px; }
.auth-side { position: relative; overflow: hidden; background: radial-gradient(700px 420px at 10% 0%, rgba(0, 53, 118, 0.7), transparent 65%), var(--ink); color: var(--white); padding: clamp(40px, 6vw, 88px) var(--gutter); display: grid; align-content: center; }
.auth-side .panel-mark { right: -90px; bottom: -70px; width: 440px; opacity: 0.09; }
.auth-side-inner { position: relative; max-width: 480px; margin-left: auto; display: grid; gap: 22px; width: 100%; }
.auth-side h1 { font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4rem); font-stretch: 122%; font-weight: 780; letter-spacing: -0.03em; line-height: 0.98; }
.auth-side p { color: var(--mute-dark); }
.auth-main { background: var(--paper); display: grid; place-items: center; padding: clamp(32px, 6vw, 88px) var(--gutter); }
.auth-card { width: 100%; max-width: 440px; background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 4vw, 40px); display: grid; gap: 20px; box-shadow: 0 30px 60px -40px rgba(7, 7, 35, 0.35); }
.auth-card h2 { font-size: 1.6rem; font-stretch: 112%; font-weight: 720; letter-spacing: -0.015em; }
.auth-card p { color: var(--mute); font-size: 0.98rem; }
.auth-msg { border-radius: 12px; padding: 0.8em 1em; font-size: 0.95rem; line-height: 1.45; }
.auth-msg.is-error { background: var(--error-bg); color: var(--error-fg); }
.auth-msg.is-ok { background: var(--ok-bg); color: var(--ok-fg); }
.auth-msg.is-info { background: var(--paper); color: var(--text); border: 1px solid var(--line); }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--cyan-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.auth-foot { border-top: 1px solid var(--line); padding-top: 18px; font-size: 0.94rem; color: var(--mute); }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side-inner { margin-left: 0; }
}
.preview-banner { background: #FFF5E3; color: #5E3B00; border: 1px solid #F1D49F; border-radius: 12px; padding: 0.85em 1em; margin-bottom: 28px; font-size: 0.95rem; }
.lib-hero-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter { border: 1.5px solid var(--line); background: var(--white); color: var(--text); border-radius: 999px; padding: 0.5em 1em; font: inherit; font-size: 0.94rem; cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.lib { display: grid; border-top: 1px solid var(--line); }
.lib-item { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; padding: 22px 4px; border-bottom: 1px solid var(--line); }
.lib-type { font-stretch: 82%; font-weight: 650; font-size: 0.86rem; color: var(--cyan-ink); }
.lib-body { display: grid; gap: 4px; min-width: 0; }
.lib-title { font-weight: 650; font-stretch: 104%; font-size: 1.08rem; }
.lib-desc { color: var(--mute); font-size: 0.96rem; }
.lib-date { font-stretch: 82%; color: var(--mute); font-size: 0.86rem; }
.lib-empty { padding: 40px 4px; color: var(--mute); }
@media (max-width: 720px) { .lib-item { grid-template-columns: 1fr; } .lib-item .btn { justify-self: start; } }

/* ---------- Long-form text (privacy policy) ---------- */
.prose { max-width: 46em; display: grid; gap: 14px; color: var(--mute); }
.prose h2 { font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem); font-stretch: 110%; font-weight: 700; color: var(--text); letter-spacing: -0.01em; margin-top: 28px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; display: grid; gap: 6px; }
.prose strong { color: var(--text); font-weight: 650; }
.prose a { color: var(--cyan-ink); }

/* ---------- Misc ---------- */
.center-page { min-height: 60vh; display: grid; align-content: center; }
.note-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.note-list li { padding: 14px 0; border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: baseline; }
.note-list svg { flex: none; width: 13px; height: 13px; color: var(--cyan-ink); transform: translateY(1px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; flex-wrap: wrap; row-gap: 8px; }
  .marquee-track [aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}
