:root { --ink:#17352b; --fern:#376a55; --cream:#f5f0e3; --gold:#e7b94f; --line:#17352b25; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--cream); color:var(--ink); font-family:"Avenir Next",Avenir,Arial,sans-serif; -webkit-font-smoothing:antialiased; }
a { color:inherit; }
button,a { -webkit-tap-highlight-color:transparent; }
button { font:inherit; cursor:pointer; }
button:disabled { cursor:wait; opacity:.6; }
a:focus-visible,button:focus-visible,canvas:focus-visible { outline:3px solid var(--gold); outline-offset:5px; }
.nav { min-height:86px; display:flex; justify-content:space-between; align-items:center; padding:18px 5.5%; border-bottom:1px solid var(--line); gap:24px; }
.nav img,footer img { display:block; max-width:108px; height:auto; }
.nav>span { font-size:10px; font-weight:700; letter-spacing:.17em; }
.book,.primary { display:inline-flex; align-items:center; justify-content:center; text-decoration:none; border:1px solid var(--ink); border-radius:48% 52% 46% 54% / 58% 44% 56% 42%; min-height:48px; padding:13px 26px; background:var(--ink); color:var(--cream); font-weight:600; font-size:12px; }
.primary:hover,.book:hover { background:var(--fern); }
.cart-hero { display:grid; grid-template-columns:minmax(300px,.8fr) minmax(0,1.4fr); max-width:1640px; margin:auto; align-items:center; padding:32px 4.5% 58px 5.5%; gap:30px; }
.intro { padding:35px 0; max-width:440px; }
.kicker,.number { font-size:10px; letter-spacing:.18em; font-weight:700; line-height:1.6; margin:0 0 22px; }
h1 { font:normal clamp(58px,5.8vw,88px)/.92 Georgia,serif; letter-spacing:-.055em; margin:0 0 28px; }
h1 em { display:block; font-style:normal; color:var(--fern); }
.intro p:not(.kicker) { font-size:15px; line-height:1.75; color:#456052; margin:18px 0; }
.intro p.lead { font-size:20px; line-height:1.45; color:var(--ink); margin:0 0 23px; }
.intro .primary { margin-top:14px; }
.location { display:block; font-size:10px; color:#617365; margin-top:19px; letter-spacing:.04em; }
.interactive { min-width:0; }
.explorer-scene { position:relative; min-width:0; }
.stage { height:clamp(440px,48vw,740px); position:relative; overflow:hidden; isolation:isolate; background:var(--cream); }
.stage canvas { display:block; width:100%; height:100%; opacity:0; pointer-events:none; transition:opacity .65s ease; touch-action:pan-y; }
.stage>img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; pointer-events:none; transition:opacity .65s ease; }
.stage.ready>img { opacity:0; }
.stage.ready canvas { opacity:1; pointer-events:auto; }
.badge { position:absolute; right:14px; top:10px; font-size:9px; letter-spacing:.14em; border:1px solid var(--line); border-radius:30px; padding:10px 14px; pointer-events:none; }
.hint { position:absolute; bottom:9px; width:100%; text-align:center; font-size:10px; letter-spacing:.025em; color:#617365; pointer-events:none; }
.touch-hint { display:none; }
.rotate-cue { position:absolute; top:20px; right:14px; display:flex; align-items:center; gap:6px; color:#617365; font-size:10px; letter-spacing:.025em; pointer-events:none; }
.rotate-cue svg { width:26px; height:25px; flex:none; }
.loading { position:absolute; bottom:37px; width:100%; text-align:center; font-size:11px; color:#617365; pointer-events:none; transition:opacity .3s; }
.stage.ready .loading { opacity:0; }
.controls { position:relative; z-index:4; display:flex; justify-content:center; gap:9px; margin:3px auto 20px; }
.controls button { min-height:44px; border:1px solid var(--line); border-radius:30px; color:var(--ink); background:var(--cream); padding:10px 21px; font-size:12px; }
.controls .wing-button { background:var(--ink); border-color:var(--ink); color:var(--cream); }
.controls button:hover:not(:disabled) { background:var(--fern); color:var(--cream); }
.controls button:active:not(:disabled) { transform:translateY(1px); }
.part-leader { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; overflow:visible; z-index:2; opacity:0; transition:opacity .2s; }
.part-leader.active { opacity:1; }
.part-leader path { fill:none; stroke:#7b7855; stroke-width:1.2; stroke-linecap:round; stroke-linejoin:round; }
.part-leader circle { fill:var(--cream); stroke:var(--fern); stroke-width:1.5; }
.part-info { position:relative; z-index:3; max-width:510px; margin:0 auto; min-height:111px; padding:16px 20px; border-top:1px solid var(--line); background:var(--cream); }
#partName { font-size:13px; font-weight:600; }
.part-info p { font-size:12px; line-height:1.7; margin:8px 0 0; color:#456052; }
.details { padding:56px 5.5% 62px; display:grid; grid-template-columns:repeat(3,1fr); gap:5%; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.number { font-size:9px; color:var(--fern); }
h2 { font:normal clamp(28px,2.4vw,39px)/1.08 Georgia,serif; letter-spacing:-.04em; margin:18px 0; }
.details p { font-size:14px; line-height:1.75; color:#456052; max-width:420px; }
.invitation { text-align:center; padding:75px 20px 84px; background:#e8ddc452; }
.invitation h2 { font-size:clamp(40px,4vw,62px); margin:18px 0; }
.invitation>p:not(.kicker) { font-size:15px; margin:20px 0 28px; color:#456052; }
footer { display:flex; align-items:center; justify-content:space-between; padding:30px 5.5%; gap:20px; border-top:1px solid var(--line); font-size:12px; }
footer>a:last-child { text-decoration:none; }
@media(max-width:1050px) {
  .cart-hero { grid-template-columns:1fr 1.2fr; padding-right:3%; gap:16px; }
  .intro p:not(.kicker) { font-size:14px; }
  .stage { height:480px; }
  .nav>span { display:none; }
}
@media(pointer:coarse) { .desktop-hint { display:none; } .touch-hint { display:inline; } }
@media(max-width:760px) {
  .nav { min-height:72px; padding:14px 6%; }
  .nav img,footer img { max-width:93px; }
  .book { min-height:42px; padding:10px 18px; font-size:11px; }
  .cart-hero { display:flex; flex-direction:column; align-items:stretch; padding:23px 6% 42px; gap:0; }
  .intro { display:contents; }
  .intro .kicker { order:0; font-size:9px; margin:0 0 10px; text-align:center; }
  .intro h1 { order:1; font-size:clamp(30px,8.8vw,40px); line-height:1.05; letter-spacing:-.045em; text-align:center; margin:0; }
  .intro h1 em { display:inline; }
  .interactive { order:2; width:100%; margin:8px 0 23px; }
  .intro p:not(.kicker),.intro .primary,.intro .location { order:3; }
  .intro p.lead { font-size:19px; margin:13px 0 2px; }
  .intro .primary { align-self:flex-start; margin-top:7px; }
  .intro .location { margin-top:17px; }
  .stage { height:auto; aspect-ratio:.92; min-height:0; width:110%; margin:0 -5%; }
  .badge { display:none; }
  .hint { bottom:2px; font-size:10px; }
  .rotate-cue { top:8px; right:14px; gap:4px; }
  .rotate-cue svg { width:24px; height:23px; }
  .desktop-hint { display:none; }
  .touch-hint { display:inline; }
  .controls { margin:10px auto 18px; gap:9px; }
  .controls button { padding:10px 20px; font-size:12px; }
  .part-info { min-height:123px; padding:15px 12px; }
  .details { grid-template-columns:1fr; gap:25px; padding:40px 7%; }
  .details article+article { border-top:1px solid var(--line); padding-top:25px; }
  .details h2 { font-size:32px; }
  .details p { max-width:none; }
  .invitation { padding:58px 7% 64px; }
  footer { flex-wrap:wrap; padding:27px 7%; }
  footer>span { font-size:11px; }
  footer>a:last-child { flex-basis:100%; font-size:11px; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  .stage canvas,.stage>img,.loading,.part-leader { transition:none; }
}
/* One quiet annotation sits above the cart; interaction happens on the model. */
.part-info{position:absolute;top:20px;left:18px;max-width:225px;width:40%;margin:0;min-height:0;padding:0;border:0;background:transparent;pointer-events:none}
#partName{font-size:12px}
.part-info p{font-size:11px;line-height:1.5;margin:5px 0 0}
.part-leader{z-index:1}
.controls{margin-bottom:0}
@media(max-width:760px){.part-info{top:8px;left:16px;width:58%;max-width:205px;min-height:0;padding:0}.part-info p{font-size:11px}.interactive{margin-bottom:25px}.controls{margin-bottom:0}}

/* Settings stay beside the diorama on wide screens and become a compact row on phones. */
.interactive{display:grid;grid-template-columns:90px minmax(0,1fr);align-items:center;gap:5px}
.scene-menu{display:flex;flex-direction:column;align-items:stretch;gap:5px;padding:0 2px 35px 0}
.scene-menu-label{font-size:8px;text-transform:uppercase;letter-spacing:.14em;line-height:1.5;color:#617365;margin:0 0 9px 10px}
.scene-menu button{min-height:44px;border:1px solid transparent;border-radius:22px;background:transparent;text-align:left;padding:9px 11px;font-size:11px;color:#456052;transition:background .2s,color .2s}
.scene-menu button:hover:not(:disabled){background:#17352b0b}
.scene-menu button[aria-pressed=true]{background:var(--ink);color:var(--cream)}
.scene-menu button[aria-pressed=true]:hover:not(:disabled){background:var(--fern);color:var(--cream)}
.scene-caption{font-size:11px;line-height:1.6;text-align:center;max-width:350px;margin:14px auto 0;color:#617365;min-height:36px;padding:0 8px}
.scene-status{position:absolute;bottom:90px;left:0;width:100%;margin:0;text-align:center;font-size:11px;color:var(--fern);pointer-events:none}

@media(min-width:1060px){.cart-hero{grid-template-columns:minmax(290px,.72fr) minmax(0,1.48fr);gap:24px;padding-right:3%}.stage{height:clamp(480px,48vw,740px)}}
@media(max-width:1050px){.interactive{grid-template-columns:minmax(0,1fr)}.scene-menu{flex-direction:row;gap:3px;justify-content:center;padding:0 0 8px}.scene-menu-label{display:none}.scene-menu button{font-size:10px;text-align:center;padding:8px 10px}}
@media(max-width:760px){.interactive{gap:0;margin-top:15px}.scene-menu{margin:0 -2% 8px;padding:0;gap:2px;justify-content:space-between}.scene-menu button{font-size:10px;padding:8px 9px;min-height:44px}.scene-caption{font-size:10px;min-height:32px;margin-top:12px}.scene-status{bottom:89px;font-size:10px}}
@media(prefers-reduced-motion:reduce){.scene-menu button{transition:none}}

@media(max-width:760px){.scene-menu{padding:4px;border:1px solid #17352b24;border-radius:30px;background:#eae5d8}.scene-menu button{flex:1;min-width:0;padding:8px 5px;border-radius:24px;white-space:nowrap}.scene-menu button:hover:not(:disabled){background:#17352b10}.scene-menu button[aria-pressed=true]:hover:not(:disabled){background:var(--fern)}}

/* Give the desktop scene the available height, with a slim control row above the fold. */
@media(min-width:761px){
  .interactive{align-self:start;--control-height:32px;--scene-menu-height:0px}
  .stage{height:min(900px,calc(100svh - 142px - var(--control-height) - var(--scene-menu-height)));min-height:240px}
  .controls{gap:8px;margin-top:3px}
  .controls button{min-height:var(--control-height);padding:6px 16px;font-size:11px;line-height:18px}
  .scene-caption{margin-top:10px}
}
@media(min-width:761px) and (max-width:1050px){.interactive{--scene-menu-height:57px}}
@media(min-width:761px) and (pointer:coarse){.interactive{--control-height:44px}}

/* Event descriptions replace equipment callouts in the dioramas. */
.stage[data-event-scene]:not([data-event-scene=cart]) .part-info{width:calc(100% - 130px);max-width:290px;left:18px;top:20px}
@media(max-width:760px){.stage[data-event-scene]:not([data-event-scene=cart]) .part-info{width:calc(100% - 95px);max-width:260px;left:16px;top:8px}.stage[data-event-scene]:not([data-event-scene=cart]) .part-info p{font-size:10px}}

.part-info{background:rgba(245,240,227,.92);border-radius:10px;padding:9px 11px}
