/* =====================================================================
   v6 — louvre hero, flap board, quieter section rhythm, visit fan
   ===================================================================== */

/* ---------- rhythm: less dead air between sections ---------- */
:root { --sec: clamp(72px, 2.6rem + 5.4vw, 148px); }

/* ---------- section heads: title, then the sentence under it ---------- */
.shead { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); row-gap: clamp(14px, 1.4vw, 22px); align-items: start; margin-bottom: clamp(36px, 4.4vw, 72px); position: relative; padding-top: clamp(18px, 2vw, 28px); }
.shead::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-2); transform-origin: left; transform: scaleX(var(--rule, 1)); transition: transform 1.4s cubic-bezier(.2, .8, .2, 1); }
.shead > :first-child { grid-column: 1 / span 8; max-width: 17ch; }
.shead > :not(:first-child) { grid-column: 7 / -1; max-width: 48ch; margin: 0; }
@media (max-width: 900px) { .shead > * { grid-column: 1 / -1 !important; } }

/* ---------- LOUVRE HERO ---------- */
.hv { position: relative; min-height: max(640px, min(100svh, 980px)); display: flex; align-items: flex-end; overflow: hidden; background: #0b0f0d; color: var(--paper); isolation: isolate; }
.hv__slat { position: relative; flex: 1 1 0; height: 100%; margin-right: -1px; overflow: hidden; transform-style: preserve-3d; will-change: transform; backface-visibility: hidden; }
.hv__slat img { position: absolute; top: 0; left: calc(-100% * var(--i) + var(--i) * 1px); width: calc(100% * var(--n)); height: 100%; max-width: none; object-fit: cover; user-select: none; pointer-events: none; transform: scale(var(--zoom, 1.06)); transform-origin: calc(50% - 0%) 50%; }
.hv__slat::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(255, 246, 225, var(--lit, 0)) 0%, transparent 38%, transparent 70%, rgba(0, 0, 0, var(--dim, 0)) 100%); }
.hv__shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background:
  linear-gradient(180deg, rgba(8, 11, 9, .55) 0%, rgba(8, 11, 9, 0) 22%),
  linear-gradient(0deg, rgba(8, 11, 9, .92) 0%, rgba(8, 11, 9, .55) 30%, rgba(8, 11, 9, 0) 62%),
  linear-gradient(90deg, rgba(8, 11, 9, .45) 0%, rgba(8, 11, 9, 0) 55%); }
@media (max-width: 640px) { .hv__side { grid-column: 1 / -1; } .hv { min-height: 100svh; } }

/* ---------- split-flap board ---------- */
.flap::before { left: 8px; } .flap::after { right: 8px; }
.fl { font-style: normal; position: relative; display: inline-grid; place-items: center; width: .74em; height: 1.32em; font-size: clamp(.92rem, .8rem + .3vw, 1.08rem); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; color: #f4eee1; background: linear-gradient(#1c211e 0 49%, #121614 51% 100%); border-radius: 2px; box-shadow: 0 1px 0 rgba(0, 0, 0, .6); overflow: hidden; }
.fl::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .75); }
.fl.is-sp { background: transparent; box-shadow: none; width: .4em; }
.fl.is-sp::after { display: none; }
.fl.flip { animation: flfl .09s linear; }
@keyframes flfl { 0% { transform: rotateX(0); } 50% { transform: rotateX(70deg); filter: brightness(.6); } 100% { transform: rotateX(0); } }
@media (max-width: 640px) { .flap { justify-self: stretch; width: auto; } .fl { font-size: .86rem; } }


/* ---------- capability zones: photo follows the cursor on desktop, inline on phones ---------- */
.fimg { position: fixed; left: 0; top: 0; z-index: 80; width: clamp(220px, 20vw, 320px); aspect-ratio: 4 / 3; margin: 0; pointer-events: none; border-radius: 10px; overflow: hidden; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .5); opacity: 0; scale: .7; transition: opacity .35s, scale .5s cubic-bezier(.2, .9, .25, 1.2); }
.fimg.is-on { opacity: 1; scale: 1; }
.fimg img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: opacity .3s; }

/* ---------- export: voyage chart ---------- */
.voy { border-top: 1px solid var(--line-2); }
.voy__scale { position: relative; display: grid; grid-template-columns: minmax(0, 3.2fr) minmax(0, 6fr) minmax(0, 1.4fr); height: 34px; font-size: .72rem; color: var(--ink-3); }
.voy__scale > span { grid-column: 1; }
.voy__scale i { font-style: normal; position: absolute; top: 10px; left: calc(var(--c1) + var(--t) * var(--cw)); translate: -50% 0; font-variant-numeric: tabular-nums; }
.voy__scale em { font-style: normal; position: absolute; top: 10px; right: 0; }
.voy { --c1: 34%; --cw: 52%; }
.voy__r { border-bottom: 1px solid var(--line); }
.voy__b { width: 100%; display: grid; grid-template-columns: 34% 52% 14%; align-items: center; gap: 0; padding: 22px 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.voy__n { display: grid; gap: 4px; padding-right: 24px; }
.voy__n b { font-family: var(--fd); font-weight: 400; font-size: clamp(1.25rem, 1rem + .8vw, 1.8rem); line-height: 1.05; }
.voy__n small { font-size: .8rem; color: var(--ink-3); }
.voy__track { position: relative; height: 44px; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(100% * 7 / 30)); }
.voy__track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line-2); }
.voy__wake { position: absolute; top: calc(50% - 5px); height: 10px; left: calc(var(--a) * 100%); width: calc((var(--z) - var(--a)) * 100% * var(--p, 0)); border-radius: 6px; background: linear-gradient(90deg, rgba(255, 179, 71, .25), var(--apricot)); transition: width 1.6s cubic-bezier(.2, .8, .2, 1); }
.voy__ship { position: absolute; top: calc(50% - 22px); width: 34px; color: var(--g700); left: calc((var(--a) + (var(--z) - var(--a)) * var(--p, 0)) * 100%); translate: -50% 0; transition: left 1.6s cubic-bezier(.2, .8, .2, 1); }
.voy__d { position: absolute; top: calc(50% + 9px); left: calc(var(--z) * 100% + 10px); font-size: .8rem; font-weight: 600; white-space: nowrap; opacity: var(--p, 0); transition: opacity .6s .9s; }
.voy__t { justify-self: end; font-size: .78rem; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 99px; white-space: nowrap; }
.voy__r.is-in .voy__track { --p: 1; }
.voy__b:hover .voy__ship { animation: bob 1.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-3px) rotate(-2deg); } }
.voy__p { padding: 0 0 22px 34%; max-width: 980px; color: var(--ink-2); }
.voy__p p { margin: 0; }
.voy__b[aria-expanded="true"] .voy__n b { color: var(--g700); }
@media (max-width: 760px) {
  .voy__scale { display: none; }
  .voy__b { grid-template-columns: 1fr auto; row-gap: 14px; }
  .voy__track { grid-column: 1 / -1; grid-row: 2; }
  .voy__t { grid-row: 1; grid-column: 2; }
  .voy__p { padding-left: 0; }
  .voy__d { left: auto; right: calc((1 - var(--z)) * 100%); }
}

/* ---------- export: exploded container ---------- */
.box3 { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.box3__svg { width: 100%; height: auto; overflow: visible; }
.box3__svg g { transition: opacity .4s, filter .4s; }
.box3.is-hl .box3__svg g[data-k] { opacity: .28; }
.box3.is-hl .box3__svg g[data-k].is-hl { opacity: 1; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .25)); }
.box3__notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: n; }
.box3__notes li { display: grid; gap: 6px; padding: 16px 0 16px 20px; border-left: 2px solid var(--line); cursor: default; transition: border-color .3s, opacity .4s, transform .5s; opacity: var(--o, .35); transform: translateX(calc((1 - var(--o, .35)) * 12px)); }
.box3__notes li b { font-weight: 600; }
.box3__notes li span { color: var(--ink-2); font-size: .94rem; line-height: 1.5; }
.box3__notes li:hover, .box3__notes li.is-hl { border-color: var(--apricot); }
@media (max-width: 900px) { .box3 { grid-template-columns: minmax(0, 1fr); } .box3__notes li { --o: 1 !important; } }
