@font-face { font-family: 'Bussiard Opening Cinzel'; src: url('/fonts/cinzel/Cinzel-VariableFont_wght.ttf') format('truetype'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('/opening/fonts/cormorant-normal-latin.woff2') format('woff2'); font-style: normal; font-weight: 400 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; src: url('/opening/fonts/cormorant-italic-latin.woff2') format('woff2'); font-style: italic; font-weight: 400 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jost'; src: url('/opening/fonts/jost-normal-latin.woff2') format('woff2'); font-style: normal; font-weight: 400 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --teal: #34505a;        /* ground of the backdrop */
  --teal-deep: #1f343b;
  --gold: #c9b27a;        /* crest gold, lifted for text */
  --gold-light: #f4e6bb;
  --gold-dim: #ac9b68;    /* crest gold as drawn */
  --cream: #efe8d8;
  --muted: rgba(239,232,216,.74);
  --hair: rgba(201,178,122,.45);
  --font-mark: 'Bussiard Opening Cinzel', 'Cinzel', 'Trajan Pro', 'Iowan Old Style', Georgia, serif;
  --font-story: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --font-ui: 'Jost', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: dark;
}
[hidden] { display: none !important; }
html { background: var(--teal); }
body { background: var(--teal); color: var(--cream); font: 400 16px/1.6 var(--font-ui); overflow-x: hidden; }
:focus-visible { outline: 1px solid var(--gold-light); outline-offset: 4px; }

/* backdrop: fixed, sized by script to cover the window so the twinkling lights stay on their bulbs */
.scene { position: fixed; left: 50%; top: 50%; width: 100vw; aspect-ratio: 1600 / 749; transform: translate(-50%, -50%); z-index: 0; pointer-events: none; }
.scene img { display: block; width: 100%; height: 100%; max-width: none; }
.scene .glow { position: absolute; left: var(--x); top: var(--y); width: 4.2%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,248,214,.75) 0%, rgba(255,240,190,.28) 28%, rgba(255,240,190,0) 62%);
  mix-blend-mode: screen; opacity: .25; animation: twinkle var(--d, 3.4s) ease-in-out var(--delay, 0s) infinite; }
@keyframes twinkle { 0%, 100% { opacity: .12; } 45% { opacity: .85; } 60% { opacity: .5; } }
.veil { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 46% 60% at 50% 40%, rgba(26,43,49,.5), rgba(26,43,49,0) 72%), linear-gradient(90deg, rgba(26,43,49,0) 12%, rgba(26,43,49,.55) 34%, rgba(26,43,49,.55) 66%, rgba(26,43,49,0) 88%); }

main { position: relative; z-index: 1; }
.stage { position: relative; display: grid; justify-items: center; text-align: center; gap: clamp(14px, 2.2vw, 22px);
  padding-block: clamp(36px, 7vh, 80px) clamp(40px, 8vh, 96px);
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* crest: emblem + two herons on their own layers */
.crest { position: relative; width: min(74vw, 360px); aspect-ratio: 322.13 / 273.87; max-width: 100%; }
.layer { position: absolute; inset: 0; will-change: transform; }
.layer svg { display: block; width: 100%; height: 100%; overflow: visible; }
.crest-light { transform-box: view-box; filter: brightness(1.55) saturate(.9); }
.sweep { animation: crest-sweep 9s ease-in-out 2.4s infinite; }
@keyframes crest-sweep { 0% { transform: translateX(0) rotate(14deg); } 30%, 100% { transform: translateX(440px) rotate(14deg); } }

/* wordmark */
.wordmark { position: relative; display: grid; justify-items: center; gap: 2px; margin-top: -4px; }
.maison { text-transform: uppercase; font: 400 clamp(10px, 1.1vw, 12px)/1 var(--font-mark); letter-spacing: .42em; padding-left: .42em; color: var(--gold); }
.name { text-transform: uppercase; font: 400 clamp(44px, 9vw, 84px)/1 var(--font-mark); letter-spacing: .06em; padding-left: .06em; margin: 0;
  color: var(--gold);
  background: linear-gradient(100deg, var(--gold-dim) 0%, var(--gold) 34%, var(--gold-light) 46%, #fffaf0 50%, var(--gold-light) 54%, var(--gold) 66%, var(--gold-dim) 100%);
  background-size: 320% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: sheen 7.5s ease-in-out 1.2s infinite; }
@keyframes sheen { 0% { background-position: 100% 0; } 38%, 100% { background-position: 0% 0; } }
.glints { position: absolute; inset: 0; pointer-events: none; }
.glint { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; color: #fffaf0; animation: glint 1.1s ease-in-out forwards; filter: drop-shadow(0 0 4px rgba(255,240,200,.9)); }
.glint svg { width: 100%; height: 100%; display: block; }
@keyframes glint { 0% { transform: scale(0) rotate(0deg); opacity: 0; } 45% { transform: scale(1) rotate(45deg); opacity: 1; } 100% { transform: scale(0) rotate(90deg); opacity: 0; } }

.date { text-wrap: balance; margin: 6px 0 0; font: 500 11px/1.5 var(--font-ui); letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }

/* countdown */
.countdown { display: flex; align-items: flex-start; justify-content: center; gap: clamp(10px, 3vw, 34px); margin-top: 4px; }
.unit { display: grid; justify-items: center; gap: 8px; min-width: 0; }
.num { display: flex; font: 400 clamp(36px, 7.4vw, 68px)/1 var(--font-mark); color: var(--cream); }
.digit { position: relative; display: block; width: .78em; height: 1.08em; overflow: hidden; }
.digit span { position: absolute; inset: 0; display: grid; place-items: center; }
.digit .in { animation: d-in .7s cubic-bezier(.2,.7,.2,1) both; }
.digit .out { animation: d-out .7s cubic-bezier(.2,.7,.2,1) both; }
@keyframes d-in { from { transform: translateY(55%); opacity: 0; filter: blur(4px); } to { transform: none; opacity: 1; filter: none; } }
@keyframes d-out { from { transform: none; opacity: 1; } to { transform: translateY(-45%); opacity: 0; filter: blur(3px); } }
.lab { font: 500 10px/1 var(--font-ui); letter-spacing: .3em; padding-left: .3em; text-transform: uppercase; color: var(--gold); }
.sep { width: 6px; height: 6px; margin-top: clamp(16px, 3.4vw, 31px); transform: rotate(45deg); border: 1px solid var(--gold); flex: none; }
.opened { font: italic 400 clamp(30px, 5vw, 46px)/1.2 var(--font-story); color: var(--gold-light); margin: 0; }

.rule { width: min(220px, 50vw); height: 1px; background: linear-gradient(90deg, transparent, var(--hair), transparent); margin-block: 10px 2px; border: 0; }
.tease { margin: 0; font: italic 400 clamp(28px, 4.4vw, 42px)/1.15 var(--font-story); color: var(--gold-light); text-wrap: balance; max-width: 24ch; }
.story { text-shadow: 0 1px 12px rgba(20,34,39,.9); margin: 0; max-width: 40rem; font: 400 clamp(18px, 2vw, 21px)/1.55 var(--font-story); color: var(--cream); text-wrap: pretty; }
.story b { font-weight: 500; color: var(--gold-light); }

/* private preview sign-in */
.access { width: min(100%, 420px); margin-top: clamp(44px, 8vh, 88px); display: grid; gap: 18px; text-align: left;
  padding: clamp(22px, 4vw, 32px); border: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(31,52,59,.78), rgba(31,52,59,.9)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.access h2 { margin: 0; font: 400 15px/1.3 var(--font-mark); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); text-align: center; }
.access .sub { margin: -8px 0 4px; font-size: 13.5px; color: var(--muted); text-align: center; }
.field { display: grid; gap: 6px; }
.field label { font: 500 10.5px/1 var(--font-ui); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.field input { font: 400 16px/1.4 var(--font-ui); color: var(--cream); background: transparent; border: 0; border-bottom: 1px solid var(--hair); padding: 8px 0; border-radius: 0; }
.field input:focus { outline: none; border-bottom-color: var(--gold-light); }
.field input::placeholder { color: rgba(239,232,216,.38); }
.enter { font: 500 12px/1 var(--font-ui); letter-spacing: .28em; text-transform: uppercase; padding: 16px 18px; cursor: pointer;
  color: var(--teal-deep); background: linear-gradient(100deg, var(--gold-dim), var(--gold-light) 50%, var(--gold-dim)); background-size: 200% 100%; border: 0; transition: background-position .6s; }
.enter:hover { background-position: 100% 0; }
.msg { margin: 0; min-height: 1.4em; font-size: 13.5px; color: var(--gold-light); text-align: center; }
.msg.err { color: #f0b8a8; }
.fine { margin: 0; font-size: 12px; color: var(--muted); letter-spacing: .06em; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* option 1: gold foil that catches the light */
.crest .layer { transition: transform .5s cubic-bezier(.2,.7,.2,1); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.foil-on .name { animation: none; background-position: var(--fx, 50%) 0; }

/* option 2: snow */
.snow { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.doors-cta { position: absolute; left: 50%; bottom: calc(3.5vh + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  font: 500 11px/1 var(--font-ui); letter-spacing: .32em; padding: 14px 18px 14px calc(18px + .32em); text-transform: uppercase; white-space: nowrap;
  color: #f6e7bf; background: rgba(28,20,16,.55); border: 1px solid rgba(214,190,130,.5); cursor: pointer; transition: opacity .6s; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.doors-cta:hover { border-color: #f6e7bf; }
.canal-cap { position: absolute; left: 0; right: 0; bottom: calc(9vh + env(safe-area-inset-bottom, 0px)); margin: 0; text-align: center;
  font: 400 clamp(15px, 2vw, 20px)/1 var(--font-mark); letter-spacing: .4em; padding-left: .4em; color: #f3e3b6; text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(0,0,0,.8); opacity: 0; transition: opacity .9s ease; }
.canal-cap.show { opacity: 1; }
.canal-skip { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  font: 500 10.5px/1 var(--font-ui); letter-spacing: .24em; padding: 10px 12px 10px calc(12px + .24em); text-transform: uppercase; color: #f3e3b6; background: rgba(10,20,25,.45); border: 1px solid rgba(214,190,130,.45); cursor: pointer; }

/* Singel 66 on a Christmas evening (real photo, edited) */
.house { position: fixed; inset: 0; z-index: 36; background: #0a1218; transition: opacity 1.1s ease; }
.house.fade { opacity: 0; pointer-events: none; }
.house canvas { display: block; width: 100%; height: 100%; cursor: pointer; }
.house .canal-cap { bottom: auto; top: calc(6.5vh + env(safe-area-inset-top, 0px)); padding-inline: 16px; text-wrap: balance; display: grid; justify-items: center; justify-content: center; gap: 10px; }
.house .canal-cap .cap-small { display: block; font: 500 11px/1 var(--font-ui); letter-spacing: .4em; padding-left: .4em; color: rgba(243,227,182,.75); }
@media (max-width: 600px) { .house .canal-cap { top: calc(9vh + env(safe-area-inset-top, 0px)); font-size: 15px; } }
.house.is-opening .doors-cta { opacity: 0; pointer-events: none; }
.house-credit { position: absolute; left: max(12px, env(safe-area-inset-left, 0px)); bottom: calc(10px + env(safe-area-inset-bottom, 0px)); margin: 0; font: 400 10px/1.3 var(--font-ui); color: rgba(240,232,214,.55); max-width: 55vw; }
.house-credit a { color: inherit; }
/* option 4: wax seal on the invitation */
.access { position: relative; z-index: 3; overflow: hidden; }
.flap { position: absolute; left: 0; right: 0; top: 0; height: 120px; transform-origin: top center; transition: transform 1.1s cubic-bezier(.5,.05,.2,1), opacity 1.1s ease; pointer-events: none; }
.flap svg { width: 100%; height: 100%; display: block; }
.seal { justify-self: center; width: 92px; height: 92px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; z-index: 2; margin-top: 64px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)); }
.seal svg { width: 100%; height: 100%; display: block; overflow: visible; }
.seal .half { transition: transform 1s cubic-bezier(.4,.1,.6,1), opacity 1s ease; transform-box: fill-box; transform-origin: center; }
.seal:hover { filter: drop-shadow(0 8px 14px rgba(0,0,0,.5)) brightness(1.08); }
.seal-hint { margin: -6px 0 0; font-size: 12.5px; letter-spacing: .08em; color: var(--muted); text-align: center; }
.access.sealed .field, .access.sealed .ts-note, .access.sealed .enter, .access.sealed .msg { display: none; }
.access:not(.sealed) .seal-hint { display: none; }
.access.broken .seal .left { transform: translate(-30px, 70px) rotate(-38deg); opacity: 0; }
.access.broken .seal .right { transform: translate(30px, 76px) rotate(34deg); opacity: 0; }
.access.broken .flap { transform: rotateX(180deg); opacity: 0; }
.access.unsealed .seal, .access.unsealed .flap, .access:not(.has-seal) .seal, .access:not(.has-seal) .flap { display: none; }
.access.unsealed .field, .access.unsealed .ts-note, .access.unsealed .enter { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.access.unsealed .ts-note { animation-delay: .12s; } .access.unsealed .enter { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .name, .scene .glow, .sweep { animation: none; }
  .leaf, .portal, .flap, .seal .half, .crest .layer { transition: none; }
  .lamp-glow { animation: none; }
  .digit .in, .digit .out { animation-duration: .01s; }
}
/* ---- production additions (UX-0056 section 4) ---- */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
.ts-note { margin: -6px 0 0; font-size: 11px; color: var(--muted); letter-spacing: .04em; text-align: center; }
.enter[disabled] { opacity: .6; cursor: progress; }
.open-enter { font: 500 13px/1 var(--font-ui); letter-spacing: .32em; padding: 18px 34px 18px calc(34px + .32em); text-transform: uppercase; text-decoration: none; display: inline-block; margin-top: 18px;
  color: var(--teal-deep); background: linear-gradient(100deg, var(--gold-dim), var(--gold-light) 50%, var(--gold-dim)); background-size: 200% 100%; border: 0; cursor: pointer; transition: background-position .6s; }
.open-enter:hover { background-position: 100% 0; }
.replay { font: 500 10.5px/1 var(--font-ui); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); background: none; border: 0; padding: 8px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.replay:hover { color: var(--gold-light); }
.house { opacity: 0; }
.house.ready { opacity: 1; }
.house.fade { opacity: 0; }
.still { position: fixed; inset: 0; z-index: 36; background: #0a1218; display: grid; place-items: center; }
.still img { display: block; width: 100%; height: 100%; object-fit: contain; }
.still .doors-cta { bottom: calc(6vh + env(safe-area-inset-bottom, 0px)); }
.still .house-credit { position: absolute; }
noscript p { position: relative; z-index: 1; text-align: center; padding: 24px; }
[dir="rtl"] .access { text-align: right; }
[dir="rtl"] .house-credit { direction: ltr; }
.house:not(.ready) { pointer-events: none; }
[dir="rtl"] .num { direction: ltr; unicode-bidi: isolate; }
.house.first { opacity: 1; pointer-events: auto; }
.credit-toggle { font: 400 13px/1 var(--font-ui); width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: rgba(10,18,24,.35); color: rgba(240,232,214,.6); cursor: pointer; vertical-align: middle; }
.credit-toggle:hover, .credit-toggle[aria-expanded="true"] { color: rgba(240,232,214,.9); }
.credit-text { margin-left: 6px; vertical-align: middle; }
