/* =====================================================================
   Sierra Global Link, Inc. — Styles
   Built on Brand Guidelines v1.0 (2026): Sierra Navy + White,
   support palette, Manrope-only typography, cool documentary imagery.
   ===================================================================== */

/* ---------- Tokens (Brand Guidelines §04) ---------- */
:root {
  --navy: #2A2B5F;          /* Sierra Navy — primary ink */
  --white: #FFFFFF;         /* Pure White */
  --cloud: #F6FBFF;         /* Cloud White — section grounds */
  --ink: #1B1C3B;           /* Deep Ink — dark UI surfaces */
  --mist: #D8DFE9;          /* Horizon Mist — panels, inactive */
  --slate: #5A6485;         /* Freight Slate — secondary text (≥14px) */
  --carto: #C9D4E4;         /* Cartography Blue — routes, data viz */
  --hairline: #E4E9F2;      /* Hairline — 1px rules, borders */

  /* Navy tint scale (flat tints; <40% never carries type) */
  --navy-80: #55568f;
  --navy-60: #7f80a0;
  --navy-40: #aaaabf;
  --navy-20: #d4d5df;
  --navy-10: #eaeaef;

  --text: var(--ink);
  --muted: var(--slate);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 16px;
  --radius-lg: 24px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.7s;

  --shadow-lg: 0 30px 80px -30px rgba(27, 28, 59, 0.45);
  --shadow-md: 0 18px 50px -24px rgba(27, 28, 59, 0.3);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;              /* Body 16px */
  line-height: 1.7;             /* Leading 1.70 */
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open, body.modal-open { overflow: hidden; }
html:has(body.menu-open), html:has(body.modal-open) { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }

.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Label / overline: 11px · 600 · +18% tracking */
.mono, .label {
  font-family: var(--font);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

::selection { background: var(--navy); color: var(--white); }

/* ---------- Typography (Brand Guidelines §05) ---------- */
.h2 {
  font-size: clamp(2rem, 3.6vw, 2.75rem);   /* H2 44px */
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--navy);
  text-wrap: balance;
}
/* Emphasis inside headlines: weight contrast, never a second typeface */
.h2 em, .hero__title em, .mv__text em, .modal__title em {
  font-style: normal;
  font-weight: 500;
}
.h2 em { color: var(--slate); }

.lead {
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  color: var(--muted);
  max-width: 44ch;
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1.25rem;
}
.eyebrow--light { color: var(--carto); }
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.9; }

.section { padding-block: clamp(5rem, 9vw, 8.5rem); position: relative; }
.section__head { margin-bottom: clamp(3rem, 5vw, 4.5rem); }
.section__head--row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem 4rem; align-items: end; }
.section__head--row .lead { justify-self: end; margin-bottom: 0.4rem; }
.section__head--center { text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__head--center .h2 { margin-inline: auto; max-width: 22ch; }

@media (max-width: 900px) {
  .section__head--row { grid-template-columns: 1fr; }
  .section__head--row .lead { justify-self: start; }
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--navy); --fg: var(--white);
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 0.95rem;
  transition: transform 0.35s var(--ease), background 0.3s, color 0.3s, box-shadow 0.35s var(--ease);
  white-space: nowrap;
  position: relative;
}
.btn .ic { width: 1.05em; height: 1.05em; transition: transform 0.35s var(--ease); }
.btn:hover { transform: translateY(-2px); background: var(--ink); }
.btn:hover .ic { transform: translate(2px, -2px); }
.btn:active { transform: translateY(0); }

.btn--light { --bg: var(--white); --fg: var(--navy); box-shadow: 0 12px 30px -14px rgba(255, 255, 255, 0.5); }
.btn--light:hover { background: var(--cloud); }
.btn--ghost { --bg: rgba(255, 255, 255, 0.06); --fg: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14); }
.btn--sm { padding: 0.7rem 1.15rem; font-size: 0.875rem; }
.btn--lg { padding: 1.1rem 1.8rem; font-size: 1rem; }

/* ---------- Intro curtain ---------- */
.intro {
  position: fixed; inset: 0; z-index: 200;
  background: var(--navy);
  display: grid; place-items: center;
  transition: transform 0.9s var(--ease-io), visibility 0s linear 0.9s;
}
.intro__mark { width: 72px; color: var(--white); opacity: 0; animation: intro-mark 0.9s var(--ease) 0.1s forwards; }
.intro__mark svg { width: 100%; height: auto; }
@keyframes intro-mark { from { opacity: 0; transform: translateY(14px) scale(0.92); } to { opacity: 1; transform: none; } }
body.is-loaded .intro { transform: translateY(-100%); visibility: hidden; }
body.is-loaded .intro__mark { animation: none; opacity: 1; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: 84px;
  display: flex; align-items: center;
  color: var(--white);
  overflow: visible;
  transition: background 0.4s, color 0.4s, height 0.4s var(--ease), box-shadow 0.4s;
}
.nav::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px;
  background: var(--hairline); opacity: 0; transition: opacity 0.4s;
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  opacity: 0; transition: opacity 0.4s;
}
.nav.is-scrolled { height: 70px; color: var(--navy); }
.nav.is-scrolled::before, .nav.is-scrolled::after { opacity: 1; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

/* Horizontal lockup — built from the supplied vector artwork, never retyped */
.brand { display: inline-flex; align-items: center; color: inherit; position: relative; z-index: 3; }
.brand__logo { height: 42px; width: auto; transition: transform 0.4s var(--ease); }
.nav.is-scrolled .brand__logo { height: 38px; }
.brand:hover .brand__logo { transform: translateY(-1px); }

.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a[data-nav] {
  font-size: 0.925rem; font-weight: 500; opacity: 0.85; position: relative; padding: 0.25rem 0;
  transition: opacity 0.3s;
}
.nav__links a[data-nav]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__links a[data-nav]:hover, .nav__links a[data-nav].is-active { opacity: 1; }
.nav__links a[data-nav]:hover::after, .nav__links a[data-nav].is-active::after { transform: scaleX(1); transform-origin: left; }

.nav__phones {
  display: grid; gap: 0.2rem; align-content: center;
  padding-left: 1.15rem; margin-left: 0.1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}
.nav.is-scrolled .nav__phones { border-left-color: var(--hairline); }
.nav__tel {
  display: grid;
  grid-template-columns: 22px 3.35rem auto;
  column-gap: 0.45rem;
  align-items: center;
  font-size: 0.78rem; font-weight: 600; line-height: 1.15;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: opacity 0.3s;
}
.nav__tel-k {
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; opacity: 0.62;
}
.nav__tel-n small { font-size: 0.68rem; font-weight: 500; opacity: 0.7; margin-left: 0.15rem; }
.nav__tel .ic {
  width: 12px; height: 12px;
  padding: 5px; box-sizing: content-box;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.nav.is-scrolled .nav__tel .ic {
  background: var(--cloud);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.nav__tel:hover { opacity: 0.75; }
.nav__call { display: none; }
@media (max-width: 1180px) and (min-width: 901px) {
  .nav__links { gap: 1.15rem; }
  .nav__phones { padding-left: 0.85rem; gap: 0.35rem; }
  .nav__tel-k, .nav__tel-n { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nav__tel { grid-template-columns: 22px; }
}
.btn--nav { --bg: var(--white); --fg: var(--navy); margin-left: 0.5rem; }
.btn--nav:hover { background: var(--cloud); }
.nav.is-scrolled .btn--nav { --bg: var(--navy); --fg: var(--white); }
.nav.is-scrolled .btn--nav:hover { background: var(--ink); }

.burger { display: none; width: 44px; height: 44px; position: relative; z-index: 3; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: block; }
  .nav__inner { gap: 0.5rem; }
  .brand { margin-right: auto; }
  .nav__call {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    position: relative; z-index: 5;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    transition: box-shadow 0.3s, background 0.3s;
  }
  .nav.is-scrolled .nav__call { box-shadow: inset 0 0 0 1px var(--mist); }
  body.menu-open .nav .nav__call { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
  .nav__call .ic { width: 18px; height: 18px; }
  .nav__phones {
    width: 100%;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding: 1rem 0 0;
    margin: 0.85rem 0 0;
    gap: 0.55rem;
  }
  .nav__tel {
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 0.75rem;
    row-gap: 0.15rem;
    align-items: center;
    width: 100%;
    min-height: 72px;
    padding: 0.8rem 0.95rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.2;
    opacity: 1;
    white-space: normal;
  }
  .nav__tel:active { background: rgba(255, 255, 255, 0.16); }
  .nav__tel .ic,
  body.menu-open .nav.is-scrolled .nav__tel .ic {
    grid-row: 1 / span 2;
    grid-column: 1;
    width: 18px; height: 18px;
    justify-self: center;
    padding: 8px;
    box-sizing: content-box;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: none;
  }
  .nav__tel-k {
    grid-column: 2; grid-row: 1;
    font-size: 1rem; letter-spacing: 0.06em; opacity: 0.85;
    position: static; width: auto; height: auto; overflow: visible; clip: auto;
  }
  .nav__tel-n {
    grid-column: 2; grid-row: 2;
    font-size: 1.35rem;
    position: static; width: auto; height: auto; overflow: visible; clip: auto;
  }
  .nav__tel-n small { display: inline; font-size: 1.05rem; font-weight: 500; margin-left: 0.4rem; opacity: 0.85; }
  .brand, .burger { z-index: 5; }
  .brand__logo, .nav.is-scrolled .brand__logo { height: 34px; }
  body.menu-open .brand,
  body.menu-open .nav__call { visibility: hidden; pointer-events: none; }

  /* Expand the bar itself — iOS treats fixed-inside-fixed as a clip to the 84px header. */
  body.menu-open .nav {
    height: 100vh; height: 100dvh;
    color: var(--white);
    overflow: hidden;
    align-items: flex-start;
  }
  body.menu-open .nav__inner { height: 70px; width: 100%; }
  body.menu-open .nav::before, body.menu-open .nav::after { opacity: 0; }

  .nav__links {
    position: absolute; inset: 0; z-index: 1;
    flex-direction: column; justify-content: flex-start; align-items: flex-start;
    gap: 0.15rem;
    padding: 5.25rem var(--gutter) calc(1.75rem + env(safe-area-inset-bottom));
    width: 100%;
    height: 100%;
    background: var(--navy); color: var(--white);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.55s var(--ease-io);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .nav__links.is-open { clip-path: inset(0); }
  .nav__links a[data-nav] {
    font-size: clamp(1.65rem, 7vw, 2.4rem); font-weight: 700; letter-spacing: -0.02em; opacity: 1;
    padding: 0.35rem 0;
  }
  .nav__links .btn--nav { margin: 1.25rem 0 0; --bg: var(--white); --fg: var(--navy); }
  .nav.is-scrolled .nav__links .btn--nav { --bg: var(--white); --fg: var(--navy); }
  body.menu-open .cookie { visibility: hidden; pointer-events: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--white);
  background: var(--ink);
  overflow: clip;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__img {
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%;
  transform: scale(1.06);
  will-change: transform;
  filter: saturate(0.75) contrast(1.05);          /* cool, documentary grade */
  animation: hero-zoom 2.4s var(--ease) forwards;
}
@keyframes hero-zoom { from { transform: scale(1.14); } to { transform: scale(1.06); } }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(27, 28, 59, 0.94) 0%, rgba(27, 28, 59, 0.74) 42%, rgba(42, 43, 95, 0.4) 100%),
    linear-gradient(180deg, rgba(27, 28, 59, 0.55) 0%, rgba(27, 28, 59, 0.08) 30%, rgba(27, 28, 59, 0.5) 75%, var(--ink) 100%);
}
.hero__routes { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.6; }
.route {
  stroke: rgba(201, 212, 228, 0.45); stroke-width: 1; stroke-dasharray: 6 10;   /* Cartography Blue */
  animation: route-flow 30s linear infinite;
}
.route--2 { stroke: rgba(201, 212, 228, 0.7); animation-duration: 40s; }
.route--3 { stroke: rgba(201, 212, 228, 0.3); animation-duration: 50s; }
@keyframes route-flow { to { stroke-dashoffset: -640; } }
.route-dot { fill: var(--white); filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9)); }
.route-dot--b { fill: var(--carto); filter: drop-shadow(0 0 8px rgba(201, 212, 228, 0.9)); }

.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 420px);
  gap: clamp(2rem, 5vw, 5rem); align-items: end;
  padding-top: clamp(8rem, 18vh, 12rem);
  padding-bottom: clamp(2.5rem, 5vh, 4rem);
}
.hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);          /* H1 64px */
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 16ch;
  text-wrap: balance;
}
.hero__title em { color: var(--carto); white-space: nowrap; }
@media (max-width: 480px) { .hero__title em { white-space: normal; } }
.hero__tagline {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 42ch;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.25rem; }

[data-hero] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
body.is-loaded [data-hero] { opacity: 1; transform: none; }
body.is-loaded [data-hero]:nth-child(1) { transition-delay: 0.35s; }
body.is-loaded [data-hero]:nth-child(2) { transition-delay: 0.45s; }
body.is-loaded [data-hero]:nth-child(3) { transition-delay: 0.6s; }
body.is-loaded [data-hero]:nth-child(4) { transition-delay: 0.72s; }
body.is-loaded .track[data-hero] { transition-delay: 0.9s; }
body.is-loaded .hero__facts[data-hero] { transition-delay: 1.1s; }

/* Tracking card */
.track {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem 1.35rem;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  animation: float 9s ease-in-out infinite;
}
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.track__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.15rem; }
.track__status { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.85rem; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--carto); box-shadow: 0 0 0 0 rgba(201, 212, 228, 0.6); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(201, 212, 228, 0); } 100% { box-shadow: 0 0 0 0 rgba(201, 212, 228, 0); } }
.track__ref { color: rgba(255, 255, 255, 0.6); }

.track__route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; }
.track__port { display: flex; flex-direction: column; }
.track__port--right { text-align: right; }
.track__code { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.track__city { font-size: 0.75rem; color: rgba(255, 255, 255, 0.6); margin-top: 0.3rem; }
.track__path { position: relative; height: 28px; }
.track__line {
  position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: repeating-linear-gradient(90deg, rgba(201, 212, 228, 0.6) 0 6px, transparent 6px 12px);
}
.track__line::before, .track__line::after {
  content: ""; position: absolute; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--white);
}
.track__line::before { left: -2px; }
.track__line::after { right: -2px; background: rgba(255, 255, 255, 0.35); }
.track__vehicle {
  position: absolute; top: 50%; left: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--white); color: var(--navy);
  display: grid; place-items: center;
  translate: -50% -50%;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.18);
  animation: vehicle 6s var(--ease-io) infinite alternate;
}
.track__vehicle .ic { width: 15px; height: 15px; }
@keyframes vehicle { from { left: 8%; } to { left: 62%; } }

.track__meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem;
  margin: 1.25rem 0; padding: 0.9rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12); border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.track__meta div { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.track__k { font-size: 0.6rem; color: rgba(255, 255, 255, 0.55); }
.track__v { font-size: 0.78rem; font-weight: 600; line-height: 1.3; }

.track__steps { display: grid; gap: 0.55rem; position: relative; }
.track__steps li { display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 0.7rem; color: rgba(255, 255, 255, 0.5); font-size: 0.82rem; }
.track__steps li i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid currentColor; justify-self: center; }
.track__steps li em { font-style: normal; font-size: 0.6rem; color: inherit; }
.track__steps li.done { color: rgba(255, 255, 255, 0.85); }
.track__steps li.done i { background: var(--carto); border-color: var(--carto); }
.track__steps li.now { color: var(--white); font-weight: 600; }
.track__steps li.now i { background: var(--white); border-color: var(--white); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2); }

.hero__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding-block: 1.5rem 2.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.hero__facts { display: flex; gap: clamp(1.5rem, 4vw, 3.5rem); flex-wrap: wrap; }
.hero__facts li { display: flex; flex-direction: column; gap: 0.15rem; }
.hero__facts strong { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; }
.hero__facts span { font-size: 0.8rem; color: rgba(255, 255, 255, 0.62); }
.scroll-hint { width: 26px; height: 42px; border: 1.5px solid rgba(255, 255, 255, 0.35); border-radius: 999px; position: relative; flex: none; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 2px; background: var(--white); translate: -50% 0; animation: hint 1.8s var(--ease-io) infinite; }
@keyframes hint { 0% { top: 8px; opacity: 1; } 70% { top: 24px; opacity: 0; } 100% { top: 8px; opacity: 0; } }

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; align-items: start; }
  .track { max-width: 460px; }
}
@media (max-width: 640px) {
  .hero__grid { padding-top: 7.5rem; }
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .scroll-hint { display: none; }
  .track__meta { grid-template-columns: 1fr 1fr; }
}

/* ---------- Marquee ---------- */
.marquee { background: var(--navy); color: var(--white); overflow: hidden; padding: 1.1rem 0; }
.marquee__track { display: flex; align-items: center; gap: 2.25rem; width: max-content; animation: marquee 40s linear infinite; }
.marquee__track span { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.92; white-space: nowrap; }
.marquee__track i { width: 5px; height: 5px; border-radius: 50%; background: var(--carto); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Modes ---------- */
.modes { background: var(--white); }
.modes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.mode {
  position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden;
  color: var(--white); background: var(--ink); isolation: isolate;
  box-shadow: var(--shadow-md);
}
.mode img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8) contrast(1.04); transition: transform 1.1s var(--ease); }
.mode::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27, 28, 59, 0.22) 0%, rgba(27, 28, 59, 0.08) 35%, rgba(27, 28, 59, 0.78) 72%, rgba(27, 28, 59, 0.96) 100%);
}
.mode:hover img { transform: scale(1.06); }
.mode__index, .mode__icon { position: absolute; top: 1.35rem; z-index: 2; }
.mode__index { left: 1.5rem; color: rgba(255, 255, 255, 0.85); }
.mode__icon {
  right: 1.35rem; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22); backdrop-filter: blur(10px);
  transition: background 0.4s, color 0.4s, transform 0.5s var(--ease);
}
.mode:hover .mode__icon { background: var(--white); color: var(--navy); transform: scale(1.05); }
.mode__body { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 1.75rem; display: grid; gap: 0.6rem; }
.mode__body h3 { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.01em; }
.mode__body p {
  font-size: 0.95rem; color: rgba(255, 255, 255, 0.8); line-height: 1.55;
  max-height: 0; opacity: 0; overflow: hidden; transform: translateY(8px);
  transition: max-height 0.7s var(--ease), opacity 0.5s, transform 0.6s var(--ease);
}
.mode:hover .mode__body p, .mode:focus-visible .mode__body p { max-height: 8rem; opacity: 1; transform: none; }
.mode__more { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 600; color: var(--carto); }
.mode__more .ic { width: 1em; height: 1em; transition: transform 0.4s var(--ease); }
.mode:hover .mode__more .ic { transform: translate(2px, -2px); }
@media (max-width: 900px) {
  .modes__grid { grid-template-columns: 1fr; }
  .mode { aspect-ratio: 16 / 10; }
  .mode__body p { max-height: none; opacity: 1; transform: none; }
}

/* ---------- Origin ---------- */
.origin { background: var(--cloud); }
.origin__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.origin__aside { position: sticky; top: 110px; }
.origin__text { display: grid; gap: 1.4rem; padding-top: 0.5rem; max-width: 68ch; }
.origin__p { color: var(--muted); font-size: 1rem; text-wrap: pretty; }
.origin__p--lg { color: var(--text); font-size: clamp(1.15rem, 1.6vw, 1.375rem); line-height: 1.5; font-weight: 500; letter-spacing: -0.01em; }

.pillars { display: grid; gap: 0; margin-top: 0.5rem; border-top: 1px solid var(--hairline); }
.pillars li { display: grid; grid-template-columns: 48px 1fr; gap: 1.1rem; align-items: start; padding: 1.4rem 0; border-bottom: 1px solid var(--hairline); }
.pillars__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--navy); color: var(--white); display: grid; place-items: center; }
.pillars h3 { font-size: 1.125rem; font-weight: 600; color: var(--navy); letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 0.3rem; }
.pillars p { font-size: 0.95rem; color: var(--muted); line-height: 1.6; }
.origin__visual { position: relative; margin-top: clamp(3rem, 6vw, 5.5rem); }
.origin__figure { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21 / 9; box-shadow: var(--shadow-lg); }
.origin__figure img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8) contrast(1.04); }
.origin__quote {
  position: absolute; right: clamp(1rem, 4vw, 3rem); bottom: -2.5rem;
  width: min(440px, calc(100% - 2rem));
  background: var(--navy); color: var(--white);
  padding: 2rem 2rem 1.75rem; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.origin__qmark { display: block; width: 28px; height: 2px; background: var(--carto); margin-bottom: 1.25rem; font-size: 0; }
.origin__quote p { font-size: 1.2rem; line-height: 1.4; font-weight: 500; letter-spacing: -0.01em; }
.origin__quote footer { margin-top: 1rem; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--carto); }

.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: clamp(5rem, 8vw, 7rem); }
.mv__card { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(2rem, 3.5vw, 3rem); color: var(--white); min-height: 320px; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.mv__card--navy { background: var(--navy); }
.mv__card--ink { background: var(--ink); }
.mv__label { color: var(--carto); }
.mv__text { font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.25; letter-spacing: -0.01em; font-weight: 600; text-wrap: balance; max-width: 24ch; }
.mv__text em { color: var(--carto); font-weight: 600; }
.mv__icon { position: absolute; right: -8%; bottom: -18%; width: 60%; opacity: 0.08; pointer-events: none; }

@media (max-width: 900px) {
  .origin__grid { grid-template-columns: 1fr; }
  .origin__aside { position: static; }
  .origin__figure { aspect-ratio: 4 / 3; }
  .origin__quote { position: static; width: auto; margin: -2rem 1rem 0; }
  .mv { grid-template-columns: 1fr; margin-top: 3.5rem; }
  .mv__card { min-height: 0; }
}

/* ---------- Services ---------- */
.services { background: var(--white); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.service {
  position: relative; padding: 2rem 2rem 2.25rem; border-radius: var(--radius);
  border: 1px solid var(--hairline); background: var(--white);
  display: grid; gap: 0.9rem; align-content: start;
  transition: border-color 0.4s, box-shadow 0.5s var(--ease);
}
.service:hover { border-color: var(--mist); box-shadow: var(--shadow-md); }
.service__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--cloud); border: 1px solid var(--hairline); color: var(--navy); font-size: 1.15rem;
  transition: background 0.5s, color 0.5s, border-color 0.5s;
}
.service h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; color: var(--navy); transition: color 0.4s; }
.service p { color: var(--muted); font-size: 0.95rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.35rem; }
.tags li {
  font-size: 0.75rem; font-weight: 600; color: var(--navy); line-height: 1;
  padding: 0.45rem 0.65rem; border-radius: 999px; background: var(--cloud); border: 1px solid var(--hairline);
}
.service-cta {
  display: flex; flex-direction: column; gap: 1.15rem;
  height: 100%; min-height: 100%;
  padding: 2rem 2rem 1.75rem;
  border-radius: var(--radius);
  background: var(--navy); color: var(--white);
  border: 1px solid transparent;
  transition: background 0.4s, box-shadow 0.5s var(--ease);
}
.service-cta:hover { background: var(--ink); box-shadow: var(--shadow-md); }
.service-cta:focus-visible { outline-color: var(--white); }
.service-cta__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); color: var(--white);
}
.service-cta__icon .ic { width: 22px; height: 22px; }
.service-cta__body { display: grid; gap: 0.55rem; align-content: start; }
.service-cta .eyebrow { margin-bottom: 0; }
.service-cta__title { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; text-wrap: balance; }
.service-cta__lead { color: rgba(255, 255, 255, 0.72); font-size: 0.95rem; text-wrap: pretty; }
.service-cta__go {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.05rem; border-radius: 999px;
  background: var(--white); color: var(--navy);
  font-weight: 600; font-size: 0.95rem;
}
.service-cta__go .ic { width: 1.05em; height: 1.05em; transform: rotate(90deg); transition: transform 0.35s var(--ease); }
.service-cta:hover .service-cta__go .ic { transform: rotate(90deg) translateX(3px); }
#contact { scroll-margin-top: 5.5rem; }
@media (max-width: 1000px) { .services__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .services__grid { grid-template-columns: 1fr; }
  .service, .service-cta { padding: 1.5rem 1.35rem 1.45rem; }
}

/* ---------- Process ---------- */
.process { background: var(--ink); color: var(--white); overflow: hidden; }
.process .h2 { color: var(--white); }
.process .h2 em { color: var(--carto); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; position: relative; }
.step {
  position: relative;
  padding: 1.6rem 1.5rem 1.75rem;
  border: 1px solid rgba(201, 212, 228, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  min-height: 100%;
}
.step__num { color: var(--carto); display: block; margin-bottom: 1.1rem; font-size: 0.75rem; }
.step h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 0.55rem; }
.step p { color: rgba(255, 255, 255, 0.68); font-size: 0.925rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Technology ---------- */
.tech { background: var(--cloud); overflow: hidden; }
.tech__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.tech__copy .lead { margin-top: 1.25rem; }
.features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem;
  margin-top: 2.25rem;
}
.features li {
  display: grid; grid-template-columns: 1fr; gap: 0.7rem; align-content: start;
  padding: 1.2rem 1.25rem 1.3rem;
  background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius);
}
.features__icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--cloud); color: var(--navy);
  display: grid; place-items: center;
  border: 1px solid var(--hairline);
  position: relative;
}
.features strong { display: block; font-weight: 600; color: var(--navy); font-size: 0.95rem; line-height: 1.3; }
.features li > div > span { display: block; font-size: 0.875rem; color: var(--muted); margin-top: 0.25rem; }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

.tech__visual { position: relative; }
@media (min-width: 1001px) { .tech__visual { perspective: 1400px; } }
.dash {
  position: relative;
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--hairline);
  transition: transform 0.6s var(--ease);
  font-size: 0.85rem;
}
@media (min-width: 1001px) {
  .dash { overflow: visible; transform-style: preserve-3d; }
}
.dash__bar { display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1.15rem; border-bottom: 1px solid var(--hairline); border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--cloud); }
.dash__dots { display: inline-flex; gap: 6px; }
.dash__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--mist); }
.dash__title { color: var(--slate); text-transform: none; letter-spacing: 0; font-size: 0.75rem; font-weight: 500; }
.dash__body { display: grid; grid-template-columns: 1.55fr 1fr; }
.dash__main { padding: 1.25rem; border-right: 1px solid var(--hairline); }
.dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-bottom: 1.15rem; }
.dash__kpis div { background: var(--cloud); border: 1px solid var(--hairline); border-radius: 12px; padding: 0.75rem 0.9rem; display: grid; gap: 0.15rem; }
.dash__kpis span { color: var(--slate); font-size: 0.6rem; }
.dash__kpis strong { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.03em; color: var(--navy); }
.dash__kpis strong.warn { color: var(--navy); }
.dash__list { display: grid; gap: 0.5rem; }
.dash__list li { display: grid; grid-template-columns: 30px minmax(0, 1fr) 56px auto; align-items: center; gap: 0.65rem; padding: 0.65rem 0.75rem; border-radius: 12px; border: 1px solid var(--hairline); transition: background 0.3s; }
.dash__list li:hover { background: var(--cloud); }
.dash__mode { width: 30px; height: 30px; border-radius: 9px; background: var(--navy-10); color: var(--navy); display: grid; place-items: center; }
.dash__mode .ic { width: 15px; height: 15px; }
.dash__lane { display: grid; line-height: 1.2; min-width: 0; }
.dash__lane strong { font-weight: 600; color: var(--text); font-size: 0.85rem; white-space: nowrap; }
.dash__lane em { font-style: normal; color: var(--slate); font-size: 0.62rem; letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash__prog { height: 5px; border-radius: 3px; background: var(--mist); overflow: hidden; }
.dash__prog i { display: block; height: 100%; width: var(--p); background: var(--navy); border-radius: 3px; transform-origin: left; animation: grow 1.4s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
.chip { font-size: 0.62rem; font-weight: 600; padding: 0.3rem 0.5rem; border-radius: 999px; background: var(--navy-10); color: var(--navy); white-space: nowrap; }
.chip--ok { background: var(--mist); color: var(--navy); }
.chip--warn { background: var(--navy); color: var(--white); }
.dash__side { padding: 1.25rem; display: grid; gap: 1rem; align-content: start; }
.dash__side-title { color: var(--slate); font-size: 0.6rem; }
.dash__ms { display: grid; gap: 0.6rem; position: relative; padding-left: 1.1rem; }
.dash__ms::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--mist); }
.dash__ms li { position: relative; display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.78rem; color: var(--slate); }
.dash__ms li::before { content: ""; position: absolute; left: -1.1rem; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--mist); }
.dash__ms li em { font-style: normal; font-size: 0.6rem; color: var(--slate); }
.dash__ms li.done { color: var(--text); }
.dash__ms li.done::before { background: var(--navy); border-color: var(--navy); }
.dash__ms li.now { color: var(--navy); font-weight: 600; }
.dash__ms li.now::before { background: var(--white); border-color: var(--navy); box-shadow: 0 0 0 3px var(--carto); }
.dash__docs { background: var(--cloud); border: 1px solid var(--hairline); border-radius: 12px; padding: 0.8rem 0.9rem; display: grid; gap: 0.35rem; }
.dash__docs span { color: var(--slate); font-size: 0.6rem; }
.dash__docs div { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--navy); font-size: 0.8rem; }

.toast {
  position: absolute; right: -2rem; bottom: -2.25rem; width: min(320px, 80%);
  display: grid; grid-template-columns: 38px 1fr; gap: 0.8rem; align-items: start;
  background: var(--navy); color: var(--white); padding: 0.95rem 1.05rem; border-radius: 16px;
  box-shadow: var(--shadow-lg);
  animation: float 7s ease-in-out infinite reverse;
}
@media (min-width: 1001px) { .toast { transform: translateZ(40px); } }
.toast__icon { width: 38px; height: 38px; border-radius: 10px; background: var(--white); color: var(--navy); display: grid; place-items: center; }
.toast strong { display: block; font-size: 0.82rem; font-weight: 600; }
.toast > div span { display: block; font-size: 0.75rem; color: rgba(255, 255, 255, 0.75); line-height: 1.45; }

@media (max-width: 1000px) {
  .tech__grid { grid-template-columns: 1fr; }
  .tech__visual { margin-top: 1.5rem; }
  .toast { right: 1rem; }
}
@media (max-width: 640px) {
  .dash__body { grid-template-columns: 1fr; }
  .dash__main { border-right: 0; }
  .dash__side { display: none; }
  .dash__list li { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .dash__mode { width: 32px; height: 32px; position: relative; }
  .dash__prog { display: none; }
  .toast { position: static; width: auto; margin: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); animation: none; }
}

/* ---------- Why / Values ---------- */
.why { background: var(--white); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--hairline); margin-bottom: clamp(3rem, 5vw, 4.5rem); }
.stats li { padding: 1.75rem 1.5rem; display: grid; gap: 0.35rem; border-left: 1px solid var(--hairline); }
.stats li:first-child { border-left: 0; padding-left: 0; }
.stats strong { font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--navy); }
.stats small { font-size: 0.5em; font-weight: 600; color: var(--slate); margin-left: 0.1em; }
.stats li > span { font-size: 0.9rem; color: var(--muted); }
@media (max-width: 900px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats li:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats li:nth-child(n + 3) { border-top: 1px solid var(--hairline); }
}

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.value { position: relative; padding: 1.75rem; border-radius: var(--radius); background: var(--cloud); border: 1px solid var(--hairline); display: grid; gap: 0.75rem; align-content: start; transition: transform 0.5s var(--ease), background 0.4s, border-color 0.4s; }
.value:hover { transform: translateY(-4px); background: var(--white); border-color: var(--mist); }
.value__num { position: absolute; top: 1.5rem; right: 1.5rem; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.18em; color: var(--slate); }
.value__icon { width: 46px; height: 46px; border-radius: 13px; background: var(--navy); color: var(--white); display: grid; place-items: center; margin-bottom: 0.5rem; }
.value h3 { font-size: 1.2rem; font-weight: 600; color: var(--navy); letter-spacing: -0.01em; }
.value p { font-size: 0.925rem; color: var(--muted); }
@media (max-width: 1000px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

.gallery { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.1rem; margin-top: clamp(3rem, 5vw, 4.5rem); }
.gallery figure { border-radius: var(--radius); overflow: hidden; height: clamp(220px, 24vw, 340px); }
.gallery img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8) contrast(1.04); transition: transform 1.2s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure { height: 160px; }
  .gallery figure:first-child { grid-column: 1 / -1; height: 220px; }
}

/* ---------- Contact ---------- */
.contact { background: var(--cloud); }
.contact__panel {
  display: grid; grid-template-columns: 1fr 1.15fr;
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  background: var(--white); border: 1px solid var(--hairline);
}
.contact__info { background: var(--navy); color: var(--white); padding: clamp(2rem, 4vw, 3.5rem); position: relative; overflow: hidden; }
.contact__info .h2 { color: var(--white); }
.contact__info .h2 em { color: var(--carto); }
.contact__lead { margin-top: 1.25rem; color: rgba(255, 255, 255, 0.8); max-width: 40ch; }
.contact__list { display: grid; gap: 0.85rem; margin-top: 2rem; position: relative; z-index: 1; }
.contact__list li { display: flex; align-items: center; gap: 0.8rem; font-weight: 500; }
.contact__list .ic { color: var(--carto); }
.contact__list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact__sister { margin-top: 2.5rem; padding: 1.15rem 1.25rem; border-radius: 14px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); position: relative; z-index: 1; }
.contact__sister .mono { color: var(--carto); display: block; margin-bottom: 0.4rem; }
.contact__sister p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); }
.contact__sister a { color: var(--white); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.4); }

.form { padding: clamp(2rem, 4vw, 3.5rem); display: grid; gap: 1.5rem; position: relative; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form__row--3 { grid-template-columns: 1fr 1fr 1fr; }
.field { display: grid; gap: 0.5rem; }
.field > span { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--text);
  width: 100%; padding: 0.85rem 0; border: 0; border-bottom: 1.5px solid var(--mist); background: transparent; outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  border-radius: 0;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232A2B5F' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right center; cursor: pointer; padding-right: 1.5rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--navy-40); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); box-shadow: 0 1.5px 0 0 var(--navy); }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: var(--navy); box-shadow: 0 1.5px 0 0 var(--navy); }
.field.is-invalid > span { color: var(--navy); }
.field.is-invalid > span::after { content: " — required"; letter-spacing: 0.06em; text-transform: none; font-weight: 500; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 0.75rem; align-items: start; cursor: pointer; }
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent__box {
  width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--mist); background: var(--white);
  display: grid; place-items: center; color: var(--white); transition: background 0.2s, border-color 0.2s;
}
.consent__box .ic { width: 14px; height: 14px; stroke-width: 3; opacity: 0; transform: scale(0.6); transition: opacity 0.2s, transform 0.25s var(--ease); }
.consent input:checked + .consent__box { background: var(--navy); border-color: var(--navy); }
.consent input:checked + .consent__box .ic { opacity: 1; transform: none; }
.consent input:focus-visible + .consent__box { outline: 2px solid var(--navy); outline-offset: 2px; }
.field.consent > .consent__text { font-size: 0.85rem; line-height: 1.5; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--slate); }
.consent__text a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.consent.is-invalid .consent__box { border-color: var(--navy); box-shadow: 0 0 0 3px var(--carto); }
.field.consent.is-invalid > span::after { content: none; }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.form__note { font-size: 0.8rem; color: var(--slate); }
.form__success {
  position: absolute; inset: 0; background: var(--white); display: grid; grid-template-columns: 56px 1fr; align-content: center; align-items: center; gap: 1rem;
  padding: clamp(2rem, 4vw, 3.5rem); opacity: 0; pointer-events: none; transition: opacity 0.5s;
  border-radius: inherit;
}
.form__success .ic { width: 56px; height: 56px; padding: 14px; border-radius: 50%; background: var(--navy); color: var(--white); stroke-width: 2.5; }
.form__success strong { display: block; font-size: 1.25rem; font-weight: 600; color: var(--navy); letter-spacing: -0.01em; }
.form__success span { color: var(--muted); }
.form.is-sent { align-content: center; min-height: 320px; }
.form.is-sent > :not(.form__success) { display: none; }
.form.is-sent .form__success { position: static; padding: 0; opacity: 1; pointer-events: auto; }
@media (max-width: 900px) {
  .contact__panel { grid-template-columns: 1fr; }
}
@media (max-width: 640px) { .form__row, .form__row--3 { grid-template-columns: 1fr; } }

/* ---------- Quote modal ---------- */
.modal {
  position: fixed; inset: 0; margin: 0;
  padding: clamp(0.75rem, 3vw, 2rem);
  width: 100vw; max-width: 100vw;
  height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh;
  border: 0; background: transparent; color: var(--text);
  display: none; align-items: center; justify-content: center;
  overflow: hidden;
}
.modal[open] { display: flex; }
.modal::backdrop { background: rgba(27, 28, 59, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[open]::backdrop { animation: backdrop-in 0.45s var(--ease) both; }
.modal.is-closing::backdrop { animation: backdrop-out 0.3s var(--ease-io) both; }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes backdrop-out { from { opacity: 1; } to { opacity: 0; } }

.modal__panel {
  position: relative;
  display: grid; grid-template-columns: minmax(260px, 0.9fr) 1.2fr;
  width: min(920px, 100%);
  max-height: 100%;
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 50px 120px -40px rgba(27, 28, 59, 0.7);
  transform-origin: 50% 60%;
}
.modal[open] .modal__panel { animation: panel-in 0.6s var(--ease) both; }
.modal.is-closing .modal__panel { animation: panel-out 0.3s var(--ease-io) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(32px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes panel-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(16px) scale(0.98); } }

/* Content stagger */
.modal[open] .modal__side > *, .modal[open] .form--modal > * { animation: modal-item 0.6s var(--ease) both; animation-delay: calc(0.12s + var(--n, 0) * 55ms); }
.modal[open] .modal__side > :nth-child(1) { --n: 0; } .modal[open] .modal__side > :nth-child(2) { --n: 1; } .modal[open] .modal__side > :nth-child(3) { --n: 2; } .modal[open] .modal__side > :nth-child(4) { --n: 3; } .modal[open] .modal__side > :nth-child(5) { --n: 4; }
.modal[open] .form--modal > :nth-child(1) { --n: 1; } .modal[open] .form--modal > :nth-child(2) { --n: 2; } .modal[open] .form--modal > :nth-child(3) { --n: 3; } .modal[open] .form--modal > :nth-child(4) { --n: 4; } .modal[open] .form--modal > :nth-child(5) { --n: 5; } .modal[open] .form--modal > :nth-child(6) { --n: 6; }
.modal.is-closing .modal__side > *, .modal.is-closing .form--modal > * { animation: none; }
@keyframes modal-item { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.modal[open] .form__success { animation: none; }

.modal__close {
  position: absolute; top: 1rem; right: 1rem; z-index: 3;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--cloud); border: 1px solid var(--hairline); color: var(--navy);
  transition: background 0.3s, transform 0.3s var(--ease);
}
.modal__close:hover { background: var(--mist); transform: rotate(90deg); }
.modal__close span { position: absolute; left: 13px; right: 13px; top: 50%; height: 1.5px; background: currentColor; }
.modal__close span:nth-child(1) { transform: rotate(45deg); }
.modal__close span:nth-child(2) { transform: rotate(-45deg); }

.modal__side { background: var(--navy); color: var(--white); padding: clamp(1.75rem, 3vw, 2.5rem); display: flex; flex-direction: column; gap: 1.1rem; }
.modal__mark { width: 40px; height: auto; color: var(--white); margin-bottom: 0.5rem; }
.modal__side .eyebrow { margin-bottom: 0; }
.modal__title { font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
.modal__lead { color: rgba(255, 255, 255, 0.8); font-size: 0.95rem; }
.modal__head .modal__lead { color: var(--slate); font-size: 0.9rem; }
.modal__contact { margin-top: auto; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.14); display: grid; gap: 0.5rem; }
.modal__contact a { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; font-weight: 500; }
.modal__contact a .ic { color: var(--carto); }
.modal__contact a:hover { text-decoration: underline; text-underline-offset: 3px; }

.modal__head { display: none; }
.modal__title--form { color: var(--navy); font-size: 1.5rem; }
.form--modal { padding: clamp(1.75rem, 3vw, 2.5rem); padding-top: clamp(3rem, 4vw, 3.25rem); gap: 1.15rem; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.form--modal .form__row { gap: 1.15rem; }
.form--modal .field input, .form--modal .field select, .form--modal .field textarea { padding: 0.7rem 0; font-size: 0.95rem; }
.form--modal .field textarea { min-height: 72px; }
.form--modal .form__note a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }

/* Captcha */
.captcha__row { display: grid; grid-template-columns: auto minmax(0, 1fr) 40px; align-items: center; gap: 0.75rem; }
.captcha__q {
  display: inline-flex; align-items: center; height: 40px; padding: 0 0.9rem;
  border-radius: 10px; background: var(--navy); color: var(--white);
  font-weight: 700; font-size: 1rem; letter-spacing: 0.04em; font-variant-numeric: tabular-nums;
  user-select: none;
}
.captcha__refresh { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--hairline); background: var(--cloud); color: var(--navy); display: grid; place-items: center; transition: background 0.3s, transform 0.5s var(--ease); }
.captcha__refresh:hover { background: var(--mist); transform: rotate(180deg); }
.captcha__refresh .ic { width: 16px; height: 16px; }
.captcha.is-invalid > span::after { content: " — wrong answer"; }

@media (max-width: 900px) {
  .modal {
    padding: 0.75rem;
    padding-bottom: 0;
    align-items: stretch;
    justify-content: flex-end;
    overflow: hidden;
  }
  .modal__panel {
    display: flex; flex-direction: column;
    grid-template-columns: none;
    width: 100%;
    max-height: calc(100vh - 0.75rem);
    max-height: calc(100dvh - 0.75rem);
    min-height: 0;
    border-radius: 20px 20px 0 0;
    transform-origin: 50% 100%;
    overflow: hidden;
  }
  .modal[open] .modal__panel { animation-name: sheet-in; }
  .modal.is-closing .modal__panel { animation-name: sheet-out; }
  @keyframes sheet-in { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
  @keyframes sheet-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(40px); } }
  .modal__side { display: none; }
  .modal__close { top: 0.85rem; right: 0.85rem; }
  .modal__head { display: grid; gap: 0.4rem; padding-right: 3rem; }
  .modal__title--form { font-size: 1.3rem; line-height: 1.2; }
  .form--modal {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1.35rem 1.25rem 0;
    gap: 0.95rem;
  }
  .form--modal .form__row { grid-template-columns: 1fr; gap: 0.95rem; }
  .form--modal .field textarea { min-height: 56px; }
  .form--modal .form__foot {
    position: sticky; bottom: 0; z-index: 2;
    display: grid; gap: 0.55rem;
    margin: 0 -1.25rem;
    padding: 0.85rem 1.25rem calc(1rem + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, var(--white) 18%);
  }
  .form--modal .form__foot .btn { width: 100%; justify-content: center; }
  .captcha__row { grid-template-columns: auto minmax(0, 1fr) 40px; }
  body.modal-open .cookie { visibility: hidden; pointer-events: none; }
}

/* ---------- Cookie consent ---------- */
.cookie {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 150;
  margin-inline: auto; width: min(720px, calc(100% - 2rem));
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--white); color: var(--text);
  border: 1px solid var(--hairline); border-radius: 18px;
  box-shadow: var(--shadow-lg);
  transform: translateY(24px); opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.5s;
}
.cookie[hidden] { display: none; }
.cookie.is-visible { transform: none; opacity: 1; }
.cookie__icon { width: 42px; height: 42px; border-radius: 12px; background: var(--cloud); border: 1px solid var(--hairline); color: var(--navy); display: grid; place-items: center; }
.cookie__icon .ic { width: 20px; height: 20px; }
.cookie__text { display: grid; gap: 0.1rem; font-size: 0.875rem; }
.cookie__text strong { font-weight: 600; color: var(--navy); }
.cookie__text span { color: var(--slate); }
.cookie__text a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.cookie__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; }
.btn--outline { --bg: transparent; --fg: var(--navy); box-shadow: inset 0 0 0 1px var(--mist); }
.btn--outline:hover { background: var(--cloud); }
@media (max-width: 700px) {
  .cookie { grid-template-columns: auto 1fr; left: 0.75rem; right: 0.75rem; bottom: 0.75rem; width: auto; }
  .cookie__actions { grid-column: 1 / -1; justify-content: stretch; }
  .cookie__actions .btn { flex: 1; justify-content: center; }
}

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, 0.75); padding: clamp(3.5rem, 6vw, 5rem) 0 2rem; }
.footer__top { display: grid; grid-template-columns: 1.2fr 2fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer__logo { width: 120px; height: auto; margin-bottom: 1.5rem; }
.footer__brand p { max-width: 32ch; font-size: 0.95rem; }
.footer__social { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.18); color: var(--white); margin-top: 1.5rem; transition: background 0.3s, color 0.3s; }
.footer__social:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer__cols h4 { color: var(--carto); font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; margin-bottom: 1.1rem; }
.footer__cols a { display: block; padding: 0.3rem 0; font-size: 0.95rem; transition: color 0.3s, transform 0.3s var(--ease); }
.footer__cols a:hover { color: var(--white); transform: translateX(3px); }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.75rem; font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); }
.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a:hover { color: var(--white); }
@media (max-width: 800px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  [data-reveal], [data-hero] { opacity: 1; transform: none; }
  .intro { display: none; }
}

/* ---------- Focus ---------- */
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .process :focus-visible, .footer :focus-visible, .modal__side :focus-visible { outline-color: var(--white); }
