:root {
  --bg: #081119;
  --bg-deep: #0d1824;
  --bg-soft: #122235;
  --panel: rgba(14, 24, 35, 0.86);
  --panel-soft: rgba(16, 27, 40, 0.74);
  --panel-tint: rgba(18, 36, 43, 0.9);
  --line: rgba(201, 216, 231, 0.14);
  --line-strong: rgba(201, 216, 231, 0.26);
  --text: #f5f7fb;
  --muted: #b7c4cf;
  --accent: #84aa72;
  --accent-bright: #a3c590;
  --accent-cool: #7ea0bc;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
  --radius: 26px;
  --radius-sm: 18px;
  --max-width: 1220px;
  --section-pad: clamp(4.8rem, 7vw, 7.5rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(132, 170, 114, 0.14), transparent 20%),
    radial-gradient(circle at 88% 12%, rgba(126, 160, 188, 0.14), transparent 22%),
    linear-gradient(180deg, #061018 0%, #0b1520 30%, #0e1b29 100%);
  line-height: 1.7;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 85%);
}

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

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

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 120;
  background: rgba(255, 255, 255, 0.04);
}

.scroll-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-cool));
  box-shadow: 0 0 20px rgba(132, 170, 114, 0.35);
  transition: width 120ms linear;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(6, 14, 21, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar {
  width: min(calc(100% - 2rem), var(--max-width));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
}

.brand {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-size: 0.92rem;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: linear-gradient(90deg, var(--accent), var(--accent-cool));
  transition: transform 180ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(132, 170, 114, 0.1);
  transform: translateY(-1px);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle span + span {
  margin-top: 5px;
}

main,
.site-footer {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.section {
  padding: var(--section-pad) 0;
}

.section-shell {
  position: relative;
}

.section-shell[data-section-theme="blueprint"]::before,
.section-shell[data-section-theme="tech"]::before {
  content: "";
  position: absolute;
  inset: 10% -8% auto -8%;
  height: 72%;
  pointer-events: none;
  opacity: 0.26;
  background:
    linear-gradient(90deg, transparent 0%, rgba(126, 160, 188, 0.18) 48%, transparent 100%),
    repeating-linear-gradient(90deg, transparent 0 78px, rgba(255, 255, 255, 0.03) 78px 79px),
    repeating-linear-gradient(0deg, transparent 0 78px, rgba(255, 255, 255, 0.03) 78px 79px);
  mask-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.9) 15%, rgba(0, 0, 0, 0.9) 85%, transparent);
}

.section-divider {
  width: 100%;
  height: 1px;
  margin-bottom: 2rem;
  background: linear-gradient(90deg, transparent, rgba(132, 170, 114, 0.6), rgba(126, 160, 188, 0.4), transparent);
}

.hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  padding-top: clamp(2rem, 4vw, 3.5rem);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-orbit,
.hero-gridline {
  position: absolute;
}

.hero-orbit {
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.orbit-a {
  width: 32rem;
  height: 32rem;
  right: -6rem;
  top: 4rem;
  background: radial-gradient(circle, rgba(132, 170, 114, 0.16), transparent 70%);
}

.orbit-b {
  width: 16rem;
  height: 16rem;
  left: -3rem;
  bottom: 6rem;
  background: radial-gradient(circle, rgba(126, 160, 188, 0.14), transparent 72%);
}

.hero-gridline {
  inset: auto 8% 10% auto;
  width: 38%;
  height: 42%;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  transform: translate3d(0, 0, 0);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.78fr);
  gap: 1.75rem;
  align-items: center;
  position: relative;
}

.hero-copy {
  max-width: 760px;
}

.panel,
.spec-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel {
  padding: 1.55rem;
  transition: transform 240ms ease, border-color 240ms ease, background-color 240ms ease, box-shadow 240ms ease;
}

.panel:hover,
.spec-panel:hover {
  transform: translateY(-4px);
  border-color: rgba(132, 170, 114, 0.28);
  background-color: rgba(18, 31, 44, 0.96);
}

.panel-soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.016));
}

.panel-tint {
  background: linear-gradient(180deg, rgba(132, 170, 114, 0.12), rgba(255, 255, 255, 0.03));
}

.panel-outline {
  background: transparent;
}

.eyebrow,
.section-label,
.caption-label,
.meta-line {
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.eyebrow,
.section-label,
.caption-label {
  font-size: 0.74rem;
  font-weight: 800;
}

.eyebrow,
.section-label,
.caption-label,
.spec-label {
  color: var(--accent-bright);
}

.meta-line {
  margin: 0 0 1rem;
  font-size: 0.77rem;
  font-weight: 700;
  color: rgba(245, 247, 251, 0.72);
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  line-height: 1.08;
}

h1,
h2 {
  font-family: "Space Grotesk", sans-serif;
}

h1 {
  max-width: 10.5ch;
  font-size: clamp(2.85rem, 5.4vw, 4.9rem);
  letter-spacing: -0.04em;
}

h2 {
  max-width: 17ch;
  font-size: clamp(2.15rem, 4.2vw, 3.3rem);
}

h3 {
  font-size: 1.22rem;
}

p,
li,
figcaption {
  color: var(--muted);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-lead {
  max-width: 58ch;
  font-size: 1.02rem;
  color: #eef3f9;
}

.hero-thesis {
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 158px;
  padding: 0.95rem 1.32rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  color: #061018;
  box-shadow: 0 18px 35px rgba(132, 170, 114, 0.22);
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}

.spec-panel {
  padding: 1.55rem;
  position: relative;
  overflow: hidden;
}

.spec-panel::after {
  content: "";
  position: absolute;
  inset: auto -18% -18% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126, 160, 188, 0.18), transparent 70%);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.spec-item {
  position: relative;
  padding: 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.spec-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scroll-cue {
  position: absolute;
  left: 0;
  bottom: 0.4rem;
  display: inline-flex;
  flex-direction: column;
  gap: 0.7rem;
  color: rgba(245, 247, 251, 0.78);
}

.scroll-cue-text {
  font-size: 0.83rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-cue-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent);
}

.section-heading {
  max-width: 800px;
  margin-bottom: 2rem;
}

.editorial-grid,
.design-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 1.5rem;
}

.editorial-copy,
.editorial-aside,
.significance-grid,
.decision-grid,
.reflection-grid,
.gallery-grid {
  position: relative;
}

.editorial-aside {
  display: grid;
  gap: 1.2rem;
}

.mini-stat h3,
.feature-panel h3,
.decision-card h3,
.reflection-card h3,
.design-main h3,
.design-support h3,
.timeline-item h3 {
  margin-bottom: 0.8rem;
}

.significance-grid,
.decision-grid,
.reflection-grid {
  display: grid;
  gap: 1.35rem;
}

.significance-grid {
  grid-template-columns: 1fr 1fr 1.08fr;
}

.milestone-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.milestone-list li {
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.milestone-list span {
  color: var(--text);
  font-weight: 700;
}

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

.design-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.design-tags span {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 0.92rem;
}

.feature-list {
  margin: 0;
  padding-left: 1.15rem;
}

.feature-list li + li {
  margin-top: 0.7rem;
}

.timeline-shell {
  position: relative;
  display: grid;
  gap: 1.4rem;
  padding-left: 3.25rem;
}

.timeline-track {
  position: absolute;
  left: 1rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.timeline-progress {
  display: block;
  width: 100%;
  height: var(--timeline-progress, 0%);
  background: linear-gradient(180deg, var(--accent), var(--accent-cool));
  box-shadow: 0 0 18px rgba(132, 170, 114, 0.28);
  transition: height 240ms ease;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.48rem;
  top: 1.45rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: #0e1b29;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.02);
  transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.timeline-item.is-active::before {
  transform: scale(1.08);
  border-color: var(--accent-bright);
  background: var(--accent);
}

.timeline-step {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--accent-bright);
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.14em;
  font-size: 0.92rem;
}

.timeline-note {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.gallery-card {
  display: grid;
  gap: 1rem;
  overflow: hidden;
}

.gallery-media-wrap {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-image,
.image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.gallery-image {
  object-fit: cover;
  transition: transform 300ms ease;
}

.gallery-card:hover .gallery-image {
  transform: scale(1.03);
}

.image-placeholder {
  display: grid;
  place-items: center;
  padding: 1.2rem;
  text-align: center;
  border: 1px dashed rgba(245, 247, 251, 0.26);
  background:
    linear-gradient(135deg, rgba(132, 170, 114, 0.14), rgba(126, 160, 188, 0.16)),
    rgba(255, 255, 255, 0.025);
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reserved-card {
  background: linear-gradient(180deg, rgba(132, 170, 114, 0.09), rgba(255, 255, 255, 0.016));
}

.caption-label {
  display: block;
  margin-bottom: 0.55rem;
}

.conclusion-panel {
  max-width: 900px;
}

.citations-panel {
  max-width: 960px;
}

.citation-list {
  margin: 0;
  padding-left: 1.4rem;
}

.citation-list li {
  color: var(--muted);
}

.citation-list li + li {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.citation-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(163, 197, 144, 0.45);
  text-underline-offset: 0.16em;
  overflow-wrap: anywhere;
}

.citation-link:hover {
  color: var(--accent-bright);
}

.site-footer {
  padding: 1.2rem 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 560ms cubic-bezier(0.22, 1, 0.36, 1), transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal-up {
  transform: translate3d(0, 24px, 0);
}

.reveal-left {
  transform: translate3d(-24px, 16px, 0);
}

.reveal-right {
  transform: translate3d(24px, 16px, 0);
}

.reveal-delay {
  transition-delay: 70ms;
}

.reveal-delay-2 {
  transition-delay: 130ms;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.section-shell.is-active .section-heading h2 {
  background: linear-gradient(90deg, #ffffff 0%, #edf5ff 45%, #bcd4e6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.parallax {
  transform: translate3d(0, calc(var(--parallax-offset, 0px) * 1), 0);
  transition: transform 120ms linear;
}

@media (max-width: 1024px) {
  .hero-layout,
  .editorial-grid,
  .design-layout,
  .significance-grid,
  .decision-grid,
  .reflection-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body::before {
    background-size: 42px 42px;
  }

  .navbar {
    min-height: 72px;
  }

  .nav-toggle {
    display: inline-grid;
    place-content: center;
    flex-shrink: 0;
  }

  .nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    display: grid;
    gap: 0.35rem;
    padding: 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(9, 16, 24, 0.97);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 0.78rem 0.9rem;
    border-radius: 12px;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.45rem, 9vw, 3.7rem);
  }

  h2 {
    max-width: none;
    font-size: clamp(1.9rem, 8vw, 2.8rem);
  }

  .section {
    padding: 4.35rem 0;
  }

  .panel,
  .spec-panel {
    padding: 1.3rem;
  }

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

  .scroll-cue {
    display: none;
  }

  .timeline-shell {
    padding-left: 2.2rem;
  }

  .timeline-track {
    left: 0.5rem;
  }

  .timeline-item::before {
    left: -1.98rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .parallax {
    transform: none !important;
  }
}
