/* ============================================================
   DENSITY FREIGHT — Page & component styles
   ============================================================ */

/* ---------------- HERO (video) ---------------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: clamp(2rem, 5vw, 4rem);
  overflow: hidden;
  color: var(--on-night);
  background: var(--night); /* dark base so hero never flashes before video paints */
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  filter: grayscale(0.35) contrast(1.05) brightness(0.62);
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, oklch(0.15 0.01 265 / 0.55) 0%, transparent 30%, oklch(0.15 0.01 265 / 0.35) 60%, oklch(0.13 0.01 265 / 0.92) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; align-items: center;
  margin-bottom: clamp(1.2rem, 3vw, 2rem);
  color: var(--on-night);
}
.hero__meta .kicker {
  color: var(--paper); opacity: 0.9;
  flex-basis: 100%;                                     /* own line, above the pills */
  font-size: clamp(1.18rem, 0.85rem + 1.6vw, 2.1rem);  /* bigger; same mono type, case & tracking */
}
.hero__meta .pill {
  font-family: var(--font-mono); font-size: var(--step--1);
  border: 1px solid oklch(1 0 0 / 0.35); padding: 0.4em 0.8em;
  letter-spacing: 0.04em;
}
.line-mask { display: block; overflow: hidden; padding-block: 0.03em; }
.line-mask > .line { display: block; will-change: transform; }
.hero h1 {
  font-size: var(--step-5);
  line-height: 0.9;
  max-width: 15ch;
}
.hero h1 .red { color: var(--red); }
.hero__row {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 2rem; margin-top: clamp(1.5rem, 4vw, 3rem);
}
.hero__sub { max-width: 42ch; color: var(--on-night); opacity: 0.85; font-size: var(--step-1); line-height: 1.4; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: clamp(2rem, 5vw, 4rem); z-index: 2;
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.1em;
  text-transform: uppercase; writing-mode: vertical-rl;
}
.hero__scroll .bar { width: 1px; height: 48px; background: currentColor; position: relative; overflow: hidden; }
.hero__scroll .bar::after {
  content: ""; position: absolute; inset: 0; background: var(--red);
  animation: scrollbar 2s var(--ease-io) infinite;
}
@keyframes scrollbar { 0% { transform: translateY(-100%);} 50%{transform: translateY(0);} 100%{transform: translateY(100%);} }
@media (max-width: 720px) { .hero__scroll { display: none; } }

/* ---------------- Intro / editorial statement ---------------- */
.statement { position: relative; }
.statement__text {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--step-3); line-height: 1.12; letter-spacing: -0.025em;
  max-width: 20ch;
}
.statement__text .word { display: inline-block; }
.statement__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,5rem); align-items: end;
}
.statement__aside { font-size: var(--step-0); color: var(--ink-2); max-width: 40ch; }
.statement__aside p + p { margin-top: 1.2rem; }
@media (max-width: 820px) { .statement__grid { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ---------------- Section header ---------------- */
.sec-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.sec-head h2 { max-width: 16ch; }
.sec-head .lede { text-align: left; }

/* ---------------- Services list (hover-reveal rows) ---------------- */
.svc-list { border-top: 1px solid var(--line); position: relative; }
.svc-row {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 1.5rem;
  padding: clamp(1.4rem, 3.2vw, 2.6rem) 0;
  border-bottom: 1px solid var(--line);
  position: relative; isolation: isolate;
  transition: color 0.4s var(--ease-out);
}
.svc-row::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.5s var(--ease-out);
}
.svc-row:hover { color: var(--paper); }
.svc-row:hover::before { transform: scaleY(1); }
.svc-row__num { font-family: var(--font-mono); font-size: var(--step--1); color: var(--red); width: 3ch; }
.svc-row:hover .svc-row__num { color: var(--red); }
.svc-row__name {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--step-3); letter-spacing: -0.03em; line-height: 1;
  padding-inline: clamp(0.5rem, 2vw, 2rem);
}
.svc-row__tags { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; }
.svc-row__tag {
  font-family: var(--font-mono); font-size: var(--step--1);
  border: 1px solid var(--line-strong); padding: 0.35em 0.75em; white-space: nowrap;
  transition: border-color 0.4s;
}
.svc-row:hover .svc-row__tag { border-color: oklch(1 0 0 / 0.35); }
.svc-row__arrow { transition: transform 0.5s var(--ease-out); }
.svc-row:hover .svc-row__arrow { transform: translate(6px, -6px); }
@media (max-width: 720px) {
  .svc-row { grid-template-columns: auto 1fr; gap: 0.5rem 1rem; }
  .svc-row__name { grid-column: 1 / -1; padding-inline: 0; margin-top: 0.4rem; }
  .svc-row__tags { display: none; }
}

/* ---------------- Why-us (pinned split) ---------------- */
.why { position: relative; }
.why__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.why__sticky { position: sticky; top: 20vh; }
.why__sticky h2 { max-width: 12ch; }
.why__list { display: flex; flex-direction: column; }
.why__item {
  padding: clamp(1.8rem, 4vw, 3rem) 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1rem, 3vw, 2.5rem);
}
.why__item:last-child { border-bottom: 1px solid var(--line); }
.why__k { font-family: var(--font-mono); font-size: var(--step--1); color: var(--red); padding-top: 0.5rem; }
.why__item h3 { font-size: var(--step-2); margin-bottom: 0.6rem; }
.why__item p { color: var(--ink-2); max-width: 46ch; }
@media (max-width: 820px) {
  .why__grid { grid-template-columns: 1fr; gap: 2rem; }
  .why__sticky { position: static; }
}

/* ---------------- Route / SVG map band ---------------- */
.route {
  background: var(--night); color: var(--on-night);
  position: relative; overflow: hidden;
}
.route__inner { position: relative; z-index: 2; }
.route h2 { max-width: 18ch; }
.route h2 .stroke { -webkit-text-stroke-color: oklch(1 0 0 / 0.4); }
.route__map { width: 100%; height: auto; margin-top: clamp(2rem,5vw,4rem); overflow: visible; }
.route__map .land { fill: none; stroke: oklch(1 0 0 / 0.14); stroke-width: 1; }
.route__map .path-line {
  fill: none; stroke: var(--red); stroke-width: 2.5; stroke-linecap: round;
  filter: drop-shadow(0 0 6px oklch(0.55 0.2 27 / 0.6));
}
.route__map .node { fill: var(--paper); }
.route__map .node-ring { fill: none; stroke: var(--red); stroke-width: 1.5; }
.route__map .node-label { fill: var(--on-night); font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.03em; }
.route__legend { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; margin-top: 2.5rem; }
.route__legend span { font-family: var(--font-mono); font-size: var(--step--1); color: var(--on-night-soft); }
.route__legend b { color: var(--on-night); font-weight: 500; }

/* ---------------- Coverage page: full network map ---------------- */
.route--full { padding-block: clamp(3.5rem, 8vw, 7rem); }
.route--full .route__map { margin-top: clamp(2.5rem, 6vw, 5rem); }
/* faint continent + graticule strokes */
.route__map .graticule { fill: none; stroke: oklch(1 0 0 / 0.06); stroke-width: 1; }
/* secondary (cross-border / regional) lanes: thinner, cooler, no glow */
.route__map .path-line.is-sub {
  stroke: oklch(1 0 0 / 0.32); stroke-width: 1.5;
  stroke-dasharray: 5 6; filter: none;
}
/* animated freight-flow dashes travelling along the primary lanes */
.route__map .lane-flow {
  fill: none; stroke: var(--red); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 1 22; opacity: 0.95;
  filter: drop-shadow(0 0 5px oklch(0.55 0.2 27 / 0.7));
  animation: laneFlow 2.6s linear infinite;
}
@keyframes laneFlow { to { stroke-dashoffset: -46; } }
/* pulsing rings on the primary hubs */
.route__map .node-pulse {
  fill: none; stroke: var(--red); stroke-width: 1.5;
  transform-box: fill-box; transform-origin: center;
  animation: nodePulse 2.8s var(--ease-out) infinite;
}
@keyframes nodePulse {
  0% { transform: scale(0.55); opacity: 0.7; }
  100% { transform: scale(3.2); opacity: 0; }
}
.route__map .node--hub { fill: var(--red); }
/* larger, legible labels on the full map */
.route--full .route__map .node-label { font-size: 15px; }

/* coverage stats / capability grid */
.route__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px; margin-top: clamp(3rem, 6vw, 5rem);
  background: oklch(1 0 0 / 0.1); border: 1px solid oklch(1 0 0 / 0.1);
}
.route__cell { background: var(--night); padding: clamp(1.6rem, 3vw, 2.4rem); }
.route__cell .num {
  font-family: var(--font-display); font-weight: 600; line-height: 1;
  font-size: var(--step-3); color: var(--on-night); letter-spacing: -0.03em;
}
.route__cell .lbl {
  display: block; margin-top: 0.9rem; font-family: var(--font-mono);
  font-size: var(--step--1); color: var(--on-night-soft);
  text-transform: uppercase; letter-spacing: 0.08em;
}

@media (prefers-reduced-motion: reduce) {
  .route__map .lane-flow { animation: none; opacity: 0.6; }
  .route__map .node-pulse { animation: none; opacity: 0; }
}

/* ---------------- Big CTA (red drench) ---------------- */
.cta-block { background: var(--red); color: var(--paper); position: relative; overflow: hidden; }
.cta-block__inner { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta-block h2 {
  font-size: var(--step-5); line-height: 0.9; max-width: 16ch;
}
.cta-block .lede { color: oklch(0.97 0.02 27); max-width: 46ch; margin-top: 1.5rem; text-align: center; }
.cta-block .btn-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: clamp(2rem,4vw,3rem); }
.cta-block__ghost { font-size: var(--step-0); }
.cta-block__watermark {
  position: absolute; bottom: -0.2em; left: 50%; transform: translateX(-50%);
  font-family: var(--font-display); font-weight: 700; font-size: 30vw; line-height: 1;
  color: oklch(1 0 0 / 0.07); z-index: 1; white-space: nowrap; pointer-events: none;
}

/* ---------------- Page hero (inner pages) ---------------- */
.page-hero { padding-top: clamp(8rem, 14vw, 12rem); padding-bottom: clamp(2rem, 5vw, 4rem); position: relative; }
.page-hero h1 { font-size: var(--step-5); max-width: 16ch; }
.page-hero h1 .red { color: var(--red); }
.page-hero .lede { margin-top: clamp(1.5rem,3vw,2.5rem); max-width: 50ch; }
.page-hero__index {
  position: absolute; top: clamp(6rem, 11vw, 9rem); right: var(--gutter);
  font-family: var(--font-mono); font-size: var(--step--1); color: var(--ink-soft);
}

/* ---------------- Service detail cards ---------------- */
.svc-detail { border-top: 1px solid var(--line); }
.svc-detail__row {
  display: grid; grid-template-columns: 0.4fr 1fr; gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(2.5rem, 5vw, 4.5rem); border-bottom: 1px solid var(--line);
  align-items: start;
}
.svc-detail__idx { font-family: var(--font-display); font-weight: 600; font-size: var(--step-3); color: var(--line-strong); line-height: 1; }
.svc-detail__idx .active { color: var(--red); }
.svc-detail__body h3 { font-size: var(--step-2); margin-bottom: 1rem; }
.svc-detail__body p { color: var(--ink-2); max-width: 60ch; }
.svc-detail__feats { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.svc-detail__feats span {
  font-family: var(--font-mono); font-size: var(--step--1);
  border: 1px solid var(--line-strong); padding: 0.4em 0.85em;
}
@media (max-width: 720px) { .svc-detail__row { grid-template-columns: 1fr; gap: 1rem; } }

/* ---------------- About ---------------- */
.about-lead {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--step-2); line-height: 1.2; letter-spacing: -0.02em;
  max-width: 24ch;
}
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 460px)); gap: clamp(1.5rem,4vw,3rem); }
.person {
  border: 1px solid var(--line); padding: clamp(1.5rem,3vw,2.5rem);
  display: flex; flex-direction: column; gap: 0.4rem;
  transition: background 0.4s var(--ease-out), color 0.4s;
}
.person:hover { background: var(--ink); color: var(--paper); }
.person__initials {
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-4);
  line-height: 1; color: var(--red); letter-spacing: -0.04em; margin-bottom: 1rem;
}
.person h3 { font-size: var(--step-1); }
.person__role { font-family: var(--font-mono); font-size: var(--step--1); color: var(--ink-soft); }
.person:hover .person__role { color: var(--on-night-soft); }
.person a { font-size: var(--step-0); border-bottom: 1px solid transparent; transition: border-color 0.3s; width: max-content; }
.person a:hover { border-bottom-color: currentColor; }

/* ---------------- Forms (quote / contact) ---------------- */
.form-wrap { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.form-aside h2 { margin-bottom: 1.5rem; }
.form-aside .lede { margin-bottom: 2.5rem; }
.form-aside__contact { display: flex; flex-direction: column; gap: 1.2rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.form-aside__contact a { display: flex; flex-direction: column; }
.form-aside__contact .lbl { font-family: var(--font-mono); font-size: var(--step--1); color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.1em; }
.form-aside__contact .val { font-size: var(--step-1); font-weight: 500; transition: color 0.3s; }
.form-aside__contact a:hover .val { color: var(--red); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: var(--step-0); color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--line-strong);
  padding: 0.85em 1em; border-radius: 0; width: 100%;
  transition: border-color 0.3s, background 0.3s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-soft); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); background: var(--paper);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23333' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1em center; padding-right: 2.5em; }
.form__submit { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; margin-top: 0.5rem; }
.form__note { font-size: var(--step--1); color: var(--ink-soft); max-width: 40ch; }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; gap: 2.5rem; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* ---------------- Contact info grid ---------------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.contact-cell {
  padding: clamp(1.8rem,4vw,3rem) clamp(1.2rem,2vw,2rem);
  border-bottom: 1px solid var(--line); border-right: 1px solid var(--line);
}
.contact-cell:nth-child(3n) { border-right: none; }
.contact-cell h4 { font-family: var(--font-mono); font-weight: 500; font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-soft); margin-bottom: 1rem; }
.contact-cell p, .contact-cell a { font-size: var(--step-1); line-height: 1.4; }
.contact-cell a { transition: color 0.3s; }
.contact-cell a:hover { color: var(--red); }
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } .contact-cell:nth-child(3n) { border-right: 1px solid var(--line); } }

/* ---------------- Page transition curtain ---------------- */
/* Entrance lift is pure CSS: works even if the CDN JS never loads,
   and reduced-motion forces it instant. JS only drives the exit cover. */
.curtain {
  position: fixed; inset: 0; z-index: calc(var(--z-overlay) + 5);
  background: var(--red); pointer-events: none;
  transform-origin: top; transform: scaleY(0);
  animation: curtain-lift 0.8s var(--ease-io);
}
@keyframes curtain-lift { 0% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
.curtain.is-in {
  animation: none; transform-origin: bottom; transform: scaleY(1);
  transition: transform 0.6s var(--ease-io);
}

/* ---------------- FAQ / disclosure (quote page) ---------------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: clamp(1.2rem,2.5vw,1.8rem) 0; text-align: left;
  font-family: var(--font-display); font-weight: 500; font-size: var(--step-1);
}
.faq__q .sign { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq__q .sign::before, .faq__q .sign::after { content: ""; position: absolute; background: var(--red); transition: transform 0.4s var(--ease-out); }
.faq__q .sign::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq__q .sign::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq__item[open] .sign::after { transform: scaleY(0); }
.faq__a { overflow: hidden; }
.faq__a p { color: var(--ink-2); max-width: 62ch; padding-bottom: clamp(1.2rem,2.5vw,1.8rem); }
