:root {
  --bg: #ece5da;
  --bg-soft: #f5efe6;
  --text: #171513;
  --muted: #6b6258;
  --line: rgba(23, 21, 19, 0.12);
  --accent: #b8653b;
  --accent-soft: rgba(184, 101, 59, 0.16);
  --card: rgba(255, 250, 244, 0.72);
  --shadow: 0 24px 80px rgba(58, 43, 32, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 18%, rgba(184, 101, 59, 0.16), transparent 28%),
    radial-gradient(circle at 82% 15%, rgba(40, 52, 62, 0.09), transparent 24%),
    linear-gradient(180deg, #f2ece2 0%, #eae1d5 100%);
  font-family: "IBM Plex Sans", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 24px;
  border: 1px solid rgba(23, 21, 19, 0.08);
  pointer-events: none;
  z-index: 0;
}

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

.page-glow {
  position: fixed;
  width: 24rem;
  height: 24rem;
  background: radial-gradient(circle, rgba(184, 101, 59, 0.18), transparent 62%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
  transition: left 120ms linear, top 120ms linear;
}

.grain {
  position: fixed;
  inset: 0;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 5px 5px, 5px 5px;
  mix-blend-mode: multiply;
}

.topbar,
.section,
.ticker {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 48px 0;
}

.brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav a {
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--text);
  transition: transform 200ms ease;
}

.nav a:hover::after {
  transform: scaleX(1);
}

.section {
  padding: 64px 48px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  min-height: calc(100vh - 96px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero h1,
.section-head h2,
.panel-copy h2,
.contact-panel h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(4rem, 8vw, 7.5rem);
  max-width: 10ch;
}

.rotator-wrap {
  display: block;
  min-height: 1.1em;
  color: var(--accent);
}

.hero-text {
  max-width: 40rem;
  margin: 24px 0 0;
  line-height: 1.8;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: transform 220ms ease, background 220ms ease, color 220ms ease, border-color 220ms ease;
}

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

.button-dark {
  background: var(--text);
  color: #f8f1e8;
  border-color: var(--text);
}

.button-light {
  background: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(12px);
}

.hero-stage {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
}

.stage-card {
  position: absolute;
  width: min(100%, 360px);
  border-radius: 28px;
  padding: 28px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.stage-main {
  top: 12%;
  left: 5%;
  transform: rotate(-8deg);
}

.stage-main h2 {
  margin: 10px 0 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: 6rem;
  line-height: 0.9;
}

.stage-main p:last-child {
  margin: 0;
  line-height: 1.7;
  color: var(--muted);
}

.stage-note {
  right: 2%;
  bottom: 14%;
  transform: rotate(6deg);
  background: rgba(21, 19, 17, 0.88);
  color: #f6ecdf;
}

.card-label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.8;
}

.stage-note ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.stage-note li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stage-note li:last-child {
  border-bottom: 0;
}

.stage-orbit {
  width: 360px;
  height: 360px;
  border: 1px dashed rgba(23, 21, 19, 0.22);
  border-radius: 50%;
  animation: rotate 18s linear infinite;
}

.stage-orbit span {
  position: absolute;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 248, 240, 0.8);
  border: 1px solid rgba(23, 21, 19, 0.08);
  backdrop-filter: blur(8px);
  font-size: 0.82rem;
}

.stage-orbit span:nth-child(1) { top: 0; left: 45%; }
.stage-orbit span:nth-child(2) { top: 42%; right: -6%; }
.stage-orbit span:nth-child(3) { bottom: 0; left: 42%; }
.stage-orbit span:nth-child(4) { top: 42%; left: -8%; }

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 244, 0.38);
}

.ticker-track {
  display: flex;
  gap: 32px;
  padding: 16px 0;
  width: max-content;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  animation: marquee 20s linear infinite;
}

.ticker-track span::after {
  content: "•";
  margin-left: 32px;
  color: var(--accent);
}

.section-head {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  margin-bottom: 24px;
  align-items: end;
}

.section-head h2,
.panel-copy h2,
.contact-panel h2 {
  font-size: clamp(2.7rem, 5vw, 4.5rem);
  max-width: 12ch;
}

.story-grid,
.gallery-grid {
  display: grid;
  gap: 18px;
}

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

.story-card,
.gallery-card,
.metric-card,
.system-panel,
.contact-panel {
  border: 1px solid rgba(23, 21, 19, 0.08);
  background: rgba(255, 250, 244, 0.52);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.story-card {
  padding: 28px;
  border-radius: 24px;
}

.story-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  margin-bottom: 18px;
  color: var(--accent);
  border: 1px solid currentColor;
  font-size: 0.85rem;
}

.story-card h3,
.gallery-card h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.story-card p,
.gallery-card p,
.panel-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.metric-card {
  border-radius: 24px;
  padding: 28px;
}

.metric-value {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.95;
}

.metric-label {
  color: var(--muted);
}

.system-panel,
.contact-panel {
  border-radius: 28px;
  padding: 30px;
}

.system-panel {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: center;
}

.panel-list {
  display: grid;
  gap: 12px;
}

.panel-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.36);
  border: 1px solid rgba(23, 21, 19, 0.08);
}

.panel-item span,
.gallery-tag {
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

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

.gallery-card {
  border-radius: 28px;
  min-height: 280px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.46)),
    radial-gradient(circle at top left, rgba(184, 101, 59, 0.22), transparent 38%),
    rgba(255, 250, 244, 0.45);
}

.gallery-card.featured {
  transform: translateY(24px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.5)),
    radial-gradient(circle at 70% 20%, rgba(33, 43, 52, 0.2), transparent 35%),
    radial-gradient(circle at 20% 80%, rgba(184, 101, 59, 0.26), transparent 30%),
    rgba(255, 250, 244, 0.45);
}

.contact-panel {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 980px) {
  .topbar,
  .section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero,
  .section-head,
  .story-grid,
  .gallery-grid,
  .system-panel,
  .metrics,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 32px;
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero-stage {
    min-height: 500px;
    margin-top: 18px;
  }

  .stage-main {
    left: 0;
  }

  .stage-note {
    right: 0;
    bottom: 10%;
  }

  .gallery-card.featured {
    transform: none;
  }

  .contact-panel {
    align-items: start;
  }
}

@media (max-width: 640px) {
  body::before {
    inset: 12px;
  }

  .topbar {
    padding-top: 18px;
  }

  .section {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .hero-text {
    font-size: 1rem;
  }

  .stage-orbit {
    width: 270px;
    height: 270px;
  }

  .stage-card {
    width: 100%;
    max-width: 290px;
    padding: 22px;
  }

  .stage-main h2 {
    font-size: 4.5rem;
  }
}
