:root {
  --bg-deep: #060709;
  --bg-surface: #0e1015;
  --bg-card: rgba(18, 21, 28, 0.72);
  --border-subtle: rgba(212, 175, 55, 0.12);
  --border-strong: rgba(212, 175, 55, 0.35);
  --text-primary: #f7f8fa;
  --text-muted: #c5cad3;
  --text-dim: #8b92a0;
  --accent-gold: #d4af37;
  --accent-gold-light: #e8ca68;
  --font-title: "Cinzel", "Times New Roman", serif;
  --font-editorial: "Cormorant Garamond", Georgia, serif;
  --font-display: "Syne", "Trebuchet MS", sans-serif;
  --font-mono: "Space Grotesk", "Segoe UI", sans-serif;
  --dock-width: 70px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 18px;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(ellipse 80% 50% at 70% 0%, rgba(212, 175, 55, 0.06), transparent 55%),
    radial-gradient(ellipse 60% 40% at 10% 80%, rgba(40, 55, 80, 0.25), transparent 50%),
    var(--bg-deep);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

aside.dock-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--dock-width);
  height: 100vh;
  background: rgba(6, 7, 9, 0.9);
  backdrop-filter: blur(16px);
  border-right: 1px solid var(--border-subtle);
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
}

.dock-brand {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-title);
  font-size: 0.95rem;
  letter-spacing: 0.28em;
  font-weight: 600;
  color: var(--accent-gold);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.dock-progress-container {
  flex: 1;
  margin: 36px 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
}

.dock-progress-bar {
  position: absolute;
  top: 0;
  width: 2px;
  height: 0;
  left: -0.5px;
  background: linear-gradient(to bottom, var(--accent-gold), var(--accent-gold-light));
}

.dock-scroll-percent {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  writing-mode: vertical-rl;
  margin-bottom: 12px;
}

.dock-menu-trigger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
}

.dock-menu-trigger span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--accent-gold);
}

.nav-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  width: 400px;
  max-width: 88vw;
  height: 100vh;
  background: rgba(10, 12, 16, 0.97);
  backdrop-filter: blur(24px);
  border-right: 1px solid var(--border-strong);
  z-index: 99;
  transition: left 0.45s var(--ease);
  padding: 72px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav-drawer.open {
  left: var(--dock-width);
}

.drawer-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-gold);
  margin-bottom: 36px;
  letter-spacing: 0.2em;
}

.drawer-links {
  list-style: none;
}

.drawer-links li {
  margin-bottom: 18px;
}

.drawer-links a {
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: color 0.25s, padding-left 0.25s;
}

.drawer-links a span.num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-gold);
}

.drawer-links a:hover,
.drawer-links a.active {
  color: var(--text-primary);
  padding-left: 8px;
}

.drawer-meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
}

.editorial-wrapper {
  margin-left: var(--dock-width);
  position: relative;
  z-index: 2;
}

.page-pad {
  padding: 0 8vw;
}

.hero-journal {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 7, 9, 0.92) 0%, rgba(6, 7, 9, 0.55) 48%, rgba(6, 7, 9, 0.35) 100%),
    linear-gradient(0deg, rgba(6, 7, 9, 0.95) 0%, rgba(6, 7, 9, 0.2) 45%, rgba(6, 7, 9, 0.45) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 120px 8vw 70px;
  max-width: 1100px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.brand-mark img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  object-fit: cover;
}

.brand-mark strong {
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: 0.18em;
  font-size: 1.1rem;
  color: var(--accent-gold);
  text-transform: uppercase;
}

.hero-meta-top {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-meta-top::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent-gold);
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-bottom: 28px;
  color: var(--text-primary);
}

.hero-title em {
  font-family: var(--font-editorial);
  font-style: italic;
  color: var(--accent-gold-light);
  font-weight: 400;
}

.hero-lead {
  font-family: var(--font-editorial);
  font-size: clamp(1.4rem, 2.3vw, 1.75rem);
  font-weight: 400;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 28px;
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-hero {
  padding: 110px 8vw 50px;
  border-bottom: 1px solid var(--border-subtle);
}

.page-hero h1 {
  font-family: var(--font-title);
  font-size: clamp(2.35rem, 4.5vw, 3.6rem);
  font-weight: 600;
  margin-bottom: 18px;
}

.page-hero p {
  font-family: var(--font-editorial);
  font-size: 1.55rem;
  color: var(--text-muted);
  max-width: 760px;
  font-weight: 400;
  line-height: 1.55;
}

.section-block {
  padding: 80px 8vw;
  border-bottom: 1px solid var(--border-subtle);
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--accent-gold-light);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
}

.section-heading {
  font-family: var(--font-title);
  font-size: clamp(1.95rem, 3.2vw, 2.55rem);
  font-weight: 600;
  margin-bottom: 18px;
}

.section-intro {
  font-family: var(--font-editorial);
  font-size: 1.45rem;
  color: var(--text-muted);
  max-width: 760px;
  margin-bottom: 40px;
  font-weight: 400;
  line-height: 1.6;
}

.prose {
  font-family: var(--font-editorial);
  font-size: 1.45rem;
  color: var(--text-muted);
  font-weight: 400;
  max-width: 860px;
  line-height: 1.7;
}

.prose p {
  margin-bottom: 1.15em;
}

.prose h3 {
  font-family: var(--font-title);
  font-size: 1.45rem;
  color: var(--text-primary);
  font-weight: 600;
  margin: 1.8em 0 0.7em;
}

.prose ul {
  margin: 0 0 1.2em 1.2em;
}

.prose li {
  margin-bottom: 0.45em;
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.35s, transform 0.35s var(--ease);
  text-decoration: none;
  color: inherit;
}

.article-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.article-card .card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0a0c10;
}

.article-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.article-card:hover .card-media img {
  transform: scale(1.04);
}

.article-card .card-body {
  padding: 28px 30px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.col-span-4 { grid-column: span 4; }
.col-span-6 { grid-column: span 6; }
.col-span-8 { grid-column: span 8; }
.col-span-12 { grid-column: span 12; }

.card-number {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 14px;
  display: block;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.card-title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.35;
}

.card-excerpt {
  font-family: var(--font-editorial);
  font-size: 1.28rem;
  color: var(--text-muted);
  margin-bottom: 22px;
  font-weight: 400;
  flex: 1;
  line-height: 1.55;
}

.card-footer {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-gold-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 16px;
}

.calculator-editorial {
  background: linear-gradient(135deg, rgba(14, 16, 21, 0.95), rgba(6, 7, 9, 0.98));
  border: 1px solid var(--border-strong);
  padding: 48px;
  margin-top: 48px;
}

.calc-flex {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.input-group-custom {
  margin-bottom: 22px;
}

.input-group-custom label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  font-weight: 500;
}

.input-group-custom input,
.input-group-custom select {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  color: var(--accent-gold-light);
  font-family: var(--font-mono);
  font-size: 1.15rem;
  padding: 14px 16px;
  outline: none;
  font-weight: 500;
}

.input-group-custom input:focus,
.input-group-custom select:focus {
  border-color: var(--accent-gold);
}

.btn-gold {
  background: transparent;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold-light);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 15px 30px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-gold:hover {
  background: var(--accent-gold);
  color: var(--bg-deep);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-primary);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.4);
}

.calc-display {
  text-align: center;
  padding: 36px;
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.3);
}

.calc-metric {
  font-family: var(--font-editorial);
  font-size: 4.1rem;
  font-weight: 400;
  color: var(--accent-gold-light);
  line-height: 1;
  margin: 14px 0;
}

.compare-table-wrap {
  overflow-x: auto;
  margin-top: 28px;
  border: 1px solid var(--border-subtle);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-family: var(--font-mono);
  font-size: 1rem;
}

.compare-table th,
.compare-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.compare-table th {
  color: var(--accent-gold-light);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  background: rgba(0, 0, 0, 0.35);
}

.compare-table td {
  color: var(--text-muted);
}

.compare-table tr:hover td {
  background: rgba(212, 175, 55, 0.04);
  color: var(--text-primary);
}

.info-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
}

.info-box {
  border: 1px solid var(--border-subtle);
  padding: 32px;
  background: rgba(0, 0, 0, 0.22);
}

.info-box h3 {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 10px 0 14px;
}

.info-box p,
.info-box address {
  font-family: var(--font-mono);
  font-size: 1.02rem;
  color: var(--text-muted);
  font-style: normal;
  line-height: 1.85;
}

.filter-dock {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 14px;
}

.filter-item {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  padding: 6px 0;
}

.filter-item.active,
.filter-item:hover {
  color: var(--accent-gold);
}

.accordion-minimal {
  border-top: 1px solid var(--border-subtle);
}

.acc-item {
  border-bottom: 1px solid var(--border-subtle);
}

.acc-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 0;
  text-align: left;
  color: var(--text-primary);
  font-family: var(--font-title);
  font-size: 1.28rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.acc-body {
  display: none;
  padding-bottom: 22px;
  font-family: var(--font-editorial);
  font-size: 1.38rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.65;
}

.acc-item.active .acc-body {
  display: block;
}

.term-highlight {
  border-bottom: 1px dashed var(--accent-gold);
  color: var(--accent-gold);
  cursor: pointer;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  z-index: 200;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-journal {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  padding: 42px;
  max-width: 520px;
  width: 100%;
}

.review-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.review-aside img {
  width: 100%;
  border: 1px solid var(--border-subtle);
  margin-bottom: 18px;
}

.review-meta {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  line-height: 1.85;
  font-weight: 500;
}

.job-list .article-card {
  margin-bottom: 0;
}

footer.editorial-footer {
  margin-left: var(--dock-width);
  padding: 80px 8vw 36px;
  background: #040507;
  border-top: 1px solid var(--border-subtle);
  position: relative;
  z-index: 2;
}

.footer-legal-disclaimer {
  border: 1px solid var(--border-subtle);
  padding: 26px;
  font-family: var(--font-editorial);
  font-size: 1.22rem;
  color: var(--text-muted);
  margin-bottom: 48px;
  font-style: italic;
  background: rgba(255, 255, 255, 0.015);
  line-height: 1.6;
}

.footer-columns {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 48px;
}

.footer-brand {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: var(--accent-gold-light);
  margin-bottom: 12px;
  font-weight: 600;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--accent-gold-light);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 18px;
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1rem;
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-dim);
}

.wiki-visual {
  margin: 0 0 40px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  max-height: 360px;
}

.wiki-visual img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center 40%;
}

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

  .col-span-4,
  .col-span-6,
  .col-span-8,
  .col-span-12 {
    grid-column: span 1;
  }

  .footer-columns,
  .review-layout,
  .info-pair,
  .calc-flex {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --dock-width: 52px;
  }

  .page-pad,
  .hero-inner,
  .page-hero,
  .section-block,
  footer.editorial-footer {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .hero-inner {
    padding-top: 100px;
    padding-bottom: 56px;
  }

  .journal-grid {
    grid-template-columns: 1fr;
  }

  .calculator-editorial {
    padding: 28px 20px;
  }

  .nav-drawer {
    width: calc(100vw - var(--dock-width));
  }

  .calc-metric {
    font-size: 3rem;
  }

  html {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .article-card,
  .article-card .card-media img,
  .nav-drawer {
    transition: none;
  }
}
