/* ISM Group DZ — site styles
   Layout: left-aligned on a 1240px measure. A studio-lit vehicle carries the hero;
   ink bands (hero, corridor, showroom) alternate with white working sections.
   Amber is reserved for actions and for "connection points": the small squares on rules. */

:root {
  /* Colour */
  --ink: #050D17;
  --ink-2: #0A1727;      /* raised surface on ink */
  --navy: #0A1F33;       /* text on light */
  --navy-2: #1A3A59;     /* hairlines on dark */
  --mist: #A3B5C7;       /* secondary text on dark */
  --paper: #FFFFFF;
  --fog: #F0F3F6;
  --rule: #D3DBE3;       /* hairlines on light */
  --slate: #46586A;      /* secondary text on light */
  --amber: #F2A93B;
  --amber-hover: #FFC066;
  --error: #B3261E;
  --field: #6F8094;      /* form control borders: 3:1 or better on white and fog */
  --amber-ink: #A66F10;  /* amber detail on light surfaces */

  /* Type */
  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wide: 118%;
  --fs-hero: clamp(2.375rem, 1.1rem + 4.2vw, 4.5rem);
  --fs-h2: clamp(2rem, 1.25rem + 2.6vw, 3.5rem);
  --fs-statement: clamp(1.5rem, 1.05rem + 1.9vw, 2.75rem);
  --fs-h3: clamp(1.1875rem, 1.1rem + .3vw, 1.375rem);
  --fs-lead: clamp(1.125rem, 1.05rem + .4vw, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-label: .8125rem;

  /* Space */
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(80px, 10.5vw, 160px);
  --measure: 1240px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
html.nav-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; }
ul[role="list"], ol[role="list"] { list-style: none; }
a { color: inherit; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

/* Focus ring: navy on light surfaces, amber on dark ones, so it always stands out. */
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.site-header :focus-visible, .hero :focus-visible, .section--ink :focus-visible, .cta :focus-visible,
.site-footer :focus-visible, .legal-head :focus-visible, .legal-callout :focus-visible, .page-head :focus-visible { outline-color: var(--amber); }

.wrap { width: 100%; max-width: calc(var(--measure) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 10px 16px; background: var(--amber); color: var(--ink); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px; padding: 0 28px;
  border: 1px solid transparent; border-radius: 2px;
  font: inherit; font-weight: 600; font-stretch: 110%; font-size: 1rem; line-height: 1.2; letter-spacing: .005em;
  text-decoration: none; text-align: center; white-space: nowrap; cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn__icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.btn:hover .btn__icon { transform: translateX(5px); }
.btn--primary { background: var(--amber); color: var(--ink); }
.btn--primary:hover { background: var(--amber-hover); }
.btn--outline { border-color: rgba(255, 255, 255, .34); color: var(--paper); }
.btn--outline:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn--line { justify-content: flex-start; min-height: 48px; padding: 0 0 2px; border: 0; border-bottom: 1px solid var(--navy); border-radius: 0; color: var(--navy); }
.btn--line:hover { border-bottom-color: var(--amber); }
.btn--small { min-height: 44px; padding: 0 20px; font-size: .9375rem; }
.btn--large { min-height: 64px; padding: 0 36px; font-size: 1.0625rem; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--ink); color: var(--paper);
  box-shadow: 0 1px 0 transparent;
  transition: background-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled { background: rgba(5, 13, 23, .84); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); box-shadow: 0 1px 0 rgba(163, 181, 199, .16); }
html.nav-open .site-header { background: var(--ink); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }

.wordmark { display: inline-flex; align-items: center; gap: .62em; color: var(--paper); text-decoration: none; font-size: 1.3125rem; line-height: 1; white-space: nowrap; }
.wordmark__ism { font-weight: 700; font-stretch: 125%; letter-spacing: .03em; padding-bottom: 6px; border-bottom: 3px solid var(--amber); }
.wordmark__rest { padding-left: .62em; border-left: 1px solid rgba(163, 181, 199, .4); font-size: .62em; font-weight: 500; font-stretch: 118%; letter-spacing: .16em; text-transform: uppercase; color: var(--mist); line-height: 1.9; }

.site-nav__list { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 38px); list-style: none; }
.site-nav__list a:not(.btn) { position: relative; display: inline-block; padding-block: 12px; color: var(--mist); text-decoration: none; font-size: .9375rem; font-weight: 500; letter-spacing: .01em; transition: color .2s ease; }
.site-nav__list a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1.5px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.site-nav__list a:not(.btn):hover, .site-nav__list a.is-active { color: var(--paper); }
.site-nav__list a:not(.btn):hover::after, .site-nav__list a.is-active::after { transform: scaleX(1); }
.site-nav__meta { display: none; }

.nav-toggle { display: none; align-items: center; gap: 12px; min-height: 44px; padding: 0 2px; background: none; border: 0; color: var(--paper); font: inherit; font-weight: 500; font-size: .9375rem; cursor: pointer; }
.nav-toggle__icon { display: grid; gap: 7px; width: 26px; }
.nav-toggle__icon span { height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
    padding: 12px var(--gutter) 32px; overflow-y: auto;
    background: var(--ink); border-top: 1px solid var(--navy-2);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s ease, transform .35s var(--ease), visibility 0s linear .35s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list a:not(.btn) { display: block; padding-block: 18px; font-size: 1.5rem; font-stretch: var(--wide); font-weight: 500; letter-spacing: -.01em; color: var(--paper); border-bottom: 1px solid var(--navy-2); }
  .site-nav__list a:not(.btn)::after { display: none; }
  .site-nav__list a.is-active { color: var(--amber); }
  .site-nav__cta { margin-top: 28px; }
  .site-nav__cta .btn { width: 100%; min-height: 56px; font-size: 1rem; }
  .site-nav__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: var(--mist); font-size: var(--fs-small); }
  .site-nav__meta a { color: var(--paper); text-decoration: none; overflow-wrap: anywhere; }

  /* Without JavaScript there is no menu button to open, so the links are simply shown. */
  html:not(.js) .site-header { position: static; }
  html:not(.js) .site-header__bar { flex-wrap: wrap; padding-block: 14px; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .site-nav { position: static; width: 100%; height: auto; padding: 0; border: 0; overflow: visible; visibility: visible; opacity: 1; transform: none; }
  html:not(.js) .site-nav__list { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 2px 20px; }
  html:not(.js) .site-nav__list a:not(.btn) { padding-block: 10px; border: 0; font-size: 1rem; font-stretch: 100%; letter-spacing: 0; }
  html:not(.js) .site-nav__cta { margin-top: 0; }
  html:not(.js) .site-nav__cta .btn { width: auto; min-height: 44px; }
  html:not(.js) .site-nav__meta { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: var(--paper); overflow: hidden; }
.hero__inner { position: relative; min-height: clamp(440px, 46vw, 640px); padding-block: clamp(40px, 6vw, 88px) clamp(48px, 7vw, 104px); }
.hero__copy { position: relative; z-index: 2; display: grid; justify-items: start; max-width: 800px; }
.hero__name { display: inline-flex; align-items: center; gap: 14px; color: var(--amber); font-size: var(--fs-label); font-weight: 600; font-stretch: 122%; letter-spacing: .18em; text-transform: uppercase; margin-bottom: clamp(18px, 2.2vw, 28px); }
.hero__name::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.hero__title { font-size: var(--fs-hero); font-weight: 500; font-stretch: var(--wide); line-height: 1.04; letter-spacing: -.022em; max-width: 15.5ch; }
.hero__lede { margin-top: clamp(22px, 2.6vw, 32px); font-size: var(--fs-lead); line-height: 1.55; color: var(--mist); max-width: 36ch; }
.hero .actions { margin-top: clamp(28px, 3.2vw, 40px); }

.hero__art { position: absolute; z-index: 1; right: calc(-1 * clamp(20px, 5vw, 80px)); bottom: clamp(4px, 1.6vw, 26px); width: min(62vw, 960px); pointer-events: none; }
.hero-car { width: 100%; height: auto; overflow: visible; }

/* The corridor in four stages: the site's signature line */
.corridor { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--navy-2); list-style: none; }
.corridor__stage { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 18px; row-gap: 3px; align-items: center; padding: 26px 20px 30px 0; }
.corridor__stage + .corridor__stage { padding-left: 4px; }
.corridor__stage::before { content: ""; position: absolute; left: 0; top: -4px; width: 7px; height: 7px; background: var(--amber); }
.corridor__stage:not(:last-child)::after { content: ""; position: absolute; right: 22px; top: -4.5px; width: 8px; height: 8px; border-top: 1.5px solid var(--mist); border-right: 1.5px solid var(--mist); transform: rotate(45deg); }
.corridor__glyph { grid-row: 1 / span 2; display: grid; place-items: center start; color: var(--paper); }
.corridor__glyph--code { font-size: 1.875rem; font-weight: 600; font-stretch: 125%; letter-spacing: .01em; line-height: 1; }
.corridor__label { align-self: end; font-size: 1.0625rem; font-weight: 500; font-stretch: 112%; line-height: 1.3; }
.corridor__num { margin-right: .8em; font-size: var(--fs-label); font-weight: 600; letter-spacing: .12em; color: var(--amber); font-variant-numeric: tabular-nums; }
.corridor__cap { align-self: start; font-size: .875rem; line-height: 1.4; color: var(--mist); }

.pic { width: 44px; height: 44px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; --pic-accent: var(--amber); }

/* Load sequence. Everything rests fully visible; motion only plays where it is welcome. */
@media (prefers-reduced-motion: no-preference) {
  .hero__name, .hero__title, .hero__lede, .hero .actions { animation: rise .9s var(--ease) both; }
  .hero__title { animation-delay: .06s; }
  .hero__lede { animation-delay: .16s; }
  .hero .actions { animation-delay: .26s; }
  .corridor__stage { animation: rise .8s var(--ease) both; animation-delay: calc(.5s + var(--i, 0) * .09s); }
  .corridor__stage:nth-child(2) { --i: 1; } .corridor__stage:nth-child(3) { --i: 2; } .corridor__stage:nth-child(4) { --i: 3; }
  .hero-car .hc-port { animation: fade 1.6s ease-out .1s both; }
  .hero-car .hc-car { animation: roll-in 1.5s var(--ease) both; }
  .hero-car .hc-rim { stroke-dasharray: 1; animation: trace 1.9s cubic-bezier(.5, 0, .2, 1) .15s both; }
  .hero-car .hc-lamps, .hero-car .hc-beam { animation: fade .6s ease-out 1.35s both; }
  .hero-car .hc-reflection, .hero-car .hc-floor { animation: fade 1.2s ease-out .6s both; }
  .hero-car .hc-sweep { animation: sweep 2.4s cubic-bezier(.4, 0, .2, 1) 1.5s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }
@keyframes roll-in { from { opacity: 0; transform: translateX(46px); } to { opacity: 1; transform: none; } }
@keyframes trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes sweep { from { transform: translateX(-80px) skewX(-22deg); } to { transform: translateX(820px) skewX(-22deg); } }
.hc-sweep { transform: translateX(820px) skewX(-22deg); }

@media (max-width: 1280px) {
  .hero__art { width: 58vw; right: -7vw; }
}
@media (max-width: 1100px) {
  .hero__art { width: 60vw; right: -10vw; }
  .hero__lede { max-width: 30ch; }
}
@media (max-width: 860px) {
  .hero__inner { min-height: 0; padding-bottom: 0; }
  .hero__lede { max-width: 46ch; }
  .hero__art { position: relative; right: auto; bottom: auto; width: 124%; margin: clamp(84px, 24vw, 150px) 0 -6px -2%; }
  .corridor { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .corridor__stage, .corridor__stage + .corridor__stage { grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; padding: 20px 0 22px; }
  .corridor__stage:nth-child(n + 3) { border-top: 1px solid var(--navy-2); }
  .corridor__stage:nth-child(even)::after { display: none; }
  .corridor__stage:not(:last-child)::after { right: 10px; }
  .corridor__glyph--code { font-size: 1.5rem; }
  .corridor .pic { width: 38px; height: 38px; }
}
@media (max-width: 520px) {
  .corridor { grid-template-columns: minmax(0, 1fr); }
  .corridor__stage, .corridor__stage + .corridor__stage { grid-template-columns: 52px minmax(0, 1fr); column-gap: 16px; padding: 16px 0 18px; }
  .corridor__stage + .corridor__stage { border-top: 1px solid var(--navy-2); }
  .corridor__stage::after { display: none; }
}
@media (max-width: 480px) {
  .hero .actions { width: 100%; }
  .hero .btn { width: 100%; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--fog { background: var(--fog); }
.section--ink { background: var(--ink); color: var(--paper); }

.sec-head { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 20px clamp(32px, 6vw, 96px); padding-bottom: clamp(26px, 3vw, 40px); margin-bottom: clamp(36px, 5vw, 72px); }
.sec-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--navy); transform-origin: left; }
.sec-head--dark::after { background: var(--navy-2); }
.sec-head__title { font-size: var(--fs-h2); font-weight: 500; font-stretch: var(--wide); line-height: 1.06; letter-spacing: -.02em; }
.sec-head__intro { font-size: var(--fs-lead); line-height: 1.5; color: var(--slate); max-width: 46ch; }
.sec-head--dark .sec-head__intro { color: var(--mist); }

/* Rules draw in when their block scrolls into view. Without JS they are simply there. */
@media (prefers-reduced-motion: no-preference) {
  .js .sec-head::after { transform: scaleX(0); transition: transform 1.1s var(--ease); }
  .js .sec-head.is-in::after { transform: scaleX(1); }
}

@media (max-width: 760px) {
  .sec-head { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- About ---------- */
.about__top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: clamp(32px, 5vw, 80px); }
.about__art { min-width: 0; }
.yard { width: 100%; height: auto; }
.statement { font-size: var(--fs-statement); font-weight: 500; font-stretch: 110%; line-height: 1.2; letter-spacing: -.015em; max-width: 26ch; }
.about__body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(36px, 6vw, 96px); margin-top: clamp(48px, 7vw, 104px); }
.about__text { color: var(--slate); font-size: var(--fs-lead); line-height: 1.55; max-width: 34ch; }
.audiences__title { font-size: var(--fs-label); font-weight: 500; font-stretch: 118%; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin-bottom: 22px; }
.audiences ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(20px, 2.6vw, 36px); }
.audiences li, .reason, .route__stop { position: relative; border-top: 1px solid var(--navy); padding-top: 22px; }
.audiences li::before, .reason::before, .route__stop::before { content: ""; position: absolute; left: 0; top: -4px; width: 7px; height: 7px; background: var(--amber); }
.audiences h4 { font-size: var(--fs-h3); font-weight: 600; font-stretch: 110%; line-height: 1.25; }
.audiences li p { margin-top: 10px; color: var(--slate); font-size: 1rem; }

@media (prefers-reduced-motion: no-preference) {
  .js .audiences li::before, .js .reason::before { transform: scale(0); transition: transform .5s var(--ease) .15s; }
  .js .audiences li.is-in::before, .js .reason.is-in::before { transform: none; }
}
@media (max-width: 900px) {
  .about__top { grid-template-columns: minmax(0, 1fr); }
  .about__art { max-width: 520px; }
  .about__body { grid-template-columns: minmax(0, 1fr); }
  .about__text { max-width: 52ch; }
}
@media (max-width: 680px) { .audiences ul { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Services ---------- */
.services-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.services-layout__head { position: sticky; top: calc(var(--header-h) + 40px); display: grid; justify-items: start; gap: 22px; }
.services-layout__head .btn { margin-top: 10px; }
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.service { position: relative; display: grid; align-content: start; gap: 12px; padding: clamp(26px, 3vw, 44px); background: var(--paper); }
.service::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.service:hover::before { transform: scaleX(1); }
.service__icon { display: grid; place-items: center; width: 68px; height: 68px; color: var(--navy); margin-bottom: clamp(16px, 2vw, 28px); border: 1px solid var(--rule); transition: background-color .35s var(--ease), border-color .35s var(--ease); }
.service .pic { --pic-accent: var(--amber-ink); transition: color .35s var(--ease); }
.service:hover .service__icon { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.service:hover .pic { --pic-accent: var(--amber); }
.service h3 { font-size: var(--fs-h3); font-weight: 600; font-stretch: 110%; line-height: 1.25; }
.service p { color: var(--slate); font-size: 1rem; }

@media (max-width: 980px) {
  .services-layout { grid-template-columns: minmax(0, 1fr); }
  .services-layout__head { position: static; }
}
@media (max-width: 600px) { .services { grid-template-columns: minmax(0, 1fr); } .service__icon { margin-bottom: 14px; } }

/* ---------- China to Algeria ---------- */
.route-section { --p: 1; overflow: hidden; }
.scene-wrap { margin-bottom: clamp(28px, 4vw, 56px); }
.scene { width: 100%; height: auto; overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.scene__arc { stroke: var(--navy-2); stroke-width: 1.6; stroke-dasharray: 3 9; }
.scene__arc--done { stroke: var(--amber); stroke-width: 2.4; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p)); }
.scene__pin { fill: var(--amber); }
.scene__pin--end { stroke: var(--amber); stroke-width: 2; transition: fill .4s ease; }
.js .route-section:not(.is-arrived) .scene__pin--end { fill: var(--ink); }
.scene__sea { stroke: #3F6F9C; stroke-width: 1; }
.scene__wave { stroke: #1D4266; stroke-width: 1.2; stroke-dasharray: 16 22; }
.scene__ship { transform: translateX(calc(var(--p) * 478px)); }
@media (prefers-reduced-motion: no-preference) {
  .js .scene__ship { transition: transform .5s linear; }
  .js .scene__arc--done { transition: stroke-dashoffset .5s linear; }
}

.route { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.route__stop { border-top-color: var(--navy-2); display: grid; align-content: start; gap: 8px; min-width: 0; transition: border-color .5s ease; }
.route__stop h3 { font-size: var(--fs-h3); font-weight: 600; font-stretch: 110%; line-height: 1.25; transition: color .5s ease; }
.route__stop--end h3 { font-size: clamp(1.375rem, 1.1rem + .9vw, 1.875rem); font-weight: 500; font-stretch: var(--wide); letter-spacing: -.01em; }
.route__native { display: inline-block; margin-left: .35em; font-size: .62em; font-weight: 400; font-stretch: 100%; letter-spacing: 0; color: var(--mist); }
.route__stop p { color: var(--mist); font-size: 1rem; }
.js .route__stop::before { transition: background-color .5s ease, transform .5s var(--ease); }
.js .route__stop:not(.is-active) { border-top-color: rgba(26, 58, 89, .6); }
.js .route__stop:not(.is-active)::before { background: #4F6880; transform: scale(.72); }
.js .route__stop:not(.is-active) h3 { color: var(--mist); }

.hubs { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 40px; margin-top: clamp(48px, 6vw, 88px); padding: 26px clamp(20px, 3vw, 36px); background: var(--ink-2); border: 1px solid var(--navy-2); }
.hubs__label { color: var(--mist); font-size: var(--fs-small); }
.hubs__list { display: flex; flex-wrap: wrap; gap: 8px 36px; font-weight: 500; font-stretch: var(--wide); font-size: 1.1875rem; }
.hubs__note { grid-column: 1 / -1; color: var(--mist); font-size: var(--fs-small); }

@media (max-width: 700px) {
  /* The scene is shown larger and pans with the vessel */
  .scene-wrap { overflow: hidden; margin-inline: calc(-1 * var(--gutter)); padding: 12px var(--gutter) 0; }
  .scene { width: 230%; max-width: none; transform: translateX(calc(var(--p) * -56.5%)); }
  .js .scene { transition: transform .5s linear; }
}
@media (max-width: 860px) {
  .route { grid-template-columns: minmax(0, 1fr); gap: 0; padding-left: 3px; }
  .route__stop { border-top: 0; border-left: 1px solid var(--navy-2); padding: 0 0 30px 24px; }
  .route__stop:last-child { padding-bottom: 0; border-left-color: transparent; }
  .route__stop::before { left: -4px; top: 8px; }
  .js .route__stop:not(.is-active) { border-left-color: rgba(26, 58, 89, .6); }
  .js .route__stop:last-child { border-left-color: transparent; }
  .hubs { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Why ---------- */
.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 4.5vw, 64px) clamp(20px, 2.6vw, 36px); }
.reason dt { font-size: var(--fs-h3); font-weight: 600; font-stretch: 110%; line-height: 1.25; }
.reason dd { color: var(--slate); margin-top: 10px; font-size: 1rem; max-width: 38ch; }
@media (max-width: 900px) { .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .reasons { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Showroom ---------- */
.vehicles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--navy-2); }
.vehicle { position: relative; display: grid; grid-template-rows: 1fr auto; gap: clamp(24px, 3.4vw, 52px); padding: clamp(36px, 5vw, 76px) clamp(16px, 1.8vw, 26px) clamp(20px, 2.4vw, 30px); min-width: 0; overflow: hidden; transition: background-color .5s var(--ease); }
.vehicle + .vehicle { border-left: 1px solid var(--navy-2); }
.vehicle:hover { background: var(--ink-2); }
.vehicle__art svg { width: 100%; height: auto; overflow: visible; }
.vehicle h3 { font-size: var(--fs-h3); font-weight: 500; font-stretch: var(--wide); line-height: 1.2; }
.vehicle__art { margin-inline: -7%; transition: transform .7s var(--ease); }
.vh-lamps { opacity: .65; transition: opacity .5s ease; }
.vehicle:hover .vh-lamps { opacity: 1; }
.vehicle:hover .vehicle__art { transform: translateX(-8px); }
@media (hover: none) { .vh-lamps { opacity: 1; } }
@media (max-width: 860px) {
  .vehicles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vehicle:nth-child(odd) { border-left: 0; }
  .vehicle:nth-child(n + 3) { border-top: 1px solid var(--navy-2); }
}
@media (max-width: 520px) {
  .vehicles { grid-template-columns: minmax(0, 1fr); }
  .vehicle { padding-top: 32px; }
  .vehicle + .vehicle { border-left: 0; border-top: 1px solid var(--navy-2); }
  .vehicle__art { margin-inline: 4% 8%; }
}

/* ---------- How we work ---------- */
.steps { border-bottom: 1px solid var(--rule); margin-top: calc(-1 * clamp(36px, 5vw, 72px)); }
.step { position: relative; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 4fr) minmax(0, 5fr) 52px; align-items: baseline; gap: 10px clamp(20px, 3vw, 48px); padding-block: clamp(26px, 3.2vw, 44px); }
.step + .step { border-top: 1px solid var(--rule); }
.step__num { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.75rem); font-weight: 400; font-stretch: 125%; line-height: .9; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--navy); }
.step h3 { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.75rem); font-weight: 500; font-stretch: var(--wide); line-height: 1.2; letter-spacing: -.01em; }
.step p { color: var(--slate); max-width: 52ch; }
.step__pic { grid-column: 4; grid-row: 1; align-self: center; justify-self: end; width: 48px; height: 48px; color: var(--navy); --pic-accent: var(--amber-ink); }
.step::before { content: ""; position: absolute; left: 0; top: -1px; width: 56px; height: 2px; background: var(--amber); transform-origin: left; }
.step:first-child::before { top: 0; }
@media (prefers-reduced-motion: no-preference) {
  .js .step::before { transform: scaleX(0); transition: transform .7s var(--ease) .1s; }
  .js .step.is-in::before { transform: scaleX(1); }
  .js .step .step__num { color: #B5C1CD; transition: color .9s ease .1s; }
  .js .step.is-in .step__num { color: var(--navy); }
  .js .step .step__pic { opacity: .35; transition: opacity .9s ease .2s; }
  .js .step.is-in .step__pic { opacity: 1; }
}
@media (max-width: 760px) {
  .step { grid-template-columns: 64px minmax(0, 1fr); }
  .step__num { grid-row: 1 / span 2; font-size: 2rem; line-height: 1.1; }
  .step h3, .step p { grid-column: 2; }
  .step__num { grid-row: 1; }
  .step__pic { grid-column: 1; grid-row: 2; align-self: start; justify-self: start; width: 38px; height: 38px; margin-top: 8px; }
}

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; background: var(--navy); color: var(--paper); padding-block: clamp(72px, 9vw, 136px); }
.cta__container { position: absolute; top: 0; bottom: 0; right: 0; width: min(54%, 820px); border-block: 12px solid rgba(2, 8, 15, .28);
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 2px, rgba(255, 255, 255, 0) 2px 15px, rgba(2, 8, 15, .3) 15px 17px, rgba(2, 8, 15, 0) 17px 30px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 62%); mask-image: linear-gradient(90deg, transparent, #000 62%); }
.cta__mark { position: absolute; top: 26px; right: max(var(--gutter), calc(50vw - var(--measure) / 2)); display: inline-flex; align-items: center; gap: 12px; font-size: var(--fs-label); font-weight: 600; font-stretch: 122%; letter-spacing: .2em; color: rgba(163, 181, 199, .8); }
.cta__mark svg { width: 36px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.cta__inner { position: relative; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 36px 56px; }
.cta__title { font-size: var(--fs-h2); font-weight: 500; font-stretch: var(--wide); line-height: 1.06; letter-spacing: -.02em; max-width: 16ch; }
.cta__text { font-size: var(--fs-lead); color: var(--mist); margin-top: 18px; max-width: 40ch; }
@media (max-width: 700px) { .cta__container { width: 100%; opacity: .6; } }
@media (max-width: 480px) { .cta .btn { width: 100%; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.contact__info { display: grid; gap: 22px; min-width: 0; }
.contact__mail { display: grid; gap: 12px; margin-top: clamp(8px, 2vw, 28px); }
.contact__email { justify-self: start; max-width: 100%; font-size: clamp(1.1875rem, 1rem + 1vw, 1.75rem); font-weight: 500; font-stretch: 110%; letter-spacing: -.01em; text-decoration: none; border-bottom: 1px solid var(--navy); padding-bottom: 4px; overflow-wrap: anywhere; transition: border-color .25s ease; }
.contact__email:hover { border-bottom-color: var(--amber); }
.contact__copy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; min-height: 36px; }
.copy-btn { min-height: 36px; padding: 7px 14px; background: none; border: 1px solid var(--field); border-radius: 2px; color: var(--navy); font: inherit; font-size: .875rem; font-weight: 500; cursor: pointer; transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
.copy-btn:hover { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.copy-status { font-size: .875rem; color: var(--slate); }
.contact__details { display: grid; margin-top: 10px; border-top: 1px solid var(--navy); }
.contact__details > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding-block: 15px; border-bottom: 1px solid var(--rule); align-items: baseline; }
.contact__details dt { font-size: var(--fs-label); font-weight: 500; font-stretch: 118%; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.contact__details dd { font-weight: 500; overflow-wrap: anywhere; }

.form { display: grid; gap: 24px; min-width: 0; padding: clamp(24px, 4vw, 52px); background: var(--paper); border: 1px solid var(--rule); }
.form__title { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.75rem); font-weight: 500; font-stretch: var(--wide); letter-spacing: -.01em; line-height: 1.2; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.field { display: grid; gap: 8px; align-content: start; min-width: 0; }
.field label, .chips legend { font-size: var(--fs-small); font-weight: 600; }
.field__optional { font-weight: 400; color: var(--slate); }
.field input, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 15px;
  background: var(--paper); color: var(--navy);
  border: 1px solid var(--field); border-radius: 2px;
  font: inherit; font-size: 1rem; line-height: 1.4;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:hover, .field textarea:hover { border-color: var(--navy); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--navy); box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--navy); }
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.field__hint { font-size: .875rem; color: var(--slate); }
.field__error { font-size: .875rem; color: var(--error); font-weight: 500; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; border: 0; min-width: 0; }
.chips legend { padding: 0; margin-bottom: 10px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--field); border-radius: 999px; font-size: .9375rem; font-weight: 500; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.chip:hover span { border-color: var(--navy); }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.chip input:focus-visible + span { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--navy); }

.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.form__note { flex: 1 1 240px; font-size: .875rem; color: var(--slate); overflow-wrap: anywhere; }
.form__status { padding: 14px 16px; background: var(--fog); border-left: 3px solid var(--navy); font-size: 1rem; overflow-wrap: anywhere; }

@media (max-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .form .btn { width: 100%; }
}

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--ink); color: var(--mist); padding-top: clamp(56px, 7vw, 104px); font-size: var(--fs-small); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 40px clamp(24px, 4vw, 56px); }
.site-footer__brand { display: grid; align-content: start; gap: 22px; max-width: 360px; }
.site-footer__col h2 { font-size: var(--fs-label); font-weight: 500; font-stretch: 118%; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); margin-bottom: 18px; }
.site-footer__col ul { display: grid; gap: 7px; }
.site-footer__col li { color: var(--paper); overflow-wrap: anywhere; }
.site-footer a { display: inline-block; padding-block: 3px; color: var(--paper); text-decoration: none; background: linear-gradient(var(--amber), var(--amber)) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.site-footer a:hover { background-size: 100% 1px; }
.site-footer__base { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: clamp(48px, 6vw, 88px); padding-block: 22px; border-top: 1px solid var(--navy-2); }
.site-footer__base a { color: var(--mist); }
.site-footer__mark { margin: clamp(8px, 2vw, 28px) 0 -0.27em; text-align: center; white-space: nowrap; font-size: clamp(2.75rem, 10.4vw, 12.5rem); font-weight: 700; font-stretch: 125%; line-height: 1; letter-spacing: -.01em; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px rgba(163, 181, 199, .2); user-select: none; }
@supports not (-webkit-text-stroke: 1px #000) { .site-footer__mark { color: rgba(163, 181, 199, .08); } }
@media (max-width: 860px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .site-footer__col:last-child { grid-column: 1 / -1; }
}

/* ---------- Legal and simple pages ---------- */
.page-head { background: var(--ink); color: var(--paper); padding-block: clamp(48px, 7vw, 96px); }
.page-head h1 { font-size: var(--fs-h2); font-weight: 500; font-stretch: var(--wide); line-height: 1.06; letter-spacing: -.02em; }
.page-head p { color: var(--mist); margin-top: 14px; }
.prose { max-width: 720px; padding-block: clamp(48px, 6vw, 88px); display: grid; gap: 18px; }
.prose h2 { font-size: 1.375rem; font-weight: 600; font-stretch: 110%; line-height: 1.25; margin-top: 24px; }
.prose p, .prose li { color: #2B3D4F; }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 8px; }
.prose a { color: var(--navy); font-weight: 500; text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose .btn { justify-self: start; margin-top: 10px; }
.prose a.btn { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Legal pages: Privacy Policy, Terms, Data Deletion ---------- */
.legal-head { background: var(--ink); color: var(--paper); padding-top: clamp(36px, 5vw, 72px); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: clamp(22px, 3vw, 36px); font-size: var(--fs-small); color: var(--mist); }
.crumbs a { color: var(--paper); text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid var(--navy-2); transition: border-color .25s ease; }
.crumbs a:hover { border-bottom-color: var(--amber); }
.legal-head h1 { font-size: var(--fs-h2); font-weight: 500; font-stretch: var(--wide); line-height: 1.06; letter-spacing: -.02em; }
.legal-head__meta { margin-top: 14px; color: var(--mist); }
.legal-tabs { display: flex; flex-wrap: wrap; gap: 0 clamp(20px, 3vw, 40px); margin-top: clamp(32px, 4.5vw, 60px); border-top: 1px solid var(--navy-2); }
.legal-tabs a { position: relative; display: block; padding: 16px 0 18px; color: var(--mist); font-size: var(--fs-small); font-weight: 500; text-decoration: none; transition: color .2s ease; }
.legal-tabs a::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.legal-tabs a:hover, .legal-tabs a[aria-current="page"] { color: var(--paper); }
.legal-tabs a:hover::before, .legal-tabs a[aria-current="page"]::before { transform: scaleX(1); }

.legal { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); align-items: start; padding-block: clamp(44px, 6vw, 88px) var(--section); }
.legal__toc { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 28px; justify-items: start; }
.legal__toc nav { width: 100%; }
.legal__toc-title { font-size: var(--fs-label); font-weight: 500; font-stretch: 118%; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.legal__toc ol { display: grid; margin-top: 16px; border-left: 1px solid var(--rule); }
.legal__toc li a { display: block; margin-left: -1px; padding: 7px 0 7px 16px; border-left: 1px solid transparent; color: var(--slate); font-size: var(--fs-small); line-height: 1.4; text-decoration: none; transition: color .2s ease, border-color .2s ease; }
.legal__toc li a:hover { color: var(--navy); border-left-color: var(--amber); }
.btn__icon--back { order: -1; }
.btn:hover .btn__icon--back { transform: translateX(-5px); }

.legal__body { display: grid; gap: 18px; max-width: 720px; min-width: 0; counter-reset: section; }
.legal__intro { font-size: var(--fs-lead); line-height: 1.55; color: var(--navy); }
.legal__body section { display: grid; gap: 14px; margin-top: clamp(14px, 2vw, 26px); padding-top: clamp(26px, 3vw, 40px); border-top: 1px solid var(--rule); scroll-margin-top: calc(var(--header-h) + 8px); }
.legal__body h2 { counter-increment: section; font-size: clamp(1.375rem, 1.2rem + .8vw, 1.875rem); font-weight: 500; font-stretch: var(--wide); line-height: 1.15; letter-spacing: -.012em; scroll-margin-top: calc(var(--header-h) + 48px); }
.legal__body h2::before { content: counter(section, decimal-leading-zero); display: block; margin-bottom: 10px; font-size: var(--fs-label); font-weight: 600; font-stretch: 118%; letter-spacing: .12em; color: #8F6311; }
.legal__body h3 { margin-top: 8px; font-size: 1.0625rem; font-weight: 600; font-stretch: 108%; }
.legal__body p, .legal__body li { color: #2B3D4F; }
.legal__body ul, .legal__body ol { display: grid; gap: 9px; padding-left: 22px; }
.legal__body li ul { margin-top: 9px; }
.legal__body li::marker { color: var(--slate); }
.legal__body strong { color: var(--navy); font-weight: 600; }
.legal__body a:not(.btn) { color: var(--navy); font-weight: 500; text-decoration-color: var(--amber-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal__body a:not(.btn):hover { text-decoration-thickness: 2px; }

.legal-card { display: grid; margin-block: 6px; border: 1px solid var(--rule); background: var(--fog); }
.legal-card > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 4px 16px; align-items: baseline; padding: 14px clamp(16px, 2.4vw, 24px); }
.legal-card > div + div { border-top: 1px solid var(--rule); }
.legal-card dt { font-size: var(--fs-label); font-weight: 500; font-stretch: 118%; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.legal-card dd { color: var(--navy); font-weight: 500; overflow-wrap: anywhere; }

.legal-callout { display: grid; gap: 14px; justify-items: start; margin-top: 10px; padding: clamp(22px, 3vw, 36px); background: var(--ink); color: var(--paper); }
.legal-callout__title { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.625rem); font-weight: 500; font-stretch: var(--wide); letter-spacing: -.01em; line-height: 1.2; }
.legal-callout p, .legal-callout strong { color: var(--paper); }
.legal-callout p:not(.legal-callout__title) { color: var(--mist); }
.legal__body .legal-callout a:not(.btn) { color: var(--paper); }
.legal-callout .btn { margin-top: 6px; white-space: normal; }

@media (max-width: 900px) {
  /* On small screens the content comes first; the contents list is dropped and the way back stays. */
  .legal { grid-template-columns: minmax(0, 1fr); }
  .legal__toc { position: static; order: 2; padding-top: 28px; border-top: 1px solid var(--rule); width: 100%; }
  .legal__toc nav { display: none; }
}
@media (max-width: 520px) {
  .legal-tabs { gap: 0 18px; }
  .legal-tabs a { font-size: .875rem; }
}
@media (max-width: 480px) {
  .legal-card > div { grid-template-columns: minmax(0, 1fr); }
  .legal-callout .btn { width: 100%; }
}
