/* ==========================================================================
   MAITU CO., LIMITED — Global Design System
   Single stylesheet for the entire site (reuse rule A).
   Visual direction: premium automotive — restrained monochrome, one cool
   automotive-blue accent, champagne metal highlights, hairline rules,
   generous negative space, fluid editorial typography.
   Sections
   01 Tokens          07 Hero              13 News
   02 Reset & base    08 Services          14 Contact
   03 Layout          09 App showcase      15 Legal
   04 Typography      10 Stats             16 Footer
   05 Buttons/tags    11 Culture           17 Utilities
   06 Cards           12 CTA               18 Motion
   ========================================================================== */

/* ==========================================================================
   01 TOKENS
   ========================================================================== */
:root {
  /* --- Ink scale --- */
  --ink:            #0b0c0e;
  --ink-2:          #121419;
  --ink-3:          #1a1d23;
  --ink-4:          #272b33;

  /* --- Paper scale --- */
  --paper:          #ffffff;
  --paper-2:        #f4f5f7;
  --paper-3:        #e9ebee;

  /* --- Text --- */
  --text:           #0e1013;
  --text-2:         #4b5158;
  --text-3:         #656c73;
  --text-inv:       #ffffff;
  --text-inv-2:     rgba(255, 255, 255, .74);
  --text-inv-3:     rgba(255, 255, 255, .50);

  /* --- Hairlines --- */
  --line:           #e2e5e9;
  --line-2:         #cbd1d8;
  --line-inv:       rgba(255, 255, 255, .13);
  --line-inv-2:     rgba(255, 255, 255, .26);

  /* --- Accents --- */
  --accent:         #1f5c8b;
  --accent-2:       #2e7bb4;
  --accent-3:       #4b9ad6;
  --accent-soft:    rgba(31, 92, 139, .08);
  --accent-line:    rgba(31, 92, 139, .30);
  --metal:          #b08d57;
  --metal-soft:     rgba(176, 141, 87, .10);
  --silver:         #a7aeb7;

  /* --- Status --- */
  --ok:             #1e7a5a;
  --warn:           #a66a15;
  --bad:            #b03a3a;

  /* --- Typography --- */
  --font-sans: "Inter", "SF Pro Display", "Segoe UI Variable Display", "Segoe UI",
               system-ui, -apple-system, "Helvetica Neue", Arial, "PingFang SC",
               "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;

  --fs-eyebrow: .72rem;
  --fs-body:    1rem;
  --fs-lead:    clamp(1.02rem, 1.35vw, 1.18rem);
  --fs-h1:      clamp(2.5rem, 6vw, 5.2rem);
  --fs-h2:      clamp(1.9rem, 3.6vw, 3.05rem);
  --fs-h3:      clamp(1.25rem, 1.9vw, 1.6rem);
  --fs-h4:      1.06rem;
  --fs-stat:    clamp(2.1rem, 4vw, 3.35rem);
  --fs-micro:   .82rem;

  --lh-tight:   1.04;
  --lh-snug:    1.18;
  --lh-normal:  1.55;
  --lh-loose:   1.75;

  --ls-tight:  -.03em;
  --ls-snug:   -.015em;
  --ls-wide:   .06em;
  --ls-mega:   .22em;

  /* --- Space --- */
  --sp-1: .25rem;  --sp-2: .5rem;   --sp-3: .75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 2.5rem;  --sp-8: 3rem;
  --sp-9: 4rem;    --sp-10: 5rem;   --sp-11: 6.5rem; --sp-12: 8rem;

  --gutter: clamp(20px, 4.2vw, 40px);
  --container: 1240px;
  --container-narrow: 880px;
  --section-y: clamp(64px, 8vw, 124px);
  --section-y-sm: clamp(48px, 5.5vw, 84px);

  /* --- Radius --- */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-pill: 999px;

  /* --- Elevation --- */
  --sh-1: 0 1px 2px rgba(11, 12, 14, .05), 0 2px 10px rgba(11, 12, 14, .05);
  --sh-2: 0 10px 24px -12px rgba(11, 12, 14, .22);
  --sh-3: 0 28px 60px -28px rgba(11, 12, 14, .40);
  --sh-inv: 0 30px 70px -30px rgba(0, 0, 0, .68);

  /* --- Motion --- */
  --e-out:  cubic-bezier(.16, 1, .3, 1);
  --e-io:   cubic-bezier(.65, 0, .35, 1);
  --e-soft: cubic-bezier(.22, .61, .36, 1);
  --t-fast: 180ms;
  --t-mid:  320ms;
  --t-slow: 620ms;
  --t-reveal: 900ms;

  /* Horizontal reveal travel — always smaller than --gutter so the
     initial containing block never widens (keeps fixed headers aligned). */
  --shift-x: clamp(10px, 2.4vw, 26px);

  /* --- Layers --- */
  --z-base: 1;
  --z-sticky: 100;
  --z-top: 150;
  --z-drawer: 200;
  --header-h: 76px;
}

/* ==========================================================================
   02 RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

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

img { height: auto; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast) var(--e-soft);
}

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

button { cursor: pointer; background: none; border: 0; padding: 0; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

::selection {
  background: var(--accent);
  color: #fff;
}

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 999;
  padding: .75rem 1.25rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-sm);
  transition: top var(--t-fast) var(--e-out);
}
.skip-link:focus { top: 12px; }

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

/* ==========================================================================
   03 LAYOUT
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: var(--section-y-sm); }
.section--paper { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--text-inv); }
.section--ink .section-lead { color: var(--text-inv-2); }

.section--hairline { border-top: 1px solid var(--line); }

.grid { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--center { align-items: center; }
.grid--start { align-items: flex-start; }

.stack > * + * { margin-top: var(--sp-4); }
.stack-lg > * + * { margin-top: var(--sp-6); }

.center { text-align: center; }
.text-start { text-align: left; }
.mx-auto { margin-inline: auto; }

/* ==========================================================================
   04 TYPOGRAPHY
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--ls-mega);
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--sp-5);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
}
.eyebrow--plain::before { display: none; }
.eyebrow--metal { color: var(--metal); }
.eyebrow--metal::before { background: var(--metal); }
.section--ink .eyebrow { color: var(--text-inv-3); }

.h1, .h2, .h3, .h4 {
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--text);
}
.section--ink .h1, .section--ink .h2,
.section--ink .h3, .section--ink .h4 { color: var(--text-inv); }

.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); line-height: var(--lh-snug); }
.h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); letter-spacing: var(--ls-snug); }
.h4 { font-size: var(--fs-h4); font-weight: 600; letter-spacing: var(--ls-snug); }

.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-loose);
  color: var(--text-2);
  max-width: 62ch;
}
.section--ink .lead { color: var(--text-inv-2); }

.text-metal { color: var(--metal); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-3); }
.mono { font-family: var(--font-mono); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-6);
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 4vw, 60px);
}
.section-head__text { max-width: 60ch; }
.section-head .lead { margin-top: var(--sp-4); }

.rule {
  height: 1px;
  background: linear-gradient(90deg, var(--line-2), var(--line), transparent);
  border: 0;
}
.section--ink .rule {
  background: linear-gradient(90deg, var(--line-inv-2), var(--line-inv), transparent);
}

/* ==========================================================================
   05 BUTTONS / BADGES / TAGS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: .95rem 1.6rem;
  border-radius: var(--r-pill);
  font-size: .94rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background var(--t-mid) var(--e-out),
              color var(--t-mid) var(--e-out),
              border-color var(--t-mid) var(--e-out),
              transform var(--t-mid) var(--e-out),
              box-shadow var(--t-mid) var(--e-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn .icon { width: 18px; height: 18px; flex: none; }
.btn .icon-arrow { transition: transform var(--t-mid) var(--e-out); }
.btn:hover .icon-arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--sh-2);
}
.btn--primary:hover { background: var(--ink-3); box-shadow: var(--sh-3); }

.btn--accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 26px -12px rgba(31, 92, 139, .75);
}
.btn--accent:hover { background: var(--accent-2); }

.btn--ghost {
  border-color: var(--line-2);
  color: var(--text);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.btn--ghost-light {
  border-color: var(--line-inv-2);
  color: #fff;
  background: transparent;
}
.btn--ghost-light:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.btn--sm { padding: .68rem 1.15rem; font-size: .84rem; }
.btn--lg { padding: 1.1rem 2rem; font-size: 1rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .92rem;
  color: var(--accent);
}
.link-arrow .icon { width: 16px; height: 16px; transition: transform var(--t-mid) var(--e-out); }
.link-arrow:hover .icon { transform: translateX(4px); }
.section--ink .link-arrow { color: var(--accent-3); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .38rem .85rem;
  border-radius: var(--r-pill);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--paper-2);
  color: var(--text-2);
  border: 1px solid var(--line);
}
.badge--accent { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.badge--metal { background: var(--metal-soft); color: var(--metal); border-color: rgba(176, 141, 87, .3); }
.badge--solid { background: var(--ink); color: #fff; border-color: var(--ink); }

.badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.tag {
  display: inline-block;
  padding: .28rem .7rem;
  border-radius: var(--r-xs);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .04em;
  background: var(--paper-3);
  color: var(--text-2);
}
.section--ink .tag { background: rgba(255, 255, 255, .08); color: var(--text-inv-2); }

/* ==========================================================================
   06 CARDS
   ========================================================================== */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.4vw, 32px);
  transition: transform var(--t-mid) var(--e-out),
              box-shadow var(--t-mid) var(--e-out),
              border-color var(--t-mid) var(--e-out);
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow) var(--e-out);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-3);
  border-color: transparent;
}
.card:hover::after { transform: scaleX(1); }

.card--ink {
  background: var(--ink-2);
  border-color: var(--line-inv);
  color: var(--text-inv);
}
.card--ink:hover { box-shadow: var(--sh-inv); }
/* Dark card: restate heading colours, .h4 / .h3 carry a light-surface colour */
.card--ink .h1, .card--ink .h2,
.card--ink .h3, .card--ink .h4 { color: var(--text-inv); }
.card--flush { padding: 0; overflow: hidden; }
.card--flush:hover { transform: translateY(-5px); }

.card__icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: var(--sp-5);
  transition: background var(--t-mid) var(--e-out), color var(--t-mid) var(--e-out);
}
.card__icon .icon { width: 26px; height: 26px; }
.card:hover .card__icon { background: var(--accent); color: #fff; }
.card--ink .card__icon { background: rgba(255, 255, 255, .07); color: var(--accent-3); }
.card--ink:hover .card__icon { background: var(--accent); color: #fff; }

.card__title { margin-bottom: var(--sp-3); }
.card__text { color: var(--text-2); font-size: .95rem; line-height: var(--lh-loose); }
.card--ink .card__text { color: var(--text-inv-2); }
.card__foot { margin-top: auto; padding-top: var(--sp-5); }

.card__index {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .16em;
  color: var(--text-3);
  margin-bottom: var(--sp-4);
  display: block;
}
.card--ink .card__index { color: var(--text-inv-3); }

/* ==========================================================================
   07 HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-sticky);
  height: var(--header-h);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
  transition: background var(--t-mid) var(--e-out),
              border-color var(--t-mid) var(--e-out),
              box-shadow var(--t-mid) var(--e-out);
}
.site-header.is-stuck {
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -24px rgba(11, 12, 14, .4);
}
.site-header--dark {
  background: rgba(11, 12, 14, .55);
  border-bottom-color: var(--line-inv);
}
.site-header--dark.is-stuck {
  background: rgba(11, 12, 14, .92);
  border-bottom-color: var(--line-inv);
}
.site-header--dark .brand__name,
.site-header--dark .nav__link { color: #fff; }
.site-header--dark .nav__link:hover,
.site-header--dark .nav__link.is-active { color: #fff; }
.site-header--dark .nav__link::after { background: var(--accent-3); }
.site-header--dark .nav-toggle { color: #fff; border-color: var(--line-inv-2); }

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  flex: none;
}
.brand__mark {
  width: 34px; height: 34px;
  color: var(--ink);
}
.site-header--dark .brand__mark { color: #fff; }
.brand__name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: .01em;
  color: var(--ink);
}
.brand__suffix {
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-3);
}
.site-header--dark .brand__suffix { color: var(--text-inv-3); }

.nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 34px); }
.nav__link {
  position: relative;
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-2);
  padding-block: .35rem;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t-mid) var(--e-out);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__link.is-active { color: var(--ink); font-weight: 600; }
.nav__link.is-active::after { transform: scaleX(1); }

.site-header__actions { display: flex; align-items: center; gap: var(--sp-3); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--ink);
}
.nav-toggle .icon { width: 22px; height: 22px; }

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: var(--z-drawer);
  background: var(--paper);
  padding: var(--sp-6) var(--gutter) var(--sp-9);
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-mid) var(--e-out),
              transform var(--t-mid) var(--e-out),
              visibility var(--t-mid) var(--e-out);
  overflow-y: auto;
}
.nav-drawer.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: var(--ls-snug);
}
.nav-drawer__link .icon { width: 18px; height: 18px; color: var(--text-3); }
.nav-drawer__link.is-active { color: var(--accent); }
.nav-drawer__meta {
  margin-top: var(--sp-7);
  display: grid;
  gap: var(--sp-3);
  color: var(--text-2);
  font-size: .92rem;
}
.nav-drawer__meta a { display: inline-flex; align-items: center; gap: .55rem; }
.nav-drawer__meta .icon { width: 16px; height: 16px; color: var(--accent); }

/* ==========================================================================
   08 HERO
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--ink);
  color: var(--text-inv);
  overflow: hidden;
  padding-block: calc(var(--header-h) + clamp(56px, 7vw, 104px)) clamp(56px, 7vw, 108px);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .42;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(11, 12, 14, .96) 0%, rgba(11, 12, 14, .82) 42%, rgba(11, 12, 14, .38) 100%),
    linear-gradient(180deg, rgba(11, 12, 14, .55) 0%, rgba(11, 12, 14, .15) 45%, rgba(11, 12, 14, .92) 100%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: clamp(32px, 4vw, 72px);
  align-items: center;
}
.hero__title {
  font-size: var(--fs-h1);
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
  color: #fff;
  max-width: 15ch;
}
.hero__title .accent {
  color: var(--accent-3);
}
.hero__lead {
  margin-top: var(--sp-6);
  font-size: var(--fs-lead);
  line-height: var(--lh-loose);
  color: var(--text-inv-2);
  max-width: 54ch;
}
.hero__actions {
  margin-top: var(--sp-7);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.hero__meta {
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line-inv);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4) var(--sp-8);
}
.hero__meta-item { display: flex; align-items: center; gap: .6rem; font-size: .88rem; color: var(--text-inv-2); }
.hero__meta-item .icon { width: 18px; height: 18px; color: var(--metal); }

.hero__figure {
  position: relative;
}
.hero__figure img {
  width: 100%;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-inv);
  box-shadow: var(--sh-inv);
}
.hero__badge {
  position: absolute;
  bottom: -22px;
  left: clamp(-8px, -1vw, 0px);
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .9rem 1.15rem;
  background: var(--paper);
  color: var(--text);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
}
.hero__badge strong { display: block; font-size: .95rem; letter-spacing: var(--ls-snug); color: var(--text); }
.hero__badge span { font-size: .8rem; color: var(--text-3); }

.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: var(--sp-8);
  font-size: .78rem;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-inv-3);
}
.hero__scroll .icon { width: 16px; height: 16px; animation: float 2.4s var(--e-io) infinite; }

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  isolation: isolate;
  background: var(--ink);
  color: var(--text-inv);
  overflow: hidden;
  padding-block: calc(var(--header-h) + clamp(48px, 6vw, 92px)) clamp(48px, 6vw, 92px);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 420px at 78% -10%, rgba(31, 92, 139, .42), transparent 62%),
    radial-gradient(700px 380px at 8% 110%, rgba(176, 141, 87, .18), transparent 60%);
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-inv-2), transparent);
}
.page-hero__inner { max-width: 880px; }
.page-hero__title { color: #fff; max-width: 20ch; }
.page-hero__lead {
  margin-top: var(--sp-5);
  font-size: var(--fs-lead);
  line-height: var(--lh-loose);
  color: var(--text-inv-2);
  max-width: 62ch;
}
.page-hero__crumbs {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-top: var(--sp-6);
  font-size: .8rem;
  color: var(--text-inv-3);
}
.page-hero__crumbs a:hover { color: #fff; }
.page-hero__crumbs .icon { width: 13px; height: 13px; opacity: .6; }

/* ==========================================================================
   09 SERVICES
   ========================================================================== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(18px, 2vw, 28px);
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.4vw, 34px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform var(--t-mid) var(--e-out),
              box-shadow var(--t-mid) var(--e-out),
              border-color var(--t-mid) var(--e-out);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-3);
  border-color: var(--accent-line);
}
.service-card__num {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .18em;
  color: var(--accent);
  margin-bottom: var(--sp-5);
}
.service-card__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--ink);
  color: #fff;
  margin-bottom: var(--sp-5);
  transition: background var(--t-mid) var(--e-out), transform var(--t-mid) var(--e-out);
}
.service-card:hover .service-card__icon { background: var(--accent); transform: rotate(-6deg) scale(1.05); }
.service-card__icon .icon { width: 24px; height: 24px; }
.service-card__title { font-size: 1.14rem; font-weight: 600; letter-spacing: var(--ls-snug); margin-bottom: var(--sp-3); }
.service-card__text { font-size: .93rem; color: var(--text-2); line-height: var(--lh-loose); }
.service-card__link {
  margin-top: var(--sp-5);
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .86rem;
  font-weight: 600;
  color: var(--accent);
}
.service-card__link .icon { width: 15px; height: 15px; transition: transform var(--t-mid) var(--e-out); }
.service-card:hover .service-card__link .icon { transform: translateX(4px); }

.scope-statement {
  margin-top: var(--sp-8);
  padding: clamp(22px, 2.4vw, 34px);
  border-left: 2px solid var(--metal);
  background: var(--paper-2);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.scope-statement p {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: var(--lh-loose);
  color: var(--text);
}
.scope-statement .label {
  display: block;
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-mega);
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--sp-3);
}

/* ==========================================================================
   10 APP SHOWCASE
   ========================================================================== */
.app-showcase {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--text-inv);
  overflow: hidden;
}
/* A dark surface must restate every text colour it inherits — .h2 / .lead /
   .eyebrow / .link-arrow all carry their own light-surface colour, which is
   invisible against the ink gradient. */
.app-showcase .h1, .app-showcase .h2,
.app-showcase .h3, .app-showcase .h4 { color: var(--text-inv); }
.app-showcase .lead, .app-showcase .text-muted { color: var(--text-inv-2); }
.app-showcase .eyebrow { color: var(--text-inv-3); }
.app-showcase .eyebrow--metal { color: var(--metal); }
.app-showcase .link-arrow { color: var(--accent-3); }
.app-showcase__inner {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
.app-list { display: grid; gap: var(--sp-4); margin-top: var(--sp-7); }
.app-list__item {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: .95rem 1.1rem;
  border: 1px solid var(--line-inv);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .03);
  transition: background var(--t-mid) var(--e-out), border-color var(--t-mid) var(--e-out), transform var(--t-mid) var(--e-out);
}
.app-list__item:hover {
  background: rgba(255, 255, 255, .07);
  border-color: var(--line-inv-2);
  transform: translateX(4px);
}
.app-list__icon {
  width: 34px; height: 34px;
  flex: none;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: #fff;
}
.app-list__icon .icon { width: 18px; height: 18px; }
.app-list__item strong { display: block; font-size: .98rem; font-weight: 600; letter-spacing: var(--ls-snug); color: var(--text-inv); }
.app-list__item span { font-size: .86rem; color: var(--text-inv-3); }

.store-badges { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-7); }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  padding: .72rem 1.25rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line-inv-2);
  background: rgba(255, 255, 255, .05);
  color: #fff;
  transition: background var(--t-mid) var(--e-out), border-color var(--t-mid) var(--e-out), transform var(--t-mid) var(--e-out);
}
.store-badge:hover { background: rgba(255, 255, 255, .11); border-color: #fff; transform: translateY(-2px); }
.store-badge .icon { width: 26px; height: 26px; flex: none; }
.store-badge small {
  display: block;
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-inv-3);
  line-height: 1.2;
}
.store-badge strong { font-size: 1.02rem; font-weight: 600; letter-spacing: var(--ls-snug); line-height: 1.2; }

/* Phone mockup */
.phone-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding-block: var(--sp-8);
}
.phone {
  position: relative;
  width: clamp(240px, 26vw, 300px);
  aspect-ratio: 9 / 19;
  border-radius: 44px;
  background: linear-gradient(160deg, var(--ink-4), var(--ink));
  border: 1px solid var(--line-inv-2);
  box-shadow: var(--sh-inv), inset 0 0 0 2px rgba(255, 255, 255, .05);
  padding: 10px;
  animation: float 7s var(--e-io) infinite;
}
.phone::before {
  content: "";
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 34%; height: 20px;
  background: var(--ink);
  border-radius: var(--r-pill);
  z-index: 2;
}
.phone__screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: var(--ink-3);
}
.phone__screen img { width: 100%; height: 100%; object-fit: cover; }
.phone__float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem .85rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  box-shadow: var(--sh-3);
  font-size: .8rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}
.phone__float--tl { top: 16%; left: -6%; animation: float 6s var(--e-io) infinite .4s; }
.phone__float--br { bottom: 18%; right: -6%; animation: float 6.6s var(--e-io) infinite .9s; }
.phone__float .icon { width: 16px; height: 16px; color: var(--accent); }

.app-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}
.app-shot {
  border: 1px solid var(--line-inv);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-3);
}
.app-shot img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.app-shot figcaption {
  padding: .7rem .9rem;
  font-size: .78rem;
  color: var(--text-inv-3);
  border-top: 1px solid var(--line-inv);
}

/* ==========================================================================
   11 STATS
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat {
  background: var(--paper);
  padding: clamp(24px, 2.6vw, 38px);
}
.stat__value {
  font-size: var(--fs-stat);
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  line-height: 1;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: .1em;
}
.stat__value .suffix { font-size: .5em; color: var(--accent); }
.stat__label {
  margin-top: var(--sp-3);
  font-size: .86rem;
  color: var(--text-3);
  letter-spacing: .02em;
}

/* ==========================================================================
   12 CULTURE / TIMELINE
   ========================================================================== */
.timeline { position: relative; margin-top: var(--sp-8); }
.timeline::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), var(--line) 30%, var(--line) 70%, transparent);
}
.timeline__item {
  position: relative;
  padding-left: 40px;
  padding-bottom: var(--sp-8);
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -5px; top: 7px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--accent);
  transition: transform var(--t-mid) var(--e-out), background var(--t-mid) var(--e-out);
}
.timeline__item:hover::before { background: var(--accent); transform: scale(1.25); }
.timeline__year {
  font-family: var(--font-mono);
  font-size: .84rem;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}
.timeline__title { font-size: 1.1rem; font-weight: 600; letter-spacing: var(--ls-snug); margin-bottom: var(--sp-2); }
.timeline__text { font-size: .94rem; color: var(--text-2); line-height: var(--lh-loose); max-width: 60ch; }

.value-card { text-align: left; }
.value-card__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: var(--sp-5);
}
.value-card__icon .icon { width: 26px; height: 26px; }

.team-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--sp-5);
  align-items: center;
  justify-items: center;
  padding: clamp(24px, 3vw, 44px);
  background: var(--paper-2);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
}

/* ==========================================================================
   13 NEWS
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: clamp(28px, 3.4vw, 46px);
}
.filter-btn {
  padding: .55rem 1.1rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  font-size: .86rem;
  font-weight: 500;
  color: var(--text-2);
  background: var(--paper);
  transition: all var(--t-mid) var(--e-out);
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.filter-btn .count {
  font-family: var(--font-mono);
  font-size: .74rem;
  opacity: .6;
  margin-left: .35rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(18px, 2.2vw, 30px);
}
.news-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t-mid) var(--e-out),
              box-shadow var(--t-mid) var(--e-out),
              opacity var(--t-mid) var(--e-out);
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--sh-3); }
.news-card.is-hidden { display: none; }
.news-card__media {
  position: relative;
  overflow: hidden;
  background: var(--paper-3);
}
.news-card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform var(--t-slow) var(--e-out);
}
.news-card:hover .news-card__media img { transform: scale(1.06); }
.news-card__cat {
  position: absolute;
  top: 12px; left: 12px;
  padding: .3rem .7rem;
  border-radius: var(--r-xs);
  background: rgba(11, 12, 14, .78);
  color: #fff;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.news-card__body { padding: clamp(20px, 2.2vw, 28px); display: flex; flex-direction: column; flex: 1; }
.news-card__date {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .1em;
  color: var(--text-3);
  margin-bottom: var(--sp-3);
}
.news-card__title {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-snug);
  margin-bottom: var(--sp-3);
}
.news-card__excerpt { font-size: .92rem; color: var(--text-2); line-height: var(--lh-loose); }
.news-card__foot { margin-top: auto; padding-top: var(--sp-5); }

.pagination {
  margin-top: clamp(32px, 4vw, 56px);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .4rem;
}
.pagination__btn {
  min-width: 42px; height: 42px;
  display: grid; place-items: center;
  padding-inline: .6rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-2);
  transition: all var(--t-mid) var(--e-out);
}
.pagination__btn:hover { border-color: var(--ink); color: var(--ink); }
.pagination__btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.pagination__btn .icon { width: 16px; height: 16px; }
.pagination__btn[aria-label="Previous page"] .icon { transform: rotate(180deg); }
.pagination__btn[disabled] { opacity: .38; pointer-events: none; }

/* ==========================================================================
   14 CONTACT
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: clamp(30px, 4vw, 64px);
  align-items: start;
}
.info-list { display: grid; gap: var(--sp-4); }
.info-item {
  display: flex;
  gap: 1rem;
  padding: clamp(18px, 2vw, 24px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--t-mid) var(--e-out), transform var(--t-mid) var(--e-out);
}
.info-item:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.info-item__icon {
  width: 42px; height: 42px;
  flex: none;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent);
}
.info-item__icon .icon { width: 20px; height: 20px; }
.info-item__label {
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-mega);
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: .35rem;
}
.info-item__value { font-size: .98rem; line-height: var(--lh-normal); }
.info-item__value a:hover { color: var(--accent); }

.form {
  padding: clamp(24px, 3vw, 44px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-2);
}
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.field { display: block; margin-bottom: var(--sp-4); }
.field__label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text-2);
  margin-bottom: .5rem;
}
.field__label .req { color: var(--bad); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--paper);
  font-size: .95rem;
  transition: border-color var(--t-mid) var(--e-out), box-shadow var(--t-mid) var(--e-out);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field.has-error input, .field.has-error textarea { border-color: var(--bad); }
.field__error {
  display: none;
  margin-top: .4rem;
  font-size: .8rem;
  color: var(--bad);
}
.field.has-error .field__error { display: block; }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-size: .88rem;
  color: var(--text-2);
  line-height: 1.5;
}
.checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.checkbox a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.form__status {
  display: none;
  margin-top: var(--sp-4);
  padding: .9rem 1.1rem;
  border-radius: var(--r-sm);
  font-size: .9rem;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-line);
}
.form__status.is-visible { display: block; }

.map-frame {
  position: relative;
  margin-top: clamp(30px, 4vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--paper-2);
}
.map-frame img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.map-frame__pin {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
}
.map-frame__pin .icon { width: 30px; height: 30px; color: var(--accent); filter: drop-shadow(0 6px 10px rgba(11, 12, 14, .35)); }
.map-frame__label {
  padding: .45rem .8rem;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #fff;
  font-size: .78rem;
  white-space: nowrap;
}

/* ==========================================================================
   15 LEGAL
   ========================================================================== */
.legal {
  max-width: 860px;
  margin-inline: auto;
  font-size: 1rem;
  line-height: var(--lh-loose);
  color: var(--text-2);
}
.legal h2 {
  margin-top: var(--sp-9);
  margin-bottom: var(--sp-4);
  font-size: clamp(1.32rem, 2.2vw, 1.68rem);
  font-weight: 600;
  letter-spacing: var(--ls-snug);
  color: var(--text);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}
.legal h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.legal h3 {
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-3);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}
.legal p { margin-bottom: var(--sp-4); }
.legal p strong { color: var(--text); font-weight: 600; }
.legal ul, .legal ol { margin: 0 0 var(--sp-5) 0; padding-left: 1.25rem; }
.legal ul li { list-style: disc; margin-bottom: .6rem; }
.legal ol li { list-style: decimal; margin-bottom: .6rem; }
.legal li::marker { color: var(--accent); }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--text); }

.legal-meta {
  padding: var(--sp-5) var(--sp-6);
  background: var(--paper-2);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin-bottom: var(--sp-8);
  font-size: .9rem;
}
.legal-meta p { margin-bottom: .4rem; }
.legal-meta p:last-child { margin-bottom: 0; }

/* Wide tables: scroll container carries the scrollbar, table keeps semantics */
.table-wrap {
  margin-block: var(--sp-5) var(--sp-6);
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  -webkit-overflow-scrolling: touch;
}
.legal table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: .9rem;
  line-height: 1.55;
}
.legal table thead th {
  background: var(--ink);
  color: #fff;
  text-align: left;
  font-weight: 600;
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .85rem 1rem;
  white-space: nowrap;
}
.legal table tbody td {
  padding: .85rem 1rem;
  border-top: 1px solid var(--line);
  vertical-align: top;
  color: var(--text-2);
}
.legal table tbody tr:nth-child(even) { background: var(--paper-2); }
.legal table tbody td:first-child { color: var(--text); font-weight: 600; }
.legal table caption {
  caption-side: top;
  text-align: left;
  padding: .9rem 1rem;
  font-size: .82rem;
  color: var(--text-3);
  border-bottom: 1px solid var(--line);
}

.legal-callout {
  display: flex;
  gap: 1rem;
  padding: var(--sp-5);
  margin-block: var(--sp-5);
  border-radius: var(--r-md);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  font-size: .92rem;
}
.legal-callout .icon { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 2px; }

.legal-index {
  columns: 2;
  column-gap: var(--sp-6);
  margin-block: var(--sp-6);
  padding: var(--sp-6);
  background: var(--paper-2);
  border-radius: var(--r-lg);
  font-size: .92rem;
}
.legal-index a {
  display: block;
  padding: .4rem 0;
  color: var(--text-2);
  break-inside: avoid;
}
.legal-index a:hover { color: var(--accent); }
.legal-index a span {
  display: inline-block;
  width: 1.6rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--accent);
}

/* ==========================================================================
   16 FOOTER
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: var(--text-inv);
  padding-top: clamp(56px, 6vw, 92px);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.35fr;
  gap: clamp(28px, 3.4vw, 56px);
  padding-bottom: var(--sp-9);
}
.site-footer__brand .brand__name { color: #fff; }
.site-footer__brand .brand__suffix { color: var(--text-inv-3); }
.site-footer__brand .brand__mark { color: #fff; }
.site-footer__brand p {
  margin-top: var(--sp-5);
  color: var(--text-inv-3);
  font-size: .92rem;
  line-height: var(--lh-loose);
  max-width: 42ch;
}
.site-footer__col-title {
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-mega);
  text-transform: uppercase;
  color: var(--text-inv-3);
  margin-bottom: var(--sp-5);
}
.site-footer__list { display: grid; gap: .7rem; }
.site-footer__list a { color: var(--text-inv-2); font-size: .92rem; }
.site-footer__list a:hover { color: #fff; }
.site-footer__contact { display: grid; gap: 1rem; }
.site-footer__contact-item { display: flex; gap: .7rem; font-size: .9rem; color: var(--text-inv-2); line-height: 1.55; }
.site-footer__contact-item .icon { width: 17px; height: 17px; color: var(--metal); flex: none; margin-top: 2px; }
.site-footer__contact-item a:hover { color: #fff; }

.site-footer__legal {
  border-top: 1px solid var(--line-inv);
  padding-block: var(--sp-5) var(--sp-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  font-size: .84rem;
  color: var(--text-inv-3);
}
.site-footer__legal-links { display: flex; flex-wrap: wrap; gap: var(--sp-5); }
.site-footer__legal-links a { color: var(--text-inv-2); }
.site-footer__legal-links a:hover { color: #fff; }
.site-footer__mascots {
  display: flex;
  gap: .5rem;
  margin-top: var(--sp-5);
}

/* ==========================================================================
   17 UTILITIES
   ========================================================================== */
.icon { width: 24px; height: 24px; flex: none; }
.icon--sm { width: 18px; height: 18px; }
.icon--lg { width: 32px; height: 32px; }

.mascot {
  display: inline-flex;
  width: 60px; height: 60px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: transform var(--t-mid) var(--e-out), box-shadow var(--t-mid) var(--e-out);
}
.mascot svg { width: 80%; height: 80%; }
.mascot:hover { transform: translateY(-4px) rotate(-4deg); box-shadow: var(--sh-2); }
.mascot--sm { width: 46px; height: 46px; }
.mascot--lg { width: 88px; height: 88px; }
.mascot--xl { width: 124px; height: 124px; }
.mascot--ink { background: rgba(255, 255, 255, .06); border-color: var(--line-inv); color: #fff; }
.mascot--accent { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }

.sprite-host { position: absolute; width: 0; height: 0; overflow: hidden; }

.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: var(--z-top);
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--sh-3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity var(--t-mid) var(--e-out),
              transform var(--t-mid) var(--e-out),
              visibility var(--t-mid) var(--e-out),
              background var(--t-mid) var(--e-out);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--accent); }
.to-top .icon { width: 20px; height: 20px; }

.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(18px, 2vw, 26px);
  counter-reset: step;
}
.process__step {
  position: relative;
  padding: clamp(22px, 2.4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  transition: transform var(--t-mid) var(--e-out), box-shadow var(--t-mid) var(--e-out);
}
.process__step:hover { transform: translateY(-5px); box-shadow: var(--sh-3); }
.process__step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .16em;
  color: var(--accent);
  margin-bottom: var(--sp-4);
}
.process__step h4 { margin-bottom: var(--sp-2); }
.process__step p { font-size: .92rem; color: var(--text-2); line-height: var(--lh-loose); }

.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(16px, 2vw, 24px); }
.faq-card {
  padding: clamp(20px, 2.2vw, 28px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--t-mid) var(--e-out), transform var(--t-mid) var(--e-out);
}
.faq-card:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.faq-card h4 { margin-bottom: var(--sp-3); display: flex; align-items: flex-start; gap: .6rem; }
.faq-card h4 .icon { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }
.faq-card p { font-size: .92rem; color: var(--text-2); line-height: var(--lh-loose); }

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--text-inv);
  border-radius: var(--r-xl);
  padding: clamp(36px, 5vw, 72px);
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(700px 320px at 88% 0%, rgba(31, 92, 139, .5), transparent 62%),
    radial-gradient(520px 300px at 4% 100%, rgba(176, 141, 87, .22), transparent 60%);
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-7);
  flex-wrap: wrap;
}
.cta-band__title { color: #fff; max-width: 22ch; }
.cta-band p { color: var(--text-inv-2); margin-top: var(--sp-4); max-width: 56ch; }
.cta-band__actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

.mark {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.mark .icon { width: 16px; height: 16px; color: var(--accent); }

/* ==========================================================================
   18 MOTION
   ========================================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translate3d(0, 26px, 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideLeft {
  from { opacity: 0; transform: translate3d(calc(var(--shift-x) * -1), 0, 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes slideRight {
  from { opacity: 0; transform: translate3d(var(--shift-x), 0, 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes zoomIn {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-13px); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.07); opacity: .82; }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25%      { transform: rotate(-7deg); }
  75%      { transform: rotate(7deg); }
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- Reveal utilities: hidden until .in is applied by the observer --- */
.reveal,
.fade-up,
.fade-in,
.slide-left,
.slide-right,
.zoom-in {
  opacity: 0;
  will-change: opacity, transform;
}
.reveal.in,
.fade-up.in,
.fade-in.in,
.slide-left.in,
.slide-right.in,
.zoom-in.in {
  opacity: 1;
  transform: none;
  transition: opacity var(--t-reveal) var(--e-out), transform var(--t-reveal) var(--e-out);
}

.fade-up.in   { animation: fadeUp var(--t-reveal) var(--e-out) both; }
.fade-in.in   { animation: fadeIn var(--t-slow) var(--e-out) both; }
.slide-left.in { animation: slideLeft var(--t-reveal) var(--e-out) both; }
.slide-right.in { animation: slideRight var(--t-reveal) var(--e-out) both; }
.zoom-in.in   { animation: zoomIn var(--t-reveal) var(--e-out) both; }

/* --- Looping decorative animations --- */
.float    { animation: float 6s var(--e-io) infinite; }
.bounce   { animation: bounce 2.6s var(--e-io) infinite; }
.pulse    { animation: pulse 2.8s var(--e-io) infinite; }
.wiggle   { animation: wiggle 1.1s var(--e-soft) infinite; }
.spin-slow{ animation: spinSlow 18s linear infinite; }

/* --- Stagger: children animate in sequence --- */
.stagger > * { opacity: 0; }
.stagger.in > * {
  animation: fadeUp var(--t-reveal) var(--e-out) both;
  animation-delay: calc(var(--i, 0) * 90ms);
}

/* --- Reduced motion guard --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .fade-up, .fade-in, .slide-left, .slide-right, .zoom-in,
  .stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   RESPONSIVE — 1024 / 768 / 480
   ========================================================================== */
@media (max-width: 1024px) {
  :root { --header-h: 68px; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__title { max-width: 20ch; }
  .hero__figure { order: -1; }
  .hero__figure img { max-height: 340px; object-fit: cover; }
  .hero__badge { position: static; margin-top: var(--sp-4); display: inline-flex; }

  .app-showcase__inner { grid-template-columns: 1fr; }
  .phone-stage { order: -1; }
  .phone__float--tl { left: 2%; }
  .phone__float--br { right: 2%; }

  .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header__actions .btn { display: none; }

  .hero { padding-top: calc(var(--header-h) + 40px); }
  .hero__meta { gap: var(--sp-3) var(--sp-6); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form__row { grid-template-columns: 1fr; }
  .app-shots { grid-template-columns: 1fr; }
  .legal-index { columns: 1; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__legal { flex-direction: column; align-items: flex-start; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .map-frame img { aspect-ratio: 16 / 10; }
  .phone__float { display: none; }
}

@media (max-width: 480px) {
  :root { --gutter: 20px; }
  .hero__title { font-size: 2.1rem; }
  .hero__actions .btn { width: 100%; }
  .stats { grid-template-columns: 1fr; }
  .store-badge { width: 100%; }
  .btn { width: 100%; }
  .hero__actions .btn { width: 100%; }
  .cta-band__actions .btn { width: 100%; }
}
