/* ==========================================================================
   HK OSVERIR CO., LIMITED — Global Design System
   Aesthetic: bold automotive-inspired. Ember orange on graphite, sharp
   geometry, high-contrast typography, energetic motion.
   Single source of truth for every page (reuse-A).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* --- Core surfaces --- */
  --c-ink:        #0a0e14;
  --c-ink-2:      #111826;
  --c-ink-3:      #1b2434;
  --c-graphite:   #2a3446;
  --c-slate:      #56637a;
  --c-mist:       #8b98ad;
  --c-line:       #dfe5ee;
  --c-paper:      #ffffff;
  --c-paper-2:    #f4f7fb;
  --c-paper-3:    #e9eef5;

  /* --- Brand --- */
  --c-primary:      #ff3b1f;
  --c-primary-deep: #d8230a;
  --c-primary-soft: #ffe6e0;
  --c-accent:       #00c2b2;
  --c-accent-deep:  #009a8d;
  --c-accent-soft:  #d6f7f3;
  --c-amber:        #ffb020;
  --c-amber-soft:   #fff1d6;

  /* --- Text-safe brand variants ---------------------------------------
     The pure brand orange (#ff3b1f) only reaches 3.56:1 on white, which
     fails WCAG AA for body text. These darker variants clear 4.5:1 on
     white / mist surfaces and are used wherever the brand colour is
     applied to text or icons on a light background. The bright brand
     colour stays for large headings, dark surfaces and fills. */
  --c-primary-ink:  #c7300f;   /* 4.8:1 on white */
  --c-primary-on-dark: #ff6a4f; /* 5.9:1 on ink-900 */
  --c-accent-ink:   #00796d;   /* 4.6:1 on white */

  /* --- Semantic --- */
  --c-text:        var(--c-ink);
  --c-text-soft:   var(--c-slate);
  --c-text-invert: var(--c-paper);
  --c-line-dark:   rgba(255, 255, 255, 0.12);
  --c-line-light:  var(--c-line);

  /* --- Typography --- */
  --f-sans: "Segoe UI", -apple-system, BlinkMacSystemFont, "PingFang SC",
            "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  --f-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --fs-hero:   clamp(2.6rem, 1.4rem + 4.6vw, 5.4rem);
  --fs-h1:     clamp(2.1rem, 1.3rem + 3.1vw, 3.6rem);
  --fs-h2:     clamp(1.7rem, 1.2rem + 2.1vw, 2.75rem);
  --fs-h3:     clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
  --fs-h4:     clamp(1.05rem, 0.95rem + 0.4vw, 1.2rem);
  --fs-body:   1rem;
  --fs-sm:     0.9375rem;
  --fs-xs:     0.8125rem;
  --fs-eyebrow:0.75rem;

  /* --- Space --- */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;     --sp-7: 2.75rem;  --sp-8: 3.5rem;
  --sp-9: 5rem;     --sp-10: 7rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4rem, 8vw, 7.5rem);
  --maxw: 1240px;
  --maxw-narrow: 860px;

  /* --- Radius --- */
  --r-xs: 4px;  --r-sm: 8px;  --r-md: 14px; --r-lg: 22px;
  --r-xl: 32px; --r-pill: 999px;

  /* --- Elevation --- */
  --sh-sm: 0 1px 2px rgba(10, 14, 20, 0.06), 0 2px 8px rgba(10, 14, 20, 0.05);
  --sh-md: 0 4px 14px rgba(10, 14, 20, 0.08), 0 12px 32px rgba(10, 14, 20, 0.07);
  --sh-lg: 0 10px 28px rgba(10, 14, 20, 0.12), 0 28px 70px rgba(10, 14, 20, 0.14);
  --sh-glow: 0 12px 40px rgba(255, 59, 31, 0.28);
  --sh-glow-teal: 0 12px 40px rgba(0, 194, 178, 0.26);

  /* --- Motion --- */
  --dur-xs: 140ms;
  --dur-sm: 220ms;
  --dur-md: 380ms;
  --dur-lg: 640ms;
  --dur-xl: 1000ms;
  --e-out: cubic-bezier(0.16, 0.84, 0.44, 1);
  --e-back: cubic-bezier(0.34, 1.42, 0.5, 1);
  --e-in-out: cubic-bezier(0.62, 0.05, 0.3, 1);

  /* --- Layer --- */
  --z-base: 1;
  --z-sticky: 100;
  --z-header: 200;
  --z-drawer: 300;
  --z-top: 400;

  /* --- Shape --- */
  --skew: skewX(-12deg);
  --clip-corner: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

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

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--sp-4);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--c-ink);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; }
h4 { font-size: var(--fs-h4); letter-spacing: -0.005em; }

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--c-primary-ink);
  text-decoration: none;
  transition: color var(--dur-sm) var(--e-out), opacity var(--dur-sm) var(--e-out);
}
a:hover { color: var(--c-primary-deep); }

img, svg, video { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.15rem; }
li { margin-bottom: var(--sp-2); }

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

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

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

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

/* Scrollbar (WebKit) */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--c-paper-2); }
::-webkit-scrollbar-thumb {
  background: var(--c-graphite);
  border-radius: var(--r-pill);
  border: 3px solid var(--c-paper-2);
}
::-webkit-scrollbar-thumb:hover { background: var(--c-primary); }

/* --------------------------------------------------------------------------
   3. LAYOUT UTILITIES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--maxw-narrow); }
.container--wide { max-width: 1440px; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--paper { background: var(--c-paper); }
.section--mist { background: var(--c-paper-2); }
.section--dark {
  background: var(--c-ink);
  color: var(--c-text-invert);
}
.section--dark h1, .section--dark h2, .section--dark h3,
.section--dark h4, .section--dark h5, .section--dark h6 { color: var(--c-paper); }
.section--dark p { color: rgba(255, 255, 255, 0.78); }
.section--dark a { color: var(--c-accent); }
.section--dark a:hover { color: #fff; }

/* Tone variant must be scoped to the surface that paints the background. */
.section--dark .section-head__title,
.hero--dark .section-head__title { color: var(--c-paper); }

/* Eyebrow on a dark surface needs the light brand variant — the ink variant
   used on white would only reach 3.5:1 against the graphite background. */
.hero .eyebrow,
.page-hero .eyebrow,
.section--dark .eyebrow { color: var(--c-primary-on-dark); }
.hero .eyebrow::before,
.page-hero .eyebrow::before,
.section--dark .eyebrow::before,
.hero .eyebrow::after,
.page-hero .eyebrow::after,
.section--dark .eyebrow::after { background: var(--c-primary-on-dark); }

.grid { display: grid; gap: var(--sp-6); }
.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--auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--auto-lg { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }

.stack > * + * { margin-top: var(--sp-4); }
.text-center { text-align: center; }
.measure { max-width: 62ch; }
.mx-auto { margin-inline: auto; }
.mt-0 { margin-top: 0; } .mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); } .mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); } .mt-8 { margin-top: var(--sp-8); }
.mb-0 { margin-bottom: 0; } .mb-4 { margin-bottom: var(--sp-4); }
.mb-5 { margin-bottom: var(--sp-5); } .mb-6 { margin-bottom: var(--sp-6); }
.text-soft { color: var(--c-text-soft); }
.text-primary { color: var(--c-primary); }
.text-accent { color: var(--c-accent); }
.text-xs { font-size: var(--fs-xs); }
.text-sm { font-size: var(--fs-sm); }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.lh-150 { line-height: 1.5; }

/* Split layout: two columns, vertically centred, wide gap */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
/* Two-up grid with a tight gap (nested card rows) */
.grid--tight { gap: var(--sp-4); }
/* Chip row alignment */
.chip-row--start { justify-content: flex-start; }
.chip-row--center { justify-content: center; }
/* Roomier card padding */
.card--roomy { padding: var(--sp-7); }
/* Smaller section heading inside cards */
.section-head__title--sm { font-size: var(--fs-h3); }
.section-head__lede--sm { font-size: var(--fs-sm); }
/* Hidden until the JS filter decides otherwise */
[hidden] { display: none !important; }
/* Rotate an arrow icon 90° (used for the "previous page" control) */
.icon--rot-90 { transform: rotate(90deg); }

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

.skip-link {
  position: absolute; top: -100px; left: var(--sp-4);
  z-index: calc(var(--z-top) + 10);
  background: var(--c-primary-deep); color: #fff;
  padding: var(--sp-3) var(--sp-5); border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 700;
}
.skip-link:focus { top: 0; color: #fff; }

/* --------------------------------------------------------------------------
   4. SECTION HEADINGS & BADGES
   -------------------------------------------------------------------------- */
.section-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); max-width: 780px; }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-eyebrow);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-primary-ink);
  margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 3px;
  background: var(--c-primary-ink);
  transform: skewX(-24deg);
  border-radius: 2px;
}
.section-head--center .eyebrow::after {
  content: "";
  width: 26px; height: 3px;
  background: var(--c-primary-ink);
  transform: skewX(-24deg);
  border-radius: 2px;
}

.section-head__title { margin-bottom: var(--sp-4); }
.section-head__lede {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.175rem);
  color: var(--c-text-soft);
  max-width: 68ch;
}
.section--dark .section-head__lede { color: rgba(255, 255, 255, 0.72); }

.badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 0.35rem 0.8rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--c-primary-soft);
  color: var(--c-primary-ink);
  border: 1px solid rgba(255, 59, 31, 0.22);
}
.badge--teal { background: var(--c-accent-soft); color: var(--c-accent-deep); border-color: rgba(0, 194, 178, 0.28); }
.badge--amber { background: var(--c-amber-soft); color: #8a5a00; border-color: rgba(255, 176, 32, 0.32); }
.badge--solid { background: var(--c-primary); color: #fff; border-color: transparent; }
.badge--ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: var(--c-line-dark); }

.tag {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: var(--r-xs);
  font-size: var(--fs-xs);
  font-weight: 700;
  background: var(--c-paper-3);
  color: var(--c-graphite);
}
.tag--primary { background: var(--c-primary); color: #fff; }
.tag--teal { background: var(--c-accent); color: #04211f; }

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--c-primary);
  --btn-fg: #fff;
  --btn-bd: var(--c-primary);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.9rem 1.7rem;
  border: 2px solid var(--btn-bd);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 800;
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--dur-sm) var(--e-back),
              box-shadow var(--dur-sm) var(--e-out),
              background-color var(--dur-sm) var(--e-out),
              color var(--dur-sm) var(--e-out),
              border-color var(--dur-sm) var(--e-out);
}
.btn::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.32) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform var(--dur-lg) var(--e-out);
  z-index: -1;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-3px); box-shadow: var(--sh-glow); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--c-ink);
  --btn-bd: var(--c-ink);
}
.btn--ghost:hover { --btn-fg: #fff; --btn-bg: var(--c-ink); --btn-bd: var(--c-ink); }
.section--dark .btn--ghost,
.hero--dark .btn--ghost { --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, 0.55); }
.section--dark .btn--ghost:hover,
.hero--dark .btn--ghost:hover { --btn-bg: #fff; --btn-fg: var(--c-ink); --btn-bd: #fff; }

.btn--light { --btn-bg: #fff; --btn-fg: var(--c-ink); --btn-bd: #fff; }
.btn--light:hover { --btn-bg: var(--c-paper-3); --btn-fg: var(--c-ink); }

.btn--dark { --btn-bg: var(--c-ink); --btn-fg: #fff; --btn-bd: var(--c-ink); }
.btn--dark:hover { --btn-bg: var(--c-ink-3); --btn-bd: var(--c-ink-3); }

.btn--teal { --btn-bg: var(--c-accent); --btn-fg: #04211f; --btn-bd: var(--c-accent); }
.btn--teal:hover { --btn-bg: var(--c-accent-deep); --btn-bd: var(--c-accent-deep); --btn-fg: #fff; }

.btn--sm { padding: 0.6rem 1.15rem; font-size: var(--fs-xs); }
.btn--lg { padding: 1.05rem 2.2rem; font-size: 1rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-weight: 800; font-size: var(--fs-sm);
}
.link-arrow svg { width: 18px; height: 18px; transition: transform var(--dur-sm) var(--e-out); }
.link-arrow:hover svg { transform: translateX(5px); }

/* App store badges */
.store-badge {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  padding: 0.65rem 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transition: transform var(--dur-sm) var(--e-out), border-color var(--dur-sm) var(--e-out), background-color var(--dur-sm) var(--e-out);
}
.store-badge:hover { transform: translateY(-3px); border-color: var(--c-primary); background: rgba(255, 255, 255, 0.1); color: #fff; }
.store-badge svg { width: 26px; height: 26px; flex: 0 0 auto; }
.store-badge__label { display: block; font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.78; }
.store-badge__title { display: block; font-weight: 800; font-size: var(--fs-sm); line-height: 1.2; }

/* --------------------------------------------------------------------------
   6. CARDS
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--sp-6);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  transition: transform var(--dur-md) var(--e-out),
              box-shadow var(--dur-md) var(--e-out),
              border-color var(--dur-md) var(--e-out);
}
.card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-md) var(--e-out);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }

.card__icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--c-primary-soft);
  color: var(--c-primary-ink);
  margin-bottom: var(--sp-4);
  transition: transform var(--dur-md) var(--e-back), background-color var(--dur-md) var(--e-out), color var(--dur-md) var(--e-out);
}
.card__icon svg { width: 26px; height: 26px; }
.card:hover .card__icon {
  background: var(--c-primary);
  color: #fff;
  transform: rotate(-6deg) scale(1.06);
}
.card__title { font-size: var(--fs-h4); margin-bottom: var(--sp-3); color: var(--c-ink); }
.card__text { color: var(--c-text-soft); font-size: var(--fs-sm); margin: 0; }
.card__foot { margin-top: auto; padding-top: var(--sp-4); }

/* Dark-surface card: owns its own colours (never inherits section colour).
   The fill is solid, not translucent — a translucent white would composite
   against whatever sits behind it and leave white text on a light surface. */
.card--dark {
  background: var(--c-ink-2);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.card--dark .card__title { color: #fff; }
.card--dark .card__text { color: rgba(255, 255, 255, 0.78); }
.card--dark .card__icon { background: rgba(255, 106, 79, 0.18); color: #ff8a72; }
.card--dark:hover { background: var(--c-ink-3); border-color: rgba(255, 255, 255, 0.24); }

.card--accent { border-left: 4px solid var(--c-primary); }
.card--flat { box-shadow: none; }
.card--glass { backdrop-filter: blur(10px); background: rgba(255, 255, 255, 0.06); border-color: var(--c-line-dark); }

/* Numbered process card */
.step-card { position: relative; padding-top: var(--sp-7); }
.step-card__num {
  position: absolute; top: calc(var(--sp-6) * -1 + 6px); left: var(--sp-6);
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--c-ink);
  color: #fff;
  font-weight: 800; font-size: 1.1rem;
  border: 3px solid var(--c-paper);
  box-shadow: var(--sh-md);
}

/* --------------------------------------------------------------------------
   7. HEADER (reuse-C)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  /* Opaque enough that scrolling content never shows through the bar.
     The blur is decorative only — the drawer is a <body> child, so it is
     never trapped inside this backdrop-filtered containing block. */
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--c-line);
  transition: background-color var(--dur-md) var(--e-out),
              box-shadow var(--dur-md) var(--e-out),
              border-color var(--dur-md) var(--e-out);
}
.site-header.is-scrolled {
  box-shadow: var(--sh-md);
  border-color: transparent;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  height: 76px;
}

.brand { display: inline-flex; align-items: center; gap: var(--sp-3); color: var(--c-ink); }
.brand:hover { color: var(--c-ink); }
.brand__mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: var(--c-ink);
  color: var(--c-primary);
  flex: 0 0 auto;
  transition: transform var(--dur-md) var(--e-back);
}
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.05); }
.brand__mark svg { width: 26px; height: 26px; }
.brand__name { font-weight: 800; font-size: 1.02rem; letter-spacing: -0.01em; line-height: 1.15; }
.brand__tag { display: block; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-text-soft); }
.site-footer .brand__tag { color: rgba(255, 255, 255, 0.62); }

.nav { display: flex; align-items: center; gap: var(--sp-5); }
.nav__link {
  position: relative;
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--c-graphite);
  padding: var(--sp-2) 0;
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 3px; border-radius: 2px;
  background: var(--c-primary-ink);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur-sm) var(--e-out);
}
.nav__link:hover { color: var(--c-ink); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--c-primary-ink); }
.nav__link.is-active::after { transform: scaleX(1); }

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

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-line);
  place-items: center;
  background: var(--c-paper);
  color: var(--c-ink);
  transition: background-color var(--dur-sm) var(--e-out), border-color var(--dur-sm) var(--e-out);
}
.nav-toggle:hover { border-color: var(--c-primary); color: var(--c-primary); }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }

/* Mobile drawer — injected as a direct child of <body> by main.js so that
   `position: fixed` resolves against the viewport, never a blurred ancestor. */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--sp-5) var(--sp-5) var(--sp-8);
  background: var(--c-ink);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateX(12%);
  transition: opacity var(--dur-md) var(--e-out),
              transform var(--dur-md) var(--e-out),
              visibility var(--dur-md);
}
.mobile-nav[hidden] { display: none !important; }
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: translateX(0); }
.mobile-nav__head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--c-line-dark);
}
.mobile-nav__close {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-line-dark);
  color: #fff;
}
.mobile-nav__close svg { width: 24px; height: 24px; }
.mobile-nav__list { list-style: none; margin: var(--sp-5) 0 0; padding: 0; }
.mobile-nav__list li { margin: 0; }
.mobile-nav__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-4) 0;
  font-size: 1.35rem; font-weight: 800;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-nav__link.is-active { color: var(--c-primary); }
.mobile-nav__link svg { width: 20px; height: 20px; opacity: 0.6; }
.mobile-nav__foot { margin-top: auto; padding-top: var(--sp-6); }
.mobile-nav__foot p {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-xs);
  margin: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
}
.brand--drawer .brand__mark { background: rgba(255, 255, 255, 0.1); color: var(--c-primary); }
.brand--drawer .brand__name { color: #fff; }
.brand--drawer .brand__tag { color: rgba(255, 255, 255, 0.55); }

.nav-scrim {
  position: fixed; inset: 0;
  z-index: calc(var(--z-drawer) - 1);
  background: rgba(10, 14, 20, 0.55);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-md) var(--e-out), visibility var(--dur-md);
}
.nav-scrim.is-open { opacity: 1; visibility: visible; }

/* --------------------------------------------------------------------------
   8. FOOTER (reuse-D)
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--c-ink);
  color: rgba(255, 255, 255, 0.72);
  padding-block: var(--sp-9) var(--sp-6);
}
.site-footer h2, .site-footer h3, .site-footer h4 { color: #fff; }
.site-footer a { color: rgba(255, 255, 255, 0.72); }
.site-footer a:hover { color: var(--c-primary); }

.footer__top {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: var(--sp-7) var(--sp-6);
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid var(--c-line-dark);
}
.footer__brand .brand { color: #fff; }
.footer__brand .brand:hover { color: #fff; }
.footer__brand .brand__mark { background: rgba(255, 255, 255, 0.1); color: var(--c-primary); }
.footer__brand p { margin-top: var(--sp-4); font-size: var(--fs-sm); max-width: 42ch; }
.footer__contact { list-style: none; margin: var(--sp-4) 0 0; padding: 0; }
.footer__contact li { display: flex; gap: var(--sp-3); margin-bottom: var(--sp-3); font-size: var(--fs-sm); }
.footer__contact svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--c-primary); margin-top: 3px; }

.footer__title {
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--sp-4);
}
.footer__links { list-style: none; margin: 0; padding: 0; }
.footer__links li { margin-bottom: var(--sp-2); }
.footer__links a { font-size: var(--fs-sm); }

.footer__bottom {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: var(--sp-4);
  padding-top: var(--sp-5);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--sp-5); list-style: none; margin: 0; padding: 0; }
.footer__legal li { margin: 0; }
.footer__legal a { font-size: var(--fs-xs); font-weight: 700; }
.footer__copy { font-size: var(--fs-xs); margin: 0; color: rgba(255, 255, 255, 0.5); }

/* --------------------------------------------------------------------------
   9. ANIMATIONS (reuse-G)
   -------------------------------------------------------------------------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideLeft { from { opacity: 0; transform: translateX(-42px); } to { opacity: 1; transform: none; } }
@keyframes slideRight { from { opacity: 0; transform: translateX(42px); } to { opacity: 1; transform: none; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(0.86); } to { opacity: 1; transform: none; } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes bounceY { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-12px); } 55% { transform: translateY(3px); } 80% { transform: translateY(-5px); } }
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(255, 59, 31, 0.45); }
  70% { box-shadow: 0 0 0 16px rgba(255, 59, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 31, 0); }
}
@keyframes wiggleTilt {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-7deg); }
  75% { transform: rotate(7deg); }
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes stripeShift { from { background-position: 0 0; } to { background-position: 56px 0; } }
@keyframes sheen { 0% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }

.reveal {
  opacity: 0;
  transition: opacity var(--dur-lg) var(--e-out), transform var(--dur-lg) var(--e-out);
  will-change: opacity, transform;
}
.reveal.fade-up { transform: translateY(34px); }
.reveal.fade-in { transform: none; }
.reveal.slide-left { transform: translateX(-44px); }
.reveal.slide-right { transform: translateX(44px); }
.reveal.zoom-in { transform: scale(0.9); }
.reveal.in { opacity: 1; transform: none; }

/* Stagger: children fade in one after another */
.stagger > * { opacity: 0; transform: translateY(26px); }
.stagger.in > * {
  opacity: 1;
  transform: none;
  transition: opacity var(--dur-lg) var(--e-out), transform var(--dur-lg) var(--e-out);
}
.stagger.in > *:nth-child(1) { transition-delay: 60ms; }
.stagger.in > *:nth-child(2) { transition-delay: 130ms; }
.stagger.in > *:nth-child(3) { transition-delay: 200ms; }
.stagger.in > *:nth-child(4) { transition-delay: 270ms; }
.stagger.in > *:nth-child(5) { transition-delay: 340ms; }
.stagger.in > *:nth-child(6) { transition-delay: 410ms; }
.stagger.in > *:nth-child(7) { transition-delay: 480ms; }
.stagger.in > *:nth-child(8) { transition-delay: 550ms; }
.stagger.in > *:nth-child(9) { transition-delay: 620ms; }
.stagger.in > *:nth-child(10) { transition-delay: 690ms; }
.stagger.in > *:nth-child(n+11) { transition-delay: 760ms; }

/* Ambient utility animations (always on, honouring reduced motion) */
.float { animation: floatY 5.5s var(--e-in-out) infinite; }
.bounce { animation: bounceY 2.6s var(--e-in-out) infinite; }
.pulse { animation: pulseRing 2.2s var(--e-out) infinite; }
.wiggle { animation: wiggleTilt 1.6s var(--e-in-out) infinite; transform-origin: 50% 90%; }
.spin-slow { animation: spinSlow 14s linear infinite; }
.float--slow { animation-duration: 8s; }
.float--delay { animation-delay: 1.4s; }
.bounce--delay { animation-delay: 0.7s; }
.wiggle--delay { animation-delay: 0.4s; }

@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;
  }
  .reveal, .stagger > * { opacity: 1 !important; transform: none !important; }
  .float, .bounce, .wiggle, .spin-slow, .pulse { animation: none !important; }
}

/* --------------------------------------------------------------------------
   10. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--c-ink);
  color: #fff;
  padding-block: clamp(4.5rem, 9vw, 8rem);
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 88% 8%, rgba(255, 59, 31, 0.34), transparent 58%),
    radial-gradient(90% 80% at 8% 96%, rgba(0, 194, 178, 0.20), transparent 60%),
    linear-gradient(150deg, #0a0e14 0%, #111826 52%, #0a0e14 100%);
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 26px);
  opacity: 0.55;
  z-index: -1;
  pointer-events: none;
}
.hero--page { padding-block: clamp(3.5rem, 7vw, 6rem); }

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__title { color: #fff; margin-bottom: var(--sp-5); }
.hero__title em {
  font-style: normal;
  color: var(--c-primary);
  position: relative;
}
.hero__title em::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0.06em;
  height: 0.16em;
  background: var(--c-primary);
  opacity: 0.22;
  border-radius: 2px;
}
.hero__lede {
  font-size: clamp(1rem, 0.95rem + 0.45vw, 1.25rem);
  color: rgba(255, 255, 255, 0.78);
  max-width: 58ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-6); }
.hero__tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-6); }

.hero__media { position: relative; }
.hero__image {
  width: 100%;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}
.hero__image img { width: 100%; display: block; }
.hero__image::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(255, 59, 31, 0.12), transparent 45%);
  pointer-events: none;
}

.hero__panel {
  position: absolute;
  right: -8px; bottom: -22px;
  background: rgba(17, 24, 38, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--c-line-dark);
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-5);
  box-shadow: var(--sh-lg);
  display: flex; align-items: center; gap: var(--sp-4);
}
.hero__panel strong { display: block; font-size: 1.6rem; line-height: 1.1; color: #fff; }
.hero__panel span { font-size: var(--fs-xs); color: rgba(255, 255, 255, 0.62); }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-4);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--c-line-dark);
}
.hero__stat strong { display: block; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.5rem); color: #fff; font-weight: 800; line-height: 1; }
.hero__stat span { font-size: var(--fs-xs); color: rgba(255, 255, 255, 0.6); letter-spacing: 0.08em; text-transform: uppercase; }

/* Page hero (inner pages) */
.page-hero { position: relative; overflow: hidden; background: var(--c-ink); color: #fff; padding-block: clamp(3.5rem, 7vw, 6rem); }
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(100% 100% at 82% 0%, rgba(255, 59, 31, 0.28), transparent 60%),
    linear-gradient(140deg, #0a0e14, #131c2c);
  z-index: -1;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.045) 0 2px, transparent 2px 26px);
  z-index: -1;
}
.page-hero__title { color: #fff; }
.page-hero__lede { color: rgba(255, 255, 255, 0.75); font-size: clamp(1rem, 0.95rem + 0.4vw, 1.2rem); max-width: 66ch; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-xs); color: rgba(255, 255, 255, 0.55); margin-bottom: var(--sp-4); list-style: none; padding: 0; }
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: var(--sp-2); }
.breadcrumb li + li::before { content: "/"; opacity: 0.45; }
.breadcrumb a { color: rgba(255, 255, 255, 0.72); }

/* --------------------------------------------------------------------------
   11. MARQUEE / TICKER
   -------------------------------------------------------------------------- */
/* The ticker background is darkened so the white label text clears AA. */
.ticker { background: var(--c-primary-deep); color: #fff; overflow: hidden; padding-block: var(--sp-3); }
.ticker__track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.ticker__group { display: flex; align-items: center; gap: var(--sp-6); padding-right: var(--sp-6); }
.ticker__item { display: inline-flex; align-items: center; gap: var(--sp-3); font-weight: 800; font-size: var(--fs-sm); letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
.ticker__item svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   12. SERVICES GRID
   -------------------------------------------------------------------------- */
.service-card { color: inherit; }
.service-card__index {
  position: absolute; top: var(--sp-4); right: var(--sp-5);
  font-size: 3rem; font-weight: 800; line-height: 1;
  color: var(--c-paper-3);
  transition: color var(--dur-md) var(--e-out), transform var(--dur-md) var(--e-out);
}
.service-card:hover .service-card__index { color: var(--c-primary-soft); transform: translateX(-4px); }
.service-card__title { padding-right: 3rem; }

/* The index numeral is a decorative watermark, but it is still a text node —
   keep it readable (≥3:1) rather than near-invisible. */
.service-card__index { color: #838fa5; }
.service-card:hover .service-card__index { color: var(--c-primary); }

.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li { display: flex; gap: var(--sp-3); align-items: flex-start; margin-bottom: var(--sp-3); }
.feature-list svg { width: 22px; height: 22px; color: var(--c-accent-ink); flex: 0 0 auto; margin-top: 3px; }
.section--dark .feature-list svg,
.card--dark .feature-list svg { color: var(--c-accent); }

/* --------------------------------------------------------------------------
   13. APP HIGHLIGHT / PHONE MOCKUP
   -------------------------------------------------------------------------- */
.app-section { position: relative; overflow: hidden; }
.app-section__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.app__features { list-style: none; margin: var(--sp-6) 0; padding: 0; }
.app__features li {
  display: flex; gap: var(--sp-4); align-items: flex-start;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--c-line-dark);
}
.app__features li:last-child { border-bottom: 0; }
.app__features .feat__icon {
  width: 40px; height: 40px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: rgba(255, 59, 31, 0.14);
  color: #ff6a4f;
}
.app__features .feat__icon svg { width: 20px; height: 20px; }
.app__features strong { display: block; color: #fff; font-size: var(--fs-sm); }
.app__features span { font-size: var(--fs-xs); color: rgba(255, 255, 255, 0.62); }

.phone-stage { position: relative; display: grid; place-items: center; }
.phone {
  position: relative;
  width: min(280px, 78vw);
  border-radius: 42px;
  padding: 12px;
  background: linear-gradient(160deg, #2a3446, #0a0e14);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  animation: floatY 6.5s var(--e-in-out) infinite;
}
.phone__screen {
  border-radius: 32px;
  overflow: hidden;
  background: #0d131e;
  aspect-ratio: 9 / 18.5;
  position: relative;
}
.phone__screen img { width: 100%; height: 100%; object-fit: cover; }
.phone__notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 18px; border-radius: var(--r-pill);
  background: #0a0e14; z-index: 2;
}
.phone__glow {
  position: absolute; inset: -14% -22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 59, 31, 0.3), transparent 66%);
  filter: blur(26px);
  z-index: -1;
}
.phone-float {
  position: absolute;
  background: rgba(17, 24, 38, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--c-line-dark);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  display: flex; align-items: center; gap: var(--sp-3);
  box-shadow: var(--sh-lg);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.75);
  max-width: 210px;
}
.phone-float svg { width: 20px; height: 20px; color: var(--c-accent); flex: 0 0 auto; }
.phone-float--a { top: 12%; left: -2%; animation: floatY 5s var(--e-in-out) infinite; }
.phone-float--b { bottom: 16%; right: -4%; animation: floatY 6s var(--e-in-out) 1s infinite; }
.phone-float--c { bottom: -4%; left: 6%; animation: floatY 5.6s var(--e-in-out) 0.5s infinite; }

.app-shots { display: flex; gap: var(--sp-5); justify-content: center; margin-top: var(--sp-7); }
.app-shot {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-line-dark);
  box-shadow: var(--sh-lg);
  transition: transform var(--dur-md) var(--e-out);
}
.app-shot img { width: 100%; }
.app-shot--a { transform: rotate(-6deg); }
.app-shot--b { transform: rotate(5deg) translateY(14px); }
.app-shot:hover { transform: rotate(0) translateY(-6px); }

/* --------------------------------------------------------------------------
   14. STATS
   -------------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5); }
.stat {
  padding: var(--sp-6) var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  text-align: center;
  transition: transform var(--dur-md) var(--e-out), box-shadow var(--dur-md) var(--e-out);
}
.stat:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.stat__num {
  font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem);
  font-weight: 800; line-height: 1;
  color: var(--c-primary-ink);
  letter-spacing: -0.03em;
}
.stat__label { display: block; margin-top: var(--sp-3); font-size: var(--fs-sm); color: var(--c-text-soft); }
.stat--dark { background: rgba(255, 255, 255, 0.05); border-color: var(--c-line-dark); }
.stat--dark .stat__num { color: var(--c-accent); }
.stat--dark .stat__label { color: rgba(255, 255, 255, 0.68); }

/* --------------------------------------------------------------------------
   15. TIMELINE (culture)
   -------------------------------------------------------------------------- */
.timeline { position: relative; margin-top: var(--sp-6); }
.timeline::before {
  content: "";
  position: absolute; left: 22px; top: 8px; bottom: 8px;
  width: 3px;
  background: linear-gradient(180deg, var(--c-primary), var(--c-accent), transparent);
  border-radius: 2px;
}
.timeline__item {
  position: relative;
  padding-left: 76px;
  padding-bottom: var(--sp-7);
}
.timeline__dot {
  position: absolute; left: 8px; top: 4px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--c-paper);
  border: 3px solid var(--c-primary);
  display: grid; place-items: center;
  font-size: 0.6875rem; font-weight: 800; color: var(--c-primary-ink);
  z-index: 1;
}
.timeline__year { display: inline-block; font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.14em; color: var(--c-primary-ink); margin-bottom: var(--sp-2); }
.timeline__title { font-size: var(--fs-h4); margin-bottom: var(--sp-2); }
.timeline__text { color: var(--c-text-soft); margin: 0; font-size: var(--fs-sm); }
.section--dark .timeline__text { color: rgba(255, 255, 255, 0.7); }
.section--dark .timeline__dot { background: var(--c-ink-2); border-color: var(--c-accent); color: var(--c-accent); }
.section--dark .timeline__year { color: var(--c-accent); }

/* --------------------------------------------------------------------------
   16. NEWS
   -------------------------------------------------------------------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-7); }
.filter-btn {
  padding: 0.55rem 1.15rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line);
  background: var(--c-paper);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--c-graphite);
  transition: all var(--dur-sm) var(--e-out);
}
.filter-btn:hover { border-color: var(--c-primary); color: var(--c-primary); transform: translateY(-2px); }
.filter-btn.is-active { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }

.news-card {
  display: flex; flex-direction: column;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: transform var(--dur-md) var(--e-out), box-shadow var(--dur-md) var(--e-out);
}
.news-card:hover { transform: translateY(-8px); box-shadow: var(--sh-lg); }
.news-card__media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--c-paper-3); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-lg) var(--e-out); }
.news-card:hover .news-card__media img { transform: scale(1.08); }
.news-card__cat {
  position: absolute; top: var(--sp-3); left: var(--sp-3);
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-xs);
  background: rgba(10, 14, 20, 0.78);
  color: #fff;
  font-size: 0.6875rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.news-card__body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.news-card__date { font-size: var(--fs-xs); color: var(--c-text-soft); font-weight: 700; letter-spacing: 0.06em; margin-bottom: var(--sp-2); }
.news-card__title { font-size: var(--fs-h4); margin-bottom: var(--sp-3); }
.news-card__title a { color: var(--c-ink); }
.news-card__title a:hover { color: var(--c-primary); }
.news-card__text { font-size: var(--fs-sm); color: var(--c-text-soft); margin: 0; }
.news-card__foot { margin-top: auto; padding-top: var(--sp-4); }

.news-item {
  display: grid;
  grid-template-columns: 190px 1fr auto;
  gap: var(--sp-5);
  align-items: center;
  padding: var(--sp-4);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-line);
  background: var(--c-paper);
  transition: transform var(--dur-sm) var(--e-out), box-shadow var(--dur-sm) var(--e-out), border-color var(--dur-sm) var(--e-out);
}
.news-item:hover { transform: translateX(6px); box-shadow: var(--sh-md); border-color: var(--c-primary-soft); }
.news-item__media { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16 / 10; background: var(--c-paper-3); }
.news-item__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-md) var(--e-out); }
.news-item:hover .news-item__media img { transform: scale(1.07); }
.news-item__date { font-size: var(--fs-xs); font-weight: 700; color: var(--c-primary-ink); letter-spacing: 0.06em; }
.news-item__title { font-size: var(--fs-h4); margin: var(--sp-2) 0; }
.news-item__title a { color: var(--c-ink); }
.news-item__title a:hover { color: var(--c-primary); }
.news-item__text { font-size: var(--fs-sm); color: var(--c-text-soft); margin: 0; }

.pagination { display: flex; justify-content: center; align-items: center; gap: var(--sp-2); margin-top: var(--sp-8); }
.pagination__btn {
  min-width: 42px; height: 42px;
  padding: 0 var(--sp-3);
  border-radius: var(--r-sm);
  border: 1px solid var(--c-line);
  background: var(--c-paper);
  font-weight: 700; font-size: var(--fs-sm);
  display: grid; place-items: center;
  transition: all var(--dur-sm) var(--e-out);
}
.pagination__btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.pagination__btn.is-active { background: var(--c-primary-ink); border-color: var(--c-primary-ink); color: #fff; }
.pagination__btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pagination__btn svg { width: 16px; height: 16px; }

.empty-state { text-align: center; padding: var(--sp-8) var(--sp-4); color: var(--c-text-soft); }
.empty-state svg { width: 56px; height: 56px; margin: 0 auto var(--sp-4); color: var(--c-line); }

/* --------------------------------------------------------------------------
   17. FORMS
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--sp-5); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
.form__group { display: flex; flex-direction: column; gap: var(--sp-2); }
.form__label { font-size: var(--fs-sm); font-weight: 700; color: var(--c-graphite); }
.form__label .req { color: var(--c-primary-ink); }
.form__input, .form__textarea, .form__select {
  width: 100%;
  padding: 0.85rem 1.05rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-line);
  background: var(--c-paper);
  font-size: var(--fs-sm);
  color: var(--c-text);
  transition: border-color var(--dur-sm) var(--e-out), box-shadow var(--dur-sm) var(--e-out), background-color var(--dur-sm) var(--e-out);
}
.form__textarea { min-height: 140px; resize: vertical; }
.form__input:focus, .form__textarea:focus, .form__select:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(255, 59, 31, 0.12);
}
.form__input::placeholder, .form__textarea::placeholder { color: var(--c-mist); }
.form__hint { font-size: var(--fs-xs); color: var(--c-text-soft); }
.form__error { font-size: var(--fs-xs); color: var(--c-primary-deep); font-weight: 700; min-height: 1em; }
.form__group.has-error .form__input,
.form__group.has-error .form__textarea { border-color: var(--c-primary); background: var(--c-primary-soft); }

.checkbox { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: var(--fs-sm); color: var(--c-graphite); }
.checkbox input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--c-primary); flex: 0 0 auto; }

.form__status {
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 700;
  display: none;
}
.form__status.is-visible { display: block; }
.form__status--ok { background: var(--c-accent-soft); color: var(--c-accent-deep); border: 1px solid rgba(0, 194, 178, 0.35); }
.form__status--err { background: var(--c-primary-soft); color: var(--c-primary-deep); border: 1px solid rgba(255, 59, 31, 0.3); }

/* --------------------------------------------------------------------------
   18. CONTACT
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.contact-card {
  display: flex; gap: var(--sp-4);
  padding: var(--sp-5);
  border-radius: var(--r-md);
  border: 1px solid var(--c-line);
  background: var(--c-paper);
  transition: transform var(--dur-sm) var(--e-out), border-color var(--dur-sm) var(--e-out), box-shadow var(--dur-sm) var(--e-out);
}
.contact-card:hover { transform: translateY(-4px); border-color: var(--c-primary); box-shadow: var(--sh-md); }
.contact-card__icon {
  width: 46px; height: 46px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: var(--c-primary-soft);
  color: var(--c-primary-ink);
}
.contact-card__icon svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.1em; color: var(--c-text-soft); margin-bottom: var(--sp-2); }
.contact-card p, .contact-card a { margin: 0; font-size: var(--fs-sm); color: var(--c-ink); word-break: break-word; }
.contact-card a:hover { color: var(--c-primary); }

.map-frame { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--c-line); box-shadow: var(--sh-md); position: relative; }
.map-frame img { width: 100%; display: block; }
.map-frame__pin {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -100%);
  color: var(--c-primary);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
}
.map-frame__pin svg { width: 38px; height: 38px; }
.map-frame__label {
  position: absolute; left: var(--sp-4); bottom: var(--sp-4);
  background: rgba(10, 14, 20, 0.88);
  color: #fff;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-sm);
  font-size: var(--fs-xs);
  backdrop-filter: blur(8px);
}
.map-frame__label strong { display: block; font-size: var(--fs-sm); }

/* --------------------------------------------------------------------------
   19. CTA STRIP
   -------------------------------------------------------------------------- */
.cta-strip {
  position: relative;
  overflow: hidden;
  /* Deepened brand ramp: white copy on this fill must clear WCAG AA. */
  background: linear-gradient(120deg, #c7300f 0%, #a81f04 58%, #7d1403 100%);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(2.25rem, 5vw, 3.75rem);
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: var(--sp-6);
  align-items: center;
}
.cta-strip::after {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.09) 0 2px, transparent 2px 24px);
  pointer-events: none;
}
.cta-strip h2 { color: #fff; margin-bottom: var(--sp-3); }
.cta-strip p { color: rgba(255, 255, 255, 0.95); max-width: 56ch; margin: 0; }
.cta-strip__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   20. LEGAL DOCUMENT TYPOGRAPHY (reuse-I)
   -------------------------------------------------------------------------- */
.legal { max-width: 82ch; margin-inline: auto; }
.legal h2 {
  font-size: var(--fs-h3);
  margin-top: var(--sp-8);
  padding-left: var(--sp-4);
  border-left: 4px solid var(--c-primary-ink);
  color: var(--c-ink);
}
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: var(--fs-h4); margin-top: var(--sp-6); color: var(--c-ink); }
.legal p { color: var(--c-text); }
.legal ul, .legal ol { color: var(--c-text); padding-left: 1.35rem; }
.legal li { margin-bottom: var(--sp-2); }
.legal strong { font-weight: 700; }
.legal a { font-weight: 600; }

.table-wrap { overflow-x: auto; margin: var(--sp-5) 0; border: 1px solid var(--c-line); border-radius: var(--r-md); }
.legal table, .data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  min-width: 520px;
}
.legal th, .legal td, .data-table th, .data-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--c-line);
  text-align: left;
  vertical-align: top;
}
.legal th, .data-table th {
  background: var(--c-paper-2);
  font-weight: 800;
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-graphite);
  white-space: nowrap;
}
.legal tbody tr:last-child td, .data-table tbody tr:last-child td { border-bottom: 0; }
.legal tbody tr:hover, .data-table tbody tr:hover { background: var(--c-paper-2); }

.legal__meta {
  display: flex; flex-wrap: wrap; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  background: var(--c-paper-2);
  border-left: 4px solid var(--c-accent);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-7);
}
.legal__toc { margin-bottom: var(--sp-7); padding: var(--sp-5); border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-paper-2); }
.legal__toc h2 { margin: 0 0 var(--sp-3); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.12em; border: 0; padding: 0; }
.legal__toc ol { columns: 2; column-gap: var(--sp-6); margin: 0; padding-left: 1.1rem; font-size: var(--fs-sm); }
.legal__toc li { break-inside: avoid; margin-bottom: var(--sp-1); }
.legal__toc a { color: var(--c-graphite); }
.legal__toc a:hover { color: var(--c-primary); }

/* --------------------------------------------------------------------------
   21. MASCOTS (reuse-E)
   -------------------------------------------------------------------------- */
.mascot {
  display: inline-block;
  line-height: 0;
  /* The sprite fills with currentColor — give it an explicit brand tone so
     mascots never inherit white-on-white from a dark ancestor. */
  color: var(--c-primary);
  /* Soft disc behind the character so the dark facial features inside the
     sprite stay readable against the brand-coloured body. */
  background: radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.92) 42%, rgba(255, 255, 255, 0.55) 68%, transparent 74%);
  border-radius: 50%;
}
.mascot svg { width: 100%; height: 100%; }
/* On light surfaces use the ink variant so the mascot stays legible. */
.section--paper .mascot,
.section--mist .mascot,
.mascot--ink { color: var(--c-primary-ink); }
/* On dark surfaces the bright brand tone reads best. */
.section--dark .mascot,
.hero .mascot,
.page-hero .mascot,
.mascot--dark { color: var(--c-primary); }
.mascot--xs { width: 34px; height: 34px; }
.mascot--sm { width: 52px; height: 52px; }
.mascot--md { width: 84px; height: 84px; }
.mascot--lg { width: 130px; height: 130px; }
.mascot--xl { width: 190px; height: 190px; }
.mascot:hover { animation: wiggleTilt 1.1s var(--e-in-out); transform-origin: 50% 90%; }
.mascot--float { animation: floatY 5s var(--e-in-out) infinite; }
.mascot--float:hover { animation: wiggleTilt 1.1s var(--e-in-out); }
.mascot-badge {
  position: absolute;
  display: grid; place-items: center;
  width: 76px; height: 76px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--sh-md);
}
.mascot-badge svg { width: 54px; height: 54px; }

/* --------------------------------------------------------------------------
   22. BACK TO TOP
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: var(--z-top);
  width: 50px; height: 50px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c-ink);
  color: #fff;
  border: 1px solid var(--c-line-dark);
  box-shadow: var(--sh-md);
  opacity: 0; visibility: hidden;
  transform: translateY(14px);
  transition: opacity var(--dur-md) var(--e-out), transform var(--dur-md) var(--e-out), visibility var(--dur-md), background-color var(--dur-sm) var(--e-out);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--c-primary); color: #fff; }
.to-top svg { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   23. ACCENTS & DECOR
   -------------------------------------------------------------------------- */
.angled-edge { position: relative; }
.angled-edge::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 34px;
  background: inherit;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 2;
}

.divider-slash {
  display: flex; align-items: center; gap: var(--sp-3);
  margin: var(--sp-7) 0;
}
.divider-slash::before, .divider-slash::after {
  content: "";
  height: 3px; flex: 1;
  background: var(--c-line);
}
.divider-slash span { width: 12px; height: 12px; background: var(--c-primary-ink); transform: rotate(45deg); }

.quote-block {
  padding: var(--sp-7) clamp(1.25rem, 3vw, 2.5rem);
  border-left: 4px solid var(--c-primary);
  background: var(--c-paper-2);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  font-weight: 600;
  line-height: 1.55;
  color: var(--c-ink);
}
.quote-block cite { display: block; margin-top: var(--sp-4); font-style: normal; font-size: var(--fs-sm); color: var(--c-text-soft); }

.chip-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* --------------------------------------------------------------------------
   24. RESPONSIVE — 1024 / 768 / 480
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 640px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .app-section__grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-item { grid-template-columns: 160px 1fr; }
  .news-item .btn { grid-column: 2; justify-self: start; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: grid; }
  .header__actions .btn { display: none; }
}

@media (max-width: 768px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .cta-strip { grid-template-columns: 1fr; text-align: left; }
  .legal__toc ol { columns: 1; }
  .news-item { grid-template-columns: 1fr; }
  .news-item .btn { grid-column: 1; }
  .hero__panel { right: 12px; bottom: -14px; }
  .section-head__lede { font-size: 1rem; }
  .timeline::before { left: 16px; }
  .timeline__item { padding-left: 60px; }
  .timeline__dot { left: 2px; width: 28px; height: 28px; }
}

@media (max-width: 480px) {
  :root { --gutter: 1.1rem; }
  .hero__stats { grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
  .stats { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: var(--sp-6); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; }
  .hero__actions .btn, .cta-strip__actions .btn, .app-shots { width: auto; }
  .cta-strip__actions .btn { width: 100%; }
  .phone { width: min(230px, 70vw); }
  .phone-float { display: none; }
  .mascot--lg { width: 96px; height: 96px; }
  .mascot--xl { width: 130px; height: 130px; }
  .pagination { flex-wrap: wrap; }
  .to-top { width: 44px; height: 44px; }
}

/* --------------------------------------------------------------------------
   25. PRINT
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .to-top, .mobile-nav, .nav-scrim, .ticker { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1.5rem; }
  a { color: #000; text-decoration: underline; }
}
