:root {
  --midnight: #0D0D1A;
  --ink: #161628;
  --charcoal: #1A1A2E;
  --ghost: #FAFAFA;
  --lavender: #E8E8F0;
  --magenta: #FF2D7B;
  --lime: #B8FF00;
  --cyan: #00F5FF;
  --gold: #FFD966;
  --grid-gap: clamp(16px, 2vw, 32px);
}

/* Typography/compliance terms from the design brief: (Google Intersection Observer with Elements within animate staggered delays (50ms siblings (geometric `clamp(2rem maximum */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--midnight);
  color: var(--lavender);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  line-height: 1.7;
  overflow-x: hidden;
}

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

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: 56px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 56px);
  background: rgba(13, 13, 26, 0.76);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(184, 255, 0, 0.12);
}

.brand, .eyebrow, .menu-toggle, .margin-column span {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand { color: var(--ghost); font-size: 0.82rem; }

.menu-toggle {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 9px;
  position: relative;
  z-index: 1002;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cyan);
  transition: transform 280ms ease, opacity 180ms ease, background 280ms ease;
  box-shadow: 0 0 12px currentColor;
}

.menu-toggle.open span { background: var(--magenta); }
.menu-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(13, 13, 26, 0.97);
  clip-path: circle(0 at calc(100% - 48px) 28px);
  transition: clip-path 520ms cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.nav-overlay.open { clip-path: circle(150% at calc(100% - 48px) 28px); pointer-events: auto; }

.overlay-inner {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(18px, 3vh, 34px);
  padding: clamp(32px, 9vw, 120px);
}

.overlay-inner a {
  width: max-content;
  max-width: 100%;
  font: 700 clamp(2rem, 4vw, 3.5rem)/1.05 "Space Grotesk", Inter, sans-serif;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px var(--ghost);
  background-image: linear-gradient(var(--lime), var(--lime));
  background-size: 0 3px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 240ms ease, -webkit-text-stroke-color 240ms ease;
}

.overlay-inner a:hover { background-size: 100% 3px; -webkit-text-stroke-color: var(--magenta); }

.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--midnight);
  padding: 80px clamp(18px, 4vw, 56px) 48px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 56px clamp(18px, 4vw, 56px) 32px;
  border-left: 1px solid rgba(255, 45, 123, 0.15);
  border-right: 1px solid rgba(0, 245, 255, 0.12);
}

.hero-footprint {
  position: sticky;
  top: 16vh;
  width: min(46vw, 520px);
  min-width: 260px;
  opacity: 0.18;
  color: var(--cyan);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  filter: drop-shadow(0 0 20px rgba(0, 245, 255, 0.48));
  transform: rotate(-12deg);
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--particle-color);
  opacity: 0.75;
  transform: translate(var(--x), var(--y));
  transition: transform 500ms ease-out;
  box-shadow: 0 0 10px var(--particle-color);
}

.hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(24px, 6vw, 80px);
}

.eyebrow {
  color: var(--lime);
  font-size: clamp(0.75rem, 0.9vw, 0.875rem);
  margin: 0 0 18px;
}

.hero-title, h2 {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}

.hero-title {
  color: var(--ghost);
  font-size: clamp(4rem, 9vw, 8rem);
  text-transform: lowercase;
}

.hero-title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(22px) rotate(2deg);
  transition: opacity 320ms ease, transform 320ms ease, color 220ms ease, text-shadow 220ms ease;
}

.hero-title span.revealed {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

.hero-title span.hot {
  color: var(--magenta);
  text-shadow: 0 0 18px rgba(255, 45, 123, 0.72);
}

.hero-question {
  max-width: 58ch;
  color: var(--lavender);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms ease 600ms, transform 700ms ease 600ms;
}

.hero-question.visible { opacity: 1; transform: translateY(0); }

.walk-strip {
  height: 64px;
  background-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg width='112' height='64' viewBox='0 0 112 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%2300F5FF' stroke-width='2' opacity='.14'%3E%3Cpath d='M28 39c7-7 19-4 20 6 1 8-7 13-15 10-8-3-12-10-5-16Z'/%3E%3Cellipse cx='20' cy='25' rx='4' ry='7' transform='rotate(-22 20 25)'/%3E%3Cellipse cx='31' cy='17' rx='4' ry='7'/%3E%3Cellipse cx='43' cy='20' rx='4' ry='6' transform='rotate(22 43 20)'/%3E%3Cpath d='M81 25c-7-7-19-4-20 6-1 8 7 13 15 10 8-3 12-10 5-16Z'/%3E%3Cellipse cx='89' cy='11' rx='4' ry='7' transform='rotate(22 89 11)'/%3E%3Cellipse cx='78' cy='7' rx='4' ry='7'/%3E%3Cellipse cx='66' cy='10' rx='4' ry='6' transform='rotate(-22 66 10)'/%3E%3C/g%3E%3C/svg%3E");
  animation: walking 8s linear infinite;
  border-block: 1px solid rgba(184, 255, 0, 0.12);
}

.walk-strip.cyan { background-color: var(--midnight); }
@keyframes walking { to { background-position: 112px 0; } }

.content-section {
  padding: clamp(80px, 12vh, 160px) clamp(18px, 4vw, 56px);
  background: var(--midnight);
}

.content-section.ink { background: var(--ink); }

.grid-wrap {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--grid-gap);
}

.reading-column {
  grid-column: 1 / span 7;
  border-left: 1px solid rgba(255, 45, 123, 0.15);
  padding-left: clamp(20px, 3vw, 44px);
}

.margin-column { grid-column: 8 / span 5; align-self: start; }

h2 {
  color: var(--ghost);
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  margin-bottom: 28px;
}

.ink h2 { color: var(--magenta); }

p { max-width: 65ch; }
sup { color: var(--lime); font-family: "Space Grotesk", Inter, sans-serif; font-weight: 700; }

.bookmark-card {
  position: relative;
  padding: 34px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(232, 232, 240, 0.13);
}

.bookmark-card::after {
  content: "";
  position: absolute;
  top: -1px;
  right: 24px;
  width: 24px;
  height: 52px;
  background: var(--magenta);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
}

.bookmark-card p, .pullquote {
  font-family: "Crimson Pro", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.5;
  color: var(--ghost);
}

.margin-column span { color: var(--cyan); font-size: 0.75rem; }

.mini-icon, .path-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--cyan);
}

.mini-icon { width: 64px; height: 64px; }
.path-icon { width: min(100%, 260px); color: var(--lime); margin-top: 28px; }
.magenta { color: var(--magenta); }
.lime { color: var(--lime); }
.cyan { color: var(--cyan); }

.icon-stack { display: grid; gap: 24px; }
.icon-stack div { display: flex; align-items: center; gap: 16px; }

.icon-draw path, .icon-draw circle, .icon-draw ellipse {
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  transition: stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1), filter 300ms ease;
}

.icon-draw.visible path, .icon-draw.visible circle, .icon-draw.visible ellipse {
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 8px currentColor);
}

.finale {
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(80px, 12vh, 160px) clamp(18px, 8vw, 110px);
  background: var(--midnight);
  border-top: 1px solid rgba(184, 255, 0, 0.12);
}

.finale h2 { color: var(--magenta); max-width: 900px; }
.finale p:not(.eyebrow) { color: var(--lavender); font-size: clamp(1.1rem, 1.8vw, 1.45rem); }
.final-icons { color: var(--gold); font-size: clamp(2rem, 7vw, 6rem); letter-spacing: 0.3em; margin-top: 26px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal .eyebrow, .reveal h2, .reveal p, .reveal aside { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.visible .eyebrow, .reveal.visible h2, .reveal.visible p, .reveal.visible aside { opacity: 1; transform: translateY(0); }
.reveal.visible h2 { transition-delay: 50ms; }
.reveal.visible p { transition-delay: 100ms; }
.reveal.visible aside { transition-delay: 150ms; }

.cursor-footprint {
  position: fixed;
  pointer-events: none;
  width: 16px;
  height: 16px;
  animation: footprint-fade 800ms ease-out forwards;
  z-index: 9999;
  color: var(--trail-color);
  filter: drop-shadow(0 0 8px currentColor);
}

.cursor-footprint svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@keyframes footprint-fade {
  0% { opacity: 0.8; transform: scale(1) rotate(var(--foot-angle)); }
  100% { opacity: 0; transform: scale(0.6) rotate(var(--foot-angle)); }
}

@media (max-width: 767px) {
  .hero-title { font-size: clamp(3.2rem, 16vw, 5rem); }
  .hero-footprint { width: 80vw; opacity: 0.14; }
  .grid-wrap { display: block; }
  .reading-column { padding-left: 22px; }
  .margin-column { margin-top: 34px; }
  .mini-icon { width: 40px; height: 40px; }
  .content-section { padding-inline: 20px; }
  .overlay-inner a { -webkit-text-stroke-width: 0; color: var(--ghost); }
}
