/* Relaiy marketing site.
   Colour: Relaiy brand tokens (master brief, section 12): white, off-white, teal, ink.
   Type: Libre Caslon Text for headings, Inter for everything else. */

@font-face { font-family: "Libre Caslon Text"; src: url("../fonts/libre-caslon-text-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("../fonts/libre-caslon-text-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("../fonts/chakra-petch-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* Theme variables are registered so the page colour can animate between sections */
@property --bg { syntax: "<color>"; inherits: true; initial-value: #F5F7F8; }
@property --fg { syntax: "<color>"; inherits: true; initial-value: #0F1E2E; }
@property --muted { syntax: "<color>"; inherits: true; initial-value: #4A5866; }
@property --line { syntax: "<color>"; inherits: true; initial-value: #DDE3E8; }
@property --accent { syntax: "<color>"; inherits: true; initial-value: #0F766E; }
@property --surface { syntax: "<color>"; inherits: true; initial-value: #FFFFFF; }

:root {
  --ink: #0F1E2E;
  --teal: #0E9488;
  --teal-text: #0F766E;
  --teal-dark: #2DD4BF;
  --paper: #FFFFFF;
  --paper-dark: #F5F7F8;
  --hairline: #E3E8EC;
  --slate: #4A5866;
  --gold: #C9A35C;
  --deep: #0A3D3A;
  --deep-rgb: 7 46 44;

  --f-display: "Libre Caslon Text", Georgia, serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-logo: "Chakra Petch", "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4.5vw, 64px);
  --section-y: clamp(112px, 12vw, 184px);
  --radius: 10px;

  --z-masthead: 20;
  --z-grain: 30;
  --z-menu: 40;
  --z-skip: 50;
}

html[data-theme="paper"] { --bg: #F5F7F8; --fg: #0F1E2E; --muted: #4A5866; --line: #DDE3E8; --accent: #0F766E; --surface: #FFFFFF; --logo-teal: #0E9488; }
html[data-theme="light"] { --bg: #FFFFFF; --fg: #0F1E2E; --muted: #4A5866; --line: #E3E8EC; --accent: #0F766E; --surface: #F5F7F8; --logo-teal: #0E9488; }
html[data-theme="dark"] { --bg: #0A3D3A; --fg: #F5F7F8; --muted: #BFD6D2; --line: #22524E; --accent: #2DD4BF; --surface: #0E4A46; --logo-teal: #2DD4BF; }
html { transition: --bg 900ms var(--ease), --fg 900ms var(--ease), --muted 900ms var(--ease), --line 900ms var(--ease), --accent 900ms var(--ease), --surface 900ms var(--ease); }

/* Without scroll-driven theming, each section paints its own colours */
html:not(.has-motion) [data-theme="paper"] { --bg: #F5F7F8; --fg: #0F1E2E; --muted: #4A5866; --line: #DDE3E8; --accent: #0F766E; --surface: #FFFFFF; background: var(--bg); color: var(--fg); }
html:not(.has-motion) [data-theme="light"] { --bg: #FFFFFF; --fg: #0F1E2E; --muted: #4A5866; --line: #E3E8EC; --accent: #0F766E; --surface: #F5F7F8; background: var(--bg); color: var(--fg); }
html:not(.has-motion) main [data-theme="dark"] { --bg: #0A3D3A; --fg: #F5F7F8; --muted: #BFD6D2; --line: #22524E; --accent: #2DD4BF; --surface: #0E4A46; --logo-teal: #2DD4BF; background: var(--bg); color: var(--fg); }
html:not(.has-motion) .opening .hero, html:not(.has-motion) .opening .voice { background: transparent; }
html:not(.has-motion) .opening { background: #F5F7F8; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
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(--fg);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
sup { font-size: 0.6em; line-height: 0; margin-left: 0.15em; }
sup a { text-decoration: none; color: var(--accent); padding: 0 2px; font-weight: 600; }

/* Fixed film grain, never repaints with scroll */
body::after {
  content: ""; position: fixed; inset: 0; z-index: var(--z-grain); pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.06 0 0 0 0 0.12 0 0 0 0 0.18 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: var(--z-skip); background: var(--ink); color: #FFFFFF; padding: 10px 16px; border-radius: 6px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }

/* Headings: one sentence, key words in teal on the same line, same type */
h2 {
  font-family: var(--f-display);
  font-size: clamp(2.125rem, 3.3vw, 3rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.hl { color: var(--accent); font: inherit; }

.tag {
  display: inline-block;
  margin-bottom: 28px;
  padding: 5px 12px 4px;
  border-radius: 999px;
  background: var(--teal-text);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.head { max-width: 780px; }
.head > p:not(.tag) { margin-top: 28px; color: var(--muted); font-size: 1.125rem; line-height: 1.65; max-width: 58ch; text-wrap: pretty; }
.head--center { margin-inline: auto; text-align: center; }
.head--center > p:not(.tag) { margin-inline: auto; }
.head > p.head__display { font-family: var(--f-display); font-size: 1.375rem; line-height: 1.45; color: var(--muted); max-width: 46ch; }

.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; color: var(--accent);
  border-bottom: 1.5px solid currentColor; padding-bottom: 4px;
  transition: gap 300ms var(--ease);
}
.text-link::after { content: "\2192"; }
.text-link:hover { gap: 16px; }

/* Logo (inline markup from the brand brief); colours follow the active theme */
.logo { display: inline-block; font-family: var(--f-logo); font-weight: 600; font-size: 28px; line-height: 1; color: var(--fg); white-space: nowrap; }
.logo__a { color: var(--logo-teal, var(--teal)); }
.logo .lt { fill: var(--logo-teal, var(--teal)); }
.logo .li { stroke: var(--fg); }
.logo svg { width: 0.618em; height: 0.989em; vertical-align: -0.22em; overflow: visible; }
.logo--lg { font-size: 40px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 30px;
  border-radius: 999px; border: 1.5px solid var(--fg);
  background: transparent; color: var(--fg);
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 400ms var(--ease), color 400ms var(--ease), border-color 400ms var(--ease), transform 200ms var(--ease);
}
.btn:hover { background: var(--fg); color: var(--bg); }
.btn:active { transform: scale(0.98); }
.btn--solid { background: var(--fg); color: var(--bg); }
.btn--solid:hover { background: var(--teal-text); border-color: var(--teal-text); color: #FFFFFF; }

/* Masthead */
.masthead { position: fixed; inset: 0 0 auto 0; z-index: var(--z-masthead); color: var(--fg); border-bottom: 1px solid transparent; transition: background-color 500ms var(--ease), border-color 500ms var(--ease); }
.masthead.is-scrolled { background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); }
.masthead__inner { max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); height: 80px; display: flex; align-items: center; gap: 36px; }
.masthead__brand { margin-right: auto; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.masthead__link { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; padding: 8px 0; border-bottom: 1.5px solid transparent; transition: border-color 300ms var(--ease); }
.masthead__link:hover { border-bottom-color: currentColor; }
.menu-toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  background: none; border: 0; padding: 0; cursor: pointer; color: inherit;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.menu-toggle__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); transition: transform 400ms var(--ease); }
.menu-toggle:hover .menu-toggle__dot { transform: scale(1.5); }

/* Menu overlay: full-screen photography under a deep Relaiy teal, not navy */
.menu { position: fixed; inset: 0; z-index: var(--z-menu); background: #0A3D3A; color: #F5F7F8; opacity: 0; visibility: hidden; transition: opacity 600ms var(--ease), visibility 0s linear 600ms; --fg: #F5F7F8; --bg: #0A3D3A; --muted: #CFE3E0; --line: rgba(245, 247, 248, 0.2); --accent: #2DD4BF; --logo-teal: #2DD4BF; }
.menu.is-open { opacity: 1; visibility: visible; transition: opacity 600ms var(--ease), visibility 0s; }
.menu__media { position: absolute; inset: 0; overflow: hidden; background: var(--teal); }
.menu__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 900ms var(--ease), transform 1800ms var(--ease); }
.menu__media img.is-active { opacity: 1; transform: scale(1); }
.menu__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 46, 44, 0.94) 0%, rgba(9, 62, 58, 0.72) 45%, rgba(14, 148, 136, 0.18) 100%); }
.menu__inner { position: relative; height: 100%; max-width: 1320px; margin-inline: auto; padding: 0 var(--gutter) 28px; display: grid; grid-template-rows: 80px 1fr auto; overflow-y: auto; }
.menu__top { display: flex; align-items: center; justify-content: space-between; }
.menu__list { align-self: center; display: grid; gap: 8px; padding: 32px 0; }
.menu__list a { display: inline-block; font-family: var(--f-display); font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.2; letter-spacing: -0.015em; text-decoration: none; transition: color 400ms var(--ease), transform 500ms var(--ease); }
.menu__list a:hover, .menu__list a:focus-visible, .menu__list a[aria-current="page"] { color: var(--teal-dark); }
.menu__list:hover a[aria-current="page"]:not(:hover), .menu__list:focus-within a[aria-current="page"]:not(:focus-visible) { color: #F5F7F8; }
.menu__list a:hover, .menu__list a:focus-visible { transform: translateX(10px); }
.menu__list li { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 900ms var(--ease); }
.menu.is-open .menu__list li { opacity: 1; transform: none; }
.menu.is-open .menu__list li:nth-child(1) { transition-delay: 100ms; }
.menu.is-open .menu__list li:nth-child(2) { transition-delay: 140ms; }
.menu.is-open .menu__list li:nth-child(3) { transition-delay: 180ms; }
.menu.is-open .menu__list li:nth-child(4) { transition-delay: 220ms; }
.menu.is-open .menu__list li:nth-child(5) { transition-delay: 260ms; }
.menu__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; }
.menu__foot .text-link { color: #F5F7F8; }
.menu .menu-toggle__dot { background: var(--teal-dark); }

/* Opening: hero and voice share one space, with one orb pinned behind both */
.opening { position: relative; --orb-rgb: 45 212 191; }
.opening__orb { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.opening__sticky { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; overflow: hidden; }
/* The orb is centred on the right edge in the hero, then glides to the left edge for the next section */
.orb-pos { translate: 50vw 40px; }
.orb { position: relative; width: min(104svh, 74vw); aspect-ratio: 1; }
.orb canvas { width: 100%; height: 100%; display: block; }

.hero { position: relative; z-index: 1; min-height: 100svh; display: grid; align-items: end; padding: 160px 0 clamp(96px, 16vh, 168px); }
.hero__field { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero__field i { position: absolute; border-radius: 50%; filter: blur(90px); }
.hero__field i:nth-child(1) { width: 56vw; height: 56vw; left: -16vw; top: 30%; background: radial-gradient(circle, rgb(var(--orb-rgb) / 0.16), transparent 65%); }
.hero__field i:nth-child(2) { width: 44vw; height: 44vw; left: 22vw; top: -16%; background: radial-gradient(circle, rgb(var(--orb-rgb) / 0.12), transparent 65%); }
@media (prefers-reduced-motion: no-preference) {
  .hero__field i:nth-child(1) { animation: drift-a 26s ease-in-out infinite alternate; }
  .hero__field i:nth-child(2) { animation: drift-b 32s ease-in-out infinite alternate; }
}
@keyframes drift-a { to { transform: translate3d(8vw, -6vh, 0) scale(1.1); } }
@keyframes drift-b { to { transform: translate3d(-6vw, 8vh, 0) scale(0.92); } }
.hero__title {
  font-family: var(--f-display);
  font-size: clamp(2.75rem, 5.6vw, 5.25rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--fg);
}
.br-wide { display: none; }
@media (min-width: 1024px) { .br-wide { display: inline; } }
.hero__sub { margin-top: 40px; max-width: 40ch; font-size: 1.1875rem; line-height: 1.65; color: var(--muted); }
.hero__actions { margin-top: 52px; display: flex; flex-wrap: wrap; gap: 14px; }

.voice { position: relative; z-index: 1; min-height: 100svh; display: grid; align-items: center; padding: 80px 0 0; }
.voice__copy { max-width: 540px; }
.has-motion .voice__copy { justify-self: end; }
.voice__caption { margin-top: 28px; color: var(--muted); font-size: 1.125rem; max-width: 44ch; }
.speakers { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 20px 48px; }
.speaker { display: inline-flex; align-items: flex-start; gap: 12px; }
.speaker strong, .speaker__dot { transition: color 500ms var(--ease), background-color 500ms var(--ease), transform 500ms var(--ease); }
.speaker:not(.is-speaking) strong { color: var(--muted); }
.speaker:not(.is-speaking) .speaker__dot { background: var(--line); }
.speaker.is-speaking .speaker__dot { transform: scale(1.4); }
.speaker > span:last-child { display: grid; gap: 6px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.speaker strong { font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; line-height: 1; letter-spacing: 0; text-transform: none; color: var(--fg); }
.speaker__dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 8px; background: var(--gold); }
.speaker--patient .speaker__dot { background: var(--teal); }

/* Relaiy photo treatment: black and white photography multiplied over teal, deepened by a teal gradient */
.tinted { background: var(--teal); isolation: isolate; }
/* The teal is baked into the photo files (scratchpad bake step), so nothing is blended live while animating */

/* Split words for scroll and load reveals; masks keep every word on the text baseline */
.w { display: inline-block; white-space: pre; }
.w-mask { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.14em; margin-bottom: -0.14em; }

/* Frontier: pinned full-bleed scene */
.frontier { position: relative; color: #F5F7F8; }
.frontier__stage { position: relative; display: grid; background: var(--deep); }
.frontier__media { position: absolute; inset: 0; overflow: hidden; z-index: 0; background: var(--teal); isolation: isolate; }
.frontier__media img { width: 100%; height: 100%; object-fit: cover; }
.frontier__media::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgb(var(--deep-rgb) / 0.3), rgb(var(--deep-rgb) / 0.82) 100%),
              linear-gradient(180deg, rgb(var(--deep-rgb) / 0.6) 0%, transparent 18%, transparent 80%, rgb(var(--deep-rgb) / 0.9) 100%);
}
.frontier__credit { position: absolute; right: var(--gutter); bottom: 24px; z-index: 1; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(245, 247, 248, 0.7); }
.frontier__layer { position: relative; z-index: 1; display: grid; place-items: center; align-content: center; text-align: center; min-height: 100svh; padding: 120px var(--gutter); }
.statement { font-family: var(--f-display); font-size: clamp(2rem, 3.9vw, 3.5rem); line-height: 1.25; letter-spacing: -0.015em; max-width: 24ch; color: #F5F7F8; text-wrap: balance; }
.statement .hl, .giant .hl { color: var(--teal-dark); }
.giant { font-family: var(--f-display); font-size: clamp(4.25rem, 13vw, 12rem); line-height: 1; letter-spacing: -0.035em; color: #F5F7F8; white-space: nowrap; }
.giant__label { margin-top: 32px; max-width: 44ch; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #D3DBE1; }
.figure-row { margin-top: clamp(56px, 8vh, 96px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(24px, 5vw, 80px); width: min(100%, 1000px); }
.figure-row dt { font-family: var(--f-display); font-size: 2.25rem; line-height: 1.2; color: #F5F7F8; }
.figure-row dd { margin-top: 10px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #AEB8C2; }
.figure-row sup a, .giant__label sup a { color: var(--teal-dark); }
.has-motion .frontier { height: 460svh; }
.has-motion .frontier__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.has-motion .frontier__layer { position: absolute; inset: 0; min-height: 0; }

.sources-block { padding: 48px 0 16px; }
.sources { display: grid; gap: 6px; counter-reset: src; max-width: 900px; }
.sources li { counter-increment: src; display: grid; grid-template-columns: 24px 1fr; color: var(--muted); font-size: 0.875rem; }
.sources li::before { content: counter(src); font-weight: 600; color: var(--accent); }
.sources li:target { color: var(--fg); }

/* One continuous sound wave from the logo: each seam straddles a section boundary
   and picks up where the previous one ran off screen, across sections and pages */
main section { position: relative; }
main section > .wrap { position: relative; z-index: 1; }
.seam { position: relative; height: 0; z-index: 0; pointer-events: none; }
.seam svg { position: absolute; left: 0; width: 100%; top: -170px; height: 340px; overflow: visible; }
.seam rect { fill: var(--teal); opacity: 0.09; transform-box: fill-box; transform-origin: 50% 50%; }
.seam .bar { transform-box: fill-box; transform-origin: 50% 50%; }
main > .seam:last-child { margin-bottom: 170px; }
/* Between scrolls the wave keeps talking: a ripple runs left to right and off the edge */
@media (prefers-reduced-motion: no-preference) {
  .is-live .bar { animation: bar-pulse 1.6s ease-in-out infinite alternate; animation-delay: calc(var(--i) * 60ms - 8s); }
}
@keyframes bar-pulse { from { transform: scaleY(0.62); } to { transform: scaleY(1.14); } }

/* Inner page header */
.page-hero { padding: clamp(150px, 18vw, 220px) 0 clamp(96px, 10vw, 140px); }
.page-hero__title { font-family: var(--f-display); font-size: clamp(2.75rem, 5.2vw, 5rem); line-height: 1.1; letter-spacing: -0.025em; max-width: 17ch; text-wrap: balance; }
.page-hero__intro { margin-top: 32px; max-width: 52ch; font-size: 1.1875rem; line-height: 1.6; color: var(--muted); }

/* Home: links to the other pages */
.explore { padding: var(--section-y) 0; }
.explore__list { margin-top: clamp(48px, 5vw, 72px); border-top: 1.5px solid var(--fg); }
.explore__row {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) 132px 40px; align-items: center; gap: 32px;
  padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: padding 500ms var(--ease), background-color 500ms var(--ease);
}
.explore__title { font-family: var(--f-display); font-size: clamp(1.625rem, 2.6vw, 2.375rem); line-height: 1.2; letter-spacing: -0.015em; }
.explore__text { color: var(--muted); }
.explore__thumb { display: block; width: 132px; height: 88px; border-radius: 6px; overflow: hidden; opacity: 0; transform: scale(0.92); transition: opacity 500ms var(--ease), transform 700ms var(--ease); }
.explore__thumb img { width: 100%; height: 100%; object-fit: cover; }
.explore__arrow { font-size: 1.5rem; color: var(--accent); justify-self: end; transition: transform 500ms var(--ease); }
.explore__row:hover, .explore__row:focus-visible { padding-inline: 20px; background: var(--surface); }
.explore__row:hover .explore__thumb, .explore__row:focus-visible .explore__thumb { opacity: 1; transform: none; }
.explore__row:hover .explore__arrow { transform: translateX(6px); }

/* Home: contact prompt */
.cta { padding: clamp(112px, 12vw, 176px) 0 var(--section-y); }
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta h2 { font-size: clamp(2.5rem, 4.6vw, 4.25rem); }

/* Next page band: the wave above it runs on into the next page */
.next { padding: clamp(80px, 9vw, 128px) 0; }
.next__link { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 24px; padding: 36px 0; border-top: 1.5px solid var(--fg); border-bottom: 1px solid var(--line); text-decoration: none; }
.next__label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.next__title { font-family: var(--f-display); font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.15; letter-spacing: -0.02em; }
.next__arrow { font-size: 2rem; color: var(--accent); transition: transform 500ms var(--ease); }
.next__link:hover .next__arrow { transform: translateX(10px); }

.contact--page { padding-top: clamp(150px, 18vw, 220px); }
.contact--page .page-hero__title { font-size: clamp(2.75rem, 5vw, 4.5rem); }

/* How a consultation works */
.how { padding: var(--section-y) 0; }
.steps { margin-top: clamp(56px, 6vw, 80px); display: grid; gap: 10px; }
.step { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.step__tab button { width: 100%; display: flex; align-items: baseline; gap: 16px; background: none; border: 0; padding: 24px 26px; text-align: left; cursor: default; }
.step__num { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; color: var(--accent); }
.step__label { font-family: var(--f-display); font-size: 1.5rem; line-height: 1.25; }
.step__panel { padding: 0 26px 28px; }
.step__kicker { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); }
.step__text h4 { margin-top: 12px; font-family: var(--f-display); font-size: clamp(1.75rem, 2.6vw, 2.375rem); line-height: 1.22; letter-spacing: -0.015em; text-wrap: balance; }
.step__text p:last-child { margin-top: 16px; color: var(--muted); max-width: 52ch; font-size: 1.0625rem; }
@media (min-width: 960px) {
  .js .steps { display: flex; height: 460px; gap: 10px; }
  .js .step { flex: 0 0 68px; display: flex; flex-direction: column; transition: flex-grow 800ms var(--ease), flex-basis 800ms var(--ease), background-color 500ms var(--ease); }
  .js .step:not(.is-active):hover { background: var(--bg); }
  .js .step.is-active { flex: 1 1 auto; background: var(--deep); border-color: var(--deep); color: #F5F7F8; }
  .js .step__tab { height: 100%; }
  .js .step:not(.is-active) .step__tab button { height: 100%; flex-direction: column; align-items: center; justify-content: space-between; padding: 24px 0; cursor: pointer; }
  .js .step:not(.is-active) .step__label { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 1.25rem; white-space: nowrap; }
  .js .step.is-active .step__tab { height: auto; }
  .js .step.is-active .step__tab button { padding: 28px 44px 0; }
  .js .step.is-active .step__num { color: var(--teal-dark); }
  .js .step.is-active .step__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .js .step__panel { flex: 1; display: flex; align-items: flex-end; padding: 0 44px 44px; min-width: 560px; }
  .js .step.is-active .step__kicker { color: var(--teal-dark); }
  .js .step.is-active .step__text p:last-child { color: #D4E6E3; }
}
@media (min-width: 960px) {
  .js .steps--three .step { flex-basis: 96px; }
  .js .steps--three .step.is-active { flex-basis: auto; }
}
@media (min-width: 960px) and (prefers-reduced-motion: no-preference) {
  .js .step__panel:not([hidden]) { animation: fade-up 700ms var(--ease) 200ms both; }
}
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Safety cards */
.safety { padding: var(--section-y) 0; }
.cards { margin-top: clamp(56px, 6vw, 80px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 340px; padding: clamp(28px, 3vw, 40px);
  border-radius: var(--radius);
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--deep); color: #F5F7F8;
}
.card__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--teal); isolation: isolate; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(var(--deep-rgb) / 0.05) 0%, rgb(var(--deep-rgb) / 0.62) 50%, rgb(var(--deep-rgb) / 0.95) 100%); transition: opacity 800ms var(--ease); }
.card:hover .card__media::after { opacity: 0.85; }
.card__label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-dark); }
.card h3 { margin-top: 12px; font-family: var(--f-display); font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1.2; letter-spacing: -0.015em; }
.card p:last-child { margin-top: 14px; color: #D4E6E3; font-size: 1rem; line-height: 1.6; max-width: 52ch; }

.limits { margin-top: clamp(80px, 9vw, 128px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(32px, 5vw, 80px); padding-top: 40px; border-top: 1.5px solid var(--fg); }
.limits__title { font-family: var(--f-display); font-size: 2rem; line-height: 1.3; }
.limits__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 44px; }
.limits__list li { position: relative; padding: 16px 0 16px 26px; color: var(--muted); border-bottom: 1px solid var(--line); }
.limits__list li::before { content: "\2212"; position: absolute; left: 0; top: 15px; color: var(--accent); font-weight: 600; }

/* Languages */
.languages { padding: var(--section-y) 0; }
.languages__figure { position: relative; margin: clamp(56px, 6vw, 80px) 0 0; height: clamp(320px, 50vw, 620px); overflow: hidden; border-radius: var(--radius); background: var(--teal); isolation: isolate; }
.languages__figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.lang-table { margin: 64px auto 0; max-width: 900px; }
.lang-table table { width: 100%; border-collapse: collapse; }
.lang-table th { text-align: left; padding: 0 0 14px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-bottom: 1.5px solid var(--fg); }
.lang-table td { padding: 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.lang-table__empty td { padding: 40px 0; }
.lang-table__empty p { font-family: var(--f-display); font-size: 1.625rem; line-height: 1.4; max-width: 32ch; margin-bottom: 22px; }
.lang-status { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 9px; border-radius: 999px; border: 1px solid currentColor; }
.lang-status--validated { color: var(--accent); }
.lang-status--evaluation { color: var(--muted); }

/* Who it is for */
.settings { padding: var(--section-y) 0; }
.strip { margin-top: clamp(56px, 6vw, 72px); display: grid; gap: 10px; }
.strip__item { position: relative; isolation: isolate; overflow: hidden; contain: paint; border-radius: var(--radius); min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--teal); color: #F5F7F8; }
.strip__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 1; transition: opacity 700ms var(--ease), transform 1600ms var(--ease); }
.strip__item::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(var(--deep-rgb) / 0) 0%, rgb(var(--deep-rgb) / 0.35) 55%, rgb(var(--deep-rgb) / 0.92) 100%); transition: background-color 700ms var(--ease); }
.strip__btn { background: none; border: 0; padding: 0 20px; text-align: left; cursor: default; display: grid; gap: 6px; color: inherit; }
.strip__btn::after { content: ""; position: absolute; inset: 0; }
.strip__kicker { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-dark); }
.strip__label { font-family: var(--f-display); font-size: 2rem; line-height: 1.15; white-space: nowrap; transform-origin: left bottom; }
.strip__note { padding: 10px 20px 24px; color: #D4E6E3; font-size: 1rem; max-width: 34ch; }
@media (min-width: 960px) {
  .js .strip { display: flex; height: 540px; }
  /* Panels resize, but their photos keep a fixed size and are only revealed or clipped, and labels scale
     with transforms, so moving between panels never re-rasterises images or re-flows text */
  .js .strip__item { flex: 1 1 0; min-height: 0; transition: flex-grow 750ms cubic-bezier(0.22, 1, 0.36, 1); }
  .js .strip__item.is-active { flex-grow: 3.6; }
  .js .strip__item img { left: 50%; right: auto; width: 760px; max-width: none; translate: -50% 0; will-change: transform; }
  .js .strip__item:not(.is-active)::before { background-color: rgb(var(--deep-rgb) / 0.35); }
  .js .strip__item.is-active img { transform: scale(1.03); }
  .js .strip__btn { cursor: pointer; }
  .js .strip__label { font-size: 1.375rem; white-space: normal; transition: transform 750ms cubic-bezier(0.22, 1, 0.36, 1); }
  .js .strip__item.is-active .strip__label { white-space: nowrap; transform: scale(1.45); }
  .js .strip__note { opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 500ms var(--ease), transform 700ms var(--ease), visibility 0s linear 500ms; }
  .js .strip__item.is-active .strip__note { opacity: 1; visibility: visible; transform: none; transition-delay: 300ms, 300ms, 0s; }
}

/* Team */
.team { padding: var(--section-y) 0; }
.team__grid { margin: clamp(56px, 6vw, 80px) auto 0; max-width: 1040px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; }
.person { border-top: 1.5px solid var(--fg); padding-top: 28px; display: grid; gap: 10px; align-content: start; }
.person__mono { width: 60px; height: 60px; border-radius: var(--radius); margin-bottom: 20px; display: grid; place-items: center; background: var(--deep); color: var(--teal-dark); font-family: var(--f-logo); font-size: 1.125rem; font-weight: 600; }
.person h3 { font-family: var(--f-display); font-size: 2.375rem; line-height: 1.2; letter-spacing: -0.015em; }
.person__role { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.person p:last-child { margin-top: 8px; color: var(--muted); max-width: 46ch; font-size: 1.0625rem; }

/* Contact */
.contact { padding: var(--section-y) 0; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px clamp(40px, 6vw, 112px); align-items: start; }
.contact__intro > p:not(.tag) { margin-top: 28px; color: var(--muted); font-size: 1.125rem; max-width: 42ch; }
.price { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.price__headline { font-family: var(--f-display); font-size: 1.875rem; line-height: 1.3; }
.price p:last-child { margin-top: 10px; color: var(--muted); max-width: 44ch; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
.field { display: grid; gap: 8px; align-content: start; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-size: 0.875rem; font-weight: 600; color: var(--fg); padding: 0; }
.field__opt { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select {
  width: 100%; min-height: 52px; padding: 12px 14px;
  background: #FFFFFF; color: var(--ink);
  border: 1px solid #A9B4BE; border-radius: 8px;
  font-size: 1rem;
  transition: border-color 250ms var(--ease);
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230F1E2E' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field input:hover, .field select:hover { border-color: var(--ink); }
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--teal-text); outline-offset: 2px; border-color: var(--teal-text); }
.field [aria-invalid="true"] { border-color: #B42318; }
.field__hint { font-size: 0.875rem; color: var(--muted); }
.field__error { font-size: 0.875rem; color: #B42318; font-weight: 600; }
.radios { display: flex; gap: 28px; }
.radio { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; min-height: 44px; font-weight: 400 !important; font-size: 1rem !important; }
.radio input { width: 20px; height: 20px; accent-color: var(--teal-text); margin: 0; }
.form__privacy { margin-top: 28px; color: var(--muted); font-size: 0.875rem; }
.form__privacy a { color: var(--fg); text-underline-offset: 3px; }
.form__submit { margin-top: 24px; }
.form__status { margin-top: 18px; }
.form__status p { padding: 14px 16px; border-radius: 8px; border: 1px solid var(--teal-text); background: rgba(14, 148, 136, 0.06); color: var(--fg); }
.form__status p.is-error { border-color: #B42318; background: rgba(180, 35, 24, 0.05); }

/* Footer */
.footer { padding: 96px 0 36px; background: var(--deep); color: #F5F7F8; --fg: #F5F7F8; --bg: #0A3D3A; --muted: #BFD6D2; --line: #22524E; --accent: #2DD4BF; --logo-teal: #2DD4BF; }
.footer__bar a { color: inherit; text-underline-offset: 3px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 40px; }
.footer__brand p { margin-top: 22px; color: var(--muted); max-width: 36ch; font-size: 0.9375rem; }
.footer__head { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px; }
.footer__col ul { display: grid; gap: 0; }
.footer__col a { display: inline-block; padding-block: 8px; color: var(--muted); text-decoration: none; font-size: 0.9375rem; transition: color 300ms var(--ease); }
.footer__col a:hover { color: var(--fg); }
.footer__bar { margin-top: 80px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; font-size: 0.8125rem; color: var(--muted); }

/* Languages: language, evaluation, live */
.pipeline { margin: 64px auto 0; max-width: 1040px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: none; }
.pipeline li { position: relative; padding: 28px 28px 0 0; border-top: 1.5px solid var(--fg); display: grid; gap: 8px; }
.pipeline li + li { padding-left: 28px; }
.pipeline li:not(:last-child)::after { content: "\2192"; position: absolute; right: -10px; top: 24px; color: var(--accent); font-size: 1.25rem; }
.pipeline__num { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); }
.pipeline__name { font-family: var(--f-display); font-size: clamp(1.75rem, 2.6vw, 2.375rem); line-height: 1.2; letter-spacing: -0.015em; }
.pipeline li:last-child .pipeline__name { color: var(--accent); }
.pipeline__text { color: var(--muted); }
.pipeline__note { margin: 56px auto 0; max-width: 56ch; text-align: center; font-family: var(--f-display); font-size: 1.375rem; line-height: 1.45; color: var(--fg); }

/* The Founding Team */
.team--page { padding: clamp(150px, 18vw, 220px) 0 var(--section-y); }
.team--page .team__grid { margin-top: clamp(56px, 6vw, 88px); max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(32px, 4vw, 64px); }
.team--page .person { border-top: 0; padding-top: 0; gap: 0; }
.person__photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--deep); display: grid; place-items: center; }
.person__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.person__initials { font-family: var(--f-logo); font-weight: 600; font-size: clamp(3rem, 7vw, 5.5rem); color: var(--teal-dark); letter-spacing: 0.04em; }
.person__head { margin-top: 24px; padding-top: 20px; border-top: 1.5px solid var(--fg); display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.person__name { font-family: var(--f-display); font-size: clamp(1.875rem, 3vw, 2.5rem); line-height: 1.2; letter-spacing: -0.015em; }
.team--page .person__role { margin-top: 8px; }
.person__link { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; color: var(--fg); transition: background-color 300ms var(--ease), color 300ms var(--ease); }
.person__link svg { width: 22px; height: 22px; fill: currentColor; }
.person__link:hover { background: var(--teal-text); color: #FFFFFF; }
.person__bio { margin-top: 14px; color: var(--muted); max-width: 46ch; font-size: 1.0625rem; }

/* Contact: title and form only */
.contact--page .contact__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }

/* The orb uncovers the voice copy as it passes: text appears where the orb has already crossed */
.has-motion .voice__copy.is-unveiling {
  -webkit-mask-image: linear-gradient(90deg, transparent calc(var(--cut, 100%) - 60px), #000 calc(var(--cut, 100%) + 60px));
  mask-image: linear-gradient(90deg, transparent calc(var(--cut, 100%) - 60px), #000 calc(var(--cut, 100%) + 60px));
}

@media (max-width: 759px) {
  .pipeline { grid-template-columns: 1fr; gap: 28px; }
  .pipeline li, .pipeline li + li { padding: 20px 0 0; }
  .pipeline li:not(:last-child)::after { display: none; }
  .team--page .team__grid { grid-template-columns: 1fr; }
  .contact--page .contact__grid { grid-template-columns: 1fr; }
}

.not-found { min-height: 72svh; display: grid; align-items: center; }
.not-found__actions { margin-top: 44px; }

/* Tablet */
@media (max-width: 1023px) {
  .limits { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
  .orb-pos { translate: 34vw 22svh; }
  .orb { width: min(70svh, 92vw); }
  .hero { align-items: start; padding-top: 140px; }
  .voice { align-items: start; padding-top: 130px; }
  .has-motion .voice__copy { justify-self: start; }
}

/* Phone */
@media (max-width: 759px) {
  .masthead__link { display: none; }
  .masthead__inner { height: 68px; }
  .logo { font-size: 24px; }
  .hero { padding: 116px 0 80px; }
  .hero__actions .btn { width: 100%; }
  .orb-pos { translate: 40vw 36svh; }
  .orb { width: 100vw; }
  .speaker strong { font-size: 1.25rem; }
  .figure-row { grid-template-columns: 1fr; gap: 22px; }
  .figure-row dt { font-size: 1.875rem; }
  .frontier__layer { padding-inline: 16px; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 300px; }
  .limits__list { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: 1fr; gap: 48px; }
  .contact__grid { grid-template-columns: 1fr; }
  .form__grid { grid-template-columns: 1fr; }
  .form__submit { width: 100%; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__bar { flex-direction: column; }
  .step__tab button { padding: 20px; }
  .step__panel { padding: 0 20px 24px; }
  .explore__row { grid-template-columns: 1fr 32px; gap: 8px 16px; }
  .explore__thumb { display: none; }
  .explore__text { grid-column: 1; grid-row: 2; }
  .explore__arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .next__link { grid-template-columns: 1fr auto; }
  .next__label { grid-column: 1 / -1; }
  .seam svg { top: -110px; height: 220px; }
}

/* Legal pages */
.doc { padding: clamp(150px, 18vw, 220px) 0 128px; }
.doc__inner { max-width: 820px; }
.doc__status { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.doc h1 { font-family: var(--f-display); font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1.15; margin-bottom: 32px; }
.doc h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 48px 0 12px; }
.doc p { margin-top: 14px; max-width: 68ch; color: var(--muted); }
.doc a { color: var(--accent); text-underline-offset: 3px; }
.doc__back { margin-top: 56px; }
.doc-page .masthead { position: absolute; }
