:root {
  --bg: #0b0b0b;
  --panel: rgba(255,255,255,0.06);
  --text: #f3f3f3;
  --muted: #b0b0b8;
  --gold: #d4af37;
  --gold-dark: #b8962e;
  --line: rgba(255,255,255,0.12);
  --nav-bg: rgba(0,0,0,0.35);
  --nav-height: 78px;
}

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

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), #f4d03f);
  z-index: 9999;
}

/* nav */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 38px;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  min-height: var(--nav-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand span {
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  transition: 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

/* chapter rail */
.chapter-rail {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.chapter-rail::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: rgba(255,255,255,0.12);
  z-index: -1;
}

.chapter-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  transition: 0.3s ease;
  position: relative;
}

.chapter-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(212,175,55,0.4);
  transform: scale(1.1);
}

.chapter-dot span {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.72);
  white-space: nowrap;
  opacity: 0;
  transition: 0.25s ease;
  text-transform: uppercase;
}

.chapter-dot:hover span,
.chapter-dot.active span {
  opacity: 1;
}

/* section */
.section {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 110px 10% 70px 11%;
  overflow: hidden;
  isolation: isolate;
  scroll-snap-align: start;
  scroll-margin-top: var(--nav-height);
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -3;
  transform: scale(1);
  animation: zoomBg 22s ease-in-out infinite alternate;
  will-change: transform;
}

.section::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.52) 45%, rgba(0,0,0,0.68) 100%),
    linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.15));
  z-index: -2;
}

@keyframes zoomBg {
  from { transform: scale(1); }
  to { transform: scale(1.07); }
}

.section-inner {
  width: 100%;
  max-width: 1180px;
  display: grid;
  grid-template-columns: 180px minmax(0, 760px);
  gap: 40px;
  align-items: start;
}

.chapter-meta {
  padding-top: 12px;
}

.chapter-no {
  font-size: clamp(42px, 7vw, 88px);
  line-height: 0.9;
  color: rgba(212,175,55,0.92);
  letter-spacing: -0.04em;
  font-weight: 700;
}

.chapter-label {
  margin-top: 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.58);
}

.content {
  max-width: 760px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin-bottom: 18px;
  max-width: 900px;
}

h2 {
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}

p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
  max-width: 760px;
}

.line {
  width: 90px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), #f4d03f);
  margin: 24px 0 22px;
}

.services-list {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.service-row {
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(5px);
  border-radius: 14px;
  font-size: 16px;
  color: rgba(255,255,255,0.9);
}

.cta-group {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: 0.25s ease;
}

.btn-primary {
  background: var(--gold);
  color: #111;
  font-weight: 700;
}

.btn-primary:hover {
  background: #e2bf4f;
  transform: translateY(-1px);
}

.btn-secondary {
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  background: rgba(255,255,255,0.04);
}

.btn-secondary:hover {
  border-color: rgba(212,175,55,0.55);
  color: var(--gold);
}

.glass-note {
  margin-top: 26px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  max-width: 620px;
}

.glass-note strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.glass-note span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.fade {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.fade.show {
  opacity: 1;
  transform: translateY(0);
}

/* footer */
.footer-section {
  position: fixed;
  z-index: 20;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 5px;
  text-align: center;
  color: rgba(255,255,255,0.45);
  font-size: 13px;
  backdrop-filter: blur(8px);
}


/* mobile */
@media (max-width: 980px) {
  html {
    scroll-snap-type: y mandatory;
  }

  nav {
    padding: 16px 18px;
    min-height: 70px;
  }

  .brand span {
    display: none;
  }

  .nav-links {
    gap: 14px;
  }

  .nav-links a {
    font-size: 12px;
  }

  .chapter-rail {
    display: none;
  }

  .section {
    min-height: auto;
    padding: 100px 24px 70px;
    scroll-snap-align: none;
    scroll-margin-top: 70px;
  }

  .section::before {
    animation: zoomBgMobile 30s ease-in-out infinite alternate;
    transform: scale(1);
  }

  .section-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-section {
    position: relative;
    padding: 28px 24px 36px;
    text-align: center;
    color: rgba(255,255,255,0.45);
    font-size: 13px;
  }

  .chapter-meta {
    padding-top: 0;
  }

  .chapter-no {
    font-size: 42px;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 30px;
  }

  p {
    font-size: 16px;
  }

  .nav-links {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .btn {
    width: 100%;
  }

  .cta-group {
    flex-direction: column;
  }
}

@keyframes zoomBgMobile {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}