:root {
  color-scheme: dark;
  --night: #110e0d;
  --panel: #201916;
  --ink: #f4e7d5;
  --muted: #beab98;
  --gold: #daa96c;
  --line: #67503b;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--night);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
body.is-viewing, body.has-dialog { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-underline-offset: .25em; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
button { color: inherit; }
.intro {
  min-height: 100vh;
  min-height: 100svh;
  padding: max(1.1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  background: radial-gradient(ellipse at 30% 24%, #42251666, transparent 64%), var(--night);
}
.brand { text-align: center; display: grid; gap: .25rem; margin: 0 auto 1.25rem; }
.brand-title { font: 1.1rem Georgia, 'Times New Roman', serif; text-transform: uppercase; letter-spacing: .23em; color: var(--gold); }
.brand-subtitle { font-size: .75rem; letter-spacing: .15em; }
.case { max-width: 31rem; margin: auto; }
.letter { margin: 0; }
.letter img { display: block; width: 100%; height: auto; border: 1px solid #80614070; box-shadow: 0 16px 55px #0006; }
.letter figcaption { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 3.1rem; color: var(--muted); font-size: .8125rem; }
.text-button { min-height: 44px; background: none; border: 0; padding: .6rem .2rem; color: var(--gold); font-size: .875rem; }
.text-button span { margin-left: .3rem; }
.briefing-heading { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.briefing { position: sticky; bottom: 0; padding: .9rem 0 max(.65rem, env(safe-area-inset-bottom)); background: linear-gradient(#110e0ded, var(--night) 35%); z-index: 1; }
.invitation { margin: 0 0 1rem; font: 1.125rem/1.4 Georgia, 'Times New Roman', serif; text-align: center; }
.invitation br { display: none; }
.primary-button, .secondary-button { display: flex; justify-content: center; align-items: center; gap: .75rem; min-height: 56px; border-radius: 3px; padding: .875rem 1rem; text-decoration: none; text-align: center; font-weight: 600; line-height: 1.4; }
.primary-button { background: linear-gradient(110deg, #edc58d, #c28c51); border: 1px solid #f5d2a1; color: #24170d; box-shadow: 0 6px 26px #ab632322; }
.primary-button svg { flex-shrink: 0; }
.primary-button .arrow { margin-left: auto; font-size: 1.35rem; font-weight: normal; }
.touch-hint { text-align: center; margin: .75rem 0 0; color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.intro-footer { margin: 1.25rem auto 0; text-align: center; font: italic .875rem/1.5 Georgia, 'Times New Roman', serif; color: var(--muted); }
.eyebrow { color: var(--gold); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; line-height: 1.6; }
.rule { display: flex; align-items: center; gap: 1rem; color: var(--gold); margin: 1.75rem 0; }
.rule::before, .rule::after { content: ''; width: 4rem; height: 1px; background: var(--line); }
.viewer { position: fixed; inset: 0; width: 100%; height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: var(--night); z-index: 5; }
.viewer-toolbar { display: flex; align-items: center; gap: .6rem; min-height: 60px; padding: max(.35rem, env(safe-area-inset-top)) max(.6rem, env(safe-area-inset-right)) .35rem max(.6rem, env(safe-area-inset-left)); border-bottom: 1px solid #67503b70; }
.toolbar-button { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: .6rem; background: none; border: 0; color: var(--ink); font-size: .875rem; }
.toolbar-button > span:first-child { font-size: 1.5rem; }
.viewer-title { margin: auto; font: 1.1rem Georgia, 'Times New Roman', serif; }
.viewer-title span { color: var(--gold); font: .8125rem Arial, sans-serif; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 44px; min-height: 44px; background: transparent; border: 1px solid var(--line); border-radius: 3px; font-size: 1.5rem; }
.panorama-stage { position: relative; flex: 1; min-height: 0; background: #090909; }
.panorama-mount, .panorama-mount iframe { display: block; width: 100%; height: 100%; border: 0; }
.viewer-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .25rem 1rem; padding: 0 max(1rem, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(1rem, env(safe-area-inset-left)); border-top: 1px solid #67503b70; color: var(--muted); font-size: .8125rem; }
.loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .6rem; background: radial-gradient(ellipse at center, #352317, #110e0d 70%); padding: 1.5rem; overflow: auto; }
.loading-mark { color: var(--gold); font-size: 2.75rem; animation: breathe 2.3s ease-in-out infinite; }
.loading p { margin: 0; line-height: 1.6; }
#loading-title { font: 1.55rem/1.4 Georgia, 'Times New Roman', serif; }
#loading-copy { color: var(--muted); max-width: 26rem; }
.loading-actions { display: grid; gap: 1.25rem; margin-top: .5rem; }
.secondary-button { background: transparent; border: 1px solid var(--gold); color: var(--gold); }
.dialog { width: min(92%, 32rem); max-height: 86vh; max-height: 86dvh; padding: 1.5rem; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 25px 100px #0009; overscroll-behavior: contain; }
.dialog::backdrop { background: #080605db; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.dialog-heading .eyebrow { margin: 0; }
.dialog h2 { margin: 1rem 0 1.5rem; font: 2.1rem/1.15 Georgia, 'Times New Roman', serif; font-weight: normal; }
.dialog h3 { font-size: 1rem; color: var(--gold); margin: 0 0 .5rem; }
.dialog p { line-height: 1.65; }
.help-item { border-top: 1px solid var(--line); margin: 1.25rem 0; padding-top: 1.25rem; }
.help-item p { margin: .5rem 0; }
.help-small { font-size: .875rem; color: var(--muted); }
.inline-button { border: 0; padding: 0; background: none; font: inherit; color: var(--gold); text-decoration: underline; text-underline-offset: .2em; }
.letter-dialog { background: #292017; }
.letter-dialog h2 { font-size: 2.8rem; font-style: italic; }
.letter-text { font: 1.25rem/1.7 Georgia, 'Times New Roman', serif; }
.signature { text-align: right; color: var(--gold); font-style: italic; font-size: 1.7rem; }
.no-script-note { margin: 1rem auto; max-width: 31rem; line-height: 1.7; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@keyframes breathe { 50% { opacity: .35; transform: scale(.9); } }
@media (hover: hover) {
  .primary-button:hover { background: #f0cb95; }
  .text-button:hover, .toolbar-button:hover { color: #f5d2a1; }
  .secondary-button:hover, .icon-button:hover { background: #daa96c16; }
}
@media (min-width: 800px) {
  .intro { display: flex; flex-direction: column; justify-content: center; padding: 2rem 3rem; }
  .brand { margin-bottom: 2rem; }
  .brand-title { font-size: 1.3rem; }
  .case { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 360px); align-items: center; gap: clamp(3rem, 6vw, 6rem); max-width: 1000px; width: 100%; margin: 0 auto; }
  .briefing { position: static; padding: 0; background: none; }
  .briefing-heading { position: static; width: auto; height: auto; padding: 0; overflow: visible; clip-path: none; white-space: normal; }
  .briefing-heading h1 { font: italic clamp(4rem, 7vw, 6rem)/1 Georgia, 'Times New Roman', serif; margin: .5rem 0; font-weight: normal; }
  .invitation { text-align: left; font-size: 1.65rem; line-height: 1.5; margin-bottom: 2rem; }
  .invitation br { display: block; }
  .intro-footer { margin-top: 1.5rem; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .viewer-toolbar { min-height: 44px; padding-top: env(safe-area-inset-top); padding-bottom: 0; }
  .viewer-footer { min-height: 38px; }
  .viewer-footer .text-button { min-height: 38px; padding-top: .4rem; padding-bottom: .4rem; }
  .loading { justify-content: flex-start; padding: .5rem; gap: .3rem; }
  .loading-mark { display: none; }
  .loading-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
}
