/* ==== The Inquiry Room (/inquiry-room): the hero. ONE source for the React page (imported by inquiry-room.tsx) and the
   server's first paint (scripts/inquiry-room-media.mts copies it, content-hashed, to server/vendor/inquiry-room/media/,
   linked from the page's <head> with /stacks/first-paint.css, which carries the room tokens, the plate and the bar).
   The hero paints from the server's HTML before any script runs; React then replaces it with the same markup. ==== */
.irp { min-height: 100vh; padding: 81px 0 0; overflow-x: clip; }

/* ---- the hero (round 2, 18 Nov): the room itself. The room's own painting at night, the lamp lit on the left and the
   moon in the window on the right, drawn as the product's opening draws it; the words and the one plate in the dark on
   the right; the six witnesses as coins under the plate. The light, the dust, the grain and the vignette are code. */
.irp-hero { --lamp: 255, 196, 120; position: relative; isolation: isolate; display: grid; align-items: center; overflow: hidden;
  min-height: clamp(620px, calc(100svh - 81px), 900px); padding: clamp(36px, 6vh, 72px) clamp(16px, 4vw, 56px); }
/* the room fades into the page's own night at its foot (a mask, so there is no seam whatever colour is behind it) */
.irp-hero__room { position: absolute; inset: 0; z-index: -1; overflow: hidden; container-type: size; pointer-events: none; --fx: 0.5; --fy: 0.4;
  background: #060d18; -webkit-mask-image: linear-gradient(180deg, #000 82%, rgba(0, 0, 0, 0) 100%); mask-image: linear-gradient(180deg, #000 82%, rgba(0, 0, 0, 0) 100%); }
/* the painting is at least as wide as the hero and 1.5 times as wide as it is tall, never wider than its own 1920 px;
   the focus point (--fx, --fy) stays in the middle where the crop allows, and it never slides off an edge */
.irp-hero__art { --art-w: min(1920px, max(100cqw + 28px, 150cqh + 42px)); --art-h: calc(var(--art-w) / 1.5);
  position: absolute; width: var(--art-w); height: var(--art-h);
  left: clamp(min(0px, 100cqw - var(--art-w)), 50cqw - var(--art-w) * var(--fx), max(0px, (100cqw - var(--art-w)) / 2));
  top: clamp(min(0px, 100cqh - var(--art-h)), 50cqh - var(--art-h) * var(--fy), max(0px, (100cqh - var(--art-h)) / 2)); }
.irp-hero__art picture, .irp-hero__art img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
/* the lamp's light, in the painting's own coordinates: the bulb, the room it warms, the cone, the pool on the desk, the moon */
.irp-light { position: absolute; pointer-events: none; mix-blend-mode: screen; animation: irp-lamp-on 1.6s ease-out 0.15s both; }
.irp-light--bulb { left: 20.3%; top: 46%; width: 15%; aspect-ratio: 1.7; translate: -50% -50%;
  background: radial-gradient(ellipse at center, rgba(var(--lamp), 0.72) 0%, rgba(var(--lamp), 0.26) 26%, rgba(var(--lamp), 0) 68%); }
.irp-light--room { left: 22%; top: 50%; width: 78%; aspect-ratio: 1.5; translate: -50% -50%;
  background: radial-gradient(ellipse at center, rgba(var(--lamp), 0.16) 0%, rgba(var(--lamp), 0.05) 40%, rgba(var(--lamp), 0) 70%); }
/* the cone: the shape clipped inside, the softness (blur) on the box around it, so its edges are light, not lines */
.irp-light--cone { left: 2%; top: 46.4%; width: 42%; height: 29%; filter: blur(14px); opacity: 0.85; }
.irp-light--cone i { position: absolute; inset: 0; clip-path: polygon(26% 0, 62% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(var(--lamp), 0.26) 0%, rgba(var(--lamp), 0.08) 55%, rgba(var(--lamp), 0.02) 100%); }
.irp-light--pool { left: 22%; top: 74%; width: 46%; aspect-ratio: 3.6; translate: -50% -50%;
  background: radial-gradient(ellipse at center, rgba(var(--lamp), 0.3) 0%, rgba(var(--lamp), 0.08) 45%, rgba(var(--lamp), 0) 70%); }
.irp-light--moon { left: 96.9%; top: 7.8%; width: 13%; aspect-ratio: 1; translate: -50% -50%;
  background: radial-gradient(circle at center, rgba(243, 236, 224, 0.4) 0%, rgba(150, 180, 230, 0.26) 14%, rgba(150, 180, 230, 0.08) 38%, rgba(150, 180, 230, 0) 70%); }
/* once lit, the lamp breathes, slowly (transform and opacity only) */
.irp-light--bulb, .irp-light--pool { animation: irp-lamp-on 1.6s ease-out 0.15s both, irp-breathe 7s ease-in-out 1.8s infinite alternate; }
.irp-light--room { animation: irp-lamp-on 1.6s ease-out 0.15s both, irp-breathe 9s ease-in-out 1.8s infinite alternate; }
@keyframes irp-lamp-on { from { opacity: 0; } }
/* The light, the dust and the camera wait for the page itself (React's hero has .is-live; the server's first paint does
   not): React draws the hero again over the first paint, which would restart any animation that had already begun. So
   the first paint is the still painting, and on the page the lamp warms up as the camera moves. */
.irp-hero:not(.is-live) .irp-light, .irp-hero:not(.is-live) .irp-dust { visibility: hidden; }
/* the opening (round 3): one slow push-in toward the room, about 7.5 s, played once, resting where it ends; a transform
   only (no layout moves, and the painting is already painted when it starts) */
.irp-hero.is-live .irp-hero__art { transform-origin: 88% 40%; animation: irp-push 7.5s cubic-bezier(0.25, 0.6, 0.3, 1) 0.1s both; }
@keyframes irp-push { from { transform: scale(1); } to { transform: scale(1.05); } }
@keyframes irp-breathe { from { opacity: 0.72; scale: 0.97; } to { opacity: 1; scale: 1.03; } }
/* dust drifting up through the beam (shared/inquiryRoomPage.ts INQUIRY_ROOM_DUST) */
.irp-dust { position: absolute; left: 0; top: 40%; width: 48%; height: 40%; }
.irp-dust i { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--s) * 1px); height: calc(var(--s) * 1px); border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, rgb(var(--lamp)) 0%, rgba(var(--lamp), 0.45) 40%, rgba(var(--lamp), 0) 72%);
  animation: irp-mote calc(var(--dur) * 1s) linear calc(var(--delay) * 1s) infinite; }
@keyframes irp-mote {
  0% { transform: translate(0, 0); opacity: 0; }
  20% { opacity: var(--peak); }
  50% { opacity: calc(var(--peak) * 0.55); }
  75% { opacity: var(--peak); }
  100% { transform: translate(calc(var(--dx) * 1px), calc(var(--dy) * 1px)); opacity: 0; }
}
/* fine film grain (drawn by the browser, sharp at any size) and the vignette: the painting's softness reads as atmosphere */
.irp-hero__grain { position: absolute; inset: 0; opacity: 0.13; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0.33 0.33 0.33 0 0 0.33 0.33 0.33 0 0 0.33 0.33 0.33 0 0 0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* the dark the words stand in (right), the page's own night below, and the vignette */
/* the dark is shaped around the words, so the moon in the top right corner of the window still shows */
.irp-hero__veil { position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 58% 62% at 76% 60%, rgba(6, 13, 24, 0.9) 0%, rgba(6, 13, 24, 0.82) 44%, rgba(6, 13, 24, 0.4) 72%, rgba(6, 13, 24, 0) 100%),
    linear-gradient(270deg, rgba(6, 13, 24, 0.5) 0%, rgba(6, 13, 24, 0.3) 30%, rgba(6, 13, 24, 0) 55%),
    linear-gradient(0deg, rgba(6, 13, 24, 0.6) 0%, rgba(6, 13, 24, 0) 24%),
    linear-gradient(180deg, rgba(6, 13, 24, 0.55) 0%, rgba(6, 13, 24, 0) 7%),
    radial-gradient(ellipse 125% 110% at 46% 42%, rgba(6, 13, 24, 0) 60%, rgba(6, 13, 24, 0.6) 100%); }

.irp-hero__copy { position: relative; justify-self: end; width: min(620px, 47%); margin-right: clamp(0px, 2vw, 32px); }
.irp-kicker { display: flex; flex-wrap: wrap; gap: 0 0.55em; margin: 0 0 18px; color: var(--mt-brass-hi); font: 600 0.8125rem/1.45 var(--mt-sans); letter-spacing: 0.12em; text-transform: uppercase; }
.irp-kicker span { white-space: nowrap; }
.irp-kicker span + span::before { content: "·"; margin-right: 0.55em; }
.irp-h1 { margin: 0; color: var(--mt-ink); font: 400 clamp(2.25rem, 1.3rem + 2.7vw, 3.75rem)/1.03 var(--mt-display); letter-spacing: -0.012em;
  -webkit-text-stroke: 0.014em currentColor; paint-order: stroke fill; text-wrap: balance; text-shadow: 0 2px 24px #060d18; }
.irp-lede { max-width: 33em; margin: 22px 0 0; color: var(--mt-ink-2); font: 500 1.0625rem/1.6 var(--mt-sans); text-wrap: pretty; text-shadow: 0 1px 12px #060d18; }
.irp-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.irp-facts li { padding: 6px 11px 5px; border-radius: 6px; color: var(--mt-brass-hi); font: 600 0.8125rem/1.2 var(--mt-sans); background: rgba(6, 13, 24, 0.55); box-shadow: 0 0 0 1px rgba(216, 180, 109, 0.45) inset; }
.irp-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 30px; }
.irp-trylink { font-size: 1rem; min-height: 48px; text-decoration: underline; text-decoration-color: rgba(216, 180, 109, 0.7); text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.irp-buy { max-width: 32em; margin: 14px 0 0; color: var(--mt-ink-2); font: 500 0.9375rem/1.5 var(--mt-sans); }
/* the six witnesses, as coins: the room's own face crops in brass rims */
.irp-coins { display: flex; flex-wrap: wrap; gap: 10px clamp(10px, 1.1vw, 16px); margin: 30px 0 0; padding: 0; list-style: none; }
.irp-coins li { display: grid; justify-items: center; gap: 7px; }
.irp-coin { position: relative; display: block; width: clamp(48px, 4.4vw, 62px); aspect-ratio: 1; overflow: hidden; border-radius: 50%; background: #13223a;
  box-shadow: 0 0 0 2px #e3c878, 0 0 0 4px #6e5220, 0 0 0 5px rgba(243, 222, 160, 0.4), 0 10px 22px rgba(4, 8, 16, 0.7), 0 0 26px rgba(var(--lamp), 0.1); }
.irp-coin img { display: block; width: 100%; height: 100%; object-fit: cover; }
.irp-coin::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 22%, rgba(243, 236, 224, 0.22), rgba(243, 236, 224, 0) 46%); }
.irp-coins__name { color: var(--mt-ink-2); font: 600 0.6875rem/1 var(--mt-sans); letter-spacing: 0.14em; text-transform: uppercase; }

/* the one action on this page is the product's brass, not the shelf's amber (review round 1) */
.irp .mt-plate:not(.mt-plate--quiet) { color: #2b1c06; background: linear-gradient(180deg, #f0dc9a 0%, #e3c878 38%, #c2a04a 100%);
  box-shadow: 0 1px 0 rgba(255, 250, 225, 0.6) inset, 0 -1px 0 rgba(80, 56, 10, 0.32) inset, 0 2px 0 #7a5c22, 0 14px 32px -12px rgba(var(--lamp, 255, 196, 120), 0.55), 0 0 0 1px rgba(0, 0, 0, 0.3); }
.irp .mt-plate:not(.mt-plate--quiet):hover { box-shadow: 0 1px 0 rgba(255, 250, 225, 0.65) inset, 0 2px 0 #7a5c22, 0 18px 38px -12px rgba(255, 196, 120, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.3); }

/* first paint only (shared/inquiryRoomFirstPaint.ts): the sale line's 40 px and the header bar's place, as React draws them */
.irp-fp-chrome { position: relative; }
.irp-fp-sale { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 12px; overflow: hidden; background: #0d1a2d; color: #f5dfa8;
  font: 500 0.9375rem/1.2 var(--mt-sans); white-space: nowrap; }
.irp-fp-sale__full { text-decoration: underline; text-underline-offset: 3px; }
.irp-fp-sale__tag { flex: none; padding: 4px 9px; border-radius: 6px; background: rgba(216, 180, 109, 0.16); border: 1px solid rgba(216, 180, 109, 0.55); font: 700 0.75rem/1 var(--mt-sans); letter-spacing: 0.03em; }
.irp-fp-sale__short { display: none; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 639px) {
  .irp-fp-sale__tag, .irp-fp-sale__full { display: none; }
  .irp-fp-sale__short { display: inline; }
}

/* short wide windows: the whole opening on one screen */
@media (min-width: 900px) and (max-height: 820px) {
  .irp-h1 { font-size: clamp(2.125rem, 1.2rem + 2.3vw, 3.25rem); }
  .irp-lede { margin-top: 16px; font-size: 1rem; }
  .irp-facts { margin-top: 16px; }
  .irp-cta { margin-top: 22px; }
  .irp-coins { margin-top: 22px; }
}
/* narrow screens: the painting on top, cropped to the lamp and the middle of the room; the words below it, starting in
   the dark its foot fades into (never over the lit desk) */
@media (max-width: 899px) {
  .irp-hero { display: block; min-height: 0; padding: 0 0 8px; overflow: visible; }
  .irp-hero__room { position: relative; inset: auto; z-index: 0; height: max(40svh, 17.5rem); --fx: 0.36; --fy: 0.56;
    -webkit-mask-image: linear-gradient(180deg, #000 64%, rgba(0, 0, 0, 0) 100%); mask-image: linear-gradient(180deg, #000 64%, rgba(0, 0, 0, 0) 100%); }
  .irp-hero__veil { background:
    linear-gradient(0deg, rgba(6, 13, 24, 0.7) 0%, rgba(6, 13, 24, 0) 40%),
    linear-gradient(180deg, rgba(6, 13, 24, 0.6) 0%, rgba(6, 13, 24, 0) 16%),
    radial-gradient(ellipse 120% 110% at 40% 46%, rgba(6, 13, 24, 0) 60%, rgba(6, 13, 24, 0.6) 100%); }
  .irp-hero__copy { width: auto; margin: -2.75rem 0 0; padding: 0 clamp(16px, 4vw, 48px); }
  .irp-hero.is-live .irp-hero__art { transform-origin: 38% 56%; }
  .irp-h1 { font-size: clamp(2.125rem, 1.4rem + 3vw, 3rem); }
  .irp-coins { gap: 10px; margin-top: 26px; }
}
@media (max-width: 699px) {
  .irp-kicker { flex-direction: column; margin-bottom: 12px; font-size: 0.75rem; }
  .irp-kicker span + span::before { content: none; }
  .irp-lede { font-size: 1rem; margin-top: 14px; }
  .irp-facts { margin-top: 16px; }
  .irp-cta { margin-top: 20px; gap: 10px 20px; }
  .irp-coins { justify-content: space-between; gap: 6px; }
  .irp-coin { width: 46px; }
  .irp-coins__name { font-size: 0.625rem; letter-spacing: 0.08em; }
}
@media (prefers-reduced-motion: reduce) {
  .irp-hero.is-live .irp-hero__art { animation: none; }
  .irp-light, .irp-light--bulb, .irp-light--pool, .irp-light--room { animation: none; }
  .irp-dust i { animation: none; opacity: calc(var(--peak) * 0.8); }
}
