/* ═══════════════════════════════════════════════════════════════════════
   S/Y ALBACORA — inner pages (the-yacht, itineraries/*).
   Loaded AFTER styles.css, never instead of it. Inner pages are the
   home's vocabulary one register down: same tokens, same label utility,
   same easings; smaller display ceilings, no WebGL sea.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Inner hero — type above the line, world below it ────────────────── */
.inner-hero { height: 72svh; min-height: 520px; position: relative; padding: 0; }
.inner-hero--plate { height: 100svh; min-height: 640px; }
.crumb { color: var(--teak); margin-bottom: clamp(10px, 2vh, 22px); }
.crumb a { color: inherit; }
.inner-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(44px, 11vw, 110px);
  line-height: 0.98; letter-spacing: 0.06em; text-indent: 0.06em;
  text-transform: uppercase; color: var(--linen);
  text-shadow: 0 2px 60px rgba(6, 20, 31, 0.4);
}
.inner-lede {
  max-width: 52ch; margin: clamp(12px, 2.2vh, 24px) auto 0;
  font-size: 13.5px; line-height: 1.7; color: var(--linen-70);
}
.inner-hero .hero-plate { outline-offset: 8px; }
.inner-hero .hero-cue { position: absolute; }

/* ── Section register shift (inner pages only) ───────────────────────── */
.inner-lede-line {
  font-family: var(--font-display); font-size: clamp(24px, 4vw, 40px);
  line-height: 1.3; letter-spacing: 0.01em; max-width: 30ch;
  margin-bottom: clamp(36px, 6vh, 72px); text-wrap: balance;
}
.inner-lede-line em { font-style: normal; color: var(--teak); }

/* ═══ DECK EXPLORER — the general-arrangement plan ═══ */
.deck-layout { display: flex; flex-direction: column; gap: clamp(24px, 4vh, 44px); }
.deck-stage { position: relative; }
.deck-canvas { position: relative; }
.deck-canvas svg { width: 100%; height: auto; display: block; overflow: visible; }
/* mobile: the plan keeps chart scale and scrolls in its own container —
   hotspot targets stay ≥44px apart (BLOCKS §5) */
@media (max-width: 879px) {
  .deck-stage { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 6px; }
  .deck-stage::-webkit-scrollbar { display: none; }
  .deck-canvas { min-width: 760px; }
  /* the plan continues — right-edge fade as the drag affordance */
  .deck-stage {
    -webkit-mask-image: linear-gradient(90deg, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 94%, transparent 100%);
  }
}

.deck-hull {
  fill: rgba(200, 169, 126, 0.05); stroke: var(--teak); stroke-width: 1.4;
  stroke-linecap: round; vector-effect: non-scaling-stroke;
}
.deck-line { fill: none; stroke: var(--teak-hair); stroke-width: 1; vector-effect: non-scaling-stroke; }
.deck-part { fill: none; stroke: var(--linen-30); stroke-width: 1; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.deck-mast { fill: var(--abyss); stroke: var(--teak); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.deck-dim { stroke: var(--linen-30); stroke-width: 1; vector-effect: non-scaling-stroke; }
.deck-dim-label { font-family: var(--font-body); font-size: 10px; fill: var(--linen-55); letter-spacing: 0.26em; }
.deck-axis-label { font-size: 11px; fill: var(--linen-30); letter-spacing: 0.3em; }

/* hotspots — generated by deck.js; 44px touch targets, signal dot */
.hotspot {
  position: absolute; width: 44px; height: 44px;
  margin: -22px 0 0 -22px; /* centred without transform — GSAP owns transform */
  display: grid; place-content: center; border-radius: 50%;
}
.hotspot-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--signal); box-shadow: 0 0 0 1.4px var(--linen);
  transition: transform 0.4s var(--ease-soft), background 0.4s var(--ease-soft);
}
.hotspot::before {
  content: ''; position: absolute; inset: 8px; border-radius: 50%;
  border: 1px solid rgba(228, 87, 46, 0.5);
  animation: spot-pulse 3.2s var(--ease-soft) infinite;
}
.hotspot:hover .hotspot-dot, .hotspot:focus-visible .hotspot-dot { transform: scale(1.35); }
.hotspot[aria-current="true"] .hotspot-dot { background: var(--teak); box-shadow: 0 0 0 1.4px var(--teak); }
.hotspot[aria-current="true"]::before { border-color: var(--teak-hair); animation: none; }
@keyframes spot-pulse {
  0% { transform: scale(0.4); opacity: 0.9; }
  70%, 100% { transform: scale(1.15); opacity: 0; }
}

.deck-card {
  background: var(--linen); color: var(--abyss);
  padding: clamp(18px, 2.6vh, 30px) clamp(20px, 2.4vw, 32px);
  max-width: 440px; min-height: 178px;
  box-shadow: 0 30px 70px -30px rgba(3, 12, 19, 0.8);
}
.deck-card-label {
  font-weight: 500; font-size: 11px; letter-spacing: 0.26em;
  text-transform: uppercase; color: rgba(11, 34, 51, 0.55); margin-bottom: 8px;
}
.deck-card-name {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(21px, 3.4vw, 28px); line-height: 1.1; letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.deck-card-text { font-size: 13.5px; line-height: 1.65; color: var(--abyss-ink-70); max-width: 44ch; }
.deck-card-view { margin-top: 14px; cursor: zoom-in; }
.deck-card-view.link-line { color: var(--abyss); font-size: 12px; letter-spacing: 0.08em; }
.deck-card-view.link-line::after { background: var(--signal); }
.deck-hint { font-size: 9.5px; }

/* legend = data source; a readable ruled list without JS, hidden with it */
.deck-legend { list-style: none; max-width: 640px; }
.js .deck-live .deck-legend { display: none; }
.no-js .deck-card, .no-js .deck-hint { display: none; }
.deck-legend li { padding: 14px 0; border-bottom: 1px solid var(--linen-hair); font-size: 14px; color: var(--linen-70); }
.deck-legend b { display: block; font-weight: 500; color: var(--linen); font-size: 13px; letter-spacing: 0.06em; }

@media (min-width: 880px) {
  .deck-layout { flex-direction: row; align-items: center; gap: clamp(32px, 4.5vw, 84px); }
  .deck-stage { flex: 1; min-width: 0; }
  .deck-side { width: clamp(300px, 30vw, 440px); flex: none; }
}
@media (max-width: 879px) {
  .deck-card { max-width: none; }
}

/* ═══ PARTICULARS — the engraved table ═══ */
.partic-grid { border-top: 1px solid var(--linen-hair); }
.partic {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: clamp(14px, 2.2vh, 20px) 0;
  border-bottom: 1px solid var(--linen-hair);
}
.partic dt {
  font-size: 10px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--linen-55);
}
.partic dd {
  font-family: var(--font-display); font-size: clamp(17px, 2.4vw, 22px);
  letter-spacing: 0.03em; text-align: right; color: var(--linen);
  font-variant-numeric: tabular-nums;
}
.partic dd small { font-size: 0.62em; letter-spacing: 0.14em; color: var(--teak); }
.partic-note { margin-top: clamp(24px, 4vh, 40px); font-size: 12px; color: var(--linen-55); max-width: 52ch; }
@media (min-width: 880px) {
  .partic-grid { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(48px, 7vw, 120px); }
}

/* ═══ PROVENANCE — the log of her years ═══ */
.hist-list { list-style: none; max-width: 640px; position: relative; padding-left: clamp(28px, 4vw, 44px); }
.hist-list::before {
  content: ''; position: absolute; left: 4px; top: 10px; bottom: 10px;
  width: 1px; background: var(--linen-hair);
}
.hist-item { position: relative; padding: clamp(18px, 3vh, 28px) 0; }
.hist-item::before {
  content: ''; position: absolute; top: calc(clamp(18px, 3vh, 28px) + 12px);
  left: calc(clamp(28px, 4vw, 44px) * -1 + 1px);
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--abyss); border: 1px solid var(--teak);
}
.hist-year {
  font-family: var(--font-display); font-size: clamp(22px, 3vw, 30px);
  color: var(--teak); letter-spacing: 0.04em; margin-bottom: 6px;
}
.hist-item p { font-size: 14px; color: var(--linen-70); max-width: 52ch; }
.hist-item p b { font-weight: 500; color: var(--linen); letter-spacing: 0.04em; }

/* ═══ SEASON NOTE (amalfi) — split with two porthole plates ═══ */
.season-layout { display: flex; flex-direction: column; gap: clamp(36px, 6vh, 64px); }
.season-text { max-width: 560px; }
.season-body { color: var(--linen-70); max-width: 52ch; margin-bottom: clamp(24px, 4vh, 40px); }
.season-body em { font-style: normal; color: var(--teak); }
.season-media { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2.4vw, 28px); align-items: start; }
.season-media .porthole-trigger { width: 100%; }
.season-media figcaption { margin-top: 12px; font-size: 9.5px; }
.s-tall .porthole-trigger { aspect-ratio: 3 / 4; }
.s-std .porthole-trigger { aspect-ratio: 4 / 3; margin-top: clamp(28px, 6vh, 72px); }
@media (min-width: 880px) {
  .season-layout { flex-direction: row; gap: clamp(48px, 7vw, 120px); align-items: flex-start; }
  .season-text { width: clamp(300px, 34vw, 560px); flex: none; position: sticky; top: 14vh; }
  .season-media { flex: 1; }
}

/* ═══ CLOSING BAND — quiet CTA back to the broker ═══ */
.band { text-align: center; padding-bottom: calc(var(--section-y) * 0.8); }
.band-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(26px, 4.6vw, 46px); line-height: 1.25;
  max-width: 24ch; margin: 0 auto clamp(18px, 3vh, 28px); text-wrap: balance;
}
.band-title em { font-style: normal; color: var(--teak); }
.band-text { font-size: 13.5px; color: var(--linen-70); max-width: 46ch; margin: 0 auto clamp(24px, 4vh, 40px); }
.band-links { display: flex; justify-content: center; gap: clamp(24px, 4vw, 48px); flex-wrap: wrap; }

/* ═══ Reduced motion / no-JS on inner pages ═══ */
@media (prefers-reduced-motion: reduce) {
  .hotspot::before { animation: none; }
}
.no-js .inner-hero .hero-plate, .no-js .inner-head { opacity: 1; transform: none; }
