:root {
  --white: #ffffff;
  --off-white: #f6f5f2;
  --black: #0b0b0c;
  --grey-900: #1c1c1e;
  --grey-600: #6e6e73;
  --grey-300: #d4d3cf;
  --border: rgba(11, 11, 12, 0.09);

  --port-red: #c81e3a;
  --port-red-dim: #a3182f;
  --starboard-green: #0f6b4c;
  --starboard-green-dim: #0b5540;

  --fs-hero: clamp(2.6rem, 6vw, 5.25rem);
  --fs-h1: clamp(2.2rem, 4.2vw, 3.4rem);
  --fs-h2: clamp(1.5rem, 2.6vw, 2.1rem);
  --fs-h3: 1.15rem;
  --fs-body: 1.05rem;
  --fs-small: 0.875rem;

  --container: 1180px;
  --pad: clamp(1.5rem, 5vw, 3.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; }

p { margin: 0; color: var(--grey-600); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-600);
}

/* the signature mark: port dot + starboard dot */
.nav-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.nav-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.nav-dots .dot-red { background: var(--port-red); }
.nav-dots .dot-green { background: var(--starboard-green); }

/* ---------------- Header / Nav ---------------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--pad);
  max-width: var(--container);
  margin: 0 auto;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.logo-img {
  height: 32px;
  width: auto;
}

nav.primary-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

nav.primary-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--grey-600);
  position: relative;
  padding: 0.2rem 0;
  transition: color 0.15s ease;
}
nav.primary-nav a:hover { color: var(--black); }
nav.primary-nav a.active { color: var(--black); }
nav.primary-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, var(--port-red), var(--starboard-green));
  border-radius: 2px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  margin: 5px 0;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--black);
  color: var(--white);
}
.btn-primary:hover { background: var(--grey-900); }

.btn-ghost {
  background: transparent;
  color: var(--black);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--black); }

.btn-row { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding: clamp(4rem, 12vh, 8rem) var(--pad) clamp(3rem, 8vh, 5rem);
  overflow: hidden;
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero h1 { max-width: 15ch; }

.hero .sub {
  margin-top: 1.4rem;
  max-width: 46ch;
  font-size: 1.15rem;
  color: var(--grey-900);
}

.hero .btn-row { margin-top: 2.4rem; }

.course-line {
  position: absolute;
  top: 0; right: 0;
  width: min(60vw, 720px);
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.9;
}

.course-line path {
  fill: none;
  stroke: var(--grey-300);
  stroke-width: 1.5;
  stroke-dasharray: 6 6;
}

.course-line .dot-origin { fill: var(--port-red); }
.course-line .dot-dest { fill: var(--starboard-green); }

.course-line .draw {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw 2.2s ease forwards 0.3s;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------------- Stat bar ---------------- */
.stat-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: clamp(3rem, 8vh, 5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat { min-width: 120px; }
.stat .num {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.stat .label {
  font-size: var(--fs-small);
  color: var(--grey-600);
  margin-top: 0.2rem;
}

/* ---------------- Section scaffolding ---------------- */
section { padding: clamp(3.5rem, 8vh, 6rem) 0; }
.section-alt { background: var(--off-white); }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head .eyebrow { margin-bottom: 0.9rem; }
.section-head p { margin-top: 1rem; font-size: 1.05rem; }

/* divider using the signature dots instead of numbering */
.divider {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 4rem 0;
}
.divider .nav-dots span { width: 8px; height: 8px; }
.divider .line { flex: 1; height: 1px; background: var(--border); }

/* ---------------- Grid / Cards ---------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
}
.card h3 { margin-bottom: 0.6rem; }
.card .mark { margin-bottom: 1.1rem; }

.value-card .mark span { width: 9px; height: 9px; }

/* ---------------- Table (fleet spec) ---------------- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border);
}
.spec-table th {
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey-600);
  font-weight: 600;
}
.spec-table tr:last-child td { border-bottom: none; }
.spec-table td:first-child { font-weight: 600; }

.fleet-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.75rem;
}
.fleet-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.75rem;
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
}
.fleet-card-head h3 { font-size: 1.3rem; }
.fleet-tag {
  font-size: var(--fs-small);
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
}

/* ---------------- Project cards ---------------- */
.project-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.project-route {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-small);
  color: var(--grey-600);
  font-weight: 600;
}
.project-route .dot { width: 7px; height: 7px; border-radius: 50%; }
.project-route .dot-o { background: var(--port-red); }
.project-route .dot-d { background: var(--starboard-green); }
.project-route .rline { flex: 1; height: 1px; background: var(--grey-300); position: relative; min-width: 30px; }

/* ---------------- Form ---------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-field { display: flex; flex-direction: column; gap: 0.5rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--grey-900);
}
.form-field input, .form-field textarea, .form-field select {
  font-family: inherit;
  font-size: 0.98rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  resize: vertical;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--black);
}
.form-note {
  font-size: var(--fs-small);
  color: var(--grey-600);
  margin-top: 0.75rem;
}

/* ---------------- Contact info blocks ---------------- */
.info-row { display: flex; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--border); }
.info-row:last-child { border-bottom: none; }
.info-row .k { width: 140px; font-weight: 600; font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.05em; color: var(--grey-600); flex-shrink: 0; }
.info-row .v { color: var(--black); }

/* ---------------- Footer ---------------- */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem var(--pad) 2.5rem;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-links { display: flex; gap: 1.75rem; }
.footer-links a { font-size: var(--fs-small); color: var(--grey-600); }
.footer-links a:hover { color: var(--black); }
.copyright { font-size: var(--fs-small); color: var(--grey-900); }

/* ---------------- Archipelago route ---------------- */
.archipelago { text-align: center; }
.archipelago-svg { max-width: 640px; width: 100%; margin: 0 auto; display: block; }
.arch-path {
  fill: none;
  stroke: var(--grey-300);
  stroke-width: 1.5;
}
.arch-path.draw {
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  animation: archDraw 3.2s ease forwards 0.2s;
}
@keyframes archDraw { to { stroke-dashoffset: 0; } }

.arch-node {
  opacity: 0;
  transform-origin: center;
  transform: scale(0.3);
  animation: nodeIn 0.5s ease forwards;
}
@keyframes nodeIn { to { opacity: 1; transform: scale(1); } }

.arch-label {
  font-size: 12px;
  fill: var(--grey-600);
  font-family: inherit;
}

/* ---------------- Focus visibility ---------------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--starboard-green);
  outline-offset: 2px;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .course-line { display: none; }
}

@media (max-width: 760px) {
  nav.primary-nav {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem var(--pad) 1rem;
    transform: translateY(-130%);
    transition: transform 0.25s ease;
  }
  nav.primary-nav.open { transform: translateY(0); }
  nav.primary-nav a { padding: 0.8rem 0; width: 100%; border-bottom: 1px solid var(--border); }
  .menu-toggle { display: block; }
  .info-row { flex-direction: column; gap: 0.3rem; }
  .info-row .k { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .course-line .draw { animation: none; stroke-dashoffset: 0; }
  .arch-path.draw { animation: none; stroke-dashoffset: 0; }
  .arch-node { animation: none; opacity: 1; transform: scale(1); }
  html { scroll-behavior: auto; }
}

 
/* ---------------- Hero with photo ---------------- */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-media { margin: 0; }
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--off-white);
}
 
/* ---------------- Rolling spotlight gallery ---------------- */
.spotlight-stage { display: grid; }   /* slides overlap in one cell, so height never jumps */
.spot-slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s;
}
.spot-slide.is-active { opacity: 1; visibility: visible; }
.spot-photo { margin: 0; }
.spot-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--off-white);
}
.spot-text .eyebrow { margin-bottom: 0.9rem; }
.spot-text h3 { font-size: var(--fs-h2); line-height: 1.12; }
.spot-text p { margin-top: 1rem; max-width: 42ch; font-size: 1.05rem; }
 
.spot-controls { display: flex; align-items: center; gap: 1.1rem; margin-top: 2rem; }
.spot-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--black);
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.spot-btn:hover { border-color: var(--black); }
.spot-dots { display: flex; gap: 0.5rem; }
.spot-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none; padding: 0;
  background: var(--grey-300);
  cursor: pointer;
}
.spot-dot.is-active { background: var(--port-red); }
 
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media img { aspect-ratio: 4 / 3; }
  .spot-slide { grid-template-columns: 1fr; }
  .spot-photo img { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  .spot-slide { transition: none; }
}

/* ---------------- Client logo grid ---------------- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}
.logo-tile {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  padding: 1rem;
  text-align: center;
  transition: border-color 0.15s ease;
}
.logo-tile:hover { border-color: var(--grey-300); }
.logo-tile img { max-width: 80%; max-height: 56px; width: auto; height: auto; object-fit: contain; }
.logo-tile span {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--grey-600);
  line-height: 1.3;
}
@media (max-width: 860px) {
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ---------------- Fleet cards: slideshow + compact specs (added) ---------------- */
.fleet-body {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: 1.75rem;
}
.fleet-slides {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--off-white);
}
.fleet-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  background: repeating-linear-gradient(135deg, var(--off-white), var(--off-white) 10px, #efeee9 10px, #efeee9 20px);
}
.fleet-slide.is-active { opacity: 1; }
.fleet-slide::after {              /* placeholder label, hidden once a real photo loads on top */
  content: attr(data-label);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; text-align: center;
  font-size: var(--fs-small); font-weight: 600; color: var(--grey-600);
}
.fleet-slide img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.fleet-dots {
  position: absolute; left: 0; right: 0; bottom: 0.8rem;
  display: flex; justify-content: center; gap: 0.4rem;
  z-index: 2;
}
.fleet-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: none; padding: 0;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}
.fleet-dot.is-active { background: #fff; }
 
.spec-list { margin: 0; }
.spec-list > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.spec-list > div:last-child { border-bottom: none; }
.spec-list dt {
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--grey-600);
}
.spec-list dd { margin: 0; font-weight: 600; text-align: right; }
 
@media (max-width: 760px) {
  .fleet-body { grid-template-columns: 1fr; padding: 1.25rem; }
  .fleet-slides { max-width: 420px; }
}
@media (prefers-reduced-motion: reduce) {
  .fleet-slide { transition: none; }
}


/* ---------------- About: story layout (added) ---------------- */
.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.75rem, 4vw, 3.5rem);
  row-gap: 2rem;
}
.story-head  { grid-column: 1; grid-row: 1; }
.story-media { grid-column: 1; grid-row: 2; margin: 0; }
.story-text  { grid-column: 2; grid-row: 2; align-self: start; }   /* top edge lines up with the photo */
 
.story-photo {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: repeating-linear-gradient(135deg, var(--off-white), var(--off-white) 10px, #efeee9 10px, #efeee9 20px);
}
.story-photo::after {              /* placeholder label, hidden once the photo loads on top */
  content: attr(data-label);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-small); font-weight: 600; color: var(--grey-600);
}
.story-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.story-media figcaption { margin-top: 1rem; }
.story-media figcaption h3 { margin-bottom: 0.35rem; }
.story-media figcaption p { font-size: 0.95rem; }
 
@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-head, .story-media, .story-text { grid-column: 1; grid-row: auto; }
}
 
 
/* ---------------- About: story with landscape image (added) ---------------- */
.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 5vw, 4rem);
  row-gap: 2rem;
  align-items: start;                  /* text top lines up with the image top; use "center" to centre it instead */
}
.story-head  { grid-column: 1; }
.story-media { grid-column: 1; margin: 0; }
.story-text  { grid-column: 2; grid-row: 2; }   /* same row as the image */
 
.story-photo {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: repeating-linear-gradient(135deg, var(--off-white), var(--off-white) 10px, #efeee9 10px, #efeee9 20px);
}
.story-photo::after {                  /* placeholder label, covered once a real photo loads */
  content: attr(data-label);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-small); font-weight: 600; color: var(--grey-600);
}
.story-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.story-caption { margin-top: 1rem; }
.story-caption h3 { margin-bottom: 0.35rem; }
.story-caption p { font-size: var(--fs-small); }
 
@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-text { grid-column: 1; grid-row: auto; }
}
 