/* ==========================================================================
   RINOVARA — Landing page styles
   Swiss typography · bento grids · scroll-driven motion
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
picture { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
input, textarea { -webkit-appearance: none; appearance: none; }
a, button, summary, label { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
}
h3 { font-size: var(--fs-h3); line-height: 1.1; letter-spacing: -0.02em; }

::selection { background: var(--mint); color: var(--carbon); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
section[id] { scroll-margin-top: max(0px, calc(var(--anchor-clear) - var(--section-y))); }
#top, #journey { scroll-margin-top: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 300;
  padding: 10px 16px; background: var(--accent); color: var(--on-accent); border-radius: 8px;
}
.skip-link:focus { top: 16px; }

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.container {
  width: min(100% - 2 * var(--page-gutter), var(--max-width));
  margin-inline: auto;
}
.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--bg-alt); }

.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }

/* Split-text helpers (added by JS) */
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.12em 0.24em; margin: 0 -0.12em -0.24em; }
.split-word > span { display: inline-block; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  --btn-h: 52px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-h);
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), scale 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { scale: 0.97; }
.btn svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease-out); }
@media (hover: hover) { .btn:hover svg { transform: translateX(4px); } }

.btn--dark { background: var(--carbon); color: var(--snow); }
@media (hover: hover) { .btn--dark:hover { background: var(--teal); } }
.btn--mint { background: var(--mint); color: var(--carbon); }
@media (hover: hover) { .btn--mint:hover { background: var(--accent-hover); } }
.btn--outline { border-color: rgba(26, 26, 26, 0.25); }
@media (hover: hover) { .btn--outline:hover { border-color: var(--carbon); } }
.btn--sm { --btn-h: 42px; padding: 0 20px; font-size: var(--fs-small); }
.btn--lg { --btn-h: 64px; padding: 0 34px; font-size: 1.0625rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Logo ------------------------------------------------------------------- */
/* Official wordmark (sprite #rv-wordmark). Main shape follows currentColor;
   the core follows --logo-core (mint on light, white on dark). */
.logo { display: inline-flex; align-items: center; line-height: 1; }
.logo__svg { display: block; height: 21px; width: auto; aspect-ratio: 1344.5 / 169.5; fill: currentColor; }
.logo-core { fill: var(--logo-core); }

/* Preloader -------------------------------------------------------------- */
.loader { display: none; }
.is-loading .loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--carbon);
  color: var(--snow);
  --logo-core: currentColor;
  animation: loader-failsafe 0.01s 4s forwards; /* never block the page */
}
.loader__inner { display: grid; justify-items: center; gap: 20px; }
.loader__mark { width: 56px; height: 56px; fill: currentColor; }
.loader__count { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.2em; color: var(--on-dark-2); }
@keyframes loader-failsafe { to { visibility: hidden; opacity: 0; } }

/* Intro pre-state ------------------------------------------------------- */
.intro .hero__title .line > span { transform: translateY(140%); }
.intro [data-hero-fade], .intro [data-passport] { opacity: 0; }
.intro [data-hero-media] { clip-path: inset(100% 0 0 0); }
.intro .hero__title .line > span,
.intro [data-hero-fade], .intro [data-passport], .intro [data-hero-media] { animation: intro-failsafe 0.01s 3.5s forwards; }
@keyframes intro-failsafe { to { transform: none; opacity: 1; clip-path: none; } }

/* Header — sticky pill ---------------------------------------------------
   Full-width and transparent over the hero; condenses into a floating
   frosted pill on scroll, and switches to dark glass over dark sections. */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  pointer-events: none;
}
.site-header__inner {
  position: relative;
  height: var(--header-h);
  max-width: var(--max-width);
  margin-top: 0;
  padding-inline: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink);
  pointer-events: auto;
  transition:
    max-width 0.7s var(--ease-out), height 0.5s var(--ease-out), margin-top 0.5s var(--ease-out),
    padding 0.5s var(--ease-out), background-color 0.4s var(--ease), border-color 0.4s var(--ease),
    box-shadow 0.5s var(--ease), color 0.4s var(--ease);
}
.site-header__inner::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.site-header.is-scrolled .site-header__inner {
  max-width: 1080px;
  height: 58px;
  margin-top: 12px;
  padding-inline: 20px 7px;
  background: rgba(247, 249, 248, 0.72);
  border-color: rgba(26, 26, 26, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 12px 32px -14px rgba(17, 68, 85, 0.28);
}
.site-header.is-scrolled .site-header__inner::before { opacity: 1; }
.site-header.is-dark .site-header__inner { color: var(--on-dark); --logo-core: currentColor; }
.site-header.is-scrolled.is-dark .site-header__inner {
  background: rgba(26, 26, 26, 0.62);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 12px 32px -14px rgba(0, 0, 0, 0.6);
}

.nav { display: none; position: relative; }
.nav ul { position: relative; display: flex; gap: 2px; }
.nav a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.78;
  transition: opacity 0.25s var(--ease);
}
.nav a:hover, .nav a[aria-current="true"] { opacity: 1; }
.nav a span { font-family: var(--font-mono); font-size: 0.5625rem; color: var(--accent-text); margin-top: -2px; transition: color 0.4s; }
.is-dark .nav a span { color: var(--mint); }
.nav__indicator {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: rgba(26, 26, 26, 0.07);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s var(--ease-out), width 0.5s var(--ease-out), opacity 0.3s var(--ease), background-color 0.4s;
}
.nav__indicator.is-on { opacity: 1; }
.is-dark .nav__indicator { background: rgba(255, 255, 255, 0.12); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { display: none; }

.menu-toggle {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 22%, transparent);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle svg { width: 20px; height: 20px; }

.is-scrolled .menu-toggle { width: 44px; height: 44px; }
.is-dark .header-actions .btn--dark { background: var(--mint); color: var(--carbon); }
@media (max-width: 1099px) {
  .site-header.is-scrolled .site-header__inner { padding-inline: 18px 6px; height: 56px; margin-top: 10px; }
}

@media (min-width: 1100px) {
  .nav { display: block; }
  .menu-toggle { display: none; }
  .header-actions .btn { display: inline-flex; }
}

/* Bottom dock + menu drawer ------------------------------------------------
   Past the hero, the top bar steps aside and navigation moves to a floating
   dock at the bottom, so nothing ever sits over the section labels. */
.site-header { transition: transform 0.55s var(--ease-out), opacity 0.35s var(--ease); }
body.is-docked .site-header { transform: translateY(-140%); opacity: 0; }
body.is-docked .site-header__inner { pointer-events: none; }

.burger { position: relative; display: inline-block; width: 18px; height: 12px; }
.burger i { position: absolute; left: 0; right: 0; height: 1.6px; border-radius: 2px; background: currentColor; }
.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { top: 5.2px; }
.burger i:nth-child(3) { top: 10.4px; }

.float-glass {
  background: rgba(247, 249, 248, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid rgba(26, 26, 26, 0.08);
  color: var(--ink);
  box-shadow: 0 12px 32px -14px rgba(17, 68, 85, 0.3);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.float-glass.is-dark {
  background: rgba(26, 26, 26, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--on-dark);
  box-shadow: 0 12px 32px -14px rgba(0, 0, 0, 0.6);
}

.dock {
  position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 55;
  display: flex; align-items: center; gap: 10px;
  width: min(560px, calc(100% - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  padding: 6px;
  border-radius: 999px;
  translate: -50% 0;
  opacity: 0; transform: translateY(24px); pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.55s var(--ease-out), background-color 0.4s, color 0.4s, border-color 0.4s;
}
body.is-docked .dock { opacity: 1; transform: none; pointer-events: auto; }
.dock__menu {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: var(--carbon); color: var(--snow);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.float-glass.is-dark .dock__menu { background: rgba(255, 255, 255, 0.12); color: var(--on-dark); }
.dock__now { flex: 1; min-width: 0; display: grid; gap: 6px; padding-inline: 6px; }
.dock__line { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.dock__line .mono { flex: none; color: var(--accent-text); }
.float-glass.is-dark .dock__line .mono { color: var(--mint); }
.dock__name { font-size: 0.875rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock__bar { height: 2px; border-radius: 2px; background: rgba(26, 26, 26, 0.1); overflow: hidden; }
.float-glass.is-dark .dock__bar { background: rgba(255, 255, 255, 0.14); }
.dock__bar i { display: block; height: 100%; background: var(--mint); transform-origin: left; transform: scaleX(0); }
.dock .btn { flex: none; }
.dock.is-contact .btn { display: none; } /* already in the contact section */
@media (max-width: 420px) {
  .dock .btn { padding: 0 14px; }
  .dock__line .mono { display: none; }
}

.menu-drawer { position: fixed; inset: 0; z-index: 70; visibility: hidden; transition: visibility 0s 0.6s; }
.menu-drawer.is-open { visibility: visible; transition: visibility 0s; }
.menu-drawer__scrim { position: absolute; inset: 0; background: rgba(14, 17, 20, 0.45); opacity: 0; transition: opacity 0.4s var(--ease); }
.menu-drawer.is-open .menu-drawer__scrim { opacity: 1; }
.menu-drawer__panel {
  --logo-core: currentColor;
  position: absolute; top: 0; bottom: 0; left: 0;
  display: flex; flex-direction: column;
  width: min(440px, 88vw);
  padding: calc(var(--space-m) + env(safe-area-inset-top, 0px)) var(--space-l) calc(var(--space-l) + env(safe-area-inset-bottom, 0px)) max(var(--space-l), env(safe-area-inset-left, 0px));
  background: var(--carbon); color: var(--on-dark);
  transform: translateX(-102%);
  transition: transform 0.6s var(--ease-out);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.menu-drawer.is-open .menu-drawer__panel { transform: none; }
.menu-drawer__top { display: flex; justify-content: space-between; align-items: center; min-height: 48px; }
.menu-drawer__close {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line-dark); border-radius: 50%;
  background: transparent; color: inherit; cursor: pointer;
}
.menu-drawer__close svg { width: 20px; height: 20px; }
.menu-drawer__list { margin-block: var(--space-xl) var(--space-l); }
.menu-drawer__list a {
  display: flex; align-items: flex-start; gap: 12px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 500;
  letter-spacing: -0.03em; line-height: 1.1;
  opacity: 0; transform: translateX(-16px);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease-out), color 0.2s;
}
.menu-drawer.is-open .menu-drawer__list a { opacity: 1; transform: none; }
.menu-drawer.is-open .menu-drawer__list li:nth-child(1) a { transition-delay: 0.12s; }
.menu-drawer.is-open .menu-drawer__list li:nth-child(2) a { transition-delay: 0.16s; }
.menu-drawer.is-open .menu-drawer__list li:nth-child(3) a { transition-delay: 0.2s; }
.menu-drawer.is-open .menu-drawer__list li:nth-child(4) a { transition-delay: 0.24s; }
.menu-drawer.is-open .menu-drawer__list li:nth-child(5) a { transition-delay: 0.28s; }
.menu-drawer.is-open .menu-drawer__list li:nth-child(6) a { transition-delay: 0.32s; }
.menu-drawer.is-open .menu-drawer__list li:nth-child(7) a { transition-delay: 0.36s; }
.menu-drawer.is-open .menu-drawer__list li:nth-child(8) a { transition-delay: 0.4s; }
.menu-drawer__list .mono { min-width: 2.4em; padding-top: 6px; color: var(--on-dark-2); letter-spacing: 0; }
.menu-drawer__list a.is-active, .menu-drawer__list a.is-active .mono { color: var(--mint); }
.menu-drawer__panel > .btn { align-self: flex-start; margin-top: auto; }
.menu-drawer__foot { margin-top: var(--space-m); color: var(--on-dark-2); font-size: 0.625rem; }
@media (hover: hover) { .menu-drawer__list a:hover { color: var(--mint); } }
/* Phones held sideways: compact list so it fits without scrolling */
@media (max-height: 520px) {
  .menu-drawer__list { margin-block: var(--space-s); }
  .menu-drawer__list a { padding-block: 7px; font-size: 1.25rem; }
}

/* Swiss section header --------------------------------------------------- */
.shead { margin-bottom: var(--space-xl); }
.shead__rule {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-m);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}
.shead__rule span:first-child { color: var(--accent-text); }
.shead__aside { display: none; }
.shead__grid { display: grid; gap: var(--space-m); margin-top: var(--space-l); align-items: end; }
.shead__title { font-size: var(--fs-h2); max-width: 15ch; }
/* Label-only header (Partner): the cards' top rule below doubles as the divider */
.shead--bare { margin-bottom: 0; }
.shead--bare .shead__rule { border-bottom: 0; }
@media (min-width: 700px) { .shead__aside { display: block; } }
@media (min-width: 1024px) {
  .shead__grid { grid-template-columns: repeat(12, 1fr); gap: var(--grid-gap); }
  .shead__title { grid-column: 1 / 9; }
  .shead__lead { grid-column: 9 / 13; }
}

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + var(--space-l));
  padding-bottom: var(--section-y);
  overflow: hidden;
}
.grid-lines {
  position: absolute;
  inset: 0;
  width: min(100% - 2 * var(--page-gutter), var(--max-width));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
  pointer-events: none;
}
.grid-lines span { border-inline: 1px solid rgba(26, 26, 26, 0.045); }
.grid-lines span:nth-child(n + 5) { display: none; }
@media (min-width: 1024px) {
  .grid-lines { grid-template-columns: repeat(12, 1fr); }
  .grid-lines span:nth-child(n + 5) { display: block; }
}

.hero .container { position: relative; }
.hero__meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-xs) var(--space-m);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}
.hero__meta span:nth-child(2), .hero__meta span:nth-child(3) { display: none; }
.hero__scroll { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); justify-self: end; }
.hero__scroll svg { width: 14px; height: 14px; animation: bob 2.4s var(--ease) infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }
@media (min-width: 1024px) {
  .hero__meta { grid-template-columns: repeat(12, 1fr); gap: var(--grid-gap); }
  .hero__meta span:nth-child(1) { grid-column: 1 / 4; }
  .hero__meta span:nth-child(2) { display: block; grid-column: 5 / 8; }
  .hero__meta span:nth-child(3) { display: block; grid-column: 9 / 11; }
  .hero__meta .hero__scroll { grid-column: 11 / 13; }
}

.hero__title {
  margin-block: var(--space-xl);
  font-size: var(--fs-mega);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.05em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.24em; margin-bottom: -0.24em; }
.hero__title .line > span { display: inline-block; }
.hero__title .line:nth-child(2) { padding-left: 0.9em; }
@media (orientation: landscape) and (max-height: 520px) {
  .hero { padding-top: calc(var(--header-h) + var(--space-2xs)); }
  .hero__title { font-size: min(var(--fs-mega), 21vh); margin-block: var(--space-l); }
}
@media (max-width: 480px) {
  .hero__title { font-size: 15vw; }
  .hero__title .line:nth-child(2) { padding-left: 0.5em; }
}
.sq {
  display: inline-block;
  width: 0.16em; height: 0.16em;
  margin-left: 0.04em;
  background: var(--mint);
  border-radius: 0.03em;
  vertical-align: baseline;
}

.hero__bottom { display: grid; gap: var(--space-xl); }
.hero__intro { display: grid; gap: var(--space-l); align-content: end; }
.hero__visual { position: relative; }
.hero__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-media);
  overflow: hidden;
  background: var(--carbon);
}
.hero__media > picture { position: absolute; inset: 0; }
.hero__media img {
  position: absolute; left: 0; top: -10%;
  width: 100%; height: 120%;
  object-fit: cover;
}
@media (min-width: 1024px) {
  .hero__bottom { grid-template-columns: repeat(12, 1fr); gap: var(--grid-gap); }
  .hero__intro { grid-column: 1 / 5; padding-bottom: var(--space-2xs); }
  .hero__visual { grid-column: 5 / 13; }
  .hero__media { aspect-ratio: 16 / 9.5; }
}

/* Cell passport card */
.passport {
  position: relative;
  margin: -64px 12px 0;
  padding: 20px;
  display: grid;
  gap: 14px;
  background: var(--carbon);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  color: var(--on-dark);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45);
}
@media (min-width: 640px) {
  .passport {
    position: absolute; left: 20px; bottom: 20px; width: 300px; margin: 0;
    background: rgba(26, 26, 26, 0.8);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
  }
}
.passport__head { display: flex; justify-content: space-between; color: var(--on-dark-2); font-size: 0.625rem; }
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--mint); }
.live i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.live i::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--mint); animation: ping 1.8s var(--ease) infinite;
}
@keyframes ping { from { transform: scale(0.5); opacity: 1; } to { transform: scale(2); opacity: 0; } }
.passport__soh { display: grid; gap: 6px; }
.passport__soh .mono { color: var(--on-dark-2); font-size: 0.625rem; }
.passport__soh strong {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.passport__soh small { font-size: 0.45em; color: var(--mint); margin-left: 2px; }
.passport__bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.passport__bar span { display: block; height: 100%; background: var(--mint); border-radius: inherit; transition: width 1.2s var(--ease-out); }
.passport__spark { width: 100%; height: 44px; overflow: visible; }
.passport__spark path { fill: none; stroke: var(--mint); stroke-width: 1.75; vector-effect: non-scaling-stroke; }
.passport__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 12px; border-top: 1px solid var(--line-dark); font-size: 0.625rem; }
.passport__grid dt { color: var(--on-dark-2); }
.passport__grid dd { color: var(--on-dark); font-size: 0.8125rem; margin-top: 2px; text-transform: none; }
.passport__grid dd b { font-weight: inherit; }

/* Ticker ----------------------------------------------------------------- */
.ticker {
  overflow: hidden;
  padding-block: var(--space-m);
  border-block: 1px solid var(--line);
  background: var(--bg);
}
.ticker__track { display: flex; width: max-content; }
.ticker__group { display: flex; align-items: center; flex: none; }
.ticker span {
  padding-inline: clamp(16px, 2vw, 32px);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.2rem + 5vw, 6.5rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}
.ticker span.o { color: transparent; -webkit-text-stroke: 1.25px var(--carbon); }
.ticker i { width: 0.5em; height: 0.5em; flex: none; font-size: clamp(1.25rem, 0.6rem + 2.5vw, 3.25rem); background: var(--mint); border-radius: 0.1em; }

/* Bento ------------------------------------------------------------------ */
.bento {
  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento > .tile { grid-column: span 1; }
  .bento > .tile[style*="span 6"],
  .bento > .tile[style*="span 7"],
  .bento > .tile[style*="span 8"],
  .bento > .tile[style*="span 5"] { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(230px, auto); }
  .bento > .tile,
  .bento > .tile[style] { grid-column: var(--c, span 4); grid-row: var(--r, span 1); }
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-m);
  min-height: 230px;
  padding: var(--tile-pad);
  border-radius: var(--radius-tile);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.tile--dark { background: var(--carbon); color: var(--on-dark); border-color: transparent; }
.tile--teal { background: var(--teal); color: var(--on-dark); border-color: transparent; }
.tile--mint { background: var(--mint); color: var(--carbon); border-color: transparent; }
.tile--image { color: var(--snow); border: 0; background: var(--carbon); min-height: 300px; }
.tile--image > picture { position: absolute; inset: 0; z-index: -2; }
.tile--image img {
  position: absolute; left: 0; top: -8%;
  width: 100%; height: 116%;
  object-fit: cover;
  z-index: -2;
  transition: scale 1.2s var(--ease-out);
}
.tile--image::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.35) 0%, rgba(26, 26, 26, 0) 35%, rgba(26, 26, 26, 0.78) 100%);
}

.tile__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 12px; color: inherit; opacity: 0.75; }
.tile--mint .tile__top, .tile--image .tile__top { opacity: 0.9; }
.tile__bottom { display: grid; gap: 8px; }
.tile__bottom h3 { max-width: 18ch; }
.tile__bottom p { opacity: 0.8; max-width: 40ch; }
.tile__text { font-size: 0.9375rem; line-height: 1.5; max-width: 40ch; opacity: 0.85; }
.tile__note { opacity: 0.5; font-size: 0.625rem; }
.tile__tags { display: inline-flex; align-items: center; gap: 10px; }
.tile__statement {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 13ch;
}
.bento__sources { margin-top: var(--space-s); color: var(--ink-2); font-size: 0.625rem; line-height: 1.8; }

.chip {
  padding: 4px 9px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-size: 0.5625rem;
  opacity: 0.8;
}

.stat-num {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-display);
  font-size: var(--fs-stat);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.stat-num b { font-weight: inherit; }
.stat-num span { font-size: 0.45em; letter-spacing: -0.02em; }
.stat-num small { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.7; }
.stat-num--md { font-size: clamp(3rem, 2rem + 2.6vw, 4.5rem); }
.stat-num--sm { font-size: clamp(2rem, 1.5rem + 1.4vw, 2.75rem); }
.tile--teal .stat-num span, .tile--dark .stat-num span { color: var(--mint); }

/* Gauge */
.gauge { position: relative; width: min(100%, 300px); aspect-ratio: 1; margin-inline: auto; }
.gauge__svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge__svg circle { fill: none; stroke-width: 14; }
.gauge__track { stroke: rgba(255, 255, 255, 0.1); }
.gauge__ticks { stroke: rgba(255, 255, 255, 0.22); stroke-width: 26 !important; stroke-dasharray: 1 12.2; }
.gauge__value { stroke: var(--mint); stroke-linecap: round; }
.gauge__label { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; }
.gauge__label .mono { opacity: 0.7; }

/* LFP cell icon */
.cell-icon { display: inline-grid; grid-auto-flow: column; gap: 3px; padding: 4px 5px; border: 1.5px solid currentColor; border-radius: 5px; position: relative; }
.cell-icon::after { content: ""; position: absolute; right: -5px; top: 50%; width: 3px; height: 8px; margin-top: -4px; background: currentColor; border-radius: 0 2px 2px 0; }
.cell-icon i { width: 6px; height: 12px; border-radius: 1.5px; background: var(--mint); animation: cell-fill 2.8s steps(1) infinite; }
.cell-icon i:nth-child(2) { animation-delay: 0.35s; }
.cell-icon i:nth-child(3) { animation-delay: 0.7s; }
.cell-icon i:nth-child(4) { animation-delay: 1.05s; }
@keyframes cell-fill { 0% { opacity: 0.15; } 15%, 80% { opacity: 1; } 100% { opacity: 0.15; } }

/* Lifecycle chart */
.lifecycle { width: 100%; height: auto; overflow: visible; }
.lifecycle .zone--1 { fill: rgba(var(--accent-rgb), 0.07); }
.lifecycle .zone--2 { fill: rgba(17, 68, 85, 0.07); }
.lifecycle .zone--3 { fill: rgba(26, 26, 26, 0.04); }
.lifecycle .ax, .soh .ax { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; fill: var(--ink-2); }
@media (max-width: 699px) {
  .lifecycle .ax { font-size: 15px; letter-spacing: 0.02em; }
  .soh .ax { font-size: 13px; letter-spacing: 0.02em; }
}
.lifecycle .axis, .soh .axis { stroke: var(--line); stroke-width: 1; }
.lifecycle .thresh { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 5; opacity: 0.6; }
.lifecycle .curve { fill: none; stroke-width: 3.5; stroke-linecap: round; }
.lifecycle .curve--1 { stroke: var(--mint); }
.lifecycle .curve--2 { stroke: var(--teal); }
.lifecycle .curve--3 { stroke: var(--ink-2); stroke-width: 2; stroke-dasharray: 4 5; }
.lifecycle .dot { fill: var(--surface); stroke: var(--mint); stroke-width: 3; }
.lifecycle .dot--teal { stroke: var(--teal); }

/* Journey (pinned) ------------------------------------------------------- */
.journey {
  position: relative;
  background: var(--carbon);
  color: var(--on-dark);
}
.journey__pin { padding-block: var(--section-y); }
.journey__layout { display: grid; gap: var(--space-xl); }
.journey .shead__rule { border-color: var(--line-dark); color: var(--on-dark-2); }
.journey .shead__rule span:first-child { color: var(--mint); }
.journey__title { font-size: var(--fs-h2); margin-top: var(--space-l); max-width: 12ch; }
.journey__counter { display: none; }
.journey__diagram { display: none; }

/* Phones, tablets & static: drawn timeline. A mint line draws down as you
   scroll, the current step lights up, and the Rinovara steps sit in a box. */
.journey__lead { margin-top: var(--space-s); color: var(--on-dark-2); max-width: 36ch; }
.journey__steps { position: relative; display: grid; gap: var(--space-xl); margin-top: var(--space-xl); }
.journey__steps > li {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  align-content: start;
  column-gap: var(--space-s);
  row-gap: 8px;
  opacity: 0.35;
  transition: opacity 0.5s var(--ease);
}
.journey__steps > li > :not(.journey__icon) { grid-column: 2; }
.journey__steps > li.is-past { opacity: 0.75; }
.journey__steps > li.is-active { opacity: 1; }
/* room for the facility box around steps 3 and 4 */
.journey__steps > li:nth-of-type(3) { margin-top: 16px; }
.journey__steps > li:nth-of-type(5) { margin-top: 12px; }
.journey__rail {
  position: absolute; left: 23.5px; top: 24px; bottom: 0;
  width: 1px;
  background: var(--line-dark);
}
.journey__rail i { position: absolute; inset: 0; background: var(--mint); transform-origin: top; transform: scaleY(0); }
.journey__rail b { position: absolute; left: -4.5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 14px 3px rgba(var(--accent-rgb), 0.6); }
.journey--static .journey__rail i { transform: none; }
.journey--static .journey__rail b { display: none; }
.journey--static .journey__counter { display: none !important; }
.journey__fac {
  position: absolute; left: -12px; right: -12px; top: 0; height: 0;
  border: 1px dashed rgba(var(--accent-rgb), 0.5);
  border-radius: 18px;
  background: rgba(var(--accent-rgb), 0.04);
  pointer-events: none;
}
.journey__fac .mono { position: absolute; top: 12px; right: 14px; color: var(--mint); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; }
.journey__icon {
  position: relative;
  grid-row: 1 / span 4;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: var(--carbon);
  color: var(--on-dark-2);
  transition: border-color 0.4s, color 0.4s, background-color 0.4s, box-shadow 0.4s;
}
.journey__icon svg { width: 20px; height: 20px; }
.journey__steps > li.is-past .journey__icon { border-color: var(--mint); color: var(--mint); }
.journey__steps > li.is-active .journey__icon { background: var(--mint); border-color: var(--mint); color: var(--carbon); box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0.16); }
.journey--static .journey__steps > li.is-active .journey__icon { background: var(--carbon); color: var(--mint); box-shadow: none; }
.journey__steps .mono { color: var(--mint); padding-top: 4px; }
.journey__steps h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); }
.journey__steps p { color: var(--on-dark-2); max-width: 44ch; }
.journey__apps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 460px; margin-top: 6px; }
.journey__apps li { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line-dark); border-radius: 14px; font-size: 0.875rem; font-weight: 500; line-height: 1.25; opacity: 0; transform: translateY(10px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease-out); }
.journey__apps svg { width: 18px; height: 18px; flex: none; color: var(--mint); }
.journey__steps > li.is-active .journey__apps li { opacity: 1; transform: none; }
.journey__steps > li.is-active .journey__apps li:nth-child(2) { transition-delay: 0.08s; }
.journey__steps > li.is-active .journey__apps li:nth-child(3) { transition-delay: 0.16s; }
.journey__steps > li.is-active .journey__apps li:nth-child(4) { transition-delay: 0.24s; }

/* Desktop pinned scene (short viewports keep the timeline) */
@media (min-width: 1024px) and (min-height: 640px) {
  .journey:not(.journey--static) .journey__pin {
    height: 100vh;
    height: 100svh;
    padding-block: calc(var(--header-h) + var(--space-m)) var(--space-m);
    display: flex;
    align-items: center;
  }
  .journey__layout { grid-template-columns: repeat(12, 1fr); gap: var(--grid-gap); align-items: center; width: min(100% - 2 * var(--page-gutter), var(--max-width)); }
  .journey__panel { grid-column: 1 / 5; }
  .journey__diagram { display: block; grid-column: 5 / 13; }
  .journey__counter {
    display: flex; align-items: center; gap: var(--space-xs);
    margin-top: var(--space-l);
    color: var(--on-dark-2);
  }
  .journey__counter [data-j-index] { color: var(--mint); }
  .journey__progress { flex: 1; max-width: 160px; height: 2px; background: var(--line-dark); }
  .journey__progress i { display: block; height: 100%; width: 100%; background: var(--mint); transform-origin: left; transform: scaleX(0.166); }

  .journey:not(.journey--static) .journey__steps { margin-top: var(--space-m); min-height: 230px; }
  .journey:not(.journey--static) .journey__steps > li {
    position: absolute; inset: 0 0 auto 0;
    display: grid; grid-template-columns: 1fr; row-gap: 14px;
    padding: 0;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s var(--ease), transform 0.7s var(--ease-out);
    pointer-events: none;
  }
  .journey:not(.journey--static) .journey__steps > li.is-active { opacity: 1; transform: none; pointer-events: auto; }
  .journey:not(.journey--static) .journey__steps > li > * { grid-column: auto; }
  .journey:not(.journey--static) .journey__steps > li:nth-of-type(n) { margin-top: 0; }
  .journey:not(.journey--static) .journey__rail,
  .journey:not(.journey--static) .journey__fac,
  .journey:not(.journey--static) .journey__lead,
  .journey:not(.journey--static) .journey__apps,
  .journey:not(.journey--static) .journey__icon { display: none; }
  .journey:not(.journey--static) .journey__steps .mono { padding-top: 0; }
}
/* Tall tablets (iPad Pro held upright): text above, diagram below */
@media (min-width: 1024px) and (min-height: 640px) and (max-aspect-ratio: 1/1) {
  .journey:not(.journey--static) .journey__layout { grid-template-columns: 1fr; gap: var(--space-xl); }
  .journey:not(.journey--static) .journey__panel,
  .journey:not(.journey--static) .journey__diagram { grid-column: 1 / -1; }
  .journey:not(.journey--static) .journey__title { max-width: none; }
}

/* Flow diagram */
.flow { width: 100%; height: auto; overflow: visible; }
.flow__track { fill: none; stroke: rgba(238, 243, 241, 0.16); stroke-width: 1.5; stroke-dasharray: 3 7; }
.flow__line { fill: none; stroke: var(--mint); stroke-width: 2.5; stroke-linecap: round; }
.flow__zone { fill: rgba(var(--accent-rgb), 0.035); stroke: rgba(var(--accent-rgb), 0.45); stroke-width: 1.25; stroke-dasharray: 6 6; }
.flow__zone-label { font-family: var(--font-mono); font-size: 17px; font-weight: 600; letter-spacing: 0.14em; fill: var(--mint); }
.flow__node circle {
  fill: #232525;
  stroke: rgba(238, 243, 241, 0.2);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  transition: fill 0.5s var(--ease), stroke 0.5s var(--ease), transform 0.6s var(--ease-out);
}
.flow__node use { color: var(--on-dark-2); transition: color 0.5s var(--ease); }
.flow__node text { text-anchor: middle; transition: fill 0.5s var(--ease); }
.flow__num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; fill: var(--on-dark-2); }
.flow__name { font-family: var(--font-display); font-size: 19px; font-weight: 500; letter-spacing: -0.01em; fill: rgba(238, 243, 241, 0.45); }
.flow__node.is-active circle { stroke: var(--mint); transform: scale(1.08); }
.flow__node.is-active use { color: var(--mint); }
.flow__node.is-active .flow__name { fill: var(--on-dark); }
.flow__node.is-active .flow__num { fill: var(--mint); }
.flow__node--ours.is-active circle { fill: var(--teal); }
.flow__node.is-current circle { stroke-width: 3; }
.flow__app { opacity: 0.28; transition: opacity 0.6s var(--ease); }
.flow__app circle { fill: #232525; stroke: rgba(var(--accent-rgb), 0.6); stroke-width: 1.25; }
.flow__app use { color: var(--mint); }
.flow__app text { font-family: var(--font-display); font-size: 18px; font-weight: 500; fill: var(--on-dark); }
.flow__app.is-active { opacity: 1; }
.flow__pulse { fill: var(--mint); }

/* Technology tiles ------------------------------------------------------- */
.tile--matrix { gap: var(--space-m); }
.matrix {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
}
@media (min-width: 640px) { .matrix { grid-template-columns: repeat(18, 1fr); } }
.matrix__cell {
  aspect-ratio: 1;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease-out);
}
.matrix__cell.g-a { background: var(--mint); }
.matrix__cell.g-b { background: #2f8f9d; }
.matrix__cell.g-c { background: #5f6869; }
.matrix__cell.g-r { background: transparent; border-color: rgba(238, 243, 241, 0.35); }
.matrix__cell.is-hit { transform: scale(0.82); }
.matrix__scan {
  position: absolute; top: -8px; bottom: -8px; left: 0;
  width: 2px;
  background: var(--mint);
  box-shadow: 0 0 18px 4px rgba(var(--accent-rgb), 0.55);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}
.matrix__foot { display: grid; gap: var(--space-s); }
.matrix__foot h3 { margin-bottom: 8px; }
.matrix__legend { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 20px; color: var(--on-dark-2); font-size: 0.625rem; align-content: end; }
.matrix__legend li { display: flex; align-items: center; gap: 8px; }
.matrix__legend i { width: 10px; height: 10px; border-radius: 2px; }
.matrix__legend i.g-a { background: var(--mint); }
.matrix__legend i.g-b { background: #2f8f9d; }
.matrix__legend i.g-c { background: #5f6869; }
.matrix__legend i.g-r { border: 1px solid rgba(238, 243, 241, 0.5); }
.matrix__legend b { color: var(--on-dark); font-weight: 500; min-width: 2.5ch; }
@media (min-width: 700px) { .matrix__foot { grid-template-columns: 1fr auto; align-items: end; } }

.soh { width: 100%; height: auto; overflow: visible; }
.soh .now { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 2 4; opacity: 0.6; }
.soh .band { fill: rgba(var(--accent-rgb), 0.14); }
.soh .pred { fill: none; stroke: var(--accent-text); stroke-width: 2.5; stroke-dasharray: 6 6; }
.soh .pts circle { fill: var(--carbon); }
.soh__readout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-s); padding-top: var(--space-s); border-top: 1px solid var(--line); }
.soh__readout > div { display: grid; gap: 8px; }
.soh__readout .mono { color: var(--ink-2); font-size: 0.625rem; }

.checks { display: grid; gap: 12px; }
.checks li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--ink-2); transition: color 0.3s; }
.checks li span {
  display: grid; place-items: center;
  width: 24px; height: 24px; flex: none;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  color: transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s, color 0.3s, transform 0.4s var(--ease-out);
}
.checks li span svg { width: 13px; height: 13px; }
.checks li.is-done { color: var(--ink); }
.checks li.is-done span { background: var(--mint); border-color: var(--mint); color: var(--carbon); transform: scale(1.06); }

.typer {
  min-height: 12.5em; /* 7 lines */
  font-size: 0.75rem;
  line-height: 1.75;
  letter-spacing: 0.04em;
  white-space: pre-wrap;
  color: var(--on-dark);
}
.typer .k { color: var(--on-dark-2); }
.typer .v { color: var(--mint); }
.typer::after { content: "▍"; color: var(--mint); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Statement -------------------------------------------------------------- */
.statement { padding-block: var(--section-y); }
.statement__text {
  margin-top: var(--space-l);
  font-family: var(--font-display);
  font-size: clamp(2rem, 0.9rem + 3.9vw, 5.25rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.js .statement__text .w { opacity: 0.14; }
.pill-img {
  display: inline-block;
  width: 1.9em; height: 0.92em;
  margin-inline: 0.06em;
  border-radius: 999px;
  overflow: hidden;
  vertical-align: -0.06em;
  background: var(--carbon);
}
.pill-img picture { width: 100%; height: 100%; }
.pill-img img { width: 100%; height: 100%; object-fit: cover; }

/* Applications ----------------------------------------------------------- */
.tile--app { min-height: 280px; }
.tile__arrow {
  width: 40px; height: 40px; padding: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background-color 0.4s var(--ease), color 0.4s, transform 0.5s var(--ease-out);
}
.tile--app { transition: scale 0.5s var(--ease-out); -webkit-tap-highlight-color: transparent; }
.tile--app:active { scale: 0.985; }
@media (hover: hover) {
  .tile--app:hover .tile__arrow { background: var(--mint); color: var(--carbon); transform: rotate(45deg); }
  .tile--app:hover img { scale: 1.05; }
}
.tile--app h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); }
@media (min-width: 1024px) { .bento--apps { grid-auto-rows: minmax(260px, auto); } }

/* Audiences -------------------------------------------------------------- */
.audiences { display: grid; gap: var(--space-xl); }
.audience {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-m);
  padding-top: var(--space-m);
  border-top: 1px solid var(--carbon);
}
.audience__letter {
  font-family: var(--font-display);
  font-size: clamp(5rem, 3rem + 7vw, 11rem);
  font-weight: 500;
  line-height: 0.75;
  letter-spacing: -0.06em;
  color: var(--mint);
}
.audience__body { display: grid; gap: var(--space-s); align-content: start; }
.audience__body .mono { color: var(--ink-2); }
.audience__body h3 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 3rem); max-width: 14ch; }
.audience__body ul, .audience__list { display: grid; margin-bottom: 8px; }
.audience__body li, .audience__list li { padding-block: 12px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; }
.audience__body li::before, .audience__list li::before { content: ""; width: 7px; height: 7px; margin-top: 0.6em; flex: none; background: var(--mint); border-radius: 1.5px; }
.audience__body .btn { justify-self: start; }
.audience__text { color: var(--ink-2); max-width: 46ch; }
.audience__list { grid-column: 1 / -1; }
.audience__media--cells img { object-position: 70% 40%; }
.audience__media {
  grid-column: 1 / -1;
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-media);
  overflow: hidden;
}
.audience__media > picture { position: absolute; inset: 0; }
.audience__media img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; }
@media (max-width: 699px) {
  .audience { grid-template-columns: 1fr; gap: var(--space-s); }
  .audience__letter { font-size: 4.5rem; }
}
@media (min-width: 1024px) {
  .audiences { grid-template-columns: 1fr 1fr; gap: var(--space-xl) var(--grid-gap); }
  .audience { gap: var(--space-m) var(--grid-gap); }
}

/* CTA -------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  padding-block: var(--section-y);
  background: var(--teal);
  color: var(--on-dark);
  isolation: isolate;
}
.cta .shead__rule { border-color: var(--line-dark); color: var(--on-dark-2); }
.cta .shead__rule span:first-child { color: var(--mint); }
.cta__mark {
  position: absolute;
  right: -12vw; top: 50%;
  width: 62vw; max-width: 900px; height: auto; aspect-ratio: 1;
  translate: 0 -50%;
  color: rgba(238, 243, 241, 0.06);
  fill: currentColor;
  --logo-core: currentColor;
  z-index: -1;
}
.cta__title {
  margin-block: var(--space-l);
  font-size: clamp(3rem, 1rem + 7.4vw, 9.5rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  max-width: 12ch;
}
.cta__row { display: grid; gap: var(--space-m); align-items: end; }
.cta .lead { color: var(--on-dark-2); }
@media (min-width: 1024px) {
  .cta__row { grid-template-columns: repeat(12, 1fr); gap: var(--grid-gap); }
  .cta__row .lead { grid-column: 1 / 6; }
  .cta__row .btn-row { grid-column: 8 / 13; justify-content: flex-end; }
}

/* Contact form (on the teal CTA) ---------------------------------------- */
.contact-form {
  display: grid;
  gap: var(--space-m) var(--grid-gap);
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--line-dark);
  scroll-margin-top: var(--anchor-clear);
}
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field legend {
  padding: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-dark-2);
}
.field .optional { text-transform: none; letter-spacing: 0; opacity: 0.8; }
.field input, .field textarea {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(238, 243, 241, 0.3);
  border-radius: 0;
  color: var(--on-dark);
  font-size: 1.0625rem;
  transition: border-color 0.2s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--mint); }
.field [aria-invalid="true"] { border-color: var(--error); }
.roles legend { margin-bottom: var(--space-xs); }
.roles__options { display: flex; flex-wrap: wrap; gap: 10px; }
.role { position: relative; cursor: pointer; }
.role input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.role span {
  display: inline-flex;
  padding: 10px 16px;
  border: 1px solid rgba(238, 243, 241, 0.3);
  border-radius: 999px;
  font-size: 0.9375rem;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.role input:checked + span { background: var(--mint); border-color: var(--mint); color: var(--carbon); }
.role input:focus-visible + span { outline: 2px solid var(--mint); outline-offset: 3px; }
.roles[aria-invalid="true"] .role span { border-color: var(--error); }
.contact-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-s) var(--space-m); }
.contact-form__notice { color: var(--on-dark-2); font-size: var(--fs-small); }
.contact-form__notice a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
.contact-form__status { min-height: 1.6em; color: var(--mint); font-size: var(--fs-small); }
.contact-form__status[data-state="error"] { color: var(--error); }
.contact-form[hidden], .contact-done[hidden] { display: none; }

/* Field errors: label, underline and a short message turn coral */
.field__error { margin: 0; color: var(--error); font-size: var(--fs-small); line-height: 1.4; }
.field__error:empty { display: none; }
.field__error::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 1.5px; background: currentColor; vertical-align: 2px; }
.field:has(> [aria-invalid="true"]) > label,
.roles[aria-invalid="true"] legend { color: var(--error); }

/* Sending state: spinner replaces the arrow */
.btn__spinner { display: none; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
.btn.is-busy .btn__spinner { display: block; }
.btn.is-busy svg { display: none; }
.btn.is-busy { cursor: progress; }
.btn:disabled { opacity: 0.85; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Thank-you panel (replaces the form once sent) */
.contact-done {
  display: grid; justify-items: start; gap: var(--space-s);
  margin-top: var(--space-xl);
  padding: var(--tile-pad);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-tile);
  background: rgba(255, 255, 255, 0.04);
  scroll-margin-top: var(--anchor-clear);
  outline: none;
}
.contact-done__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--mint); color: var(--carbon); }
.contact-done__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.contact-done__icon path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-check 0.6s 0.25s var(--ease-out) forwards; }
@keyframes draw-check { to { stroke-dashoffset: 0; } }
.contact-done .mono { color: var(--mint); }
.contact-done__title { font-size: var(--fs-h3); max-width: 24ch; }
.contact-done__text { color: var(--on-dark-2); max-width: 52ch; }
.contact-done .contact-done__note { color: #ffd59a; font-size: 0.6875rem; }
.contact-done__again { margin-top: var(--space-2xs); background: transparent; border-color: rgba(238, 243, 241, 0.3); color: var(--on-dark); }
@media (hover: hover) { .contact-done__again:hover { border-color: var(--on-dark); } }
@media (min-width: 700px) {
  .contact-form { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}

/* Footer ----------------------------------------------------------------- */
.site-footer {
  --logo-core: currentColor;
  background: var(--carbon);
  color: var(--on-dark);
  padding-top: var(--section-y);
  overflow: hidden;
}
.footer-top { display: grid; gap: var(--space-xl); padding-bottom: var(--space-xl); }
.footer-brand { display: grid; gap: var(--space-m); align-content: start; }
.footer-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 18ch;
}
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-l) var(--grid-gap); }
.site-footer h4 { margin-bottom: var(--space-s); color: var(--on-dark-2); font-weight: 500; }
.footer-links ul { display: grid; gap: 2px; }
.footer-links a { display: inline-block; padding-block: 6px; transition: color 0.2s; }
@media (hover: hover) { .footer-links a:hover { color: var(--mint); } }

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  padding-block: var(--space-m);
  border-top: 1px solid var(--line-dark);
  color: var(--on-dark-2);
}
.footer-bottom nav { display: flex; gap: 24px; }
.footer-bottom a:hover { color: var(--on-dark); }
.footer-legal { padding-bottom: var(--space-m); max-width: 90ch; color: var(--on-dark-2); font-size: 0.8125rem; line-height: 1.6; }

.footer-word {
  padding: var(--space-2xs) var(--page-gutter) calc(var(--space-l) + 72px + env(safe-area-inset-bottom, 0px));
  color: var(--on-dark);
  overflow: hidden;
}
.footer-word svg { display: block; width: 100%; max-width: var(--max-width); height: auto; margin-inline: auto; fill: currentColor; }

@media (min-width: 700px) {
  .footer-top { grid-template-columns: 1.3fr 1fr; gap: var(--grid-gap); }
}

/* About (static) ---------------------------------------------------------- */
.principles { display: grid; gap: var(--grid-gap); }
/* Top-aligned so every title starts on the same line, whatever its length */
.principles .tile { min-height: auto; justify-content: flex-start; gap: var(--space-l); }
.principles h3 { margin-bottom: var(--space-xs); }
@media (min-width: 700px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .principles { grid-template-columns: repeat(4, 1fr); } }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) 0;
  margin-top: var(--space-xl);
  padding-block: var(--space-s);
  border-block: 1px solid var(--line);
}
.facts li { padding-right: 18px; margin-right: 18px; border-right: 1px solid var(--line); }
.facts li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }

.team { display: grid; gap: var(--grid-gap); margin-top: var(--space-xl); }
.team__intro { display: grid; gap: var(--space-s); align-content: start; }
.team__intro .mono { color: var(--accent-text); }
.team__intro p { color: var(--ink-2); max-width: 52ch; }
.team__intro p:first-of-type { color: var(--ink); font-size: var(--fs-lead); line-height: 1.5; }
.founder {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: var(--space-s);
  padding: var(--tile-pad);
  border: 1px solid var(--line);
  border-radius: var(--radius-tile);
  background: var(--surface);
}
.founder__mark {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--carbon);
  color: var(--snow);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.founder__body { display: grid; gap: 10px; align-content: start; }
.founder__body .mono { color: var(--ink-2); }
.founder__body p { color: var(--ink-2); font-size: 0.9375rem; line-height: 1.55; }
.founder__link {
  display: inline-flex; align-items: center; gap: 8px;
  justify-self: start;
  margin-top: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 500;
  transition: border-color 0.2s var(--ease);
}
.founder__link:hover { border-color: var(--carbon); }
.founder__link svg { width: 15px; height: 15px; }
@media (min-width: 700px) {
  .team { grid-template-columns: 1fr 1fr; }
  .team__intro { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .team { grid-template-columns: repeat(12, 1fr); }
  .team__intro { grid-column: 1 / 5; }
  .founder { grid-column: span 4; }
}

.standards {
  display: flex; flex-wrap: wrap; gap: 6px var(--space-s);
  margin-top: var(--space-xl);
  max-width: 80ch;
  color: var(--ink-2);
  font-size: var(--fs-small);
}
.standards .mono { color: var(--accent-text); padding-top: 2px; }

/* Grading as a service (wide audience card) */
@media (min-width: 1024px) {
  .audience--wide { grid-column: 1 / -1; grid-template-columns: auto 1fr 1fr; }
  .audience--wide .audience__list { grid-column: auto; align-self: start; }
}

/* FAQ (static) ------------------------------------------------------------ */
.faq__list { border-top: 1px solid var(--carbon); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-m);
  padding-block: var(--space-m);
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.75rem); }
.faq__icon { position: relative; flex: none; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; }
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 12px; height: 1.5px;
  margin: -0.75px 0 0 -6px;
  background: currentColor;
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--mint); border-color: var(--mint); }
.faq__item[open] .faq__icon::after { display: none; }
.faq__answer { max-width: 68ch; padding-bottom: var(--space-m); color: var(--ink-2); }
@media (min-width: 1024px) { .faq__list { margin-left: calc((100% + var(--grid-gap)) / 12 * 3); } }

/* Tablets: balance the 2-column bentos (no half-empty rows) */
@media (min-width: 700px) and (max-width: 1023px) {
  #why .bento > .tile:nth-child(2) { grid-row: span 2; }
  #technology .bento > .tile:nth-child(5) { grid-column: span 2; }
  .bento--apps > .tile:nth-child(2) { grid-column: span 2; }
  .bento--apps > .tile:nth-child(n + 3) { grid-column: span 1; }
}

/* Legal & utility pages ---------------------------------------------------- */
.page-header { padding-block: var(--space-m); border-bottom: 1px solid var(--line); }
.page-header .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.page-header img { height: 40px; width: auto; }
.page-header .back { font-size: var(--fs-small); font-weight: 500; }
.legal { padding-block: var(--section-y); }
.legal h1 { margin-block: var(--space-l) var(--space-s); font-size: var(--fs-h2); max-width: 16ch; }
.legal__meta { color: var(--ink-2); }
.legal__body { max-width: 72ch; margin-top: var(--space-xl); }
.legal__body h2 { margin-block: var(--space-xl) var(--space-xs); font-size: var(--fs-h3); letter-spacing: -0.02em; }
.legal__body p, .legal__body li { margin-bottom: 12px; color: var(--ink-2); }
.legal__body ul { padding-left: 1.25em; list-style: disc; }
.legal__body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.page-footer { padding-block: var(--space-m); background: var(--carbon); color: var(--on-dark-2); font-size: 0.8125rem; }
.page-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.page-footer a:hover { color: var(--on-dark); }

/* Reduced motion --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .statement__text .w { opacity: 1 !important; }
}
