/* Royal Herald: homepage */

@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces-italic.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0B0C10;
  --bg-2: #101117;
  --panel: #15161D;
  --panel-2: #1B1D25;
  --ink: #F4EFE4;
  --ink-2: #CEC7B8;
  --muted: #918B7F;
  --line: rgba(240, 225, 190, 0.1);
  --line-2: rgba(240, 225, 190, 0.16);
  --gold: #D9B866;
  --gold-2: #B8923F;
  --gold-hi: #F6DE9A;
  --red: #D42A43;
  --red-deep: #8E0A1F;
  --serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
b { font-weight: 600; color: var(--ink); }
code {
  font: 500 0.86em/1 ui-monospace, 'SF Mono', 'Cascadia Code', Consolas, monospace;
  padding: 3px 7px; border-radius: 6px;
  background: rgba(240, 225, 190, 0.07); border: 1px solid var(--line);
  color: var(--ink); white-space: nowrap;
}
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--gold); color: #1A1610; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font: 600 15px/1 var(--sans); letter-spacing: 0.005em; text-decoration: none; white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn .i { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover .i:last-child { transform: translateX(3px); }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; }
.btn-sm { height: 38px; padding: 0 18px; font-size: 14px; }
.btn-gold {
  color: #1E1608;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-2));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 -1px 0 rgba(0, 0, 0, 0.15) inset, 0 10px 30px -10px rgba(217, 184, 102, 0.6);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 -1px 0 rgba(0, 0, 0, 0.15) inset, 0 18px 40px -12px rgba(217, 184, 102, 0.75); }
.btn-glass {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.32); transform: translateY(-2px); }

/* ── Nav ── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  background: linear-gradient(180deg, rgba(11, 12, 16, 0.85), rgba(11, 12, 16, 0.55));
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-crest { width: 26px; height: 30px; flex: none; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)); }
.logo-text { display: grid; line-height: 1.1; }
.logo-text b { font: 600 14px/1.1 var(--serif); letter-spacing: 0.16em; text-transform: uppercase; }
.logo-text span { font-size: 12px; color: var(--muted); letter-spacing: 0.02em; margin-top: 3px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }

/* ── Hero ── */
.hero {
  position: relative; isolation: isolate;
  min-height: min(100svh, 980px);
  display: flex; align-items: flex-end;
  padding: 140px 0 120px;
  overflow: hidden;
}
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-bg img { object-fit: cover; object-position: 62% 30%; animation: drift 24s ease-out both; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 12, 16, 0.94) 0%, rgba(11, 12, 16, 0.78) 34%, rgba(11, 12, 16, 0.2) 70%, rgba(11, 12, 16, 0.35) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(11, 12, 16, 0) 38%),
    radial-gradient(60% 60% at 15% 70%, rgba(142, 10, 31, 0.35), transparent 70%);
}
.hero-content { max-width: var(--wrap); }
.hero-content > * { max-width: 640px; }
.kicker {
  display: flex; align-items: center; gap: 14px; margin: 0 0 22px;
  font: 600 12px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
  animation: rise 0.9s var(--ease) 0.1s both;
}
.kicker-line { width: 36px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.hero h1 {
  margin: 0 0 24px;
  font: 500 clamp(42px, 7vw, 84px)/1.02 var(--serif);
  letter-spacing: -0.025em;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45);
  animation: rise 1s var(--ease) 0.2s both;
}
.hero h1 em, h2 em { font-style: italic; font-weight: 420; color: var(--gold-hi); }
.hero-lede { margin: 0 0 36px; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; animation: rise 1s var(--ease) 0.32s both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; animation: rise 1s var(--ease) 0.44s both; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; translate: -50% 0;
  width: 26px; height: 42px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, 0.35);
  display: grid; justify-items: center; padding-top: 8px;
}
.scroll-cue span { width: 3px; height: 8px; border-radius: 3px; background: var(--gold); animation: cue 2s var(--ease) infinite; }

/* ── Sections ── */
.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 680px; margin: 0 auto clamp(44px, 6vw, 68px); text-align: center; }
.eyebrow { margin: 0 0 14px; font: 600 12px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
h2 { margin: 0 0 18px; font: 500 clamp(32px, 4.6vw, 52px)/1.08 var(--serif); letter-spacing: -0.022em; text-wrap: balance; }
.section-lede { margin: 0; font-size: 17px; color: var(--ink-2); text-wrap: pretty; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  position: relative; padding: 34px 30px 32px; border-radius: 20px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 30px 60px -40px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.feature::before {
  content: ''; position: absolute; top: -1px; left: 28px; right: 28px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0.6;
}
.feature:hover { transform: translateY(-4px); border-color: var(--line-2); }
.feature-icon {
  display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 22px; border-radius: 14px;
  color: var(--gold-hi);
  background: linear-gradient(180deg, rgba(217, 184, 102, 0.18), rgba(217, 184, 102, 0.06));
  border: 1px solid rgba(217, 184, 102, 0.28);
}
.feature-icon .i { width: 24px; height: 24px; stroke-width: 1.6; }
.feature h3 { margin: 0 0 10px; font: 550 22px/1.2 var(--serif); letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* Steps */
.steps { list-style: none; margin: clamp(48px, 7vw, 80px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.steps::before { content: ''; position: absolute; top: 27px; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2) 15%, var(--line-2) 85%, transparent); }
.steps li { display: grid; justify-items: center; text-align: center; padding: 0 24px; position: relative; }
.step-n {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px; border-radius: 50%;
  font: 600 18px/1 var(--serif); color: var(--gold-hi); letter-spacing: 0.04em;
  background: var(--bg); border: 1px solid rgba(217, 184, 102, 0.45);
  box-shadow: 0 0 0 6px var(--bg), 0 0 30px -6px rgba(217, 184, 102, 0.35);
}
.steps h4 { margin: 0 0 8px; font: 550 19px/1.25 var(--serif); }
.steps p { margin: 0; max-width: 30ch; color: var(--muted); font-size: 15px; }

/* Gallery */
.section-realm { background: radial-gradient(80% 60% at 50% 0%, rgba(142, 10, 31, 0.16), transparent 70%), var(--bg-2); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; grid-auto-flow: dense; gap: 14px; }
.tile {
  position: relative; overflow: hidden; border-radius: 16px; isolation: isolate;
  background: var(--panel); border: 1px solid var(--line);
}
.tile-wide { grid-column: span 2; }
.tile-tall { grid-row: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease), filter 0.5s; }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 8, 12, 0.85) 0%, rgba(8, 8, 12, 0) 50%); z-index: 0; transition: opacity 0.4s; }
.tile-cap { position: absolute; left: 20px; right: 56px; bottom: 18px; z-index: 1; display: grid; gap: 2px; }
.tile-cap b { font: 550 19px/1.2 var(--serif); }
.tile-cap span { font-size: 13.5px; color: var(--ink-2); opacity: 0; transform: translateY(6px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.tile-zoom {
  position: absolute; right: 16px; bottom: 16px; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transform: scale(0.8); transition: opacity 0.3s, transform 0.3s var(--ease);
}
.tile-zoom .i { width: 16px; height: 16px; }
.tile:hover img, .tile:focus-visible img { transform: scale(1.06); }
.tile:hover .tile-cap span, .tile:focus-visible .tile-cap span { opacity: 1; transform: none; }
.tile:hover .tile-zoom, .tile:focus-visible .tile-zoom { opacity: 1; transform: none; }

/* Lightbox (CSS :target, no JavaScript) */
/* display:none until opened, so the full-size image only downloads when someone clicks. */
.lightbox { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; padding: 24px; }
.lightbox:target { display: grid; animation: fade 0.3s var(--ease) both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(6, 6, 9, 0.88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lightbox figure { position: relative; margin: 0; max-width: min(1200px, 100%); animation: rise 0.45s var(--ease) both; }
.lightbox img { width: auto; max-width: 100%; max-height: calc(100vh - 140px); margin: auto; border-radius: 14px; box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8); }
.lightbox figcaption { margin-top: 14px; text-align: center; color: var(--ink-2); font-size: 15px; }
.lightbox figcaption b { font-family: var(--serif); font-weight: 550; margin-right: 6px; }
.lightbox-close {
  position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); color: var(--ink);
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.18); }

/* Choice + DM mock */
.choice { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.choice-copy h2 { text-align: left; }
.ticks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; color: var(--ink-2); }
.i-tick { width: 24px; height: 24px; padding: 5px; border-radius: 50%; stroke-width: 2.6; color: var(--gold-hi); background: rgba(217, 184, 102, 0.14); margin-top: 1px; }

.dm {
  margin: 0; padding: 22px 22px 20px; border-radius: 18px;
  background: #313338; color: #DBDEE1;
  font: 400 15px/1.45 'gg sans', var(--sans);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.3);
  transform: rotate(1.2deg);
  transition: transform 0.5s var(--ease);
}
.dm:hover { transform: rotate(0deg) translateY(-4px); }
.dm-head { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.dm-avatar { width: 40px; height: 40px; border-radius: 50%; }
.dm-head b { color: #F2F3F5; font-weight: 600; }
.dm-tag { margin: 0 8px 0 6px; padding: 1px 5px; border-radius: 4px; background: #5865F2; color: #fff; font-size: 10.5px; font-weight: 600; vertical-align: 1px; }
.dm-head time { color: #949BA4; font-size: 12px; }
.dm-embed { margin-left: 54px; padding: 12px 16px 14px; border-radius: 4px; background: #2B2D31; border-left: 4px solid #CF142B; }
.dm-embed p { margin: 0 0 8px; }
.dm-title { color: #F2F3F5; font-weight: 700; font-size: 16px; }
.dm-foot { margin: 10px 0 0 !important; font-size: 12px; color: #B5BAC1; }
.dm-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0 54px; }
.dm-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 8px; background: #4E5058; color: #fff; font-size: 14px; font-weight: 500; white-space: nowrap; }
.dm-btn .i { width: 15px; height: 15px; }
.dm-btn:nth-child(2) { box-shadow: 0 0 0 2px var(--gold), 0 0 24px -2px rgba(217, 184, 102, 0.6); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 16px; background: var(--panel); border: 1px solid var(--line); transition: border-color 0.25s, background-color 0.25s; }
.faq details[open] { border-color: var(--line-2); background: var(--panel-2); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 24px; font: 550 18px/1.35 var(--serif);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 1.8px solid var(--gold); border-bottom: 1.8px solid var(--gold);
  transform: rotate(45deg) translateY(-3px); transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--ink-2); }

/* Finale */
.finale { position: relative; isolation: isolate; overflow: hidden; padding: clamp(110px, 14vw, 180px) 0; text-align: center; border-top: 1px solid var(--line); }
.finale-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(1.05) brightness(1.15); }
.finale-shade { position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 50% 50%, rgba(11, 12, 16, 0.25), rgba(11, 12, 16, 0.8)), linear-gradient(0deg, var(--bg), transparent 25%, transparent 75%, var(--bg)); }
.finale-content { display: grid; justify-items: center; }
.finale-crest { width: 54px; height: 63px; margin-bottom: 26px; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5)); }
.finale h2 { font-size: clamp(38px, 6vw, 68px); margin-bottom: 14px; }
.finale p { margin: 0 0 32px; font-size: 18px; color: var(--ink-2); }
.finale p:last-child { margin-bottom: 0; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer p { margin: 0; max-width: 460px; font-size: 13.5px; color: var(--muted); text-align: right; }
.footer-credit {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.footer-credit a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-credit a b { color: var(--ink-2); font-weight: 600; transition: color 0.2s; }
.footer-credit a:hover, .footer-credit a:hover b { color: var(--gold-hi); }

/* Motion */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Responsive */
@media (max-width: 960px) {
  .features { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .steps { grid-template-columns: 1fr; gap: 34px; max-width: 460px; margin-inline: auto; }
  .steps::before { display: none; }
  .choice { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 210px; }
  .tile-tall { grid-row: auto; }
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
}
@media (max-width: 640px) {
  .hero { min-height: 92svh; padding: 120px 0 96px; }
  .hero-bg img { object-position: 70% 30%; }
  .hero-shade { background: linear-gradient(0deg, var(--bg) 4%, rgba(11, 12, 16, 0.82) 45%, rgba(11, 12, 16, 0.45) 100%), radial-gradient(80% 50% at 20% 80%, rgba(142, 10, 31, 0.35), transparent 70%); }
  .hero-actions .btn { flex: 1 1 auto; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .tile-wide { grid-column: auto; }
  .tile-tall { grid-row: auto; }
  .tile-cap span { opacity: 1; transform: none; }
  .dm { transform: none; padding: 18px 14px; }
  .dm-embed, .dm-buttons { margin-left: 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer p { text-align: left; }
  .scroll-cue { display: none; }
}
