/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --bg:     #0B0F1A;
  --bg2:    #070A12;
  --text:   #EAEFF7;
  --muted:  #B8C1D1;
  --line:   rgba(255,255,255,.10);
  --aqua:   #6BE6FF;
  --gold:   #E8D9A3;
  --shadow: 0 18px 80px rgba(0,0,0,.45);
  --radius: 18px;
  --radius2:26px;
  --maxw:   1120px;
  --pad:    clamp(18px, 3vw, 28px);
  --nav-h:  64px;

  /* Button glow colors */
  --glow-aqua: rgba(107,230,255,.35);
  --glow-gold: rgba(232,217,163,.32);
}

/* ─── RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: "EB Garamond", ui-serif, Georgia, "Times New Roman", serif;
  line-height: 1.6;
  background:
    radial-gradient(1400px 800px at 50% 10%, rgba(107,230,255,.12), transparent 60%),
    radial-gradient(1000px 700px at 15% 65%, rgba(232,217,163,.10), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  overflow-x: hidden;
}

/* ─── STAR CANVAS ────────────────────────────────────────── */
#star-canvas {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
}

/* ─── LATTICE ────────────────────────────────────────────── */
.lattice {
  position: fixed; inset: -20px; z-index: -2; opacity: .28;
  background:
    linear-gradient(180deg, rgba(11,15,26,.48), rgba(7,10,18,.82)),
    radial-gradient(circle at 50% 30%, rgba(107,230,255,.15), transparent 35%),
    radial-gradient(circle at 20% 70%, rgba(232,217,163,.12), transparent 30%),
    radial-gradient(circle at 80% 60%, rgba(107,230,255,.10), transparent 28%);
  filter: blur(1px) saturate(1.08);
  transform: scale(1.04);
}
.lattice::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 50% 40%, black 30%, transparent 90%);
  opacity: .18;
}

/* ─── LAYOUT ─────────────────────────────────────────────── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
section { padding: clamp(40px, 5.5vw, 80px) 0; }

/* ─── SECTION DIVIDER (architectural, with central gem) ─── */
.section-divider {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--pad);
  display: flex; align-items: center; gap: 18px;
}
.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1; height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(232,217,163,.22) 40%,
    rgba(107,230,255,.18) 60%,
    transparent);
}
.section-divider .div-gem {
  width: 7px; height: 7px;
  border: 1px solid rgba(232,217,163,.50);
  background: rgba(232,217,163,.12);
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(232,217,163,.22), 0 0 20px rgba(107,230,255,.12);
  flex: 0 0 auto;
}

/* ─── NAV ────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(11,15,26,.90), rgba(11,15,26,.56));
  border-bottom: 1px solid var(--line);
  transition: transform .32s ease, box-shadow .32s ease;
}
.nav.nav-hidden  { transform: translateY(-100%); }
.nav.nav-scrolled{ box-shadow: 0 4px 40px rgba(0,0,0,.45); }

.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--pad); height: 100%;
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 14px;
}
.brand {
  justify-self: start; display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--text);
}
.mark {
  width: 12px; height: 12px; border-radius: 999px; flex: 0 0 auto;
  background:
    radial-gradient(circle at 30% 30%, var(--aqua), rgba(107,230,255,.2) 55%, transparent 70%),
    radial-gradient(circle at 70% 70%, var(--gold), rgba(232,217,163,.2) 55%, transparent 75%);
  box-shadow: 0 0 16px rgba(107,230,255,.30), 0 0 20px rgba(232,217,163,.22);
  animation: pulse-mark 4s ease-in-out infinite;
}
@keyframes pulse-mark {
  0%,100%{ box-shadow: 0 0 14px rgba(107,230,255,.22), 0 0 16px rgba(232,217,163,.16); }
  50%    { box-shadow: 0 0 28px rgba(107,230,255,.52), 0 0 30px rgba(232,217,163,.36); }
}
.stack { display: flex; flex-direction: column; gap: 2px; line-height: 1.1; }
.title {
  font-family: "Cinzel", ui-serif, serif;
  font-weight: 700; letter-spacing: .06em; font-size: 12px; text-transform: uppercase;
  white-space: nowrap;
}
.sub { font-size: 10.5px; color: rgba(184,193,209,.75); white-space: nowrap; }

.nav-links { display: flex; gap: 4px; flex-wrap: nowrap; justify-content: center; }
.nav-links a {
  color: rgba(184,193,209,.88); text-decoration: none; font-size: 12.5px;
  padding: 7px 9px; border-radius: 6px; border: 1px solid transparent;
  transition: all .18s ease; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text); border-color: rgba(107,230,255,.24); background: rgba(255,255,255,.04);
}
.nav-cta {
  display: flex; gap: 8px; align-items: center;
}
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .24s ease, opacity .24s ease;
}

@media (max-width: 1080px) {
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .hamburger { display: flex; }
}

/* ─── MOBILE DRAWER ──────────────────────────────────────── */
.mobile-drawer {
  position: fixed; inset: 0 0 0 auto; width: min(320px, 88vw); z-index: 200;
  background: linear-gradient(180deg, rgba(11,15,26,.97), rgba(7,10,18,.98));
  border-left: 1px solid var(--line); backdrop-filter: blur(20px);
  padding: 28px 24px 40px;
  display: flex; flex-direction: column; gap: 32px;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.mobile-drawer.open { transform: translateX(0); }
.drawer-close {
  align-self: flex-end; background: none; border: 1px solid var(--line);
  color: var(--muted); font-size: 18px;
  width: 36px; height: 36px; border-radius: 6px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: border-color .18s;
}
.drawer-close:hover { border-color: rgba(107,230,255,.40); color: var(--text); }
.drawer-links { display: flex; flex-direction: column; gap: 2px; }
.drawer-links a {
  color: var(--muted); text-decoration: none; font-size: 18px;
  padding: 10px 4px; border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color .18s; font-family: "EB Garamond", serif;
}
.drawer-links a:hover { color: var(--text); }
.drawer-cta { display: flex; flex-direction: column; gap: 10px; }
.drawer-overlay {
  position: fixed; inset: 0; z-index: 199; background: rgba(0,0,0,.55);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

/* ─── BUTTONS — angular with glow ───────────────────────── */
/* Replace pill shape with chamfered rectangle (clip-path corners) */
.btn {
  appearance: none;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  font-family: "Cinzel", ui-serif, serif;
  font-size: 12px; letter-spacing: .10em; text-transform: uppercase;
  color: var(--text); text-decoration: none;
  background: linear-gradient(160deg, rgba(107,230,255,.13), rgba(107,230,255,.05));
  border: 1px solid rgba(107,230,255,.30);
  /* chamfered corners via clip-path */
  clip-path: polygon(8px 0%, 100% 0%, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0% 100%, 0% 8px);
  cursor: pointer; white-space: nowrap;
  box-shadow: 0 0 0 rgba(107,230,255,0), inset 0 1px 0 rgba(255,255,255,.06);
  transition: background .22s, border-color .22s, box-shadow .22s, transform .18s;
}
.btn:hover {
  background: linear-gradient(160deg, rgba(232,217,163,.16), rgba(107,230,255,.08));
  border-color: rgba(232,217,163,.50);
  box-shadow:
    0 0 18px var(--glow-gold),
    0 0 40px rgba(232,217,163,.12),
    inset 0 1px 0 rgba(255,255,255,.10);
  transform: translateY(-1px);
}
.btn2 {
  background: linear-gradient(160deg, rgba(232,217,163,.13), rgba(232,217,163,.05));
  border-color: rgba(232,217,163,.35);
}
.btn2:hover {
  background: linear-gradient(160deg, rgba(107,230,255,.14), rgba(232,217,163,.07));
  border-color: rgba(107,230,255,.52);
  box-shadow:
    0 0 18px var(--glow-aqua),
    0 0 40px rgba(107,230,255,.12),
    inset 0 1px 0 rgba(255,255,255,.10);
}
.pdf-icon { width: 15px; height: 15px; flex: 0 0 auto; transition: transform .18s; }
.btn:hover .pdf-icon { transform: scale(1.15); }

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center; justify-content: center;
  padding: clamp(26px, 4.5vw, 72px) 0;
}
.hero-card {
  width: min(940px, 100%); margin: 0 auto;
  position: relative; overflow: hidden;
  border-radius: var(--radius2); border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 22px 90px rgba(0,0,0,.50);
  background:
    linear-gradient(180deg, rgba(11,15,26,.22), rgba(7,10,18,.72)),
    url("../images/hero-end-universe.jpg");
  background-size: cover; background-position: center;
  min-height: clamp(520px, 72vh, 720px);
}
.hero-card::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1200px 720px at 50% 54%, rgba(11,15,26,.08), rgba(11,15,26,.70) 70%),
    linear-gradient(90deg, rgba(11,15,26,.60), rgba(11,15,26,.12) 40%, rgba(11,15,26,.60));
}
.hero-inner {
  position: relative; z-index: 2;
  padding: clamp(24px, 4vw, 54px);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center; gap: 16px;
  min-height: inherit;
  transform: translateY(-10px);
}
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .20em; text-transform: uppercase;
  color: rgba(232,217,163,.90); font-family: "Cinzel", ui-serif, serif;
}
.kicker .dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--gold); box-shadow: 0 0 12px rgba(232,217,163,.55);
  animation: pulse-dot 3s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100%{ transform: scale(1); opacity: .9; }
  50%    { transform: scale(1.35); opacity: 1; }
}

/* ─── TYPOGRAPHY HIERARCHY ───────────────────────────────── */
/* Rule: eyebrow = clearly subordinate label.
         h2 = dominant, large.
         lead = body-sized descriptor. */

h1, h2, h3, h4 { margin: 0; }

h1 {
  font-family: "Cinzel", ui-serif, serif;
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  font-size: clamp(34px, 5.4vw, 68px); line-height: 1.05;
  text-shadow: 0 10px 60px rgba(0,0,0,.55);
}

/* eyebrow: small, dim, clearly a LABEL not a title */
.eyebrow {
  margin: 0 0 8px;
  font-size: 11px; letter-spacing: .20em; text-transform: uppercase;
  color: rgba(232,217,163,.70);   /* dimmer than before */
  font-family: "Cinzel", ui-serif, serif;
  font-weight: 500;
}

/* h2: the REAL title — large and dominant */
h2 {
  font-family: "Cinzel", ui-serif, serif;
  font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  font-size: clamp(26px, 3.2vw, 42px);  /* significantly larger than before */
  line-height: 1.12; margin-bottom: 14px;
  color: var(--text);
}

/* lead: generous, readable body text below the title */
.lead {
  margin: 0; color: rgba(184,193,209,.94); font-size: 19px; max-width: 70ch;
  line-height: 1.65;
}

.subtitle {
  margin: 0; font-size: clamp(17px, 2.2vw, 23px);
  color: rgba(234,239,247,.88); max-width: 64ch;
}
.meta {
  display: flex; flex-wrap: wrap; gap: 10px;
  align-items: center; justify-content: center; font-size: 15px;
}
.pill {
  border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.05);
  padding: 5px 12px; border-radius: 4px; backdrop-filter: blur(6px);
}
.hero-copy { max-width: 58ch; font-size: 19px; color: rgba(234,239,247,.88); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ─── SECTION HEAD ───────────────────────────────────────── */
.section-head { max-width: 760px; margin: 0 0 32px; }

/* ─── SPLIT SECTIONS ─────────────────────────────────────── */
.split-section { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center; }
.split-section.alt { grid-template-columns: .85fr 1.15fr; }
.section-copy { max-width: 730px; }
.section-media {
  margin: 0; border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius2); overflow: hidden;
  box-shadow: 0 18px 70px rgba(0,0,0,.32); background: rgba(255,255,255,.03);
}
.section-media img {
  display: block; width: 100%; height: auto; object-fit: cover;
  transition: transform .6s ease;
}
.section-media:hover img { transform: scale(1.03); }
.section-media.stack {
  display: grid; gap: 14px; background: transparent; border: none; box-shadow: none;
}
.section-media.stack img {
  border: 1px solid rgba(255,255,255,.10); border-radius: var(--radius2);
  box-shadow: 0 18px 70px rgba(0,0,0,.32);
}

/* ─── BULLET GRID ────────────────────────────────────────── */
.bullet-grid {
  display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); margin-top: 22px;
}
.mini-card {
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  padding: 14px 14px 16px; min-height: 108px;
  transition: border-color .22s, box-shadow .22s, background .22s;
}
.mini-card:hover {
  border-color: rgba(107,230,255,.22);
  background: linear-gradient(160deg, rgba(107,230,255,.07), rgba(255,255,255,.02));
  box-shadow: 0 0 20px rgba(107,230,255,.08);
}
.mini-card strong {
  display: block; margin-bottom: 7px;
  font-family: "Cinzel", ui-serif, serif; font-size: 12.5px;
  letter-spacing: .05em; text-transform: uppercase; color: var(--text);
}
.mini-card span { color: rgba(184,193,209,.95); font-size: 15.5px; display: block; }

.inline-link {
  display: inline-block; margin-top: 20px;
  color: var(--aqua); text-decoration: none;
  border-bottom: 1px solid rgba(107,230,255,.35); padding-bottom: 2px;
  transition: border-color .18s, text-shadow .22s;
}
.inline-link:hover {
  border-color: var(--aqua);
  text-shadow: 0 0 12px rgba(107,230,255,.45);
}

/* ─── DOC GRID ───────────────────────────────────────────── */
.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.doc-card {
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border-radius: var(--radius); padding: 20px;
  box-shadow: 0 14px 60px rgba(0,0,0,.22);
  position: relative; overflow: hidden;
  transition: border-color .22s, transform .22s, box-shadow .22s;
}
.doc-card:hover {
  border-color: rgba(107,230,255,.24);
  transform: translateY(-2px);
  box-shadow: 0 20px 70px rgba(0,0,0,.32), 0 0 30px rgba(107,230,255,.06);
}
.doc-card::before {
  content: ""; position: absolute; inset: -2px;
  background:
    radial-gradient(480px 200px at 15% 0%, rgba(107,230,255,.10), transparent 55%),
    radial-gradient(480px 200px at 85% 10%, rgba(232,217,163,.09), transparent 55%);
  pointer-events: none;
}
.doc-card > * { position: relative; z-index: 1; }

.doc-tag {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(232,217,163,.22); background: rgba(232,217,163,.07);
  color: rgba(232,217,163,.90); border-radius: 4px;
  padding: 4px 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  font-family: "Cinzel", ui-serif, serif; margin-bottom: 12px;
}
.doc-card h3 {
  font-family: "Cinzel", ui-serif, serif;
  letter-spacing: .05em; text-transform: uppercase; font-size: 15.5px; margin-bottom: 8px;
}
.doc-card p { margin: 0; color: rgba(184,193,209,.95); font-size: 16.5px; }
.doc-top { margin-bottom: 20px; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ─── DOSSIER TABS ───────────────────────────────────────── */
.dossier-tabs { display: flex; flex-direction: column; gap: 0; }

.dossier-tablist {
  display: flex; gap: 0;
  border-bottom: 1px solid rgba(255,255,255,.10);
  overflow-x: auto;
  scrollbar-width: none;
}
.dossier-tablist::-webkit-scrollbar { display: none; }

.dossier-tab {
  appearance: none; background: rgba(7,10,18,.60);
  border: none; border-bottom: 2px solid transparent;
  color: var(--muted); cursor: pointer;
  padding: 14px 20px; min-width: 160px;
  text-align: left; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
  display: flex; flex-direction: column; gap: 3px;
}
.dossier-tab:hover {
  background: rgba(107,230,255,.05);
  border-bottom-color: rgba(107,230,255,.28);
  color: var(--text);
}
.dossier-tab[aria-selected="true"] {
  background: rgba(107,230,255,.06);
  border-bottom-color: var(--aqua);
  color: var(--text);
  box-shadow: 0 0 20px rgba(107,230,255,.08);
}
.dtab-num {
  font-family: "Cinzel", ui-serif, serif;
  font-size: 11px; letter-spacing: .14em;
  color: rgba(232,217,163,.75);
}
.dossier-tab[aria-selected="true"] .dtab-num { color: var(--aqua); }
.dtab-label {
  font-family: "Cinzel", ui-serif, serif;
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
}

.dossier-panels {
  border: 1px solid rgba(255,255,255,.09);
  border-top: none;
  background: linear-gradient(160deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 32px;
}

.dossier-panel { }
.dossier-panel[hidden] { display: none !important; }

/* Split layout: text left, image right */
.dp-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}
.dp-text { display: flex; flex-direction: column; gap: 14px; }

.dp-kicker {
  font-family: "Cinzel", ui-serif, serif;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(232,217,163,.70);
}
.dp-title {
  font-family: "Cinzel", ui-serif, serif;
  font-size: clamp(20px, 2.4vw, 30px); letter-spacing: .05em; text-transform: uppercase;
  color: var(--text); margin: 0;
}
.dp-desc {
  margin: 0; color: rgba(184,193,209,.95);
  font-size: 18px; line-height: 1.68;
}
.dp-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.dp-tags span {
  font-family: "Cinzel", ui-serif, serif;
  font-size: 11px; letter-spacing: .10em; text-transform: uppercase;
  border: 1px solid rgba(107,230,255,.20); background: rgba(107,230,255,.06);
  color: rgba(107,230,255,.80); padding: 4px 10px; border-radius: 4px;
}
/* PDF button inside dossier — compact, not full-width */
.dp-btn { width: fit-content; margin-top: 4px; }

.dp-image {
  margin: 0;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 50px rgba(0,0,0,.35);
  position: sticky; top: calc(var(--nav-h) + 20px);
}
.dp-image img {
  display: block; width: 100%; height: 240px; object-fit: cover;
  transition: transform .5s ease;
}
.dp-image:hover img { transform: scale(1.04); }


/* ─── SISTER PORTALS (full image + overlaid buttons at TOP) ─ */
.portal-hub { width: 100%; }
.portal-frame {
  position: relative;
  border-radius: var(--radius2); overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 22px 80px rgba(0,0,0,.42);
}
.portal-img {
  display: block; width: 100%; height: auto;
  /* No dimming — full vibrant image */
  transition: transform .6s ease;
}
.portal-frame:hover .portal-img { transform: scale(1.015); }

.portal-btn-row {
  position: absolute; top: 28px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
  z-index: 2; padding: 0 24px;
}

/* Top gradient for button legibility */
.portal-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(7,10,18,.70) 0%,
    rgba(7,10,18,.15) 35%,
    transparent 55%
  );
  pointer-events: none;
}

/* Portal entry buttons — slightly larger, gold variant */
.portal-entry-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  font-family: "Cinzel", ui-serif, serif;
  font-size: 12px; letter-spacing: .10em; text-transform: uppercase;
  color: var(--text); text-decoration: none;
  background: rgba(11,15,26,.65);
  border: 1px solid rgba(232,217,163,.38);
  backdrop-filter: blur(12px);
  clip-path: polygon(8px 0%, 100% 0%, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0% 100%, 0% 8px);
  transition: background .22s, border-color .22s, box-shadow .22s, transform .18s;
}
.portal-entry-btn:hover {
  background: rgba(11,15,26,.80);
  border-color: rgba(232,217,163,.75);
  box-shadow:
    0 0 20px var(--glow-gold),
    0 0 50px rgba(232,217,163,.10);
  transform: translateY(-2px);
}
.peb-arrow {
  color: var(--gold); font-size: 14px;
  transition: transform .18s;
}
.portal-entry-btn:hover .peb-arrow { transform: translate(2px, -2px); }

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer { padding-bottom: 64px; }
.footer-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.20), transparent);
  margin: 6px 0 36px;
}
.footer-cta-block {
  text-align: center; padding: 20px 0 4px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.footer-title {
  font-family: "Cinzel", ui-serif, serif;
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: .06em; text-transform: uppercase; margin: 0;
}
.footer-start-btn { padding: 11px 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.site-footer h3, .site-footer h4 {
  font-family: "Cinzel", ui-serif, serif;
  letter-spacing: .05em; text-transform: uppercase; margin-bottom: 8px; font-size: 15px;
}
.site-footer p, .site-footer li, .site-footer a, .site-footer code {
  color: rgba(184,193,209,.90); font-size: 16px;
}
.site-footer a { text-decoration: none; transition: color .18s, text-shadow .22s; }
.site-footer a:hover { color: var(--text); text-shadow: 0 0 10px rgba(107,230,255,.25); }
.site-footer ul { margin: 0; padding-left: 18px; }
.chamber-actions { margin: 20px 0 0; }

.footer-copy {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-wrap: wrap; gap: 8px 32px;
  align-items: center; justify-content: center;
  font-family: "Cinzel", ui-serif, serif;
  font-size: 11px; letter-spacing: .10em; text-transform: uppercase;
  color: rgba(184,193,209,.55);
}

/* ─── REVEAL ANIMATION ───────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .72s ease, transform .72s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
/* Desktop nav breakpoint already handled above in hamburger block */
@media (max-width: 900px) {
  .split-section, .split-section.alt { grid-template-columns: 1fr; }
  .bullet-grid { grid-template-columns: 1fr 1fr; }
  .doc-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .dossier-panels { padding: 20px; }
  .dossier-tab { min-width: 120px; padding: 12px 14px; }
  .dp-body { grid-template-columns: 1fr; }
  .dp-image { position: static; }
  .dp-image img { height: 200px; }
}
@media (max-width: 640px) {
  .hero-inner { transform: none; }
  .bullet-grid { grid-template-columns: 1fr; }
  .hero-copy { font-size: 17px; }
  .portal-btn-row { flex-direction: column; align-items: center; }
}

/* ─── DOSSIER TAB PROGRESS LINE ──────────────────────────── */
.dossier-tablist {
  position: relative; /* needed for absolute progress line */
}
.dossier-progress-line {
  position: absolute;
  bottom: -1px; /* sits on top of the border */
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--aqua), var(--gold));
  box-shadow: 0 0 10px rgba(107,230,255,.55), 0 0 20px rgba(232,217,163,.30);
  transition: left .3s cubic-bezier(.4,0,.2,1), width .3s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  border-radius: 2px;
}

/* ─── DOSSIER PANEL FADE TRANSITION ─────────────────────── */
.dossier-panel {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease;
}
.dossier-panel.dp-visible {
  opacity: 1;
  transform: translateY(0);
}
.dossier-panel.dp-hiding {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease;
}

/* ─── BACK TO TOP BUTTON ─────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 80;

  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(160deg, rgba(107,230,255,.14), rgba(107,230,255,.06));
  border: 1px solid rgba(107,230,255,.32);
  color: var(--text);
  cursor: pointer;

  /* chamfered corners matching other buttons */
  clip-path: polygon(8px 0%, 100% 0%, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0% 100%, 0% 8px);

  /* hidden by default */
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, box-shadow .22s ease, background .22s ease;
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#back-to-top:hover {
  background: linear-gradient(160deg, rgba(232,217,163,.16), rgba(107,230,255,.08));
  border-color: rgba(232,217,163,.55);
  box-shadow: 0 0 18px var(--glow-gold), 0 0 40px rgba(232,217,163,.12);
}
#back-to-top svg {
  width: 18px;
  height: 18px;
  transition: transform .2s ease;
}
#back-to-top:hover svg {
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  #back-to-top { bottom: 20px; right: 20px; }
}
