/* =========================================================
   Corridor Freight — concept demo (Merimei Studio)
   Scroll-driven freight / clearing / warehousing / haulage.
   Palette pulled from the night-terminal hero: teal water,
   amber container lights, deep navy.
   ========================================================= */

:root {
  --ink:    #0C1116;   /* deep navy-black */
  --deep:   #0F1922;
  --steel:  #22303B;   /* steel blue-grey, biased teal */
  --steel-2:#2E3F4C;
  --teal:   #1FB6B0;   /* signal teal — primary accent */
  --teal-d: #17817D;
  --amber:  #E8A13C;   /* container amber — secondary accent */
  --mist:   #DCE6EA;   /* cool off-white text */
  --mist-d: rgba(220,230,234,0.66);

  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body:    "Barlow", "Helvetica Neue", Arial, sans-serif;
  --mono:    "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-weight: 300;
  color: var(--mist);
  background: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--teal); color: var(--ink); }

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

/* ---------- colour-shifting ground ---------- */
#ground {
  position: fixed; inset: 0; z-index: -2;
  background: var(--ink);
  transition: background-color .18s linear;
}

/* ---------- scroll progress ---------- */
#progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 90; background: rgba(220,230,234,.10);
}
#progress-bar { display: block; height: 100%; width: 0%; background: var(--teal); }

/* ---------- skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--teal); color: var(--ink);
  padding: 12px 18px; font-family: var(--mono); font-size: 13px;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- concept banner ---------- */
.concept-banner {
  position: relative; z-index: 95;
  background: var(--amber); color: #2A1B02;
  font-family: var(--mono);
  font-size: 11.5px; line-height: 1.5; letter-spacing: .01em;
  padding: 9px 20px; text-align: center;
}
.concept-banner strong { font-weight: 700; }

/* ---------- nav ---------- */
#nav {
  position: sticky; top: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 15px 28px;
  background: rgba(12,17,22,.6);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(220,230,234,.09);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--mist); }
.mark { width: 30px; height: 30px; color: var(--teal); flex: none; }
.brand-word { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: .02em; text-transform: uppercase; }
.brand-word em { font-style: normal; color: var(--teal); font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a {
  text-decoration: none; font-family: var(--mono); font-size: 12px; letter-spacing: .04em;
  color: var(--mist-d); transition: color .25s ease;
}
.nav-links a:hover { color: var(--teal); }
.nav-cta {
  border: 1px solid var(--teal); color: var(--teal) !important;
  padding: 8px 15px; border-radius: 2px;
}
.nav-cta:hover { background: var(--teal); color: var(--ink) !important; }

/* ---------- shared layout ---------- */
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 48px); }

.kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--mist-d);
  display: flex; align-items: center; gap: 12px; margin: 0 0 22px;
}
.kicker .idx { color: var(--teal); }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; margin: 0; text-transform: uppercase; letter-spacing: .005em; }
h1 { font-size: clamp(40px, 8vw, 104px); font-weight: 900; }
h2 { font-size: clamp(30px, 5vw, 58px); }
h2.big { font-size: clamp(34px, 6vw, 76px); font-weight: 900; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: .02em; }

p { margin: 0 0 18px; }
.lede { font-size: clamp(18px, 2.1vw, 23px); color: var(--mist); font-weight: 400; }
strong { font-weight: 600; color: var(--teal); }

/* ---------- reveal / assemble ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }

.assemble .line { display: block; overflow: hidden; }
.assemble .line > span { display: block; }
.js .assemble .line > span { transform: translateY(115%); transition: transform .9s cubic-bezier(.22,1,.36,1); }
.assemble.in .line > span { transform: translateY(0); }
.assemble.in .line:nth-child(1) > span { transition-delay: .04s; }
.assemble.in .line:nth-child(2) > span { transition-delay: .13s; }
.assemble.in .line:nth-child(3) > span { transition-delay: .22s; }

/* ================= HERO ================= */
.hero { height: 220vh; position: relative; }
.hero-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; }
.hero-media { position: absolute; inset: -8% 0; will-change: transform; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  filter: brightness(.5) saturate(.95) contrast(1.06);
  will-change: opacity, transform;
}
/* 3-image crossfade w/ slow Ken Burns — one 21s cycle, 7s each */
.js .hero-slide.s1 { animation: heroCycle 21s linear infinite,      kenburns 21s ease-in-out infinite; }
.js .hero-slide.s2 { animation: heroCycle 21s linear -7s infinite,  kenburns 21s ease-in-out -7s infinite; }
.js .hero-slide.s3 { animation: heroCycle 21s linear -14s infinite, kenburns 21s ease-in-out -14s infinite; }
/* no-JS fallback: show the first frame */
.hero-slide.s1 { opacity: 1; }

@keyframes heroCycle {
  0%     { opacity: 0; }
  4%     { opacity: 1; }
  29%    { opacity: 1; }
  36%    { opacity: 0; }
  100%   { opacity: 0; }
}
@keyframes kenburns {
  0%   { transform: scale(1.02); }
  33%  { transform: scale(1.10); }
  100% { transform: scale(1.02); }
}

.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(12,17,22,.88) 0%, rgba(12,17,22,.45) 52%, rgba(12,17,22,.3) 100%),
    linear-gradient(to top, rgba(12,17,22,.92) 0%, rgba(12,17,22,0) 46%);
}
.hero-inner { position: relative; width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--mist-d);
  display: flex; align-items: center; gap: 10px; margin: 0 0 24px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); flex: none; }
.hero-sub { max-width: 52ch; margin-top: 28px; font-size: clamp(16px, 1.8vw, 19px); color: rgba(220,230,234,.85); font-weight: 400; }
.hero-cue {
  margin-top: 42px; display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--mist-d);
}
.cue-line { display: block; width: 70px; height: 1px; background: var(--teal); transform-origin: left; animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: scaleX(.3); opacity: .5; } 50% { transform: scaleX(1); opacity: 1; } }

/* ================= IDEA ================= */
.idea { padding: clamp(110px, 16vh, 190px) 0; position: relative; }
.idea-grid { margin-top: 52px; display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 34px; }
.idea-grid p { color: rgba(220,230,234,.78); margin: 0; font-weight: 400; }

/* ============ SIGNATURE: THE CORRIDOR ============ */
.corridor { height: 440vh; position: relative; }
.corridor-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 90px 0 26px;
}
.corridor-head { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.corridor-head .kicker { margin-bottom: 8px; }
.corridor-hint { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(220,230,234,.4); margin: 0; }

.corridor-stage { position: relative; flex: 1; min-height: 0; margin-top: 12px; width: min(1220px, 100% - 32px); margin-inline: auto; }
.corridor-svg { width: 100%; height: 100%; display: block; }

.ms-dot-outer { fill: none; stroke: rgba(220,230,234,.3); stroke-width: 1.5; }
.ms-dot { fill: var(--steel-2); stroke: rgba(220,230,234,.4); stroke-width: 2; transition: fill .4s ease, stroke .4s ease; }
.ms-dot.lit { fill: var(--teal); stroke: var(--teal); }
.ms-label { font-family: var(--mono); font-size: 15px; fill: var(--mist-d); text-transform: uppercase; letter-spacing: .04em; transition: fill .4s ease; }
.ms-label.lit { fill: var(--mist); }
.ms-sub { font-family: var(--mono); font-size: 12px; fill: rgba(220,230,234,.42); }

.corridor-readout {
  position: absolute; top: 4px; right: 6px;
  display: flex; flex-direction: column; gap: 3px; text-align: right;
  font-family: var(--mono);
}
.ro-label { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(220,230,234,.42); }
.ro-value { font-size: clamp(15px, 2.4vw, 22px); color: var(--amber); letter-spacing: .01em; }

.corridor-legend {
  list-style: none; margin: 16px auto 0; padding: 0;
  width: min(var(--wrap), 100% - 48px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.corridor-legend li {
  display: flex; align-items: baseline; gap: 10px;
  padding-top: 12px; border-top: 1px solid rgba(220,230,234,.14);
  font-family: var(--mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase;
  color: rgba(220,230,234,.32);
  transition: color .5s ease, border-color .5s ease;
}
.corridor-legend li.lit { color: var(--mist); border-top-color: var(--teal); }
.l-no { color: var(--teal); opacity: .5; transition: opacity .5s ease; }
.corridor-legend li.lit .l-no { opacity: 1; }

/* ================= CHAPTERS ================= */
.chapter { position: relative; min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; overflow: hidden; }
.chapter.alt .chapter-media { order: 2; }
.chapter-media { position: relative; overflow: hidden; min-height: 56vh; }
.chapter-media img {
  position: absolute; inset: -9% 0; width: 100%; height: 118%;
  object-fit: cover; will-change: transform;
  filter: brightness(.8) saturate(.95) contrast(1.03);
}
.chapter-body { display: flex; align-items: center; padding: clamp(72px, 10vh, 128px) 0; }
.chapter-body .wrap.narrow { width: min(560px, 100% - 48px); }
.chapter-body p { color: rgba(220,230,234,.78); font-weight: 400; }

.spec { margin: 38px 0 0; display: grid; gap: 0; }
.spec > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px;
  padding: 13px 0; border-top: 1px solid rgba(220,230,234,.14);
}
.spec dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .11em; text-transform: uppercase; color: rgba(220,230,234,.5); }
.spec dd { margin: 0; font-family: var(--mono); font-size: 12.5px; color: var(--amber); text-align: right; }

/* ================= SERVICES (pointer parallax) ================= */
.services { position: relative; min-height: 108vh; display: flex; align-items: center; overflow: hidden; padding: clamp(96px, 14vh, 160px) 0; }
.services-bg {
  position: absolute; inset: -12% 0;
  background-image: url("assets/scene-crane-dusk.jpg");
  background-size: cover; background-position: center;
  will-change: transform; filter: brightness(.45) saturate(.9);
}
.services-veil { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(12,17,22,.86), rgba(12,17,22,.78)); }
.services-inner { position: relative; }

.svc-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.svc-card {
  background: rgba(15,25,34,.72); border: 1px solid rgba(220,230,234,.13);
  padding: 26px 22px 24px; border-radius: 3px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  will-change: transform;
}
.svc-no { font-family: var(--mono); font-size: 12px; color: var(--teal); display: block; margin-bottom: 14px; }
.svc-card h3 { color: var(--mist); margin-bottom: 10px; }
.svc-card p { margin: 0; font-size: 14.5px; color: rgba(220,230,234,.72); font-weight: 400; }

.fineprint { margin-top: 44px; font-family: var(--mono); font-size: 12px; line-height: 1.75; color: rgba(220,230,234,.5); max-width: 70ch; }

/* ================= TRACK + ENQUIRE ================= */
.enquire { padding: clamp(110px, 16vh, 190px) 0; position: relative; }

.track-form {
  margin: 40px 0 60px; display: flex; gap: 12px; flex-wrap: wrap;
  border: 1px solid rgba(220,230,234,.2); border-radius: 3px; padding: 10px;
  background: rgba(220,230,234,.04);
}
.track-form input {
  flex: 1; min-width: 220px;
  font-family: var(--mono); font-size: 14px; color: var(--mist);
  background: transparent; border: 0; padding: 12px 12px;
}
.track-form input:focus { outline: none; }
.track-note { width: 100%; margin: 4px 6px 2px; font-family: var(--mono); font-size: 12px; color: var(--amber); min-height: 1em; }

.btn {
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  background: var(--teal); color: var(--ink); border: 0; border-radius: 2px;
  padding: 14px 30px; cursor: pointer;
  transition: filter .25s ease, transform .25s ease;
}
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-track { flex: none; }

.enquire-split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 44px; align-items: start; }
.enquire-copy p { color: rgba(220,230,234,.76); font-weight: 400; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(220,230,234,.55); }
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 15px; font-weight: 400; color: var(--mist);
  background: rgba(220,230,234,.05); border: 1px solid rgba(220,230,234,.18); border-radius: 2px;
  padding: 12px 14px; width: 100%;
  transition: border-color .25s ease, background .25s ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: rgba(220,230,234,.08); }
.field select option { background: var(--deep); color: var(--mist); }
.form .btn { grid-column: 1 / -1; justify-self: start; }
.form-note { grid-column: 1 / -1; margin: 0; font-family: var(--mono); font-size: 12px; color: var(--teal); min-height: 1.2em; }

/* ================= FOOTER ================= */
.foot { padding: 76px 0 60px; border-top: 1px solid rgba(220,230,234,.12); background: rgba(12,17,22,.66); }
.foot-brand { margin-bottom: 28px; }
.foot-tag { font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; font-size: 15px; color: rgba(220,230,234,.6); margin: 8px 0 0; }
.disclaimer {
  font-size: 13.5px; line-height: 1.75; color: rgba(220,230,234,.62);
  max-width: 82ch; padding: 18px 20px;
  border-left: 2px solid var(--amber); background: rgba(232,161,60,.06);
}
.disclaimer strong { color: var(--amber); font-weight: 600; }
.foot-meta { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: rgba(220,230,234,.38); margin: 22px 0 0; }

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 860px) {
  .chapter { grid-template-columns: 1fr; }
  .chapter.alt .chapter-media { order: 0; }
  .chapter-media { min-height: 60vh; }
  .chapter-body { padding: 60px 0 74px; }
  .enquire-split { grid-template-columns: 1fr; gap: 26px; }
  .corridor-legend { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-links { gap: 12px; }
  .nav-links a:not(.nav-cta) { display: none; }

  .hero { height: auto; }
  .hero-sticky { position: static; height: 100svh; min-height: 560px; }
  .hero-media { transform: none !important; }

  .corridor { height: auto; }
  .corridor-sticky { position: static; height: auto; overflow: visible; padding: 74px 0 34px; }
  .corridor-stage { min-height: 60vh; }

  .services-bg { background-attachment: scroll; transform: none !important; }
  .svc-card { transform: none !important; }

  .form { grid-template-columns: 1fr; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal, .assemble .line > span { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-media, .chapter-media img, .services-bg, .svc-card { transform: none !important; }
  .hero-slide { animation: none !important; }
  .hero-slide.s1 { opacity: 1 !important; }
  .hero-slide.s2, .hero-slide.s3 { opacity: 0 !important; }
  .cue-line { animation: none; transform: scaleX(1); }

  .hero { height: auto; }
  .hero-sticky { position: static; height: 100vh; min-height: 560px; }

  .corridor { height: auto; }
  .corridor-sticky { position: static; height: auto; overflow: visible; }
  .corridor-stage { min-height: 62vh; }
  .corridor-legend li { color: var(--mist); border-top-color: var(--teal); }
  .corridor-legend .l-no { opacity: 1; }

  #progress { display: none; }
}
