/* ==========================================================================
   Blue Lagoon Maritime Trading — Concept Redesign (Private Demo)
   Visual revision: cool palette (cyan / ice-white), brand-reveal opening,
   Location section with privacy-friendly map loader. No CDN, no frameworks.
   Designed for file:// and offline-resilient Netlify deployment.
   ========================================================================== */

:root {
  /* Cool palette — replaces the previous gold accent system */
  --c-night:        #030B12;            /* blue-near-black background */
  --c-night-2:      #071723;            /* deep blue */
  --c-deep:         #08263B;            /* used in cinema gradient */
  --c-ocean:        #0b1f3a;            /* cooler ocean tone */
  --c-ocean-2:      #11335a;
  --c-ocean-3:      #1d4673;

  --c-frozen:       #F4F8FA;            /* ice-white */
  --c-frozen-low:   rgba(244, 248, 250, 0.72);
  --c-frozen-dim:   rgba(244, 248, 250, 0.45);
  --c-cyan:         #75D7E8;            /* technical cyan primary */
  --c-cyan-dim:     #4a8c98;
  --c-cyan-tint:    rgba(117, 215, 232, 0.35);
  --c-line:         rgba(255, 255, 255, 0.16);
  --c-line-strong:  rgba(255, 255, 255, 0.28);
  --c-glass:        rgba(4, 15, 24, 0.68);
  --c-glass-deep:   rgba(3, 11, 18, 0.82);

  /* Gold accent — reintroduced only for editorial / technical tags AFTER
     the #cinema hero. Never used on the hero, never as a background,
     never as a thick border, never as a large block of text. */
  --accent-gold:        #D6B271;
  --accent-gold-soft:   rgba(214, 178, 113, 0.38);
  --accent-gold-faint:  rgba(214, 178, 113, 0.16);

  /* Typography (system stack — works offline on file://) */
  --font-display: Georgia, "Times New Roman", "Cambria", "Liberation Serif", serif;
  --font-body:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono:    ui-monospace, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --max: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-pad-y: clamp(5rem, 9vw, 9rem);

  --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out:   cubic-bezier(0.65, 0, 0.35, 1);

  --shadow-card:  0 30px 80px -40px rgba(0, 0, 0, 0.7);
  --shadow-deep:  0 60px 120px -40px rgba(0, 0, 0, 0.85);
  --shadow-glass: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  /* Tightened after the brightened cinema: the lean shimmer behind
     "Affidabilità e innovazione / nel settore marittimo." must stay
     crisp above the now-brighter ship frames — slightly tighter spread,
     slightly darker bottom stop. */
  --text-shadow-title: 0 2px 16px rgba(0, 0, 0, 0.65),
                       0 1px 2px rgba(0, 0, 0, 0.80);
}

/* ==========================================================================
   Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

html, body { margin: 0; padding: 0; }

body {
  background: var(--c-night);
  color: var(--c-frozen);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
svg { fill: currentColor; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.35s var(--ease-standard),
              opacity 0.35s var(--ease-standard),
              border-color 0.35s var(--ease-standard);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.10;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--c-frozen);
  text-shadow: var(--text-shadow-title);
}
h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.45rem); }

em { font-style: italic; }
p { margin: 0; }
ul, ol { list-style: none; padding: 0; margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
select { font: inherit; color: inherit; background: transparent; border: 0; }
input, textarea, select { font-family: inherit; }

::selection { background: rgba(117, 215, 232, 0.35); color: var(--c-frozen); }

:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Visually-hidden but accessible technique (clip-path pattern).
   Unlike display:none, this keeps the element focusable for screen
   readers if a user lands on it accidentally. Used for honeypot fields. */
.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Reveal-on-scroll pattern. JS adds `.is-revealed` when element enters viewport. */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition: opacity 1s var(--ease-standard),
              transform 1s var(--ease-standard);
  will-change: opacity, transform;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   DEMO BANNER
   ========================================================================== */
.demo-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(180deg, rgba(117, 215, 232, 0.16), rgba(117, 215, 232, 0.05));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(117, 215, 232, 0.22);
  color: var(--c-frozen);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.demo-banner__dot {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-cyan);
  box-shadow: 0 0 10px rgba(117, 215, 232, 0.5);
  animation: banner-pulse 2.4s ease-in-out infinite;
}
@keyframes banner-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.35); }
}

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  top: 30px; left: 0; right: 0;
  z-index: 90;
  /* Always-on glass plate. The bar must stay readable even above the
     brightest cinematic frame: the brand mark, the menu text and the
     CTA never have to compete with the ship anymore. */
  background: rgba(3, 11, 18, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  transition: background 0.45s var(--ease-standard),
              backdrop-filter 0.45s var(--ease-standard),
              border-color 0.45s var(--ease-standard);
}
.nav.is-condensed {
  /* Slightly more opaque once the user has scrolled past the hero. */
  background: rgba(3, 11, 18, 0.86);
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  /* ~1.1rem top + 1.1rem bottom + 54px brand-mark ≈ 89px desktop bar
     (squarely inside the 82–90px target). Mobile collapses via @media. */
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
}

/* Larger brand mark: clamp keeps logo between ~42px desktop and smaller on mobile */
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--c-frozen);
}
.nav__brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Desktop band 48–54px keeps the .ico crisp without pixelation.
     Mobile fallback at @media (max-width: 600px) keeps the bar compact. */
  width:  clamp(48px, 5vw, 54px);
  height: clamp(48px, 5vw, 54px);
  padding: clamp(5px, 0.7vw, 7px);
  background: var(--c-frozen);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: none;
}
.nav__brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.nav__brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.nav__brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.06rem, 1.20vw, 1.18rem);  /* ≈ 17–19px */
  font-weight: 700;
  letter-spacing: 0.012em;
  color: var(--c-frozen);                          /* full white */
  line-height: 1.15;
  /* Soft dark text-shadow — readable above any cinema frame. No
     cyan glow (spec: no cyan glow on the company name). */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.nav__brand-sub {
  font-family: var(--font-body);
  font-size: clamp(0.66rem, 0.80vw, 0.75rem);    /* ≈ 10.5–12px */
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 248, 250, 0.78);
  line-height: 1.25;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.85rem;                                /* ≥ 13px on desktop */
  letter-spacing: 0.06em;
  font-weight: 600;
}
.nav__list a {
  position: relative;
  padding: 0.4rem 0;
  /* Near-white, NOT translucent grey — readable above any frame. */
  color: rgba(244, 248, 250, 0.94);
  /* Subtle dark text-shadow for legibility on bright frames. */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.40);
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px; width: 0;
  background: var(--c-cyan);
  transition: width 0.4s var(--ease-standard);
}
/* Hover/focus: cyan only. The default baseline is already near-white. */
.nav__list a:hover,
.nav__list a.is-active,
.nav__list a:focus-visible { color: var(--c-cyan); }
.nav__list a:hover::after,
.nav__list a.is-active::after { width: 100%; }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 1.2rem;
  min-height: 44px;
  border: 1px solid var(--c-line-strong);
  color: var(--c-frozen);
  font-size: 0.72rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  transition: background 0.35s var(--ease-standard),
              color 0.35s var(--ease-standard),
              border-color 0.35s var(--ease-standard),
              transform 0.35s var(--ease-standard);
}
.nav__cta svg { width: 14px; height: 14px; transition: transform 0.35s var(--ease-standard); }
.nav__cta:hover {
  background: var(--c-cyan);
  color: var(--c-night);
  border-color: var(--c-cyan);
  transform: translateY(-1px);
}
.nav__cta:hover svg { transform: translateX(3px); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
}
.nav__toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--c-frozen);
  transition: transform 0.35s var(--ease-standard), opacity 0.35s var(--ease-standard);
  transform-origin: center;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(3, 11, 18, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease-standard);
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu[hidden] { display: flex !important; opacity: 0; pointer-events: none; }
.mobile-menu nav { width: min(560px, 90vw); text-align: center; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 1.4rem; }
.mobile-menu a {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 3rem);
  color: var(--c-frozen);
  letter-spacing: -0.005em;
  transition: color 0.3s var(--ease-standard);
}
.mobile-menu a:hover { color: var(--c-cyan); }
.mobile-menu__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2.5rem;
  padding: 1rem 1.6rem;
  min-height: 48px;
  border: 1px solid var(--c-cyan);
  color: var(--c-cyan);
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  transition: background 0.3s var(--ease-standard), color 0.3s var(--ease-standard);
}
.mobile-menu__cta:hover { background: var(--c-cyan); color: var(--c-night); }

/* ==========================================================================
   BRAND REVEAL — replaces the previous loader
   ========================================================================== */
.reveal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--c-night);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s var(--ease-standard),
              visibility 0.7s;
}
.reveal.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.reveal__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
  padding: 0 var(--gutter);
  max-width: 760px;
  width: 100%;
}

.reveal__logo {
  /* Spec: clamp(115px, 11vw, 160px) — keeps the .ico from going
     visibly pixelated at any reasonable viewport width. */
  width:  clamp(115px, 11vw, 160px);
  height: clamp(115px, 11vw, 160px);
  padding: clamp(8px, 1.5vw, 16px);
  background: var(--c-frozen);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.96);
  animation: reveal-logo 0.7s var(--ease-standard) 0.10s forwards;
}
.reveal__logo img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
@keyframes reveal-logo {
  to { opacity: 1; transform: scale(1); }
}

.reveal__brand {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  opacity: 0;
  transform: translateY(8px);
  animation: reveal-brand 0.65s var(--ease-standard) 0.50s forwards;
}
.reveal__brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.55rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-frozen);
}
.reveal__brand-sub {
  font-family: var(--font-body);
  font-size: clamp(0.66rem, 1.15vw, 0.92rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-frozen-low);
}
@keyframes reveal-brand {
  to { opacity: 1; transform: translateY(0); }
}

.reveal__line {
  position: relative;
  height: 1px;
  width: clamp(120px, 36vw, 380px);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.reveal__line::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--c-cyan), transparent);
  transform: scaleX(0);
  transform-origin: center;
  animation: reveal-line 0.75s var(--ease-in-out) 0.95s forwards;
}
@keyframes reveal-line {
  to { transform: scaleX(1); }
}

.reveal__subtitle {
  font-family: var(--font-mono);
  font-size: clamp(0.62rem, 1.05vw, 0.80rem);
  letter-spacing: 0.40em;
  text-transform: uppercase;
  color: var(--c-frozen-low);
  margin-top: 0.3rem;
  max-width: 92vw;
  opacity: 0;
  animation: reveal-subtitle 0.65s var(--ease-standard) 1.20s forwards;
}
@media (max-width: 480px) {
  .reveal__subtitle { letter-spacing: 0.28em; }
}
@keyframes reveal-subtitle {
  to { opacity: 1; }
}

/* When the reveal is leaving, gracefully fade elements so the page beneath
   is revealed without a flash. */
.reveal.is-leaving .reveal__logo,
.reveal.is-leaving .reveal__brand,
.reveal.is-leaving .reveal__line::before,
.reveal.is-leaving .reveal__subtitle {
  animation: none;
  opacity: 0;
  transition: opacity 0.45s var(--ease-standard);
}

/* ==========================================================================
   CINEMATIC HERO (550vh sticky canvas + phases)
   ========================================================================== */
.cinema {
  position: relative;
  height: 550vh;
  background: var(--c-night);
  --p: 0;
}

.cinema__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  width: 100%;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 110%, rgba(29, 70, 115, 0.55), transparent 65%),
    linear-gradient(180deg, var(--c-night) 0%, var(--c-night-2) 55%, var(--c-deep) 100%);
  perspective: 1400px;
}

.cinema__poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Fallback colour: covers the case where poster.webp fails to load
     so the cinematic still has a depth-tone backdrop (not a flash of
     pure black). The sharp frame paints over this on top. */
  background: var(--c-ocean-2);
}
.cinema__poster img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* Mild open-up of the cinematic frame: brighten, lift contrast a touch,
     keep saturation natural. Brightness capped at 1.10 so the sky and
     ship lights never burn out. CSS filter applies to the final display
     composite of the <canvas> / <img>, so the ship pixels actually get
     brighter on screen — no JS pixel manipulation needed. */
  filter: brightness(1.10) contrast(1.04) saturate(1.04);
}

.cinema__canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 2;
  /* Match the poster treatment. image-rendering:auto prevents any
     pixelated upscaling path on retina displays. will-change:filter
     keeps the compositor layer alive while the user scrubs frames
     (avoid s Safari frame-drops on a filtered canvas). */
  filter: brightness(1.10) contrast(1.04) saturate(1.04);
  image-rendering: auto;
  will-change: filter;
}

/* Cinematic overlay stack */
.cinema__overlay { position: absolute; inset: 0; z-index: 3; pointer-events: none; }

/* Dark, asymmetric text-side gradient. More dense on the left (text),
   fading to transparent toward the ship. */
.cinema__vignette {
  position: absolute;
  top: 0; bottom: 0;
  pointer-events: none;
}
.cinema__vignette--left {
  left: 0; width: 60%;
  /* Slightly lighter at the very edge so the ship isn't framed by a
     pure-black band, still dark enough for the title copy to read. */
  background: linear-gradient(90deg,
              rgba(3,11,18,0.78) 0%,
              rgba(3,11,18,0.58) 25%,
              rgba(3,11,18,0.32) 55%,
              transparent 100%);
}
.cinema__vignette--right {
  right: 0; width: 30%;
  /* The ship half must breathe — drop from 0.45 to 0.20. */
  background: linear-gradient(270deg,
              rgba(3,11,18,0.20) 0%,
              transparent 100%);
}
/* Bottom third darkens lift for phase text */
.cinema__bottom-lift {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 30%;
  /* Softer lift — readable phase text, no longer a black bar. */
  background: linear-gradient(0deg, rgba(3,11,18,0.38), transparent);
  pointer-events: none;
}

/* Almost imperceptible grain. No filter:blur, no opacity:0 on canvas,
   no mix-blend-mode on canvas; this layer is a thin noise on top of
   the canvas, drawn with normal alpha compositing only. */
.cinema__grain {
  position: absolute;
  inset: 0;
  opacity: 0.022;                                  /* was 0.12 */
  pointer-events: none;
  /* Sparser strokes (7–9px instead of 3–4px) — no film-grain density. */
  background-image:
    repeating-linear-gradient(0deg,   rgba(244,248,250,0.07) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(90deg,  rgba(244,248,250,0.05) 0 1px, transparent 1px 9px);
}

/* Subtle, lower-intensity crosshair lines (was yellow, now cool cyan + faded) */
.cinema__crosshair {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0.32;
}

.cinema__routes {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0.30;
}
.cinema__routes path {
  stroke-dasharray: 220 1000;
  animation: route-flow 22s linear infinite;
}
.cinema__routes path:nth-child(2) { animation-duration: 28s; opacity: 0.85; }
.cinema__routes path:nth-child(3) { animation-duration: 36s; opacity: 0.7; }
@keyframes route-flow { to { stroke-dashoffset: -1200; } }

.cinema__hud {
  position: absolute;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.30rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: var(--c-frozen-dim);
  text-transform: uppercase;
}
.cinema__hud--tl { left: 1.5rem; top: calc(1.5rem + 30px); }
.cinema__hud--tr { right: 1.5rem; top: calc(1.5rem + 30px); text-align: right; }
.cinema__hud-label { color: var(--c-cyan); font-size: 0.60rem; opacity: 0.85; }
.cinema__hud-coord { color: var(--c-frozen); font-size: 0.78rem; letter-spacing: 0.10em; }

/* HUD system-analysis overlay (only 40%→60%) — refactored to corner markers
   + faint grid + short coordinate labels. No big technical yellow rectangle. */
.cinema__hud-system {
  position: absolute;
  inset: 1.6rem;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s linear;
}
.cinema__hud-system {
  --p-fade: clamp(0, calc((var(--p) - 0.40) * 25), 1) * clamp(0, calc((0.60 - var(--p)) * 25), 1);
  opacity: var(--p-fade);
}

.cinema__corners {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.cinema__corners span {
  position: absolute;
  width: 26px; height: 26px;
  border-color: var(--c-cyan-tint);
  border-style: solid;
  border-width: 0;
  opacity: 0.65;
}
.cinema__corners span:nth-child(1) { top: 0;    left: 0;    border-top-width: 1px;    border-left-width: 1px; }
.cinema__corners span:nth-child(2) { top: 0;    right: 0;   border-top-width: 1px;    border-right-width: 1px; }
.cinema__corners span:nth-child(3) { bottom: 0; left: 0;    border-bottom-width: 1px; border-left-width: 1px; }
.cinema__corners span:nth-child(4) { bottom: 0; right: 0;   border-bottom-width: 1px; border-right-width: 1px; }

.cinema__hud-grid {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px;
  background-position: -1px -1px, -1px -1px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.7) 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.7) 30%, transparent 75%);
  opacity: 0.85;
}

.cinema__hud-marks {
  position: absolute;
  inset: 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-frozen-dim);
  pointer-events: none;
}
.cinema__hud-marks span {
  position: absolute;
  display: inline-block;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--c-line);
  background: var(--c-glass-deep);
  white-space: nowrap;
  color: var(--c-frozen-low);
}
.cinema__hud-marks span::before {
  content: ""; display: inline-block;
  width: 6px; height: 1px; background: var(--c-cyan);
  margin-right: 0.55rem; vertical-align: middle;
  opacity: 0.8;
}
.cinema__hud-marks--tl { top: 1rem;    left: 1rem;  }
.cinema__hud-marks--tr { top: 1rem;    right: 1rem; text-align: right; }
.cinema__hud-marks--bl { bottom: 1rem; left: 1rem;  }
.cinema__hud-marks--br { bottom: 1rem; right: 1rem; text-align: right; }

.cinema__hud-centerline {
  position: absolute;
  left: 0; right: 0;
  top: 56%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-cyan-tint), transparent);
  opacity: 0.55;
  pointer-events: none;
}

.cinema__hud-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.cinema__hud-scan::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(180deg, transparent, var(--c-cyan), transparent);
  opacity: 0.7;
  transform: translateY(0);
  animation: cinema-scan 5s linear infinite;
}
@keyframes cinema-scan {
  0%   { transform: translateY(0);   opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.7; }
  100% { transform: translateY(100%); opacity: 0; }
}

/* Phases */
.cinema__phases {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: block;
  pointer-events: none;
}

.phase {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 var(--gutter);
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.35s linear, transform 0.45s var(--ease-standard);
  will-change: opacity, transform;
}

.phase__eyebrow,
.phase__chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-cyan);
  margin-bottom: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}
.phase__chip {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
}
.phase__chip::before {
  content: ""; width: 28px; height: 1px; background: var(--c-cyan);
  opacity: 0.7;
}

.phase__title {
  max-width: 24ch;
  display: flex;
  flex-direction: column;
  gap: 0.05em;
}
.phase__line { display: block; font-weight: 400; color: var(--c-frozen); }
.phase__line--em em {
  font-style: italic;
  font-weight: 500;
  color: var(--c-cyan);
}

.phase__lede {
  margin-top: 1.6rem;
  max-width: 56ch;
  font-size: clamp(0.96rem, 1.05vw, 1.05rem);
  color: var(--c-frozen-low);
  line-height: 1.65;
}

.phase__cta {
  margin-top: 2.4rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Phase 4 — three floating service blocks */
.phase-domains {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  width: min(1080px, 90vw);
}
.phase-domain {
  position: relative;
  padding: 2rem 1.5rem 1.6rem;
  background: linear-gradient(180deg, rgba(8, 18, 36, 0.72), rgba(3, 11, 18, 0.85));
  border: 1px solid var(--c-line);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-align: left;
  box-shadow: var(--shadow-glass);
  opacity: 0;
  transform: translate3d(0, 50px, 0) scale(0.96) rotateX(6deg);
  transition: opacity 0.85s var(--ease-standard),
              transform 0.85s var(--ease-standard);
}
.phase-domains .phase-domain.is-shown {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
.phase-domain::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, var(--c-cyan), transparent);
  opacity: 0.55;
}
.phase-domain--1 { transform: translate3d(-20px, 30px, 0) scale(0.94); }
.phase-domain--2 { transform: translate3d(0, 50px, 0) scale(0.96); }
.phase-domain--3 { transform: translate3d(20px, 70px, 0) scale(0.94); }
.phase-domains .phase-domain--1.is-shown { transform: translate3d(-20px, 0, 0) scale(1); }
.phase-domains .phase-domain--2.is-shown { transform: translate3d(0, 0, 0) scale(1.02); }
.phase-domains .phase-domain--3.is-shown { transform: translate3d(20px, 0, 0) scale(1); }

.phase-domain__num {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--c-cyan);
  letter-spacing: 0.01em;
  display: inline-block;
  margin-bottom: 1rem;
  text-shadow: none;
}
.phase-domain__title {
  font-family: var(--font-display);
  font-size: 1.20rem;
  margin-bottom: 1.1rem;
  color: var(--c-frozen);
  text-shadow: var(--text-shadow-title);
}
.phase-domain__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--c-frozen-low);
  font-size: 0.92rem;
}
.phase-domain__list li {
  position: relative;
  padding-left: 1.2rem;
}
.phase-domain__list li::before {
  content: ""; position: absolute; left: 0; top: 0.75em;
  width: 8px; height: 1px; background: var(--c-cyan);
  opacity: 0.7;
}

/* Scroll indicator (only over phase 1) */
.cinema__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-frozen-dim);
  opacity: 0;
  transition: opacity 0.35s linear;
}
.cinema__scroll.is-shown { opacity: 1; }
.cinema__scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(180deg, var(--c-cyan), transparent);
  transform-origin: top;
  animation: scroll-line 2.4s ease-in-out infinite;
}
@keyframes scroll-line {
  0%   { transform: scaleY(0); }
  50%  { transform: scaleY(1); }
  50.001% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1rem 1.6rem;
  min-height: 44px;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.35s var(--ease-standard),
              color 0.35s var(--ease-standard),
              border-color 0.35s var(--ease-standard),
              transform 0.35s var(--ease-standard);
}
.btn svg { width: 14px; height: 14px; }
.btn--primary {
  background: var(--c-cyan);
  color: var(--c-night);
  border: 1px solid var(--c-cyan);
}
.btn--primary:hover {
  background: var(--c-frozen);
  border-color: var(--c-frozen);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--c-frozen);
  border: 1px solid var(--c-line-strong);
}
.btn--ghost:hover {
  border-color: var(--c-cyan);
  color: var(--c-cyan);
}

/* ==========================================================================
   EDITORIAL OVERVIEW (continuation past cinema)
   ========================================================================== */
.editorial {
  position: relative;
  padding: var(--section-pad-y) 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(29, 70, 115, 0.4), transparent 60%),
    linear-gradient(180deg, var(--c-deep), var(--c-night-2));
  overflow: hidden;
}
.editorial::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 30%, rgba(117, 215, 232, 0.10), transparent 35%);
  pointer-events: none;
}
.editorial__inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 3rem;
  align-items: start;
}
.editorial__rail {
  position: relative;
  height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  color: var(--c-frozen-dim);
  text-transform: uppercase;
}
.editorial__rail-line {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 1px;
  /* Faint gold rail — first quiet gold detail after the #cinema hero. */
  background: linear-gradient(180deg, transparent, var(--accent-gold-soft), transparent);
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0.85;
}
.editorial__rail-tick {
  position: relative;
  z-index: 1;
  background: var(--c-night-2);
  padding: 0.3rem 0.4rem;
  white-space: nowrap;
}

.editorial__body { max-width: 720px; }
.editorial__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  /* Editorial eyebrow: gold. First editorial accent after #cinema. */
  color: var(--accent-gold);
  margin-bottom: 1.2rem;
}
.editorial__title {
  display: flex;
  flex-direction: column;
  gap: 0.04em;
  margin-bottom: 2rem;
}
.editorial__title-line em {
  color: var(--c-cyan);
}
.editorial__prose { display: flex; flex-direction: column; gap: 1.1rem; color: var(--c-frozen-low); max-width: 60ch; }
.editorial__coords {
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.70rem;
  letter-spacing: 0.32em;
  color: var(--c-frozen-dim);
  text-transform: uppercase;
}

/* ==========================================================================
   SECTION HEAD SHARED
   ========================================================================== */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  /* All section eyebrows after #cinema use refined gold. */
  color: var(--accent-gold);
  margin-bottom: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.section-eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--accent-gold);
  opacity: 0.7;
}

.section-title {
  max-width: 22ch;
  display: flex;
  flex-direction: column;
  gap: 0.04em;
  font-weight: 400;
  color: var(--c-frozen);
}
.section-title em {
  color: var(--c-cyan);
}

.section-lead {
  margin-top: 1.2rem;
  max-width: 60ch;
  color: var(--c-frozen-low);
  font-size: 1rem;
  line-height: 1.65;
}

main > section:not(.cinema) {
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
}

/* ==========================================================================
   MARITIME OPERATIONS
   ========================================================================== */
.maritime {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(17, 51, 90, 0.5), transparent 60%),
    var(--c-night-2);
  padding-top: var(--section-pad-y);
}
.maritime__head {
  max-width: var(--max);
  margin: 0 auto 5rem;
  padding: 0 var(--gutter);
}
.maritime__chapter {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem var(--gutter);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  border-top: 1px solid var(--c-line);
}
.maritime__chapter--crew {
  background:
    radial-gradient(ellipse at 20% 60%, rgba(29, 70, 115, 0.3), transparent 60%);
}

.chapter-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--accent-gold);
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  text-shadow: none;
}
.chapter-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.70rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  /* Subdued gold for tag labels (per Maritime spec: small tags in gold). */
  color: var(--accent-gold-soft);
  margin-bottom: 1rem;
}
.chapter-title {
  font-size: clamp(1.6rem, 2.4vw, 2.0rem);
  margin-bottom: 1.1rem;
  line-height: 1.20;
  color: var(--c-frozen);
  text-shadow: var(--text-shadow-title);
}
.chapter-prose {
  color: var(--c-frozen-low);
  font-size: 1rem;
  line-height: 1.70;
  max-width: 56ch;
}

.maritime__viz {
  display: flex;
  align-items: center;
  justify-content: center;
}
.maritime__diagram {
  width: 100%;
  height: auto;
  max-width: 560px;
  border: 1px solid var(--c-line);
  background: var(--c-glass);
  padding: 1rem;
}
.maritime__diagram-path {
  stroke-dasharray: 240 600;
  animation: route-flow 14s linear infinite;
}

/* ==========================================================================
   TRADE & FINANCIAL ADVISORY — integrated composition
   ========================================================================== */
.advisory {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(17, 51, 90, 0.45), transparent 60%),
    var(--c-night);
}
.advisory__head {
  max-width: var(--max);
  margin: 0 auto 5rem;
  padding: 0 var(--gutter);
}
.advisory__board {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  perspective: 1400px;
}
.advisory__gridLines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, transparent 0, transparent calc(33.33% - 1px), var(--c-line) 33.33%, transparent calc(33.33% + 1px), transparent calc(66.66% - 1px), var(--c-line) 66.66%, transparent calc(66.66% + 1px));
  opacity: 0.7;
}
.advisory__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 2.2rem 1.8rem 2rem;
  background: linear-gradient(180deg, var(--c-glass-deep), var(--c-glass));
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-card);
  transform-style: preserve-3d;
  will-change: transform;
  overflow: hidden;
}
.advisory__panel::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-cyan), transparent);
  opacity: 0.55;
}
.advisory__panel-head { display: flex; align-items: baseline; gap: 0.8rem; }
.advisory__num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent-gold);
  text-shadow: none;
}
.advisory__chip {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--accent-gold-soft);
}
.advisory__panel-title {
  font-size: clamp(1.15rem, 1.55vw, 1.35rem);
  line-height: 1.28;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--c-frozen);
  text-shadow: var(--text-shadow-title);
}
.advisory__chart { width: 100%; height: 80px; margin: 0; opacity: 0.92; }
.advisory__chart--iso { height: 110px; }
.advisory__panel-text {
  color: var(--c-frozen-low);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ==========================================================================
   TECHNICAL & DIGITAL SOLUTIONS
   ========================================================================== */
.technical {
  background:
    radial-gradient(ellipse at 0% 50%, rgba(17, 51, 90, 0.35), transparent 60%),
    var(--c-night-2);
}
.technical__head {
  max-width: var(--max);
  margin: 0 auto 5rem;
  padding: 0 var(--gutter);
}
.technical__chapter {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem var(--gutter);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  border-top: 1px solid var(--c-line);
}
.technical__chapter--bunkering {
  background:
    radial-gradient(ellipse at 60% 50%, rgba(117, 215, 232, 0.04), transparent 60%);
}

.technical__list {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1.4rem;
  font-size: 0.92rem;
  color: var(--c-frozen-low);
}
.technical__list li {
  position: relative;
  padding-left: 1.6rem;
}
.technical__bullet {
  position: absolute;
  left: 0; top: 0.1rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--accent-gold);
}

.technical__viz { display: flex; align-items: center; justify-content: center; }
.technical__diagram {
  width: 100%;
  height: auto;
  max-width: 560px;
  border: 1px solid var(--c-line);
  background: var(--c-glass);
  padding: 1rem;
}

/* ==========================================================================
   PROCESS — 4 phases via scroll
   ========================================================================== */
.process {
  background: var(--c-night);
}
.process__head {
  max-width: var(--max);
  margin: 0 auto 5rem;
  padding: 0 var(--gutter);
}
.process__chain {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--c-line);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.process__step {
  position: relative;
  padding: 3rem 1.6rem 2.4rem;
  background: var(--c-night);
  transform: translate3d(0, 70px, 0) scale(0.96) rotateX(6deg);
  transform-origin: center top;
  transition: opacity 1.1s var(--ease-standard),
              transform 1.1s var(--ease-standard),
              background 0.45s var(--ease-standard);
}
.process__step::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0; width: 1px;
  /* Faint gold rule along the process chain (subtle editorial timeline). */
  background: linear-gradient(180deg, var(--accent-gold-soft), transparent);
  opacity: 0.7;
}
.process__step:hover { background: linear-gradient(180deg, rgba(29, 70, 115, 0.18), var(--c-night)); }
.process__num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--accent-gold);
  display: block;
  margin-bottom: 1rem;
  text-shadow: none;
}
.process__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
  line-height: 1.25;
  color: var(--c-frozen);
  text-shadow: var(--text-shadow-title);
}
.process__step p { color: var(--c-frozen-low); font-size: 0.95rem; line-height: 1.6; }

/* ==========================================================================
   EXPERTISE
   ========================================================================== */
.expertise {
  background: linear-gradient(180deg, var(--c-night-2), var(--c-night));
  text-align: center;
}
.expertise__head {
  max-width: var(--max);
  margin: 0 auto 4.5rem;
  padding: 0 var(--gutter);
}
.expertise__head .section-eyebrow {
  justify-content: center;
}
.expertise__head .section-eyebrow::before { display: none; }
.expertise__head .section-title {
  max-width: none;
  margin-left: auto; margin-right: auto;
}
.expertise__head .section-lead { margin-left: auto; margin-right: auto; }

.expertise__keywords {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
.keyword {
  position: relative;
  padding: 3rem 1rem 2rem;
  border-top: 1px solid var(--c-line-strong);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease-standard);
}
.keyword:hover { border-bottom-color: var(--c-cyan); }
.keyword__index {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  letter-spacing: 0.28em;
  color: var(--accent-gold);
  display: block;
  margin-bottom: 1rem;
}
.keyword__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  letter-spacing: 0.01em;
  font-style: italic;
  color: var(--c-frozen);
  text-shadow: var(--text-shadow-title);
}

/* ==========================================================================
   NEWSLETTER / UPDATES
   ========================================================================== */
.updates {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(117, 215, 232, 0.10), transparent 60%),
    var(--c-night);
}
.updates__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}
.updates__inner .section-eyebrow { justify-content: center; }
.updates__inner .section-eyebrow::before { display: none; }
.updates__inner .section-title { max-width: none; margin-left: auto; margin-right: auto; }

.updates__form {
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--c-glass);
  border: 1px solid var(--c-line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.4rem;
  align-items: end;
}
.updates__note {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-cyan);
  margin-bottom: -0.4rem;
  text-align: left;
}
.updates__status {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.10em;
  color: var(--c-frozen-low);
  text-align: left;
  min-height: 1.2em;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(29, 70, 115, 0.4), transparent 60%),
    var(--c-night-2);
}
.contact__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact__intro { display: flex; flex-direction: column; gap: 1.8rem; }
.contact__org-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.7rem;
  color: var(--c-frozen);
  text-shadow: var(--text-shadow-title);
}
.contact__intro address {
  font-style: normal;
  color: var(--c-frozen-low);
  line-height: 1.75;
}
.contact__ids {
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.80rem;
  letter-spacing: 0.10em;
  color: var(--c-frozen-low);
}
.contact__ids li {
  display: flex; gap: 0.6rem;
}
.contact__ids li span:first-child {
  width: 36px;
  color: var(--c-cyan);
}

.contact__emails { display: flex; flex-direction: column; gap: 0.8rem; }
.contact__emails li {
  display: flex; flex-direction: column; gap: 0.3rem;
}
.contact__email-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-cyan);
}
.contact__emails a {
  display: inline-block;
  font-size: 1.05rem;
  color: var(--c-frozen);
  border-bottom: 1px solid var(--c-line);
  padding-bottom: 0.25rem;
  transition: color 0.35s var(--ease-standard), border-color 0.35s var(--ease-standard);
}
.contact__emails a:hover { color: var(--c-cyan); border-bottom-color: var(--c-cyan); }

.contact__phone { margin-top: 0.6rem; }
.contact__phone-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-cyan);
  margin-bottom: 0.45rem;
}
.contact__phone-value {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-style: italic;
  color: var(--c-frozen-low);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding: 2.4rem;
  background: linear-gradient(180deg, rgba(17, 51, 90, 0.18), rgba(3, 11, 18, 0.55));
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-card);
}
.contact__form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field__label {
  font-family: var(--font-body);
  font-size: 0.70rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-frozen-dim);
}
.field input,
.field textarea,
.field select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--c-line-strong);
  padding: 0.8rem 0;
  color: var(--c-frozen);
  font-family: inherit;
  font-size: 0.96rem;
  resize: vertical;
  transition: border-color 0.3s var(--ease-standard);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--c-frozen-dim); }
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--c-frozen-dim) 50%),
    linear-gradient(-45deg, transparent 50%, var(--c-frozen-dim) 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 8px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 28px;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-bottom-color: var(--c-cyan);
}
.contact__form-status {
  font-family: var(--font-mono);
  font-size: 0.80rem;
  color: var(--c-cyan);
  min-height: 1.2em;
  letter-spacing: 0.06em;
}

/* Checkbox-with-full-label pattern, used by Netlify forms. The input sits
   inline so a single click toggles both the box and the text label. */
.checkfield {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.88rem;
  color: var(--c-frozen-low);
  line-height: 1.55;
  cursor: pointer;
}
.checkfield input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 0.18rem;
  accent-color: var(--c-cyan);
  cursor: pointer;
}
.checkfield a {
  color: var(--c-cyan);
  text-decoration: underline;
  text-decoration-color: rgba(117, 215, 232, 0.4);
  text-underline-offset: 2px;
}
.checkfield a:hover { text-decoration-color: var(--c-cyan); }

.form-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.10em;
  color: var(--c-frozen-dim);
}
.contact__form-legal {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.10em;
  color: var(--c-frozen-dim);
  text-transform: uppercase;
}
.contact__form-legal a { color: var(--c-frozen-low); }
.contact__form-legal a:hover { color: var(--c-cyan); }

/* Phone rendered as a link (tel:) styled as the value */
.contact__phone-link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-style: italic;
  color: var(--c-frozen);
  border-bottom: 1px solid var(--c-line);
  padding-bottom: 0.2rem;
  transition: color 0.35s var(--ease-standard), border-color 0.35s var(--ease-standard);
}
.contact__phone-link:hover { color: var(--c-cyan); border-bottom-color: var(--c-cyan); }

.updates__consent { text-align: left; }

/* ==========================================================================
   LOCATION — added in this revision
   ========================================================================== */
.location {
  background:
    radial-gradient(ellipse at 30% 0%, rgba(17, 51, 90, 0.30), transparent 60%),
    var(--c-night);
}
.location__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: stretch;
}
.location__panel {
  position: relative;
  padding: 2.4rem 2rem;
  background: var(--c-glass);
  border: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  box-shadow: var(--shadow-card);
}
.location__panel::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-cyan), transparent);
  opacity: 0.55;
}
.location__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-gold);
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.location__eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--accent-gold);
  opacity: 0.7;
}
.location__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.95rem);
  line-height: 1.22;
  color: var(--c-frozen);
}
.location__title em { color: var(--c-cyan); font-style: italic; }
.location__address {
  font-style: normal;
  color: var(--c-frozen-low);
  line-height: 1.75;
  font-size: 0.98rem;
  max-width: 32ch;
}
.location__external {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.25rem;
  min-height: 44px;
  border: 1px solid var(--c-line-strong);
  color: var(--c-frozen);
  font-family: var(--font-body);
  font-size: 0.74rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  transition: border-color 0.35s var(--ease-standard),
              color 0.35s var(--ease-standard),
              background 0.35s var(--ease-standard);
}
.location__external:hover {
  border-color: var(--c-cyan);
  color: var(--c-cyan);
}
.location__external svg { width: 13px; height: 13px; }

.location__map {
  position: relative;
  background: var(--c-glass-deep);
  border: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
  min-height: 360px;
  overflow: hidden;
}

/* Map placeholder: dark with abstract CSS cartographic grid */
.map-placeholder {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.6rem;
  text-align: center;
  gap: 1.1rem;
  background:
    linear-gradient(rgba(117, 215, 232, 0.08) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(117, 215, 232, 0.08) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 16px 16px,
    radial-gradient(ellipse at 50% 55%, rgba(117,215,232,0.10), transparent 70%),
    var(--c-night-2);
}
.map-placeholder__pin {
  position: relative;
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.map-placeholder__pin::before,
.map-placeholder__pin::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.map-placeholder__pin::before {
  inset: 0;
  border: 1px solid var(--c-cyan-tint);
  animation: map-pulse 4s ease-in-out infinite;
}
.map-placeholder__pin::after {
  width: 12px; height: 12px;
  background: var(--c-cyan);
  box-shadow: 0 0 12px rgba(117, 215, 232, 0.55);
  animation: map-pulse 2.6s ease-in-out infinite reverse;
}
@keyframes map-pulse {
  0%, 100% { transform: scale(1); opacity: 0.65; }
  50%      { transform: scale(1.45); opacity: 0.15; }
}
.map-placeholder__text {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--c-frozen-low);
}
.map-placeholder__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.4rem;
  min-height: 44px;
  border: 1px solid var(--c-cyan);
  color: var(--c-cyan);
  background: rgba(117, 215, 232, 0.06);
  font-family: var(--font-body);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background 0.35s var(--ease-standard),
              color 0.35s var(--ease-standard);
}
.map-placeholder__btn:hover,
.map-placeholder__btn:focus-visible {
  background: var(--c-cyan);
  color: var(--c-night);
}
.map-placeholder__btn[aria-expanded="true"] {
  cursor: progress;
  opacity: 0.6;
}
.map-placeholder__note {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-frozen-dim);
  max-width: 460px;
  line-height: 1.6;
  margin: 0;
}

.map-frame {
  position: relative;
  display: flex;
  width: 100%;
  flex: 1;
  min-height: 360px;
}
.map-frame__iframe {
  width: 100%;
  flex: 1;
  border: 0;
  background: var(--c-night);
}

/* ==========================================================================
   LANGUAGE SWITCHER (EN | IT)
   Present in three places: desktop nav (slim, in line with the menu),
   mobile menu (above or below the section list), footer (in the legal
   column). Light, glass-coherent, premium — never a pill, never a flag,
   never a dropdown. Active language in full white, inactive at lower
   opacity, hover/active cyan.
   ========================================================================== */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
  /* aria-label is also on the wrapper below; CSS has nothing to do here. */
}
.lang-switch__item {
  color: rgba(244, 248, 250, 0.55);
  padding: 0.30rem 0.05rem;
  transition: color 0.30s var(--ease-standard), opacity 0.30s var(--ease-standard);
  border-bottom: 1px solid transparent;
}
.lang-switch__item:hover,
.lang-switch__item:focus-visible {
  color: var(--c-cyan);
  opacity: 1;
  border-bottom-color: transparent;
}
.lang-switch__item[aria-current="page"] {
  color: var(--c-frozen);
  opacity: 1;
}
.lang-switch__sep {
  width: 1px;
  height: 10px;
  background: rgba(255, 255, 255, 0.22);
  display: inline-block;
  margin: 0 0.10rem;
  transform: translateY(1px);
}
.lang-switch__sep[aria-hidden="true"] { margin: 0; }

/* Desktop nav variant: inline with the section list */
.nav__lang {
  margin-left: 0.4rem;
  padding-left: 0.85rem;
  border-left: 1px solid var(--c-line);
  align-self: center;
  height: 22px;
  display: inline-flex;
  align-items: center;
}
/* Tighten the desktop nav horizontally when the lang switch is inline, so
   the bar never wraps between desktop and ~1100px widths. */
@media (max-width: 1100px) {
  .nav__lang { padding-left: 0.5rem; }
  .nav__lang .lang-switch__item { font-size: 0.62rem; }
}
@media (max-width: 1024px) {
  .nav__lang { padding-left: 0.4rem; }
}

/* Mobile-menu variant: stacked, less mono, bigger tap target, separated
   from the main list by a quiet cyan rule. */
.mobile-menu .lang-switch {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(117, 215, 232, 0.22);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
}
.mobile-menu .lang-switch__item { color: rgba(244, 248, 250, 0.55); padding: 0.45rem 0.30rem; }
.mobile-menu .lang-switch__sep { background: rgba(255, 255, 255, 0.20); margin: 0 0.20rem; }

/* Footer variant: tiny, mono, sits under the legal block. */
.footer__lang {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(244, 248, 250, 0.55);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.footer__lang .lang-switch__item { padding: 0.20rem 0.05rem; }
.footer__lang .lang-switch__sep { background: rgba(255, 255, 255, 0.18); }

/* Keep the focus ring readable on the language-switch links (cyan on the
   dark glass). */
.lang-switch__item:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--c-night);
  border-top: 1px solid var(--c-line);
  padding: 3.5rem var(--gutter) 2rem;
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
}
.footer__brand { display: flex; align-items: center; gap: 0.85rem; }
.footer__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: var(--c-frozen);
  padding: 5px;
  border-radius: 2px;
}
.footer__mark img { width: 100%; height: 100%; object-fit: contain; }
.footer__name {
  font-family: var(--font-display);
  font-size: 1.20rem;
  margin-bottom: 0.3rem;
  color: var(--c-frozen);
}
.footer__sub {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--c-frozen-dim);
}

.footer__nav ul { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.85rem; }
.footer__nav a {
  color: var(--c-frozen-low);
  letter-spacing: 0.06em;
}
.footer__nav a:hover { color: var(--c-cyan); }

.footer__legal { font-size: 0.78rem; color: var(--c-frozen-low); line-height: 1.7; }
.footer__legal p { margin-bottom: 0.3rem; }
.footer__legal a { color: var(--c-frozen); }
.footer__legal a:hover { color: var(--c-cyan); }
.footer__year {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-frozen-dim);
  margin-top: 0.6rem;
}

/* When the brand reveal is up we lock the page */
body.reveal-lock { overflow: hidden; }

/* ==========================================================================
   LEGAL PAGES — minimal compact layout for Privacy, Cookie Policy, Thanks.
   Re-uses the .footer + .lang-switch rules from the main site.
   ========================================================================== */
.legal-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(3, 11, 18, 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.legal-nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}
.legal-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--c-frozen);
}
.legal-nav__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 4px;
  background: var(--c-frozen);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 2px;
}
.legal-nav__mark img { width: 100%; height: 100%; object-fit: contain; }
.legal-nav__brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.legal-nav__brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.012em;
  color: var(--c-frozen);
}
.legal-nav__brand-sub {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 248, 250, 0.78);
}

.legal-main {
  background: var(--c-night);
  padding: clamp(2.5rem, 5vw, 5rem) 0 clamp(3.5rem, 7vw, 6rem);
}
.legal-doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  color: var(--c-frozen-low);
  font-size: 1rem;
  line-height: 1.72;
}
.legal-doc > p { margin-bottom: 1rem; }
.legal-doc ul, .legal-doc ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.legal-doc ul li, .legal-doc ol li { margin-bottom: 0.4rem; }
.legal-doc h2 {
  font-family: var(--font-display);
  font-size: clamp(1.30rem, 1.7vw, 1.55rem);
  margin: 2.4rem 0 0.9rem;
  color: var(--c-frozen);
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  letter-spacing: -0.005em;
}
.legal-doc h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 1.4rem 0 0.55rem;
  color: var(--c-frozen);
  letter-spacing: 0;
  text-shadow: none;
}
.legal-doc address {
  font-style: normal;
  color: var(--c-frozen-low);
  margin-bottom: 1rem;
}
.legal-doc code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  padding: 0.05em 0.4em;
  background: rgba(117,215,232,0.08);
  border: 1px solid rgba(117,215,232,0.18);
  border-radius: 2px;
}

.legal-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.9rem;
}
.legal-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.6rem;
  color: var(--c-frozen);
  line-height: 1.12;
}
.legal-meta {
  margin-bottom: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.10em;
  color: var(--c-frozen-dim);
}

.legal-toc {
  margin: 1.5rem 0 2rem;
  padding: 1.1rem 1.4rem;
  background: rgba(8, 26, 44, 0.55);
  border: 1px solid rgba(117,215,232,0.22);
  border-radius: 2px;
}
.legal-toc__title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--c-cyan);
  margin-bottom: 0.7rem !important;
  display: block;
  text-shadow: none;
}
.legal-toc ol { list-style: decimal inside; padding: 0; margin: 0; }
.legal-toc a {
  color: var(--c-frozen);
  border-bottom: 1px solid rgba(117,215,232,0.25);
  padding-bottom: 1px;
  transition: color 0.3s var(--ease-standard), border-color 0.3s var(--ease-standard);
}
.legal-toc a:hover { color: var(--c-cyan); border-bottom-color: var(--c-cyan); }

.legal-num {
  font-family: var(--font-display);
  color: var(--accent-gold);
  font-size: 1.05em;
  letter-spacing: 0.02em;
  text-shadow: none;
  min-width: 1.6em;
  display: inline-block;
}

.legal-lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--c-frozen);
  margin-bottom: 1rem;
  max-width: 38ch;
}

.legal-return { margin: 2.4rem 0 0; }
.legal-return--small { margin-top: 1rem; font-size: 0.86rem; color: var(--c-frozen-dim); }
.legal-return a { color: var(--c-cyan); border-bottom: 1px solid rgba(117,215,232,0.35); }
.legal-return a:hover { border-bottom-color: var(--c-cyan); }

.legal-actions {
  margin-top: 1.8rem;
  margin-bottom: 1.4rem;
}

.legal-thanks .legal-doc { max-width: 640px; text-align: left; }
.legal-thanks h1 { margin-bottom: 0.4rem; }
.legal-thanks .legal-lede { margin-top: 1rem; }

@media (max-width: 600px) {
  .legal-nav__brand-sub { display: none; }
  .legal-mark { width: 32px; height: 32px; }
}


@media (max-width: 1100px) {
  .nav__list { gap: 1.15rem; }
}

@media (max-width: 1024px) {
  .nav__list { gap: 1.4rem; }
  .maritime__chapter,
  .technical__chapter { grid-template-columns: 1fr; gap: 2rem; }
  .contact__inner { grid-template-columns: 1fr; gap: 3rem; }
  .location__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__legal { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  :root { --section-pad-y: clamp(4rem, 9vw, 6.5rem); }
  .nav__menu { display: none; }
  .nav__toggle { display: inline-flex; }
  .process__chain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .advisory__board { grid-template-columns: 1fr; }
  .expertise__keywords { grid-template-columns: 1fr; gap: 1rem; }
  .editorial__inner { grid-template-columns: 1fr; }
  .editorial__rail { display: none; }
  .phase-domains { grid-template-columns: 1fr; width: min(420px, 90vw); }
  .updates__form { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .location__panel { order: 1; padding: 1.8rem 1.6rem; }
  .location__map { order: 2; min-height: 360px; }
}

@media (max-width: 720px) {
  .cinema__hud { font-size: 0.60rem; }
  .cinema__hud--tl, .cinema__hud--tr { top: calc(1rem + 30px); }
}

@media (max-width: 600px) {
  .demo-banner { font-size: 0.62rem; letter-spacing: 0.12em; padding: 0.45rem 0.7rem; }
  .nav { top: 26px; }
  .nav__inner { padding: 0.65rem 1.1rem; gap: 0.6rem; }
  .nav__brand-mark { width: 38px; height: 38px; padding: 3px; }
  .nav__brand-sub { display: none; }
  .nav__brand-name { font-size: 1.00rem; }
  .phase__title { max-width: 18ch; }
  .phase__cta { flex-direction: column; align-items: stretch; }
  .phase__cta .btn { width: 100%; }
  .process__chain { grid-template-columns: 1fr; }
  .process__step { padding: 2rem 1.4rem; }
  .maritime__chapter, .technical__chapter { padding: 2.5rem var(--gutter); }
  .advisory__panel { padding: 1.6rem 1.3rem; }
  .contact__form { padding: 1.6rem; }
  .contact__form-grid { grid-template-columns: 1fr; }
  .technical__list { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; text-align: left; }
  .cinema__scroll { display: none; }
  .reveal__line { width: clamp(120px, 60vw, 280px); }
  .location__map { min-height: 340px; }
  .map-placeholder { min-height: 340px; }
}

@media (max-width: 380px) {
  .nav__brand-mark { width: 32px; height: 32px; }
  .nav__brand-name { font-size: 0.96rem; }
  .footer__brand { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   MOBILE CINEMA (<768px) — two-tier rendering
     · Tier A — atmospheric backdrop: full-viewport cover, slightly enlarged,
       blurred, dimmed, lightly saturated.
     · Tier B — sharp foreground: canvas paints the mobile 1920×1080 frame
       using a "safe cinematic fit" (contain × 1.35 zoom, recentred).
     Desktop path above this block remains COMPLETELY unchanged.
   ========================================================================== */
@media (max-width: 767.98px) {
  .cinema__sticky {
    /* Modern viewport units in fallback order so URL-bar settling on
       mobile never causes a visible second jump. */
    height: 100vh;
    height: 100svh;
    height: 100dvh;
  }

  /* Tier A — atmospheric mobile backdrop.
     The blur is applied ONLY here, never on the canvas or the ship.
     Explicit viewport height triplet on the element makes the poster a
     viewport-spanning layer independently of the sticky wrapper — per
     spec item 3 (“applica correttamente almeno a .cinema__poster”). */
  .cinema__poster {
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    background: var(--c-ocean-2);
  }
  .cinema__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    transform-origin: center center;
    filter: blur(17px) brightness(0.48) saturate(1.05);
    /* No will-change: scale is static after init, GPU layer overhead
       buys nothing here. */
  }

  /* Tier B — sharp foreground canvas.
     Do NOT blur, do NOT lower opacity. The global brightness(1.10)
     filter is preserved so the ship pops against the now-darker
     atmospheric backdrop without re-dimming the silhouette.
     Explicit viewport height triplet ties the canvas element to the
     same units the JS reads in resizeCinema(), per spec item 3. */
  .cinema__canvas {
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    filter: brightness(1.10) contrast(1.04) saturate(1.04);
    image-rendering: auto;
  }

  /* Drop the right vignette entirely on mobile so the ship side sits
     above full-luminance pixels from the canvas (the spec asked us not
     to re-darken the ship). The left vignette stays for text legibility
     but is lightened so it never bleeds into the ship region. */
  .cinema__vignette--right { display: none; }
  .cinema__vignette--left {
    width: 78%;
    background: linear-gradient(90deg,
      rgba(3,11,18,0.88) 0%,
      rgba(3,11,18,0.55) 35%,
      rgba(3,11,18,0.18) 65%,
      transparent 100%);
  }

  /* Lift the bottom lift slightly so phase text sits above the safe-fit
     ship without crushing it. */
  .cinema__bottom-lift {
    height: 40%;
    background: linear-gradient(0deg, rgba(3,11,18,0.55), transparent);
  }

  /* Lighten the overlay stack on mobile per spec: less grain, softer
     crosshair, less HUD system, never re-darken the ship. */
  .cinema__grain { opacity: 0.015; }
  .cinema__crosshair { opacity: 0.22; }
  .cinema__routes { opacity: 0.18; }
  /* Dampen the HUD-system peak on mobile WITHOUT redeclaring `opacity`:
     the original rule sets `opacity: var(--p-fade)`, and redeclaring
     `opacity: 1` here would win on cascade order and pin the HUD to
     full opacity for the entire scroll length on mobile. We only
     override the custom property. */
  .cinema__hud-system {
    --p-fade: clamp(0, calc((var(--p) - 0.40) * 25), 1)
            * clamp(0, calc((0.60 - var(--p)) * 25), 1)
            * 0.70;
  }
}

/* ==========================================================================
   REDUCED MOTION — collapse everything to a static, fully-readable version
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal],
  .phase-domain {
    opacity: 1 !important;
    transform: none !important;
  }
  /* BRAND REVEAL: simple fade in / fade out, no scale. All transitions
     re-declared with !important so the universal `* { transition-
     duration: 0.001ms !important }` cannot defeat them. */
  .reveal { transition: opacity 0.25s var(--ease-standard) !important; }
  .reveal.is-leaving .reveal__logo,
  .reveal.is-leaving .reveal__brand,
  .reveal.is-leaving .reveal__line::before,
  .reveal.is-leaving .reveal__subtitle {
    animation: none !important;
    opacity: 0 !important;
    transform: none !important;
    transition: opacity 0.25s var(--ease-standard) !important;
  }
  .reveal__logo,
  .reveal__brand,
  .reveal__line::before,
  .reveal__subtitle {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .reveal__line::before { transform: scaleX(1) !important; }
  /* Cinema collapses to a single static solved view */
  .cinema { height: auto; padding-top: 90px; padding-bottom: var(--section-pad-y); background: var(--c-night); }
  .cinema__sticky {
    position: relative;
    height: auto;
    min-height: 100vh;
    perspective: none;
  }
  .cinema__poster { display: block; }
  .cinema__canvas { display: none; }
  .cinema__overlay { opacity: 0.45; }
  .cinema__hud-system { opacity: 0.30 !important; }
  .cinema__phases { position: relative; inset: auto; display: flex; flex-direction: column; }
  .phase {
    position: relative;
    inset: auto;
    min-height: 32vh;
    padding: 2rem var(--gutter);
    border-top: 1px solid var(--c-line);
  }
  .phase-domains { display: grid; grid-template-columns: 1fr; gap: 1rem; }
  .cinema__scroll { display: none; }
  .hero__scrollhint,
  .demo-banner__dot,
  .cinema__hud-scan::before,
  .map-placeholder__pin::before,
  .map-placeholder__pin::after { animation: none; }
  /* Reduced motion leaves one stable viewport */
  .cinema__routes path { animation: none; }
}
