/* =================================================================
   Raincountry Refrigeration — interactive marketing site
   Palette: deep arctic indigo + ice cyan + ember orange + chrome
   Typography: Space Grotesk display + Inter body + JetBrains Mono labels
   ================================================================= */

:root {
  /* Light, fresh palette — brand green + warm off-white + crisp ink */
  --bg:      #f6f9f5;       /* page background */
  --bg-2:    #ffffff;       /* card / surface */
  --bg-3:    #eef3ec;       /* alt panel band */
  --bg-dark: #0d2014;       /* deep evergreen for inverted bands */
  --bg-dark-2:#11281a;
  --ink:     #0f1f15;       /* near-black with green undertone */
  --ink-2:   #46584d;
  --ink-3:   #7e8c83;

  /* Brand greens (from the official RRI logo) */
  --green:   #0C7319;       /* deep brand green (logo) */
  --green-2: #138a25;       /* hover green */
  --green-3: #62BF7C;       /* light brand green (legacy nav) */
  --green-4: #c7e6cd;       /* mint pale */

  /* Accent (used very sparingly — rust/copper is the historic refrigeration foil) */
  --accent:  #B85C1A;
  --accent-2:#d97a3a;

  /* On-dark variants of the green for the dark bands */
  --green-on-dark: #62BF7C;
  --green-on-dark-2: #9be0a8;

  --line:    rgba(15, 31, 21, .08);
  --line-2:  rgba(15, 31, 21, .16);
  --line-d:  rgba(255,255,255,.10);
  --line-d2: rgba(255,255,255,.18);

  --maxw: 1500px;
  --pad-x: clamp(20px, 4vw, 64px);

  --font-d: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-b: 'Inter', system-ui, sans-serif;
  --font-m: 'JetBrains Mono', ui-monospace, monospace;

  --ease: cubic-bezier(.2,.8,.2,1);

  /* Back-compat aliases so existing rules using --ice still work mapped to brand green */
  --ice:    var(--green);
  --ice-2:  var(--green-2);
  --ice-3:  var(--green-3);
  --ember:  var(--accent);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); font-family: var(--font-b); -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--green); color: #fff; }

/* Base background — soft mint glow on warm white */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 70% 60% at 10% 0%, rgba(12,115,25,.10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 60%, rgba(184,92,26,.06), transparent 60%),
    linear-gradient(180deg, #f6f9f5 0%, #f3f7f1 60%, #eff5ec 100%);
  pointer-events: none;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .025 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .35; mix-blend-mode: multiply; pointer-events: none;
}

/* ============== CUSTOM CURSOR ============== */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%); will-change: transform;
}
/* Green neon cursor — soft diffuse halo with undefined edge */
.cursor-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #eafff0;
  box-shadow:
    0 0 4px #c8f3d2,
    0 0 10px #9be0a8;
}
.cursor-ring {
  width: 140px; height: 140px;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(155,224,168,.55) 0%,
    rgba(155,224,168,.30) 18%,
    rgba(155,224,168,.14) 38%,
    rgba(155,224,168,.05) 60%,
    rgba(155,224,168,0) 85%);
  filter: blur(6px);
  transition:
    width .25s var(--ease),
    height .25s var(--ease),
    background .25s;
}
.cursor-ring.is-hover {
  width: 200px; height: 200px;
  background: radial-gradient(circle,
    rgba(200,243,210,.7) 0%,
    rgba(155,224,168,.35) 20%,
    rgba(155,224,168,.16) 42%,
    rgba(155,224,168,.06) 65%,
    rgba(155,224,168,0) 88%);
}
@media (max-width: 800px), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============== LOADER ============== */
.loader {
  position: fixed; inset: 0; z-index: 999;
  background: linear-gradient(180deg, #ffffff 0%, #f1f7ee 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity .8s var(--ease), visibility .8s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader-snow { position: absolute; inset: 0; background-image:
    radial-gradient(circle at 20% 30%, rgba(12,115,25,.25), transparent 1px),
    radial-gradient(circle at 80% 60%, rgba(12,115,25,.18), transparent 1px),
    radial-gradient(circle at 50% 80%, rgba(98,191,124,.3), transparent 1.2px),
    radial-gradient(circle at 70% 20%, rgba(12,115,25,.18), transparent 1.4px);
  background-size: 200px 200px, 240px 240px, 180px 180px, 220px 220px;
  animation: snow 14s linear infinite; opacity: .55;
}
@keyframes snow { from {background-position: 0 0, 0 0, 0 0, 0 0;} to {background-position: 0 600px, 0 -500px, 0 700px, 0 -650px;} }

.loader-name {
  text-align: center;
  margin-bottom: 26px;
  color: var(--green);
  font-family: var(--font-d);
  line-height: 1.05;
  letter-spacing: -.02em;
}
.loader-line-1, .loader-line-2 {
  display: block;
  font-weight: 800;
  font-size: clamp(28px, 5.5vw, 56px);
  opacity: 0;
  transform: translateY(40%);
  animation: rise .7s var(--ease) forwards;
}
.loader-line-1 { animation-delay: 0s; }
.loader-line-2 { animation-delay: .15s; }
.loader-line-2 em { font-style: normal; color: var(--green-2); }
.loader-tag {
  display: block; margin-top: 14px;
  font-family: var(--font-m); font-weight: 600;
  font-size: clamp(10px, 1.2vw, 13px);
  letter-spacing: .35em;
  color: var(--green);
  opacity: 0;
  transform: translateY(20%);
  animation: rise .7s var(--ease) .35s forwards;
}

/* Legacy class kept for back-compat (not used) */
.loader-text { display: none; }
.loader-text span:nth-child(1){animation-delay:.05s}.loader-text span:nth-child(2){animation-delay:.1s}.loader-text span:nth-child(3){animation-delay:.15s}.loader-text span:nth-child(4){animation-delay:.2s}.loader-text span:nth-child(5){animation-delay:.25s}.loader-text span:nth-child(6){animation-delay:.3s}.loader-text span:nth-child(7){animation-delay:.35s}.loader-text span:nth-child(8){animation-delay:.4s}.loader-text span:nth-child(9){animation-delay:.45s}.loader-text span:nth-child(10){animation-delay:.5s}.loader-text span:nth-child(11){animation-delay:.55s}
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

.loader-bar { width: 240px; height: 2px; background: rgba(12,115,25,.12); margin-top: 28px; overflow: hidden; border-radius: 2px; }
.loader-bar-fill { width: 0%; height: 100%; background: linear-gradient(90deg, var(--green), var(--green-3)); animation: fill 1.6s var(--ease) forwards; }
@keyframes fill { to { width: 100%; } }

/* ============== NAV ============== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px var(--pad-x); transition: background .35s var(--ease), backdrop-filter .35s, padding .35s, box-shadow .35s;
  background: rgba(255,255,255,.7); backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(255,255,255,.92); padding: 8px var(--pad-x); border-bottom: 1px solid var(--line); box-shadow: 0 6px 24px -18px rgba(0,0,0,.2); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--green); }
.logo-svg { height: 44px; width: auto; transition: transform .35s var(--ease); display: block; }
.logo:hover .logo-svg { transform: scale(1.03); }
.nav.is-scrolled .logo-svg { height: 36px; }

.nav-links { justify-self: center; display: flex; gap: 28px; font-size: 13.5px; }
.nav-links a { position: relative; color: var(--ink-2); padding: 6px 2px; font-weight: 500; transition: color .25s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--green); transform-origin: right; transform: scaleX(0); transition: transform .35s var(--ease); border-radius: 2px; }
.nav-links a:hover { color: var(--green); }
.nav-links a:hover::after { transform-origin: left; transform: scaleX(1); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #fff; background: linear-gradient(135deg, var(--green) 0%, var(--green-2) 100%);
  border: 0;
  box-shadow: 0 8px 24px -8px rgba(12,115,25,.45);
  transition: transform .25s var(--ease), box-shadow .25s, filter .25s;
}
.nav-cta:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 12px 28px -8px rgba(12,115,25,.55); }
.nav-cta svg { width: 14px; stroke: currentColor; }

.nav-burger { display: none; width: 36px; height: 36px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-burger span { width: 18px; height: 2px; background: var(--green); border-radius: 2px; }

@media (max-width: 1080px) { .nav-links { display: none; } }
@media (max-width: 720px)  { .nav-cta { display: none; } .nav-burger { display: flex; } }

/* ============== HERO ============== */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  padding: clamp(120px, 16vh, 180px) var(--pad-x) clamp(80px, 10vh, 140px);
  display: flex; flex-direction: column; justify-content: center;
  isolation: isolate;
}
.hero-canvas-wrap {
  position: absolute;
  top: 50%; right: 0;
  width: clamp(440px, 50vw, 820px);
  height: clamp(440px, 78svh, 820px);
  transform: translateY(-50%);
  z-index: 1;
  touch-action: none;
  cursor: grab;
}
.hero-canvas-wrap.is-dragging { cursor: grabbing; }
.hero-canvas-wrap, .hero-canvas-wrap * { user-select: none; -webkit-user-select: none; }
/* Headline content sits on top so it remains clickable; the canvas wrap
   only catches clicks NOT covered by the headline (i.e. the right half) */
.hero-content { position: relative; z-index: 2; pointer-events: none; }
.hero-content > * { pointer-events: auto; }
@media (max-width: 980px) {
  .hero-canvas-wrap { right: -20%; width: 110%; height: 60%; opacity: .5; }
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(12,115,25,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(12,115,25,.06) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, #000, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, #000, transparent 85%);
}

.hero-content {
  max-width: var(--maxw); margin: 0 auto; width: 100%;
  position: relative; z-index: 2;
}
.hero-content { position: relative; z-index: 2; width: 100%; }
.hero-content > * { max-width: min(52%, 720px); }
.hero-content .hero-stats { max-width: 100%; }
.hero-title { font-size: clamp(44px, 7.6vw, 132px) !important; line-height: 1; padding-bottom: .08em; }
.hero-title .line { line-height: 1; padding-bottom: 4px; }
.hero-title .line > span { display: inline-block; padding-bottom: .04em; }
@media (max-width: 980px) {
  .hero-content > * { max-width: 100%; }
}
.hero-content .hero-stats { max-width: 100%; }
@media (max-width: 980px) {
  .hero-content > * { max-width: 100%; }
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-m); font-size: 11px; letter-spacing: .18em; color: var(--green);
  padding: 7px 14px 7px 10px; border: 1px solid rgba(12,115,25,.2); border-radius: 999px;
  background: rgba(255,255,255,.7); backdrop-filter: blur(6px);
  margin-bottom: 28px; font-weight: 600;
  text-decoration: none;
  transition: background .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s, color .25s;
  cursor: pointer;
}
.hero-eyebrow:hover {
  border-color: var(--green);
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -10px rgba(12,115,25,.45);
  color: var(--green-2);
}
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(12,115,25,.18); animation: pulse 1.6s ease-in-out infinite; }
.hero-eyebrow-arrow { opacity: 0; margin-left: -4px; transform: translateX(-2px); transition: opacity .25s, transform .25s var(--ease); color: var(--green); }
.hero-eyebrow:hover .hero-eyebrow-arrow { opacity: 1; transform: translateX(0); }
@keyframes pulse { 50% { transform: scale(1.4); opacity: .5; } }

.hero-title {
  font-family: var(--font-d);
  font-size: clamp(56px, 11vw, 192px);
  font-weight: 700; letter-spacing: -.045em; line-height: .92;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); animation: rise 1.1s var(--ease) forwards; }
.hero-title .line:nth-child(1) > span { animation-delay: .05s; }
.hero-title .line:nth-child(2) > span { animation-delay: .15s; }
.hero-title .line:nth-child(3) > span { animation-delay: .25s; }
.hero-title em { font-style: normal; }
.hero-title .line:nth-child(1) > span { color: var(--ink); }
.hero-title .line:nth-child(2) > span { color: var(--green); }
.hero-title .outline > span {
  -webkit-text-stroke: 1.5px var(--green); color: transparent;
  background: linear-gradient(180deg, var(--green) 0%, var(--green-3) 100%);
  -webkit-background-clip: text; background-clip: text;
}

.hero-sub {
  margin-top: 28px; max-width: 560px;
  font-size: clamp(15px, 1.15vw, 17px); color: var(--ink-2); line-height: 1.55;
  opacity: 0; animation: fadeUp 1s var(--ease) .55s forwards;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 40px; opacity: 0; animation: fadeUp 1s var(--ease) .7s forwards; }
.btn-primary {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 30px; border-radius: 999px; overflow: hidden;
  font-family: var(--font-d); font-weight: 700; letter-spacing: .08em; font-size: 13px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-2) 100%);
  color: #fff;
  box-shadow: 0 16px 40px -12px rgba(12,115,25,.55), 0 0 0 1px rgba(255,255,255,.18) inset;
  transition: transform .25s var(--ease), box-shadow .25s, filter .25s;
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 20px 50px -10px rgba(12,115,25,.65), 0 0 0 1px rgba(255,255,255,.22) inset; }
.btn-shine { position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-100%); }
.btn-primary:hover .btn-shine { transform: translateX(100%); transition: transform .9s var(--ease); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 26px; border-radius: 999px;
  border: 1.5px solid rgba(12,115,25,.25); color: var(--ink);
  font-size: 13px; letter-spacing: .04em; font-weight: 500;
  background: #fff;
  transition: color .25s, border-color .25s, background .25s;
}
.btn-ghost:hover { color: var(--green); border-color: var(--green); background: var(--green-4); }

.hero-stats {
  margin-top: clamp(60px, 9vh, 110px);
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(20px, 3vw, 50px);
  border-top: 1px solid var(--line); padding-top: 24px;
  opacity: 0; animation: fadeUp 1s var(--ease) .9s forwards;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: var(--font-d); font-size: clamp(28px, 3.4vw, 56px); font-weight: 700; letter-spacing: -.03em; color: var(--green); }
.stat-plus { display: inline-block; color: var(--accent); font-size: clamp(20px, 2.5vw, 36px); margin-left: -4px; vertical-align: top; }
.stat-label { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); line-height: 1.4; font-weight: 500; }

.stat-num + .stat-plus + .stat-label { margin-top: 4px; }

@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

.hero-marquee { position: absolute; left: 0; right: 0; bottom: 18px; overflow: hidden; opacity: .12; pointer-events: none; }
.marquee-track { display: flex; gap: 60px; white-space: nowrap; font-family: var(--font-d); font-size: clamp(80px, 12vw, 200px); font-weight: 700; line-height: 1; letter-spacing: -.03em; -webkit-text-stroke: 1px var(--green); color: transparent; animation: scroll 50s linear infinite; }
.m-dot { color: var(--green); -webkit-text-stroke: 0; font-size: .5em; align-self: center; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.hero-scroll-hint { position: absolute; right: var(--pad-x); bottom: 28px; display: flex; align-items: center; gap: 14px; font-family: var(--font-m); font-size: 10px; letter-spacing: .25em; color: var(--green); font-weight: 600; }
.hero-scroll-hint .line { width: 60px; height: 1.5px; background: linear-gradient(90deg, transparent, rgba(12,115,25,.4)); position: relative; overflow: hidden; }
.hero-scroll-hint .line::after { content: ""; position: absolute; inset: 0; background: var(--green); animation: scrolldot 2.4s ease-in-out infinite; }
@keyframes scrolldot { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* ============== TICKER ============== */
.ticker {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(12,115,25,.06), transparent 50%, rgba(184,92,26,.04));
  overflow: hidden;
  cursor: grab; user-select: none; -webkit-user-select: none;
  touch-action: pan-y;
}
.ticker.is-dragging { cursor: grabbing; }
.ticker-track {
  display: flex; gap: 56px; padding: 14px 0; white-space: nowrap;
  font-family: var(--font-m); font-size: 12.5px; letter-spacing: .15em;
  color: var(--green); font-weight: 600;
  animation: scroll 35s linear infinite;
  will-change: transform;
}
.ticker.is-paused .ticker-track,
.ticker.is-dragging .ticker-track { animation-play-state: paused; }
.ticker-track span:nth-child(even) { color: var(--ink); }

/* ============== SECTION FRAME ============== */
.page-section {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(80px, 12vh, 160px) var(--pad-x);
  position: relative;
}
.page-section-dark { background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%); color: #e8f1ea; max-width: none; padding-left: var(--pad-x); padding-right: var(--pad-x); position: relative; }
.page-section-dark::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 40% at 80% 20%, rgba(98,191,124,.2), transparent 60%); pointer-events: none; }
.page-section-dark > * { position: relative; z-index: 1; }
.page-section-dark .page-section-head, .page-section-dark .project-block, .page-section-dark .timeline, .page-section-dark .about-story, .page-section-dark .mission, .page-section-dark .flags, .page-section-dark .team { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.page-section-dark .section-title { color: #fff; }
.page-section-dark .section-title em { color: var(--green-on-dark); }
.page-section-dark .section-lead, .page-section-dark .project-note { color: #b9c8be; }
.page-section-dark .project-h { color: #e8f1ea; }
.page-section-dark .section-num { color: var(--green-on-dark); }
.page-section-dark strong { color: #fff; }
.page-section-dark .msn-item { border-color: var(--line-d); background: var(--bg-dark-2); }

.section-head, .page-section-head {
  display: grid; gap: 14px; max-width: 980px; margin-bottom: clamp(40px, 6vh, 80px);
}
.section-num { font-family: var(--font-m); font-size: 11px; letter-spacing: .25em; color: var(--accent); font-weight: 600; }
.section-title {
  font-family: var(--font-d); font-weight: 700; color: var(--ink);
  font-size: clamp(36px, 6vw, 96px); line-height: .98; letter-spacing: -.035em;
}
.section-title em { font-style: italic; color: var(--green); font-weight: 500; }
.section-lead { color: var(--ink-2); font-size: clamp(15px, 1.05vw, 17px); line-height: 1.6; max-width: 720px; }
.section-lead strong { color: var(--ink); font-weight: 600; }

/* ============== SERVICES — STAGGERED CARDS ============== */
.services { max-width: var(--maxw); margin: 0 auto; padding: clamp(60px, 10vh, 120px) var(--pad-x); }

.cards-stagger {
  display: grid; gap: 22px;
  grid-template-columns: repeat(12, 1fr);
}
.svc-card {
  position: relative; overflow: hidden; border-radius: 22px;
  min-height: 460px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  transition: transform .5s var(--ease), border-color .35s, box-shadow .35s;
  box-shadow: 0 4px 20px -10px rgba(0,0,0,.1);
}
.svc-card:nth-child(1) { grid-column: span 4; transform: translateY(40px); }
.svc-card:nth-child(2) { grid-column: span 5; min-height: 560px; }
.svc-card:nth-child(3) { grid-column: span 3; transform: translateY(20px); }
.svc-card:hover { border-color: var(--green); transform: translateY(0) scale(1.01); box-shadow: 0 24px 60px -20px rgba(12,115,25,.35); }

.svc-card-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 1s var(--ease), filter .5s; filter: saturate(.95); }
.svc-card:hover .svc-card-bg { transform: scale(1.06); filter: saturate(1.1); }
.svc-card-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(13,32,20,.95) 95%); }
.svc-card-meta { position: absolute; top: 22px; left: 22px; right: 22px; display: flex; justify-content: flex-end; font-family: var(--font-m); font-size: 11px; letter-spacing: .2em; color: #fff; font-weight: 700; }
.svc-card-meta span { padding: 5px 12px; background: var(--green); border-radius: 999px; }
.svc-card-body { position: absolute; bottom: 26px; left: 26px; right: 26px; color: #fff; }
.svc-card-body h3 { font-family: var(--font-d); font-size: clamp(28px, 3vw, 48px); font-weight: 700; letter-spacing: -.02em; margin-bottom: 10px; color: #fff; }
.svc-card-body p { color: rgba(255,255,255,.85); font-size: 14px; line-height: 1.5; max-width: 90%; }
.svc-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-family: var(--font-m); font-size: 11px; letter-spacing: .2em; color: var(--green-on-dark-2); font-weight: 600; }
.svc-link em { font-style: normal; transition: transform .35s var(--ease); }
.svc-card:hover .svc-link em { transform: translateX(6px); }

@media (max-width: 1024px) {
  .svc-card:nth-child(1), .svc-card:nth-child(2), .svc-card:nth-child(3) { grid-column: span 12; transform: none; min-height: 380px; }
}

.fleet-strip {
  margin-top: 80px; position: relative; overflow: hidden; border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px -30px rgba(0,0,0,.3);
}
.fleet-strip .fleet-plate {
  width: 100%; height: auto; display: block;
  object-fit: cover; object-position: center;
}
.fleet-caption {
  position: absolute; right: 24px; bottom: 24px;
  font-family: var(--font-m); font-size: 11px; letter-spacing: .25em;
  color: #fff; font-weight: 700;
  padding: 10px 16px; background: rgba(12,115,25,.85);
  backdrop-filter: blur(6px); border-radius: 999px;
  z-index: 2;
}

/* ============== MANIFESTO — BROKEN GRID ============== */
.manifesto {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(60px, 10vh, 120px) var(--pad-x);
  display: grid; gap: clamp(30px, 5vw, 70px);
  grid-template-columns: 1.2fr 1fr;
  align-items: start;
}
.manifesto-block { max-width: 620px; padding-top: 30px; }
.manifesto-num { font-family: var(--font-m); font-size: 11px; letter-spacing: .25em; color: var(--accent); font-weight: 600; margin-bottom: 16px; }
.manifesto-h { font-family: var(--font-d); font-size: clamp(36px, 5vw, 72px); font-weight: 700; letter-spacing: -.03em; line-height: 1; margin-bottom: 20px; color: var(--ink); }
.manifesto-h em { color: var(--green); font-style: italic; font-weight: 500; }
.manifesto-block p { color: var(--ink-2); margin-bottom: 14px; line-height: 1.7; font-size: 15px; }
.manifesto-block strong { color: var(--ink); font-weight: 600; }

.manifesto-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.manifesto-tags span { padding: 7px 14px; border: 1px solid rgba(12,115,25,.3); border-radius: 999px; font-family: var(--font-m); font-size: 11px; letter-spacing: .1em; color: var(--green); background: rgba(12,115,25,.04); font-weight: 600; }

.manifesto-figure { position: relative; overflow: hidden; border-radius: 22px; border: 1px solid var(--line); transform: translateY(60px); aspect-ratio: 4/3; box-shadow: 0 24px 50px -30px rgba(0,0,0,.25); }
.manifesto-figure--big { transform: translateY(-30px); aspect-ratio: 5/4; }
.manifesto-figure img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 1.2s var(--ease); }
.manifesto-figure:hover img { transform: scale(1.05); }
.manifesto-figure figcaption { position: absolute; left: 16px; bottom: 16px; font-family: var(--font-m); font-size: 10.5px; letter-spacing: .15em; color: #fff; padding: 7px 12px; background: rgba(12,115,25,.85); border-radius: 999px; backdrop-filter: blur(4px); font-weight: 600; }

@media (max-width: 880px) {
  .manifesto { grid-template-columns: 1fr; }
  .manifesto-figure { transform: none !important; }
}

/* ============== FEATURE BULLETS ============== */
.feature-bullets {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px;
  margin-bottom: 60px; padding: 32px; border: 1px solid var(--line); border-radius: 22px;
  background: linear-gradient(135deg, rgba(12,115,25,.06), rgba(98,191,124,.04));
  box-shadow: 0 12px 30px -20px rgba(12,115,25,.2);
}
.feature-bullets > div { display: flex; flex-direction: column; gap: 8px; }
.b-num { font-family: var(--font-d); font-size: clamp(20px, 2.4vw, 36px); font-weight: 700; color: var(--green); letter-spacing: -.02em; }
.b-label { font-family: var(--font-m); font-size: 11px; letter-spacing: .15em; color: var(--ink-2); font-weight: 500; }
.page-section-dark .feature-bullets { background: rgba(255,255,255,.04); border-color: var(--line-d); }
.page-section-dark .b-num { color: var(--green-on-dark-2); }
.page-section-dark .b-label { color: #b9c8be; }
@media (max-width: 720px) { .feature-bullets { grid-template-columns: repeat(2, 1fr); } }

/* ============== PROJECT BLOCK + MASONRY ============== */
.project-block { margin-bottom: clamp(40px, 6vh, 80px); }
.project-h { font-family: var(--font-d); font-size: clamp(20px, 2vw, 28px); font-weight: 500; margin-bottom: 22px; color: var(--ink); }
.project-h span { color: var(--accent); margin-right: 10px; }
.project-h em { color: var(--green); font-style: italic; }
.project-note { color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.project-block-text { padding: 24px; border: 1px dashed rgba(12,115,25,.25); border-radius: 14px; background: rgba(12,115,25,.03); }

/* Masonry: true Pinterest-style column flow.
   Photos render at their natural aspect ratio (no cropping) and pack
   tightly into 2/3/4 columns depending on viewport width. */
.masonry {
  column-count: 3;
  column-gap: 14px;
}
.masonry.msn-2 { column-count: 2; }
@media (min-width: 1280px) {
  .masonry             { column-count: 4; }
  .masonry.msn-2       { column-count: 2; }
}
@media (max-width: 880px) { .masonry, .masonry.msn-2 { column-count: 2; } }
@media (max-width: 520px) { .masonry, .masonry.msn-2 { column-count: 1; } }

/* Reset legacy span helpers — column flow handles balance automatically */
.masonry .msn-tall, .masonry .msn-wide { /* no-op kept for back-compat */ }

.msn-item {
  position: relative; overflow: hidden; border-radius: 14px;
  border: 1px solid var(--line); background: var(--bg-2); display: block;
  margin: 0 0 14px;                  /* gap between rows in column flow */
  break-inside: avoid;
  box-shadow: 0 4px 16px -8px rgba(0,0,0,.08);
}
.msn-item img {
  width: 100%; height: auto; display: block;
  transition: transform .8s var(--ease), filter .35s;
  filter: saturate(1);
}
.msn-item:hover img { transform: scale(1.04); filter: saturate(1.1); }
.msn-item::after {
  content: "↗"; position: absolute; top: 10px; right: 12px;
  width: 30px; height: 30px; border-radius: 999px;
  background: var(--green); display: grid; place-items: center;
  font-size: 14px; color: #fff; font-weight: 700;
  opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s;
  box-shadow: 0 6px 14px -6px rgba(12,115,25,.6);
}
.msn-item:hover::after { opacity: 1; transform: translateY(0); }

/* legacy mobile masonry override removed — column flow handles it */

/* ============== MARINE — LOGO MARQUEE + HORIZONTAL FLEET ============== */
.logos-marquee {
  overflow: hidden;
  padding: 28px 0 32px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-bottom: 50px; background: #fff;
  cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y;
}
.logos-marquee.is-dragging { cursor: grabbing; }
.logos-track { display: flex; gap: 80px; align-items: center; animation: scroll 32s linear infinite; will-change: transform; }
.logos-marquee.is-dragging .logos-track { animation-play-state: paused; }
.logos-track a { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 8px; transition: transform .3s var(--ease); }
.logos-track a:hover { transform: translateY(-2px); }
.logos-track img { height: 56px; width: auto; max-width: 200px; object-fit: contain; filter: grayscale(1); opacity: .55; transition: filter .3s, opacity .3s; pointer-events: none; -webkit-user-drag: none; user-drag: none; }
.logos-track a:hover img { filter: none; opacity: 1; }
.logos-marquee:hover .logos-track { animation-play-state: paused; }

.fleet-h { font-family: var(--font-d); font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; color: var(--ink); margin: 50px 0 22px; display: flex; align-items: baseline; gap: 14px; }
.page-section-dark .fleet-h { color: #fff; }
.fleet-h-num { font-family: var(--font-m); font-size: 11px; color: var(--accent); letter-spacing: .2em; font-weight: 600; padding: 4px 10px; background: rgba(184,92,26,.1); border-radius: 6px; }
.page-section-dark .fleet-h-num { color: var(--green-on-dark-2); background: rgba(98,191,124,.15); }

.fleet-h-scroll { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: var(--green) transparent; padding-bottom: 14px; margin-bottom: 24px; }
.fleet-h-scroll::-webkit-scrollbar { height: 8px; }
.fleet-h-scroll::-webkit-scrollbar-thumb { background: linear-gradient(90deg, var(--green), var(--green-3)); border-radius: 4px; }
.fleet-track { display: flex; gap: 20px; padding-bottom: 6px; }

.vessel { flex: 0 0 340px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; box-shadow: 0 4px 16px -8px rgba(0,0,0,.1); }
.vessel:hover { transform: translateY(-6px); border-color: var(--green); box-shadow: 0 20px 40px -16px rgba(12,115,25,.35); }
.vessel-img { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-3); }
.vessel img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .8s var(--ease); }
/* Panoramic / wide source images: letterbox with a dark background instead
   of cropping out half the ship. */
.vessel-img.is-pano { background: #0a1d12; display: grid; place-items: center; }
.vessel-img.is-pano img { width: 100%; height: auto; max-height: 100%; object-fit: contain; }
.vessel:hover img { transform: scale(1.05); }
.vessel-info { padding: 18px 20px; }
.v-tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-family: var(--font-m); font-size: 10px; letter-spacing: .18em; background: var(--green); color: #fff; margin-bottom: 10px; font-weight: 700; }
.vessel h4 { font-family: var(--font-d); font-size: 19px; font-weight: 600; color: var(--ink); }
.vessel dl { display: flex; gap: 18px; margin-top: 12px; }
.vessel dl > div { display: flex; flex-direction: column; }
.vessel dt { font-family: var(--font-m); font-size: 9.5px; letter-spacing: .15em; color: var(--ink-3); margin-bottom: 2px; }
.vessel dd { font-size: 13px; color: var(--ink); font-weight: 600; }
.page-section-dark .vessel { background: var(--bg-dark-2); border-color: var(--line-d); }
.page-section-dark .vessel:hover { border-color: var(--green-on-dark); }
.page-section-dark .vessel h4 { color: #fff; }
.page-section-dark .vessel dt { color: #8a9990; }
.page-section-dark .vessel dd { color: #e8f1ea; }

/* ============== INDUSTRIAL TIMELINE ============== */
.timeline { list-style: none; display: grid; gap: clamp(40px, 6vh, 80px); }
.t-item {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: center;
  padding: 28px; border-radius: 22px; border: 1px solid var(--line-d);
  background: rgba(255,255,255,.04);
  position: relative;
  transition: border-color .35s, background .35s;
}
.t-item:hover { border-color: var(--green-on-dark); background: rgba(98,191,124,.06); }
.t-item.t-reverse { grid-template-columns: 1fr 1.1fr; }
.t-item.t-reverse .t-img { order: 2; }
.t-img { overflow: hidden; border-radius: 16px; aspect-ratio: 4/3; background: var(--bg-dark-2); }
.t-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 1s var(--ease); }
.t-item:hover .t-img img { transform: scale(1.06); }
.t-loc { font-family: var(--font-m); font-size: 11px; letter-spacing: .2em; color: var(--green-on-dark-2); font-weight: 600; padding: 4px 12px; background: rgba(98,191,124,.15); border-radius: 6px; display: inline-block; }
.t-body h3 { font-family: var(--font-d); font-size: clamp(24px, 2.8vw, 42px); font-weight: 700; letter-spacing: -.02em; margin: 12px 0 14px; color: #fff; }
.t-spec { color: #b9c8be; font-size: 15px; line-height: 1.6; }

@media (max-width: 880px) {
  .t-item, .t-item.t-reverse { grid-template-columns: 1fr; }
  .t-item.t-reverse .t-img { order: initial; }
}

/* ============== BENTO GALLERY ============== */
.bento {
  display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 160px; gap: 14px;
}
.bn { position: relative; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2); display: block; box-shadow: 0 4px 16px -8px rgba(0,0,0,.1); transition: box-shadow .35s, transform .35s; }
.bn:hover { box-shadow: 0 20px 40px -16px rgba(12,115,25,.35); transform: translateY(-3px); }
.bn img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .9s var(--ease), filter .35s; filter: saturate(1); }
.bn:hover img { transform: scale(1.05); filter: saturate(1.1); }
.bn-cap {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  font-size: 12.5px; line-height: 1.4; color: #fff; padding: 11px 14px;
  background: rgba(13,32,20,.92); backdrop-filter: blur(8px); border-radius: 12px;
  opacity: 0; transform: translateY(8px); transition: all .35s var(--ease);
}
.bn:hover .bn-cap { opacity: 1; transform: translateY(0); }
.bn-cap strong { color: var(--green-on-dark-2); }
.bn::after { content: "↗"; position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 999px; background: var(--green); display: grid; place-items: center; font-size: 14px; color: #fff; font-weight: 700; box-shadow: 0 6px 14px -6px rgba(12,115,25,.6); }

/* Bento layout — broken grid, hero piece spans wide */
.b1  { grid-column: span 6; grid-row: span 3; }
.b2  { grid-column: span 3; grid-row: span 2; }
.b3  { grid-column: span 3; grid-row: span 2; }
.b4  { grid-column: span 4; grid-row: span 2; }
.b5  { grid-column: span 4; grid-row: span 2; }
.b6  { grid-column: span 4; grid-row: span 2; }
.b7  { grid-column: span 5; grid-row: span 3; }
.b8  { grid-column: span 4; grid-row: span 2; }
.b9  { grid-column: span 3; grid-row: span 2; }
.b10 { grid-column: span 3; grid-row: span 4; }
.b11 { grid-column: span 5; grid-row: span 2; }
.b12 { grid-column: span 4; grid-row: span 2; }
.b13 { grid-column: span 3; grid-row: span 2; }
.b14 { grid-column: span 5; grid-row: span 2; }
.b15 { grid-column: span 4; grid-row: span 2; }
.b16 { grid-column: span 4; grid-row: span 2; }
.b17 { grid-column: span 5; grid-row: span 3; }
/* New environmental / custom-build cards — balanced 4×2 blocks with two hero spans */
.b18 { grid-column: span 4; grid-row: span 3; }
.b19 { grid-column: span 4; grid-row: span 3; }
.b20 { grid-column: span 4; grid-row: span 3; }
.b21 { grid-column: span 5; grid-row: span 3; }
.b22 { grid-column: span 4; grid-row: span 3; }
.b23 { grid-column: span 3; grid-row: span 3; }
.b24 { grid-column: span 4; grid-row: span 3; }
.b25 { grid-column: span 4; grid-row: span 3; }
.b26 { grid-column: span 4; grid-row: span 3; }
.b27 { grid-column: span 4; grid-row: span 3; }

@media (max-width: 1024px) {
  .bento { grid-auto-rows: 140px; }
  .b1, .b7, .b10, .b17 { grid-column: span 12; grid-row: span 2; }
  .b2,.b3,.b4,.b5,.b6,.b8,.b9,.b11,.b12,.b13,.b14,.b15,.b16 { grid-column: span 6; grid-row: span 2; }
  .b18,.b19,.b20,.b21,.b22,.b23,.b24,.b25,.b26,.b27 { grid-column: span 6; grid-row: span 2; }
}

/* ============== PARTS ============== */
.parts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.parts-card { padding: 40px; border: 1px solid var(--line); border-radius: 22px; background: #fff; transition: border-color .35s, transform .35s, box-shadow .35s; box-shadow: 0 4px 20px -10px rgba(0,0,0,.1); }
.parts-card:hover { border-color: var(--green); transform: translateY(-3px); box-shadow: 0 24px 50px -20px rgba(12,115,25,.3); }
.parts-logo { max-height: 60px; max-width: 220px; width: auto; margin-bottom: 24px; object-fit: contain; }
.parts-card h3 { font-family: var(--font-d); font-size: 28px; font-weight: 600; margin-bottom: 14px; color: var(--ink); }
.parts-card p { color: var(--ink-2); line-height: 1.7; font-size: 14.5px; }
@media (max-width: 720px) { .parts-grid { grid-template-columns: 1fr; } }

.parts-cta { margin-top: 40px; padding: 32px; border: 1px solid var(--line); border-radius: 18px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; background: linear-gradient(135deg, var(--green-4), #fff); }
.parts-cta span { color: var(--ink-2); font-weight: 500; }
.parts-mail { font-family: var(--font-d); font-size: clamp(18px, 2vw, 26px); color: var(--green); border-bottom: 2px solid var(--green); padding-bottom: 2px; font-weight: 600; }
.parts-mail:hover { color: var(--accent); border-color: var(--accent); }

/* ============== ABOUT / TEAM ============== */
.about-story { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; margin-bottom: 80px; align-items: start; }
.about-story h3 { font-family: var(--font-d); font-size: clamp(22px, 2vw, 30px); font-weight: 600; margin-bottom: 18px; color: #fff; }
.about-story p { color: #b9c8be; line-height: 1.8; margin-bottom: 14px; font-size: 15px; }
.about-story strong { color: #fff; }
.about-locations { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-locations a { display: block; aspect-ratio: 1.2/1; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-d); background: var(--bg-dark-2); }
.about-locations img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 1s var(--ease); }
.about-locations a:hover img { transform: scale(1.06); }
@media (max-width: 880px) { .about-story { grid-template-columns: 1fr; } }

.mission { padding: clamp(36px, 5vw, 64px); border-radius: 22px; background: linear-gradient(135deg, rgba(98,191,124,.12), rgba(98,191,124,.04)); border: 1px solid var(--line-d); margin-bottom: 60px; }
.mission-h { font-family: var(--font-d); font-size: clamp(28px, 3.5vw, 56px); font-weight: 700; letter-spacing: -.02em; margin-bottom: 22px; color: #fff; }
.mission p { color: #b9c8be; line-height: 1.8; margin-bottom: 14px; max-width: 900px; font-size: 15px; }
.mission strong { color: #fff; }
.mission-final { font-family: var(--font-d); font-size: clamp(18px, 1.6vw, 24px); font-weight: 700; color: #fff; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-d); }
.mission-final em { color: var(--green-on-dark-2); font-style: italic; }

.flags { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-bottom: 80px; }
.flag { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px; border: 1px solid var(--line-d); border-radius: 14px; background: rgba(255,255,255,.04); transition: border-color .35s, transform .35s; }
.flag:hover { border-color: var(--green-on-dark); transform: translateY(-2px); }
.flag img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 6px; background: #fff; }
.flag span { font-family: var(--font-m); font-size: 11px; letter-spacing: .15em; color: #fff; font-weight: 600; }
.flag em { font-style: normal; font-size: 10px; color: var(--green-on-dark-2); letter-spacing: .15em; font-weight: 600; }
.flag-cert img { object-fit: contain; padding: 6px; }
@media (max-width: 720px) { .flags { grid-template-columns: repeat(3, 1fr); } }

.team-h { font-family: var(--font-d); font-size: clamp(28px, 3vw, 44px); font-weight: 700; margin-bottom: 28px; letter-spacing: -.02em; color: #fff; }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.member { padding: 26px; border: 1px solid var(--line-d); border-radius: 18px; background: rgba(255,255,255,.04); transition: border-color .35s, transform .35s; }
.member:hover { border-color: var(--green-on-dark); transform: translateY(-3px); }
.member-img { aspect-ratio: 1/1; overflow: hidden; border-radius: 14px; margin-bottom: 18px; background: var(--bg-dark-2); }
.member-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: saturate(.95); transition: transform 1s var(--ease), filter .35s; }
.member:hover .member-img img { transform: scale(1.04); filter: saturate(1.05); }
.member h4 { font-family: var(--font-d); font-size: 20px; font-weight: 600; margin-bottom: 4px; color: #fff; }
.member-title { font-family: var(--font-m); font-size: 11px; letter-spacing: .15em; color: var(--green-on-dark-2); font-weight: 600; }
.member p { color: #b9c8be; line-height: 1.7; font-size: 13.5px; margin-top: 12px; }
@media (max-width: 880px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team { grid-template-columns: 1fr; } }

/* ============== CONTACT ============== */
.contact {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(80px, 12vh, 160px) var(--pad-x);
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 80px); }
.contact-h { font-family: var(--font-d); font-size: clamp(36px, 5vw, 80px); font-weight: 700; line-height: .95; letter-spacing: -.03em; margin: 18px 0 22px; color: var(--ink); }
.contact-h em { color: var(--green); font-style: italic; font-weight: 500; }
.contact-lead { color: var(--ink-2); font-size: 16px; line-height: 1.6; max-width: 480px; margin-bottom: 36px; }
.contact-info { list-style: none; display: grid; gap: 18px; }
.contact-info li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); align-items: baseline; }
.contact-info span:first-child { font-family: var(--font-m); font-size: 11px; letter-spacing: .18em; color: var(--green); text-transform: uppercase; font-weight: 700; }
.contact-info a { color: var(--ink); font-weight: 500; }
.contact-info a:hover { color: var(--green); }

.contact-form { display: flex; flex-direction: column; gap: 18px; padding: 40px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 24px 60px -30px rgba(12,115,25,.25); }
.contact-form label { display: flex; flex-direction: column; gap: 8px; }
.contact-form span { font-family: var(--font-m); font-size: 11px; letter-spacing: .18em; color: var(--green); text-transform: uppercase; font-weight: 700; }
.contact-form em { color: var(--accent); font-style: normal; }
.contact-form input, .contact-form select, .contact-form textarea {
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 14px 16px; font: inherit; color: var(--ink); transition: border-color .25s, background .25s, box-shadow .25s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(12,115,25,.1);
}
.contact-form textarea { resize: vertical; }
.form-note { font-family: var(--font-m); font-size: 10.5px; letter-spacing: .1em; color: var(--ink-3); }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

/* ============== FOOTER ============== */
.footer { background: var(--bg-dark); color: #b9c8be; margin-top: 0; }
.footer-marquee { overflow: hidden; padding: 30px 0; border-bottom: 1px solid var(--line-d); }
.footer-marquee-track { display: flex; gap: 36px; white-space: nowrap; font-family: var(--font-d); font-size: clamp(36px, 5vw, 80px); font-weight: 700; letter-spacing: -.03em; -webkit-text-stroke: 1px var(--green-on-dark); color: transparent; animation: scroll 40s linear infinite; }
.footer-marquee-track span:nth-child(odd) { color: #fff; -webkit-text-stroke: 0; }

.footer-logo-row { max-width: var(--maxw); margin: 0 auto; padding: 40px var(--pad-x) 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-logo { height: 64px; width: auto; color: var(--green-on-dark); }
.footer-tagline { font-family: var(--font-m); font-size: 12px; letter-spacing: .2em; color: var(--green-on-dark-2); text-transform: uppercase; font-weight: 600; }

.footer-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 40px var(--pad-x) 50px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 60px);
}
.f-label { font-family: var(--font-m); font-size: 11px; letter-spacing: .2em; color: var(--green-on-dark-2); display: block; margin-bottom: 16px; font-weight: 700; text-transform: uppercase; }
.footer-grid p, .footer-grid li { color: #b9c8be; line-height: 1.7; font-size: 14px; }
.footer-grid ul { list-style: none; }
.footer-grid a { color: #b9c8be; }
.footer-grid a:hover { color: var(--green-on-dark-2); }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.footer-bottom { max-width: var(--maxw); margin: 0 auto; padding: 24px var(--pad-x); border-top: 1px solid var(--line-d); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--font-m); font-size: 11px; letter-spacing: .12em; color: #8a9990; }
.footer-bottom a { color: var(--green-on-dark-2); }

/* ============== REVEAL ANIMATIONS ============== */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: translateY(0); }

/* ============== VESSEL POPUP ============== */
.vp {
  position: fixed; inset: 0; z-index: 2050;
  display: flex; align-items: center; justify-content: center;
  background: rgba(7, 18, 11, .82);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
  padding: clamp(20px, 4vw, 60px);
  overflow-y: auto;
}
.vp.is-open { opacity: 1; visibility: visible; }
.vp-card {
  position: relative;
  width: min(880px, 100%);
  margin: auto;
  background: linear-gradient(180deg, #0d2014 0%, #0a1a10 100%);
  color: #e8f1ea;
  border-radius: 22px;
  border: 1.5px solid var(--green-3);
  box-shadow:
    0 0 0 2px rgba(98, 191, 124, .35),
    0 0 24px rgba(98, 191, 124, .55),
    0 0 60px rgba(98, 191, 124, .35),
    0 0 120px rgba(12, 115, 25, .25),
    0 30px 80px -20px rgba(0, 0, 0, .7);
  animation: neonPulse 2.6s ease-in-out infinite;
  transform: scale(.95) translateY(8px);
  transition: transform .35s var(--ease);
  overflow: hidden;
}
.vp.is-open .vp-card { transform: scale(1) translateY(0); }
.vp-close {
  position: absolute; top: 16px; right: 16px;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; z-index: 6;
  background: rgba(13, 32, 20, .92); color: #fff;
  border: 1.5px solid var(--green-3);
  cursor: pointer;
  box-shadow: 0 0 14px rgba(98, 191, 124, .55);
  transition: transform .25s var(--ease), background .25s;
}
.vp-close:hover { transform: rotate(90deg) scale(1.05); background: var(--green); border-color: var(--green); }
.vp-media {
  position: relative;
  aspect-ratio: 5/3;
  overflow: hidden;
  background: #0a1d12;
  border-bottom: 1px solid var(--line-d);
}
.vp-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vp-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(13,32,20,.85) 100%);
}
.vp-tag {
  position: absolute; top: 18px; left: 18px; z-index: 3;
  display: inline-flex; align-items: center;
  font-family: var(--font-m); font-size: 11px; font-weight: 700; letter-spacing: .2em;
  color: #fff;
  background: var(--green); padding: 6px 12px; border-radius: 999px;
  box-shadow: 0 4px 12px -4px rgba(12,115,25,.6);
}
.vp-body { padding: clamp(24px, 3vw, 36px); }
.vp-name {
  font-family: var(--font-d); font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700; letter-spacing: -.02em; color: #fff; line-height: 1.05;
  margin-bottom: 18px;
}
.vp-specs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-d);
}
.vp-specs > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vp-specs dt {
  font-family: var(--font-m); font-size: 10px; letter-spacing: .18em;
  color: var(--green-on-dark-2); font-weight: 700;
}
.vp-specs dd {
  font-size: 14px; color: #fff; line-height: 1.4; font-weight: 500;
}
.vp-desc { font-size: 14.5px; line-height: 1.7; color: #b9c8be; }
.vp-desc p { margin-bottom: 12px; }
.vp-desc strong { color: var(--green-on-dark-2); font-weight: 700; }

/* Drag-to-scroll cursor on fleet rows */
.fleet-h-scroll { cursor: grab; user-select: none; -webkit-user-select: none; }
.fleet-h-scroll.is-dragging { cursor: grabbing; }
.fleet-h-scroll img { -webkit-user-drag: none; user-drag: none; pointer-events: none; }
/* But keep clicks on the card itself working when NOT dragging */
.fleet-h-scroll .vessel { user-select: none; }

/* ============== REQUEST A QUOTE MODAL ============== */
.qm {
  position: fixed; inset: 0; z-index: 2100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(7, 18, 11, .82);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
  padding: clamp(20px, 4vw, 60px);
  overflow-y: auto;
}
.qm.is-open { opacity: 1; visibility: visible; }

.qm-card {
  position: relative;
  width: min(640px, 100%);
  margin: auto;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 22px;
  background: linear-gradient(180deg, #0d2014 0%, #0a1a10 100%);
  color: #e8f1ea;
  border: 1.5px solid var(--green-3);
  box-shadow:
    0 0 0 2px rgba(98, 191, 124, .35),
    0 0 24px rgba(98, 191, 124, .55),
    0 0 60px rgba(98, 191, 124, .35),
    0 0 120px rgba(12, 115, 25, .25),
    0 30px 80px -20px rgba(0, 0, 0, .7);
  animation: neonPulse 2.6s ease-in-out infinite;
  transform: scale(.95) translateY(8px);
  transition: transform .35s var(--ease);
}
.qm.is-open .qm-card { transform: scale(1) translateY(0); }

.qm-close {
  position: absolute; top: 16px; right: 16px;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(13, 32, 20, .9);
  border: 1.5px solid var(--green-3);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(98, 191, 124, .55), 0 0 32px rgba(98, 191, 124, .25);
  transition: transform .25s var(--ease), background .25s, box-shadow .25s;
  z-index: 5;
}
.qm-close:hover { transform: rotate(90deg) scale(1.05); background: var(--green); border-color: var(--green); }

.qm-head { margin-bottom: 22px; }
.qm-eyebrow {
  display: inline-block; font-family: var(--font-m); font-size: 11px;
  letter-spacing: .25em; color: var(--green-on-dark-2); font-weight: 700;
  padding: 5px 12px; border: 1px solid rgba(98,191,124,.35);
  border-radius: 999px; margin-bottom: 14px;
}
.qm-title {
  font-family: var(--font-d); font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700; line-height: 1; letter-spacing: -.02em; color: #fff;
  margin-bottom: 10px;
}
.qm-title em { color: var(--green-on-dark-2); font-style: italic; font-weight: 500; }
.qm-lead { color: #b9c8be; font-size: 14px; line-height: 1.55; }

.qm-form { display: flex; flex-direction: column; gap: 14px; }
.qm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qm-row label, .qm-full { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.qm-form span { font-family: var(--font-m); font-size: 11px; letter-spacing: .15em; color: var(--green-on-dark-2); text-transform: uppercase; font-weight: 700; }
.qm-form em { color: var(--accent-2); font-style: normal; }
.qm-form input, .qm-form select, .qm-form textarea {
  background: rgba(255,255,255,.04);
  border: 1.5px solid var(--line-d2);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit; color: #fff;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.qm-form input::placeholder, .qm-form textarea::placeholder { color: rgba(185,200,190,.55); }
.qm-form input:focus, .qm-form select:focus, .qm-form textarea:focus {
  outline: none;
  border-color: var(--green-on-dark);
  background: rgba(98,191,124,.08);
  box-shadow: 0 0 0 4px rgba(98,191,124,.15);
}
.qm-form input:invalid:not(:placeholder-shown),
.qm-form textarea:invalid:not(:placeholder-shown) { border-color: rgba(220,80,80,.6); }
.qm-form select option { background: #0d2014; color: #fff; }
.qm-form textarea { resize: vertical; min-height: 90px; }

.qm-actions {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px;
}
.qm-submit { padding: 14px 26px; font-size: 12px; }
.qm-note { font-family: var(--font-m); font-size: 10.5px; letter-spacing: .12em; color: var(--ink-3); }

.qm-success {
  margin-top: 6px; padding: 14px 16px; border-radius: 10px;
  background: rgba(98,191,124,.1); border: 1px solid var(--green-on-dark);
  color: #d6f1de; font-size: 14px; line-height: 1.5;
  display: flex; flex-direction: column; gap: 4px;
}
.qm-success strong { color: #fff; font-weight: 700; }

@media (max-width: 560px) { .qm-row { grid-template-columns: 1fr; } }

/* ============== LIGHTBOX ============== */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(7, 18, 11, .82);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
  padding: clamp(20px, 4vw, 60px);
}
.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox-figure {
  position: relative; max-width: min(94vw, 1400px); max-height: 88vh;
  margin: 0; padding: 8px;
  border-radius: 18px;
  background: #0d2014;
  border: 1.5px solid var(--green-3);
  box-shadow:
    0 0 0 2px rgba(98, 191, 124, .35),
    0 0 24px rgba(98, 191, 124, .55),
    0 0 60px rgba(98, 191, 124, .35),
    0 0 120px rgba(12, 115, 25, .25),
    0 30px 80px -20px rgba(0, 0, 0, .7);
  animation: neonPulse 2.6s ease-in-out infinite;
  transform: scale(.95);
  transition: transform .35s var(--ease);
}
.lightbox.is-open .lightbox-figure { transform: scale(1); }
@keyframes neonPulse {
  0%, 100% { box-shadow:
    0 0 0 2px rgba(98, 191, 124, .35),
    0 0 24px rgba(98, 191, 124, .55),
    0 0 60px rgba(98, 191, 124, .35),
    0 0 120px rgba(12, 115, 25, .25),
    0 30px 80px -20px rgba(0, 0, 0, .7); }
  50%      { box-shadow:
    0 0 0 2px rgba(98, 191, 124, .55),
    0 0 32px rgba(98, 191, 124, .75),
    0 0 80px rgba(98, 191, 124, .55),
    0 0 160px rgba(12, 115, 25, .35),
    0 30px 80px -20px rgba(0, 0, 0, .7); }
}
.lightbox-figure img {
  display: block;
  max-width: 100%; max-height: calc(88vh - 60px);
  width: auto; height: auto;
  border-radius: 12px;
  object-fit: contain;
}
.lightbox-figure figcaption {
  margin-top: 10px; padding: 4px 6px;
  font-family: var(--font-m); font-size: 11px; letter-spacing: .15em;
  color: var(--green-on-dark-2); text-align: center; text-transform: uppercase;
  min-height: 14px;
}
.lightbox-close {
  position: absolute; top: 18px; right: 18px; z-index: 10;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(13, 32, 20, .9);
  border: 1.5px solid var(--green-3);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(98, 191, 124, .55), 0 0 32px rgba(98, 191, 124, .25);
  transition: transform .25s var(--ease), background .25s, box-shadow .25s;
}
.lightbox-close:hover { transform: rotate(90deg) scale(1.05); background: var(--green); border-color: var(--green); box-shadow: 0 0 22px rgba(98, 191, 124, .9), 0 0 50px rgba(98, 191, 124, .55); }

/* Make every content image hint that it's clickable */
[data-zoomable] { cursor: zoom-in; }

/* ============== INTERACTIVE MAP ============== */
.map-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #08160d 100%);
  color: #e8f1ea;
  padding: clamp(80px, 12vh, 140px) var(--pad-x);
  position: relative; overflow: hidden;
}
.map-section::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 30% 20%, rgba(98,191,124,.15), transparent 60%),
    radial-gradient(ellipse 40% 30% at 75% 80%, rgba(98,191,124,.10), transparent 60%);
  pointer-events: none;
}
.map-wrap { max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 1; }
.map-section .section-title { color: #fff; }
.map-section .section-title em { color: var(--green-on-dark-2); }
.map-section .section-lead { color: #b9c8be; }
.map-section .section-num { color: var(--green-on-dark-2); }

.map-stage {
  position: relative; margin-top: 50px;
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 380px); gap: 28px;
  align-items: stretch;
}
@media (max-width: 1100px) { .map-stage { grid-template-columns: minmax(0, 1.4fr) minmax(300px, 340px); } }
@media (max-width: 980px)  { .map-stage { grid-template-columns: 1fr; } }

.map-canvas {
  position: relative; aspect-ratio: 16/11;
  border-radius: 22px; overflow: hidden;
  background: #0a1d12;
  border: 1px solid var(--line-d);
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.6), 0 0 0 1px rgba(98,191,124,.08) inset;
}
/* ===== STATIC SVG MAP =====
   The US silhouette image is locked to a fixed aspect-ratio canvas. Pins
   and the animated arc layer sit on top in absolute layers using % offsets
   that map to the SVG's 959×593 viewBox. */
.static-map {
  position: relative; width: 100%; height: 100%;
  display: block; overflow: hidden;
}
/* Each layer transforms together when a state is zoomed in.
   --rri-ox / --rri-oy = transform-origin (% of element)
   --rri-scale         = zoom factor */
.static-map-img,
.static-map-svg,
.static-map-fx,
.pins-overlay {
  transition: transform .9s cubic-bezier(.2, 1, .25, 1),
              transform-origin .9s cubic-bezier(.2, 1, .25, 1);
  transform-origin: 50% 50%;
}
.static-map.is-state-zoomed .static-map-img,
.static-map.is-state-zoomed .static-map-svg,
.static-map.is-state-zoomed .static-map-fx,
.static-map.is-state-zoomed .pins-overlay {
  transform-origin: var(--rri-ox, 50%) var(--rri-oy, 50%);
  transform: scale(var(--rri-scale, 1));
}
.static-map-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  user-select: none; -webkit-user-drag: none;
}
.static-map-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.static-map-svg svg { width: 100%; height: 100%; display: block; }
.static-map-fx {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: visible;
}
.static-map.is-arcs-hidden .static-map-fx { opacity: 0; }
.static-map-fx { transition: transform .9s cubic-bezier(.2,1,.25,1), opacity .4s; }
.pins-overlay {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;        /* only the pins themselves get clicks */
}

/* ===== State paths: hover + click ===== */
.rri-state { transition: fill .25s, filter .25s; }
.rri-state-active {
  cursor: pointer;
  fill: #1a3a25;
}
.rri-state-active:hover,
.rri-state-active:focus-visible {
  fill: #2c5e3d;
  outline: none;
  filter: drop-shadow(0 0 6px rgba(98,191,124,.55));
}
.rri-state-active.is-active {
  fill: #2c5e3d;
  filter: drop-shadow(0 0 14px rgba(98,191,124,.85));
}
/* When zoomed, counter-scale the pin so it stays the same physical size on screen */
.static-map.is-state-zoomed .rri-pin {
  transform: scale(calc(1 / var(--rri-scale, 1)));
}
.static-map.is-state-zoomed .rri-pin:hover {
  transform: scale(calc(1 / var(--rri-scale, 1))) translateY(-2px);
}

/* Out-of-state pins: hidden when zoomed in */
.rri-pin.is-out-of-state {
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .35s, visibility .35s;
}

/* "← Back to US" button */
.rri-state-back {
  position: absolute; top: 16px; left: 16px; z-index: 30;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px;
  background: rgba(8, 18, 12, .92); color: #fff;
  border: 1px solid var(--green-on-dark);
  border-radius: 999px;
  font-family: var(--font-m); font-size: 11px; font-weight: 700; letter-spacing: .15em;
  cursor: pointer; line-height: 1;
  box-shadow: 0 4px 12px -4px rgba(0,0,0,.5), 0 0 12px rgba(98,191,124,.35);
  opacity: 0; visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .3s, visibility .3s, transform .3s var(--ease), background .25s;
}
.static-map.is-state-zoomed .rri-state-back {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.rri-state-back:hover { background: var(--green); border-color: var(--green); }
.rri-state-back svg  { color: var(--green-on-dark-2); }
.rri-state-back:hover svg { color: #fff; }

/* ===== Animated arc lines (HQ → other pins) ===== */
.static-map-fx .arcs .arc {
  fill: none;
  stroke: var(--green-on-dark-2, #9be0a8);
  stroke-width: 1.2;
  stroke-linecap: round;
  filter: url(#arc-glow);
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  opacity: 0;
}
.static-map.is-revealed .arcs .arc {
  animation: arcDraw 1.4s ease-out var(--delay, 0s) forwards,
             arcShimmer 3s ease-in-out var(--delay, 0s) infinite;
}
@keyframes arcDraw {
  0%   { stroke-dashoffset: 1000; opacity: 0; }
  20%  { opacity: .7; }
  100% { stroke-dashoffset: 0;    opacity: .55; }
}
@keyframes arcShimmer {
  0%, 100% { stroke-opacity: .55; }
  50%      { stroke-opacity: .85; }
}

/* ===== Pins ===== */
.rri-pin {
  position: absolute;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;        /* center the pin on its lat/lng */
  padding: 0; border: 0; background: transparent;
  pointer-events: auto;
  cursor: pointer;
  --c: #62BF7C;
  z-index: 5;
  transition: transform .35s var(--ease), z-index 0s linear;
}
.rri-pin.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s, visibility .25s; }
.rri-pin .rri-pin-dot {
  position: absolute; inset: 0; margin: auto;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--c);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(0,0,0,.4), 0 0 12px var(--c);
  transition: width .25s var(--ease), height .25s var(--ease), box-shadow .25s, transform .25s var(--ease);
}
.rri-pin .rri-pin-pulse {
  position: absolute; inset: 0; margin: auto;
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--c);
  opacity: .55;
  animation: pinPulse 2.2s ease-out infinite;
  pointer-events: none;
}
.rri-pin .rri-pin-pulse-2 {
  animation-delay: 1.1s;
}
@keyframes pinPulse {
  0%   { transform: scale(.6); opacity: .9; }
  100% { transform: scale(3.6); opacity: 0; }
}
.rri-pin .rri-pin-label {
  position: absolute; left: 50%; top: -8px;
  transform: translate(-50%, -100%);
  font-family: var(--font-m);
  font-size: 10px; letter-spacing: .12em; font-weight: 700;
  color: #fff;
  background: rgba(8,18,12,.92);
  border: 1px solid var(--c);
  padding: 4px 8px; border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 4px 12px -4px rgba(0,0,0,.6), 0 0 12px var(--c);
  opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s, transform .25s var(--ease);
  pointer-events: none;
}
.rri-pin:hover .rri-pin-label,
.rri-pin.is-on .rri-pin-label {
  opacity: 1; visibility: visible;
  transform: translate(-50%, calc(-100% - 4px));
}
.rri-pin:hover .rri-pin-dot,
.rri-pin.is-on .rri-pin-dot {
  width: 18px; height: 18px;
  box-shadow: 0 0 0 3px rgba(255,255,255,.2), 0 0 18px var(--c), 0 0 28px var(--c);
}
.rri-pin:hover { z-index: 20; transform: translateY(-2px); }
.rri-pin.is-on { z-index: 25; }
.rri-pin.is-on .rri-pin-pulse,
.rri-pin.is-on .rri-pin-pulse-2 {
  border-width: 2.5px;
  animation-duration: 1.4s;
}

/* The HQ pin is special — bigger, golden, always pulsing brighter */
.rri-pin.t-hq .rri-pin-dot { width: 16px; height: 16px; }
.rri-pin.t-hq:hover .rri-pin-dot,
.rri-pin.t-hq.is-on .rri-pin-dot { width: 22px; height: 22px; }

.map-side {
  display: flex; flex-direction: column; gap: 16px;
  padding: 22px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-d);
  border-radius: 22px;
  min-height: 0; min-width: 0;
  overflow: hidden;
}
.map-side-h { font-family: var(--font-m); font-size: 11px; letter-spacing: .25em; color: var(--green-on-dark-2); text-transform: uppercase; font-weight: 700; }
.map-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.map-filter {
  padding: 7px 14px; border: 1px solid var(--line-d2); border-radius: 999px;
  background: rgba(255,255,255,.04); color: #b9c8be;
  font-family: var(--font-m); font-size: 11px; letter-spacing: .1em;
  cursor: pointer; transition: all .25s;
}
.map-filter:hover { color: #fff; border-color: var(--green-on-dark); }
.map-filter.is-active { background: var(--green); color: #fff; border-color: var(--green); }
.map-filter .swatch { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: middle; }

.map-list { flex: 1; overflow-y: auto; display: grid; gap: 8px; padding-right: 6px; max-height: 480px; }
.map-list::-webkit-scrollbar { width: 6px; }
.map-list::-webkit-scrollbar-thumb { background: var(--green-on-dark); border-radius: 3px; }
.map-loc {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 10px; align-items: center;
  padding: 10px 12px; border-radius: 10px;
  background: rgba(255,255,255,.03); border: 1px solid transparent;
  cursor: pointer; transition: all .25s; min-width: 0;
}
.map-loc:hover, .map-loc.is-on { background: rgba(98,191,124,.10); border-color: var(--green-on-dark); }
.map-loc .swatch { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.map-loc > div { min-width: 0; }
.map-loc h5 { font-family: var(--font-d); font-size: 13.5px; font-weight: 600; color: #fff; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-loc small { display: block; font-family: var(--font-m); font-size: 10px; letter-spacing: .12em; color: #8a9990; margin-top: 2px; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-loc .arrow { color: var(--green-on-dark-2); opacity: 0; transition: opacity .25s, transform .25s; flex: none; }
.map-loc:hover .arrow, .map-loc.is-on .arrow { opacity: 1; transform: translateX(2px); }

.map-detail {
  position: absolute; right: 18px; bottom: 18px;
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px;
  padding: 14px; border-radius: 14px;
  background: rgba(8,18,12,.92); backdrop-filter: blur(10px);
  border: 1px solid var(--line-d2);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  width: min(420px, calc(100% - 36px));
  box-shadow: 0 14px 30px -12px rgba(0,0,0,.6);
  z-index: 5;
}
.map-detail.is-on { opacity: 1; transform: translateY(0); pointer-events: auto; }
.map-detail-img { aspect-ratio: 1/1; border-radius: 8px; overflow: hidden; background: #0e2818; }
.map-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.map-detail-body { min-width: 0; }
.map-detail-body small { font-family: var(--font-m); font-size: 10px; letter-spacing: .15em; color: var(--green-on-dark-2); text-transform: uppercase; font-weight: 700; }
.map-detail-body h4 { font-family: var(--font-d); font-size: 16px; font-weight: 600; color: #fff; margin: 5px 0 5px; line-height: 1.25; }
.map-detail-body p { font-size: 12.5px; color: #b9c8be; line-height: 1.5; }
@media (max-width: 600px) {
  .map-detail { left: 12px; right: 12px; bottom: 12px; width: auto; grid-template-columns: 70px 1fr; }
}

.map-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; font-family: var(--font-m); font-size: 11px; color: #b9c8be; letter-spacing: .1em; }
.map-legend span { display: inline-flex; align-items: center; gap: 7px; }
.map-legend .sw { width: 9px; height: 9px; border-radius: 50%; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
