/* =========================================================================
   12evelation Studios — site chrome (nav, footer, hero patterns)
   ========================================================================= */

/* =========================================================================
   Top navigation
   ========================================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  height: var(--nav-h);
  background: rgba(8, 6, 5, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-softer);
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
}
.nav.is-scrolled {
  background: rgba(8, 6, 5, 0.96);
  border-bottom-color: var(--line-soft);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  max-width: var(--maxw-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nav-logo { display: flex; align-items: center; flex: none; }
.nav-logo img { height: 42px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.9rem);
  margin-inline: auto;
}

.nav-link {
  position: relative;
  padding: 0.4rem 0.15rem;
  font-size: var(--fs-sm);
  color: var(--text-2);
  transition: color var(--t) var(--ease);
  white-space: nowrap;
}
.nav-link:hover { color: var(--text); }

/* Gold underline on the active item. */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--t) var(--ease);
}
.nav-link.is-active { color: var(--gold); }
.nav-link.is-active::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; flex: none; }

.nav-login {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  font-size: var(--fs-sm);
  color: var(--text);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.nav-login:hover { border-color: var(--line-strong); background: var(--gold-softer); }

.nav-cta {
  padding: 0.62rem 1.35rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #16110A;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border-radius: var(--radius-sm);
  transition: box-shadow var(--t) var(--ease), transform var(--t-fast) var(--ease);
  white-space: nowrap;
}
.nav-cta:hover { box-shadow: 0 6px 22px rgba(224, 169, 60, 0.32); transform: translateY(-1px); }

/* Burger is visible by default and hidden on wide screens (desktop-first) —
   avoids a max-width override being out-cascaded. */
.nav-burger {
  display: block;
  color: var(--gold);
  padding: 0.4rem;
}
@media (min-width: 961px) {
  .nav-burger { display: none; }
}

/* ---- signed-in account chip ---- */
.nav-account {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.35rem 0.6rem 0.35rem 0.35rem;
  border-radius: var(--radius-pill);
  transition: background var(--t) var(--ease);
}
.nav-account:hover { background: var(--surface-2); }

.avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--av, 40px);
  height: var(--av, 40px);
  border-radius: 50%;
  background: linear-gradient(140deg, var(--gold-deep), var(--gold-dark));
  color: var(--gold-pale);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex: none;
  overflow: hidden;
  border: 1px solid var(--line);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { --av: 52px; font-size: 1rem; }
.avatar-sm { --av: 32px; font-size: 0.7rem; }

/* Online dot */
.avatar.is-online::after {
  content: "";
  position: absolute;
  /* Sit on the circle's lower-right arc (~4:30), not the box corner. */
  right: 8%;
  bottom: 8%;
  width: 28%;
  height: 28%;
  min-width: 8px;
  min-height: 8px;
  border-radius: 50%;
  background: var(--success);
  border: 2px solid var(--bg-2);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.nav-account .who { display: grid; line-height: 1.25; text-align: left; }
.nav-account .who b { font-size: var(--fs-sm); font-weight: 600; }
.nav-account .who span { font-size: var(--fs-xs); color: var(--text-faint); }

/* ---- dropdown ---- */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 210px;
  padding: 0.4rem;
  background: var(--panel-raised);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility var(--t);
  z-index: 30;
}
.dropdown.is-open .dropdown-menu { opacity: 1; visibility: visible; transform: none; }

.dropdown-menu a,
.dropdown-menu button {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: var(--fs-sm);
  color: var(--text-2);
  border-radius: var(--radius-xs);
  text-align: left;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.dropdown-menu a:hover,
.dropdown-menu button:hover { background: var(--surface-2); color: var(--text); }
.dropdown-menu .icon { color: var(--text-faint); flex: none; }
.dropdown-menu hr { margin: 0.35rem 0; border: 0; height: 1px; background: var(--line-softer); }

/* =========================================================================
   Mobile drawer
   ========================================================================= */
.drawer-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t) var(--ease), visibility var(--t);
  z-index: var(--z-drawer);
}
.drawer-scrim.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(330px, 88vw);
  background: var(--bg-2);
  border-left: 1px solid var(--line-soft);
  transform: translateX(100%);
  transition: transform var(--t-slow) var(--ease-out);
  z-index: calc(var(--z-drawer) + 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer.is-open { transform: none; }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
  border-bottom: 1px solid var(--line-softer);
}
.drawer-head img { height: 36px; }
.drawer-head .close { color: var(--text-muted); padding: 0.4rem; }

.drawer-links { padding: 1rem var(--gutter); display: grid; gap: 0.2rem; }
.drawer-links a {
  padding: 0.85rem 0;
  font-size: 1.05rem;
  color: var(--text-2);
  border-bottom: 1px solid var(--line-softer);
  transition: color var(--t) var(--ease), padding-left var(--t) var(--ease);
}
.drawer-links a:hover { color: var(--gold); padding-left: 0.4rem; }
.drawer-links a.is-active { color: var(--gold); }

.drawer-foot { margin-top: auto; padding: 1.25rem var(--gutter) 2rem; display: grid; gap: 0.7rem; }

/* =========================================================================
   Footer
   ========================================================================= */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line-softer);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(2, 0.85fr) 1.5fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-bottom: 2.25rem;
}

/* width:auto + fixed height keeps the wordmark's native ratio — no stretch. */
.footer-brand img { height: 40px; width: auto; object-fit: contain; margin-bottom: 0.9rem; }
.footer-brand p { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.6; }

.footer-social { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  color: var(--text-muted);
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease),
              background var(--t) var(--ease), transform var(--t) var(--ease);
}
.footer-social a:hover {
  color: var(--gold);
  border-color: var(--line-strong);
  background: var(--gold-softer);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-col ul { display: grid; gap: 0.55rem; }
.footer-col a {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  transition: color var(--t) var(--ease);
}
.footer-col a:hover { color: var(--gold); }

.footer-news p { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: 1rem; line-height: 1.6; }
.footer-news form { display: flex; gap: 0; }
.footer-news .input {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  border-right: 0;
}
.footer-news .btn {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  flex: none;
  --btn-px: 1.15rem;
}

.footer-bottom {
  border-top: 1px solid var(--line-softer);
  padding-block: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: var(--fs-xs);
  color: var(--text-faint);
}
.footer-bottom a { transition: color var(--t) var(--ease); }
.footer-bottom a:hover { color: var(--gold); }
.footer-bottom .sep { color: var(--text-dim); }

/* Touch screens: footer links get a full 44px tap target. The ul gap is
   absorbed into the taller rows so the column keeps its rhythm, and the "|"
   separators go (they wrapped into orphans once the row breaks). */
@media (pointer: coarse), (max-width: 720px) {
  .footer-col ul { gap: 0; }
  .footer-col a,
  .footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-bottom { gap: 0 1.25rem; }
  .footer-bottom > span:first-child { flex-basis: 100%; text-align: center; }
  .footer-bottom .sep { display: none; }
}

/* =========================================================================
   Hero patterns
   ========================================================================= */

/* Split hero: copy left, full-bleed art right (mockups 01, 02). */
.hero-split {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  /* Own the first screen so the next section never peeks above the fold.
     dvh tracks mobile browser chrome; capped so ultra-tall displays stay sane. */
  min-height: min(calc(100dvh - var(--nav-h)), 780px);
  overflow: hidden;
}

.hero-split .hero-copy {
  position: relative;
  z-index: 2;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4.5rem) var(--gutter);
  max-width: 640px;
  margin-left: auto;
  width: 100%;
  padding-right: clamp(1.5rem, 4vw, 3rem);
}

.hero-split .hero-art {
  position: relative;
  height: 100%;
  min-height: inherit;
}
.hero-split .hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Scrim so the headline stays legible where art meets copy. */
.hero-split .hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(10, 8, 7, 0.75) 22%, rgba(10, 8, 7, 0.1) 55%, transparent 100%),
    linear-gradient(0deg, rgba(10, 8, 7, 0.55), transparent 45%);
  pointer-events: none;
}

/* Full-bleed banner hero with centred copy (mockup 06). */
.hero-band {
  position: relative;
  min-height: clamp(300px, 40vh, 400px);
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.hero-band > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 8, 7, 0.35), rgba(10, 8, 7, 0.72) 35%, rgba(10, 8, 7, 0.72) 65%, rgba(10, 8, 7, 0.35)),
    linear-gradient(0deg, var(--bg), transparent 60%);
  z-index: 1;
}
.hero-band .hero-copy { position: relative; z-index: 2; max-width: 720px; padding-inline: var(--gutter); }

/* Catalogue hero: art panel · copy · art panel (mockup 03). */
.hero-triptych {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.6fr) minmax(0, 0.62fr);
  min-height: clamp(280px, 38vh, 380px);
  overflow: hidden;
}
.hero-triptych .panel-art { position: relative; overflow: hidden; }
.hero-triptych .panel-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-triptych .panel-art::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Shade only the inner third — the art stays clearly visible while still
     melting into the centre copy. */
  background: linear-gradient(90deg, transparent 62%, var(--bg) 97%);
}
.hero-triptych .panel-art.right::after {
  background: linear-gradient(270deg, transparent 62%, var(--bg) 97%);
}
.hero-triptych .hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  text-align: center;
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem);
}

/* Cinematic story hero — art right, title treatment left (mockup 05). */
.hero-story {
  position: relative;
  min-height: clamp(400px, 52vh, 520px);
  /* Owns one screen together with the tab bar below it: capped by viewport
     height so a short laptop screen still shows the whole key-art panel. */
  max-height: calc(100svh - var(--nav-h) - 150px);
  display: grid;
  align-items: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.hero-story > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}
.hero-story::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 10, 16, 0.96) 0%, rgba(6, 10, 16, 0.82) 30%, rgba(6, 10, 16, 0.25) 62%, transparent 100%);
}
.hero-story .hero-copy {
  position: relative;
  z-index: 2;
  padding: clamp(1rem, 3vh, 3rem) clamp(1.25rem, 3.5vw, 3rem);
  max-width: 620px;
}

/* Story title lockup: big cinema title over a rule with a small mark. */
.title-lockup .main {
  font-family: var(--font-cinema);
  font-size: clamp(2rem, min(6vw, 8.5vh), 4.5rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  background: linear-gradient(180deg, #FFE9B0 0%, var(--gold) 45%, #8C5C15 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 24px rgba(224, 169, 60, 0.28);
}
.title-lockup .sub {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  font-family: var(--font-cinema);
  font-size: clamp(0.8rem, 1.5vw, 1.05rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-pale);
}
.title-lockup .sub::before,
.title-lockup .sub::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--gold), transparent);
  max-width: 90px;
}
.title-lockup .sub::before { background: linear-gradient(270deg, var(--gold), transparent); }

.hero-tagline {
  margin-top: clamp(0.6rem, 1.6vh, 1.35rem);
  font-family: var(--font-cinema);
  font-size: clamp(0.9rem, min(1.8vw, 2.3vh), 1.35rem);
  letter-spacing: 0.12em;
  line-height: 1.5;
  color: var(--gold-pale);
  text-transform: uppercase;
}

/* =========================================================================
   Meta strip — icon + label/value cells divided by hairlines
   ========================================================================= */
.meta-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--panel);
  overflow: hidden;
}
.meta-strip .cell {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.1rem 1.35rem;
  border-right: 1px solid var(--line-softer);
  min-width: 0;
}
.meta-strip .cell:last-child { border-right: 0; }
.meta-strip .icon { color: var(--accent); flex: none; }
.meta-strip .t { display: grid; gap: 0.15rem; min-width: 0; }
.meta-strip .t span {
  font-size: var(--fs-2xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.meta-strip .t b { font-size: var(--fs-sm); font-weight: 500; color: var(--text); }

/* Bare version used over hero art. */
.meta-inline {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 4vw, 3rem);
}
.meta-inline .cell { display: flex; align-items: center; gap: 0.7rem; }
.meta-inline .icon { color: var(--gold); flex: none; }
/* Stack the label above the value with breathing room, like the mockup. */
.meta-inline .t { display: grid; gap: 0.2rem; }
.meta-inline .t b { font-size: var(--fs-sm); font-weight: 600; color: var(--text); }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1080px) {
  /* Six links + language + two buttons only fit down to 901px if the
     row tightens — otherwise Sign Up is pushed off-screen at 1024. */
  .nav-inner { gap: 1rem; }
  .nav-links { gap: 0.7rem; }
  .nav-link { font-size: var(--fs-xs); }
  .nav-actions { gap: 0.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  /* Logo left, burger right. Standard flex — correct on real mobile browsers.
     960 not 900: the full link row overflows between 901 and 960. */
  .nav-inner { justify-content: space-between; gap: 0.75rem; }
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; gap: 0.5rem; }
  .nav-actions .nav-login,
  .nav-actions .nav-cta { display: none; }
  .nav-burger { display: inline-flex; align-items: center; justify-content: center; }
}

@media (max-width: 900px) {

  .hero-split { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-split .hero-art {
    order: -1;
    min-height: 300px;
    max-height: 46vh;
  }
  .hero-split .hero-art::after {
    background: linear-gradient(0deg, var(--bg) 2%, rgba(10, 8, 7, 0.45) 40%, transparent 100%);
  }
  .hero-split .hero-copy {
    max-width: none;
    min-width: 0;
    padding: clamp(1.75rem, 5vw, 2.5rem) var(--gutter) clamp(2.5rem, 6vw, 3.5rem);
    margin-top: -3rem;
  }
  /* Headline scales down enough that the longest line ("Worlds that
     transform.") wraps cleanly instead of overflowing and widening the page. */
  .hero-split .t-hero { font-size: clamp(1.7rem, 7vw, 2.5rem); line-height: 1.15; }
  .t-hero, .t-hero em { overflow-wrap: break-word; }

  .hero-triptych { grid-template-columns: minmax(0, 1fr); }
  .hero-triptych .panel-art { display: none; }

  .hero-story { max-height: none; }
  .hero-story > img { object-position: 72% center; }
  .hero-story::after {
    background: linear-gradient(0deg, rgba(6, 10, 16, 0.97) 12%, rgba(6, 10, 16, 0.7) 55%, rgba(6, 10, 16, 0.35));
  }

  .meta-strip { grid-auto-flow: row; grid-auto-columns: auto; }
  .meta-strip .cell { border-right: 0; border-bottom: 1px solid var(--line-softer); }
  .meta-strip .cell:last-child { border-bottom: 0; }
}

@media (max-width: 620px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-news .btn { width: auto; }
  .nav-logo img { height: 34px; }
  .title-lockup .sub { letter-spacing: 0.25em; }
  .title-lockup .sub::before, .title-lockup .sub::after { max-width: 26px; }
}

/* ---- Language switcher ------------------------------------------------ */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.5rem 0.7rem;
  color: var(--text-muted, #B7AE9F);
  border: 1px solid transparent;
  border-radius: var(--radius-pill, 999px);
  background: none; cursor: pointer;
  font-size: var(--fs-sm); font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}
.lang-btn:hover { color: var(--text, #F3EEE5); background: var(--surface, rgba(255,255,255,.04)); }
.lang-code { letter-spacing: 0.04em; }
.lang-switch .dropdown-menu { min-width: 168px; }
.lang-switch .dropdown-menu a { display: flex; align-items: center; gap: 0.6rem; }
.lang-switch .dropdown-menu a.is-current { color: var(--gold, #E0A93C); }
.lang-flag {
  display: inline-grid; place-items: center;
  min-width: 30px; padding: 0.1rem 0.3rem;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.05em;
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm, 8px);
  color: var(--text-faint);
}
.lang-switch .dropdown-menu a.is-current .lang-flag { color: var(--gold, #E0A93C); border-color: var(--line); }

/* =========================================================================
   Drawer v2 — cinematic index (overrides the base drawer styles above)
   ========================================================================= */
.drawer { overflow-y: auto; overscroll-behavior: contain; }
.drawer-glow {
  position: absolute;
  top: -120px;
  right: -60px;
  width: 320px; height: 320px;
  background: radial-gradient(circle at center, rgba(224,169,60,.14), rgba(224,169,60,0) 65%);
  pointer-events: none;
}

.drawer-user {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem var(--gutter);
  border-bottom: 1px solid var(--line-softer);
}
.drawer-user .avatar { width: 42px; height: 42px; flex: none; }
.drawer-user-who { min-width: 0; }
.drawer-user-who b { display: block; font-size: var(--fs-sm); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-user-who span { font-size: var(--fs-2xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }

.drawer-links { padding: 0.6rem var(--gutter) 0.9rem; gap: 0; }
.drawer-links a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.72rem 0;
  border-bottom: 0;
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.3rem;
  color: var(--text);
}
.drawer-links a:hover { padding-left: 0; }
.dl-num {
  font-family: var(--font-body, Inter, sans-serif);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
  opacity: 0.75;
  min-width: 20px;
}
.dl-label { min-width: 0; }
.drawer-links a.is-active .dl-label { color: var(--gold); }
.dl-arrow { margin-left: auto; color: var(--text-faint); opacity: 0; transform: translateX(-6px); transition: opacity 0.2s ease, transform 0.2s ease; }
.drawer-links a.is-active .dl-arrow,
.drawer-links a:active .dl-arrow { opacity: 1; transform: none; color: var(--gold); }

/* staggered entrance */
.drawer.is-open .drawer-links a { animation: dl-in 0.4s var(--ease-out, ease) both; }
.drawer.is-open .drawer-links a:nth-child(1) { animation-delay: 0.04s; }
.drawer.is-open .drawer-links a:nth-child(2) { animation-delay: 0.08s; }
.drawer.is-open .drawer-links a:nth-child(3) { animation-delay: 0.12s; }
.drawer.is-open .drawer-links a:nth-child(4) { animation-delay: 0.16s; }
.drawer.is-open .drawer-links a:nth-child(5) { animation-delay: 0.20s; }
.drawer.is-open .drawer-links a:nth-child(6) { animation-delay: 0.24s; }
@keyframes dl-in {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .drawer.is-open .drawer-links a { animation: none; }
}

.drawer .drawer-sep { padding: 0.35rem var(--gutter) 0.5rem; margin: 0; border-bottom: 0; }
.drawer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0 var(--gutter);
}
.drawer-tile {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line-softer);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-2);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.drawer-tile .icon { color: var(--gold); }
.drawer-tile span { line-height: 1.25; }
.drawer-tile.is-active,
.drawer-tile:active {
  border-color: var(--line);
  background: var(--gold-softer, rgba(224,169,60,.06));
  color: var(--gold);
}

/* The open menu must sit above the consent banner (z 9500). */
.drawer-scrim { z-index: 9600; }
.drawer { z-index: 9610; }

/* Honeypot (Core\Bot): parked far off-screen so humans never see or tab into
   it, while autofill-everything bots still complete it. */
.hp-wrap {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px; height: 1px;
  overflow: hidden;
}
