@import url("theme.css");
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; }
body { margin: 0; color: var(--text); background: var(--night); font-family: var(--sans); font-size: 15px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; background: url("img/ice.webp") center / 1050px; opacity: .024; pointer-events: none; z-index: -1; }
::selection { color: #fff8e6; background: #625945; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:not(:disabled), summary { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a, button, summary { touch-action: manipulation; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 6px; }
p { margin: 0 0 18px; color: var(--muted); }
h1, h2, h3, blockquote { font-family: var(--serif); font-weight: 400; }
h1, h2, h3 { margin: 0; color: var(--text); }
h2 { font-size: clamp(34px, 3.2vw, 46px); line-height: 1.16; letter-spacing: -.025em; margin-bottom: 23px; }
h3 { font-size: 27px; line-height: 1.25; }
img { display: block; max-width: 100%; height: auto; }
svg { display: inline-block; width: 24px; height: 24px; flex: 0 0 auto; }
figure { margin: 0; }
button { border-radius: 0; }
.container { width: min(var(--page-width), calc(100% - 112px)); margin-inline: auto; }
.section { padding-block: 88px; scroll-margin-top: 22px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 200; padding: 10px 20px; background: var(--gold-light); color: var(--night); }
.skip-link:focus { top: 12px; }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--gold); font-family: var(--sans); font-size: 10px; font-weight: 700; line-height: 1.6; letter-spacing: .21em; text-transform: uppercase; margin-bottom: 18px; }
.eyebrow::before { content: ""; display: block; width: 24px; height: 1px; background: var(--gold); opacity: .7; flex-shrink: 0; }
.button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 51px; padding: 13px 23px; border: 1px solid var(--line); color: var(--text); font-size: 12px; font-weight: 700; line-height: 1.4; letter-spacing: .03em; transition: background .2s, border-color .2s, box-shadow .2s, transform .2s; }
.button svg { width: 19px; height: 19px; }
.button-gold { color: #171b20; border-color: #c7b182; background: linear-gradient(120deg, #d8c191, #b69b67); box-shadow: inset 0 0 0 3px rgba(19, 20, 22, .18), 0 3px 15px #0003; }
.button-gold:hover { background: linear-gradient(120deg, #e7d2a6, #c8b17f); transform: translateY(-2px); box-shadow: inset 0 0 0 3px #171b202a, 0 5px 28px #c4a36926; }
.button-outline { background: rgba(13, 24, 35, .5); border-color: #7d7766; }
.button-outline:hover { background: #1c2a35; border-color: var(--gold-light); }
.button-small { min-height: 41px; padding: 9px 18px; font-size: 11px; }
.button-burgundy { background: linear-gradient(110deg, #603032, #402427); border-color: #987753; box-shadow: inset 0 0 0 3px #171b2040; color: #e6d4b2; }
.button-burgundy:hover { background: #74393a; border-color: var(--gold); }
.text-link { display: inline-flex; align-items: center; gap: 12px; color: var(--gold-light); font-size: 12px; font-weight: 700; letter-spacing: .015em; padding-block: 10px; }
.text-link svg { width: 18px; height: 18px; transition: transform .2s; }
.text-link:hover { color: #f6e6c2; }
.text-link:hover svg { transform: translateX(3px); }
.small-diamond { display: inline-block; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); flex-shrink: 0; }
.ornamental-frame { position: relative; border: 1px solid var(--line); }
.ornamental-frame::before, .ornamental-frame::after { content: ""; position: absolute; width: 15px; height: 15px; border-color: #b49b6a; border-style: solid; pointer-events: none; z-index: 2; opacity: .8; }
.ornamental-frame::before { top: 5px; left: 5px; border-width: 1px 0 0 1px; }
.ornamental-frame::after { bottom: 5px; right: 5px; border-width: 0 1px 1px 0; }

/* Masthead */
.site-header { position: sticky; top: 0; z-index: 50; min-height: 89px; background: rgba(9, 16, 24, .965); border-top: 2px solid #7f7154; border-bottom: 1px solid var(--line-soft); backdrop-filter: blur(14px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 87px; }
.brand { width: 187px; display: flex; flex-direction: column; align-items: center; flex: 0 0 auto; line-height: 1; padding: 3px 0; }
.brand img { width: 100%; }
.brand-classic { color: #d2bd91; font-family: var(--serif); text-transform: uppercase; font-size: 10px; letter-spacing: .55em; padding-left: .55em; margin-top: 4px; }
.site-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.site-nav a { position: relative; display: inline-flex; align-items: center; min-height: 50px; color: #b4bec5; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .10em; white-space: nowrap; transition: color .2s; }
.site-nav a::after { position: absolute; content: ""; height: 1px; left: 0; right: 0; bottom: 1px; background: var(--gold); opacity: 0; transform: scaleX(.4); transition: opacity .2s, transform .2s; }
.site-nav a:hover, .site-nav a.is-active { color: var(--gold-light); }
.site-nav a.is-active::after { opacity: 1; transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 25px; }
.languages { display: flex; align-items: center; gap: 9px; font-size: 10px; font-weight: 700; letter-spacing: .08em; white-space: nowrap; }
.languages a { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 27px; min-height: 44px; }
.languages a[aria-current] { color: var(--gold-light); }
.languages .language-pending { color: #9aa8b3; }
.languages a:hover { color: #f2e0bc; }
.language-divider { color: #536170; font-weight: 400; }
.language-dot { width: 3px; height: 3px; border-radius: 50%; background: #9e865f; position: absolute; top: 9px; right: 0; }
.menu-toggle { display: none; align-items: center; justify-content: center; flex-direction: column; gap: 7px; width: 44px; height: 44px; background: transparent; border: 1px solid var(--line); color: var(--gold); }
.menu-toggle span { display: block; width: 18px; height: 1px; background: currentColor; transition: transform .2s; }
.menu-is-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-is-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Restored mage artwork; full-width layers blend every edge into the page. */
.hero { min-height: 704px; position: relative; isolation: isolate; overflow: hidden; background: transparent; }
.hero::before { content: ""; position: absolute; inset: 0; background: url("img/ice.webp") left center / 920px; opacity: .04; z-index: -1; mask-image: linear-gradient(#000 60%, transparent); }
.hero::after { display: none; }
.hero-art { container-type: size; --art-x: .5; position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: saturate(.88) brightness(.9); }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--night), #0b131d99 22%, #0b131d33 43%, transparent 65%, #0b131d55 92%, var(--night)), linear-gradient(0deg, var(--night), #0b131d80 12%, transparent 35%, transparent 85%, #0b131d55); }
.hero-inner { padding-top: 77px; padding-bottom: 103px; }
.hero-copy { width: 560px; max-width: 54%; }
.hero-copy > .eyebrow { margin-bottom: 20px; font-size: 10px; letter-spacing: .27em; }
.hero-title { width: 550px; max-width: 100%; margin: 0 0 33px -5px; line-height: 1; }
.hero-wordmark { width: 100%; filter: drop-shadow(0 2px 12px rgba(185,217,228,.17)); }
.brand, .hero-title { container-type: inline-size; }
.vector-wordmark { display: block; width: 100%; font-family: "Midkemia Initial", Georgia, serif; font-weight: 400; font-synthesis: none; font-size: 15.5cqw; line-height: 1.12; letter-spacing: -.025em; white-space: nowrap; color: #dce9ec; }
@supports (background-clip: text) {
  .vector-wordmark { background: linear-gradient(180deg, #fafcf9 8%, #d8e6e9 38%, #9eb8c5 55%, #edf5f2 67%, #8bafc4 94%); background-clip: text; -webkit-background-clip: text; color: transparent; }
}
.brand .vector-wordmark { filter: drop-shadow(0 1px 3px #b9d9e422); }
#about-title, #chronicle-title, #join-title, #legacy-title, #faq-title {
  font-family: "Midkemia Display", Georgia, serif;
  font-size: clamp(24px, 2.1vw, 32px);
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.4;
  letter-spacing: .015em;
  color: #dce6e6;
  text-shadow: 0 1px 12px #a2c8dd14;
}
.classic { display: flex; align-items: center; justify-content: center; gap: 19px; color: #d7c7a5; text-transform: uppercase; font-family: var(--serif); font-size: 20px; letter-spacing: .58em; margin-top: 13px; padding-left: .58em; }
.classic > span { position: relative; width: 86px; height: 1px; background: linear-gradient(90deg, transparent, #a09377); }
.classic > span::after { content: ""; position: absolute; right: 0; top: -2px; width: 5px; height: 5px; border: 1px solid #c8b995; transform: rotate(45deg); background: var(--night); }
.classic > span:last-child { transform: rotate(180deg); }
.hero-headline { font-size: 43px; line-height: 1.12; letter-spacing: -.022em; margin-bottom: 17px; }
.hero-headline em { color: #c7d6dd; font-weight: 400; }
.hero-description { width: 390px; max-width: 100%; font-size: 15px; line-height: 1.9; color: #b6c1cb; margin-bottom: 28px; }
.hero-buttons { display: flex; align-items: center; gap: 13px; }
.hero-buttons .button { font-size: 11px; padding-inline: 19px; white-space: nowrap; }
.hero-footnote { display: flex; align-items: center; gap: 11px; margin: 23px 0 0; font-size: 10px; color: #94a2b0; letter-spacing: .13em; }
/* Effects share the exact cover scale/crop of the 1672 x 941 artwork.
   Spark positions are chosen in empty background, never in the face silhouette. */
.hero-effects { position: absolute; top: 0; width: max(100cqw, 177.6833cqh); height: max(100cqh, 56.2799cqw); left: calc((100% - max(100cqw, 177.6833cqh)) * var(--art-x)); pointer-events: none; }
.hero-sparks { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-sparks i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #cceafa; box-shadow: 0 0 9px #aedcfb; animation: drift 11s ease-in-out infinite alternate; }
.hero-sparks i:nth-child(1) { left: 9%; top: 18%; animation-delay: -2s; }
.hero-sparks i:nth-child(2) { left: 21%; top: 54%; animation-delay: -7s; }
.hero-sparks i:nth-child(3) { left: 29%; top: 28%; animation-delay: -5s; }
.hero-sparks i:nth-child(4) { left: 44%; top: 78%; animation-delay: -1s; }
.hero-sparks i:nth-child(5) { left: 50%; top: 14%; animation-delay: -4s; }
.hero-sparks i:nth-child(6) { left: 94%; top: 12%; animation-delay: -3s; }
.hero-sparks i:nth-child(7) { left: 97%; top: 28%; animation-delay: -8s; }
.hero-sparks i:nth-child(8) { left: 94%; top: 76%; animation-delay: -6s; }
.hero-spell { position: absolute; left: 76%; top: 29%; width: 18%; height: 27%; border-radius: 50%; background: radial-gradient(ellipse, #e1fcff88 0%, #94dfff55 17%, #68bdef22 40%, transparent 69%); mix-blend-mode: screen; animation: spell-breathe 6.5s ease-in-out infinite alternate; }
.hero-mist { position: absolute; left: 2%; top: 63%; width: 45%; height: 28%; background: radial-gradient(ellipse at 32% 56%, #94b3ca25, transparent 62%), radial-gradient(ellipse at 76% 38%, #87adc51c, transparent 59%); animation: mist-drift 26s ease-in-out infinite alternate; }
.hero-mist::after { content: ""; position: absolute; inset: -190% 8% 190% 18%; background: radial-gradient(ellipse, #8faec91c, transparent 65%); animation: mist-drift 32s ease-in-out -13s infinite alternate-reverse; }
@keyframes drift { from { opacity: .12; transform: translate(0, 5px); } to { opacity: .65; transform: translate(5px, -8px); } }
@keyframes spell-breathe { from { opacity: .22; transform: scale(.94); } to { opacity: .65; transform: scale(1.06); } }
@keyframes mist-drift { from { opacity: .3; transform: translateX(-2%); } to { opacity: .8; transform: translateX(6%); } }
.hero.effects-paused .hero-effects *, .hero.effects-paused .hero-effects *::after { animation-play-state: paused; }

/* Portal navigation */
.quick-wrap { position: relative; z-index: 3; margin-top: -25px; }
.quick-nav { display: grid; grid-template-columns: repeat(3, 1fr); min-height: 110px; background: linear-gradient(110deg, rgba(18,31,44,.96), rgba(16,28,41,.95)), url("img/ice.webp") center / cover; box-shadow: 0 12px 35px #0003, inset 0 0 0 4px #080f1733; }
.quick-link { display: flex; align-items: center; gap: 20px; padding: 25px 31px; transition: background .2s; }
.quick-link + .quick-link { border-left: 1px solid var(--line-soft); }
.quick-link:hover { background: rgba(196,179,139,.055); }
.quick-icon { width: 33px; height: 33px; color: #bca578; }
.quick-link strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.25; }
.quick-link small { display: block; font-size: 10px; letter-spacing: .025em; color: #a5b1be; margin-top: 5px; }
.quick-arrow { width: 17px; height: 17px; margin-left: auto; color: #b4a382; }

/* A restrained echo of the old carved game panels. */
.about-section { display: grid; grid-template-columns: 1fr .92fr; gap: 100px; align-items: center; padding-top: 92px; padding-bottom: 85px; }
.about-copy .lead { font-family: var(--serif); font-size: 23px; line-height: 1.45; color: #d5dad9; margin-bottom: 23px; }
.about-copy > p:not(.eyebrow):not(.lead) { font-size: 14px; line-height: 1.9; }
.about-copy > .text-link { margin-top: 1px; }
.values-panel { background: linear-gradient(130deg, rgba(20,37,53,.91), rgba(12,25,39,.94)), url("img/ice.webp") center / cover; padding: 42px 36px 17px; box-shadow: inset 0 0 0 5px #11192166; }
.panel-crest { position: absolute; top: -24px; left: calc(50% - 24px); width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid #80714f; transform: rotate(45deg); background: #122232; box-shadow: inset 0 0 0 4px #0b131d; }
.panel-crest svg { transform: rotate(-45deg); width: 27px; height: 27px; color: var(--gold); }
.panel-eyebrow { color: #c8b894; text-align: center; font-size: 9px; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; margin-bottom: 14px; }
.value { display: flex; align-items: flex-start; gap: 23px; padding: 22px 0; }
.value + .value { border-top: 1px solid rgba(162,175,184,.14); }
.value-number { min-width: 24px; padding-top: 1px; font-family: var(--serif); font-size: 24px; color: #b59c6d; text-align: center; }
.value h3 { font-size: 25px; margin-bottom: 7px; }
.value p { font-size: 12px; line-height: 1.85; color: #b0bdc8; margin: 0; }
.section-rule { display: flex; align-items: center; gap: 22px; color: #9e8b63; }
.section-rule > span { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--line)); }
.section-rule > span:last-child { transform: rotate(180deg); }
.section-rule svg { width: 20px; height: 25px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 60px; margin-bottom: 35px; }
.section-heading h2 { max-width: 610px; margin-bottom: 0; }
.heading-note { max-width: 215px; font-size: 12px; line-height: 1.8; margin: 0 0 3px; }
.chronicle-section { padding-top: 68px; padding-bottom: 86px; }
.chronicle-grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; gap: 23px; }
.entry { overflow: hidden; min-height: 298px; padding: 34px 29px 25px; background: linear-gradient(125deg, rgba(18,32,47,.94), rgba(12,23,35,.97)), url("img/ice.webp") center / 600px; transition: border-color .2s; }
.entry:hover { border-color: #8c7a58; }
.entry-number { position: absolute; right: 22px; top: 10px; font-family: var(--serif); font-size: 95px; line-height: 1; color: #a9b9c0; opacity: .07; pointer-events: none; }
.entry-tag { font-size: 9px; color: #baa578; text-transform: uppercase; letter-spacing: .17em; margin-bottom: 24px; }
.entry h3 { font-size: 30px; margin-bottom: 17px; }
.entry-excerpt { font-size: 12px; line-height: 1.95; min-height: 71px; margin-bottom: 18px; }
.entry-details { margin-top: 0; }
.entry-details > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 10px; font-weight: 700; color: #d0b780; border-top: 1px solid var(--line-soft); padding-top: 18px; min-height: 43px; }
summary::-webkit-details-marker { display: none; }
.entry-details > summary svg { width: 18px; height: 18px; }
.entry-details[open] > summary svg { transform: rotate(-90deg); }
.when-open { display: none; }
.entry-details[open] .when-open { display: inline; }
.entry-details[open] .when-closed { display: none; }
.entry-body { padding-top: 21px; }
.entry-body p { font-size: 13px; line-height: 1.9; }
.entry-body .text-link { font-size: 11px; }

/* Frosted entrance panel, directly referencing the original login UI. */
.join-section { background: linear-gradient(180deg, #101d2bb3, #101d2b59 65%, transparent); border-top: 1px solid rgba(132,158,177,.09); padding-top: 71px; padding-bottom: 43px; }
.center-heading { text-align: center; max-width: 900px; margin: 0 auto 39px; }
.center-heading .eyebrow { justify-content: center; }
.center-heading .eyebrow::after { content: ""; width: 24px; height: 1px; background: var(--gold); opacity: .7; }
.center-heading h2 { font-size: 41px; margin-bottom: 14px; }
.center-heading > p:last-child { font-size: 13px; }
.join-panel { display: grid; grid-template-columns: repeat(3, 1fr); position: relative; color: #283342; background: linear-gradient(110deg, #e2e5e9dc, #d1d9e3d9), url("img/ice.webp") center / cover; border: 9px solid #928274; border-image: url("img/panel.webp") 12 stretch; box-shadow: 0 10px 40px #0004, inset 0 0 24px #26314c22; }
.join-step { display: flex; flex-direction: column; position: relative; padding: 28px 30px 22px; }
.join-step + .join-step::before { content: ""; position: absolute; left: 0; top: 28px; bottom: 28px; width: 1px; background: linear-gradient(transparent, #6d75805e 20%, #6d75805e 80%, transparent); }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.step-number { font-family: var(--serif); font-size: 38px; color: #626d7b; line-height: 1; }
.step-top svg { color: #635c50; width: 28px; height: 28px; }
.join-step h3 { color: #283444; font-size: 29px; margin-bottom: 12px; }
.join-step > p { color: #495668; font-size: 12px; line-height: 1.9; margin-bottom: 21px; flex: 1; }
.step-action { display: flex; align-items: center; justify-content: space-between; gap: 15px; width: 100%; min-height: 42px; padding: 9px 13px; border: 1px solid #8e795a; background: #563336; color: #f1e9da; box-shadow: inset 0 0 0 2px #ece3cb1c; font-size: 10px; font-weight: 700; line-height: 1.5; }
.step-action svg { width: 18px; height: 18px; }
a.step-action:hover { background: #733d3f; }
.step-action.is-pending { color: #485264; background: #b9c0cc66; border-color: #8e95a266; box-shadow: none; }
.join-notice { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 25px auto 0; max-width: 850px; }
.join-notice > svg { width: 24px; height: 24px; color: #bfa87e; }
.join-notice p { margin: 0; font-size: 11px; line-height: 1.85; }
.join-notice strong { display: block; font-weight: 400; color: #d3c7b0; }
.join-notice span { color: #a1adba; }

/* The original banner is treated as an archival object, not a new claim. */
.legacy-section { display: grid; grid-template-columns: 1.03fr 1fr; gap: 85px; align-items: center; padding-top: 64px; padding-bottom: 82px; }
.legacy-image { padding: 7px; background: #111923; box-shadow: 0 12px 35px #0005; }
.legacy-image img { width: 100%; filter: saturate(.73) brightness(.92); }
.legacy-figure figcaption { display: flex; justify-content: center; align-items: center; gap: 11px; color: #a5977e; font-size: 8px; text-transform: uppercase; letter-spacing: .14em; margin-top: 14px; }
.legacy-figure blockquote { color: #bbc8d0; text-align: center; margin: 21px 0 0; font-size: 26px; font-style: italic; }
.legacy-copy h2 { font-size: 40px; }
.legacy-copy > p:not(.eyebrow) { font-size: 13px; line-height: 1.95; }
.legacy-copy .text-link { padding-top: 3px; }
.faq-section { display: grid; grid-template-columns: .85fr 1.25fr; gap: 85px; padding-top: 67px; padding-bottom: 84px; }
.faq-intro { max-width: 290px; font-size: 13px; line-height: 1.9; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 30px; list-style: none; color: #d9dedf; font-size: 14px; line-height: 1.6; padding: 22px 1px; }
.faq-item summary:hover { color: var(--gold-light); }
.plus { position: relative; width: 12px; height: 12px; flex: 0 0 auto; color: #c5ae7d; }
.plus::before, .plus::after { content: ""; position: absolute; background: currentColor; }
.plus::before { width: 12px; height: 1px; top: 5.5px; }
.plus::after { width: 1px; height: 12px; left: 5.5px; transition: transform .2s; }
.faq-item[open] .plus::after { transform: rotate(90deg); }
.faq-item > p { margin: -4px 25px 23px 0; font-size: 13px; line-height: 1.9; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #080f17; }
.footer-main { display: flex; align-items: center; gap: 50px; min-height: 122px; }
.footer-brand { width: 164px; }
.footer-main > p { font-family: var(--serif); font-size: 19px; color: #a6b2bc; margin: 0; }
.back-top { display: flex; align-items: center; gap: 14px; margin-left: auto; font-size: 10px; color: #c2af89; min-height: 44px; }
.back-top svg { width: 16px; height: 16px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line-soft); padding-block: 21px; color: #929da7; font-size: 9px; letter-spacing: .035em; }
.footer-bottom a:hover { color: var(--gold-light); }
.footer-domain { color: #ad9d7d; font-size: 10px; }
.preview-notice { border-top: 1px solid #ffffff07; text-align: center; padding: 10px 24px; margin: 0; color: #8e9ca9; background: #0b141e; font-size: 9px; }

/* Native dialog = accessible keyboard focus and Escape behavior. */
.language-dialog { max-width: min(540px, calc(100% - 40px)); padding: 47px; color: var(--text); background: linear-gradient(130deg, rgba(19,37,52,.96), rgba(11,23,34,.98)), url("img/ice.webp") center / cover; box-shadow: 0 25px 100px #000a; }
.language-dialog:not([open]) { display: none; }
.language-dialog::backdrop { background: rgba(3,8,14,.84); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; color: #d8c8a6; background: transparent; border: 0; width: 40px; height: 40px; }
.dialog-icon { width: 40px; height: 40px; color: var(--gold); margin-bottom: 23px; }
.language-dialog h2 { font-size: 38px; }
.language-dialog > p:not(.eyebrow) { font-size: 14px; margin-bottom: 26px; }
.not-found { display: grid; min-height: 100vh; place-items: center; text-align: center; padding: 40px 24px; }
.not-found main { max-width: 600px; }
.not-found img { margin: 0 auto 30px; }
.not-found h1 { font-size: clamp(40px, 7vw, 65px); line-height: 1.15; margin-bottom: 22px; }
.not-found .eyebrow { justify-content: center; }
.not-found .button { margin-top: 15px; }

/* Tablet */
/* Keep the artwork at the approved desktop scale on wide monitors.
   Fade the bounded image into the page instead of enlarging it to fill the viewport. */
@media (min-width: 1441px) {
  .hero-art {
    width: 1440px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent), linear-gradient(#000 72%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent), linear-gradient(#000 72%, transparent);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }
}

@media (max-width: 1200px) {
  .container { width: calc(100% - 72px); }
  .header-inner { gap: 22px; }
  .brand { width: 165px; }
  .site-nav { gap: 22px; }
  .header-actions { gap: 16px; }
  .hero-copy { max-width: 55%; }
  .hero-title { width: 500px; }
  .hero-art { --art-x: .62; }
  .hero-art img { object-position: 62% top; }
  .hero-headline { font-size: 40px; }
  .quick-link { gap: 15px; padding-inline: 22px; }
  .quick-link strong { font-size: 21px; }
  .quick-icon { width: 28px; height: 28px; }
  .about-section { gap: 58px; }
  .values-panel { padding-inline: 28px; }
  .entry { padding-inline: 24px; }
  .entry h3 { font-size: 28px; }
  .join-step { padding-inline: 24px; }
  .legacy-section, .faq-section { gap: 55px; }
}
@media (max-width: 980px) {
  .container { width: calc(100% - 56px); }
  .header-inner { flex-wrap: wrap; min-height: 78px; gap: 0; }
  .site-header { min-height: 80px; }
  .brand { width: 168px; }
  .header-actions { margin-left: auto; gap: 21px; }
  .header-join { display: none; }
  .site-nav { order: 3; width: 100%; margin: 0; gap: 30px; padding: 10px 0 14px; border-top: 1px solid var(--line-soft); }
  .js-ready .site-nav { display: none; }
  .js-ready .menu-toggle { display: flex; }
  .js-ready .menu-is-open .site-nav { display: flex; }
  .hero { min-height: 678px; }
  .hero-inner { padding-top: 80px; padding-bottom: 94px; }
  .hero-copy { width: 490px; max-width: 70%; }
  .hero-title { width: 470px; }
  .hero-art { opacity: .85; }
  .hero-art { --art-x: .65; }
  .hero-art img { object-position: 65% top; }
  .hero-art::after { background: linear-gradient(90deg, var(--night), #0b131dbb 30%, transparent 75%, #0b131d66), linear-gradient(0deg, var(--night), transparent 55%); }
  .hero-headline { font-size: 39px; }
  .hero-description { width: 360px; color: #c1cad1; }
  .quick-link { gap: 12px; padding: 24px 17px; }
  .quick-arrow { display: none; }
  .quick-link strong { font-size: 20px; }
  .quick-link small { font-size: 9px; }
  .quick-icon { width: 27px; height: 27px; }
  .about-section { gap: 40px; }
  .about-copy .lead { font-size: 21px; }
  .about-copy > p:not(.eyebrow):not(.lead) { font-size: 13px; }
  .values-panel { padding-inline: 24px; }
  .panel-eyebrow { font-size: 8px; }
  .value { gap: 14px; }
  .value h3 { font-size: 23px; }
  .value p { font-size: 11px; }
  .section-heading { gap: 35px; }
  .heading-note { max-width: 165px; font-size: 11px; }
  .chronicle-grid { gap: 16px; }
  .entry { padding: 28px 22px 22px; min-height: 317px; }
  .entry h3 { font-size: 25px; }
  .entry-excerpt { font-size: 11px; }
  .entry-tag { font-size: 8px; min-height: 22px; margin-bottom: 16px; }
  .entry-excerpt { min-height: 87px; }
  .center-heading h2 { font-size: 36px; }
  .join-step { padding: 24px 22px 20px; }
  .join-step h3 { font-size: 25px; }
  .join-step > p { font-size: 11px; }
  .step-action { padding: 9px; font-size: 9px; gap: 7px; }
  .step-action svg { width: 15px; height: 15px; }
  .legacy-section { gap: 38px; }
  .legacy-copy h2 { font-size: 33px; }
  .legacy-figure blockquote { font-size: 23px; }
  .legacy-figure figcaption { font-size: 7px; }
  .faq-section { grid-template-columns: .8fr 1.2fr; gap: 40px; }
  .footer-main { gap: 32px; }
  .footer-main > p { font-size: 17px; max-width: 240px; }
}

/* Mobile: preserve the illustration without putting text over the face. */
@media (max-width: 700px) {
  html { scroll-padding-top: 95px; }
  .container { width: calc(100% - 40px); }
  .section { padding-block: 59px; }
  .header-inner { min-height: 71px; }
  .site-header { min-height: 73px; }
  .brand { width: 150px; }
  .brand-classic { font-size: 8px; margin-top: 2px; }
  .header-actions { gap: 13px; }
  .languages { gap: 5px; font-size: 10px; }
  .languages a { min-width: 24px; }
  .menu-toggle { width: 40px; height: 40px; }
  .site-nav { justify-content: space-between; gap: 13px; padding-top: 9px; padding-bottom: 10px; }
  .site-nav a { font-size: 9px; letter-spacing: .03em; min-height: 42px; }
  .hero { min-height: 0; }
  .hero-art { inset: 0 0 auto; width: 100%; height: clamp(200px, 38svh, 330px); opacity: 1; }
  .hero-art { --art-x: .76; }
  .hero-art img { object-position: 76% top; }
  .hero-art::after { background: linear-gradient(0deg, var(--night) 0%, rgba(11,19,29,.63) 20%, transparent 64%), linear-gradient(90deg, rgba(11,19,29,.85), transparent 36%, transparent 67%, rgba(11,19,29,.5)), linear-gradient(180deg, rgba(11,19,29,.2), transparent 27%); }
  .hero::before { opacity: .025; }
  .hero::after { height: 85px; }
  .hero-inner { padding-top: clamp(140px, calc(38svh - 80px), 250px); padding-bottom: 32px; }
  .hero-copy { width: 100%; max-width: none; text-align: left; }
  .hero-copy > .eyebrow { justify-content: flex-start; font-size: 8px; letter-spacing: .22em; gap: 9px; margin-bottom: 12px; }
  .hero-copy > .eyebrow::before { width: 17px; }
  .hero-title { width: 320px; max-width: 100%; margin: 0 0 18px; }
  .classic { margin-top: 8px; font-size: 13px; letter-spacing: .56em; gap: 14px; }
  .classic > span { width: 63px; }
  .hero-headline { font-size: clamp(28px, 7.5vw, 34px); line-height: 1.12; margin-bottom: 14px; }
  .hero-description { max-width: 360px; width: 100%; font-size: 13px; line-height: 1.7; margin: 0 0 18px; color: #bbc6cf; }
  .hero-buttons { justify-content: flex-start; flex-wrap: wrap; gap: 11px; }
  .hero-buttons .button { font-size: 10px; padding-inline: 15px; min-height: 49px; }
  .hero-buttons .button-gold { gap: 9px; }
  .hero-buttons .button svg { width: 16px; height: 16px; }
  .hero-footnote { justify-content: flex-start; font-size: 9px; line-height: 1.5; letter-spacing: .04em; margin-top: 14px; }
  .hero-sparks { height: 500px; }
  .quick-wrap { margin-top: -5px; }
  .quick-nav { grid-template-columns: 1fr; }
  .quick-link { padding: 20px 23px; gap: 20px; min-height: 91px; }
  .quick-link + .quick-link { border-left: 0; border-top: 1px solid var(--line-soft); }
  .quick-icon { width: 30px; height: 30px; }
  .quick-link strong { font-size: 23px; }
  .quick-link small { font-size: 10px; margin-top: 3px; }
  .quick-arrow { display: block; margin-left: auto; width: 17px; height: 17px; }
  h2 { font-size: 35px; }
  .eyebrow { font-size: 8px; letter-spacing: .18em; margin-bottom: 14px; }
  .about-section { display: block; padding-top: 63px; }
  .about-copy h2 { font-size: 39px; }
  .about-copy .lead { font-size: 23px; line-height: 1.5; }
  .about-copy > p:not(.eyebrow):not(.lead) { font-size: 13px; }
  .about-copy > .text-link { font-size: 11px; }
  .values-panel { margin-top: 55px; padding: 43px 26px 14px; }
  .panel-eyebrow { font-size: 8px; }
  .value { gap: 19px; padding-block: 23px; }
  .value h3 { font-size: 26px; }
  .value p { font-size: 12px; }
  .section-rule { gap: 17px; }
  .section-rule svg { width: 18px; height: 24px; }
  .section-heading { display: block; margin-bottom: 28px; }
  .section-heading h2 { margin-bottom: 17px; font-size: 37px; }
  .heading-note { max-width: 270px; font-size: 12px; }
  .chronicle-grid { grid-template-columns: 1fr; gap: 16px; }
  .entry { padding: 30px 28px 24px; min-height: 0; }
  .entry-number { font-size: 100px; }
  .entry-tag { font-size: 9px; min-height: 0; margin-bottom: 21px; }
  .entry h3 { font-size: 32px; margin-bottom: 13px; }
  .entry-excerpt { font-size: 13px; min-height: 0; margin-bottom: 19px; }
  .entry-details > summary { font-size: 11px; padding-top: 16px; }
  .join-section { padding-top: 57px; padding-bottom: 29px; }
  .center-heading { margin-bottom: 27px; }
  .center-heading h2 { font-size: 36px; }
  .center-heading > p:last-child { font-size: 12px; }
  .center-heading .eyebrow { font-size: 7px; gap: 9px; }
  .center-heading .eyebrow::before, .center-heading .eyebrow::after { width: 18px; }
  .join-panel { grid-template-columns: 1fr; }
  .join-step { padding: 26px 24px 27px; }
  .join-step + .join-step::before { left: 24px; right: 24px; top: 0; bottom: auto; width: auto; height: 1px; background: #7f879352; }
  .step-number { font-size: 38px; }
  .join-step h3 { font-size: 29px; }
  .join-step > p { font-size: 12px; margin-bottom: 20px; }
  .step-action { font-size: 11px; min-height: 43px; padding-inline: 13px; }
  .step-action svg { width: 18px; height: 18px; }
  .join-notice { align-items: flex-start; gap: 13px; margin: 23px 5px 0; }
  .join-notice svg { margin-top: 3px; width: 21px; height: 21px; }
  .join-notice p { font-size: 10px; }
  .join-notice strong { margin-bottom: 4px; }
  .legacy-section { display: flex; flex-direction: column; gap: 37px; padding-top: 44px; }
  .legacy-figure { width: 100%; }
  .legacy-figure figcaption { font-size: 7px; margin-top: 12px; letter-spacing: .075em; gap: 8px; }
  .legacy-figure blockquote { font-size: 25px; margin-top: 20px; }
  .legacy-copy h2 { font-size: 36px; }
  .legacy-copy .text-link { font-size: 11px; }
  .faq-section { display: block; }
  .faq-section h2 { font-size: 37px; }
  .faq-intro { font-size: 13px; max-width: 285px; margin-bottom: 29px; }
  .faq-item summary { font-size: 13px; padding-block: 20px; }
  .faq-item > p { font-size: 12px; }
  .footer-main { flex-wrap: wrap; justify-content: center; gap: 15px; padding-block: 29px; }
  .footer-brand { width: 171px; }
  .footer-main > p { flex: 0 0 100%; max-width: none; text-align: center; font-size: 18px; }
  .back-top { margin: 0; font-size: 10px; }
  .footer-bottom { flex-direction: column; gap: 10px; padding-block: 23px; font-size: 8px; text-align: center; }
  .footer-domain { order: -1; }
  .preview-notice { font-size: 8px; padding-inline: 20px; }
  .language-dialog { padding: 38px 27px 31px; }
  .language-dialog h2 { font-size: 34px; }
  .language-dialog .button { width: 100%; font-size: 11px; }
}
@media (max-width: 370px) {
  .container { width: calc(100% - 32px); }
  .brand { width: 133px; }
  .header-actions { gap: 8px; }
  .languages { gap: 2px; }
  .hero { min-height: 0; }
  .hero-buttons { gap: 8px; }
  .hero-buttons .button { min-height: 46px; padding-inline: 12px; }
  .site-nav { gap: 7px; }
  .site-nav a { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
