/* ProFlow Co Professional Services — style.
   One typeface, two voices: Recursive Mono (the work: code, labels, facts) and Recursive Sans
   (the words). Paper, blue-black ink, ultramarine, and a translator's pink highlighter. */

@property --mono { syntax: "<number>"; inherits: true; initial-value: 0; }

:root {
  --paper: #F2F3F0;
  --paper-2: #E9EAE5;
  --card: #FBFBF9;
  --white: #FFFFFF;
  --ink: #0E1330;
  --ink-2: #3A3F58;
  --ink-3: #62677F;
  --line: #D5D8D2;
  --line-2: #E3E5E0;
  --ultra: #2638D9;
  --ultra-deep: #1A2699;
  --ultra-soft: #8C97EE;
  --tide: #E4E7FA;
  --tide-2: #CDD3F5;
  --tide-3: #F4F5FD;
  --mark: #FF8CB6;
  --mark-deep: #E0457F;
  --night: #0E1330;
  --night-2: #161C40;
  --night-3: #1F2652;
  --night-line: #2A3163;
  --on-night: #E9EBF5;
  --on-night-2: #A3A9C7;

  --sans: "Recursive", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --monof: "Recursive", ui-monospace, "Cascadia Mono", "SF Mono", Consolas, Menlo, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --wrap: 1320px;
  --gutter: clamp(20px, 4.4vw, 64px);
  --header-h: 72px;
  --r: 14px;
  --r-lg: 22px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; 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(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  font-variation-settings: "MONO" 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 780; }
button { font: inherit; color: inherit; }
address { font-style: normal; }
::selection { background: var(--ultra); color: #fff; }
:focus-visible { outline: 2px solid var(--ultra); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 10px; text-decoration: none; transition: top 200ms var(--ease-out); }
.skip:focus { top: 12px; }

/* the two voices */
.mono, .mono-word, .fm { font-family: var(--monof); font-variation-settings: "MONO" 1; }
.fs { font-family: var(--sans); font-variation-settings: "MONO" 0; }
.mono-word { letter-spacing: -0.02em; }

.eyebrow {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 0 0 18px;
  font-family: var(--monof); font-variation-settings: "MONO" 1;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ultra);
}
.eyebrow::before {
  content: ""; flex: none; width: 9px; height: 9px; margin-top: 0.42em; border-radius: 50%;
  border: 2.5px solid currentColor;
}
.eyebrow--light { color: #C9CEF7; }
.eyebrow--night { color: var(--ultra-soft); }

.h2 { font-size: clamp(32px, 4.3vw, 60px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 780; }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--ink-2); }
.caption { font-family: var(--monof); font-variation-settings: "MONO" 1; font-size: 12px; color: var(--ink-3); letter-spacing: 0.02em; }

/* highlighter: swept in when the sentence arrives */
mark.hl {
  color: inherit;
  background: linear-gradient(transparent 56%, var(--mark) 56%, var(--mark) 92%, transparent 92%) no-repeat 0 0 / 100% 100%;
  padding: 0 0.06em;
  margin: 0 -0.06em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size 1000ms var(--ease-out) 350ms;
}
.js mark.hl { background-size: 0% 100%; }
.js .is-in mark.hl, .js mark.hl.is-in, html.static mark.hl { background-size: 100% 100%; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-size: 15.5px; font-weight: 650; line-height: 1.2; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 220ms ease, color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.btn:active { transform: scale(0.97); }
.btn__arrow { display: inline-block; transition: transform 260ms var(--ease-out); }
.btn--primary { background: var(--ultra); color: #fff; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--light { background: #fff; color: var(--ultra); }
.btn--sm { padding: 10px 18px; font-size: 14.5px; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--ultra-deep); }
  .btn--ghost:hover { background: var(--ink); color: var(--paper); }
  .btn--light:hover { background: var(--tide); }
  .btn:hover .btn__arrow { transform: translateX(3px); }
}

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: var(--header-h);
  transition: background-color 260ms ease, box-shadow 260ms ease, backdrop-filter 260ms ease;
}
.site-header.is-scrolled {
  background: rgba(242, 243, 240, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-dark { color: #fff; }
.site-header.is-dark.is-scrolled { background: rgba(14, 19, 48, 0.88); box-shadow: 0 1px 0 var(--night-line); }
.site-header.is-dark .brand { color: #fff; }
.site-header.is-dark .brand__mark path, .site-header.is-dark .brand__mark rect { fill: #fff; }
.site-header.is-dark .nav-toggle { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.header__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__mark svg { width: 100%; height: 100%; }
.brand__word { font-size: 22px; font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.brand__pro { font-variation-settings: "MONO" 1; letter-spacing: -0.04em; }
.brand__flow { font-variation-settings: "MONO" 0; }
.brand--light { color: #fff; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav__link { position: relative; font-size: 15px; font-weight: 560; text-decoration: none; padding: 6px 0; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ultra);
  transform: scaleX(0); transform-origin: left center; transition: transform 300ms var(--ease-out);
}
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .nav__link:hover::after { transform: scaleX(1); } }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; position: relative; z-index: 70;
    padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; cursor: pointer;
    font-family: var(--monof); font-variation-settings: "MONO" 1; font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  }
  .nav-toggle__bars { display: grid; gap: 4px; }
  .nav-toggle__bars i { display: block; width: 16px; height: 1.5px; background: currentColor; transition: transform 260ms var(--ease-out); }
  .menu-open .nav-toggle { color: #fff; border-color: rgba(255,255,255,.5); }
  .menu-open .nav-toggle__bars i:first-child { transform: translateY(2.75px) rotate(45deg); }
  .menu-open .nav-toggle__bars i:last-child { transform: translateY(-2.75px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 0; z-index: 65;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px;
    padding: 90px var(--gutter) 40px;
    background: var(--ultra); color: #fff;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 520ms var(--ease-drawer);
    visibility: hidden;
  }
  .menu-open .nav { clip-path: inset(0 0 0 0); visibility: visible; }
  .menu-open .brand { color: #fff; position: relative; z-index: 70; }
  .menu-open .brand .brand__mark path, .menu-open .brand .brand__mark rect { fill: #fff; }
  .nav__link { font-size: clamp(34px, 9vw, 52px); font-weight: 780; letter-spacing: -0.035em; padding: 4px 0; }
  .nav__link::after { background: var(--mark); height: 3px; }
  .nav__cta { margin-top: 26px; background: #fff; color: var(--ultra); }
  .menu-open .site-header { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  body.menu-open { overflow: hidden; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: max(700px, 100svh);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: var(--header-h);
  background: var(--paper);
}
.hero.is-grabbable { cursor: grab; }
.hero.is-dragging { cursor: grabbing; -webkit-user-select: none; user-select: none; }
.hero__river { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; }
.hero__p {
  position: absolute; z-index: 0; right: var(--gutter); top: calc(var(--header-h) + 22px);
  width: clamp(90px, 15vw, 240px);
}
.hero__p svg { width: 100%; height: auto; }
.has-river .hero__p { display: none; }
.hero__copy { position: relative; z-index: 1; padding-bottom: clamp(28px, 5vh, 56px); }
.hero__eyebrow { margin-bottom: clamp(16px, 2.4vh, 26px); }
.hero__eyebrow::before { display: none; }
.hero__eyebrow span { display: inline-flex; align-items: flex-start; gap: 10px; }
.hero__eyebrow span::before { content: ""; flex: none; width: 9px; height: 9px; margin-top: 0.42em; border-radius: 50%; border: 2.5px solid currentColor; }
.hero__title { font-size: clamp(37px, 7.1vw, 114px); line-height: 0.97; letter-spacing: -0.045em; font-weight: 800; }
.hline { display: block; width: fit-content; max-width: 100%; overflow: hidden; padding: 0 0.05em 0.07em 0; margin-bottom: -0.07em; }
.hline__in { display: inline-block; }
.hline--work .hline__in { font-variation-settings: "MONO" 1; letter-spacing: -0.035em; font-weight: 760; }
.hline--und .hline__in { font-variation-settings: "MONO" var(--mono); }
.hero__lede { max-width: 33em; margin: clamp(18px, 3vh, 30px) 0 0; }
.hero__ctas { margin-top: clamp(22px, 3.4vh, 34px); }
.hero__ctas-in { display: inline-flex; flex-wrap: wrap; gap: 12px; }
.hero__foot { position: relative; z-index: 1; border-top: 1px solid var(--line); background: var(--paper); }
.hero__foot-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 58px; }
.hero__index { list-style: none; display: flex; flex-wrap: wrap; margin: 0; padding: 0; }
.hero__index li + li { border-left: 1px solid var(--line); }
.hero__index a { display: block; padding: 4px 18px; font-size: 14px; font-weight: 580; text-decoration: none; color: var(--ink-2); transition: color 200ms ease; }
.hero__index li:first-child a { padding-left: 0; }
@media (hover: hover) and (pointer: fine) { .hero__index a:hover { color: var(--ultra); } }
.hero__legend { margin: 0; font-size: 13px; color: var(--ink-3); text-align: right; }
.hero:not(.has-river) .hero__legend { visibility: hidden; }
.hero__legend .mono { color: var(--ultra); font-weight: 700; margin-right: 4px; }
@media (max-width: 1180px) { .hero__legend { display: none; } }
@media (max-width: 720px) {
  .hero { min-height: max(640px, 100svh); }
  .hero__foot { display: none; }
  .hero__copy { padding-bottom: 34px; }
  .hero__lede { font-size: 17.5px; }
  .hero__ctas-in .btn { padding: 13px 20px; }
}

/* ---------- sections ---------- */
.sec { position: relative; padding: clamp(84px, 11vw, 150px) 0; }
.sec__head { max-width: 900px; margin-bottom: clamp(40px, 5vw, 68px); }
.sec__head--split { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.sec__head--split .sec__lede { margin: 0; }
.sec__lede { font-size: clamp(17.5px, 1.4vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 40em; margin: 22px 0 0; }
@media (max-width: 800px) { .sec__head--split { grid-template-columns: 1fr; gap: 0; } .sec__head--split .sec__lede { margin-top: 20px; } }

/* reveal system: class toggles, CSS does the easing */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
.js .rv.is-in { opacity: 1; transform: none; }
html.static .rv, html.io .rv.is-in { opacity: 1; transform: none; }

/* ---------- why one team ---------- */
.why { border-top: 1px solid var(--line); }
.why__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.why__body { margin-top: 28px; color: var(--ink-2); max-width: 36em; }
.why__fig { margin: 0; padding: clamp(18px, 2.4vw, 30px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.why__fig .caption { margin-top: 14px; }
.handover-svg { width: 100%; height: auto; }
@media (max-width: 960px) { .why__grid { grid-template-columns: 1fr; } }

/* ---------- services: cards ---------- */
.services { background: linear-gradient(var(--paper), var(--paper-2)); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  transition: transform 380ms var(--ease-out), box-shadow 380ms var(--ease-out), border-color 240ms ease;
}
.card.rv { transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out), box-shadow 380ms var(--ease-out), border-color 240ms ease; }
.card__link { position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.card__link:focus-visible { outline-offset: -4px; }
.card__art { background: var(--tide); padding: clamp(10px, 1.6vw, 20px) clamp(10px, 1.6vw, 20px) 4px; }
.scene { width: 100%; height: auto; overflow: visible; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: clamp(22px, 2.4vw, 32px); }
.card__title { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.03em; line-height: 1.1; font-weight: 780; }
.fromto { display: grid; gap: 8px; margin: 16px 0 20px; }
.fromto div { display: grid; grid-template-columns: 50px 1fr; gap: 12px; align-items: baseline; }
.fromto dt { font-family: var(--monof); font-variation-settings: "MONO" 1; font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ultra); }
.fromto dd { margin: 0; font-size: 16.5px; line-height: 1.45; color: var(--ink-3); }
.fromto div + div dd { color: var(--ink); font-weight: 560; }
.ticks { list-style: none; margin: 0 0 24px; padding: 0; font-size: 15px; color: var(--ink-2); }
.ticks li { position: relative; padding-left: 20px; margin: 4px 0; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.66em; width: 7px; height: 7px; border-radius: 50%; background: var(--ultra); }
.more { margin-top: auto; display: inline-flex; gap: 8px; align-items: center; font-weight: 650; font-size: 15px; color: var(--ultra); }
.more__arrow { transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-4px); border-color: var(--tide-2); box-shadow: 0 26px 50px -30px rgba(14, 19, 48, 0.45); }
  .card:hover .more__arrow { transform: translateX(4px); }
}
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* ---------- journey: one button, code to customer ---------- */
.journey { position: relative; background: var(--night); color: var(--on-night); padding-top: clamp(84px, 10vw, 140px); }
.journey .h2 { color: #fff; }
.journey .sec__lede { color: var(--on-night-2); }
.journey__head { padding-bottom: clamp(24px, 4vw, 48px); }
.journey__track { position: relative; }
.journey__sticky { padding: 20px 0 clamp(80px, 10vw, 130px); }
.journey__grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.3fr); gap: clamp(32px, 4.4vw, 64px); align-items: center; }
.js.journey-pinned .journey__track { height: 420vh; }
.js.journey-pinned .journey__sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding: var(--header-h) 0 0; }
.js.journey-pinned .journey__sticky > .wrap { width: 100%; }

.jsteps { list-style: none; margin: 0; padding: 0; }
.jstep { position: relative; padding: 16px 0 16px 22px; border-left: 2px solid var(--night-line); transition: border-color 300ms ease; }
.jstep.is-active { border-left-color: var(--mark); }
.jstep__btn { display: flex; align-items: center; gap: 14px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.jstep__n {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--night-line); font-family: var(--monof); font-variation-settings: "MONO" 1; font-size: 13px; font-weight: 700; color: var(--on-night-2);
  transition: background-color 300ms ease, border-color 300ms ease, color 300ms ease;
}
.jstep__t { font-size: clamp(18px, 1.6vw, 22px); font-weight: 720; letter-spacing: -0.02em; color: var(--on-night-2); transition: color 300ms ease; }
.jstep__p { margin: 8px 0 0 46px; font-size: 15.5px; line-height: 1.55; color: var(--on-night-2); opacity: 0.55; transition: opacity 300ms ease; max-width: 30em; }
.jstep.is-active .jstep__n { background: var(--ultra); border-color: var(--ultra); color: #fff; }
.jstep.is-active .jstep__t { color: #fff; }
.jstep.is-active .jstep__p { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .jstep__btn:hover .jstep__t { color: #fff; } }

.jstage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 236px; grid-template-rows: auto auto; gap: 18px 26px; align-items: center; }
.jeditor { grid-row: 1 / span 2; min-width: 0; background: var(--night-2); border: 1px solid var(--night-line); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
.jeditor__bar { display: flex; align-items: center; gap: 4px; padding: 9px 10px; border-bottom: 1px solid var(--night-line); overflow: hidden; }
.jeditor__dots { display: flex; gap: 6px; margin-right: 10px; }
.jeditor__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--night-line); }
.jeditor__dots i:first-child { background: var(--mark); }
.jtab { font-family: var(--monof); font-variation-settings: "MONO" 1; font-size: 12px; padding: 5px 10px; border-radius: 7px; color: var(--on-night-2); white-space: nowrap; transition: background-color 260ms ease, color 260ms ease; }
.jeditor__body { display: grid; min-height: 318px; }
.jpane { grid-area: 1 / 1; min-width: 0; opacity: 0; transform: translateY(10px); filter: blur(3px); visibility: hidden; transition: opacity 380ms var(--ease-out), transform 480ms var(--ease-out), filter 380ms var(--ease-out), visibility 0s linear 480ms; }
.jstage[data-step="1"] .jtab[data-for="1"], .jstage[data-step="2"] .jtab[data-for="2"], .jstage[data-step="3"] .jtab[data-for="3"], .jstage[data-step="4"] .jtab[data-for="4"] { background: var(--night-3); color: #fff; }
.jstage[data-step="1"] .jpane[data-pane="1"], .jstage[data-step="2"] .jpane[data-pane="2"], .jstage[data-step="3"] .jpane[data-pane="3"], .jstage[data-step="4"] .jpane[data-pane="4"] { opacity: 1; transform: none; filter: none; visibility: visible; transition-delay: 0s; }
.code { margin: 0; padding: 18px 18px 18px 0; font-family: var(--monof); font-variation-settings: "MONO" 1; font-size: 13px; line-height: 1.85; color: #C9CEF0; white-space: pre; overflow-x: auto; tab-size: 2; }
.code .ln { display: inline-block; width: 38px; padding-right: 14px; text-align: right; color: #4B5286; -webkit-user-select: none; user-select: none; }
.code .k { color: var(--ultra-soft); }
.code .f { color: #fff; }
.code .tg { color: #9DB0FF; }
.code .s { color: #FF9EC0; }
.code .s2 { color: #E9EBF5; }
.hl-line { background: linear-gradient(rgba(255, 140, 182, 0.2), rgba(255, 140, 182, 0.2)) no-repeat 0 0 / 0% 100%; border-radius: 3px; transition: background-size 700ms var(--ease-out) 250ms; }
.jstage[data-step="1"] [data-pane="1"] .hl-line, .jstage[data-step="2"] [data-pane="2"] .hl-line { background-size: 100% 100%; }
.jtable { width: 100%; border-collapse: collapse; font-family: var(--monof); font-variation-settings: "MONO" 1; font-size: 13px; }
.jtable th { text-align: left; font-weight: 500; color: #6F769C; padding: 14px 16px 10px; border-bottom: 1px solid var(--night-line); }
.jtable td { padding: 10px 16px; border-bottom: 1px solid rgba(42, 49, 99, 0.6); color: #E9EBF5; }
.jtable td:first-child { color: #FF9EC0; }
.jtable td:nth-child(3) { color: #6F769C; }
.jtable td.ok { color: var(--ultra-soft); font-weight: 700; }
.jtable tbody tr, .jqa li { opacity: 0; transform: translateX(-8px); transition: opacity 360ms var(--ease-out), transform 460ms var(--ease-out); }
.jstage[data-step="3"] .jtable tbody tr, .jstage[data-step="4"] .jqa li { opacity: 1; transform: none; }
.jtable tbody tr:nth-child(2), .jqa li:nth-child(2) { transition-delay: 70ms; }
.jtable tbody tr:nth-child(3), .jqa li:nth-child(3) { transition-delay: 140ms; }
.jtable tbody tr:nth-child(4), .jqa li:nth-child(4) { transition-delay: 210ms; }
.jtable tbody tr:nth-child(5), .jqa li:nth-child(5) { transition-delay: 280ms; }
.jtable tbody tr:nth-child(6) { transition-delay: 350ms; }
.jqa { list-style: none; margin: 0; padding: 12px 20px; font-family: var(--monof); font-variation-settings: "MONO" 1; font-size: 13px; color: #E9EBF5; }
.jqa li { padding: 11px 0; border-bottom: 1px solid rgba(42, 49, 99, 0.6); }
.jqa li:last-child { border-bottom: 0; }
.jqa b { color: var(--ultra-soft); margin-right: 8px; }

.jphone { grid-column: 2; grid-row: 1; justify-self: center; width: 236px; padding: 9px; border-radius: 36px; background: #070A1C; border: 1px solid var(--night-line); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7); }
.jphone__screen {
  position: relative; display: flex; flex-direction: column; gap: 14px; height: 452px; padding: 46px 16px 18px;
  border-radius: 28px; background: var(--paper); color: var(--ink); overflow: hidden;
}
.jphone__notch { position: absolute; top: 9px; left: 50%; width: 74px; height: 20px; margin-left: -37px; border-radius: 12px; background: #070A1C; }
.jphone__shop { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.jphone__item { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 10px; background: #fff; border-radius: 14px; }
.jphone__thumb { grid-row: 1 / span 2; width: 52px; height: 52px; border-radius: 10px; background: repeating-linear-gradient(135deg, var(--tide) 0 4px, #fff 4px 8px); }
.jphone__name { font-size: 14px; font-weight: 650; line-height: 1.2; }
.jphone__price { font-size: 13px; color: var(--ink-3); font-family: var(--monof); font-variation-settings: "MONO" 1; }
.jphone__row { display: flex; justify-content: space-between; padding: 12px 4px 0; border-top: 1px dashed var(--line); font-size: 13.5px; color: var(--ink-2); }
.jphone__total { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; font-size: 14px; color: var(--ink-2); padding: 0 2px; }
.jphone__total b { font-size: 18px; color: var(--ink); font-weight: 800; }
.jphone__btn {
  position: relative; align-self: center; display: inline-flex; justify-content: center; padding: 14px 26px; border-radius: 999px;
  background: var(--ultra); color: #fff; font-weight: 720; font-size: 15px; white-space: nowrap; overflow: hidden;
  outline: 1.5px dashed transparent; outline-offset: -4px;
  transition: background-color 320ms ease, color 320ms ease, outline-color 320ms ease;
}
.jphone__btn-in { display: inline-block; transition: opacity 180ms ease, filter 180ms ease; }
.jphone__btn.is-swapping .jphone__btn-in { opacity: 0; filter: blur(3px); }
/* before translation the screen shows the raw key, the way a developer sees it */
.jphone__screen[data-locale="key"] .jphone__btn { background: var(--night-2); color: #FF9EC0; outline-color: #FF9EC0; font-family: var(--monof); font-variation-settings: "MONO" 1; font-size: 12.5px; font-weight: 650; }
.jphone__note { position: absolute; right: 12px; bottom: 84px; padding: 4px 9px; border-radius: 7px; background: var(--mark); color: var(--ink); font-family: var(--monof); font-variation-settings: "MONO" 1; font-size: 10.5px; font-weight: 650; opacity: 0; transform: translateY(6px); transition: opacity 300ms var(--ease-out), transform 400ms var(--ease-out); }
.jphone__note::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: var(--mark); }
.jstage[data-step="2"] .jphone__note { opacity: 1; transform: none; }
.jphone__locale { position: absolute; top: 14px; right: 18px; font-family: var(--monof); font-variation-settings: "MONO" 1; font-size: 10.5px; font-weight: 700; color: var(--ultra); opacity: 0; transition: opacity 260ms ease; }
.jstage[data-step="3"] .jphone__locale, .jstage[data-step="4"] .jphone__locale { opacity: 1; }
.jphone__screen[dir="rtl"] .jphone__locale { right: auto; left: 18px; }
.jphone__screen[dir="rtl"] { font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", system-ui, sans-serif; }
.jlocales { grid-column: 2; grid-row: 2; justify-self: center; display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; width: 290px; max-width: 100%; }
.jlocales button { padding: 4px 6px; border-radius: 999px; border: 1px solid var(--night-line); background: transparent; color: var(--on-night-2); font-family: var(--monof); font-variation-settings: "MONO" 1; font-size: 11px; font-weight: 600; cursor: pointer; transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out); }
.jlocales button:active { transform: scale(0.95); }
.jlocales button[aria-pressed="true"] { background: var(--ultra); border-color: var(--ultra); color: #fff; }
@media (hover: hover) and (pointer: fine) { .jlocales button:hover { border-color: var(--ultra-soft); color: #fff; } }

@media (max-width: 1080px) {
  .journey__grid { grid-template-columns: 1fr; }
  .jsteps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
}
@media (max-width: 640px) {
  .jsteps { grid-template-columns: 1fr; }
  .jstep { padding: 12px 0 12px 18px; }
  .jstep__p { display: none; margin-left: 46px; }
  .jstep.is-active .jstep__p { display: block; }
  .jstage { grid-template-columns: 1fr; }
  .jeditor { grid-row: auto; }
  .jphone, .jlocales { grid-column: 1; grid-row: auto; }
  .jeditor__body { min-height: 0; }
  .code { font-size: 11.5px; }
  .jtab { display: none; }
  .jstage[data-step="1"] .jtab[data-for="1"], .jstage[data-step="2"] .jtab[data-for="2"], .jstage[data-step="3"] .jtab[data-for="3"], .jstage[data-step="4"] .jtab[data-for="4"] { display: inline-block; }
  .jtable th, .jtable td { padding-left: 12px; padding-right: 12px; }
}

/* ---------- languages ---------- */
.langs__group + .langs__group { margin-top: clamp(40px, 5vw, 60px); }
.langs__h { font-size: 18px; font-weight: 720; letter-spacing: -0.01em; }
.langs__h span { font-weight: 400; color: var(--ink-3); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; }
.chip {
  position: relative; display: flex; flex-direction: column; gap: 3px;
  padding: 12px 18px 11px; min-width: 112px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out), border-color 240ms ease, background-color 240ms ease;
}
.chip__native { font-size: 20px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.2; }
.chip__en { font-family: var(--monof); font-variation-settings: "MONO" 1; font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.chip__code { position: absolute; top: 12px; right: 14px; font-family: var(--monof); font-variation-settings: "MONO" 1; font-size: 11px; font-weight: 700; color: var(--ultra); }
.chips--core .chip { min-width: 164px; padding: 18px 22px 16px; background: #fff; border-color: var(--tide-2); }
.chips--core .chip__native { font-size: clamp(24px, 2.4vw, 30px); font-weight: 720; letter-spacing: -0.025em; padding-right: 36px; }
@media (hover: hover) and (pointer: fine) { .chip:hover { border-color: var(--ultra); } }
.langs__note { margin: 34px 0 0; color: var(--ink-3); font-size: 15.5px; }
@media (max-width: 640px) {
  .chip { min-width: 0; padding: 10px 14px 9px; }
  .chip__native { font-size: 17px; }
  .chips--core { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chips--core .chip { min-width: 0; padding: 14px 14px 12px; }
  .chips--core .chip__native { font-size: 21px; padding-right: 22px; }
}

/* ---------- process: a flow line through five steps ---------- */
.process { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.flow { position: relative; }
.flow__svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.flow__base { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; }
.flow__fill { fill: none; stroke: var(--ultra); stroke-width: 2.5; stroke-linecap: round; }
.flow__dot { fill: var(--mark-deep); opacity: 0; }
.flow__steps { position: relative; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 32px); margin: 0; padding: 0; }
.fstep__n {
  position: relative; z-index: 1; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  background: var(--card); border: 1.5px solid var(--ink); font-family: var(--monof); font-variation-settings: "MONO" 1; font-size: 16px; font-weight: 700;
  transition: background-color 360ms ease, border-color 360ms ease, color 360ms ease, transform 360ms var(--ease-out);
}
.fstep.is-reached .fstep__n { background: var(--ultra); border-color: var(--ultra); color: #fff; }
.fstep__meta { display: block; margin-top: 20px; font-family: var(--monof); font-variation-settings: "MONO" 1; font-size: 11.5px; font-weight: 650; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ultra); }
.fstep__t { margin: 6px 0 8px; font-size: clamp(18px, 1.5vw, 21px); letter-spacing: -0.02em; line-height: 1.2; font-weight: 740; }
.fstep p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
html:not(.js) .fstep .fstep__n, html.static .fstep .fstep__n { background: var(--ultra); border-color: var(--ultra); color: #fff; }
@media (max-width: 1000px) {
  .flow__steps { grid-template-columns: 1fr; gap: 34px; }
  .fstep { display: grid; grid-template-columns: 50px 1fr; column-gap: 22px; }
  .fstep__n { grid-row: 1 / span 3; }
  .fstep__meta { margin-top: 4px; }
}

/* ---------- about ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(40px, 7vw, 100px); align-items: start; }
.about__intro > p { color: var(--ink-2); max-width: 34em; margin-top: 26px; }
.principles { list-style: none; margin: 0; padding: 0; }
.principles li { padding: 22px 0; border-top: 1px solid var(--line); }
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles h3 { font-size: 19px; letter-spacing: -0.015em; margin: 0 0 6px; font-weight: 740; }
.principles p { margin: 0; font-size: 16px; color: var(--ink-2); }
.record { position: relative; margin-top: 40px; padding: 24px 26px 22px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; font-size: 14.5px; overflow: hidden; }
.record::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ultra); }
.record__src { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-family: var(--monof); font-variation-settings: "MONO" 1; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.record__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ultra); }
.record__name { margin: 0 0 12px; font-family: var(--monof); font-variation-settings: "MONO" 1; font-size: 15px; font-weight: 700; letter-spacing: 0.01em; }
.record__dl { margin: 0; }
.record__dl div { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 9px 0; border-top: 1px dashed var(--line); }
.record__dl dt { font-family: var(--monof); font-variation-settings: "MONO" 1; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); padding-top: 2px; }
.record__dl dd { margin: 0; color: var(--ink); line-height: 1.55; }
.record__live { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; }
.record__live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ultra); box-shadow: 0 0 0 4px var(--tide); }
.record__link { display: inline-block; margin-top: 12px; font-weight: 650; color: var(--ultra); text-underline-offset: 3px; }
@media (max-width: 960px) { .about__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .record__dl div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; background: var(--ultra); color: #fff; padding: clamp(96px, 12vw, 170px) 0; }
.cta__streams { position: absolute; inset: 0; z-index: 0; }
.cta__streams svg { width: 100%; height: 100%; }
.cta.is-live .stream { animation: stream-flow 16s linear infinite; }
.cta.is-live .stream:nth-child(2n) { animation-duration: 24s; }
.cta.is-live .stream:nth-child(3n) { animation-duration: 20s; }
@keyframes stream-flow { to { stroke-dashoffset: -580; } }
.cta__in { position: relative; z-index: 1; }
.cta__title { max-width: 16em; font-size: clamp(36px, 5.4vw, 80px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 800; }
.cta__title .mono-word { letter-spacing: -0.04em; font-weight: 740; }
.cta__lede { max-width: 33em; margin: 26px 0 0; font-size: clamp(17.5px, 1.5vw, 21px); color: rgba(255, 255, 255, 0.84); }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; margin-top: 36px; }
.cta__link { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; text-decoration-color: rgba(255, 255, 255, 0.45); transition: text-decoration-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .cta__link:hover { text-decoration-color: var(--mark); } }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: var(--on-night-2); padding: clamp(64px, 8vw, 96px) 0 36px; font-size: 15px; }
.foot__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 40px; }
.foot__brand p { margin: 18px 0 0; max-width: 24em; }
.foot__h { margin: 0 0 16px; font-family: var(--monof); font-variation-settings: "MONO" 1; font-size: 11.5px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ultra-soft); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 0 0 9px; }
.foot a { color: var(--on-night); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .foot a:hover { text-decoration: underline; text-underline-offset: 3px; } }
.legal { display: flex; justify-content: space-between; gap: 24px; margin-top: clamp(48px, 6vw, 72px); padding-top: 24px; border-top: 1px solid var(--night-line); font-size: 13px; }
.legal p { margin: 0; max-width: 60em; }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } .legal { flex-direction: column; } }

/* ---------- page transition: lines of a selection sweep down the page ---------- */
.veil { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: repeat(9, 1fr); pointer-events: none; visibility: hidden; }
.veil i { display: block; margin-bottom: -1px; background: var(--ultra); transform: scaleX(0); transform-origin: left center; }
.veil.is-on { visibility: visible; pointer-events: auto; }
html.veil-in .veil { visibility: visible; }
html.veil-in .veil i { transform: scaleX(1); }

/* ---------- inner pages ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(48px, 8vw, 110px)) 0 0; background: var(--paper); overflow: hidden; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.page-hero__title { font-size: clamp(42px, 6.6vw, 100px); line-height: 0.98; letter-spacing: -0.045em; font-weight: 800; }
.page-hero .hline--work .hline__in { font-weight: 740; }
.page-hero__lede { margin: 0; }
.page-hero__river { position: relative; height: clamp(116px, 14vw, 170px); margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); overflow: hidden; }
.page-hero__river canvas { position: absolute; left: 0; top: 0; pointer-events: none; }
@media (max-width: 860px) { .page-hero__grid { grid-template-columns: 1fr; } }

.subnav { position: sticky; top: var(--header-h); z-index: 40; background: rgba(242, 243, 240, 0.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.subnav__in { display: flex; gap: clamp(18px, 3vw, 36px); overflow-x: auto; scrollbar-width: none; }
.subnav__in::-webkit-scrollbar { display: none; }
.subnav a { position: relative; flex: none; padding: 15px 0 14px; font-family: var(--monof); font-variation-settings: "MONO" 1; font-size: 12px; font-weight: 650; letter-spacing: 0.07em; text-transform: uppercase; text-decoration: none; color: var(--ink-3); transition: color 200ms ease; }
.subnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ultra); transform: scaleX(0); transform-origin: left center; transition: transform 320ms var(--ease-out); }
.subnav a.is-active { color: var(--ultra); }
.subnav a.is-active::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .subnav a:hover { color: var(--ink); } }

.svc { padding: clamp(80px, 10vw, 130px) 0; scroll-margin-top: calc(var(--header-h) + 50px); }
.svc + .svc { border-top: 1px solid var(--line); }
.svc--alt { background: var(--card); }
.svc__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 90px); align-items: start; }
.svc__art { position: sticky; top: calc(var(--header-h) + 76px); }
.svc__sub { margin: 16px 0 0; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.4; color: var(--ink-2); letter-spacing: -0.01em; }
.svc__intro { margin: 24px 0 0; color: var(--ink-2); max-width: 36em; }
.svc__lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 34px; margin-top: 38px; }
.svc__lists h3 { margin: 0 0 10px; font-family: var(--monof); font-variation-settings: "MONO" 1; font-size: 11.5px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ultra); }
.dash { list-style: none; margin: 0; padding: 0; font-size: 15.5px; color: var(--ink-2); }
.dash li { position: relative; padding: 7px 0 7px 22px; border-top: 1px solid var(--line-2); }
.dash li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 11px; height: 2px; background: var(--ultra); }
.note { margin: 34px 0 0; padding: 18px 22px; background: var(--tide-3); border-left: 3px solid var(--ultra); border-radius: 0 14px 14px 0; font-size: 15.5px; color: var(--ink-2); }
.note b { display: block; margin-bottom: 4px; font-family: var(--monof); font-variation-settings: "MONO" 1; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ultra); font-weight: 650; }
.note p { margin: 0; }
.drawing-card { margin: 0; padding: clamp(14px, 2vw, 24px); background: var(--tide); border-radius: var(--r-lg); }
.drawing-card figcaption { margin-top: 12px; }
.drawing { width: 100%; height: auto; }
@media (max-width: 960px) { .svc__grid { grid-template-columns: 1fr; } .svc__art { position: relative; top: 0; } }
@media (max-width: 560px) { .svc__lists { grid-template-columns: 1fr; } }

/* the interpreting receiver */
.rx { display: grid; gap: 16px; }
.rx__device { padding: 20px; border-radius: 26px; background: var(--night); color: var(--on-night); box-shadow: 0 30px 60px -34px rgba(14, 19, 48, 0.6); }
.rx__screen { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 14px; padding: 14px 16px; border-radius: 14px; background: #070A1C; border: 1px solid var(--night-line); font-family: var(--monof); font-variation-settings: "MONO" 1; }
.rx__ch { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rx__lang { font-size: 13px; font-weight: 650; color: var(--ultra-soft); letter-spacing: 0.06em; text-transform: uppercase; }
.rx__live { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; color: #FF9EC0; }
.rx__live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mark-deep); }
.rx.is-live .rx__live::before { animation: live 1.6s ease-in-out infinite; }
@keyframes live { 50% { opacity: 0.25; } }
.rx__wave { grid-column: 1 / -1; display: flex; align-items: center; gap: 3px; height: 34px; margin-top: 6px; }
.rx__wave i { flex: 1; height: 100%; border-radius: 2px; background: var(--ultra); transform: scaleY(0.12); transform-origin: center; }
.rx.is-live .rx__wave i { animation: wave 1.1s ease-in-out infinite alternate; }
@keyframes wave { 0% { transform: scaleY(0.12); } 100% { transform: scaleY(var(--h, 0.8)); } }
.rx__keys { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 16px; }
.rx__key { display: grid; gap: 1px; justify-items: center; padding: 9px 4px 8px; border-radius: 12px; border: 1px solid var(--night-line); background: var(--night-2); color: var(--on-night-2); cursor: pointer; transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out); }
.rx__key b { font-family: var(--monof); font-variation-settings: "MONO" 1; font-size: 16px; font-weight: 800; }
.rx__key span { font-family: var(--monof); font-variation-settings: "MONO" 1; font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.rx__key:active { transform: scale(0.95); }
.rx__key[aria-pressed="true"] { background: var(--ultra); border-color: var(--ultra); color: #fff; }
@media (hover: hover) and (pointer: fine) { .rx__key:hover { border-color: var(--ultra-soft); color: #fff; } }
.rx__out { padding: 20px 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); min-height: 138px; }
.rx__label { margin: 0 0 8px; font-family: var(--monof); font-variation-settings: "MONO" 1; font-size: 11px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.rx__text { margin: 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; font-weight: 560; letter-spacing: -0.01em; transition: opacity 220ms ease, filter 220ms ease, transform 300ms var(--ease-out); }
.rx__text.is-swapping { opacity: 0; filter: blur(3px); transform: translateY(4px); }

/* fees */
.fees { background: var(--paper-2); }
.fee-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.fee { padding: 24px 22px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.fee .fee__k { margin: 0; font-family: var(--monof); font-variation-settings: "MONO" 1; font-size: 11px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ultra); }
.fee h3 { margin: 10px 0 8px; font-size: 21px; letter-spacing: -0.02em; font-weight: 760; }
.fee p { margin: 0; font-size: 15px; color: var(--ink-2); }
.fees__more { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); margin-top: clamp(48px, 6vw, 72px); }
.fees__more h3 { font-size: 22px; letter-spacing: -0.02em; margin: 0 0 12px; }
.fees__more p { color: var(--ink-2); }
@media (max-width: 1000px) { .fee-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .fees__more { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .fee-grid { grid-template-columns: 1fr; } }

/* contact */
.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 6vw, 70px); }
.ccard { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px 24px 22px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; text-decoration: none; transition: transform 400ms var(--ease-out), border-color 240ms ease, box-shadow 400ms var(--ease-out); }
.ccard__k { font-family: var(--monof); font-variation-settings: "MONO" 1; font-size: 11px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ultra); }
.ccard__v { font-size: clamp(19px, 1.7vw, 23px); font-weight: 740; letter-spacing: -0.02em; line-height: 1.25; overflow-wrap: anywhere; }
.ccard__n { font-size: 14.5px; color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) { a.ccard:hover { transform: translateY(-3px); border-color: var(--ultra); box-shadow: 0 20px 40px -28px rgba(14, 19, 48, 0.4); } }
@media (max-width: 860px) { .contact-cards { grid-template-columns: 1fr; } }

.enquiry { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.enquiry__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 90px); align-items: start; }
.checklist { list-style: none; margin: 26px 0 0; padding: 0; }
.checklist li { position: relative; padding: 12px 0 12px 34px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15.5px; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--ultra); }
.checklist li::after { content: ""; position: absolute; left: 8px; top: 18px; width: 5px; height: 9px; border: solid var(--ultra); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.checklist b { color: var(--ink); font-weight: 680; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 650; color: var(--ink); }
.field label span { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ultra); box-shadow: 0 0 0 4px var(--tide); }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 4px; }
.form__privacy { margin: 0; font-size: 13.5px; color: var(--ink-3); max-width: 34em; }
.form__sent { grid-column: 1 / -1; display: none; margin: 0; padding: 14px 18px; border-radius: 12px; background: var(--tide); color: var(--ink); font-size: 15px; }
.form[data-sent] .form__sent { display: block; }
@media (max-width: 960px) { .enquiry__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

.findus__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.5fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.map-card { margin: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #E9ECF8; }
.map-svg { width: 100%; height: auto; }
.map-card figcaption { padding: 12px 16px; background: var(--card); border-top: 1px solid var(--line); }
.directions { list-style: none; margin: 0; padding: 0; }
.directions li { padding: 16px 0; border-top: 1px solid var(--line); }
.directions b { display: block; font-size: 17px; letter-spacing: -0.01em; }
.directions span { display: block; font-size: 14.5px; color: var(--ink-3); }
.directions .walk { display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 999px; background: var(--ultra); color: #fff; font-family: var(--monof); font-variation-settings: "MONO" 1; font-size: 11.5px; font-weight: 700; }
@media (max-width: 960px) { .findus__grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .map-svg { aspect-ratio: 4 / 5; } } /* the office sits at the centre of the drawing: crop to it */
.map-current { animation: none; }
.findus.is-live .map-current { animation: stream-flow 14s linear infinite; }
.map-pulse { transform-box: fill-box; transform-origin: center; }
.findus.is-live .map-pulse { animation: pulse 2.4s var(--ease-out) infinite; }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 0.5; } 100% { transform: scale(1.6); opacity: 0; } }

/* 404 */
.nf { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 60px; }
.nf__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.nf__code { font-family: var(--monof); font-variation-settings: "MONO" 1; font-size: 14px; color: var(--mark-deep); font-weight: 650; margin: 0 0 18px; }
.nf__title { font-size: clamp(40px, 6vw, 88px); line-height: 0.98; letter-spacing: -0.045em; font-weight: 800; }
.nf__lede { margin: 24px 0 30px; max-width: 30em; }
.nf__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.strings { background: var(--night); color: var(--on-night); border-radius: 18px; overflow: hidden; font-family: var(--monof); font-variation-settings: "MONO" 1; font-size: 13.5px; box-shadow: 0 30px 60px -34px rgba(14, 19, 48, 0.6); }
.strings__bar { display: flex; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--night-line); color: var(--on-night-2); font-size: 12px; }
.strings table { width: 100%; border-collapse: collapse; }
.strings td { padding: 9px 18px; border-bottom: 1px solid rgba(42, 49, 99, 0.6); }
.strings td:first-child { width: 84px; color: #FF9EC0; }
.strings tr.is-missing td { background: rgba(255, 140, 182, 0.12); }
.strings tr.is-missing td:last-child { color: var(--mark); }
.strings .caret { display: inline-block; width: 8px; height: 1.1em; margin-left: 4px; vertical-align: -0.2em; background: var(--mark); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.js .strings tbody tr { opacity: 0; transform: translateX(-6px); transition: opacity 300ms var(--ease-out), transform 400ms var(--ease-out); }
.js .strings.is-in tbody tr, html.static .strings tbody tr { opacity: 1; transform: none; }
@media (max-width: 860px) { .nf__grid { grid-template-columns: 1fr; } }

/* ---------- reduced motion: keep feedback, drop travel ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  .js mark.hl { background-size: 100% 100%; transition: none; }
  .cta.is-live .stream, .findus.is-live .map-current, .findus.is-live .map-pulse, .rx.is-live .rx__wave i, .rx.is-live .rx__live::before, .strings .caret { animation: none; }
  .rx__wave i { transform: scaleY(var(--h, 0.5)); }
  .card, .btn, .chip, .ccard { transition-property: background-color, border-color, color, box-shadow; }
  .jtable tbody tr, .jqa li, .js .strings tbody tr { transform: none; }
}
