@charset "utf-8";

/* =========================================================================
   کارابین — Coming Soon
   Built on the Karabin brand guidelines (v1.0, Aug 2026).
   Palette, typeface, iconography and gradient language are taken verbatim
   from the guideline; orange is reserved as a small-area accent (p.29).
   ========================================================================= */

/* ── fonts ───────────────────────────────────────────────────────────── */
@font-face {
  font-family: "Anjoman";
  src: url("../fonts/Anjoman-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Anjoman";
  src: url("../fonts/Anjoman-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

/* ── tokens ──────────────────────────────────────────────────────────── */
:root {
  /* primary palette */
  --white: #ffffff;
  --cream: #fff2cf;
  --gray: #333333;
  --orange: #ed6724;
  --red: #990808;
  /* interactive fill: color-mix(--orange 65%, --red) — both in-palette */
  --orange-cta: #d0461a;
  --orange-cta-hi: #bf3315;

  /* secondary palette */
  --peach: #ffe3b0;
  --blue-light: #bfd4ff;
  --cyan-pale: #e5fffa;
  --gray-mid: #b0b0b0;
  --yellow: #ffcc3d;
  --amber: #f29605;
  --blue: #1752fa;
  --blue-deep: #08308f;
  --mint: #78e0d1;
  --emerald: #24a18c;

  /* surfaces — shades of the brand Dark Gray, not new hues */
  --ground: #232323;
  --surface: var(--gray);
  --surface-hi: #3d3d3d;

  /* ink */
  --ink-hi: var(--white);
  --ink: #e6e2da;
  --ink-mid: #a5a09a;
  --ink-low: #918b83;
  --hairline: rgba(255, 242, 207, 0.14);

  /* type */
  --font: "Anjoman", ui-sans-serif, system-ui, "Segoe UI", Tahoma, sans-serif;

  /* rhythm — 8px base */
  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  --section-y: clamp(5.5rem, 13vw, 12rem);
  --maxw: 1440px;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

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

* { margin: 0; }

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

body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(1rem, 0.94rem + 0.28vw, 1.125rem);
  line-height: 1.95;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
ol { list-style: none; padding: 0; }
:where(a) { color: inherit; text-decoration: none; }

/* ── a11y utilities ──────────────────────────────────────────────────── */
.u-sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 200;
  padding: 0.7rem 1.2rem;
  background: var(--cream);
  color: var(--gray);
  font-weight: 700;
  border-radius: 2px;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}
.skip-link:focus-visible { transform: none; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

/* =========================================================================
   ambient gradient field — the brand's background language (pp. 43–46)
   ========================================================================= */
.field {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background: var(--ground);
}

.field__blob {
  position: absolute;
  display: block;
  width: 78vmax;
  height: 78vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
  will-change: transform;
}

/* each blob is one pillar colour, drifting slowly */
.field__blob--org {
  background: radial-gradient(circle at 50% 50%, var(--blue) 0%, transparent 62%);
  inset-block-start: -40vmax;
  inset-inline-start: -26vmax;
  opacity: 0.17;
  animation: drift-a 34s var(--ease-io) infinite alternate;
}
.field__blob--str {
  background: radial-gradient(circle at 50% 50%, var(--orange) 0%, transparent 60%);
  inset-block-start: 4vmax;
  inset-inline-end: -34vmax;
  opacity: 0.2;
  animation: drift-b 41s var(--ease-io) infinite alternate;
}
.field__blob--skl {
  background: radial-gradient(circle at 50% 50%, var(--emerald) 0%, transparent 62%);
  inset-block-end: -46vmax;
  inset-inline-end: -20vmax;
  opacity: 0.1;
  animation: drift-c 47s var(--ease-io) infinite alternate;
}
.field__blob--fut {
  background: radial-gradient(circle at 50% 50%, var(--amber) 0%, transparent 60%);
  inset-block-end: -36vmax;
  inset-inline-start: -30vmax;
  opacity: 0.1;
  animation: drift-d 39s var(--ease-io) infinite alternate;
}

/* Vignette pushes colour to the edges so type always sits on calm ground;
   the grain rides along on the same layer — the guideline forbids flat,
   depthless surfaces, so a little tooth is required. */
.field::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.09'/%3E%3C/svg%3E"),
    radial-gradient(78% 62% at 50% 42%, rgba(35, 35, 35, 0.88) 0%, transparent 72%),
    linear-gradient(to bottom, rgba(35, 35, 35, 0.5), transparent 26%, rgba(35, 35, 35, 0.72));
  background-repeat: repeat, no-repeat, no-repeat;
  background-size: 180px 180px, auto, auto;
}

@keyframes drift-a { to { transform: translate3d(14vmax, 10vmax, 0) scale(1.14); } }
@keyframes drift-b { to { transform: translate3d(-12vmax, 16vmax, 0) scale(0.88); } }
@keyframes drift-c { to { transform: translate3d(-10vmax, -14vmax, 0) scale(1.2); } }
@keyframes drift-d { to { transform: translate3d(16vmax, -10vmax, 0) scale(0.92); } }

/* =========================================================================
   route spine — «مسیر» made literal; scroll progress along the climb
   ========================================================================= */
.spine {
  position: fixed;
  inset-block: 0;
  inset-inline-start: clamp(1rem, 2.6vw, 2.75rem);
  z-index: 40;
  width: 1px;
  pointer-events: none;
}
.spine__track,
.spine__progress {
  position: absolute;
  inset-inline: 0;
  display: block;
}
.spine__track {
  inset-block: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--hairline) 12%,
    var(--hairline) 88%,
    transparent 100%
  );
}
.spine__progress {
  inset-block-start: 0;
  height: calc(var(--p, 0) * 100%);
  background: linear-gradient(to bottom, transparent, var(--orange) 22%, var(--orange));
}
.spine__progress::after {
  content: "";
  position: absolute;
  inset-block-end: -3px;
  inset-inline-start: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(237, 103, 36, 0.22);
}

/* =========================================================================
   header
   ========================================================================= */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.1rem, 2.2vw, 1.75rem) var(--gutter);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--ground) 62%, transparent);
  border-block-end: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.site-header.is-stuck {
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  border-block-end-color: var(--hairline);
}

.brandmark {
  display: flex;
  align-items: center;
  color: var(--ink-hi);
  flex: none;
  transition: opacity 0.3s var(--ease);
}
.brandmark:hover { opacity: 0.78; }
/* lockup رسمی (logo v2): فاصله‌ی میان نشانه و لوگوتایپ داخل خود فایل
   تعریف شده، پس نباید با gap دستی بازسازی شود. */
.brandmark__logo {
  height: clamp(2.1rem, 3.2vw, 2.8rem);
  width: auto;
}

.site-header__tag {
  flex: 1;
  color: var(--ink-low);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-align: center;
}

.site-header__cta { flex: none; }

/* =========================================================================
   buttons
   ========================================================================= */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink-hi);
  --btn-bd: var(--hairline);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.62rem 1.15rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn__icon {
  width: 0.95em;
  height: 0.95em;
  flex: none;
  transition: transform 0.35s var(--ease);
}
/* icon points along the reading direction (RTL → up-left) */
.btn__icon { transform: scaleX(-1); }

.btn--ghost:hover,
.btn--ghost:focus-visible {
  --btn-bd: color-mix(in srgb, var(--cream) 42%, transparent);
  background: rgba(255, 242, 207, 0.06);
}
.btn--ghost:hover .btn__icon,
.btn--ghost:focus-visible .btn__icon { transform: scaleX(-1) translate(3px, -3px); }

.btn--solid {
  --btn-bg: var(--orange-cta);
  --btn-fg: var(--white);
  --btn-bd: var(--orange-cta);
}
.btn--solid:hover,
.btn--solid:focus-visible {
  --btn-bg: var(--orange-cta-hi);
  --btn-bd: var(--orange-cta-hi);
}
.btn--solid:hover .btn__icon,
.btn--solid:focus-visible .btn__icon { transform: scaleX(-1) translate(3px, -3px); }
.btn:active { transform: translateY(1px); }

/* =========================================================================
   hero
   ========================================================================= */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - 6.25rem);
  padding: clamp(1.5rem, 3vw, 2.5rem) var(--gutter) clamp(1.25rem, 2.5vw, 2rem);
  overflow: hidden;
}

/* oversized carabiner, deliberately cropped by the viewport */
.hero__sign {
  position: absolute;
  inset-block-start: 50%;
  /* inline-end resolves to the visual left in RTL: the open side of the page */
  inset-inline-end: clamp(-13rem, -9vw, -3.5rem);
  width: clamp(18rem, 37vw, 33rem);
  max-height: 74svh;
  height: auto;
  color: var(--cream);
  opacity: 0.07;
  transform: translate3d(0, calc(-50% + var(--sy, 0px)), 0) rotate(-9deg);
  pointer-events: none;
  will-change: transform;
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
}
/* the copy holds the start (right) half; the mark answers it from the left */
.hero__inner > *:not(.hero__meta) { max-width: min(100%, 38rem); }
@media (min-width: 64rem) {
  .hero__inner > *:not(.hero__meta) { max-width: min(62%, 44rem); }
}

/* status chip */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.95rem 0.4rem 0.75rem;
  margin-block-end: clamp(1.25rem, 2.2vw, 1.6rem);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(255, 242, 207, 0.04);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.status__dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  flex: none;
}
.status__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 2.4s var(--ease-io) infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  70%, 100% { transform: scale(3.4); opacity: 0; }
}

.hero__title {
  font-size: clamp(2.5rem, 6.2vw, 5.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 15ch;
}
.hero__title em {
  font-style: normal;
  color: var(--orange);
}

.hero__lede {
  margin-block-start: clamp(1.4rem, 2.4vw, 1.9rem);
  max-width: 44ch;
  color: var(--ink-mid);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.85;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.1rem;
  margin-block-start: clamp(1.5rem, 2.6vw, 2.1rem);
  padding-block-start: clamp(0.9rem, 1.6vw, 1.2rem);
  border-block-start: 1px solid var(--hairline);
  color: var(--ink-low);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.hero__meta-en {
  color: var(--ink-low);
  opacity: 0.72;
  font-size: 0.8rem;
}
.hero__meta > span:first-child { color: var(--ink-mid); }

.hero__scroll {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-block-start: clamp(1.1rem, 2vw, 1.5rem);
  max-width: var(--maxw);
  margin-inline: auto;
  width: 100%;
  color: var(--ink-mid);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.hero__scroll-line {
  position: relative;
  display: block;
  width: clamp(3rem, 8vw, 6rem);
  height: 1px;
  background: var(--hairline);
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 42%;
  background: var(--orange);
  animation: trace 2.8s var(--ease-io) infinite;
}
@keyframes trace {
  0% { transform: translateX(-120%); }
  60%, 100% { transform: translateX(340%); }
}
[dir="rtl"] .hero__scroll-line::after { animation-name: trace-rtl; }
@keyframes trace-rtl {
  0% { transform: translateX(120%); }
  60%, 100% { transform: translateX(-340%); }
}

/* short viewports (13" laptops) — compress instead of overflowing */
@media (min-width: 48rem) and (max-height: 46rem) {
  .hero__title { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
  .hero__lede { font-size: 1rem; margin-block-start: 1.1rem; }
  .status { margin-block-end: 1rem; }
  .signup--hero { margin-block-start: 1.2rem; }
  .hero__meta { margin-block-start: 1.2rem; padding-block-start: 0.8rem; }
  .hero__scroll { display: none; }
}

/* =========================================================================
   concept — cream light section, the rhythm break
   ========================================================================= */
.concept {
  position: relative;
  z-index: 1;
  background: var(--cream);
  color: var(--gray);
  padding: var(--section-y) var(--gutter);
}
.concept__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  align-items: start;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
}
@media (min-width: 62rem) {
  .concept__inner { grid-template-columns: minmax(12rem, 22%) 1fr; }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  align-self: start;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.6;
  /* optically align the eyebrow with the first line of the heading beside it */
  margin-block-start: 0.55em;
}
.eyebrow__rule {
  display: block;
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  flex: none;
}
.eyebrow--light { color: var(--orange); }

.concept__body {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 62ch;
}
.concept__lead {
  font-size: clamp(1.45rem, 3.4vw, 2.6rem);
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.concept__lead em {
  font-style: normal;
  font-weight: 400;
  color: color-mix(in srgb, var(--gray) 70%, var(--cream));
}
.concept__note {
  color: color-mix(in srgb, var(--gray) 72%, var(--cream));
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  max-width: 52ch;
}

/* =========================================================================
   route stations — the four brand pillars, each in its own colour world
   ========================================================================= */
.route {
  padding: var(--section-y) var(--gutter) clamp(3rem, 7vw, 5rem);
  max-width: var(--maxw);
  margin-inline: auto;
}

.route__head {
  display: grid;
  align-items: end;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-block-end: clamp(2.25rem, 4.5vw, 3.5rem);
}
@media (min-width: 62rem) {
  .route__head { grid-template-columns: 1fr auto; }
}
.route__head-main { display: grid; gap: clamp(0.9rem, 1.8vw, 1.4rem); }
.route__head-note {
  max-width: 34ch;
  color: var(--ink-mid);
  font-size: 0.97rem;
  line-height: 1.85;
}
/* DOM order already puts the title in column 1 — the start (right) side in
   RTL — with the note answering it from the left. No reordering needed. */
@media (min-width: 62rem) {
  .route__head-note { padding-block-end: 0.4rem; justify-self: end; }
}
.route__title {
  font-size: clamp(1.9rem, 4.6vw, 3.5rem);
  letter-spacing: -0.025em;
  color: var(--ink-hi);
}

.stations {
  display: grid;
  gap: 1px;
  background: var(--hairline);
  border-block: 1px solid var(--hairline);
  grid-template-columns: 1fr;
}
@media (min-width: 40rem) { .stations { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .stations { grid-template-columns: repeat(4, 1fr); } }

.station {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.7rem;
  padding: clamp(1.6rem, 2.8vw, 2.1rem) clamp(1.35rem, 2.2vw, 1.9rem)
    clamp(2.25rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  isolation: isolate;
  overflow: hidden;
  transition: background 0.45s var(--ease);
}

/* the station's colour bleeds in on hover — its own gradient world */
.station::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    125% 85% at 50% 118%,
    color-mix(in srgb, var(--c) 38%, transparent) 0%,
    transparent 70%
  );
  opacity: 0.32; /* each station carries its colour at rest */
  transition: opacity 0.55s var(--ease);
}
/* top rule that fills with the station colour */
.station::after {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 2px;
  background: var(--c);
  transform: scaleX(1);
  transform-origin: right center;
  opacity: 0.55;
  transition: opacity 0.55s var(--ease);
}
[dir="ltr"] .station::after { transform-origin: left center; }

.station:hover::before,
.station:focus-within::before { opacity: 1; }
.station:hover::after,
.station:focus-within::after { opacity: 1; }

.station__no {
  color: var(--ct, var(--c));
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

.station__icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0.7rem;
  margin-block: 0.5rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  border-radius: 4px;
  color: var(--ct, var(--c));
  background: color-mix(in srgb, var(--c) 8%, rgba(0, 0, 0, 0.2));
  transition: border-color 0.45s var(--ease), background 0.45s var(--ease);
}
.station__icon svg { width: 100%; height: 100%; }
.station:hover .station__icon,
.station:focus-within .station__icon {
  border-color: color-mix(in srgb, var(--c) 50%, transparent);
  background: color-mix(in srgb, var(--c) 10%, transparent);
}

.station__name {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  color: var(--ink-hi);
  letter-spacing: -0.01em;
}
.station__desc {
  color: var(--ink-mid);
  font-size: 0.97rem;
  line-height: 1.85;
  max-width: 30ch;
}

/* =========================================================================
   visual statement — the tagline as the page's typographic peak
   ========================================================================= */
.statement {
  position: relative;
  padding: clamp(5rem, 11vw, 9rem) var(--gutter);
  max-width: var(--maxw);
  margin-inline: auto;
  text-align: center;
}
.statement__text {
  font-size: clamp(2.6rem, 11vw, 9rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--ink-hi);
}
.statement__text em {
  font-style: normal;
  background: linear-gradient(100deg, var(--orange), var(--yellow) 48%, var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.statement__en {
  margin-block-start: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--ink-low);
  font-size: clamp(0.8rem, 1.4vw, 0.95rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* =========================================================================
   final CTA
   ========================================================================= */
.notify {
  position: relative;
  padding: var(--section-y) var(--gutter);
  border-block-start: 1px solid var(--hairline);
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--surface) 62%, transparent),
    color-mix(in srgb, var(--surface) 22%, transparent)
  );
}
.notify__inner {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
}
.notify__title {
  font-size: clamp(1.9rem, 5.5vw, 3.6rem);
  letter-spacing: -0.028em;
  color: var(--ink-hi);
}
.notify__lede {
  margin-block-start: 1.1rem;
  margin-inline: auto;
  max-width: 40ch;
  color: var(--ink-mid);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
}

/* form */
.signup { margin-block-start: clamp(2rem, 4vw, 3rem); }
.notify .signup { max-width: 31rem; margin-inline: auto; }
.signup--hero {
  margin-block-start: clamp(1.5rem, 2.4vw, 1.9rem);
  width: 100%;
}
.signup--hero .signup__msg { text-align: start; }
.signup__row {
  display: flex;
  gap: 0.5rem;
  padding: 0.45rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.signup__row:focus-within {
  border-color: color-mix(in srgb, var(--orange) 62%, transparent);
  background: rgba(0, 0, 0, 0.32);
}
.signup__input {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 1.15rem;
  background: none;
  border: 0;
  color: var(--ink-hi);
  font-size: 1rem;
  border-radius: 999px;
}
.signup__input::placeholder { color: var(--ink-low); }
.signup__input:focus { outline: none; }
.signup__btn { padding-inline: 1.4rem; }

.signup__msg {
  min-height: 1.6rem;
  margin-block-start: 0.9rem;
  font-size: 0.88rem;
  color: var(--ink-low);
  transition: color 0.3s var(--ease);
}
.signup__msg[data-state="error"] { color: #ff9b78; }
.signup__msg[data-state="ok"] { color: var(--mint); }

/* success state: collapse the form, keep the message */
.signup.is-done .signup__row { display: none; }
.signup.is-done .signup__msg { font-size: 1.05rem; font-weight: 700; }

/* =========================================================================
   footer
   ========================================================================= */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding: clamp(2.5rem, 5vw, 3.5rem) var(--gutter);
  max-width: var(--maxw);
  margin-inline: auto;
  border-block-start: 1px solid var(--hairline);
  color: var(--ink-low);
  font-size: 0.82rem;
}
.site-footer__type { height: 2.2rem; width: auto; color: var(--ink); }
.site-footer__note { color: var(--ink-mid); }
.site-footer__legal {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-variant-numeric: tabular-nums;
}

/* =========================================================================
   entrance choreography
   ========================================================================= */
/* Nothing is hidden until JS confirms it can reveal it again (.js gate),
   so a scripting failure leaves a complete, readable page. */
.js [data-r] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.9s var(--ease) var(--d, 0s),
    transform 0.9s var(--ease) var(--d, 0s);
}
.js [data-r].is-in { opacity: 1; transform: none; }

/* headline lines rise from behind a mask */
.line {
  display: block;
  overflow: hidden;
  padding-block-end: 0.08em;
  margin-block-end: -0.08em;
}
.js .line > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1.05s var(--ease) var(--d, 0s);
}
.js .line.is-in > span { transform: none; }
/* a masked line animates its inner span, not itself */
.js .line[data-r] { opacity: 1; transform: none; }

/* hero sequencing */
.hero [data-r="1"] { --d: 0.15s; }
.hero [data-r="2"] { --d: 0.25s; }
.hero [data-r="3"] { --d: 0.37s; }
.hero [data-r="4"] { --d: 0.6s; }
.hero [data-r="6"] { --d: 0.78s; }
.hero [data-r="7"] { --d: 0.9s; }

/* station stagger */
.station:nth-child(1) { --d: 0s; }
.station:nth-child(2) { --d: 0.09s; }
.station:nth-child(3) { --d: 0.18s; }
.station:nth-child(4) { --d: 0.27s; }

.statement .line:nth-of-type(2) { --d: 0.12s; }
.statement__en { --d: 0.3s; }

/* =========================================================================
   responsive refinements — mobile is a re-composition, not a shrink
   ========================================================================= */
@media (max-width: 60rem) {
  .site-header__tag { display: none; }
  .site-header { justify-content: space-between; }
}

@media (max-width: 48rem) {
  body { line-height: 1.85; }

  .spine { display: none; }

  .hero {
    min-height: calc(100svh - 4.75rem);
    padding-block: clamp(2rem, 7vw, 3rem) clamp(2rem, 7vw, 3rem);
  }
  /* on small screens the mark anchors the composition from behind the type */
  .hero__sign {
    inset-block-start: auto;
    inset-block-end: -6%;
    inset-inline-start: auto;
    inset-inline-end: -26%;
    width: 72vw;
    opacity: 0.06;
    transform: translate3d(0, var(--sy, 0px), 0) rotate(-9deg);
  }
  .hero__title {
    font-size: clamp(2.6rem, 13vw, 4.4rem);
    letter-spacing: -0.025em;
    max-width: 12ch;
  }
  .hero__lede { font-size: 1.05rem; }
  .hero__meta { flex-direction: column; align-items: flex-start; gap: 0.35rem; }

  .statement__text { font-size: clamp(2.4rem, 14vw, 4rem); letter-spacing: -0.028em; }

  /* full-width, thumb-friendly form */
  .signup__row {
    flex-direction: column;
    border-radius: 18px;
    padding: 0.5rem;
    gap: 0.45rem;
  }
  .signup__input { text-align: center; padding-block: 0.85rem; }
  .signup__btn { width: 100%; padding-block: 0.85rem; border-radius: 14px; }

  .site-footer { justify-content: center; text-align: center; flex-direction: column; }
}

@media (max-width: 30rem) {
  .btn { font-size: 0.85rem; padding-inline: 0.95rem; }
  .station { padding-block-end: 2rem; }
}

/* =========================================================================
   reduced motion — the page arrives composed, nothing moves
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js [data-r] { opacity: 1; transform: none; }
  .js .line > span { transform: none; }
  .field__blob { animation: none; }
  .hero__sign { transform: translate3d(0, -50%, 0) rotate(-9deg); }
  .status__dot::after { display: none; }
  .hero__scroll-line::after { animation: none; transform: none; width: 100%; opacity: 0.5; }
}

