/* ── Vessel Scroll Section — What Is a Codex v2 ─────────────────
   Scoped entirely under #vessel-block. No conflicts with site.css.
──────────────────────────────────────────────────────────────── */

/* ── Block & Sticky Viewport ───────────────────────────────────── */
#vessel-block {
  position: relative;
  height: 2100vh;
}
#vessel-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #f7fafd;
}

/* ── Canvas ─────────────────────────────────────────────────────── */
#vessel-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block; z-index: 1;
}

/* ── Loading Indicator ──────────────────────────────────────────── */
#vessel-loading {
  position: absolute; inset: 0; z-index: 20;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: #00181E; gap: 20px;
}
.vessel-loader-brand {
  font-family: var(--f-ui, 'Inter', sans-serif); font-size: 9px; font-weight: 700;
  letter-spacing: .28em; text-transform: uppercase;
  color: rgba(245,242,235,.28);
}
.vessel-loader-bar-wrap {
  width: 180px; height: 1px;
  background: rgba(245,242,235,.08);
  position: relative; overflow: hidden;
}
#vessel-loader-bar {
  position: absolute; top: 0; left: 0;
  height: 100%; width: 0%;
  background: #4EC4CC; transition: width 0.1s linear;
}
.vessel-loader-pct {
  font-family: var(--f-ui, 'Inter', sans-serif); font-size: 9px;
  letter-spacing: .12em; color: rgba(78,196,204,.45);
}

/* ── Dark Overlay ───────────────────────────────────────────────── */
#vessel-dark-overlay {
  position: absolute; inset: 0;
  background: #000; opacity: 0;
  pointer-events: none; z-index: 2;
}

/* ── Marquee ────────────────────────────────────────────────────── */
#vessel-marquee {
  position: absolute; bottom: 14vh; left: 0; right: 0;
  z-index: 3; opacity: 0; pointer-events: none; overflow: hidden;
}
.vessel-marquee-text {
  white-space: nowrap; display: inline-block;
  font-family: var(--f-disp, 'GFS Didot', 'Didot', serif);
  font-size: 12vw; font-weight: 400;
  letter-spacing: -0.02em;
  color: rgba(245,242,235,.05); line-height: 1;
}

/* ── Overlay Items (built dynamically by JS) ────────────────────── */
.vessel-overlay-item {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  opacity: 0; pointer-events: none;
  z-index: 5;
}
.vessel-overlay-left  { padding-left: 5vw;  padding-right: 55vw; }
.vessel-overlay-right { padding-left: 55vw; padding-right: 5vw;  }
.vessel-overlay-center {
  justify-content: center; flex-direction: column;
  text-align: center; padding: 0 10vw;
  align-items: center;
}
.vessel-overlay-center .vessel-overlay-inner {
  max-width: 560px; align-items: center;
}
.vessel-cta-wrap {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  margin-top: 28px;
}

/* ── Type System ────────────────────────────────────────────────── */
.vessel-overlay-inner {
  position: relative;
  display: flex; flex-direction: column; max-width: 500px;
}
.vessel-bg-num {
  position: absolute;
  top: 50%; left: -0.15em;
  transform: translateY(-50%);
  font-family: var(--f-disp, 'GFS Didot', 'Didot', serif);
  font-size: clamp(200px, 28vw, 380px);
  font-weight: 400; line-height: 1;
  color: rgba(44,41,38,.06);
  pointer-events: none; user-select: none;
  z-index: 0; white-space: nowrap;
}
.vessel-overlay-inner > :not(.vessel-bg-num) {
  position: relative;
  z-index: 1;
}
.vessel-domain-num {
  font-family: var(--f-ui, 'Inter', sans-serif); font-size: 9px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(0,105,122,.55); margin-bottom: 14px; display: block;
}
.vessel-label {
  font-family: var(--f-ui, 'Inter', sans-serif); font-size: 9px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(0,105,122,.65); margin-bottom: 16px; display: block;
}
/* ── Explain overlay type (vessel / flap panels) ────────────────── */
.vessel-explain-label {
  font-family: var(--f-disp, 'Didot', 'Didot LT STD', serif);
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 400; line-height: 1.04;
  letter-spacing: -0.015em;
  color: #2C2926; margin-bottom: 18px; display: block;
}
.vessel-explain-heading {
  font-family: var(--f-disp, 'Didot', 'Didot LT STD', serif);
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 38px);
  font-weight: 400; line-height: 1.15;
  letter-spacing: -0.01em;
  color: #00697A; margin-bottom: 20px;
}

.vessel-gold-line {
  display: block; width: 32px; height: 1px;
  background: #C9A646; opacity: .55; margin-bottom: 24px;
}
.vessel-heading {
  font-family: var(--f-disp, 'Didot', 'Didot LT STD', serif);
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 400; line-height: 1.04;
  letter-spacing: -0.015em;
  color: #2C2926; margin-bottom: 18px;
}
.vessel-body {
  font-family: var(--f-serif, 'Cormorant Garamond', serif);
  font-size: clamp(14px, 1.35vw, 17px);
  color: #2C2926;
  line-height: 1.78; margin-bottom: 12px;
}
.vessel-note-rule {
  display: block; width: 40px; height: 2px;
  background: rgba(44,41,38,.15); margin: 14px 0 10px;
}
.vessel-note-label {
  font-family: var(--f-ui, 'Inter', sans-serif); font-size: 8px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: #00697A; display: block; margin-bottom: 8px;
}
.vessel-note {
  font-family: var(--f-serif, 'Cormorant Garamond', serif); font-style: italic;
  font-size: clamp(15px, 1.3vw, 17px);
  color: #00697A; line-height: 1.6;
}

/* ── Specs overlay ──────────────────────────────────────────────── */
.vessel-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 28px;
  margin-top: 28px;
}
.vessel-spec {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.vessel-spec-label {
  font-family: var(--f-ui, 'Inter', sans-serif);
  font-size: 8px; font-weight: 700;
  letter-spacing: .20em; text-transform: uppercase;
  color: rgba(0,105,122,.65);
}
.vessel-spec-value {
  font-family: var(--f-disp, 'Didot', 'Didot LT STD', serif);
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 400; color: #2C2926; line-height: 1.15;
}
.vessel-spec-desc {
  font-family: var(--f-serif, 'Cormorant Garamond', serif);
  font-size: clamp(13px, 1.15vw, 15px);
  color: rgba(44,41,38,.6); line-height: 1.55; margin: 0;
}

/* ── Stats ──────────────────────────────────────────────────────── */
.vessel-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2px; width: 100%; max-width: 900px; margin: 0 auto;
}
.vessel-stat {
  display: flex; flex-direction: column; align-items: center;
  padding: 40px 20px;
  border: 1px solid rgba(78,196,204,.08);
}
.vessel-stat-number {
  font-family: var(--f-disp, 'GFS Didot', 'Didot', serif);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 400; line-height: 1; color: #F5F2EB;
}
.vessel-stat-suffix {
  font-family: var(--f-ui, 'Inter', sans-serif); font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: #4EC4CC; margin-top: 4px;
}
.vessel-stat-label {
  font-family: var(--f-serif, 'Cormorant Garamond', serif); font-style: italic;
  font-size: 13px; color: rgba(245,242,235,.3);
  margin-top: 10px; text-align: center;
}

/* ── CTA ────────────────────────────────────────────────────────── */
.vessel-cta-eyebrow {
  font-family: var(--f-ui, 'Inter', sans-serif); font-size: 9px; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase;
  color: rgba(78,196,204,.5); margin-bottom: 28px;
}
.vessel-cta-heading {
  font-family: var(--f-disp, 'GFS Didot', 'Didot', serif);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 400; line-height: 1.04;
  letter-spacing: -0.02em; color: #F5F2EB; margin-bottom: 16px;
}
.vessel-cta-sub {
  font-family: var(--f-serif, 'Cormorant Garamond', serif); font-style: italic;
  font-size: clamp(15px, 1.5vw, 19px);
  color: rgba(245,242,235,.35); margin-bottom: 48px;
}
.vessel-cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-serif, 'Cormorant Garamond', serif); font-size: 13px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: #F5F2EB; background: #00697A;
  border: 1px solid #00697A;
  padding: 16px 36px; text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.1s;
}
.vessel-cta-btn:hover {
  background: #004D5C; border-color: #004D5C;
  color: #F5F2EB; transform: translateY(-1px);
}
.vessel-cta-micro {
  font-family: var(--f-ui, 'Inter', sans-serif); font-size: 9px;
  color: rgba(245,242,235,.2); margin-top: 16px; letter-spacing: .06em;
}

/* ── Domain image overlays ──────────────────────────────────────── */
.vessel-domain-img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-5%, -50%);
  width: 46vw;
  max-width: 640px;
  max-height: 75vh;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.45s ease;
  z-index: 4;
  pointer-events: none;
}

/* ── Mobile ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  #vessel-block { height: 550vh; }
  .vessel-align-left, .vessel-align-right {
    padding: 0 24px;
    align-items: flex-end; padding-bottom: 80px;
  }
  .vessel-align-left  .vessel-section-inner,
  .vessel-align-right .vessel-section-inner {
    max-width: 100%;
    background: rgba(0,24,30,.85);
    backdrop-filter: blur(6px);
    padding: 24px;
  }
  .vessel-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
