@font-face {
  font-family: "Manrope";
  src: url("./assets/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("./assets/fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: var(--color-navy);
  --navy-2: var(--color-navy-raised);
  --gold: var(--color-gold);
  --gold-light: var(--color-gold-light);
  --paper: var(--color-paper);
  --sand: var(--color-sand);
  --ink: var(--color-ink);
  --line: var(--line-light);
  --ease: var(--ease-signature);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 12%, rgba(185, 145, 82, 0.09), transparent 25rem),
    var(--navy);
  color: var(--paper);
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.25;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
  z-index: 20;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 12px 16px; background: var(--paper); color: var(--navy); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }

.ambient { position: fixed; border: 1px solid rgba(185,145,82,.12); pointer-events: none; z-index: -1; }
.ambient-one { width: 44vw; height: 44vw; top: 18vh; right: -24vw; transform: rotate(28deg); animation: drift 20s ease-in-out infinite alternate; }
.ambient-two { width: 28vw; height: 28vw; bottom: -16vw; left: -10vw; transform: rotate(45deg); animation: drift 24s ease-in-out infinite alternate-reverse; }

.site-header { min-height: 100px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand, .footer-brand { position: relative; display: block; width: 176px; height: 50px; overflow: hidden; background: var(--paper); box-shadow: inset 0 0 0 1px rgba(185,145,82,.28); }
.brand img, .footer-brand img { position: absolute; width: 169px; height: 87px; max-width: none; left: 0; top: -24px; object-fit: contain; }
.header-meta { display: flex; gap: 30px; color: var(--sand); font-family: "Manrope"; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; }

.hero { min-height: 650px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr); align-items: center; gap: 6vw; padding-block: 62px 72px; }
.kicker { margin: 0 0 20px; color: var(--gold-light); font-family: "Manrope"; font-size: .74rem; font-weight: 650; letter-spacing: .21em; text-transform: uppercase; }
.hero h1 { margin: 0; max-width: 750px; font-family: "Manrope"; font-size: clamp(3.2rem, 6.2vw, 6.8rem); line-height: .87; letter-spacing: -.075em; font-weight: 300; }
.hero h1 span { display: block; color: var(--gold-light); font-weight: 730; }
.tagline { margin: 26px 0 14px; font-family: "Manrope"; font-size: clamp(1.25rem, 2.2vw, 2rem); letter-spacing: -.035em; }
.intro { max-width: 590px; margin: 0; color: #cbc9c4; font-size: 1.05rem; }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 34px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 13px 22px; border: 1px solid var(--gold); border-radius: 0; text-decoration: none; font-family: "Manrope"; font-weight: 650; cursor: pointer; transition: background .25s, color .25s, transform .25s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--gold); color: var(--navy); }
.button-primary:hover { background: var(--gold-light); }
.today-copy { max-width: 180px; margin: 0; color: var(--sand); font-size: .8rem; line-height: 1.4; }

.hero-object { position: relative; display: flex; justify-content: center; border: 0; padding: 0 0 34px; background: transparent; color: var(--paper); cursor: pointer; perspective: 1400px; }
.hero-object:focus-visible { outline-offset: 10px; }
.hero-frame { position: relative; width: min(34vw, 430px); aspect-ratio: .76; border: 1px solid rgba(228,201,144,.32); transform: rotateY(-6deg) rotateX(1deg); transition: transform var(--duration-medium) var(--ease); }
.hero-object:hover .hero-frame { transform: rotateY(-2deg) translateY(-7px); }
.hero-frame::before, .hero-frame::after { position: absolute; content: ""; border: 1px solid rgba(228,201,144,.15); pointer-events: none; }
.hero-frame::before { inset: 17px -17px -17px 17px; }
.hero-frame::after { inset: -15px 20px 15px -15px; }
.frame-corner { position: absolute; z-index: 4; width: 42px; height: 42px; border-color: var(--gold); border-style: solid; pointer-events: none; }
.corner-one { left: -7px; top: -7px; border-width: 1px 0 0 1px; }
.corner-two { right: -7px; bottom: -7px; border-width: 0 1px 1px 0; }
.hero-glow { position: absolute; inset: 15%; background: radial-gradient(circle at 54% 46%, rgba(228,201,144,.34), rgba(185,145,82,.05) 52%, transparent 76%); filter: blur(16px); animation: breathe 6s ease-in-out infinite; }
.hero-door { position: absolute; inset: 10% 14%; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 34px 29px 30px; border: 1px solid rgba(228,201,144,.82); background: var(--material-navy); box-shadow: -12px 20px 62px rgba(0,0,0,.5), inset 12px 0 24px rgba(255,255,255,.025), inset -1px 0 rgba(0,0,0,.7); transform-origin: left center; animation: doorFloat 7s var(--ease) infinite alternate; }
.hero-door::before { position: absolute; content: ""; inset: 11px; border: 1px solid rgba(185,145,82,.22); pointer-events: none; }
.hero-door-sheen { position: absolute; inset: -30% 42% -20% -20%; background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.09) 48%, transparent 67%); transform: translateX(-55%); transition: transform .8s var(--ease); }
.hero-object:hover .hero-door-sheen { transform: translateX(140%); }
.hero-door-number { font-family: "Manrope"; color: var(--gold-light); font-size: clamp(4rem, 7vw, 6.5rem); font-weight: 250; line-height: 1; letter-spacing: -.08em; }
.hero-door-line { height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.hero-door-label { font-family: "Manrope"; font-size: .65rem; letter-spacing: .17em; text-transform: uppercase; }
.hero-handle { position: absolute; right: 27px; top: 52%; width: 8px; height: 46px; border: 1px solid #d5b875; background: var(--material-gold); box-shadow: 4px 6px 12px rgba(0,0,0,.4); }
.hero-handle::before, .hero-handle::after { position: absolute; left: 2px; content: ""; width: 14px; height: 3px; background: #b99152; transform-origin: left center; }
.hero-handle::before { top: 4px; transform: rotate(-18deg); }
.hero-handle::after { bottom: 4px; transform: rotate(18deg); }
.hero-interaction-label { position: absolute; bottom: 0; font-family: "Manrope"; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sand); }
.orbit { position: absolute; display: block; width: 11px; height: 11px; background: var(--gold); transform: rotate(45deg); }
.orbit-a { top: 8%; right: 6%; animation: orbit 6s ease-in-out infinite; }
.orbit-b { bottom: 11%; left: 8%; animation: orbit 7s ease-in-out infinite reverse; }

.journey { min-height: 118px; display: grid; grid-template-columns: 1.15fr .85fr auto; align-items: center; gap: clamp(28px, 5vw, 72px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.journey-progress { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 18px; }
.journey-value { grid-row: 1 / span 2; color: var(--gold-light); font-family: "Manrope"; font-size: 1.65rem; letter-spacing: -.04em; }
.progress-track { height: 2px; background: rgba(243,240,233,.16); }
.progress-track i { display: block; width: 0; height: 100%; background: var(--gold); transition: width .5s var(--ease); }
.journey-label { color: #a9a9a6; font-size: .72rem; letter-spacing: .05em; }
.journey-next { display: grid; gap: 4px; }
.journey-next strong { color: var(--paper); font-family: "Manrope"; font-size: 1.1rem; font-weight: 550; letter-spacing: .03em; }
.text-button { min-height: 46px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--gold); background: transparent; color: var(--paper); font-family: "Manrope"; font-weight: 600; cursor: pointer; }
.text-button:hover { color: var(--gold-light); }

.calendar-section { padding: 105px 0 120px; background: var(--paper); color: var(--ink); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 42px; }
.section-heading .kicker { color: #806334; }
.section-heading h2, .studio-note h2 { margin: 0; font-family: "Manrope"; font-size: clamp(2.2rem, 4vw, 4.4rem); line-height: 1; letter-spacing: -.055em; font-weight: 430; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: .78rem; color: #52555a; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend-mark { width: 9px; height: 9px; border: 1px solid #6f6f6f; }
.legend-mark.available { background: var(--gold); border-color: var(--gold); }
.legend-mark.opened { background: var(--navy); border-color: var(--navy); }
.legend-mark.locked { background: transparent; }
.legend-mark.today { background: var(--navy); border: 2px solid var(--gold); box-shadow: 0 0 0 2px rgba(185,145,82,.18); }

.calendar-shell { position: relative; }
.calendar-grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 184px; gap: 9px; padding: 20px; background: #d9d3c7; border: 1px solid #aaa195; box-shadow: inset 0 0 0 7px rgba(243,240,233,.52); perspective: 1500px; }
.door-cell { position: relative; min-width: 0; overflow: hidden; border: 1px solid rgba(185,145,82,.34); background: var(--material-navy); color: var(--paper); cursor: pointer; text-align: left; padding: 0; isolation: isolate; box-shadow: var(--shadow-panel); transform: translateZ(0); transition: transform var(--duration-medium) var(--ease), box-shadow var(--duration-medium) var(--ease), border-color var(--duration-fast); }
.door-cell:nth-child(3), .door-cell:nth-child(10), .door-cell:nth-child(17) { grid-row: span 2; }
.door-cell:nth-child(7), .door-cell:nth-child(14), .door-cell:nth-child(21) { grid-column: span 2; }
.door-cell::before { position: absolute; content: ""; inset: 8px; z-index: 2; border: 1px solid rgba(228,201,144,.22); box-shadow: inset 0 0 18px rgba(0,0,0,.24); pointer-events: none; }
.door-cell::after { position: absolute; content: ""; inset: -45% 28% -35% -45%; z-index: 1; background: linear-gradient(108deg, transparent 18%, rgba(255,255,255,.07) 47%, transparent 68%); transform: translateX(-48%); transition: transform .75s var(--ease); pointer-events: none; }
.door-cell:hover, .door-cell:focus-visible { z-index: 3; border-color: rgba(228,201,144,.72); box-shadow: 0 24px 48px rgba(4,12,24,.35), inset 0 1px rgba(255,255,255,.08); transform: translateY(-5px) rotateX(1.5deg); }
.door-cell:hover::after, .door-cell:focus-visible::after { transform: translateX(120%); }
.door-face { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; padding: 21px; transition: transform .45s var(--ease); }
.door-cell:hover .door-face { transform: scale(.985); }
.door-number { font-family: "Manrope"; font-size: clamp(2rem, 3.2vw, 3.7rem); font-weight: 350; line-height: 1; letter-spacing: -.065em; }
.door-status { align-self: flex-start; color: var(--sand); font-family: "Manrope"; font-size: .68rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; }
.door-detail { position: absolute; width: 7px; height: 34px; right: 21px; top: calc(50% - 17px); border: 1px solid rgba(228,201,144,.7); background: var(--material-gold); box-shadow: 3px 4px 8px rgba(0,0,0,.38); }
.door-detail::after { position: absolute; content: ""; width: 12px; height: 2px; right: -7px; top: 15px; background: var(--gold-light); }
.door-cell.is-available { background: var(--material-navy-soft); }
.door-cell.is-available .door-status { color: var(--gold-light); }
.door-cell.is-opened { background: linear-gradient(145deg, #172b49, #0d1d35); border-color: rgba(212,197,176,.44); }
.door-cell.is-opened .door-status::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border: 1px solid var(--gold); transform: rotate(45deg); }
.door-cell.is-locked { background: linear-gradient(145deg, #222b38, #111b2b); color: #d3cec4; cursor: pointer; filter: saturate(.72); }
.door-cell.is-locked .door-number { color: #d8d1c5; opacity: .82; }
.door-cell.is-locked .door-status { color: #aaa59d; }
.door-cell.is-locked .door-detail { height: 25px; top: calc(50% - 12px); opacity: .55; }
.door-cell.is-today { border-color: var(--gold-light); box-shadow: 0 0 0 2px var(--gold), 0 25px 55px rgba(75,48,13,.32), inset 0 1px rgba(255,255,255,.12); }
.door-cell.is-today::before { inset: 10px; border-color: rgba(228,201,144,.6); }
.door-cell.is-today .door-status { color: var(--gold-light); }
.door-cell.is-today .door-status::after { content: "Select to open"; display: block; margin-top: 5px; color: var(--paper); font-size: .6rem; letter-spacing: .08em; }
.door-cell.is-shake { animation: lockedShake .42s ease; }
.calendar-caption { display: flex; justify-content: space-between; gap: 30px; padding-top: 18px; color: #66625c; font-size: .82rem; }
.calendar-caption p { margin: 0; }

.studio-note { min-height: 480px; display: grid; grid-template-columns: .75fr 1.25fr; column-gap: 9vw; align-content: center; padding-block: 90px; }
.studio-note .kicker { grid-column: 1; align-self: start; }
.studio-note h2 { grid-column: 2; grid-row: 1 / span 2; max-width: 760px; }
.studio-note > p:last-child { grid-column: 2; max-width: 620px; margin: 36px 0 0; color: #c9c7c2; font-size: 1.06rem; }
.site-footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px 50px; min-height: 190px; padding-block: 30px; border-top: 1px solid var(--line); color: var(--sand); font-size: .8rem; }
.footer-brand { grid-row: 1 / span 2; }
.site-footer p { margin: 0; }
.footer-links { display: flex; justify-content: flex-end; gap: 22px; }
.footer-links a { color: var(--paper); text-underline-offset: 4px; }
.footer-links a:hover { color: var(--gold-light); }
.footer-copy { grid-column: 3; text-align: right; }

.opening-stage { position: fixed; inset: 0; z-index: 50; visibility: hidden; opacity: 0; display:grid; place-items:center; box-sizing:border-box; padding:clamp(16px,4vw,48px); background:rgba(3,10,22,.94); transition:opacity var(--duration-fast); }
.opening-stage.is-active { visibility: visible; opacity: 1; }
.opening-video { position:relative; width:auto; height:auto; max-width:94vw; max-height:75vh; aspect-ratio:9 / 16; object-fit:contain; object-position:center; background:#030813; display:block; }
.opening-stage:not(.has-flow) .opening-video { display: none; }
.opening-stage.has-flow .opening-frame, .opening-stage.has-flow .opening-caption { display: none; }
.opening-frame, .opening-caption { display: none !important; }
.hero-flow-poster { position:absolute; inset:0; width:100%; height:100%; display:block; background:#030813; border:1px solid rgba(228,201,144,.72); box-shadow:0 18px 48px rgba(0,0,0,.42); z-index:2; overflow:hidden; }
.hero-flow-poster img { width:100%; height:100%; aspect-ratio:9 / 16; object-fit:contain; object-position:center; display:block; }
.hero-frame .hero-door, .hero-frame .hero-glow, .hero-frame .frame-corner, .hero-frame .orbit { display:none; }
.opening-frame { position: fixed; left: var(--origin-left, 50%); top: var(--origin-top, 50%); width: var(--origin-width, 200px); height: var(--origin-height, 260px); background: #030813; border: 1px solid rgba(228,201,144,.5); box-shadow: var(--shadow-lifted); transform-origin: center; transform-style: preserve-3d; }
.opening-depth { position: absolute; inset: -10px -14px -14px 10px; border: 1px solid rgba(185,145,82,.25); background: #020711; transform: translateZ(-16px); }
.opening-light { position: absolute; inset: 2%; background: radial-gradient(circle at 55% 48%, #ffe6af 0%, #d2a75d 28%, #704b16 58%, #130d04 86%); filter: blur(2px); opacity: .98; transform: scale(.92); transition: transform .4s var(--ease), filter .4s; }
.opening-stage.is-opening .opening-light { transform: scale(1.16); filter: blur(8px); }
.opening-door { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 34px; background: var(--material-navy); border: 1px solid var(--gold); color: var(--gold-light); box-shadow: 14px 0 45px rgba(0,0,0,.5); transform-origin: left center; transform-style: preserve-3d; }
.opening-stage.is-opening .opening-door { animation: signatureOpen var(--duration-signature) var(--ease-hinge) forwards; }
.opening-door span { font-family: "Manrope"; font-size: 6rem; font-weight: 250; letter-spacing: -.08em; line-height: 1; }
.opening-sheen { position: absolute; inset: -30% 40% -30% -20%; background: linear-gradient(110deg, transparent, rgba(255,255,255,.09), transparent); }
.opening-handle { width: 8px; height: 44px; margin: auto 0 auto auto; border: 1px solid var(--gold-light); background: var(--material-gold); box-shadow: 0 0 18px rgba(228,201,144,.4); }
.opening-caption { position: fixed; left: 50%; bottom: 30px; margin: 0; color: var(--sand); font-family: "Manrope"; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; transform: translateX(-50%); }

.detail-dialog { width: min(1100px, calc(100vw - 36px)); max-height: min(820px, calc(100dvh - 36px)); padding: 0; border: 1px solid rgba(185,145,82,.55); background: var(--paper); color: var(--ink); box-shadow: 0 40px 140px rgba(0,0,0,.62); overflow: hidden; }
.detail-dialog::backdrop { background: rgba(3,10,23,.88); backdrop-filter: blur(8px); }
.detail-dialog[open] { animation: dialogIn .55s var(--ease); }
.detail-layout { min-height: min(680px, calc(100dvh - 36px)); display: grid; grid-template-columns: 220px 1fr; }
.detail-aside { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 28px; overflow: hidden; background: var(--navy); color: var(--paper); }
.detail-aside::after { position: absolute; content: ""; width: 180px; height: 180px; right: -90px; top: 42%; border: 1px solid rgba(185,145,82,.35); transform: rotate(45deg); }
.icon-button { width: 46px; height: 46px; border: 1px solid rgba(243,240,233,.3); background: transparent; color: var(--paper); cursor: pointer; }
.close-button { position: relative; z-index: 2; }
.close-button span { position: absolute; width: 19px; height: 1px; left: 13px; top: 22px; background: currentColor; transform: rotate(45deg); }
.close-button span:last-child { transform: rotate(-45deg); }
.detail-day-label { margin: auto 0; font-family: "Manrope"; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; }
.detail-day-label strong { display: block; margin-top: 8px; color: var(--gold-light); font-size: 4.5rem; font-weight: 250; line-height: 1; letter-spacing: -.07em; }
.detail-aside-mark { position: absolute; right: -20px; bottom: 40px; color: rgba(185,145,82,.1); font-family: "Manrope"; font-size: 11rem; font-weight: 800; line-height: .7; }
.detail-nav { position: relative; z-index: 2; display: flex; gap: 14px; }
.detail-nav button { border: 0; padding: 10px 0; background: transparent; color: var(--sand); font-size: .75rem; cursor: pointer; }
.detail-nav button:disabled { opacity: .3; cursor: not-allowed; }
.detail-content { padding: clamp(42px, 6vw, 78px); overflow-y: auto; overscroll-behavior: contain; }
.detail-eyebrow { margin: 0 0 18px; color: #74592f; font-family: "Manrope"; font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.detail-content h2 { max-width: 760px; margin: 0; font-family: "Manrope"; font-size: clamp(2.2rem, 4.3vw, 4.3rem); line-height: .98; letter-spacing: -.055em; font-weight: 450; }
.detail-lead { max-width: 680px; margin: 25px 0 34px; color: #555860; font-size: 1.08rem; }
.placeholder-note { margin-top: 36px; padding: 24px; border-left: 3px solid var(--gold); background: #e8e2d6; color: #4a4b4d; }
.tool-form { max-width: 680px; margin-top: 38px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field:first-child { grid-column: 1 / -1; }
.field label { color: #34363b; font-family: "Manrope"; font-size: .78rem; font-weight: 700; }
.field input { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #bcb5a9; border-radius: 0; background: #fff; color: var(--ink); }
.field input:focus { border-color: var(--gold); outline: 2px solid rgba(185,145,82,.25); }
.date-readable { min-height: 18px; color: #6a6359; font-size: .74rem; }
.generated-message { margin-top: 20px; padding: 22px; border: 1px solid #c5bcae; background: #fff; }
.generated-message p { min-height: 55px; margin: 0 0 16px; color: #3e4146; white-space: pre-wrap; }
.action-row { display: flex; gap: 12px; flex-wrap: wrap; }
.action-button { min-height: 48px; padding: 12px 19px; border: 1px solid var(--navy); background: var(--navy); color: #fff; font-family: "Manrope"; font-weight: 680; cursor: pointer; transition: transform .2s, background .2s; }
.action-button:hover { transform: translateY(-2px); background: #12305b; }
.action-button.secondary { background: transparent; color: var(--navy); }
.offer-panel { max-width: 700px; margin-top: 38px; padding: clamp(25px, 5vw, 45px); background: var(--navy); color: var(--paper); }
.offer-limit { color: var(--gold-light); font-family: "Manrope"; font-size: clamp(2rem, 5vw, 4rem); line-height: 1; letter-spacing: -.05em; }
.offer-panel p { max-width: 540px; }
.offer-panel .action-button { margin-top: 12px; border-color: var(--gold); background: var(--gold); color: var(--navy); text-decoration: none; display: inline-flex; align-items: center; }
.christmas-rule { width: 100%; height: 1px; margin: 40px 0; background: linear-gradient(90deg, var(--gold), transparent); }
.christmas-panel { position: relative; max-width: 720px; margin-top: 34px; padding: clamp(28px, 5vw, 50px); overflow: hidden; background: var(--material-navy); color: var(--paper); box-shadow: var(--shadow-panel); }
.christmas-panel::before, .christmas-panel::after { position: absolute; content: ""; width: 150px; height: 150px; border: 1px solid rgba(228,201,144,.24); transform: rotate(45deg); }
.christmas-panel::before { right: -80px; top: -80px; }
.christmas-panel::after { left: -100px; bottom: -100px; }
.christmas-panel p, .christmas-panel a { position: relative; z-index: 1; }
.toast { position: fixed; left: 50%; bottom: 25px; z-index: 80; max-width: calc(100vw - 32px); padding: 12px 17px; background: var(--ink); color: #fff; box-shadow: 0 10px 40px rgba(0,0,0,.4); transform: translate(-50%, 130%); opacity: 0; transition: transform .35s var(--ease), opacity .35s; }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

@keyframes drift { to { transform: translate3d(-20px, 18px, 0) rotate(34deg); } }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .78; } }
@keyframes doorFloat { to { transform: rotateY(-4deg) translateY(-9px); } }
@keyframes orbit { 50% { transform: translateY(12px) rotate(135deg); opacity: .45; } }
@keyframes lockedShake { 25%, 75% { transform: translateX(-3px); } 50% { transform: translateX(4px); } }
@keyframes signatureOpen { 0%, 28% { transform: rotateY(0); } 58% { transform: rotateY(-42deg); } 100% { transform: rotateY(-108deg) translateZ(12px); filter: brightness(.66); } }
@keyframes dialogIn { from { opacity: 0; transform: translateY(18px) scale(.985); } }

@media (max-width: 900px) {
  :root { --shell: min(100% - 36px, 760px); }
  .hero { min-height: auto; grid-template-columns: 1fr .65fr; gap: 28px; padding-block: 58px 70px; }
  .hero h1 { font-size: clamp(3.1rem, 10.5vw, 5.2rem); }
  .hero-object { align-self: stretch; }
  .hero-frame { width: 100%; margin-top: 35px; }
  .hero-frame::before { inset: 14px -10px -10px 10px; }
  .hero-frame::after { inset: -10px 14px 10px -10px; }
  .calendar-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 145px; }
  .door-cell:nth-child(3), .door-cell:nth-child(10), .door-cell:nth-child(17) { grid-row: span 1; }
  .door-cell:nth-child(7), .door-cell:nth-child(14), .door-cell:nth-child(21) { grid-column: span 1; }
  .detail-layout { grid-template-columns: 165px 1fr; }
  .detail-aside { padding: 22px; }
  .journey { grid-template-columns: 1fr 1fr; padding-block: 22px; }
  .journey .text-button { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 640px) {
  :root { --shell: calc(100% - 28px); }
  .site-header { min-height: 82px; }
  .brand { width: 154px; height: 44px; }
  .brand img { width: 152px; height: 79px; top: -22px; left: -1px; }
  .header-meta { display: block; text-align: right; font-size: .62rem; line-height: 1.6; }
  .header-meta span { display: block; }
  .hero { display: block; padding-block: 46px 55px; }
  .hero h1 { font-size: clamp(3.35rem, 17.2vw, 4.7rem); }
  .tagline { margin-top: 22px; font-size: 1.3rem; }
  .intro { font-size: .98rem; }
  .hero-actions { display: block; margin-top: 28px; }
  .button { width: 100%; }
  .today-copy { max-width: none; margin-top: 14px; text-align: center; }
  .hero-object { width: 100%; margin-top: 42px; }
  .hero-frame { width: min(68vw, 272px); margin: 0 auto; }
  .hero-door { inset: 9% 13%; padding: 25px 22px 23px; }
  .hero-door-number { font-size: 4.3rem; }
  .hero-handle { right: 21px; height: 38px; }
  .journey { min-height: auto; grid-template-columns: 1fr; gap: 20px; padding-block: 24px; }
  .journey .text-button { grid-column: auto; width: max-content; }
  .section-heading { display: block; margin-bottom: 30px; }
  .section-heading h2 { font-size: 2.55rem; }
  .legend { margin-top: 24px; gap: 14px; }
  .calendar-section { padding: 70px 0 80px; }
  .calendar-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 116px; gap: 6px; padding: 9px; box-shadow: inset 0 0 0 3px rgba(243,240,233,.55); }
  .door-cell:nth-child(3), .door-cell:nth-child(10), .door-cell:nth-child(17), .door-cell:nth-child(7), .door-cell:nth-child(14), .door-cell:nth-child(21) { grid-row: span 1; grid-column: span 1; }
  .door-cell::before { inset: 5px; }
  .door-face { padding: 13px 11px; }
  .door-number { font-size: clamp(2rem, 10vw, 2.55rem); }
  .door-status { font-size: .58rem; letter-spacing: .1em; }
  .door-detail { right: 13px; width: 5px; height: 25px; top: calc(50% - 12px); }
  .door-cell.is-today .door-status::after { display: none; }
  .calendar-caption { display: block; line-height: 1.5; }
  .calendar-caption p + p { margin-top: 5px; }
  .studio-note { min-height: auto; display: block; padding-block: 80px; }
  .studio-note h2 { font-size: 2.55rem; }
  .studio-note > p:last-child { margin-top: 26px; }
  .site-footer { display: flex; flex-direction: column; min-height: 260px; padding-block: 38px; text-align: center; }
  .footer-brand { width: 176px; height: 50px; margin-bottom: 4px; }
  .footer-brand img { width: 169px; height: 87px; top: -24px; }
  .footer-links { justify-content: center; flex-wrap: wrap; gap: 14px 20px; }
  .footer-copy { text-align: center; }
  .detail-dialog { width: 100%; max-height: 100dvh; height: 100dvh; border: 0; }
  .detail-layout { min-height: 100dvh; display: block; overflow-y: auto; }
  .detail-aside { position: sticky; top: 0; z-index: 3; min-height: 88px; flex-direction: row; align-items: center; padding: 18px 16px; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
  .detail-day-label { margin: 0 auto 0 18px; }
  .detail-day-label strong { display: inline; margin-left: 5px; font-size: 1.5rem; }
  .detail-aside-mark { display: none; }
  .detail-nav { gap: 12px; }
  .detail-nav button { min-width: 42px; font-size: 0; }
  .detail-nav button::before { font-size: .9rem; content: "Prev"; }
  .detail-nav button:last-child::before { content: "Next"; }
  .detail-content { padding: 42px 20px 80px; overflow: visible; }
  .detail-content h2 { font-size: 2.45rem; }
  .form-grid { grid-template-columns: 1fr; }
  .field:first-child { grid-column: auto; }
  .opening-caption { bottom: 18px; }
}

@media (max-width: 350px) {
  .header-meta span:first-child { display: none; }
  .hero h1 { font-size: 3.25rem; }
  .legend { font-size: .72rem; }
  .detail-nav { gap: 5px; }
  .calendar-grid { grid-auto-rows: 108px; gap: 5px; padding: 7px; }
  .door-face { padding: 11px 9px; }
  .door-status { font-size: .54rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body.force-reduced-motion *, body.force-reduced-motion *::before, body.force-reduced-motion *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
