/* KALTERA marketing site
   Brand tokens follow the KALTERA one-page brand standards (Sept 2026).
   Corner system: controls 2px, cards 16px, media frames 20px, hero frame 28px. */

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost.woff2") format("woff2");
  font-weight: 300 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 300 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand palette */
  --vellum: #ede7dc;
  --brass-pale: #dccca8; /* estimated from the brand sheet swatch; confirm exact value */
  --brass: #a8865a;
  --brass-deep: #7a5f3a;
  --green: #142328; /* user-directed, Sept 2026 (was Officina Green #142019) */

  /* Text (user-directed, Sept 2026): every text colour on light fields is one of these two */
  --heading: #377381; /* headings, labels, accents in type, field errors */
  --text: #101112;    /* body copy, controls, data */

  /* Derived surfaces */
  --vellum-deep: #e6dfd1;
  --green-lift: #20353c;
  --green-deep: #0b1619;
  --ink: var(--text);
  --ink-muted: rgb(16 17 18 / 0.68); /* the body colour, stepped back */
  --rule: rgb(20 35 40 / 0.16);
  --rule-strong: rgb(20 35 40 / 0.32);

  /* Type */
  --f-display: "Jost", "Futura", "Century Gothic", sans-serif;
  --f-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Layout */
  --gutter: clamp(16px, 3.2vw, 48px);
  --max: 1440px;
  --section: clamp(96px, 11vw, 176px);
  --header-h: 80px;
  --utility-h: 36px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--brass) var(--vellum);
}

html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--vellum);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  caret-color: var(--heading);
  font-variant-numeric: tabular-nums;
  overflow-x: clip;
}

::selection {
  background: var(--brass-pale);
  color: var(--text);
}
.on-green ::selection {
  background: var(--brass);
  color: var(--text);
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}

p,
h1,
h2,
h3,
h4,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--brass-deep);
  outline-offset: 3px;
}
.on-green :focus-visible {
  outline-color: var(--brass-pale);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--green);
  color: var(--vellum);
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
}
.skip-link:focus {
  top: 16px;
}

[hidden] {
  display: none !important;
}

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

.xpad {
  padding-inline: var(--gutter);
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
}

/* ---------- Type roles (brand standards) ---------- */

.t-hero,
.t-h1,
.t-h2,
.t-h3 {
  font-family: var(--f-display);
  font-weight: 300;
  color: var(--heading);
  text-wrap: balance;
}
.t-hero {
  font-size: clamp(38px, 2.2vw + 22px, 52px);
  line-height: 1.08;
  letter-spacing: 0.01em;
}
.t-h1 {
  font-size: clamp(30px, 1.1vw + 22px, 40px);
  line-height: 1.16;
  letter-spacing: 0.01em;
}
.t-h2 {
  font-size: clamp(24px, 0.6vw + 20px, 30px);
  line-height: 1.24;
  letter-spacing: 0.02em;
}
.t-h3 {
  font-size: 21px;
  line-height: 1.34;
  letter-spacing: 0.02em;
}
.label {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--heading);
}
.t-lede {
  font-family: var(--f-body);
  font-weight: 300;
  font-size: clamp(17px, 0.25vw + 16px, 19px);
  line-height: 1.68;
  max-width: 34em;
  text-wrap: pretty;
}
.t-caption {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: 0.01em;
}
.t-data {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* Green field pairing: brass headings, vellum body */
.on-green {
  background: var(--green);
  color: var(--vellum);
}
.tone-green {
  color: var(--vellum);
}
.on-green .t-hero,
.on-green .t-h1,
.on-green .t-h2,
.on-green .t-h3,
.on-green .label,
.tone-green .t-hero,
.tone-green .t-h1,
.tone-green .t-h2,
.tone-green .t-h3,
.tone-green .label {
  color: var(--brass);
}

/* Brass Pale field pairing: green in all roles */
.on-pale .t-hero,
.on-pale .t-h1,
.on-pale .t-h2,
.on-pale .t-h3,
.on-pale .label {
  color: var(--text);
}

/* ---------- Icons ---------- */

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: currentColor;
}

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--green);
  --btn-fg: var(--vellum);
  --btn-bg-hover: var(--green-lift);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 0 18px 0 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 220ms var(--ease-out),
    color 220ms var(--ease-out),
    border-color 220ms var(--ease-out),
    transform 160ms var(--ease-out);
}
.btn > span {
  margin-right: -0.22em;
}
.btn .icon {
  width: 16px;
  height: 16px;
  transition: transform 320ms var(--ease-out);
}
.btn:hover {
  background: var(--btn-bg-hover);
}
.btn:hover .icon--arrow {
  transform: translateX(3px);
}
.btn:active {
  transform: scale(0.98);
}
.btn[disabled],
.btn[aria-disabled="true"] {
  cursor: progress;
  opacity: 0.72;
}

.btn--secondary {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bg-hover: rgb(20 35 40 / 0.06);
  border-color: var(--rule-strong);
}
.btn--secondary:hover {
  border-color: var(--green);
}

.on-green .btn,
.tone-green .btn {
  --btn-bg: var(--brass);
  --btn-fg: var(--text);
  --btn-bg-hover: var(--brass-pale);
}
.on-green .btn--secondary,
.tone-green .btn--secondary {
  --btn-bg: transparent;
  --btn-fg: var(--vellum);
  --btn-bg-hover: rgb(237 231 220 / 0.08);
  border-color: rgb(237 231 220 / 0.4);
}
.on-green .btn--secondary:hover,
.tone-green .btn--secondary:hover {
  border-color: var(--vellum);
}
.tone-green :focus-visible {
  outline-color: var(--brass-pale);
}

.btn .spin {
  display: none;
  animation: spin 900ms linear infinite;
}
.btn.is-loading .spin {
  display: block;
}
.btn.is-loading .icon--arrow {
  display: none;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
}
button.link-arrow {
  padding: 8px 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.35em;
}
.link-arrow .icon {
  width: 16px;
  height: 16px;
  transition: transform 320ms var(--ease-out);
}
.link-arrow:hover .icon {
  transform: translateX(3px);
}

/* ---------- Lockup ---------- */

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  color: inherit;
  text-decoration: none;
  font-size: 17px;
}
.lockup__mark {
  height: 2.1em;
  width: auto;
  flex: none;
}
.lockup__mark line {
  stroke: currentColor;
  stroke-width: 1.2222;
  stroke-linecap: butt;
}
.lockup__type {
  display: flex;
  flex-direction: column;
  gap: 0.55em;
}
.lockup__word {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 1em;
  line-height: 1;
  letter-spacing: 0.42em;
  margin-right: -0.42em;
  text-transform: uppercase;
}
.lockup__word .kern-lt {
  letter-spacing: 0.36em;
}
.lockup__desc {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 0.29em;
  line-height: 1;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--heading);
}
.on-green .lockup__desc {
  color: var(--heading);
}

/* ---------- Header ---------- */

.site-top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--text);
  transition:
    transform 420ms var(--ease-out),
    color 300ms var(--ease-out);
}
.site-top.is-hidden {
  transform: translateY(calc(-100% - 1px));
}

.utility {
  display: grid;
  grid-template-rows: 1fr;
  background: var(--brass-pale);
  color: var(--text);
  transition: grid-template-rows 360ms var(--ease-out);
}
.utility > div {
  overflow: hidden;
  min-height: 0;
}
.site-top.is-scrolled .utility {
  grid-template-rows: 0fr;
}
.utility__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--utility-h);
}
.utility__group {
  display: flex;
  align-items: center;
  gap: 14px;
}
.utility__group a {
  text-decoration: none;
}
.utility__group a:hover {
  text-decoration: underline;
}
.utility__group a[aria-current="page"] {
  text-decoration: underline;
}
.utility__sep {
  width: 1px;
  height: 12px;
  background: var(--rule-strong);
}

.nav {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--vellum);
  border-bottom: 1px solid var(--rule);
  opacity: 0;
  transition: opacity 300ms var(--ease-out);
}
.site-top.is-solid .nav::before {
  opacity: 1;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(24px, 2.6vw, 44px);
}
.nav__links a,
.nav__signin {
  position: relative;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  padding-block: 8px;
}
.nav__links a::after,
.nav__signin::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.22em;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 360ms var(--ease-out);
}
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after,
.nav__signin:hover::after {
  transform: scaleX(1);
}
.nav__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
}
.nav__menu {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  background: none;
  cursor: pointer;
}
.nav__menu .icon {
  width: 26px;
  height: 26px;
}

/* Dark tone: header over the green hero */
.site-top[data-tone="dark"] {
  color: var(--vellum);
}
.site-top[data-tone="dark"] .btn {
  --btn-bg: var(--brass);
  --btn-fg: var(--text);
  --btn-bg-hover: var(--brass-pale);
}
.site-top[data-tone="dark"] .lockup__desc {
  color: var(--brass);
}

@media (max-width: 979px) {
  .nav {
    grid-template-columns: 1fr auto;
    height: 64px;
  }
  .nav__primary,
  .nav__signin,
  .nav__actions .btn {
    display: none;
  }
  .nav__menu {
    display: inline-flex;
  }
  .utility__group--secondary {
    display: none;
  }
}
@media (max-width: 520px) {
  .utility__row .t-caption {
    font-size: 12px;
  }
}

/* Mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: var(--vellum);
  color: var(--text);
  padding: 0 var(--gutter) 32px;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 320ms var(--ease-out),
    visibility 0s linear 320ms;
}
.menu.is-open {
  visibility: visible;
  opacity: 1;
  transition:
    opacity 320ms var(--ease-out),
    visibility 0s;
}
.menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.menu__links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 40px;
}
.menu__links a {
  text-decoration: none;
  padding-block: 6px;
}
.menu__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.menu__foot .btn {
  width: 100%;
}
.menu__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--vellum);
}
.hero__runway {
  position: relative;
  height: 100svh;
  min-height: 640px;
}
.hero__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
}
.hero__frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--vellum);
  clip-path: inset(0px 0px 0px 0px round 0px);
}
.hero__media {
  position: absolute;
  inset: 0;
  transform-origin: 50% 40%;
}
.hero__light {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 70% at 78% 38%, rgb(168 134 90 / 0.2), transparent 70%),
    radial-gradient(40% 50% at 12% 100%, rgb(122 95 58 / 0.18), transparent 70%);
}
.hero__cipher-wrap {
  position: absolute;
  inset: 0;
  --cipher-o: 0.34;
}
/* Opacity sits on the whole mark so crossing strokes don't stack into brighter knots */
.hero__cipher {
  position: absolute;
  top: 50%;
  right: -9vw;
  height: 124%;
  width: auto;
  transform: translateY(-50%);
  opacity: var(--cipher-o);
}
.hero__cipher line {
  stroke: var(--brass);
  stroke-width: 1.2222;
  stroke-linecap: butt;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.motion-ok .hero__cipher line {
  animation: draw 1.8s var(--ease-in-out) both;
}
.motion-ok .hero__cipher line:nth-child(1) { animation-delay: 0.15s; }
.motion-ok .hero__cipher line:nth-child(2) { animation-delay: 0.3s; }
.motion-ok .hero__cipher line:nth-child(3) { animation-delay: 0.55s; }
.motion-ok .hero__cipher line:nth-child(4) { animation-delay: 0.7s; }
.motion-ok .hero__cipher line:nth-child(5) { animation-delay: 0.85s; }
.motion-ok .hero__cipher line:nth-child(6) { animation-delay: 1s; }
@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
/* The hologram (assets/js/hero-motion.js) replaces the cipher wherever WebGL runs; the cipher
   stays for no-JS and comes back if the hologram fails (.no-holo). A 3:4 box, right of the copy. */
.webgl .hero__cipher-wrap,
.has-holo .hero__cipher-wrap {
  display: none;
}
.no-holo .hero__cipher-wrap {
  display: block;
}
/* The hologram carries its own light, so it stays with the figure as it travels */
.has-holo .hero__light {
  display: none;
}
.hero__holo::before {
  content: "";
  position: absolute;
  inset: 4% -30% -6%;
  background:
    radial-gradient(closest-side at 50% 44%, rgb(177 215 218 / 0.5), rgb(177 215 218 / 0) 100%),
    radial-gradient(34% 7% at 50% 93%, rgb(59 122 129 / 0.12), rgb(59 122 129 / 0) 100%);
  pointer-events: none;
}
.hero__holo {
  /* ends above the proof row along the bottom of the hero */
  --holo-h: calc(max(100svh, 640px) - var(--utility-h) - var(--header-h) - 196px);
  position: absolute;
  top: calc(var(--utility-h) + var(--header-h) + 8px);
  /* centred, with its certificate, in the space between the copy (35em lede) and the right gutter */
  left: calc(50% + 222px - var(--holo-h) * 0.375);
  width: calc(var(--holo-h) * 0.75);
  height: var(--holo-h);
}
.hero__holo canvas {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}
/* The certificate the scan reviews, standing at the figure's feet. Shown only with the hologram;
   rows read Reviewed by default, and hero-hologram.js flips them from Pending on the first pass. */
.hero__coa {
  position: absolute;
  left: 54%;
  bottom: 9%;
  width: clamp(200px, 15vw, 232px);
  padding: 16px 18px 4px;
  border: 1px solid var(--rule-strong);
  border-radius: 16px;
  background: rgb(237 231 220 / 0.84);
  color: var(--text);
  font-family: var(--f-mono);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.hero__media:not(.has-holo) .hero__coa {
  display: none;
}
.hero__coa .label {
  letter-spacing: 0.28em;
}
.hero__coa-lot {
  margin-top: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-muted);
}
.hero__coa-rows li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--rule);
}
.hero__coa-rows li:first-child {
  border-top: 0;
}
.hero__coa-result {
  display: grid;
  justify-items: end;
}
.hero__coa-pending,
.hero__coa-pass {
  grid-area: 1 / 1;
  transition: opacity 320ms var(--ease-out);
}
.hero__coa-pass {
  color: var(--heading);
}
.hero__coa-pending {
  color: var(--ink-muted);
  opacity: 0;
}
.is-checking li:not(.is-done) .hero__coa-pending {
  opacity: 1;
}
.is-checking li:not(.is-done) .hero__coa-pass {
  opacity: 0;
}
.motion-ok .hero__coa {
  animation: rise 1.1s var(--ease-out) 0.5s both;
}
/* A supplied hero image or video uses .hero__asset and replaces the stand-in */
.hero__asset {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(237 231 220 / 0.9) 0%, rgb(237 231 220 / 0.62) 36%, rgb(237 231 220 / 0) 50%);
  pointer-events: none;
}
.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--utility-h) + var(--header-h));
  padding-bottom: 36px;
}
.hero__copy {
  max-width: 800px;
  margin-block: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero__copy .t-hero {
  max-width: 15em;
}
.hero__copy .t-lede {
  max-width: 35em;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}
.motion-ok .hero__copy > * {
  animation: rise 1.1s var(--ease-out) both;
}
.motion-ok .hero__copy > :nth-child(1) { animation-delay: 0.1s; }
.motion-ok .hero__copy > :nth-child(2) { animation-delay: 0.2s; }
.motion-ok .hero__copy > :nth-child(3) { animation-delay: 0.32s; }
.motion-ok .hero__copy > :nth-child(4) { animation-delay: 0.44s; }
.motion-ok .hero__content > .proof__list {
  animation: rise 1.1s var(--ease-out) 0.56s both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 980px) {
  .motion-ok .hero__runway {
    height: 185vh;
  }
}
/* Short desktop screens: tighten the copy so the proof row still fits the first viewport */
@media (min-width: 980px) and (max-height: 820px) {
  .hero__copy {
    gap: 16px;
  }
  .hero__holo {
    --holo-h: calc(max(100svh, 640px) - var(--utility-h) - var(--header-h) - 168px);
  }
  .proof__list {
    padding-top: 20px;
  }
  .proof__item {
    gap: 8px;
  }
}
/* Below 980px the hero is not pinned: the hologram stands at the top and the copy flows beneath it,
   so the hero grows with its content instead of clipping it */
@media (max-width: 979px) {
  .hero {
    --holo-m: clamp(280px, 50svh, 460px);
  }
  .hero__runway,
  .hero__sticky {
    height: auto;
    min-height: 600px;
  }
  .hero__content {
    position: relative;
    min-height: max(100svh, 600px);
    padding-top: calc(var(--utility-h) + 64px + 24px);
    padding-bottom: 40px;
  }
  .has-holo ~ .hero__veil {
    background: none;
  }
  .hero__veil {
    background: linear-gradient(0deg, rgb(237 231 220 / 0.94) 0%, rgb(237 231 220 / 0.7) 55%, rgb(237 231 220 / 0.2) 100%);
  }
  .hero__cipher {
    right: -30vw;
    top: 36%;
    height: 90%;
  }
  .hero__holo {
    --holo-h: var(--holo-m);
    top: calc(var(--utility-h) + 64px + 4px);
    left: calc(50% - var(--holo-h) * 0.375);
  }
  .hero:has(.has-holo) .hero__content {
    padding-top: calc(var(--utility-h) + 64px + 4px + var(--holo-m));
  }
  .hero__copy {
    margin-block: auto 0;
    gap: 18px;
  }
}
/* Phones: the figure steps left so the certificate fits beside it */
@media (max-width: 560px) {
  .hero__holo {
    left: calc(34% - var(--holo-h) * 0.375);
  }
  .hero__coa {
    left: 62%;
    bottom: 8%;
    width: 170px;
    padding: 12px 12px 2px;
    font-size: 12px;
  }
  .hero__coa .label {
    letter-spacing: 0.22em;
  }
  .hero__coa-rows li {
    gap: 8px;
    padding: 7px 0;
  }
}
@media (max-width: 520px) {
  .hero__actions .btn {
    flex: 1 1 100%;
  }
}

/* ---------- Proof readout (along the bottom of the hero, the header's full width) ---------- */

.proof__list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.proof__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 clamp(16px, 1.9vw, 28px);
  border-left: 1px solid var(--rule);
}
.proof__item:first-child {
  border-left: 0;
  padding-left: 0;
}
.proof__item:last-child {
  padding-right: 0;
}
.proof__item .icon {
  width: 26px;
  height: 26px;
  color: var(--brass);
}
.proof__item .t-data {
  color: var(--text);
}
/* Narrow desktops: pull the certificate in so it clears the gutter */
@media (min-width: 980px) and (max-width: 1199px) {
  .hero__holo {
    left: calc(76% - var(--holo-h) * 0.375);
  }
  .hero__coa {
    left: 44%;
  }
}
/* Desktop: as wide as the copy block above it (the lede's 35em measure), same left edge */
@media (min-width: 980px) {
  .proof__list {
    grid-template-columns: 1.25fr 1fr 1fr;
    max-width: calc(35 * clamp(17px, 0.25vw + 16px, 19px));
  }
  .proof__item {
    padding-inline: 20px;
  }
  .proof__item .t-h3 {
    font-size: 19px;
    white-space: nowrap;
  }
}
/* Phones: one claim per row, icon beside its claim and data line */
@media (max-width: 767px) {
  .proof__list {
    grid-template-columns: 1fr;
    margin-top: 20px;
    padding-top: 0;
    border-top: 0;
  }
  .proof__item,
  .proof__item:first-child,
  .proof__item:last-child {
    display: grid;
    grid-template-columns: 26px 1fr;
    column-gap: 16px;
    row-gap: 4px;
    padding: 16px 0;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
  .proof__item .icon {
    grid-row: span 2;
    margin-top: 2px;
  }
  .proof__item .t-h3 {
    font-size: 19px;
  }
}

/* ---------- Category marquee ---------- */

.categories {
  border-block: 1px solid var(--rule);
  padding-block: clamp(16px, 1.8vw, 24px);
}
.marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  flex: none;
  gap: clamp(20px, 2.4vw, 40px);
  padding-right: clamp(20px, 2.4vw, 40px);
}
.motion-ok .marquee__track {
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track {
  animation-play-state: paused;
}
@keyframes marquee {
  to {
    transform: translateX(-100%);
  }
}
.marquee__item {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 40px);
  white-space: nowrap;
}
/* Title size, not display: the categories are a list, not a headline */
.marquee__item .t-hero {
  font-size: clamp(22px, 0.8vw + 16px, 28px);
  line-height: 1.2;
  color: var(--text);
}
.marquee__mark {
  height: 0.9em;
  width: auto;
  font-size: clamp(22px, 0.8vw + 16px, 28px);
}
.marquee__mark line {
  stroke: var(--brass);
  stroke-width: 1.2222;
}
html:not(.motion-ok) .marquee {
  -webkit-mask-image: none;
  mask-image: none;
}
html:not(.motion-ok) .marquee__track {
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px clamp(24px, 3vw, 48px);
  flex: 1;
  padding-inline: var(--gutter);
}
html:not(.motion-ok) .marquee__mark {
  display: none;
}
html:not(.motion-ok) .marquee__item .t-hero {
  font-size: clamp(20px, 0.6vw + 16px, 26px);
}
html:not(.motion-ok) .marquee__track[aria-hidden="true"] {
  display: none;
}

/* ---------- How it works ---------- */

.how {
  padding-top: var(--section);
}
/* Split intro on the stage's 12-column grid: label and heading left, the lede from the steps column,
   sitting on the heading's last line */
/* Intro and stage share one centred measure so they line up on wide screens */
.how__intro,
.how__grid {
  max-width: calc(1280px + 2 * var(--gutter));
  margin-inline: auto;
}
.how__intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 24px;
  align-items: end;
}
.how__head {
  grid-column: 1 / span 6;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.how__intro .t-h1 {
  max-width: 13em;
  font-size: clamp(38px, 2.4vw + 18px, 60px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--text);
}
.how__intro .t-lede {
  grid-column: 8 / span 5;
  max-width: 30em;
  font-size: clamp(19px, 0.55vw + 15.5px, 24px);
  line-height: 1.6;
  color: var(--ink-muted);
}
@media (max-width: 979px) {
  .how__head,
  .how__intro .t-lede {
    grid-column: 1 / -1;
  }
}

.how__stage {
  position: relative;
  margin-top: clamp(56px, 6vw, 96px);
}
.how__sticky {
  position: relative;
}
.how__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  align-items: center;
}
.how__media {
  grid-column: 1 / span 6;
  position: relative;
  aspect-ratio: 3 / 2;
}
.how__clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--vellum-deep);
}
.how__clip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 30% 50%;
}
.how__steps {
  grid-column: 8 / span 5;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
/* Step cards: letter, title, one line of detail. Static state: every card complete */
.how__cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.how__card {
  position: relative;
  padding: 26px 28px 24px;
  border: 1px solid var(--rule-strong);
  border-radius: 16px;
  transition:
    background-color 520ms var(--ease-out),
    border-color 520ms var(--ease-out);
}
.how__card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: opacity 520ms var(--ease-out), transform 720ms var(--ease-out);
}
.how__title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(21px, 0.5vw + 16px, 24px);
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--text);
  text-wrap: balance;
}
.how__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-muted);
}
/* Progress along the card's top edge, inside the corner radius */
.how__bar {
  position: absolute;
  top: -1px;
  left: 16px;
  right: 16px;
  height: 2px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 320ms var(--ease-out);
}
.how__bar span {
  position: absolute;
  inset: 0;
  background: var(--heading);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}

/* Pinned behaviour: desktop with motion allowed */
@media (min-width: 980px) {
  .motion-ok .how__stage {
    height: calc(var(--runway, 3.2) * 100vh);
    margin-top: 0;
  }
  .motion-ok .how__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-h) - 16px);
  }
  .motion-ok .how__grid {
    width: 100%;
  }
  .motion-ok .how__media {
    aspect-ratio: auto;
    height: min(56vh, 34vw);
  }
  /* site.js sets data-state as the pinned scroll moves through each third */
  .is-stepping .how__card[data-state="next"] .how__card-body {
    opacity: 0.4;
    transform: translateX(6px);
  }
  .is-stepping .how__card[data-state="active"] {
    background: var(--vellum-deep);
    border-color: rgb(55 115 129 / 0.5);
  }
  .is-stepping .how__card[data-state="active"] .how__bar,
  .is-stepping .how__card[data-state="done"] .how__bar {
    opacity: 1;
  }
  .is-stepping .how__card[data-state="done"] .how__card-body {
    opacity: 0.72;
  }
}
@media (min-width: 980px) and (max-height: 820px) {
  .how__card {
    padding: 18px 24px 16px;
  }
  .how__cards {
    gap: 10px;
  }
}
/* Stacked behaviour: mobile and tablet */
@media (max-width: 979px) {
  .how__grid {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }
  .how__media,
  .how__steps {
    grid-column: 1 / -1;
  }
}
/* Tablets: the three cards side by side under the photo */
@media (min-width: 700px) and (max-width: 979px) {
  .how__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
/* ---------- Partners (what partners get) ---------- */

/* On its own cyan field (#87CCD0, user-directed): centred heading, a ruled two-column list below */
.partners {
  padding-block: var(--section);
  background: var(--vellum-deep); /* #E6DFD1, user-directed */
}
.partners .label {
  color: var(--text);
}
.partners__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 40px;
}
.partners__head {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.partners__head .t-h1 {
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.08;
  color: var(--text);
}
.partners__head .t-lede {
  color: var(--text);
  max-width: 20em;
}
.partners__list {
  --gap: clamp(24px, 3vw, 48px);
  grid-column: 1 / -1;
  justify-self: center;
  width: 100%;
  max-width: 1040px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--gap);
  border-bottom: 1px solid rgb(16 17 18 / 0.28);
}
/* An odd item out sits alone, centred at one column's width: its rule closes it from below, and the
   pair above it gets its own closing rules instead of the list's */
.partners__list:has(> .partner:last-child:nth-child(odd)) {
  border-bottom: 0;
}
.partner:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc((100% - var(--gap)) / 2);
}
.partner:last-child:nth-child(odd) .partner__rule {
  inset: auto 0 0;
}
.partners__list:has(> .partner:last-child:nth-child(odd)) .partner:nth-last-child(2)::after,
.partners__list:has(> .partner:last-child:nth-child(odd)) .partner:nth-last-child(3)::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgb(16 17 18 / 0.28);
}
.partner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
}
.partner__rule {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: rgb(16 17 18 / 0.28);
  transform-origin: left;
}
.partner__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #b1d7da; /* hologram cyan, user-directed */
  color: var(--text);
}
.partner__icon .icon {
  width: 28px;
  height: 28px;
}
.partner__name {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.3;
  color: var(--text);
}
@media (max-width: 639px) {
  .partners__list,
  .partners__list:has(> .partner:last-child:nth-child(odd)) {
    grid-template-columns: 1fr;
    border-bottom: 1px solid rgb(16 17 18 / 0.28);
  }
  .partner:last-child:nth-child(odd) {
    width: auto;
    justify-self: stretch;
  }
  .partner:last-child:nth-child(odd) .partner__rule {
    inset: 0 0 auto;
  }
  .partners__list:has(> .partner:last-child:nth-child(odd)) .partner:nth-last-child(2)::after,
  .partners__list:has(> .partner:last-child:nth-child(odd)) .partner:nth-last-child(3)::after {
    content: none;
  }
  .partner {
    padding: 18px 0;
  }
}
/* ---------- Problem ---------- */

.problem {
  padding-block: var(--section);
  background: var(--vellum); /* user-directed, Sept 2026: light, with the two text colours */
}
/* Centred: the statement, then its four answers beneath it */
.problem__statement {
  max-width: 22em;
  margin-inline: auto;
  text-align: center;
}
.pillars__lead {
  text-align: center;
}
.problem__statement .w {
  display: inline;
}
/* The statement's answer: a label, then four commitments, each a rule, a title and one line */
.pillars__lead {
  margin-top: clamp(40px, 4vw, 64px);
}
.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
  margin-top: 28px;
}
.pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
/* Each pillar echoes one question from the statement above it */
.pillar__q {
  margin-top: 8px;
  color: var(--heading);
}
.pillar .t-h2 {
  margin: 0;
  font-weight: 400;
  color: var(--text);
}
.pillar__text {
  max-width: 22em;
  margin-top: 2px;
  margin-inline: auto;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
}
/* Pillars: teal rules and titles, body in Text */
.pillar__rule {
  height: 1px;
  background: var(--heading);
  transform-origin: center;
  align-self: stretch;
}

@media (max-width: 979px) {
  .pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 44px;
  }
}
@media (max-width: 559px) {
  .pillars {
    grid-template-columns: 1fr;
    row-gap: 36px;
  }
}

/* ---------- Standards teaser ---------- */

.standards {
  padding-block: var(--section);
  background: var(--vellum-deep);
}
.standards__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  align-items: center;
}
.standards__figure {
  grid-column: 1 / span 4;
  position: relative;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent), linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent), linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
  mask-composite: intersect;
}
.doc {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
}
/* Zoom layer: scales about the centre of the sheet in the photo */
.doc__zoom {
  position: absolute;
  inset: 0;
  transform-origin: 49.3% 56.1%;
}
.doc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Faint print laid onto the sheet in the photo; illegible by design */
.doc__print {
  position: absolute;
  left: 16.9%;
  top: 25.9%;
  width: 64.8%;
  height: 60.4%;
  container-type: inline-size;
  color: #2f2e2a;
  mix-blend-mode: multiply;
  opacity: 0.46;
  filter: blur(1.9px);
  pointer-events: none;
}
.doc__sheet {
  height: 100%;
  padding: 20cqi 12cqi 12cqi;
  display: flex;
  flex-direction: column;
  gap: 5cqi;
  font-family: var(--f-mono);
  font-size: 2.4cqi;
  line-height: 1.45;
  letter-spacing: 0.02em;
}
.doc__head {
  display: flex;
  align-items: center;
  gap: 4cqi;
}
.doc__head svg {
  height: 11cqi;
  width: auto;
}
.doc__head svg line,
.doc__seal svg line {
  stroke: currentColor;
  stroke-width: 1.2222;
}
.doc__head div {
  display: flex;
  flex-direction: column;
  gap: 0.6cqi;
  text-transform: uppercase;
  letter-spacing: 0.24em;
}
.doc__title {
  font-family: var(--f-display);
  font-size: 4.2cqi;
  letter-spacing: 0.42em;
}
.doc__rule {
  height: 0.4cqi;
  background: currentColor;
}
.doc__rows {
  display: grid;
  grid-template-columns: 36% 1fr;
  gap: 1.4cqi 4cqi;
  margin: 0;
}
.doc__rows dt {
  opacity: 0.6;
}
.doc__rows dd {
  margin: 0;
}
.doc__table {
  display: flex;
  flex-direction: column;
  gap: 1.6cqi;
  padding-top: 2.4cqi;
  border-top: 0.3cqi solid currentColor;
}
.doc__tr {
  display: grid;
  grid-template-columns: 1fr 1fr 22cqi;
  column-gap: 4cqi;
}
.doc__th span {
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.doc__result {
  display: grid;
}
.doc__result > span {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  gap: 0.8cqi;
  transition:
    opacity 300ms var(--ease-out),
    transform 520ms var(--ease-out);
}
.doc__pending {
  opacity: 0;
}
.doc__pass .icon {
  width: 2.8cqi;
  height: 2.8cqi;
  color: var(--heading);
}
.doc__foot {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.doc__sign {
  width: 42%;
  display: flex;
  flex-direction: column;
  gap: 1.4cqi;
}
.doc__line {
  height: 0.3cqi;
  background: currentColor;
}
.doc__seal {
  display: grid;
  place-items: center;
  width: 19cqi;
  height: 19cqi;
  border-radius: 50%;
  border: 0.5cqi solid var(--brass-deep);
  outline: 0.3cqi solid var(--brass-deep);
  outline-offset: 1.2cqi;
  color: var(--heading);
}
.doc__seal svg {
  height: 9cqi;
  width: auto;
}
.standards__copy {
  grid-column: 6 / span 7;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
/* The copy carries the section: larger regular-weight questions, full-strength lede and checklist */
.standards__copy .t-h1 {
  font-size: clamp(32px, 1.6vw + 20px, 50px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.005em;
}
.standards__copy .t-h1 span {
  display: block;
}
.standards__copy .t-lede {
  max-width: 36em;
  font-size: clamp(18px, 0.4vw + 15.5px, 21px);
  color: var(--text);
}
.standards__copy .coa-step .t-h3 {
  font-weight: 400;
  font-size: clamp(20px, 0.4vw + 17px, 23px);
  color: var(--text);
}
.standards__copy .t-h1 span + span {
  margin-top: 0.4em;
  color: var(--text);
}
.standards__copy .btn {
  align-self: flex-start;
  margin-top: 8px;
}

/* What the certificate answers: a checklist. The static state shows every step verified. */
.coa-steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.coa-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
}
.coa-step__mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  border-radius: 2px;
  background: var(--green);
  color: var(--vellum);
  transition:
    background-color 420ms var(--ease-out),
    color 420ms var(--ease-out),
    box-shadow 420ms var(--ease-out);
}
.coa-step__mark .icon {
  width: 16px;
  height: 16px;
}
.coa-step__text {
  margin-top: 4px;
  max-width: 34em;
  font-size: 16px;
  color: var(--text);
}

/* Staged: desktop, tall enough, motion allowed, GSAP running (site.js adds .is-staged).
   The section pins; the certificate focuses and zooms in, then is verified step by step. */
.standards.is-staged {
  padding-block: 0;
}
.standards.is-staged .standards__stage {
  height: 400vh;
}
.standards.is-staged .standards__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) - 24px);
}
.standards.is-staged .standards__grid {
  width: 100%;
}
.standards.is-staged .doc {
  height: min(66vh, 640px);
  margin-inline: auto;
}
/* While pinned, the copy has to fit one screen, button included: sizes and gaps also scale with height */
.standards.is-staged .standards__copy {
  gap: min(22px, 2.2vh);
}
.standards.is-staged .standards__copy .t-h1 {
  font-size: min(clamp(32px, 1.6vw + 20px, 50px), 4.4vh);
}
.standards.is-staged .standards__copy .t-lede {
  font-size: min(clamp(18px, 0.4vw + 15.5px, 21px), 2.3vh);
  line-height: 1.55;
}
.standards.is-staged .coa-steps {
  gap: min(18px, 1.6vh);
}
.standards.is-staged .coa-step .t-h3 {
  font-size: min(clamp(20px, 0.4vw + 17px, 23px), 2.6vh);
}
.standards.is-staged .coa-step__text {
  font-size: 15px;
  line-height: 1.5;
}
.standards.is-staged .standards__copy .btn {
  margin-top: 0;
}
.standards.is-staged .coa-step {
  opacity: 0.45;
  transition: opacity 520ms var(--ease-out);
}
.standards.is-staged .coa-step.is-done {
  opacity: 0.72;
}
.standards.is-staged .coa-step.is-active {
  opacity: 1;
}
.standards.is-staged .coa-step:not(.is-done):not(.is-active) .coa-step__mark {
  background: transparent;
  color: transparent;
  box-shadow: inset 0 0 0 1px var(--rule-strong);
}
/* The sheet: the active part gets a highlighter sweep, the others recede */
.standards.is-staged .doc__part {
  position: relative;
  opacity: 0.42;
  transition: opacity 520ms var(--ease-out);
}
.standards.is-staged .doc__part.is-passed {
  opacity: 0.78;
}
.standards.is-staged .doc__part.is-lit {
  opacity: 1;
}
.standards.is-staged .doc__part::before {
  content: "";
  position: absolute;
  inset: -1cqi -2.4cqi;
  z-index: -1;
  background: rgb(220 204 168 / 0.62);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 760ms var(--ease-out);
}
.standards.is-staged .doc__part.is-lit::before {
  transform: none;
}
/* Results stamp from Pending to Conforms as their step is verified */
.standards.is-staged .doc__pending {
  opacity: 0.55;
}
.standards.is-staged .doc__pass {
  opacity: 0;
  transform: scale(1.5);
}
.standards.is-staged .is-passed .doc__pending {
  opacity: 0;
}
.standards.is-staged .is-passed .doc__pass {
  opacity: 1;
  transform: none;
}
/* Sign-off: the signature rule draws, then the seal stamps and its cipher draws */
.standards.is-staged .doc__line {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 900ms var(--ease-in-out);
}
.standards.is-staged .doc__seal {
  opacity: 0;
  transform: scale(1.3);
  transition:
    opacity 420ms var(--ease-out) 300ms,
    transform 620ms var(--ease-out) 300ms;
}
.standards.is-staged .doc__seal line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 900ms var(--ease-in-out) 600ms;
}
.standards.is-staged .doc.is-sealed .doc__line,
.standards.is-staged .doc.is-sealed .doc__seal {
  opacity: 1;
  transform: none;
}
.standards.is-staged .doc.is-sealed .doc__seal line {
  stroke-dashoffset: 0;
}
@media (max-width: 979px) {
  .standards__grid {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }
  .standards__figure,
  .standards__copy {
    grid-column: 1 / -1;
  }
  .standards__figure {
    max-width: 440px;
    width: 100%;
    margin-inline: auto;
  }
}

/* ---------- Fit ---------- */

.fit {
  padding-block: var(--section);
}
.fit__title {
  text-align: center;
  max-width: 16em;
  margin-inline: auto;
}
.fit__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
  max-width: 1120px;
  margin: clamp(48px, 5vw, 80px) auto 0;
}
.fit__panel {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: clamp(28px, 3.4vw, 52px);
  border-radius: 16px;
}
.fit__panel--yes {
  background: #ede7dc; /* user-directed; the teal hairline keeps it a panel on the Vellum field */
  border: 1px solid rgb(55 115 129 / 0.5);
}
.fit__panel--yes .icon {
  color: var(--heading);
}
.fit__panel--no {
  border: 1px solid var(--rule-strong);
}
.fit__list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.fit__list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.fit__list .icon {
  width: 18px;
  height: 18px;
  transform: translateY(2px);
}
.fit__panel--yes .t-h3,
.fit__panel--yes .label {
  color: var(--text);
}
.fit__panel--no .t-h3 {
  color: var(--ink-muted);
}
.fit__panel--no .icon {
  color: var(--ink-muted);
}
.fit__patient {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: clamp(40px, 4vw, 64px);
  text-align: center;
}
.fit__patient .t-h3 {
  color: var(--text);
}
@media (max-width: 767px) {
  .fit__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Close (final CTA) ---------- */

body:has(.close) .footer__panel {
  padding-top: 0;
}
body:has(.close) .footer__top {
  padding-top: clamp(48px, 5vw, 80px);
  border-top: 1px solid var(--rule);
}
.close {
  padding-block: calc(var(--section) * 1.1) clamp(64px, 7vw, 104px);
  background: var(--vellum-deep); /* light, user-directed Sept 2026 */
}
.close__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}
.close__title .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.close__title .w > span {
  display: inline-block;
}
.close .t-lede {
  color: var(--text);
}
.close .intake {
  width: 100%;
  max-width: 1180px;
  margin-top: clamp(28px, 3vw, 44px);
  text-align: left;
}

/* ---------- Forms ---------- */

.intake {
  display: grid;
  gap: 20px;
}
.intake__row {
  display: grid;
  gap: 16px;
}
.intake--inline .intake__row {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: start;
}
.intake--inline .intake__submit {
  padding-top: 27px;
}
@media (max-width: 1199px) {
  .intake--inline .intake__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .intake--inline .intake__submit {
    grid-column: 1 / -1;
    padding-top: 4px;
  }
}
@media (max-width: 639px) {
  .intake--inline .intake__row {
    grid-template-columns: 1fr;
  }
  .intake--inline .intake__submit .btn {
    width: 100%;
  }
}

.intake__row--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
@media (max-width: 639px) {
  .intake__row--2 {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
fieldset.field {
  border: 0;
  padding: 0;
  margin: 0;
}
fieldset.field legend {
  padding: 0;
  margin-bottom: 10px;
}
.note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  margin-bottom: 24px;
  border-radius: 2px;
  background: var(--brass-pale);
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}
.note .icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}
.panel [data-view-heading]:focus {
  outline: none;
}
.panel .t-h1,
.panel .t-h2 {
  color: var(--text);
}
.panel .intake {
  margin-top: 28px;
}
.panel__divider {
  height: 1px;
  margin-block: 36px 28px;
  background: var(--rule);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}
.field__label {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.field__label .opt {
  opacity: 0.72;
}
.field__control {
  position: relative;
}
.field input,
.field select {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  background: rgb(255 255 255 / 0.35);
  color: var(--text);
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 16px;
  transition:
    border-color 200ms var(--ease-out),
    background-color 200ms var(--ease-out);
  appearance: none;
  -webkit-appearance: none;
}
.field select {
  padding-right: 44px;
  cursor: pointer;
}
.field__control .icon--caret {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  pointer-events: none;
}
.field input:hover,
.field select:hover {
  border-color: var(--green);
}
.field input:focus-visible,
.field select:focus-visible {
  outline: 2px solid var(--brass-deep);
  outline-offset: 1px;
  border-color: var(--green);
}
.field input.is-mono {
  font-family: var(--f-mono);
  letter-spacing: 0.04em;
}
.field__hint {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-muted);
}
.field__error {
  display: none;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.45;
  color: var(--heading);
}
.field__error .icon {
  width: 16px;
  height: 16px;
  margin-top: 1px;
}
.field.is-invalid .field__error {
  display: flex;
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid .choices {
  border-color: var(--heading);
  box-shadow: inset 0 0 0 1px var(--heading);
}

.on-green .field__label {
  color: var(--vellum);
}
.on-green .field input,
.on-green .field select {
  border-color: var(--brass);
  background: rgb(237 231 220 / 0.06);
  color: var(--vellum);
}
.on-green .field select option {
  color: var(--text);
  background: var(--vellum);
}
.on-green .field input:hover,
.on-green .field select:hover {
  border-color: var(--brass-pale);
}
.on-green .field input:focus-visible,
.on-green .field select:focus-visible {
  outline-color: var(--brass-pale);
  border-color: var(--brass-pale);
}
.on-green .field__error {
  color: var(--brass-pale);
}
.on-green .field.is-invalid input,
.on-green .field.is-invalid select {
  border-color: var(--brass-pale);
  box-shadow: inset 0 0 0 1px var(--brass-pale);
}

/* Checkbox chips (categories) and consent */
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: 2px;
}
.chip {
  position: relative;
}
.chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition:
    background-color 200ms var(--ease-out),
    border-color 200ms var(--ease-out);
}
.chip span .icon {
  width: 14px;
  height: 14px;
  display: none;
}
.chip input:checked + span {
  background: var(--green);
  border-color: var(--green);
  color: var(--vellum);
}
.chip input:checked + span .icon {
  display: block;
}
.chip input:focus-visible + span {
  outline: 2px solid var(--brass-deep);
  outline-offset: 2px;
}
.chip span:hover {
  border-color: var(--green);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
}
.consent a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
/* Undo the text-input styling (.field input) so the box stays a real, visibly checkable checkbox */
.consent input {
  appearance: auto;
  padding: 0;
  border: 0;
  background: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--green);
  flex: none;
}

.form-status {
  display: none;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--brass-deep);
  border-radius: 2px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}
.form-status.is-visible {
  display: flex;
}
.form-status .icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}
.on-green .form-status {
  border-color: var(--brass-pale);
}

/* ---------- Footer ---------- */

.footer {
  background: var(--vellum);
  color: var(--text);
}
.footer__panel {
  padding-block: clamp(64px, 7vw, 112px) clamp(64px, 7vw, 104px);
  border-radius: 0 0 28px 28px;
  background: var(--vellum-deep);
}
.footer__col .label {
  color: var(--heading);
}
.footer__lead .t-h2 {
  color: var(--heading);
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr));
  gap: 40px 24px;
}
.footer__lead .t-h2 {
  max-width: 11em;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__col a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 300;
}
.footer__col a:hover {
  text-decoration: underline;
}
.footer__base {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 32px;
  padding-block: 44px;
}
.footer__base .lockup {
  font-size: clamp(32px, 2.6vw + 6px, 40px);
}
.footer__base .lockup__desc {
  color: var(--heading);
}
.footer__legal {
  color: var(--ink-muted);
}
.footer__contact {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 22px 10px 10px;
  border-radius: 16px;
  background: var(--vellum-deep);
  text-decoration: none;
  transition: background-color 240ms var(--ease-out);
}
.footer__contact:hover {
  background: rgb(20 35 40 / 0.08);
}
.footer__contact-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #b1d7da;
  color: var(--text);
}
.footer__contact-icon .icon {
  width: 22px;
  height: 22px;
}
.footer__contact strong {
  display: block;
  font-weight: 400;
  font-size: 15px;
}
.footer__contact-mail {
  font-size: 14px;
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
@media (max-width: 1099px) {
  .footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer__lead {
    grid-column: 1 / -1;
  }
  .footer__base {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 24px;
  }
}

/* ---------- Inner pages ---------- */

.page {
  padding-top: calc(var(--utility-h) + var(--header-h) + clamp(48px, 6vw, 96px));
  padding-bottom: var(--section);
}
.page__intro {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 760px;
}
.page__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 48px;
  align-items: start;
}
.page__aside {
  grid-column: 1 / span 5;
  position: sticky;
  top: calc(var(--header-h) + 32px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.page__main {
  grid-column: 7 / span 6;
}

/* Privacy notice: long-form policy text */
.policy {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 760px;
}
.policy section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.policy ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding-left: 1.2em;
}
.policy strong,
.policy b {
  font-weight: 600;
}
.policy a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
/* Items still to be confirmed by the client, marked on the draft */
.tbc {
  padding: 0 4px;
  border-radius: 2px;
  background: var(--brass-pale);
  color: var(--text);
}

/* About: an illustrative peptide assembling and folding (assets/js/peptide-chain.js) */
.peptide-demo {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px 0 0;
}
.peptide-demo canvas {
  display: block;
  width: 100%;
  height: clamp(220px, 22vw, 320px);
}
.peptide-demo figcaption {
  color: var(--ink-muted);
  max-width: 34em;
}
html:not(.js) .peptide-demo {
  display: none;
}
@media (max-width: 979px) {
  .page {
    padding-top: calc(var(--utility-h) + 64px + 40px);
  }
  .page__aside,
  .page__main {
    grid-column: 1 / -1;
    position: static;
  }
}

.panel {
  padding: clamp(24px, 3.2vw, 48px);
  border-radius: 16px;
  background: var(--vellum-deep);
}
.panel .intake {
  gap: 22px;
}
.panel__title {
  margin-bottom: 8px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
  border-top: 1px solid var(--rule);
}
.steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: center;
  padding-block: 14px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-muted);
}
.steps li .icon {
  width: 18px;
  height: 18px;
}
.steps li[aria-current="step"] {
  color: var(--text);
}
.steps li.is-done {
  color: var(--text);
}
.steps li.is-done .icon {
  color: var(--heading);
}

.confirm {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.confirm__mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: var(--brass-pale);
}
.confirm__mark .icon {
  width: 26px;
  height: 26px;
}

.gate {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 40px;
  margin-top: clamp(48px, 5vw, 80px);
}
.gate__list {
  grid-column: 1 / span 7;
  display: flex;
  flex-direction: column;
}
.gate__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
  border-top: 1px solid var(--rule);
}
.gate__item:last-child {
  border-bottom: 1px solid var(--rule);
}
.gate__item .t-h2 {
  color: var(--text);
}
.gate__item .icon {
  width: 20px;
  height: 20px;
  color: var(--heading);
}
.gate__card {
  grid-column: 9 / span 4;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-self: start;
}
.gate__card .btn {
  align-self: flex-start;
}
@media (max-width: 979px) {
  .gate__list,
  .gate__card {
    grid-column: 1 / -1;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

