/* Charly Brown Maritime — 3D edition
   A fixed WebGL scene sits behind the page; scrolling moves the camera through it.
   Content rides over the scene on port-call "sheets": square corners and ink rules —
   same system as the original site. */
:root {
  --ink: #0f1b2d;
  --steel: #556274;
  --paper: #eef0ef;
  --white: #ffffff;
  --flag-blue: #1b4fa6;
  --signal-red: #cc2b2b;
  --rule: #c9cfd6;

  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Consolas", monospace;

  --gutter: 24px;
  --head: 68px;
  --shadow: 10px 10px 0 rgba(15, 27, 45, .28);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: var(--head); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--flag-blue); text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--signal-red); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--white); padding: 10px 14px; z-index: 500; }
.skip:focus { left: 0; }

.tape, .sheet__head, .form__head, .facts dt, .addr dt, .foot h4, .stop__code, .hud, .rail a {
  font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase;
}

/* ---------- Scene layers ---------- */
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.veil { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 120% 90% at 50% 45%, transparent 55%, rgba(15, 27, 45, .38)); }
.labels { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.tag { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; will-change: transform, opacity; }
.tag--port { display: grid; justify-items: center; }
.tag--port b { display: block; background: var(--ink); color: var(--white); font: 800 18px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; padding: 6px 10px 5px; }
.tag--port span { display: block; background: var(--white); color: var(--ink); font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 5px 8px; border: 1px solid var(--ink); border-top: 0; }
.tag--hq b { background: var(--signal-red); }
.tag--sea { font: 500 12px/1 var(--mono); letter-spacing: .45em; text-transform: uppercase; color: rgba(255, 255, 255, .9); text-shadow: 0 1px 8px rgba(15, 27, 45, .7); }
.tag--land { font: 500 11px/1 var(--mono); letter-spacing: .35em; text-transform: uppercase; color: rgba(15, 27, 45, .62); }
.tag--city { font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.tag--poi { display: grid; justify-items: center; }
.tag--poi b { background: var(--white); color: var(--ink); border: 1px solid var(--ink); font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; white-space: nowrap; }
.tag--poi::after { content: ""; width: 1px; height: 26px; background: var(--white); box-shadow: 0 0 0 1px rgba(15, 27, 45, .3); }
.tag--city::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--ink); margin-right: 6px; vertical-align: 1px; }

/* ---------- Loader → opening sequence ---------- */
.loader { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: var(--white); transition: transform 1s cubic-bezier(.75, 0, .2, 1), visibility 1s; }
.loader.is-done { transform: translateY(-101%); visibility: hidden; }
.loader__inner { display: grid; justify-items: center; gap: 16px; padding: 24px; text-align: center; transition: opacity .4s; }
.loader.is-done .loader__inner { opacity: 0; }
.loader .loader__name { font: 900 44px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; color: var(--ink); }

/* Hero copy arrives while the camera dives in to Port Said */
.hero > *, .hero__title span { transition: opacity .9s ease, transform 1.1s cubic-bezier(.2, .75, .2, 1); }
html:not(.is-intro):not(.no-webgl) .hero > .tape,
html:not(.is-intro):not(.no-webgl) .hero > .hero__sheet,
html:not(.is-intro):not(.no-webgl) .hero__title span { opacity: 0; transform: translateY(44px); }
html:not(.is-intro):not(.no-webgl) .cue { opacity: 0; }
html.is-intro .hero > .tape { transition-delay: 2.4s; }
html.is-intro .hero__title span:nth-child(1) { transition-delay: 2.6s; }
html.is-intro .hero__title span:nth-child(2) { transition-delay: 2.75s; }
html.is-intro .hero__title span:nth-child(3) { transition-delay: 2.9s; }
html.is-intro .hero > .hero__sheet { transition-delay: 3.3s; }
.cue { transition: opacity 1s 4.5s; }

/* Smooth scrolling (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
.loader p { font: 400 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }
.loader__bar { width: 200px; height: 3px; background: var(--rule); overflow: hidden; }
.loader__bar i { display: block; width: 40%; height: 100%; background: var(--signal-red); animation: load 1.1s ease-in-out infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border: 2px solid transparent; font: 600 15px/1 var(--body); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn--red { background: var(--signal-red); color: var(--white); }
.btn--red:hover { background: var(--ink); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--flag-blue); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--white); }
.btn--line-light { border-color: rgba(255, 255, 255, .6); color: var(--white); background: transparent; }
.btn--line-light:hover { background: var(--white); color: var(--ink); }


/* ---------- Masthead ---------- */
.masthead { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: var(--head); background: var(--white); border-bottom: 2px solid var(--ink); }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 72px; height: auto; }
.brand__name { display: flex; flex-direction: column; font: 800 24px/0.95 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.brand__name span { font: 500 10.5px/1.4 var(--mono); letter-spacing: .06em; color: var(--steel); margin-top: 3px; }
.nav__menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__menu a { display: block; padding: 10px 13px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav__menu a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.nav__menu .nav__rfq { background: var(--signal-red); color: var(--white); margin-left: 8px; }
.nav__menu .nav__rfq:hover { background: var(--ink); text-decoration: none; }
.nav__toggle { display: none; min-height: 44px; padding: 0 16px; border: 2px solid var(--ink); background: var(--white); font: 600 14px var(--body); color: var(--ink); cursor: pointer; }
.progress { position: fixed; top: var(--head); left: 0; right: 0; z-index: 59; height: 3px; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--signal-red); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Chapter rail & position readout ---------- */
.rail { position: fixed; right: 16px; top: 50%; transform: translateY(-50%); z-index: 40; display: grid; gap: 4px; }
.rail a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 4px 0; color: var(--white); text-decoration: none; font-size: 10.5px; }
.rail span { background: rgba(15, 27, 45, .82); padding: 5px 8px; opacity: 0; transform: translateX(6px); transition: opacity .2s, transform .2s; }
.rail i { width: 14px; height: 3px; background: rgba(255, 255, 255, .75); box-shadow: 0 0 0 1px rgba(15, 27, 45, .35); transition: width .25s, background-color .25s; }
.rail a:hover span, .rail a:focus-visible span, .rail a.is-active span { opacity: 1; transform: none; }
.rail a.is-active i { width: 32px; background: var(--signal-red); }
.hud { position: fixed; left: 16px; bottom: 16px; z-index: 40; display: flex; background: rgba(15, 27, 45, .86); border: 1px solid rgba(255, 255, 255, .35); color: var(--white); font-size: 11px; line-height: 1; pointer-events: none; }
.hud span { padding: 9px 12px; }
.hud .hud__compass { position: relative; width: 34px; padding: 0; border-right: 1px solid rgba(255, 255, 255, .25); }
.hud__compass::before { content: "N"; position: absolute; top: 2px; left: 50%; transform: translateX(-50%); font-size: 8px; color: #9aa5b4; }
.hud__compass i { position: absolute; left: 50%; top: 50%; width: 4px; height: 18px; margin: -7px 0 0 -2px; background: linear-gradient(var(--signal-red) 50%, #fff 50%); transform-origin: 50% 50%; transition: transform .2s linear; }
.hud span + span { border-left: 1px solid rgba(255, 255, 255, .25); color: #c7ced8; }
.hud .hud__compass + span { border-left: 0; color: var(--white); }
.hud span + span { border-left: 1px solid rgba(255, 255, 255, .25); color: #c7ced8; }

/* ---------- Steps: one camera stop each ---------- */
main { position: relative; z-index: 3; }
.step { position: relative; min-height: 135vh; display: flex; align-items: center; padding: calc(var(--head) + 32px) 0 40px; }
.step--short { min-height: 115vh; }
.step__wrap { display: flex; }
.step--right .step__wrap { justify-content: flex-end; }
.step--center .step__wrap { justify-content: center; }
.reveal { opacity: 0; transform: translateY(56px); transition: opacity .8s ease, transform 1s cubic-bezier(.2, .75, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Sheets ---------- */
.sheet { width: min(520px, 100%); background: var(--white); border: 2px solid var(--ink); box-shadow: var(--shadow); }
.sheet--mid { width: min(740px, 100%); }
.sheet--wide { width: min(1120px, 100%); }
.sheet--dark { background: var(--ink); color: #c7ced8; border-color: rgba(255, 255, 255, .4); box-shadow: 10px 10px 0 rgba(0, 0, 0, .4); }
.sheet__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--ink); color: var(--white); padding: 11px 18px; }
.sheet--dark .sheet__head { background: #091220; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.sheet__head--red { background: var(--signal-red); }
.sheet__body { padding: 24px 26px 28px; display: grid; gap: 16px; min-width: 0; }
.sheet h2 { font: 800 clamp(2.3rem, 4.2vw, 3.6rem)/0.95 var(--display); text-transform: uppercase; }
.sheet .h3 { font: 800 clamp(1.8rem, 3vw, 2.4rem)/1 var(--display); text-transform: uppercase; }
.lede { color: var(--steel); }
.sheet--dark .lede { color: #9aa5b4; }
.facts__more { font-size: 14px; line-height: 1.5; color: var(--steel); padding-top: 14px; border-top: 1px solid var(--rule); }

/* ---------- Hero ---------- */
.step--hero { min-height: 100vh; min-height: 100svh; align-items: flex-end; padding-bottom: 12vh; }
.hero { display: grid; gap: 20px; max-width: 760px; }
.tape { justify-self: start; background: var(--signal-red); color: var(--white); padding: 7px 12px; }
.hero__title { display: grid; justify-items: start; gap: 6px; font: 900 clamp(3.2rem, 8vw, 7.2rem)/0.88 var(--display); text-transform: uppercase; letter-spacing: -.005em; }
.hero__title span { background: var(--white); color: var(--ink); padding: .06em .14em 0; box-shadow: var(--shadow); }
.hero__sheet { width: min(580px, 100%); }
.hero__sheet p { font-size: 18px; color: var(--steel); }
.hero__sheet .hero__proof { font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding-top: 14px; border-top: 1px solid var(--rule); }
.hero__proof a { color: var(--ink); text-decoration-thickness: 2px; text-decoration-color: var(--signal-red); }
.hero__proof a:hover { color: var(--signal-red); }
.facts__link { display: block; margin-top: 10px; font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cue { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--white); text-shadow: 0 1px 6px rgba(15, 27, 45, .8); }
.cue i { display: block; width: 2px; height: 38px; background: var(--white); transform-origin: top; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 50.1% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Facts ---------- */
.step--facts { min-height: 125vh; align-items: flex-end; padding-bottom: 8vh; }
.facts { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; background: var(--white); border: 2px solid var(--ink); box-shadow: var(--shadow); }
.facts > div { padding: 20px 22px 22px; }
.facts > div + div { border-left: 1px solid var(--rule); }
.facts dt { color: var(--steel); margin-bottom: 8px; }
.facts dd { margin: 0; font-weight: 600; font-size: 15.5px; line-height: 1.35; }
.facts__big { display: block; font: 900 46px/0.9 var(--display); text-transform: uppercase; color: var(--flag-blue); margin-bottom: 6px; }

/* ---------- Departments ---------- */
.dept__top { display: flex; align-items: flex-end; gap: 16px; }
.dept__letter { font: 900 88px/0.78 var(--display); color: var(--flag-blue); flex-shrink: 0; }
.dept h3 { font: 800 28px/1 var(--display); text-transform: uppercase; }
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.items--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
.items li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.5; }
.items li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; background: var(--signal-red); }
.items b { font-weight: 600; }

/* ---------- Thumbnail grids (all open the lightbox) ---------- */
.thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 8px; }
.thumbs li { min-width: 0; }
.thumbs button { display: block; width: 100%; padding: 0; border: 0; background: var(--paper); cursor: zoom-in; overflow: hidden; }
.thumbs img { width: 100%; aspect-ratio: var(--ar, 1); object-fit: cover; transition: transform .3s; }
.thumbs button:hover img { transform: scale(1.05); }
.photo { --cols: 1; --ar: 16 / 9; }
.photo img { filter: saturate(.92); }
.team p { font: 400 12px/1.4 var(--mono); color: var(--steel); padding-top: 8px; }

/* ---------- Ports ---------- */
.stop { width: min(400px, 100%); }
.stop .sheet__body { gap: 8px; }
.stop__code { color: var(--flag-blue); font-size: 13px; }
.stop--hq .stop__code { color: var(--signal-red); }
.stop__name { display: block; font: 900 clamp(3rem, 6vw, 4.8rem)/0.85 var(--display); text-transform: uppercase; }
.stop__pos { font: 400 12.5px/1.5 var(--mono); color: var(--steel); }
.stop__note { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--steel); }

/* ---------- Company ---------- */
.steps { list-style: none; margin: 4px 0 0; padding: 0; counter-reset: step; border-top: 2px solid var(--ink); }
.steps li { counter-increment: step; position: relative; padding: 12px 0 12px 44px; border-bottom: 1px solid var(--rule); font-size: 15.5px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 12px; font: 800 24px/1 var(--display); color: var(--signal-red); }
.steps b { font-weight: 600; }
.memorial { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 0 28px; align-items: end; }
.memorial__photo { padding: 0; border: 0; background: var(--ink); cursor: zoom-in; overflow: hidden; }
.memorial__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 0; transition: transform .3s; }
.memorial__photo:hover img { transform: scale(1.04); }
.memorial h2 em { font-style: normal; color: var(--flag-blue); }
.memorial__sub { font-style: italic; color: var(--steel); margin-top: 12px; }
.memorial__text { grid-column: 1 / -1; margin-top: 24px; }
.memorial__text p + p { margin-top: 14px; }
@media (max-width: 600px) {
  .memorial { grid-template-columns: 1fr; }
  .memorial__photo { width: min(220px, 65%); margin-bottom: 18px; }
}
.motto { font: 800 30px/1 var(--display); text-transform: uppercase; color: var(--flag-blue); }

/* ---------- Letters ---------- */
.bigquote { margin: 0; }
.bigquote blockquote { margin: 0; font: 800 clamp(1.9rem, 3.6vw, 3rem)/1.02 var(--display); color: var(--white); text-transform: uppercase; }
.bigquote figcaption { font: 400 13px var(--mono); color: #9aa5b4; }
.bigquote figcaption::before { content: ""; display: inline-block; width: 36px; height: 3px; background: var(--signal-red); vertical-align: middle; margin-right: 12px; }
.sheet .letters__title { font: 800 clamp(1.6rem, 2.6vw, 2.2rem)/1.05 var(--display); color: var(--white); text-transform: uppercase; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.letters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px 16px; }
.letters li, .plaques li { min-width: 0; }
.letter, .plaque { display: block; width: 100%; padding: 0; border: 0; background: var(--white); cursor: zoom-in; transition: transform .15s; }
.letter:hover, .plaque:hover { transform: translateY(-4px); }
.letter img, .plaque img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.letters p, .plaques p { margin-top: 10px; font: 400 12px/1.45 var(--mono); color: #9aa5b4; }
.letters p b, .plaques p b { display: block; color: var(--white); font-weight: 500; }
.letters.is-collapsed li:nth-child(n+13) { display: none; }
.letters__more { justify-self: start; }
.plaques { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

/* ---------- Contact ---------- */
.step--contact { min-height: 100vh; }
.contact { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 32px 48px; align-items: start; }
.contact__info { display: grid; gap: 16px; min-width: 0; }
.addr { margin: 6px 0 0; border-top: 2px solid var(--ink); }
.addr > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--rule); }
.addr dt { color: var(--steel); padding-top: 3px; }
.addr dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.addr a { color: var(--ink); }
.addr a:hover { color: var(--signal-red); }

.form { border: 2px solid var(--ink); background: var(--white); min-width: 0; }
.form__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--ink); color: var(--white); padding: 12px 20px; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form label { display: block; padding: 11px 18px 12px; font: 500 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--steel); border-bottom: 1px solid var(--rule); }
.form__grid label:nth-child(odd) { border-right: 1px solid var(--rule); }
.form input, .form select, .form textarea { display: block; width: 100%; margin-top: 6px; padding: 4px 0; border: 0; border-bottom: 1px solid transparent; background: transparent; font: 500 16px/1.4 var(--body); color: var(--ink); letter-spacing: 0; text-transform: none; border-radius: 0; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom-color: var(--flag-blue); }
.form label:focus-within { background: #f4f7fc; }
.form textarea { resize: vertical; font-family: var(--mono); font-size: 14px; }
.form .is-invalid { border-bottom: 2px solid var(--signal-red); }
.form__error { padding: 14px 18px 0; color: var(--signal-red); font-weight: 600; font-size: 15px; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; padding: 18px 18px 8px; }
.form__note { padding: 0 18px 18px; font: 400 12px/1.4 var(--mono); color: var(--steel); }

/* ---------- Footer ---------- */
.foot { position: relative; z-index: 3; background: var(--ink); color: #9aa5b4; font-size: 15px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-block: 56px 44px; }
.foot__brand img { width: 120px; height: auto; margin-bottom: 14px; background: var(--white); padding: 6px; }
.foot h4 { color: var(--white); margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: #c7ced8; text-decoration: none; }
.foot a:hover { color: var(--white); text-decoration: underline; }
.foot__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 18px 88px; border-top: 1px solid rgba(255, 255, 255, .15); font: 400 12px/1.4 var(--mono); }

/* ---------- WhatsApp tab ---------- */
.wa-tab { position: fixed; right: 0; bottom: 24px; z-index: 55; background: #1f9d55; color: var(--white); padding: 12px 16px; font: 600 14px/1 var(--body); text-decoration: none; border: 2px solid var(--ink); border-right: 0; }
.wa-tab:hover { background: var(--ink); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(15, 27, 45, .95); display: grid; place-items: center; padding: 64px 72px 16px; }
.lightbox__fig { margin: 0; display: grid; justify-items: center; gap: 12px; min-width: 0; }
.lightbox img { max-height: calc(100vh - 130px); max-width: min(100%, 1100px); width: auto; background: var(--white); }
.lightbox__cap { font: 400 13px/1.4 var(--mono); color: #c7ced8; text-align: center; max-width: 70ch; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 2px solid var(--white); background: rgba(15, 27, 45, .6); color: var(--white); font: 600 20px/1 var(--body); cursor: pointer; }
.lightbox__nav:hover { background: var(--white); color: var(--ink); }
.lightbox__prev { left: 12px; }
.lightbox__next { right: 12px; }
.lightbox__close { position: absolute; top: 12px; right: 16px; min-height: 40px; padding: 0 14px; border: 2px solid var(--white); background: transparent; color: var(--white); font: 600 14px var(--body); cursor: pointer; }

/* ---------- No WebGL: the page still reads as a normal site over the hero photo ---------- */
.no-webgl #scene, .no-webgl .labels, .no-webgl .hud, .no-webgl .rail { display: none; }
.no-webgl body { background: var(--ink) url("../img/hero-port.jpg") center / cover fixed; }
.no-webgl .step { min-height: auto; padding-block: 48px; }
.no-webgl .step--hero { min-height: 100vh; }
.no-webgl .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .rail { display: none; }
  .letters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .nav__toggle { display: inline-flex; align-items: center; }
  .nav__menu { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 2px solid var(--ink); padding: 8px var(--gutter) 16px; display: none; }
  .nav__menu.is-open { display: flex; }
  .nav__menu a { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .nav__menu .nav__rfq { margin: 12px 0 0; text-align: center; border: 0; }
  .step { align-items: flex-end; min-height: 125vh; padding-bottom: 6vh; }
  .step--short { min-height: 110vh; }
  .step__wrap, .step--right .step__wrap { justify-content: center; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:nth-child(3) { border-left: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .plaques { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .hud .hud__ch { display: none; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; --head: 60px; --shadow: 6px 6px 0 rgba(15, 27, 45, .28); }
  body { font-size: 16px; }
  .brand img { width: 56px; }
  .brand__name { font-size: 20px; }
  .brand__name span { display: none; }
  .hero__title { font-size: clamp(2.7rem, 13vw, 3.8rem); }
  .actions .btn { flex: 1 1 100%; }
  .sheet__body { padding: 18px 18px 22px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts > div + div { border-left: 0; border-top: 1px solid var(--rule); }
  .facts > div { padding: 14px 16px; }
  .facts__big { font-size: 34px; }
  .dept__letter { font-size: 64px; }
  .dept h3 { font-size: 24px; }
  .items--2 { grid-template-columns: minmax(0, 1fr); }
  .thumbs { gap: 5px; }
  .thumbs[style*="--cols:4"], .thumbs[style*="--cols:5"] { --cols: 3 !important; }
  .letters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plaques { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .plaques li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; align-items: center; }
  .plaques p { margin-top: 0; }
  .addr > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .form__grid { grid-template-columns: minmax(0, 1fr); }
  .form__grid label:nth-child(odd) { border-right: 0; }
  .form__actions .btn { flex: 1 1 100%; }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .lightbox { padding: 64px 12px 80px; }
  .lightbox__nav { top: auto; bottom: 16px; transform: none; }
  .lightbox__prev { left: calc(50% - 56px); }
  .lightbox__next { right: calc(50% - 56px); }
  .hud { left: 10px; bottom: 10px; }
  .tag--port b { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Requisition form: bot trap (hidden from people) and the Cloudflare human check */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin: 4px 0 14px; min-height: 65px; }
