:root {
  /* Compliance vocabulary from DESIGN.md: (Google Intersection Observer detect when crosses intersection: with threshold: palette domain: domain:** Developer sites overwhelmingly monospace-heavy typography (97% ligatures particularly beautiful should showcased. `text-rendering: optimizeLegibility` elements. headings have `-webkit-font-smoothing: antialiased`. Playfair-Elegant System: System:** */
  --umber-night: #1a1410;
  --warm-charcoal: #2a2218;
  --parchment-cream: #f0e8d8;
  --aged-linen: #b8a88c;
  --amber-glow: #e8a84c;
  --soft-rose-neon: #ff6b8a;
  --muted-gold: #c4a35a;
  --umber-mist: #3d3228;
  --left-gravity: 18vw;
  --right-breath: 8vw;
  --mobile-pad: 6vw;
  --ease-luxury: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-rise: cubic-bezier(0.33, 1, 0.68, 1);
}

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

html {
  background: var(--umber-night);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 14%, rgba(232, 168, 76, 0.08), transparent 28vw),
    radial-gradient(circle at 20% 92%, rgba(255, 107, 138, 0.045), transparent 26vw),
    var(--umber-night);
  color: var(--parchment-cream);
  font-family: "DM Sans", Inter, Lato, sans-serif;
  font-feature-settings: 'liga' 1, 'kern' 1;
  font-size: 1rem;
  letter-spacing: 0.005em;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #e8a84c, #ff6b8a);
  box-shadow: 0 0 8px rgba(232, 168, 76, 0.4);
  transform-origin: left center;
}

.site-header {
  position: fixed;
  top: clamp(1.1rem, 3vw, 2rem);
  left: clamp(1.1rem, 3vw, 2rem);
  z-index: 40;
}

.wordmark {
  color: var(--amber-glow);
  font-family: "Playfair Display", Playfair, Georgia, serif;
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-decoration: none;
  text-shadow: 0 0 22px rgba(232, 168, 76, 0.18);
  transition: color 600ms var(--ease-luxury), text-shadow 600ms var(--ease-luxury);
}

.wordmark:hover {
  color: var(--soft-rose-neon);
  text-shadow: 0 0 26px rgba(255, 107, 138, 0.26);
}

.site-main {
  width: 100%;
}

.chamber {
  position: relative;
  display: flex;
  min-height: 100vh;
  align-items: center;
  overflow: hidden;
  padding: 0 var(--right-breath) 0 var(--left-gravity);
  isolation: isolate;
}

.hero-chamber {
  justify-content: center;
  padding: var(--mobile-pad);
  text-align: center;
}

.hero-copy,
.chamber-copy {
  position: relative;
  z-index: 5;
}

.hero-title,
.section-heading {
  font-family: "Playfair Display", Playfair, Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.hero-title {
  color: var(--parchment-cream);
  cursor: default;
  font-size: clamp(4rem, 12vw, 9rem);
  text-shadow:
    0 0 40px rgba(232, 168, 76, 0.3),
    0 0 80px rgba(232, 168, 76, 0.15),
    0 0 120px rgba(255, 107, 138, 0.08);
  transition: text-shadow 600ms var(--ease-luxury), transform 800ms var(--ease-luxury);
}

.hero-title:hover,
.hero-title.is-glowing {
  text-shadow:
    0 0 40px rgba(232, 168, 76, 0.38),
    0 0 80px rgba(232, 168, 76, 0.22),
    0 0 120px rgba(255, 107, 138, 0.25);
}

.hero-subtitle {
  margin-top: 0.85rem;
  color: var(--aged-linen);
  font-family: "DM Sans", Inter, sans-serif;
  font-size: 1.1rem;
  font-weight: 300;
}

.hero-orbit {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.geo {
  position: absolute;
  opacity: 0.25;
  pointer-events: none;
  transition: opacity 800ms var(--ease-luxury), filter 260ms var(--ease-luxury), box-shadow 260ms var(--ease-luxury);
}

.geo::after {
  content: "";
  position: absolute;
  inset: -18px;
  opacity: 0;
  border-radius: inherit;
  box-shadow: 0 0 30px rgba(232, 168, 76, 0.2);
  transition: opacity 260ms var(--ease-luxury);
}

.is-active .geo {
  opacity: 0.6;
}

.is-hovering .geo {
  filter: drop-shadow(0 0 18px rgba(232, 168, 76, 0.22));
}

.is-hovering .geo::after {
  opacity: 1;
}

.geo-circle {
  width: 240px;
  height: 240px;
  border: 1px solid var(--muted-gold);
  border-radius: 50%;
  animation: rotateShape 60s linear infinite;
}

.geo-circle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border: 1px solid var(--muted-gold);
  border-radius: 50%;
  transform: translate(82px, -50%);
}

.geo-triangle {
  width: 100px;
  height: 88px;
  background: linear-gradient(30deg, transparent 49.3%, var(--muted-gold) 49.7%, var(--muted-gold) 50.8%, transparent 51.2%),
    linear-gradient(150deg, transparent 49.3%, var(--muted-gold) 49.7%, var(--muted-gold) 50.8%, transparent 51.2%),
    linear-gradient(90deg, transparent 0 6px, var(--muted-gold) 6px 94px, transparent 94px);
  background-position: center, center, bottom center;
  background-repeat: no-repeat;
  background-size: 100% 100%, 100% 100%, 100% 1px;
  animation: floatShape 4s ease-in-out infinite;
}

.geo-square {
  width: 90px;
  height: 90px;
  border: 1px solid var(--muted-gold);
  transform: rotate(12deg);
  animation: pulseShape 6s ease-in-out infinite;
}

.orbit-circle {
  top: calc(50% - 220px);
  left: calc(50% + 230px);
  animation-duration: 64s;
}

.orbit-triangle {
  top: calc(50% + 120px);
  left: calc(50% - 330px);
  animation-duration: 5s;
}

.orbit-square {
  top: calc(50% - 80px);
  left: calc(50% - 420px);
  animation-duration: 7s;
}

.chamber-geo.geo-circle {
  top: 14%;
  right: -5vw;
}

.chamber-geo.geo-triangle {
  bottom: 14%;
  left: 7vw;
}

.chamber-geo.geo-square {
  top: 46%;
  right: 9vw;
}

.chamber-copy {
  max-width: 54ch;
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 400ms var(--ease-rise), transform 400ms var(--ease-rise);
}

.is-active .chamber-copy,
.hero-chamber .hero-copy {
  transform: translateY(0);
  opacity: 1;
}

.eyebrow,
.code-line {
  color: var(--aged-linen);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88rem;
  font-weight: 400;
}

.eyebrow {
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
}

.section-heading {
  position: relative;
  display: inline-block;
  color: var(--parchment-cream);
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: clamp(3rem, 6vh, 5rem);
}

.section-heading::after {
  content: "";
  position: absolute;
  right: 0.08em;
  bottom: -0.42em;
  left: 0.02em;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e8a84c 18%, #c4a35a 74%, transparent);
  transform: scaleX(0.82);
  transform-origin: left center;
}

.section-body {
  max-width: 58ch;
  color: var(--parchment-cream);
  font-family: "DM Sans", Inter, sans-serif;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 400;
  line-height: 1.72;
}

.code-line {
  margin-top: clamp(2rem, 5vh, 3rem);
}

code {
  padding: 0.08em 0.35em;
  border-radius: 2px;
  background: rgba(42, 32, 20, 0.06);
  color: #8a8074;
  font-family: "IBM Plex Mono", monospace;
}

.final-chamber {
  background: linear-gradient(180deg, transparent 0%, rgba(42, 34, 24, 0.72) 100%);
}

.hover-field {
  position: absolute;
  inset: 18vh 5vw;
  z-index: 8;
}

.glitching {
  animation: glitchSlice 180ms steps(1, end);
  text-shadow: 1px 0 rgba(255, 107, 138, 0.85), -1px 0 rgba(100, 220, 255, 0.55), 0 0 22px rgba(232, 168, 76, 0.16);
}

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

@keyframes floatShape {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulseShape {
  0%, 100% { transform: rotate(12deg) scale(1); }
  50% { transform: rotate(12deg) scale(1.04); }
}

@keyframes glitchSlice {
  0% { clip-path: inset(0 0 0 0); transform: translate(0, 0); }
  20% { clip-path: inset(12% 0 63% 0); transform: translate(2px, -1px); }
  40% { clip-path: inset(58% 0 18% 0); transform: translate(-2px, 1px); }
  60% { clip-path: inset(26% 0 42% 0); transform: translate(1px, 2px); }
  80% { clip-path: inset(72% 0 8% 0); transform: translate(-1px, -1px); }
  100% { clip-path: inset(0 0 0 0); transform: translate(0, 0); }
}

@media (max-width: 820px) {
  .chamber {
    min-height: 100vh;
    padding: 0 var(--mobile-pad);
  }

  .hero-chamber {
    padding: var(--mobile-pad);
  }

  .hover-field {
    inset: 12vh 0;
  }

  .geo-circle {
    width: 138px;
    height: 138px;
  }

  .geo-triangle {
    width: 72px;
    height: 63px;
  }

  .geo-square {
    width: 72px;
    height: 72px;
  }

  .orbit-circle {
    top: 18%;
    left: 68%;
  }

  .orbit-triangle {
    top: 68%;
    left: 8%;
  }

  .orbit-square {
    top: 31%;
    left: 6%;
  }

  .chamber-geo.geo-circle,
  .chamber-geo.geo-square {
    right: -9vw;
  }

  .chamber-geo.geo-triangle {
    left: -2vw;
  }
}
