/* MC-Strix V67: the Grimthal entrance before the public launch. */
:root {
  --gate-ink: #000;
  --gate-gold: #c7a66b;
  --gate-paper: #eee7d8;
  --gate-muted: #b4aea2;
  --gate-line: rgba(199, 166, 107, .19);
  --gate-satin: linear-gradient(125deg, #ddc28c 0%, #c8a76b 48%, #b69356 100%);
}
.prelaunch-page *, .prelaunch-flow * { box-sizing: border-box; }
.prelaunch-page, body.prelaunch-flow {
  margin: 0;
  color: var(--gate-paper);
  background: var(--gate-ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
}
.prelaunch-page a, .prelaunch-flow a { color: inherit; }
.prelaunch-page a:focus-visible, .prelaunch-flow :is(a, button, summary):focus-visible {
  outline: 2px solid #e1c58f;
  outline-offset: 6px;
}
.gate-scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: #000; }
/* The supplied photograph stays hidden until the pointer reveals a small area. */
.gate-flashlight {
  --lamp-x: -300px;
  --lamp-y: -300px;
  --lamp-radius: 118px;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #000;
}
.gate-flashlight-reveal {
  position: absolute;
  inset: 0;
  background: url('/assets/grimthal-background-v64.webp') center 55% / cover no-repeat;
  opacity: 0;
}
@supports (mask-image: radial-gradient(circle, #000, transparent)) or (-webkit-mask-image: radial-gradient(circle, #000, transparent)) {
  .gate-flashlight-reveal {
    filter: brightness(1.8) saturate(.72);
    -webkit-mask-image: radial-gradient(circle var(--lamp-radius) at var(--lamp-x) var(--lamp-y), #000 0%, rgba(0, 0, 0, .93) 18%, rgba(0, 0, 0, .6) 46%, rgba(0, 0, 0, .16) 75%, transparent 100%);
    mask-image: radial-gradient(circle var(--lamp-radius) at var(--lamp-x) var(--lamp-y), #000 0%, rgba(0, 0, 0, .93) 18%, rgba(0, 0, 0, .6) 46%, rgba(0, 0, 0, .16) 75%, transparent 100%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    transition: opacity .3s ease;
  }
  .gate-flashlight[data-light-active="true"] .gate-flashlight-reveal { opacity: .92; }
}
.gate-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 clamp(24px, 4.8vw, 88px);
}
.gate-header, .prelaunch-flow nav.gate-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  min-height: 84px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.gate-links { display: flex; gap: 30px; align-items: center; }
.gate-links > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 0;
  color: #bdb6a9;
  font-size: 11px;
  letter-spacing: .09em;
  text-decoration: none;
  transition: color .2s;
}
.gate-links > a:hover, .gate-footer a:hover { color: #e1c58f; }
.gate-links .gate-account { border-bottom: 1px solid var(--gate-line); }
.gate-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0 32px;
  text-align: center;
}
.gate-content { width: min(100%, 880px); animation: gate-reveal 1s ease-out both; }
.gate-kicker {
  margin: 0 0 14px;
  color: var(--gate-gold);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .32em;
  text-transform: uppercase;
}
.gate-title {
  margin: 0;
  color: var(--gate-paper);
  font: 400 40px/1 Georgia, "Times New Roman", serif;
}
.gate-wordmark {
  display: block;
  width: min(100%, 560px, 54vh);
  width: min(100%, 560px, 54svh);
  height: auto;
  margin: 0 auto;
}
.prelaunch-page :is(.gate-kicker, .gate-note, .gate-links > a, .gate-footer) { text-shadow: 0 1px 8px #000; }
.gate-ornament { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 18px 0; }
.gate-ornament::before, .gate-ornament::after { content: ''; width: 68px; height: 1px; background: linear-gradient(90deg, transparent, #c7a66b55); }
.gate-ornament::after { transform: rotate(180deg); }
.gate-ornament span { display: block; width: 4px; height: 4px; border: 1px solid #c7a66b99; transform: rotate(45deg); }
.gate-story { margin: 12px 0 0; color: #c6beb0; font: 400 clamp(16px, 1.5vw, 19px)/1.7 Georgia, "Times New Roman", serif; text-shadow: 0 2px 12px #000; }
.gate-story em { color: #e0d6c3; font-style: italic; }
.gate-launch { margin: 18px 0 0; text-shadow: 0 2px 12px #000; }
.gate-launch-label { display: block; margin-bottom: 3px; color: var(--gate-gold); font-size: 9px; line-height: 1.4; letter-spacing: .2em; text-transform: uppercase; }
.gate-launch time { display: block; color: var(--gate-paper); font: 400 18px/1.4 Georgia, "Times New Roman", serif; }
.gate-launch time span { padding: 0 5px; color: var(--gate-gold); }
.gate-apply {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  width: min(100%, 420px);
  min-height: 88px;
  margin-top: 26px;
  padding: 22px 36px;
  border: 1px solid #d5b779;
  border-radius: 1px;
  color: #201a10 !important;
  background: var(--gate-satin);
  box-shadow: inset 0 1px 0 #f6e6bd55, 0 12px 36px #0008;
  font: 400 25px/1.3 Georgia, "Times New Roman", serif;
  letter-spacing: .1em;
  text-decoration: none;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.gate-apply::before { content: ''; position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; transition: opacity .25s; }
.gate-apply-arrow { display: inline-flex; align-items: center; flex-shrink: 0; width: 30px; }
.gate-apply-arrow svg { display: block; width: 100%; height: 14px; }
.gate-apply:hover { transform: translateY(-1px); border-color: #ead5a8; box-shadow: inset 0 1px 0 #fff0cc66, 0 12px 40px #0009; }
.gate-apply:hover::before { opacity: .07; }
.gate-note { margin: 14px 0 0; font-size: 10px; letter-spacing: .04em; color: #a69e90; }
.gate-status { color: #bfb4a0; }
.gate-status::before { content: ''; display: inline-block; width: 4px; height: 4px; margin: 0 8px 2px 0; border-radius: 50%; background: var(--gate-gold); }
.gate-note .gate-note-divider { padding: 0 8px; color: #776952; }
.gate-footer, .prelaunch-flow footer.gate-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px 28px;
  padding: 14px 0 22px;
  border-top: 1px solid var(--gate-line);
  background: transparent;
  color: #a39c8f;
  font-size: 11px;
  letter-spacing: .035em;
}
.gate-footer p { margin: 0; color: inherit; font-size: inherit; }
.gate-footer .gate-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.gate-footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; transition: color .2s; }
.gate-footer .gate-admin { position: relative; margin-left: 2px; padding-left: 22px; color: #b7ab94; }
.gate-footer .gate-admin::before { content: ''; position: absolute; left: 0; top: calc(50% - 5px); width: 1px; height: 10px; background: #c7a66b44; }
.gate-footer .gate-admin:hover { color: #e1c58f; }
.gate-footer .gate-disclaimer { grid-column: 1 / -1; color: #958e81; text-align: center; font-size: 11px; line-height: 1.65; letter-spacing: 0; }
.gate-skip { position: fixed; top: 12px; left: 50%; z-index: 10; padding: 10px 18px; color: #171d1e !important; background: #f0e6d3; transform: translate(-50%, -150%); }
.gate-skip:focus { transform: translate(-50%, 0); }

/* The account and application pages carry the same gold and charcoal palette. */
body.prelaunch-flow { position: relative; isolation: isolate; min-height: 100vh; --app-blue: #c7a66b; --app-ink: #eee7d8; --app-soft: #171613; --app-line: #4b4437; --app-muted: #b4aea2; }
.prelaunch-flow .gate-scene { z-index: -1; }
.prelaunch-flow nav.gate-header { width: min(1280px, calc(100% - 64px)); margin: 0 auto; min-height: 86px; border-bottom: 1px solid var(--gate-line); }
.prelaunch-flow .gate-header .gate-links { gap: 24px; }
.prelaunch-flow .mc-account-login, .prelaunch-flow .mc-account-summary { display: flex; align-items: center; gap: 8px; padding: 10px 0; font: 500 12px/1.4 system-ui, sans-serif; color: #bdb6a9; cursor: pointer; list-style: none; text-decoration: none; }
.prelaunch-flow .mc-account-summary::-webkit-details-marker { display: none; }
.prelaunch-flow .mc-account-summary::after { content: '⌄'; color: var(--gate-gold); }
.prelaunch-flow .mc-account-menu { position: relative; }
.prelaunch-flow .mc-account-panel { position: absolute; top: 100%; right: 0; z-index: 10; display: grid; gap: 6px; min-width: 240px; padding: 18px; background: #13120f; border: 1px solid var(--gate-line); box-shadow: 0 10px 30px #0006; }
.prelaunch-flow .mc-account-panel strong { font-size: 12px; font-weight: 500; color: var(--gate-gold); }
.prelaunch-flow .mc-account-panel a { font-size: 13px; text-decoration: none; padding: 6px 0; }
.prelaunch-flow .mc-account-panel a:hover { color: var(--gate-gold); }
.prelaunch-flow .mc-account-head { width: 24px; height: 24px; image-rendering: pixelated; }
.prelaunch-flow .account-entry-main { width: min(1100px, calc(100% - 64px)); padding: 72px 0; gap: 75px; }
.prelaunch-flow .entry-eyebrow, .prelaunch-flow .application-hero > small, .prelaunch-flow .step-kicker, .prelaunch-flow .application-success > small { color: var(--gate-gold) !important; font: 500 10px/1.6 system-ui, sans-serif !important; letter-spacing: .17em !important; text-transform: uppercase !important; }
.prelaunch-flow .account-entry-intro h1 { font-weight: 400 !important; font-size: clamp(38px, 4.5vw, 58px); line-height: 1.13 !important; letter-spacing: -.025em !important; }
.prelaunch-flow .entry-lead, .prelaunch-flow .entry-help { color: #b9b2a5; }
.prelaunch-flow .entry-lead { font-size: 15px; }
.prelaunch-flow .entry-help { font-size: 12px; line-height: 1.8; }
.prelaunch-flow .entry-primary { min-height: 54px; padding: 14px 24px; background: var(--gate-satin) !important; border: 1px solid #d5b779; color: #201a10 !important; box-shadow: inset 0 1px 0 #f6e6bd55; font-weight: 500; transition: filter .2s; }
.prelaunch-flow .entry-primary:hover { background: var(--gate-satin) !important; filter: brightness(1.06); }
.prelaunch-flow .entry-secondary { min-height: 54px; color: var(--gate-paper); border-color: var(--gate-line); font-size: 12px; }
.prelaunch-flow .entry-guide { color: var(--gate-gold); }
.prelaunch-flow .entry-journey { background: #10100e; border: 1px solid var(--gate-line); padding: 32px; }
.prelaunch-flow .entry-journey li > span { color: var(--gate-gold); }
.prelaunch-flow .entry-journey h2 { color: var(--gate-paper); font: 400 20px/1.4 Georgia, serif; }
.prelaunch-flow .entry-journey p { color: #b4aea2; font-size: 13px; }
.prelaunch-flow .entry-journey .entry-journey-foot { border-color: var(--gate-line); }
.prelaunch-flow .entry-alert { background: #38231c; color: #ffe1d1; border-color: #df997a; }
.prelaunch-flow footer.gate-footer { width: min(1280px, calc(100% - 64px)); margin: auto auto 0; }
body.application-page.prelaunch-flow { background: #000 !important; }
.prelaunch-flow .application-wrap { width: min(900px, calc(100% - 48px)); }
.prelaunch-flow .application-hero { padding: 45px 0 30px; }
.prelaunch-flow .application-hero::after { display: none; }
.prelaunch-flow .application-hero h1 { font-weight: 400 !important; font-size: clamp(40px, 6vw, 66px); }
.prelaunch-flow .application-hero h1 em { color: var(--gate-gold); }
.prelaunch-flow .application-hero p { color: #b9b2a5; font-size: 14px; max-width: 680px; }
.prelaunch-flow .application-shell { background: #10100e; border-color: var(--gate-line); border-radius: 2px !important; box-shadow: 0 20px 70px #0004 !important; padding: clamp(24px, 5vw, 44px); }
.prelaunch-flow .application-progress li { color: #a49e92; }
.prelaunch-flow .application-progress span { background: #171613; }
.prelaunch-flow .application-progress li:is(.is-active, .is-done) span { color: #201a10; }
.prelaunch-flow .application-step h2 { font-weight: 400 !important; font-size: clamp(28px, 4vw, 40px); }
.prelaunch-flow .step-intro { font-size: 14px; }
.prelaunch-flow .field > span, .prelaunch-flow fieldset legend { color: var(--gate-paper); }
.prelaunch-flow .field :is(input, textarea, select) { background: #090908; border-color: #565043; color: var(--gate-paper); border-radius: 2px; font-weight: 400; }
.prelaunch-flow .field :is(input, textarea, select):focus { outline: 2px solid #c7a66b80; outline-offset: 2px; border-color: var(--gate-gold); }
.prelaunch-flow .field :is(input, textarea)::placeholder { color: #a49e92; opacity: 1; }
.prelaunch-flow .review-card, .prelaunch-flow .project-picks label.project-option { background: #191813; }
.prelaunch-flow .project-picks label.project-option:has(input:checked) { background: #302a1e; }
.prelaunch-flow .agreement { color: #ddd5c6; }
.prelaunch-flow .agreement a { color: #d7b77b; }
.prelaunch-flow.application-page .step-actions .primary { background: var(--gate-satin) !important; border-color: #d5b779 !important; color: #201a10; border-radius: 2px; }
.prelaunch-flow .step-actions .ghost, .prelaunch-flow .success-actions .ghost { background: transparent; color: var(--gate-paper); border-radius: 2px; }
.prelaunch-flow .guided-message, .prelaunch-flow .field-help.is-invalid { color: #ffbd9e; }
.prelaunch-flow .id-document { color-scheme: light; }
.prelaunch-flow.application-page .application-success .primary { background: var(--gate-satin) !important; border-color: #d5b779 !important; color: #201a10; }
@keyframes gate-reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 780px) {
  .gate-flashlight { --lamp-radius: 88px; }
  .gate-layout { padding: 0 24px; }
  .gate-header { min-height: 80px; }
  .gate-main { padding: 16px 0 28px; }
  .gate-kicker { font-size: 9px; letter-spacing: .23em; margin-bottom: 14px; }
  .gate-story { font-size: 17px; }
  .gate-apply { width: min(100%, 390px); min-height: 84px; padding: 22px 28px; font-size: 24px; margin-top: 24px; }
  .gate-links { gap: 22px; }
  .gate-footer, .prelaunch-flow footer.gate-footer { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 4px; padding: 12px 0 18px; }
  .gate-footer .gate-footer-links { gap: 22px; }
  .gate-footer .gate-disclaimer { font-size: 11px; max-width: 62ch; }
  .prelaunch-flow nav.gate-header, .prelaunch-flow footer.gate-footer { width: calc(100% - 36px); }
  .prelaunch-flow .account-entry-main { width: calc(100% - 40px); padding: 46px 0; gap: 36px; grid-template-columns: 1fr; }
  .prelaunch-flow .entry-journey { padding: 24px; }
  .prelaunch-flow .application-wrap { width: calc(100% - 32px); }
  .prelaunch-flow .application-hero { padding: 36px 0 28px; }
}
@media (max-width: 420px) {
  .gate-layout { padding: 0 22px; }
  .gate-links { gap: 20px; }
  .gate-links > a { font-size: 10px; }
  .gate-story { font-size: 16px; }
  .gate-launch time { font-size: 16px; }
  .gate-apply { width: 100%; min-height: 82px; font-size: 24px; gap: 28px; }
  .gate-note { font-size: 9px; letter-spacing: 0; }
  .gate-note .gate-note-divider { padding-inline: 5px; }
  .gate-footer .gate-footer-links { gap: 18px; }
  .gate-footer .gate-admin { padding-left: 18px; }
  .prelaunch-flow .gate-header .gate-links { gap: 14px; }
  .prelaunch-flow .mc-account-login, .prelaunch-flow .mc-account-summary { font-size: 11px; }
}
@media (max-height: 640px) and (min-width: 781px) {
  .gate-header { min-height: 64px; }
  .gate-main { padding: 12px 0 24px; }
  .gate-kicker { margin-bottom: 12px; }
  .gate-ornament { margin: 14px 0; }
  .gate-story { font-size: 16px; line-height: 1.65; }
  .gate-launch { margin-top: 14px; }
  .gate-apply { margin-top: 22px; min-height: 80px; padding-block: 18px; }
  .gate-note { margin-top: 14px; }
  .gate-footer { padding-block: 12px; }
}
@media (max-height: 700px) and (max-width: 780px) {
  .gate-header { min-height: 64px; }
  .gate-main { padding: 16px 0 24px; }
  .gate-kicker { margin-bottom: 14px; }
  .gate-ornament { margin: 14px 0; }
  .gate-story { font-size: 15px; line-height: 1.65; }
  .gate-launch { margin-top: 14px; }
  .gate-apply { min-height: 78px; margin-top: 22px; padding-block: 18px; }
  .gate-note { margin-top: 14px; }
  .gate-footer, .prelaunch-flow footer.gate-footer { padding-block: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .prelaunch-page *, .prelaunch-page *::before, .prelaunch-page *::after,
  .prelaunch-flow *, .prelaunch-flow *::before, .prelaunch-flow *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
