/* ITSM recovery site — premium multi-page research aesthetic */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Outfit:wght@300;400;500;600&display=swap");

:root {
  --void: #05060c;
  --deep: #0a0d18;
  --panel: rgba(16, 22, 40, 0.72);
  --stroke: rgba(180, 200, 255, 0.12);
  --stroke-strong: rgba(200, 220, 255, 0.22);
  --text: #f2f4fa;
  --muted: #9aa6c2;
  --faint: #6b7694;
  --gold: #d4b06a;
  --gold-soft: rgba(212, 176, 106, 0.14);
  --gold-line: rgba(212, 176, 106, 0.45);
  --ice: #8eb6ff;
  --ice-dim: rgba(142, 182, 255, 0.12);
  --ok: #7dcea0;
  --ok-bg: rgba(125, 206, 160, 0.1);
  --warn: #e0b35a;
  --bad: #e07a7a;
  --bad-bg: rgba(224, 122, 122, 0.08);
  --radius: 18px;
  --max: 1080px;
  --prose: 720px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 400;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--void);
  line-height: 1.65;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 900px 500px at 15% -5%, rgba(80, 110, 200, 0.22), transparent 60%),
    radial-gradient(ellipse 700px 480px at 90% 10%, rgba(180, 130, 60, 0.1), transparent 55%),
    radial-gradient(ellipse 1000px 700px at 50% 100%, rgba(40, 60, 120, 0.18), transparent 50%),
    linear-gradient(180deg, #070a14 0%, var(--void) 40%, #06080f 100%);
}

.sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 80px 120px, rgba(255, 255, 255, 0.25), transparent),
    radial-gradient(1.2px 1.2px at 160px 70px, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1px 1px at 240px 200px, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 320px 40px, rgba(255, 255, 255, 0.18), transparent),
    radial-gradient(1.1px 1.1px at 400px 160px, rgba(255, 255, 255, 0.22), transparent),
    radial-gradient(1px 1px at 520px 90px, rgba(255, 255, 255, 0.28), transparent),
    radial-gradient(1px 1px at 640px 220px, rgba(255, 255, 255, 0.15), transparent);
  background-size: 700px 280px;
  opacity: 0.55;
  pointer-events: none;
}

.torus-mark {
  position: fixed;
  width: min(72vw, 640px);
  height: min(72vw, 640px);
  right: -8%;
  top: 4%;
  z-index: -1;
  opacity: 0.32;
  pointer-events: none;
}

a {
  color: var(--ice);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: #c5daff;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.15rem, 3.5vw, 2rem);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(5, 6, 12, 0.55);
  border-bottom: 1px solid var(--stroke);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.brand:hover {
  color: var(--gold);
  text-decoration: none;
}

.brand-mark {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  border: 1.5px solid var(--gold-line);
  box-shadow: inset 0 0 0 4px rgba(212, 176, 106, 0.12), 0 0 20px rgba(212, 176, 106, 0.15);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px solid rgba(142, 182, 255, 0.45);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.95rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.nav-links a {
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  color: var(--gold);
}

/* Hero (home) */
.hero {
  padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: end;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    font-size: 0.78rem;
    gap: 0.2rem 0.65rem;
    justify-content: flex-end;
    max-width: 58%;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--gold-line);
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}

.hero h1,
.page-hero h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 1.15rem;
}

.hero h1 {
  max-width: 14ch;
}

.hero h1 em,
.page-hero h1 em {
  font-style: italic;
  color: #e8d5a8;
  font-weight: 400;
}

.lede {
  font-size: clamp(1.05rem, 2vw, 1.18rem);
  font-weight: 300;
  color: var(--muted);
  max-width: 36rem;
  margin: 0 0 1.75rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.78rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #e4c78a, #b8924a);
  color: #1a1408;
  box-shadow: 0 10px 30px rgba(184, 146, 74, 0.25);
}

.btn-primary:hover {
  color: #0f0c05;
}

.btn-ghost {
  background: transparent;
  border-color: var(--stroke-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--ice);
  color: var(--ice);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  color: var(--faint);
  font-size: 0.88rem;
}

.meta-row a {
  color: var(--muted);
}

.meta-row a:hover {
  color: var(--gold);
}

.hero-panel {
  background: linear-gradient(160deg, rgba(22, 30, 52, 0.9), rgba(10, 14, 26, 0.85));
  border: 1px solid var(--stroke);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.4rem 1.45rem 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
}

.hero-panel h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 500;
  margin: 0 0 0.85rem;
}

.stat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.stat-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding-top: 0.85rem;
  border-top: 1px solid var(--stroke);
}

.stat-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.stat-k {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  min-width: 4.5rem;
  padding-top: 0.2rem;
}

.stat-v {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 300;
}

/* Page hero (subpages) */
.page-hero {
  padding: clamp(2.6rem, 6vw, 4rem) 0 1.5rem;
  border-bottom: 1px solid var(--stroke);
  margin-bottom: 2rem;
}

.page-hero .breadcrumb {
  color: var(--faint);
  font-size: 0.82rem;
  margin: 0 0 0.85rem;
}

.page-hero .breadcrumb a {
  color: var(--muted);
}

.page-hero .lede {
  margin-bottom: 0;
}

/* Main / sections */
main {
  padding-bottom: 4rem;
}

.section {
  margin: 2.75rem 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
  flex-wrap: wrap;
}

.section-head h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 500;
  margin: 0;
}

.section-head p {
  margin: 0;
  color: var(--faint);
  font-size: 0.88rem;
}

/* Cards & grid */
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.card {
  position: relative;
  background: var(--panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.45rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card:hover {
  border-color: var(--stroke-strong);
  transform: translateY(-2px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.card h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0 0 0.7rem;
}

.card p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-weight: 300;
  font-size: 0.95rem;
}

.card ul,
.prose ul {
  margin: 0.35rem 0 0.85rem;
  padding-left: 1.05rem;
  color: var(--muted);
  font-weight: 300;
  font-size: 0.93rem;
}

.card li,
.prose li {
  margin: 0.4rem 0;
}

.card li::marker,
.prose li::marker {
  color: var(--gold-line);
}

.card.span-2 {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  .card.span-2 {
    grid-column: auto;
  }
}

.card.rule {
  background: linear-gradient(145deg, rgba(40, 32, 16, 0.65), rgba(16, 18, 28, 0.85));
  border-color: rgba(212, 176, 106, 0.28);
}

.rule-label {
  display: inline-block;
  margin-bottom: 0.65rem;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.rule-quote {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-style: italic;
  font-weight: 400;
  color: #f0e6d0;
  line-height: 1.35;
  margin: 0 0 0.9rem;
}

/* Prose pages */
.prose {
  max-width: var(--prose);
}

.prose h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 500;
  margin: 2.25rem 0 0.75rem;
}

.prose h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 500;
  margin: 1.6rem 0 0.55rem;
}

.prose p {
  color: var(--muted);
  font-weight: 300;
  margin: 0 0 1rem;
}

.prose strong {
  color: var(--text);
  font-weight: 500;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(8, 12, 22, 0.65);
  margin: 1rem 0 1.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--stroke);
  vertical-align: top;
}

th {
  color: var(--gold);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(212, 176, 106, 0.06);
}

td {
  color: var(--muted);
  font-weight: 300;
}

tr:last-child td {
  border-bottom: 0;
}

/* Status badges */
.badge {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  border: 1px solid var(--stroke);
}

.badge-ok {
  background: var(--ok-bg);
  color: var(--ok);
  border-color: rgba(125, 206, 160, 0.35);
}

.badge-open {
  background: var(--ice-dim);
  color: var(--ice);
}

.badge-cond {
  background: var(--gold-soft);
  color: var(--gold);
  border-color: var(--gold-line);
}

.badge-rej {
  background: var(--bad-bg);
  color: var(--bad);
  border-color: rgba(224, 122, 122, 0.35);
}

/* Papers */
.paper {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 1.15rem 0;
  border-top: 1px solid var(--stroke);
}

.paper:first-of-type {
  border-top: 0;
  padding-top: 0.25rem;
}

.paper-id {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  color: var(--gold);
  min-width: 2.2rem;
}

.paper h3 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}

.paper p {
  margin: 0;
  font-size: 0.9rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.tag {
  display: inline-flex;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--ice-dim);
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.tag.gold {
  background: var(--gold-soft);
  border-color: var(--gold-line);
  color: var(--gold);
}

/* Timeline / pipeline */
.pipeline {
  display: grid;
  gap: 0;
  margin: 1rem 0 1.5rem;
}

.pipe-step {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 1rem;
  position: relative;
  padding-bottom: 1.25rem;
}

.pipe-step::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 1.1rem;
  bottom: 0;
  width: 1px;
  background: var(--stroke-strong);
}

.pipe-step:last-child::before {
  display: none;
}

.pipe-dot {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 1.5px solid var(--gold-line);
  background: var(--gold-soft);
  margin-top: 0.2rem;
  box-shadow: 0 0 12px rgba(212, 176, 106, 0.2);
}

.pipe-step h3 {
  margin: 0 0 0.3rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
}

.pipe-step p {
  margin: 0;
  color: var(--muted);
  font-weight: 300;
  font-size: 0.92rem;
}

/* Feature map on home */
.feature-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

@media (max-width: 800px) {
  .feature-map {
    grid-template-columns: 1fr;
  }
}

.feature-link {
  display: block;
  padding: 1.2rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--panel);
  color: var(--text);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
  height: 100%;
}

.feature-link:hover {
  text-decoration: none;
  border-color: var(--gold-line);
  transform: translateY(-2px);
  color: var(--text);
}

.feature-link strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.feature-link span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.5;
}

pre {
  margin: 0;
  overflow-x: auto;
  background: rgba(4, 6, 12, 0.85);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: #c8d8f5;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.link-tile {
  display: block;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(12, 16, 30, 0.6);
  color: var(--text);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.link-tile:hover {
  text-decoration: none;
  border-color: var(--gold-line);
  background: rgba(20, 26, 44, 0.85);
  color: var(--text);
}

.link-tile strong {
  display: block;
  font-weight: 500;
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
}

.link-tile span {
  color: var(--faint);
  font-size: 0.8rem;
  font-weight: 300;
}

.site-footer {
  border-top: 1px solid var(--stroke);
  padding: 2.25rem 0 2.75rem;
  margin-top: 1rem;
  color: var(--faint);
  font-size: 0.86rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
}

.footer-nav a {
  color: var(--muted);
}

.footer-inner a {
  color: var(--muted);
}

code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.86em;
  color: #c5d6f5;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: rise 0.9s var(--ease) both;
  }
  .reveal-delay-1 {
    animation-delay: 0.08s;
  }
  .reveal-delay-2 {
    animation-delay: 0.16s;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ========== Homepage-only visual system ========== */

body.home {
  --home-glow: rgba(212, 176, 106, 0.2);
}

body.home .sky {
  background:
    radial-gradient(ellipse 1100px 620px at 70% 0%, rgba(100, 80, 180, 0.18), transparent 55%),
    radial-gradient(ellipse 900px 500px at 10% 15%, rgba(212, 176, 106, 0.12), transparent 50%),
    radial-gradient(ellipse 800px 600px at 50% 100%, rgba(40, 70, 140, 0.2), transparent 55%),
    linear-gradient(180deg, #04050a 0%, #070a12 45%, #05060c 100%);
}

body.home .torus-mark {
  opacity: 0.18;
}

/* Full-bleed cinema hero */
.home-hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: flex-end;
  padding: 0 0 3.5rem;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.home-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-hero-media img,
.home-hero-media picture {
  width: 100%;
  height: 100%;
  display: block;
}

.home-hero-media img {
  object-fit: cover;
  object-position: center center;
  /* rebuilt 16:9 web asset — no brutal crop of portrait source */
  filter: saturate(1.04) contrast(1.05) brightness(0.88);
}

.home-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(4, 5, 10, 0.94) 0%, rgba(4, 5, 10, 0.78) 38%, rgba(4, 5, 10, 0.35) 68%, rgba(4, 5, 10, 0.55) 100%),
    linear-gradient(0deg, rgba(4, 5, 10, 0.92) 0%, transparent 42%),
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(212, 176, 106, 0.12), transparent 70%);
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
}

@media (max-width: 900px) {
  .home-hero {
    min-height: auto;
    padding-top: 5.5rem;
  }
  .home-hero-inner {
    grid-template-columns: 1fr;
  }
  .home-hero-media img {
    object-position: 70% 35%;
  }
}

.home-hero h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 1.2rem;
  max-width: 12ch;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.home-hero h1 em {
  font-style: italic;
  color: #f0d9a0;
  font-weight: 400;
}

.home-hero .lede {
  max-width: 34rem;
  color: #c5cde0;
  font-size: clamp(1.08rem, 2vw, 1.22rem);
}

.home-hero-panel {
  background: rgba(8, 11, 20, 0.72);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border: 1px solid rgba(212, 176, 106, 0.28);
  border-radius: 20px;
  padding: 1.35rem 1.4rem 1.45rem;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.home-hero-panel h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0 0 0.9rem;
  color: #f5ecd8;
}

/* Image showcase strip */
.visual-band {
  margin: 2.5rem 0 1rem;
}

.visual-band-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
  justify-items: stretch;
}

@media (max-width: 900px) {
  .visual-band-grid {
    grid-template-columns: 1fr;
  }
}

/* Kill UA <figure> margins (default ~1em 40px) that shrink cards */
figure.visual-card,
.visual-card {
  margin: 0;
  width: 100%;
  min-width: 0;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  aspect-ratio: 4 / 3;
  background: #05060c;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
  display: block;
}

.visual-card .img-zoom {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.visual-card picture {
  display: block;
  width: 100%;
  height: 100%;
}

.visual-card img {
  width: 100%;
  height: 100%;
  /* contain: cards are already void-dark; gutters match site bg and stay invisible */
  object-fit: contain;
  object-position: center;
  display: block;
  background: #05060c;
}

.visual-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 2rem 1rem 0.9rem;
  background: linear-gradient(transparent, rgba(4, 5, 10, 0.96) 45%);
  color: #e8ecf6;
  font-size: 0.84rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.visual-card figcaption span {
  display: block;
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

/* Home feature tiles with icons */
.feature-map.home-features .feature-link {
  background: linear-gradient(165deg, rgba(22, 28, 48, 0.9), rgba(10, 12, 22, 0.88));
  border-color: rgba(180, 200, 255, 0.14);
  padding: 1.35rem 1.25rem 1.4rem;
  position: relative;
  overflow: hidden;
}

.feature-map.home-features .feature-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(212, 176, 106, 0.55), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.feature-map.home-features .feature-link:hover::before {
  opacity: 1;
}

.feature-ico {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  margin-bottom: 0.85rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(212, 176, 106, 0.3);
  background: rgba(212, 176, 106, 0.08);
  color: var(--gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
}

/* Pillar split with image — give the schematic more width so dual panels aren't cropped */
.home-split {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 1.1rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .home-split {
    grid-template-columns: 1fr;
  }
}

.home-split-visual {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--stroke);
  aspect-ratio: 14 / 9;
  min-height: 280px;
  position: relative;
  box-shadow: var(--shadow);
  background: #05060c;
}

.home-split-visual picture {
  display: block;
  width: 100%;
  height: 100%;
}

.home-split-visual img {
  width: 100%;
  height: 100%;
  /* contain: show full dual panel (torus + polarity); never crop against the text column */
  object-fit: contain;
  object-position: left center;
}

.home-split-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  /* lighter fade so labels on the right panel stay readable */
  background: linear-gradient(180deg, transparent 55%, rgba(5, 6, 12, 0.35));
  pointer-events: none;
  z-index: 1;
}

.home-split .card {
  margin: 0;
  height: 100%;
}

/* Clickable images */
button.img-zoom,
a.img-zoom {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  color: inherit;
  text-align: left;
  font: inherit;
}

button.img-zoom:focus-visible,
a.img-zoom:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.home-split-visual .img-zoom,
.home-hero-media .img-zoom {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-split-visual .img-zoom img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(2, 3, 8, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-inner {
  position: relative;
  max-width: min(1200px, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.lightbox-inner img {
  max-width: 100%;
  max-height: calc(92vh - 3rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(212, 176, 106, 0.35);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
  background: #05060c;
}

.lightbox-cap {
  color: #c5cde0;
  font-size: 0.9rem;
  text-align: center;
  margin: 0;
}

.lightbox-close {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 176, 106, 0.45);
  background: #0a0d18;
  color: #f2f4fa;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.lightbox-close:hover {
  background: #151b2e;
  color: var(--gold);
}

body.lightbox-open {
  overflow: hidden;
}
