/* GOAMAL / dispatch livery
   Concept: the company as a working logistics operation. Truck-livery headlines, container stencils,
   a split-flap dispatch board, waybill forms and rubber-stamped credentials.
   Single committed look: ink-navy and hi-vis on cool paper. */
:root {
  --ink: #0b0e2c;        /* deep navy, from the logo blue */
  --ink-2: #141a45;
  --blue: #2b3990;       /* logo blue */
  --red: #e31e24;        /* profile red */
  --hivis: #ffc61a;      /* safety yellow: tankers, vests, signage */
  --paper: #eef0f5;
  --white: #ffffff;
  --steel: #8b91ab;
  --line: #cfd3e1;
  --text: #11142e;
  --text-2: #4b5170;

  --f-display: "Big Shoulders Display", "Oswald", "Arial Narrow", sans-serif;
  --f-stencil: "Big Shoulders Stencil Display", "Big Shoulders Display", "Arial Narrow", sans-serif;
  --f-body: "Instrument Sans", "Segoe UI", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Courier New", monospace;

  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--hivis); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; line-height: 0.92; letter-spacing: 0.005em; text-wrap: balance; }
h1 { font-size: clamp(3.2rem, 10vw, 8.6rem); font-weight: 900; }
h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.mono { font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
.tag { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); display: inline-flex; gap: 10px; align-items: center; }
.tag::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; max-width: 58ch; color: var(--text-2); }
.on-ink { color: var(--white); }
.on-ink .lede { color: #c3c7dc; }
.on-ink .tag { color: var(--hivis); }

/* Hazard band: a recurring livery stripe */
.hazard { height: 14px; background: repeating-linear-gradient(-45deg, var(--hivis) 0 18px, var(--ink) 18px 36px); }
.hazard.thin { height: 8px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--ink); color: var(--white); border-bottom: 1px solid rgba(255,255,255,0.08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 46px; height: 46px; background: var(--white); border-radius: 50%; display: grid; place-items: center; flex: none; }
.brand-mark img { width: 34px; }
.brand-word { display: grid; line-height: 1; }
.brand-word b { font: 900 1.7rem/0.9 var(--f-display); letter-spacing: 0.06em; }
.brand-word small { font: 500 0.66rem/1.3 var(--f-mono); letter-spacing: 0.16em; color: var(--hivis); text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { text-decoration: none; font: 700 1.05rem/1 var(--f-display); letter-spacing: 0.08em; text-transform: uppercase; padding: 12px 14px; color: #d6d9ea; }
.nav a:hover { color: var(--white); }
.nav a[aria-current="page"] { color: var(--hivis); }
.nav .nav-cta { margin-left: 10px; background: var(--red); color: var(--white); padding: 14px 18px; }
.nav .nav-cta:hover { background: #c4141a; }
.nav-toggle { display: none; background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.3); font: 700 1rem var(--f-display); letter-spacing: 0.12em; text-transform: uppercase; padding: 10px 14px; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; cursor: pointer; border: 0;
  font: 800 1.15rem/1 var(--f-display); letter-spacing: 0.08em; text-transform: uppercase; padding: 18px 26px; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn .arrow { font-family: var(--f-mono); font-weight: 500; }
.btn-hivis { background: var(--hivis); color: var(--ink); }
.btn-red { background: var(--red); color: var(--white); }
.btn-line { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Home hero ---------- */
.hero { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.hero::before { /* faint route grid */
  content: ""; position: absolute; inset: 0; opacity: 0.07; pointer-events: none;
  background-image: linear-gradient(var(--white) 1px, transparent 1px), linear-gradient(90deg, var(--white) 1px, transparent 1px);
  background-size: 64px 64px;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 80px); align-items: end; }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: var(--hivis); }
.hero-copy { display: grid; gap: 26px; min-width: 0; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--steel); }
.hero-meta b { color: var(--white); font-weight: 500; }

/* Split-flap dispatch board */
.board { background: #05071a; border: 1px solid #262c5a; padding: 18px; box-shadow: 0 30px 60px rgba(0,0,0,0.45); min-width: 0; }
.board-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--hivis); }
.board-head .live { display: inline-flex; align-items: center; gap: 8px; color: #8fe39b; }
.board-head .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3ddc5a; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.board table { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-family: var(--f-mono); font-size: clamp(0.7rem, 1.1vw, 0.86rem); text-transform: uppercase; }
.board th { text-align: left; font-weight: 500; color: var(--steel); letter-spacing: 0.1em; padding: 0 8px 4px; font-size: 0.72rem; }
.board td { background: #12163a; color: #f1f2fa; padding: 9px 8px; white-space: nowrap; border-top: 1px solid #1e2350; position: relative; }
.board td:first-child { color: var(--hivis); }
.board td.status { color: #8fe39b; }
.board .flip { display: inline-block; }
.board .flip.go { animation: flip .5s ease; }
@keyframes flip { 0% { transform: rotateX(0); } 50% { transform: rotateX(90deg); opacity: .3; } 100% { transform: rotateX(0); } }
.board-scroll { overflow-x: auto; }
.board-foot { margin-top: 10px; color: var(--steel); }

/* Photo strip under hero: containers on a yard */
.yard { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--ink); }
.yard figure { margin: 0; position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--blue); }
.yard img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15); mix-blend-mode: multiply; transition: filter .4s, mix-blend-mode .4s; }
.yard figure:hover img { filter: none; mix-blend-mode: normal; }
.yard figcaption { position: absolute; left: 12px; bottom: 10px; color: var(--white); font: 800 1.3rem/1 var(--f-display); letter-spacing: 0.06em; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 128px); }
.section.ink { background: var(--ink); color: var(--white); }
.section.white { background: var(--white); }
.section.blue { background: var(--blue); color: var(--white); }
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.head .stack { display: grid; gap: 18px; }
.ink h2, .blue h2 { color: var(--white); }

/* Sector lanes: big index rows */
.lanes { border-top: 2px solid var(--text); }
.lane { display: grid; grid-template-columns: 90px minmax(0, 1.3fr) minmax(0, 1fr) 220px; gap: 24px; align-items: center; padding-block: 28px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); position: relative; transition: background .2s, padding .2s; }
.lane:hover { background: var(--white); padding-inline: 18px; }
.lane .code { font: 800 2.6rem/1 var(--f-stencil); color: var(--red); }
.lane h3 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 0.9; }
.lane p { color: var(--text-2); }
.lane .thumb { aspect-ratio: 3/2; overflow: hidden; background: var(--blue); }
.lane .thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; transition: filter .3s, mix-blend-mode .3s; }
.lane:hover .thumb img { filter: none; mix-blend-mode: normal; }

/* Commitments: four plates */
.plates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; background: rgba(255,255,255,0.12); }
.plate { background: var(--ink); padding: 32px 26px 36px; display: grid; gap: 14px; align-content: start; }
.plate .ix { font: 800 1rem var(--f-mono); color: var(--hivis); }
.plate h3 { color: var(--white); }
.plate p { color: #b9bdd4; }

/* Network: hub and spoke */
.network { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.net-svg { width: 100%; height: auto; max-width: 620px; justify-self: center; }
.net-svg .spoke { stroke: var(--blue); stroke-width: 2; stroke-dasharray: 6 7; fill: none; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -26; } }
.net-svg .node { fill: var(--white); stroke: var(--ink); stroke-width: 3; }
.net-svg .hub { fill: var(--red); }
.net-svg .ring { fill: none; stroke: var(--red); stroke-width: 1.5; opacity: .35; }
.net-svg text { font-family: "Big Shoulders Display", "Arial Narrow", sans-serif; font-weight: 800; font-size: 26px; fill: var(--text); text-transform: uppercase; letter-spacing: 1px; }
.net-svg .hub-label { fill: var(--white); font-size: 22px; }
.net-svg .sub { font-family: "IBM Plex Mono", monospace; font-size: 12px; font-weight: 500; fill: var(--text-2); letter-spacing: 1.5px; }
.office-list { display: grid; gap: 0; border-top: 2px solid var(--text); }
.office-list div { display: flex; justify-content: space-between; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.office-list b { font: 800 1.6rem/1 var(--f-display); text-transform: uppercase; }
.office-list span { color: var(--text-2); }
.office-list .hq b { color: var(--red); }

/* Clients */
.clients { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--text); border-left: 1px solid var(--line); }
.client { display: grid; place-items: center; min-height: 160px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.client img { max-height: 72px; width: auto; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.client:hover img { filter: none; opacity: 1; }

/* Credentials teaser */
.stamps { display: flex; flex-wrap: wrap; gap: 14px; }
.stamp { font: 800 1rem/1.1 var(--f-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); border: 3px double var(--red); padding: 10px 14px; transform: rotate(-2deg); background: rgba(227,30,36,0.04); }
.stamp:nth-child(even) { transform: rotate(1.5deg); color: var(--blue); border-color: var(--blue); background: rgba(43,57,144,0.04); }
.stamp small { display: block; font: 500 0.7rem var(--f-mono); letter-spacing: 0.1em; margin-top: 4px; }

/* CTA */
.cta { background: var(--hivis); color: var(--ink); }
.cta .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px; align-items: center; padding-block: clamp(56px, 7vw, 96px); }
.cta h2 { font-size: clamp(2.6rem, 7vw, 6rem); }

/* ---------- Inner page hero ---------- */
.page-hero { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.page-hero .wrap { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 64px); display: grid; gap: 22px; position: relative; }
.page-hero h1 { color: var(--white); font-size: clamp(3rem, 9vw, 7.4rem); }
.page-hero .lede { color: #c3c7dc; }
.page-hero .ghost { position: absolute; right: -0.04em; bottom: -0.2em; font: 900 clamp(8rem, 26vw, 22rem)/0.8 var(--f-stencil); color: rgba(255,255,255,0.04); text-transform: uppercase; pointer-events: none; white-space: nowrap; }
.crumbs { color: var(--steel); }
.crumbs a { color: var(--hivis); text-decoration: none; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.jump a { font: 700 1rem/1 var(--f-display); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; color: var(--white); padding: 12px 16px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3); }
.jump a:hover { background: var(--hivis); color: var(--ink); box-shadow: none; }

/* ---------- Services ---------- */
.sector { scroll-margin-top: 90px; }
.sector-top { display: grid; grid-template-columns: 140px minmax(0, 1fr) minmax(0, 0.9fr); gap: 24px 40px; align-items: end; margin-bottom: 36px; }
.sector-top .code { font: 900 7rem/0.8 var(--f-stencil); color: var(--red); }
.sector-top h2 { font-size: clamp(2.6rem, 6vw, 5rem); }
.sector-photos { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 6px; margin-bottom: 40px; }
.sector-photos figure { margin: 0; aspect-ratio: 4/3; overflow: hidden; background: var(--blue); }
.sector-photos figure:first-child { aspect-ratio: auto; }
.sector-photos img { width: 100%; height: 100%; object-fit: cover; }
.manifest-wrap { overflow-x: auto; }
.manifest { width: 100%; border-collapse: collapse; min-width: 560px; }
.manifest th { text-align: left; font: 500 0.74rem var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); padding: 0 16px 12px 0; border-bottom: 2px solid var(--text); }
.manifest td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.manifest td:first-child { font: 800 1.45rem/1.05 var(--f-display); text-transform: uppercase; width: 30%; }
.manifest td:last-child { font-family: var(--f-mono); font-size: 0.85rem; color: var(--blue); width: 26%; }
.sector-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 28px; }
.sector + .sector { margin-top: clamp(80px, 10vw, 140px); }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: var(--line); border: 2px solid var(--text); }
.fact { background: var(--white); padding: 22px; display: grid; gap: 6px; }
.fact b { font: 900 2.8rem/0.9 var(--f-display); color: var(--blue); }
.fact span { color: var(--text-2); font-size: 0.95rem; }
.prose { display: grid; gap: 18px; max-width: 64ch; }
.prose p { font-size: 1.08rem; }

/* MD letter on letterhead */
.letter-wrap { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.portrait { position: sticky; top: 110px; display: grid; gap: 14px; }
.portrait-frame { position: relative; background: var(--hivis); padding: 14px; }
.portrait-frame img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: center 30%; filter: grayscale(1) contrast(1.1); }
.portrait-frame::after { content: "MD"; position: absolute; right: -10px; top: -10px; background: var(--red); color: var(--white); font: 900 1.4rem/1 var(--f-display); padding: 10px 12px; }
.portrait b { font: 800 1.8rem/1 var(--f-display); text-transform: uppercase; }
.portrait span { color: var(--text-2); }
.letter { background: var(--white); padding: clamp(28px, 5vw, 64px); box-shadow: 0 1px 0 var(--line), 0 30px 60px rgba(11,14,44,0.08); position: relative; }
.letter::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: linear-gradient(90deg, var(--blue) 0 60%, var(--red) 60% 85%, var(--hivis) 85%); }
.letterhead { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 22px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.letterhead .lh-brand { display: flex; gap: 12px; align-items: center; }
.letterhead .lh-brand img { width: 44px; }
.letterhead .lh-brand b { font: 900 1.5rem/1 var(--f-display); letter-spacing: 0.06em; color: var(--blue); display: block; }
.letterhead .lh-addr { text-align: right; color: var(--text-2); line-height: 1.6; }
.letter .salute { font: 800 2.4rem/1 var(--f-display); text-transform: uppercase; margin-bottom: 20px; }
.letter .body { display: grid; gap: 16px; font-size: 1.07rem; max-width: 66ch; }
.signoff { margin-top: 34px; display: grid; gap: 2px; }
.signoff .sig { font: italic 400 2.2rem/1 "Instrument Serif", Georgia, serif; color: var(--blue); }
.signoff b { font: 800 1.3rem var(--f-display); text-transform: uppercase; letter-spacing: 0.04em; }

.vm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: rgba(255,255,255,0.15); }
.vm > div { background: var(--blue); padding: clamp(28px, 4vw, 48px); display: grid; gap: 20px; align-content: start; }
.vm h3 { color: var(--white); font-size: clamp(2.2rem, 4vw, 3.2rem); }
.vm ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; counter-reset: v; }
.vm li { counter-increment: v; display: grid; grid-template-columns: 34px 1fr; gap: 10px; color: #dfe2f3; }
.vm li::before { content: counter(v, decimal-leading-zero); font: 500 0.85rem/1.8 var(--f-mono); color: var(--hivis); }

/* ---------- Credentials ---------- */
.dossier { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.doc { background: none; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; cursor: zoom-in; display: grid; gap: 16px; }
.doc-sheet { position: relative; background: var(--white); height: 340px; display: grid; place-items: center; padding: 22px; box-shadow: 0 2px 0 var(--line), 0 22px 40px rgba(11,14,44,0.10); transition: transform .25s; }
.doc:hover .doc-sheet { transform: translateY(-6px) rotate(-0.6deg); }
.doc-sheet img { max-height: 296px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.doc-sheet .stamp { position: absolute; right: 14px; bottom: 16px; font-size: 0.85rem; padding: 8px 10px; background: rgba(255,255,255,0.92); }
.doc-info { display: grid; gap: 4px; }
.doc-info b { font: 800 1.5rem/1 var(--f-display); text-transform: uppercase; }
.doc-info span { color: var(--text-2); font-size: 0.95rem; }
.doc-info .ref { font-family: var(--f-mono); font-size: 0.8rem; color: var(--blue); letter-spacing: 0.04em; }
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(5,7,26,0.92); display: grid; place-items: center; padding: 24px; }
.lightbox img { max-height: 86vh; width: auto; background: var(--white); }
.lightbox button { position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; background: var(--hivis); color: var(--ink); border: 0; font: 800 1rem var(--f-display); letter-spacing: 0.1em; text-transform: uppercase; padding: 12px 16px; cursor: pointer; }

/* ---------- Waybill form ---------- */
.waybill-wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.waybill { background: var(--white); border: 2px solid var(--text); }
.wb-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--text); color: var(--white); padding: 16px 20px; }
.wb-head b { font: 900 1.6rem/1 var(--f-display); letter-spacing: 0.08em; text-transform: uppercase; }
.wb-head span { color: var(--hivis); }
.wb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wb-field { display: grid; gap: 6px; padding: 14px 18px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.wb-field:nth-child(2n) { border-right: 0; }
.wb-field.full { grid-column: 1 / -1; border-right: 0; }
.wb-field label { font: 500 0.72rem var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
.wb-field input, .wb-field select, .wb-field textarea { border: 0; border-bottom: 2px solid transparent; background: transparent; font: 500 1.08rem var(--f-body); color: var(--text); padding: 4px 0; width: 100%; }
.wb-field input:focus, .wb-field select:focus, .wb-field textarea:focus { outline: none; border-bottom-color: var(--hivis); }
.wb-field textarea { min-height: 150px; resize: vertical; font-family: var(--f-mono); font-size: 0.95rem; line-height: 1.7; background-image: repeating-linear-gradient(transparent 0 calc(1.7em - 1px), var(--line) calc(1.7em - 1px) 1.7em); }
.wb-actions { padding: 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.wb-actions p { color: var(--text-2); font-size: 0.9rem; max-width: 40ch; }
.result { margin-top: 24px; background: var(--ink); color: var(--white); padding: 24px; display: grid; gap: 16px; }
.result h3 { color: var(--hivis); }
.result pre { margin: 0; white-space: pre-wrap; font: 400 0.88rem/1.6 var(--f-mono); background: #05071a; padding: 16px; color: #e3e5f2; }
.direct { display: grid; gap: 0; border-top: 2px solid var(--text); }
.direct div { display: grid; gap: 4px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.direct span { font: 500 0.74rem var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.direct a, .direct b { font: 800 1.5rem/1.1 var(--f-display); text-transform: uppercase; text-decoration: none; color: var(--text); overflow-wrap: anywhere; }
.direct a.lower { text-transform: none; font-size: 1.25rem; }
.direct address { font-style: normal; line-height: 1.6; color: var(--text-2); }

/* Contact */
.hq-card { background: var(--blue); color: var(--white); padding: clamp(28px, 4vw, 48px); display: grid; gap: 18px; position: relative; overflow: hidden; }
.hq-card h3 { color: var(--white); font-size: clamp(2.4rem, 5vw, 3.6rem); }
.hq-card address { font-style: normal; font-size: 1.15rem; line-height: 1.6; }
.hq-card .pin { position: absolute; right: -30px; top: -40px; font: 900 16rem/1 var(--f-stencil); color: rgba(255,255,255,0.06); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b9bdd4; font-size: 0.95rem; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 64px 48px; }
.footer-top h4 { margin: 0 0 14px; font: 500 0.74rem var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--hivis); }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-top a { color: #dfe2f3; text-decoration: none; }
.footer-top a:hover { color: var(--hivis); }
.footer-top address { font-style: normal; line-height: 1.7; }
.footer-word { font: 900 clamp(4rem, 9vw, 7.5rem)/0.8 var(--f-display); color: var(--white); letter-spacing: 0.02em; }
.footer-brand { display: grid; gap: 16px; align-content: start; }
.footer-base { border-top: 1px solid rgba(255,255,255,0.1); }
.footer-base .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 18px; }

/* WhatsApp */
.wa { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 50; display: inline-flex; align-items: center; gap: 10px; background: #1fa855; color: var(--white); text-decoration: none; font: 800 1rem/1 var(--f-display); letter-spacing: 0.08em; text-transform: uppercase; padding: 14px 18px; box-shadow: 0 10px 26px rgba(0,0,0,0.3); }
.wa svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .lane { grid-template-columns: 70px minmax(0, 1fr) 180px; }
  .lane p { display: none; }
  .plates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dossier { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--ink); padding: 8px var(--gut) 20px; border-top: 1px solid rgba(255,255,255,0.08); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; font-size: 1.3rem; }
  .nav .nav-cta { margin: 10px 0 0; text-align: center; padding: 16px; }
  .hero .wrap, .head, .network, .split, .letter-wrap, .waybill-wrap, .cta .wrap, .sector-top { grid-template-columns: 1fr; }
  .yard { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .yard figure:nth-child(n+4) { display: none; }
  .portrait { position: static; max-width: 280px; }
  .sector-top .code { font-size: 5rem; }
  .vm { grid-template-columns: 1fr; }
  .letterhead .lh-addr { text-align: left; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .lane { grid-template-columns: 52px minmax(0, 1fr); gap: 14px; }
  .lane .thumb { display: none; }
  .lane .code { font-size: 2rem; }
  .plates, .dossier, .footer-top, .wb-grid, .facts { grid-template-columns: 1fr; }
  .wb-field { border-right: 0; }
  .yard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yard figure:nth-child(n+3) { display: none; }
  .sector-photos { grid-template-columns: 1fr 1fr; }
  .sector-photos figure:first-child { grid-column: 1 / -1; aspect-ratio: 16/10; }
  .clients { grid-template-columns: 1fr; }
  .client { min-height: 110px; }
  .brand-word small { display: none; }
  .wa span { display: none; }
  .board td:nth-child(2), .board th:nth-child(2) { display: none; }
}
.sector-photos img[src*="air-ticket"] { object-fit: contain; background: var(--white); }
.hero .lede { color: #c3c7dc; }
.sector-photos { grid-template-columns: 2fr 1fr; grid-auto-rows: clamp(140px, 17vw, 220px); }
.sector-photos figure, .sector-photos figure:first-child { aspect-ratio: auto; }
.sector-photos figure:first-child { grid-row: span 2; }
@media (max-width: 600px) {
  .sector-photos { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; }
  .sector-photos figure:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: auto; }
}

/* ---------- River transport ---------- */
.stack { display: grid; gap: 18px; align-content: start; min-width: 0; }
h1 em, h2 em { font-style: normal; color: var(--hivis); }
.river-svg { width: 100%; height: auto; display: block; overflow: visible; }
.river-svg .bank { fill: none; stroke: rgba(255,255,255,0.06); stroke-width: 54; stroke-linecap: round; }
.river-svg .water { fill: none; stroke: #2f6fd6; stroke-width: 22; stroke-linecap: round; }
.river-svg .flow { fill: none; stroke: #9cc4ff; stroke-width: 2.5; stroke-dasharray: 2 16; stroke-linecap: round; animation: dash 1.2s linear infinite; }
.river-svg .river-name { font: 500 13px "IBM Plex Mono", monospace; letter-spacing: 4px; fill: #7da3e0; }
.river-svg .port circle { fill: var(--hivis); stroke: var(--ink); stroke-width: 4; }
.river-svg .port text { font: 800 30px "Big Shoulders Display", "Arial Narrow", sans-serif; fill: var(--white); text-transform: uppercase; letter-spacing: 1px; }
.river-svg .sub { font: 500 11px "IBM Plex Mono", monospace; letter-spacing: 1.5px; fill: #9aa0c0; text-transform: uppercase; }
.river-svg .barge rect { fill: var(--red); }
.river-svg .barge .cargo { fill: var(--hivis); }
.river-svg.compact .port text { font-size: 34px; }

.river-band { background: var(--ink-2); color: var(--white); }
.river-band-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(56px, 8vw, 110px); }
.river-band h2 { color: var(--white); }

.river-hero { background: var(--ink-2); color: var(--white); overflow: hidden; }
.river-hero .wrap { display: grid; gap: 28px; padding-block: clamp(44px, 6vw, 80px) clamp(36px, 5vw, 64px); }
.river-hero-copy { display: grid; gap: 22px; max-width: 900px; }
.river-hero h1 { color: var(--white); font-size: clamp(3.2rem, 10vw, 8rem); }
.river-hero .lede { color: #c3c7dc; }

.plates-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.chain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--text); counter-reset: none; }
.chain li { position: relative; padding: 28px 28px 36px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.chain li:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.chain li:not(:nth-child(3n+1)) { padding-left: 28px; }
.chain .n { font: 900 3.4rem/0.8 var(--f-stencil); color: var(--red); }
.chain p { color: var(--text-2); }

.standards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: rgba(255,255,255,0.15); }
.standards div { background: var(--blue); padding: 26px; display: grid; gap: 8px; align-content: start; }
.standards b { font: 800 1.6rem/1 var(--f-display); text-transform: uppercase; color: var(--hivis); }
.standards span { color: #dfe2f3; }

.lane-river .river-thumb { background: var(--ink-2); display: block; }
.lane-river .river-thumb svg { width: 100%; height: 100%; display: block; }
.lane-river .code { color: var(--blue); }
.board .river-row td { background: #13306b; }
.board .river-row td.status { color: var(--hivis); }

/* ---------- Clients page ---------- */
.client-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.5vw, 28px); }
.client-card { background: var(--white); border-top: 4px solid var(--blue); display: grid; grid-template-rows: auto 1fr; }
.client-card:first-child { border-top-color: var(--red); }
.client-card.past { border-top-color: var(--steel); }
.client-logo { display: grid; place-items: center; min-height: 170px; padding: 28px; border-bottom: 1px solid var(--line); }
.client-logo img { max-height: 80px; width: auto; }
.client-body { padding: 22px 24px 28px; display: grid; gap: 8px; align-content: start; }
.client-body .mono { color: var(--red); }
.client-body p { color: var(--text-2); }
a.client { text-decoration: none; }

@media (max-width: 900px) {
  .river-band-grid { grid-template-columns: 1fr; }
  .chain { grid-template-columns: 1fr 1fr; }
  .chain li, .chain li:not(:nth-child(3n+1)) { padding: 24px 20px 28px 0; border-right: 0; }
  .chain li:nth-child(odd) { border-right: 1px solid var(--line); }
  .chain li:nth-child(even) { padding-left: 20px; }
  .client-grid, .plates-3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .chain { grid-template-columns: 1fr; }
  .chain li, .chain li:nth-child(even) { padding: 22px 0 26px; border-right: 0 !important; }
  .standards { grid-template-columns: 1fr; }
  .river-svg .port text { font-size: 40px; }
  .river-svg .sub, .river-svg .river-name { font-size: 16px; }
}
@media (max-width: 1180px) { .nav a { padding: 12px 10px; font-size: 1rem; } }
.river-svg .port text.sub { font: 500 12px "IBM Plex Mono", monospace; letter-spacing: 1.5px; fill: #9aa0c0; }
@media (max-width: 600px) { .river-svg .port text.sub { font-size: 17px; } }
