@font-face { font-family: 'Cormorant Garamond'; src: url(../assets/fonts/cormorant-garamond-400.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url(../assets/fonts/cormorant-garamond-500.woff2) format('woff2'); font-weight: 500; font-style: normal; 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; }
/* latin-ext of the display weight: only fetched for characters such as the Ė in DRĖĖĖMY */
@font-face { font-family: 'Cormorant Garamond'; src: url(../assets/fonts/cormorant-garamond-500-latin-ext.woff2) format('woff2'); font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; src: url(../assets/fonts/cormorant-garamond-300i.woff2) format('woff2'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url(../assets/fonts/cormorant-garamond-400i.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Raleway'; src: url(../assets/fonts/raleway-300.woff2) format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Raleway'; src: url(../assets/fonts/raleway-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Raleway'; src: url(../assets/fonts/raleway-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }

:root { color-scheme: dark; --ink: #05060a; --night: #0b0c17; --indigo: #17132f; --gold: #d2b27a; --gold-pale: #efdfb8;
  --ivory: #ece6da; --mute: #a9a6b4; --dim: #6f6c7c; --display: 'Cormorant Garamond', Georgia, serif;
  --dw: 500; --fs: 1.16; /* display weight + size factor for Cormorant, as in the approved prototype (PROTO temple rules use them) */ }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--ink); overflow: hidden; }
body { color: var(--ivory); font-family: 'Raleway', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
ul, ol { list-style: none; }

.deck { position: fixed; inset: 0; container: deck / size; overflow: hidden; isolation: isolate; outline: none; touch-action: pinch-zoom; /* one-finger swipes are ours, two-finger pinch zooms */
  background: radial-gradient(120% 90% at 50% 18%, #17132f 0%, #0b0c17 46%, #05060a 100%); }

/* screens + staged entrance */
/* each screen is a centred canvas whose aspect is clamped (≤ 16:10 landscape, ≤ .56 portrait) so layouts keep their proportions on
   wide laptop windows and on phones with browser toolbars; cq units inside a screen resolve against this canvas */
.screen { position: absolute; inset: 0; margin: 0 auto; width: min(100cqw, 160cqh); container: screen / size; z-index: 5; visibility: hidden; pointer-events: none; }
.screen.is-active { visibility: visible; pointer-events: auto; }
.screen.is-leaving { visibility: visible; }
/* animations inside screens that are not on view are paused (the temple icons loop otherwise) */
.screen:not(.is-active):not(.is-leaving) * { animation-play-state: paused; }
/* watchdog: if the scripts never start the deck (e.g. a failed request), the screen named in the URL appears on its own after 5 s */
.deck:not(.started)[data-screen="0"] #cover,
.deck:not(.started)[data-screen="1"] #who,
.deck:not(.started)[data-screen="2"] #offer,
.deck:not(.started)[data-screen="3"] #experiences,
.deck:not(.started)[data-screen="4"] #temple,
.deck:not(.started)[data-screen="5"] #journey,
.deck:not(.started)[data-screen="6"] #members,
.deck:not(.started)[data-screen="7"] #moments,
.deck:not(.started)[data-screen="8"] #clients,
.deck:not(.started)[data-screen="9"] #bespoke,
.deck:not(.started)[data-screen="10"] #join { animation: fallbackShow 0s linear 5s forwards; }
.deck:not(.started)[data-screen="0"] #cover :is([data-a], .wtitle),
.deck:not(.started)[data-screen="1"] #who :is([data-a], .wtitle),
.deck:not(.started)[data-screen="2"] #offer :is([data-a], .wtitle),
.deck:not(.started)[data-screen="3"] #experiences :is([data-a], .wtitle),
.deck:not(.started)[data-screen="4"] #temple :is([data-a], .wtitle),
.deck:not(.started)[data-screen="5"] #journey :is([data-a], .wtitle),
.deck:not(.started)[data-screen="6"] #members :is([data-a], .wtitle),
.deck:not(.started)[data-screen="7"] #moments :is([data-a], .wtitle),
.deck:not(.started)[data-screen="8"] #clients :is([data-a], .wtitle),
.deck:not(.started)[data-screen="9"] #bespoke :is([data-a], .wtitle),
.deck:not(.started)[data-screen="10"] #join :is([data-a], .wtitle) { animation: fallbackShow 0s linear 5s forwards; }
@keyframes fallbackShow { to { visibility: visible; opacity: 1; pointer-events: auto; } }
.screen [data-a] { opacity: 0; }
.screen.is-active [data-a] { animation: enter .8s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--base, 180ms) + var(--d, 0) * .55ms); }
.screen.is-leaving [data-a] { animation: leave .38s cubic-bezier(.5,0,.75,.3) both; animation-delay: calc(var(--d, 0) * .15ms); }
@keyframes enter { from { opacity: 0; transform: translateY(2.6cqh); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes leave { from { opacity: 1; transform: none; filter: none; } to { opacity: 0; transform: translateY(-2cqh); filter: blur(4px); } }

/* antique-gold title, plain fade entrance */
.tglow { filter: drop-shadow(0 0 .9cqw rgba(226,200,143,.16)); }
.wtitle { display: inline-block; font-family: var(--display); font-weight: 500; text-transform: uppercase; line-height: 1.1; padding: 0 .08em; color: transparent; opacity: 0;
  background-image: linear-gradient(100deg, transparent 45%, rgba(255,248,230,.45) 50%, transparent 55%), url(../assets/img/patina.jpg), linear-gradient(180deg, #f6ecd2 0%, #e2c88f 38%, #c4a064 70%, #8c6a36 100%);
  background-size: 320% 100%, 460px 170px, 100% 100%; background-repeat: no-repeat, repeat, no-repeat; background-position: 130% 0, 0 0, 0 0;
  background-blend-mode: screen, multiply, normal; -webkit-background-clip: text; background-clip: text;
  -webkit-mask-image: var(--wear, none); mask-image: var(--wear, none); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.screen.is-active .wtitle { animation: tfade 1.15s cubic-bezier(.2,.7,.2,1) var(--td, .2s) both, sweep 14s ease-in-out calc(var(--td, .2s) + 2s) infinite; }
.screen.is-leaving .wtitle { opacity: 1; }
@keyframes tfade { from { opacity: 0; transform: translateY(1.2cqh); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes sweep { 0% { background-position: 130% 0, 0 0, 0 0; } 30%, 100% { background-position: -30% 0, 0 0, 0 0; } }

.eyebrow { display: inline-flex; align-items: center; gap: 1.1cqw; font: 400 max(.8cqw, 9px)/1 'Raleway', sans-serif; letter-spacing: .48em; text-transform: uppercase; color: var(--gold); }
.eyebrow::before, .eyebrow.c::after { content: ''; width: 3.2cqw; height: 1px; background: linear-gradient(90deg, transparent, rgba(210,178,122,.8)); }
.eyebrow.c::after { transform: scaleX(-1); }
.lead { font: italic 300 max(1.85cqw, 14px)/1.3 'Cormorant Garamond', serif; color: var(--ivory); }
.body { font: 300 max(1.2cqw, 12px)/1.75 'Raleway', sans-serif; color: var(--mute); }
.fine { font: 300 max(.85cqw, 10px)/1.6 'Raleway', sans-serif; color: var(--dim); }

/* chrome */
.rail { position: absolute; right: 2.2cqw; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: .8cqw; z-index: 6; }
.rail button { display: block; width: max(1.1cqw, 10px); height: max(1.1cqw, 10px); color: var(--gold); opacity: .45; transition: opacity .4s; }
.rail button:hover, .rail button:focus-visible { opacity: .85; }
.rail button:focus-visible { outline: 1px solid rgba(239,223,184,.85); outline-offset: 3px; border-radius: 50%; }
.rail button.cur { opacity: 1; }
.rail svg { width: 100%; height: 100%; display: block; overflow: visible; }
.counter { position: absolute; left: 3cqw; bottom: 3.2cqh; z-index: 6; display: flex; align-items: baseline; gap: .6cqw; color: var(--gold); font-family: var(--display); }
.counter .num { font-size: max(1.1cqw, 12px); letter-spacing: .12em; display: inline-block; }
.counter .num.flip { animation: flip .8s cubic-bezier(.2,.7,.2,1); }
@keyframes flip { from { opacity: 0; transform: translateY(60%); } to { opacity: 1; transform: none; } }
.counter .tot { font-size: max(.72cqw, 9px); color: var(--dim); letter-spacing: .22em; }
.hint { position: absolute; left: 50%; bottom: 1.8cqh; transform: translateX(-50%); z-index: 6; display: flex; flex-direction: column; align-items: center; gap: .7cqw;
  font-size: max(.7cqw, 9px); letter-spacing: .42em; text-transform: uppercase; color: #bda577; transition: opacity .6s ease; }
.deck:not([data-screen="0"]) .hint { opacity: 0; }
.deck:not([data-screen="0"]) .hint i::after { animation-play-state: paused; }
.hint i { display: block; width: 1px; height: 5cqh; background: currentColor; opacity: .3; position: relative; overflow: hidden; }
.hint i::after { content: ''; position: absolute; left: 0; top: -30%; width: 1px; height: 30%; background: #fff; animation: travel 2.6s ease-in-out infinite; }
@keyframes travel { from { top: -30%; } to { top: 100%; } }
.skip { position: absolute; left: -999px; top: 0; z-index: 9; }
.skip:focus { left: 1rem; top: 1rem; padding: .6rem 1rem; background: var(--night); outline: 1px solid var(--gold); }

@container deck (orientation: portrait) {
  .screen { width: min(100cqw, 56cqh); }
  .eyebrow { font-size: max(2.1cqw, 9.5px); letter-spacing: .4em; gap: 2cqw; }
  .eyebrow::before, .eyebrow.c::after { width: 7cqw; }
  .rail { right: 3cqw; gap: 1.8cqw; }
  .rail button { width: 2.5cqw; height: 2.5cqw; }
  .counter { left: 6cqw; bottom: 1.6cqh; gap: 1.6cqw; }
  .counter .num { font-size: 3.2cqw; } .counter .tot { font-size: max(2cqw, 9.5px); }
  .hint { font-size: max(2cqw, 9.5px); bottom: 2cqh; }
}

@container deck (orientation: landscape) and (max-height: 500px) { .screen { width: 100cqw; } .hint { display: none; } }

/* reduced motion + instant mode (screenshots) */
@media (prefers-reduced-motion: reduce) {
  /* one iteration: an infinite animation shortened to .01ms (the title sweep) would otherwise spin every frame */
  .screen.is-active [data-a], .screen.is-active .wtitle, .screen.is-leaving [data-a] { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
  .hint i::after, .counter .num.flip, .ico * { animation: none !important; }
  .constellation polyline, .stars6 i, .stars6 span, .path::before, .pm .lit, .portrait .ring, .emblem { animation-duration: .01ms !important; animation-delay: 0s !important; }
  .xcol img { transition: none !important; }
}
.deck.instant *, .deck.instant *::before, .deck.instant *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
