/* ==========================================================================
   OPUS — Blueprint
   Design tokens and homepage styles.
   Every value here is lifted from the approved design. Change tokens, not
   the hardcoded numbers in components.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Ground */
  --ink:            #000000;   /* page ground — pure black, non-negotiable */
  --surface:        #0a0a0a;   /* raised panel */
  --surface-2:      #0d0d0d;   /* product plate, placeholder frame */
  --hover:          #0b0b0b;   /* row hover */

  /* Rules — the whole design rests on hairlines */
  --rule:           #1c1c1c;   /* default hairline */
  --rule-strong:    #262626;   /* table head, input border, chip border */
  --rule-bright:    #3a3a3a;   /* dashed placeholder, secondary button */

  /* Type */
  --fg:             #ffffff;
  --fg-muted:       #b4b4b4;   /* hero body */
  --fg-dim:         #9a9a9a;   /* body copy */
  --fg-soft:        #8a8a8a;   /* secondary body */
  --fg-quiet:       #6e6e6e;   /* labels */
  --fg-faint:       #4a4a4a;   /* row numerals */
  --fg-ghost:       #3f3f3f;   /* legal line */

  /* The architectural grid — the brand's existing motif */
  --grid-line:      rgba(255, 255, 255, 0.028);
  --grid-line-hero: rgba(255, 255, 255, 0.05);
  --grid-size:      60px;

  /* Type families */
  --font-sans: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Type scale — clamped so it survives every viewport */
  --t-hero:    clamp(3rem, 7.5vw, 6.75rem);
  --t-h2:      clamp(2.25rem, 4.4vw, 4rem);
  --t-h2-stmt: clamp(1.75rem, 3.2vw, 3.25rem);   /* the philosophy statement */
  --t-h3:      clamp(1.375rem, 1.9vw, 1.875rem);
  --t-lead:    clamp(1rem, 1.2vw, 1.0625rem);
  --t-body:    1rem;
  --t-small:   0.9375rem;
  --t-navlink: clamp(1rem, 3.6vw, 1.25rem);      /* mobile nav panel links */
  --t-plate:   clamp(3rem, 9vw, 6rem);           /* protocol page numeral plate */

  /* Rhythm */
  --gutter:       clamp(1.25rem, 3.4vw, 3rem);
  --section-y:    clamp(3.5rem, 6.5vw, 6.25rem);
  --max:          1440px;

  /* Motion */
  --ease:  cubic-bezier(0.22, 0.61, 0.36, 1);
  --fast:  160ms;
  --slow:  420ms;
}

/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--fg); }

/* Keyboard focus must stay visible on a black page. */
:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   3. PRIMITIVES
   -------------------------------------------------------------------------- */

/* The grid overlay. Sits behind everything, never intercepts a click. */
.grid-field { position: relative; }
.grid-field::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right,  var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
}
.grid-field > * { position: relative; z-index: 1; }

.shell {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* The mono label. Used for every piece of metadata on the site. */
.label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-quiet);
  line-height: 1.4;
}
.label--bright { color: var(--fg); }
.label--tight  { letter-spacing: 0.18em; }
.label--xs     { font-size: 0.625rem; }

.mono { font-family: var(--font-mono); }

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* Buttons. Minimum 44px tall everywhere. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 1.875rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease),
              border-color var(--fast) var(--ease);
}
.btn--solid  { background: var(--fg); color: var(--ink); font-weight: 500; }
.btn--solid:hover  { background: var(--fg-muted); color: var(--ink); }
.btn--ghost  { border: 1px solid var(--rule-bright); color: var(--fg); }
.btn--ghost:hover  { border-color: var(--fg); background: var(--hover); }
.btn--hairline { border: 1px solid var(--fg); color: var(--fg); }
.btn--hairline:hover { background: var(--fg); color: var(--ink); }

/* Chips — filters, spec tags */
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.125rem;
  border: 1px solid var(--rule-strong);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-quiet);
  white-space: nowrap;
  transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.chip:hover { border-color: var(--fg-quiet); color: var(--fg); }
.chip[aria-pressed='true'] { background: var(--fg); border-color: var(--fg); color: var(--ink); }

/* Photo treatment. One rule, applied everywhere, so the site reads as one system. */
.duotone      { filter: grayscale(1) contrast(1.15) brightness(0.9); }
.duotone--deep{ filter: grayscale(1) contrast(1.22) brightness(0.72); }
.duotone--dark{ filter: grayscale(1) contrast(1.3)  brightness(0.7);  }

/* --------------------------------------------------------------------------
   4. NAV
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.375rem var(--gutter);
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav__brand { display: flex; align-items: center; gap: 0.875rem; }
.nav__brand svg { stroke: var(--fg); stroke-width: 1; }
.wordmark {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.34em;
}
.nav__links { display: flex; align-items: center; gap: 2.5rem; }
.nav__links a { transition: color var(--fast) var(--ease); }
.nav__links a:hover { color: var(--fg); }
.nav__links a.label { color: #cfcfcf; }
.nav__divider { width: 1px; height: 16px; background: var(--rule-strong); }
.nav__toggle { display: none; width: 44px; height: 44px; flex-direction: column;
               align-items: center; justify-content: center; gap: 5px; }
.nav__toggle span { width: 20px; height: 1px; background: var(--fg); }
.nav__toggle span { transition: transform var(--fast) var(--ease); }
/* Open state: the two rules cross into a close mark. No new shape, no icon font. */
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3px)  rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3px) rotate(-45deg); }

/* ---- Mobile nav panel ----------------------------------------------------
   Full-screen black ground beneath the sticky header, which stays on top so
   the toggle remains the close control. Above 900px the panel cannot open —
   .nav__links is the navigation there. */
.navpanel {
  position: fixed;
  inset: 0;
  z-index: 40;                 /* under .nav (50), over everything else */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem var(--gutter) var(--gutter);
  background: var(--ink);
  opacity: 0;
  transition: opacity var(--fast) var(--ease);
}
.navpanel[hidden] { display: none; }
.navpanel[data-open] { opacity: 1; }

.navpanel__links { display: flex; flex-direction: column; }
.navpanel__links a {
  display: flex;
  align-items: center;
  min-height: 56px;
  font-size: var(--t-navlink);
  color: #cfcfcf;
  border-bottom: 1px solid var(--rule);
}
.navpanel__links a:hover { color: var(--fg); }
.navpanel__join {
  justify-content: center;
  min-height: 56px;
  margin-top: 1.75rem;
  border-bottom: 0;
}
/* The body does not scroll behind the panel. */
body.nav-open { overflow: hidden; }

@media (min-width: 901px) {
  .navpanel { display: none; }
}

/* --------------------------------------------------------------------------
   5. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(720px, 88vh);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
/* Two scrims: one horizontal for headline legibility, one vertical to seat the
   image against the nav above and the ticker below. */
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 26%, rgba(0,0,0,0.55) 100%),
    linear-gradient(to right,  rgba(0,0,0,0.94) 0%, rgba(0,0,0,0.78) 34%, rgba(0,0,0,0.34) 72%, rgba(0,0,0,0.2) 100%);
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right,  var(--grid-line-hero) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line-hero) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
}
/* Oversized wireframe globe, deliberately cropped by the viewport edge.
   NOTE: `stroke` must be set on the host <svg>, not a descendant selector —
   <use> renders into a shadow tree that outside selectors cannot reach, so
   only inherited properties get through. Same applies wherever #globe is used. */
.hero__globe {
  position: absolute;
  right: -110px;
  top: 70px;
  width: 560px;
  height: 560px;
  pointer-events: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
}
.hero__body {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: clamp(4rem, 9vw, 8rem) clamp(5rem, 8vw, 7rem);
  display: flex;
  flex-direction: column;
  gap: 1.875rem;
}
.hero__eyebrow { display: flex; align-items: center; gap: 1rem; }
.hero__eyebrow::before { content: ''; width: 44px; height: 1px; background: var(--fg); flex: none; }
.hero__title {
  font-size: var(--t-hero);
  line-height: 0.88;
  font-weight: 800;
  letter-spacing: -0.035em;
  max-width: 15ch;
  text-wrap: balance;
}
.hero__lead { max-width: 30rem; font-size: var(--t-lead); line-height: 1.65; color: var(--fg-muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.875rem; padding-top: 0.375rem; }

/* --------------------------------------------------------------------------
   6. TICKER
   -------------------------------------------------------------------------- */
.ticker {
  border-block: 1px solid var(--rule);
  background: rgba(0, 0, 0, 0.72);
  padding-block: 0.8125rem;
  overflow: hidden;
}
.ticker__track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  white-space: nowrap;
  animation: ticker-scroll 42s linear infinite;
}
.ticker__track span {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
  color: #7a7a7a;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }  /* content is duplicated exactly once */
}

/* --------------------------------------------------------------------------
   7. SECTION INDEX STRIP
   -------------------------------------------------------------------------- */
.index-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--rule);
}
.index-strip a {
  display: flex;
  align-items: baseline;
  gap: 0.875rem;
  padding: 1.625rem var(--gutter);
  border-right: 1px solid var(--rule);
  transition: background var(--fast) var(--ease);
}
.index-strip a:last-child { border-right: 0; }
.index-strip a:hover { background: var(--hover); }
.index-strip .num { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--fg-faint); }

/* --------------------------------------------------------------------------
   8. SECTIONS
   -------------------------------------------------------------------------- */
.section { padding-block: var(--section-y); border-top: 1px solid var(--rule); }
.section--flush { border-top: 0; }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}
.section__title {
  font-size: var(--t-h2);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.section__note { max-width: 25rem; font-size: var(--t-small); line-height: 1.7; color: var(--fg-soft); }

/* Philosophy */
.philosophy { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 4rem; align-items: start; }
.philosophy__aside { display: flex; flex-direction: column; gap: 1.125rem; }
.philosophy__statement {
  font-size: var(--t-h2-stmt);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 22ch;
  text-wrap: pretty;
}
.philosophy__body { max-width: 40rem; line-height: 1.75; color: var(--fg-dim); }

/* Tenets */
.tenets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 5.25rem;
  border-top: 1px solid var(--rule);
}
.tenet { padding: 2.5rem 2.75rem; border-right: 1px solid var(--rule);
         display: flex; flex-direction: column; gap: 0.875rem; }
.tenet:first-child { padding-left: 0; }
.tenet:last-child  { padding-right: 0; border-right: 0; }
.tenet h3 { font-size: var(--t-h3); font-weight: 700; letter-spacing: 0.02em; }
.tenet p  { font-size: var(--t-small); line-height: 1.7; color: var(--fg-soft); }

/* --------------------------------------------------------------------------
   9. THE INDEX  (protocol table)
   -------------------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.125rem; }
.filters__divider { width: 1px; align-self: stretch; background: var(--rule); margin-inline: 0.375rem; }

.protocols { width: 100%; }
.protocols__head,
.protocol {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 130px 190px 150px 120px;
  gap: 1.25rem;
  align-items: center;
}
.protocols__head { padding-bottom: 0.875rem; border-bottom: 1px solid var(--rule-strong); }
/* On desktop the four meta cells must be direct grid children so they land in
   their own columns. `display: contents` dissolves the wrapper; the wrapper
   becomes a real flex container again at the 1100px breakpoint. */
.protocol__meta-group { display: contents; }
.protocol {
  width: 100%;
  padding-block: 1.375rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  transition: background var(--fast) var(--ease);
}
.protocol:hover { background: var(--hover); }
.protocol__name { font-size: 1.3125rem; font-weight: 600; letter-spacing: -0.01em; }
.protocol__meta { font-family: var(--font-mono); font-size: 0.75rem; color: #a0a0a0; }
.protocol__num  { font-family: var(--font-mono); font-size: 0.75rem; color: var(--fg-faint); }
.protocol[hidden] { display: none; }

.protocols__foot { display: flex; align-items: center; gap: 1rem; padding-top: 1.875rem; }
.protocols__foot .rule { flex: 1; }

.protocols__empty { padding: 2.5rem 0; color: var(--fg-soft); font-size: var(--t-small); }

/* --------------------------------------------------------------------------
   10. PRODUCT
   -------------------------------------------------------------------------- */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.product { display: flex; flex-direction: column; }

.product__plate {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--rule);
}
.product__plate img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Garment cutouts are shot square with the studio ground knocked out, so they
   are contained and inset rather than cropped — a `cover` crop clips sleeves.
   The lifestyle plates above stay on `cover`. */
.product__img--garment { object-fit: contain; padding: 7%; }

/* Shopify Buy Button. Everything the SDK draws inside its own frames is styled
   in assets/js/shopify.js; these two rules are the part that lives on the page.
   The SDK's floating cart toggle is suppressed — the header Cart link opens the
   drawer instead, so no second cart control appears bottom-right. */
.shopify-buy-frame--toggle { display: none !important; }
.buybutton { min-height: 50px; }
.buybutton .shopify-buy-frame--product { max-width: none; }
/* The hover swap. Resting image is the garment; hover reveals it in training. */
.product__img--hover { opacity: 0; transition: opacity var(--slow) var(--ease); }
.product:hover .product__img--hover,
.product:focus-within .product__img--hover { opacity: 1; }

.product__badge {
  position: absolute; left: 1.25rem; top: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.5);
  padding: 0.4375rem 0.8125rem;
}

/* Placeholder frame — replace the whole block with a real <img>. */
.product__placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.375rem;
  text-align: center;
}
.product__placeholder svg { stroke: rgba(255, 255, 255, 0.14); stroke-width: 1; }
.product__placeholder-note {
  border: 1px dashed var(--rule-bright);
  padding: 0.875rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  line-height: 2;
  color: var(--fg-quiet);
}

/* Thumbnail rail — the hover swap's stand-in on touch devices. */
.product__rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; padding-top: 0.5rem; }
.product__thumb {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--rule);
  background: var(--surface-2);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  color: var(--fg-faint);
  transition: border-color var(--fast) var(--ease);
}
.product__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product__thumb:hover { border-color: var(--fg-quiet); }
.product__thumb[aria-pressed='true'] { border-color: var(--fg); color: var(--fg-quiet); }

.product__row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 1.375rem 0 0.75rem;
  border-bottom: 1px solid var(--rule);
}
.product__name  { font-size: clamp(1.5rem, 2.1vw, 1.875rem); font-weight: 700; letter-spacing: 0.01em; }
.product__price { font-family: var(--font-mono); font-size: 1.0625rem; }
.product__copy  { padding-top: 1.125rem; font-size: var(--t-small); line-height: 1.7; color: var(--fg-soft); }
.product__specs { display: flex; flex-wrap: wrap; gap: 0.4375rem; padding-top: 1.25rem; }
.product__specs .chip { min-height: 38px; }
.product__actions { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.625rem; padding-top: 1.375rem; }
/* The Shopify block carries its own variant selects, so it is taller than a
   button and takes the full row; the secondary link sits beneath it. */
.product__actions:has(.buybutton) { flex-direction: column; align-items: stretch; gap: 1rem; }

/* --------------------------------------------------------------------------
   11. SURF BAND
   -------------------------------------------------------------------------- */
.band {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-top: 1px solid var(--rule);
}
.band__media { position: absolute; inset: 0; }
.band__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%; }
.band__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(0,0,0,0.92) 2%, rgba(0,0,0,0.62) 34%, rgba(0,0,0,0.22) 72%, rgba(0,0,0,0.6) 100%);
}
.band__body {
  position: relative; z-index: 2;
  width: 100%;
  padding-block: 3.5rem;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 3rem; flex-wrap: wrap;
}
.band__copy { display: flex; flex-direction: column; gap: 1.375rem; max-width: 45rem; }
.band__title {
  font-size: clamp(2rem, 4vw, 3.625rem);
  line-height: 1.03;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   12. SIGN-UP + FOOTER
   -------------------------------------------------------------------------- */
.signup {
  display: flex; align-items: center; justify-content: space-between;
  gap: 3rem; flex-wrap: wrap;
}
.signup__title { font-size: clamp(1.75rem, 2.9vw, 2.625rem); font-weight: 700; letter-spacing: -0.02em; }
.signup__form { display: flex; align-items: stretch; min-width: min(28.75rem, 100%); flex: 1; max-width: 34rem; }
.signup__input {
  flex: 1;
  min-height: 56px;
  padding: 0 1.375rem;
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-right: 0;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}
.signup__input::placeholder { color: #5a5a5a; }
.signup__input:focus { outline: none; border-color: var(--fg-quiet); }
.signup__submit { min-height: 56px; }

.footer { border-top: 1px solid var(--rule); padding-block: 3.5rem 2.5rem; }
.footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem; }
.footer__col { display: flex; flex-direction: column; gap: 0.75rem; }
.footer__col a { font-size: 0.875rem; color: var(--fg-dim); transition: color var(--fast) var(--ease); }
.footer__col a:hover { color: var(--fg); }
.footer__legal {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-top: 2.75rem;
}
.footer__legal span { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--fg-ghost); }

/* --------------------------------------------------------------------------
   13. PROTOCOL PAGE
   The detail view. Same devices as the homepage index — the numbered plate,
   hairlines, mono for anything numeric. The session reads as a timeline down
   a single rule, not as a table.
   -------------------------------------------------------------------------- */
.protocolpage { display: block; }
.protocolpage .label a { color: var(--fg); }

.protocolpage__head {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
  margin-block: 2rem 3rem;
}
.protocolpage__plate {
  font-size: var(--t-plate);
  line-height: 0.9;
  color: var(--fg-faint);
  letter-spacing: -0.02em;
}
.protocolpage__title-group { display: flex; flex-direction: column; gap: 1.125rem; }
.protocolpage__summary { max-width: 44rem; line-height: 1.75; color: var(--fg-dim); }

/* Specs — the four facets, as a run of hairline-separated cells. */
.specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}
.specs__item {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 1.5rem 1.75rem;
  border-right: 1px solid var(--rule);
}
.specs__item:first-child { padding-left: 0; }
.specs__item:last-child  { padding-right: 0; border-right: 0; }
.specs dd { margin: 0; font-size: 0.8125rem; color: #a0a0a0; }

/* The session. */
.session { margin-top: 4rem; }
.session__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.session__format { font-size: 0.75rem; color: var(--fg-quiet); letter-spacing: 0.12em; text-transform: uppercase; }

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule-strong);
}
.timeline__block {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 1.75rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--rule);
}
/* The rail the session runs down, and the tick where each block meets it. */
.timeline__block::before {
  content: '';
  position: absolute;
  left: 72px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--rule);
}
.timeline__block:first-child::before { top: 1.9rem; }
.timeline__block:last-child::before  { bottom: calc(100% - 1.9rem - 1px); }
.timeline__block::after {
  content: '';
  position: absolute;
  left: 64px;
  top: 1.9rem;
  width: 9px;
  height: 1px;
  background: var(--rule-bright);
}
.timeline__mark {
  font-size: 0.75rem;
  color: var(--fg-quiet);
  letter-spacing: 0.1em;
  line-height: 1.6;
}
.timeline__label { font-size: 1.0625rem; line-height: 1.6; }

.protocolpage__goal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: var(--t-small);
  line-height: 1.7;
  color: var(--fg-soft);
}

.protocolpage__foot {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding-top: 1.875rem;
  border-top: 1px solid var(--rule);
}
.protocolpage__foot .rule { flex: 1; }

/* --------------------------------------------------------------------------
   14. BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .philosophy { grid-template-columns: 1fr; gap: 2.5rem; }

  /* Four spec cells will not sit on one line much below this. */
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs__item:nth-child(2) { padding-right: 0; border-right: 0; }
  .specs__item:nth-child(3) { padding-left: 0; }
  .specs__item:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .philosophy__statement { max-width: none; }

  /* The protocol table collapses to stacked rows. */
  .protocols__head { display: none; }
  .protocol {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      'name num'
      'meta meta';
    gap: 0.5rem 1rem;
  }
  .protocol__name { grid-area: name; }
  .protocol__num  { grid-area: num; }
  .protocol__meta-group { grid-area: meta; display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .protocol__meta-group .protocol__meta::after { content: ' ·'; color: var(--fg-faint); }
  .protocol__meta-group .protocol__meta:last-child::after { content: ''; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }

  .protocolpage__head { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .nav__toggle { display: flex; }
  .index-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index-strip a:nth-child(2) { border-right: 0; }
  .index-strip a:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .tenets { grid-template-columns: 1fr; }
  .tenet { padding: 1.625rem 0; border-right: 0; border-bottom: 1px solid var(--rule); }
  .tenet:last-child { border-bottom: 0; }
  .products { grid-template-columns: 1fr; gap: 3rem; }
  /* The globe crowds the subject at narrow widths — shrink it, then drop it. */
  .hero__globe { width: 320px; height: 320px; right: -150px; top: 30px; stroke: rgba(255,255,255,0.09); }
  .filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.25rem; }
  .filters__divider { display: none; }
}

@media (max-width: 640px) {
  .hero__globe { display: none; }

  .specs { grid-template-columns: minmax(0, 1fr); }
  .specs__item { padding-inline: 0; border-right: 0; }
  .specs__item:not(:last-child) { border-bottom: 1px solid var(--rule); }

  /* Stacked blocks — the rail has nothing to run alongside. */
  .timeline__block { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
  .timeline__block::before,
  .timeline__block::after { display: none; }

  .protocolpage__foot { flex-wrap: wrap; }
  .hero__title { max-width: none; }
  .hero__actions .btn { flex: 1 1 100%; }
  .band__body { padding-block: 2.5rem; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .signup__form { min-width: 100%; }
}

/* --------------------------------------------------------------------------
   15. REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ticker__track { animation: none; }
  .product__img--hover { transition: none; }
}
