/* The door to the M2 Investor Room. After hours: near-black leather, low warm light, the emblem, two words. */
@font-face { font-family: Manrope; src: url(/assets/fonts/manrope-regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Manrope; src: url(/assets/fonts/manrope-semibold.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: Manrope; src: url(/assets/fonts/manrope-extrabold.ttf) format("truetype"); font-weight: 800; font-display: swap; }
:root { --black: #0b0a09; --ink: #1a1815; --cream: #f5f1e8; --gold: #e0a82e; --gold-soft: #c9a55a; --stone: #a79e8c; color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body.door { margin: 0; min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; font: 400 16px/1.55 Manrope, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--stone); background-color: var(--black); background-image: radial-gradient(ellipse 56% 62% at 50% 42%, rgba(11, 10, 9, 0) 0%, rgba(11, 10, 9, .7) 60%, var(--black) 100%), url(/room-door/leather-1536.webp); background-image: radial-gradient(ellipse 56% 62% at 50% 42%, rgba(11, 10, 9, 0) 0%, rgba(11, 10, 9, .7) 60%, var(--black) 100%), image-set(url(/room-door/leather-1536.avif) type("image/avif"), url(/room-door/leather-1536.webp) type("image/webp")); background-size: cover; background-position: center; }
@media (orientation: portrait) { body.door { background-image: radial-gradient(ellipse 110% 56% at 50% 42%, rgba(11, 10, 9, 0) 0%, rgba(11, 10, 9, .64) 64%, var(--black) 100%), url(/room-door/leather-p-1024.webp); background-image: radial-gradient(ellipse 110% 56% at 50% 42%, rgba(11, 10, 9, 0) 0%, rgba(11, 10, 9, .64) 64%, var(--black) 100%), image-set(url(/room-door/leather-p-1024.avif) type("image/avif"), url(/room-door/leather-p-1024.webp) type("image/webp")); } }
/* Anchored from the top, so the emblem does not jump when a form opens. */
.door-stage { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; padding: clamp(64px, 27vh, 280px) 24px 24px; padding-top: clamp(64px, 27svh, 280px); }
.door-emblem { position: relative; width: clamp(150px, 22vw, 190px); aspect-ratio: 560 / 415; isolation: isolate; }
/* A faint plate of brushed brass behind the emblem, like a fitting catching the room's one lamp. */
.door-emblem::before { content: ""; position: absolute; inset: -70% -55%; z-index: -1; background: url(/room-door/brass-960.webp) center / cover; opacity: .2; -webkit-mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, .5) 38%, transparent 72%); mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, .5) 38%, transparent 72%); mix-blend-mode: screen; pointer-events: none; }
.door-emblem img { display: block; width: 100%; height: auto; }
/* One band of light across the emblem. It is drawn only where the emblem is (the emblem is its mask). */
.door-sweep { position: absolute; inset: 0; pointer-events: none; -webkit-mask: url(/room-door/emblem-560.png) center / contain no-repeat; mask: url(/room-door/emblem-560.png) center / contain no-repeat; background: linear-gradient(104deg, rgba(255, 246, 220, 0) 40%, rgba(255, 246, 220, .9) 50%, rgba(255, 246, 220, 0) 60%) no-repeat; background-size: 260% 100%; background-position: 38% 0; mix-blend-mode: screen; }
.door-line { margin: clamp(26px, 5vh, 40px) 0 0; font-size: 12px; font-weight: 600; letter-spacing: .46em; text-indent: .46em; text-transform: uppercase; color: var(--gold-soft); }
.door-message { min-height: 1.6em; margin-top: 18px; max-width: 34ch; }
.door-note { margin: 0 0 10px; color: #d8d0bf; font-size: 15px; }
.door-note a { color: var(--gold); }
.door-ways { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.door-way { appearance: none; background: none; border: 0; padding: 10px 14px; min-height: 44px; font: inherit; font-size: 14.5px; color: var(--stone); cursor: pointer; text-decoration: underline; text-decoration-color: rgba(167, 158, 140, .35); text-underline-offset: 5px; border-radius: 4px; }
.door-way:hover, .door-way[aria-expanded="true"] { color: var(--cream); text-decoration-color: var(--gold); }
.door-form { width: min(100%, 340px); margin-top: 18px; display: grid; gap: 8px; text-align: left; }
.door-form[hidden], .door-ways[hidden] { display: none; }
/* With one way open, the other steps back; tapping the open one brings both back. */
.door-ways:has([aria-expanded="true"]) .door-way[aria-expanded="false"] { display: none; }
.door-form input:not([type="checkbox"]):focus-visible, .door-form textarea:focus-visible { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.door-form label { font-size: 13px; color: #c9c1b0; }
.door-form label span { color: var(--stone); }
.door-form input:not([type="checkbox"]), .door-form textarea { width: 100%; padding: 12px 13px; font: inherit; color: var(--cream); background: rgba(8, 7, 6, .72); border: 1px solid rgba(201, 165, 90, .66); border-radius: 4px; margin-bottom: 6px; }
.door-form textarea { resize: vertical; min-height: 84px; }
.door-form input::placeholder { color: #8d8576; }
.door-consent { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; line-height: 1.45; }
.door-consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--gold); }
.door-consent a, .door-foot a, .door-back a { color: var(--gold-soft); }
.door-button { appearance: none; margin-top: 6px; padding: 12px 22px; min-height: 46px; font: inherit; font-weight: 600; font-size: 14px; letter-spacing: .06em; color: var(--gold); background: rgba(8, 7, 6, .5); border: 1px solid var(--gold); border-radius: 4px; cursor: pointer; }
.door-button:hover { background: var(--gold); color: var(--black); }
.door-button[disabled] { opacity: .55; cursor: default; }
.door-form [aria-invalid="true"] { border-color: #f0a58f; box-shadow: 0 0 0 1px #f0a58f; }
.door-status { min-height: 1.2em; margin: 0; font-size: 13.5px; color: #f3c9bb; }
.door-status:empty { display: none; }
.door-message:focus { outline: none; }
.door-enter { min-width: 150px; letter-spacing: .2em; text-transform: uppercase; }
.door-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.door-foot { padding: 14px 24px calc(18px + env(safe-area-inset-bottom)); text-align: center; font-size: 12.5px; }
.door-foot a { display: inline-block; padding: 12px 12px; text-decoration: none; opacity: .8; }
.door-foot a:hover { opacity: 1; text-decoration: underline; }
.door-dev { margin-top: 12px; padding: 10px 12px; border: 1px dashed rgba(201, 165, 90, .5); border-radius: 4px; font-size: 13px; text-align: left; }
.door-dev a { color: var(--gold); word-break: break-all; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
/* The privacy note is read on paper. */
body.door-reading { display: block; padding: clamp(16px, 5vw, 56px) 16px; }
.door-paper { max-width: 640px; margin: 0 auto; padding: clamp(24px, 5vw, 48px); background: var(--cream); color: var(--ink); border-radius: 4px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); font-size: 16.5px; line-height: 1.65; }
.door-paper h1 { font-size: clamp(24px, 4.4vw, 32px); line-height: 1.2; font-weight: 800; margin: 12px 0 18px; }
.door-paper a, .door-paper .door-back a { color: #7a5408; }
.door-back { margin: 0; font-size: 14px; }
@media (prefers-reduced-motion: no-preference) { .door-way, .door-button { transition: color .2s ease, background-color .2s ease, text-decoration-color .2s ease; } }
