/* ==========================================================================
   BVANTRIX — Decisions for a more human tomorrow
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Surfaces */
  --ground:      #FFFFFF;   /* the page */
  --shell:       #FFFFFF;
  --panel:       #F4F4F6;   /* only for the nav pill */
  --panel-deep:  #E7E9EC;
  --panel-ink:   #0C0D0F;   /* inverted block */

  /* Ink */
  --ink:         #08090B;
  --ink-2:       #3E4147;
  --ink-3:       #6E7278;
  --muted:       #9A9DA4;   /* the grey half of two-tone headlines */
  --line:        #E4E5E9;
  --line-2:      #D2D4D9;

  /* Accents — used sparingly */
  --violet:      #6532E8;
  --violet-ink:  #4A1FC0;
  --violet-soft: #EFE9FE;
  --green:       #12B26A;
  --green-soft:  #E1F7ED;

  /* Type */
  --sans: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* Geometry */
  --r-card: 18px;
  --r-pill: 999px;

  /* Rhythm */
  --stack:   clamp(78px, 8.5vw, 132px);
  --content: 1400px;
  --pad:     clamp(20px, 4vw, 56px);
  /* centres content without wrapping every section in another div */
  --edge:    max(var(--pad), calc((100% - var(--content)) / 2));
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv01";
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--violet); color: #fff; }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   3. Type scale
   -------------------------------------------------------------------------- */

.display {
  overflow-wrap: break-word;
  font-size: clamp(1.95rem, 5.4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.038em;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}

.h2 {
  overflow-wrap: break-word;
  font-size: clamp(1.6rem, 4.4vw, 2.7rem);
  line-height: 1.06;
  letter-spacing: -0.032em;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}

.h3 {
  font-size: clamp(1.25rem, 2.6vw, 1.8rem);
  line-height: 1.12;
  letter-spacing: -0.026em;
  font-weight: 600;
  margin: 0;
}

/* the grey half of a two-tone headline */
.dim { color: var(--muted); }

.lede {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
  max-width: 44ch;
}

.label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
}

.micro {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-3);
  margin: 0;
}

/* --------------------------------------------------------------------------
   4. Shell + layout
   -------------------------------------------------------------------------- */

.shell {
  width: 100%;
  background: var(--ground);
}

.bleed { padding-left: var(--edge); padding-right: var(--edge); }

.section { padding-top: var(--stack); padding-bottom: var(--stack); }
.section + .section { border-top: 1px solid var(--line); }

/* statement · visual · rail — the recurring three-column rhythm */
.triad {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.05fr) minmax(0, 0.46fr);
  gap: 0 clamp(28px, 4vw, 64px);
  align-items: start;
}

.rail {
  border-left: 1px solid var(--line);
  padding-left: clamp(20px, 2.4vw, 34px);
  align-self: stretch;
}

.rail p + p { margin-top: 1.05em; }

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.rail-list li {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.rail-rule {
  width: 26px;
  height: 1px;
  background: var(--line-2);
  border: 0;
  margin: 22px 0;
}

/* section eyebrow: 01 — THE IDEA */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(30px, 4vw, 52px);
}

.eyebrow .num {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--violet);
  font-variant-numeric: tabular-nums;
}

.eyebrow .dash {
  width: 22px;
  height: 1px;
  background: var(--line-2);
  flex: none;
}

/* --------------------------------------------------------------------------
   5. Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 20px var(--edge);
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.nav.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.86);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand .mark { width: 26px; height: 26px; color: var(--violet); flex: none; }

.brand .wordmark {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
}


.nav-pill {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  background: var(--panel);
  border-radius: var(--r-pill);
}

.nav-pill a {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-pill a:hover { background: #fff; color: var(--violet); }

.nav-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  background: var(--violet);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.22s ease;
  box-shadow: 0 1px 2px rgba(101, 50, 232, 0.24);
}

.nav-cta:hover {
  background: var(--violet-ink);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -6px rgba(101, 50, 232, 0.5);
}
.nav-cta .arw { transition: transform 0.22s cubic-bezier(.2,.7,.3,1); }
.nav-cta:hover .arw { transform: translateX(3px); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  border: 1px solid var(--line-2);
  background: var(--shell);
  border-radius: var(--r-pill);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block; width: 16px; height: 1.5px;
  background: var(--ink); position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--ink);
  transition: transform .2s ease;
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after  { top: 5px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(.2,.7,.3,1), background 0.2s ease, border-color 0.2s ease;
}

.btn .arw { transition: transform 0.24s cubic-bezier(.2,.7,.3,1); }
.btn:hover .arw { transform: translateX(4px); }
.btn:hover { transform: translateY(-1px); }

.btn--solid {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 1px 2px rgba(101, 50, 232, 0.22);
}
.btn--solid:hover {
  background: var(--violet-ink);
  box-shadow: 0 8px 22px -8px rgba(101, 50, 232, 0.55);
}

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--violet); color: var(--violet); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--violet);
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
}
.link-arrow .arw { transition: transform 0.24s cubic-bezier(.2,.7,.3,1); }
.link-arrow:hover .arw { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */

.hero {
  padding-top: clamp(46px, 5.6vw, 82px);
  padding-bottom: clamp(56px, 6vw, 92px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.94fr) minmax(0, 0.3fr);
  gap: 0 clamp(28px, 3.4vw, 54px);
  align-items: center;
}

.hero-copy .label { margin-bottom: 26px; }
.hero-copy .display { margin-bottom: 28px; }
.hero-copy .lede { margin-bottom: 36px; max-width: 40ch; }

.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.hero-art svg { width: 100%; height: auto; }

/* the orb — motion is opt-in and small on purpose */
.hero-art {
  cursor: default;
  --tilt-x: 0px;
  --tilt-y: 0px;
}

.orb-drift {
  transform: translate3d(var(--tilt-x), var(--tilt-y), 0);
  transition: transform 1.1s cubic-bezier(.2, .7, .3, 1);
  will-change: transform;
}

.orb-body,
.orb-spec,
.orb-spin-a,
.orb-spin-b,
.orb-wake { transform-box: view-box; transform-origin: 200px 200px; }

/* ── The orb's argument ───────────────────────────────────────────
   Signals arrive from every direction, the decision registers them,
   and the consequence travels back out. One 9s breath, on repeat.
   Nothing here is load-bearing: with motion reduced the orb simply
   sits still and none of this shows. */

.orb-signal path { stroke-dasharray: 13 100; stroke-dashoffset: 0; opacity: 0; }
.orb-land circle { opacity: 0; transform-box: fill-box; transform-origin: center; }
.orb-wake        { opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
  .orb-body   { animation: orbBreathe 11s ease-in-out infinite; }
  .orb-spin-a { animation: orbSpin 78s linear infinite; }
  .orb-spin-b { animation: orbSpin 52s linear infinite reverse; }
  .orb-spec   { animation: orbShine 11s ease-in-out infinite; transform-origin: 160px 146px; }

  /* inbound: staggered so they arrive as a sequence, not a salvo */
  .orb-signal path {
    animation: orbArrive 9s cubic-bezier(.36, 0, .5, 1) infinite;
    animation-delay: calc(var(--i) * 0.54s);
  }
  .orb-land circle {
    animation: orbRegister 9s ease-out infinite;
    animation-delay: calc(var(--i) * 0.54s + 1.9s);
  }
  /* outbound: only once all five have landed */
  .orb-wake      { animation: orbWake 9s cubic-bezier(.22, .7, .3, 1) infinite; animation-delay: 4.4s; }
  .orb-wake--2   { animation-delay: 4.85s; }
}

/* the signal travels inward and is absorbed at the surface */
@keyframes orbArrive {
  0%   { stroke-dashoffset: 0;    opacity: 0; }
  4%   { opacity: .85; }
  17%  { opacity: .85; }
  24%  { stroke-dashoffset: -108; opacity: 0; }
  100% { stroke-dashoffset: -108; opacity: 0; }
}

/* the decision registering it */
@keyframes orbRegister {
  0%   { transform: scale(.4); opacity: 0; }
  3%   { transform: scale(1.5); opacity: .95; }
  12%  { transform: scale(1);   opacity: .5; }
  30%  { transform: scale(1);   opacity: 0; }
  100% { transform: scale(1);   opacity: 0; }
}

/* the consequence reaching back out into the world */
@keyframes orbWake {
  0%   { transform: scale(1);    opacity: 0; }
  6%   { opacity: .8; }
  38%  { transform: scale(1.38); opacity: 0; }
  100% { transform: scale(1.38); opacity: 0; }
}

@keyframes orbBreathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.022); }
}

@keyframes orbSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes orbShine {
  0%, 100% { opacity: .82; transform: translate(0, 0); }
  50%      { opacity: 1;   transform: translate(5px, -4px); }
}

.hero-rail { align-self: center; }

/* --------------------------------------------------------------------------
   8. Figures
   -------------------------------------------------------------------------- */

.figure {
  display: grid;
  place-items: center;
  padding: clamp(8px, 2vw, 24px) 0;
}

.figure svg { width: 100%; height: auto; max-width: 500px; }

/* ── The Idea diagram ─────────────────────────────────────────────
   One consequence leaves the decision, travels a line, lands on a
   node. Staggered so it reads as a slow rolling wave, not a strobe. */

.idea-pulse path {
  stroke-dashoffset: 0;
  opacity: 0;
}
/* a wide, faint wash carries the colour; a fine core gives it an edge */
.idea-pulse--wash path { stroke-dasharray: 15 100; }
.idea-pulse--core path { stroke-dasharray: 9 100; }

.idea-node circle {
  transform-box: fill-box;
  transform-origin: center;
  opacity: .5;
}

.idea-halo { opacity: 0; transform-box: fill-box; transform-origin: center; }

@media (prefers-reduced-motion: no-preference) {
  .idea-pulse path {
    animation-duration: 6.6s;
    animation-timing-function: cubic-bezier(.42, 0, .58, 1);
    animation-iteration-count: infinite;
    animation-delay: calc(var(--i) * 0.6s);
  }
  .idea-pulse--wash path { animation-name: ideaWash; }
  .idea-pulse--core path { animation-name: ideaTravel; }

  .idea-node circle {
    animation: ideaLand 6.6s ease-out infinite;
    animation-delay: calc(var(--i) * 0.6s + 0.82s);
  }
  .idea-halo { animation: ideaHalo 6.6s ease-out infinite; }
}

@keyframes ideaTravel {
  0%   { stroke-dashoffset: 0;    opacity: 0; }
  7%   { opacity: .92; }
  28%  { opacity: .92; }
  40%  { stroke-dashoffset: -109; opacity: 0; }
  100% { stroke-dashoffset: -109; opacity: 0; }
}

@keyframes ideaWash {
  0%   { stroke-dashoffset: 2;    opacity: 0; }
  7%   { opacity: .3; }
  28%  { opacity: .3; }
  40%  { stroke-dashoffset: -107; opacity: 0; }
  100% { stroke-dashoffset: -107; opacity: 0; }
}

@keyframes ideaLand {
  0%, 100% { transform: scale(1);   opacity: .5; }
  5%       { transform: scale(1.4); opacity: 1; }
  24%      { transform: scale(1);   opacity: .5; }
}

@keyframes ideaHalo {
  0%   { transform: scale(1);    opacity: .2; }
  26%  { transform: scale(1.09); opacity: 0; }
  100% { transform: scale(1.09); opacity: 0; }
}

/* ── The ESG diagram ──────────────────────────────────────────────
   The three domains drift apart and back together. When they are
   closest the overlap is deepest, so the shared centre brightens and
   sends a ripple out. Everything moves on one 10s breath. */

.esg-e, .esg-s, .esg-g { transform-box: view-box; }
.esg-core, .esg-ripple, .esg-glow { transform-box: fill-box; transform-origin: center; }
.esg-ripple { opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
  .esg-e      { animation: esgDriftE 10s ease-in-out infinite; }
  .esg-s      { animation: esgDriftS 10s ease-in-out infinite; }
  .esg-g      { animation: esgDriftG 10s ease-in-out infinite; }
  .esg-glow   { animation: esgGlow   10s ease-in-out infinite; }
  .esg-core   { animation: esgCore   10s ease-in-out infinite; }
  .esg-ripple { animation: esgRipple 10s ease-out     infinite; }
}

/* each lobe moves along its own radius, away from the shared centre */
@keyframes esgDriftE {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(0, -6.5px); }
}
@keyframes esgDriftS {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-5.7px, 3.1px); }
}
@keyframes esgDriftG {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(5.7px, 3.1px); }
}

/* the overlap glow swells as the lobes close in */
@keyframes esgGlow {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(.72); opacity: .35; }
}

/* brightest when the lobes are closest */
@keyframes esgCore {
  0%, 100% { transform: scale(1.4); opacity: 1; }
  50%      { transform: scale(.85); opacity: .45; }
}

/* a single ring leaves the intersection each time they converge */
@keyframes esgRipple {
  0%   { transform: scale(1);  opacity: .5; }
  34%  { transform: scale(17); opacity: 0; }
  100% { transform: scale(17); opacity: 0; }
}



/* --------------------------------------------------------------------------
   9. Belief — full-width statement
   -------------------------------------------------------------------------- */

.belief-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 0 clamp(36px, 5vw, 88px);
  align-items: start;
}

.belief-grid .h2 { max-width: 15ch; }

.belief-note p {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
  max-width: 42ch;
}
.belief-note p + p { margin-top: 1.15em; }

/* --------------------------------------------------------------------------
   10. People
   -------------------------------------------------------------------------- */

.people-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 2.1fr) minmax(0, 0.4fr);
  gap: 0 clamp(28px, 4vw, 56px);
  align-items: start;
}

.roster {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.person .avatar {
  width: 78px;
  height: 78px;
  border-radius: var(--r-pill);
  background: var(--panel);
  object-fit: cover;
  margin-bottom: 18px;
}

.person h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 2px;
}

.person .role {
  font-size: 0.8125rem;
  color: var(--ink-3);
  margin: 0 0 14px;
}

.person p.bio {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   11. Conversation
   -------------------------------------------------------------------------- */

.talk-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.05fr) minmax(0, 0.46fr);
  gap: 0 clamp(28px, 4vw, 64px);
  align-items: start;
}

.talk-body p {
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--ink-2);
  margin: 0;
  max-width: 48ch;
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */

.foot {
  background: var(--ground);
  border-top: 1px solid var(--line);
  padding: clamp(40px, 4vw, 56px) var(--edge);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
}

.foot .brand .wordmark { font-size: 0.875rem; }
.foot-tag { font-size: 0.8125rem; color: var(--ink-3); }
.foot-links { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.foot-links a { font-size: 0.8125rem; color: var(--ink-2); }
.foot-links a:hover { color: var(--violet); }

.social { display: flex; gap: 10px; }
.social a {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--violet);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(101, 50, 232, 0);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.24s ease;
}
/* the glyph stays white — .foot-links a:hover would otherwise recolour it
   violet on violet, which is what made these go dark on hover */
.foot-links .social a:hover,
.foot-links .social a:focus-visible { color: #fff; background: #7A47F0; }
.social a:hover { transform: translateY(-2px); box-shadow: 0 6px 14px -4px rgba(101, 50, 232, .55); }
.social a:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.social svg { width: 14px; height: 14px; }

.copyright { font-size: 0.75rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   13. Motion — opt-in, never hides content by default
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s cubic-bezier(.2,.7,.3,1),
                transform 0.7s cubic-bezier(.2,.7,.3,1);
  }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .reveal[data-d="1"] { transition-delay: 0.07s; }
  .js .reveal[data-d="2"] { transition-delay: 0.14s; }
  .js .reveal[data-d="3"] { transition-delay: 0.21s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* --------------------------------------------------------------------------
   14. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); }
  .hero-rail { grid-column: 1 / -1; border-left: 0; padding-left: 0; padding-top: 34px; margin-top: 34px; border-top: 1px solid var(--line); }
  .hero-rail .rail-list { grid-auto-flow: column; grid-auto-columns: max-content; gap: 26px; }
  .hero-rail .rail-rule, .hero-rail .rail-foot { display: none; }

  .triad, .talk-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .triad .rail, .talk-grid .rail { grid-column: 1 / -1; border-left: 0; padding-left: 0; padding-top: 30px; margin-top: 30px; border-top: 1px solid var(--line); }
  .triad .rail p, .talk-grid .rail p { max-width: 56ch; }

  .people-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .people-grid .rail { border-left: 0; padding-left: 0; padding-top: 26px; border-top: 1px solid var(--line); }
  .roster { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --stack: 70px; }

  .nav-pill { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px 0; }
  .hero-art { order: -1; max-width: 340px; margin: 0 auto; }
  .hero-copy .lede { max-width: none; }

  .triad, .talk-grid, .belief-grid { grid-template-columns: minmax(0, 1fr); gap: 34px 0; }
  .belief-grid .h2 { max-width: 18ch; }
  .belief-note p { max-width: none; }

  .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 22px; }

  .foot { flex-direction: column; align-items: flex-start; }
  .foot-links { margin-left: 0; flex-wrap: wrap; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .display { letter-spacing: -0.032em; }
  .roster { grid-template-columns: minmax(0, 1fr); }
  .person .avatar { width: 64px; height: 64px; }
  .hero-rail .rail-list { grid-auto-flow: row; gap: 9px; }
  .eyebrow { margin-bottom: 26px; }
}

/* --------------------------------------------------------------------------
   15. Mobile drawer
   -------------------------------------------------------------------------- */

.nav-drawer {
  position: sticky;
  top: var(--nav-h, 82px);
  z-index: 49;
  background: var(--shell);
  border-bottom: 1px solid var(--line);
  padding: 8px var(--edge) 22px;
}

.nav-drawer[hidden] { display: none; }

.nav-drawer a {
  display: block;
  padding: 13px 0;
  font-size: 1.0625rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

/* .nav-drawer a sets display:block, which would flatten the button —
   restore the flex row so the label and arrow sit together, centred. */
.nav-drawer .btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 22px;
  padding: 15px 24px;
  border-bottom: 0;
}

@media (min-width: 861px) {
  .nav-drawer { display: none !important; }
}

/* --------------------------------------------------------------------------
   16. Print
   -------------------------------------------------------------------------- */

@media print {
  body { background: #fff; }
  .nav, .nav-drawer { display: none; }
}

/* --------------------------------------------------------------------------
   14. Booking panel
   The call is booked here rather than on a third-party page, so the
   moment of highest intent never leaves BVANTRIX.
   -------------------------------------------------------------------------- */

.book { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: var(--pad); }
.book[hidden] { display: none; }

.book-scrim {
  position: absolute; inset: 0;
  background: rgba(8, 9, 11, .42);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  backdrop-filter: saturate(140%) blur(6px);
  opacity: 0;
  transition: opacity .34s ease;
}
.book.is-open .book-scrim { opacity: 1; }

.book-panel {
  position: relative;
  width: min(940px, 100%);
  max-height: min(88vh, 860px);
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--shell);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: 0 1px 2px rgba(8,9,11,.05), 0 28px 70px -22px rgba(8,9,11,.32);
  opacity: 0;
  transform: translateY(14px) scale(.985);
  transition: opacity .34s ease, transform .42s cubic-bezier(.2,.7,.3,1);
}
.book.is-open .book-panel { opacity: 1; transform: none; }

.book-x {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--shell); color: var(--ink-3); cursor: pointer;
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.book-x svg { width: 15px; height: 15px; }
.book-x:hover { color: var(--ink); border-color: var(--line-2); transform: rotate(90deg); }

.book-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; }
.book-grid[hidden] { display: none; }

.book-aside {
  padding: clamp(28px, 3.4vw, 44px);
  background: var(--violet-soft);
  border-right: 1px solid var(--line);
  border-radius: var(--r-card) 0 0 var(--r-card);
}
.book-aside .eyebrow { margin-bottom: 20px; }
.book-aside .h3 { letter-spacing: -0.028em; }

.book-note { margin-top: 16px; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.6; }

.book-facts { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.book-facts li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.8125rem; color: var(--ink-2);
}
.book-facts li::before {
  content: ""; width: 5px; height: 5px; flex: none;
  border-radius: 50%; background: var(--violet);
}

.book-form { padding: clamp(28px, 3.4vw, 44px); display: grid; gap: 20px; align-content: start; }

.fld { display: grid; gap: 8px; min-width: 0; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.fld label {
  font-size: 0.75rem; font-weight: 500; letter-spacing: .01em;
  color: var(--ink-2);
}
.fld label em { font-style: normal; color: var(--muted); font-weight: 400; }

.fld input,
.fld textarea {
  width: 100%; font: inherit; font-size: 0.9375rem; color: var(--ink);
  background: var(--shell);
  border: 1px solid var(--line-2); border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.fld textarea { resize: vertical; min-height: 78px; line-height: 1.55; }
.fld input::placeholder,
.fld textarea::placeholder { color: var(--muted); }
.fld input:focus,
.fld textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px var(--violet-soft);
}
.fld.is-bad input,
.fld.is-bad textarea { border-color: #C4362F; }

.err { margin: 0; font-size: 0.75rem; color: #C4362F; min-height: 0; }
.err:empty { display: none; }

/* day / time chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--day { gap: 8px; }

.chip {
  font: inherit; cursor: pointer;
  background: var(--shell);
  border: 1px solid var(--line-2); border-radius: 10px;
  color: var(--ink-2);
  padding: 9px 13px;
  line-height: 1.2;
  transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease;
}
.chip:hover { border-color: var(--violet); color: var(--violet); }
.chip[aria-checked="true"] {
  background: var(--violet); border-color: var(--violet); color: #fff;
}
.chip[aria-checked="true"] .chip-dow { color: rgba(255,255,255,.72); }
.chip:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

.chips--day .chip { display: grid; gap: 3px; text-align: center; min-width: 62px; padding: 9px 10px; }
.chip-dow { font-size: 0.6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.chip-day { font-size: 0.9375rem; font-weight: 500; }
.chips--time .chip { font-size: 0.875rem; font-variant-numeric: tabular-nums; }

.book-submit { justify-self: start; margin-top: 4px; }
.book-submit[disabled] { opacity: .55; pointer-events: none; }
.book-fine { margin: 0; font-size: 0.75rem; color: var(--muted); line-height: 1.55; }

/* confirmation */
.book-done {
  padding: clamp(40px, 5vw, 64px);
  display: grid; justify-items: start; gap: 18px;
  max-width: 520px;
}
.book-done[hidden] { display: none; }
.book-tick { color: var(--violet); }
.book-tick svg { width: 44px; height: 44px; display: block; }
.bt-ring, .bt-check { stroke-dasharray: 100; stroke-dashoffset: 100; }
.book-done:not([hidden]) .bt-ring  { animation: btDraw .72s cubic-bezier(.2,.7,.3,1) forwards; }
.book-done:not([hidden]) .bt-check { animation: btDraw .44s cubic-bezier(.2,.7,.3,1) .38s forwards; }
@keyframes btDraw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .bt-ring, .bt-check { stroke-dashoffset: 0; animation: none !important; }
  .book-scrim, .book-panel { transition: none; }
}

@media (max-width: 800px) {
  .book { padding: 0; place-items: stretch; }
  .book-panel { width: 100%; max-height: 100vh; height: 100%; border: 0; border-radius: 0; }
  .book-grid { grid-template-columns: 1fr; }
  .book-aside { border-right: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding-right: 64px; }
  .fld-row { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   15. Contact
   Shares .fld / .err with the booking panel, so the two forms cannot
   drift apart.
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(36px, 5vw, 92px);
  align-items: start;
}

.contact-meta { list-style: none; margin: 38px 0 0; padding: 0; display: grid; gap: 0; }
.contact-meta li {
  display: flex; align-items: baseline; gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.contact-meta li:last-child { border-bottom: 1px solid var(--line); }
.contact-meta .k {
  flex: none; width: 124px;
  font-size: 0.6875rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.contact-meta a { color: var(--violet); }
.contact-meta a:hover { text-decoration: underline; text-underline-offset: 3px; }

.contact-form {
  display: grid; gap: 20px; align-content: start;
  background: var(--shell);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(24px, 3vw, 40px);
}
.contact-submit { justify-self: start; margin-top: 2px; }
.contact-submit[disabled] { opacity: .55; pointer-events: none; }

.contact-done {
  display: flex; align-items: center; gap: 10px;
  margin: 0;
  font-size: 0.875rem;
  color: var(--violet-ink);
}
.contact-done[hidden] { display: none; }
.contact-done svg { flex: none; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* phone: the dialling code and the number are one control, not two
   glued together — same surface, one hairline between them */
.tel {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--shell);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.tel:focus-within { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-soft); }
.fld.is-bad .tel { border-color: #C4362F; }

.tel-code {
  position: relative;
  flex: none;
  display: flex; align-items: center; gap: 7px;
  padding: 0 11px 0 14px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  border-right: 1px solid var(--line);
  cursor: pointer;
}
.tel-code-txt { line-height: 1; }
.tel-chev { color: var(--ink-3); transition: color .18s ease; }
.tel-code:hover { color: var(--ink); }
.tel-code:hover .tel-chev { color: var(--ink-2); }

/* the native select, invisible but still the thing being operated */
.js .tel-code select {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
  font: inherit;
  border: 0; padding: 0;
  -webkit-appearance: none; appearance: none;
}
.js .tel-code:focus-within { color: var(--violet); }
.js .tel-code:focus-within .tel-chev { color: var(--violet); }
.tel-code select:focus { outline: none; }

/* no JS: drop the stand-in and let the select be itself */
.tel-code-txt, .tel-chev { display: none; }
.js .tel-code-txt { display: block; }
.js .tel-chev     { display: block; }
html:not(.js) .tel-code { padding: 0; }
html:not(.js) .tel-code select {
  font: inherit; font-size: 0.875rem;
  border: 0; background: transparent;
  padding: 12px 10px 12px 14px;
  cursor: pointer;
}

/* the number sheds its own box — the wrapper is the control now */
.tel input {
  flex: 1 1 auto; min-width: 0;
  border: 0; border-radius: 0;
  background: transparent;
}
.tel input:focus { box-shadow: none; border-color: transparent; }

@media (max-width: 560px) {
  .tel-code { font-size: 0.875rem; padding: 0 9px 0 12px; }
  .tel input { font-size: 0.875rem; padding-left: 12px; padding-right: 12px; }
}

/* a button that has to sit in running text without looking like one */
.as-link {
  font: inherit;
  background: none; border: 0; padding: 0;
  color: var(--violet);
  cursor: pointer;
  text-align: left;
}
.as-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.as-link:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 3px; }
