:root {
  --bg: #0e100f;
  --bg-soft: #141917;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f2e8;
  --muted: #b7b0a0;
  --accent: #e48342;
  --accent-alt: #97d2c2;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --content-width: min(1120px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(151, 210, 194, 0.14), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(228, 131, 66, 0.16), transparent 24%),
    linear-gradient(180deg, #0e100f 0%, #121615 54%, #0b0d0d 100%);
  font-family: "Manrope", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    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: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 92%);
  pointer-events: none;
}

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

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
}

.page-shell {
  position: relative;
  overflow: clip;
}

.grain {
  position: fixed;
  inset: 0;
  opacity: 0.1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

.site-header,
.hero,
.section,
.site-footer {
  width: var(--content-width);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 10px;
  position: relative;
  z-index: 2;
}

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

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(228, 131, 66, 0.26), rgba(151, 210, 194, 0.16)),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.025);
  font-family: "Syne", sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.brand-text {
  display: grid;
  gap: 3px;
}

.brand-text strong,
.site-nav a,
.eyebrow,
.card-index,
.stage-label,
.site-footer p {
  font-family: "IBM Plex Mono", monospace;
}

.brand-text strong {
  font-size: 0.94rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-text span {
  font-size: 0.82rem;
  color: rgba(245, 242, 232, 0.68);
}

.site-nav {
  display: inline-flex;
  gap: 18px;
}

.site-nav a {
  font-size: 0.84rem;
  color: rgba(245, 242, 232, 0.72);
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  align-items: stretch;
  padding: 72px 0 18px;
}

.hero-copy {
  align-self: center;
  max-width: 690px;
}

.eyebrow {
  margin-bottom: 16px;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-alt);
}

h1,
.section-heading h2,
.stage-card-large h2,
.note-panel h2 {
  font-family: "Syne", sans-serif;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.2rem, 7vw, 6.6rem);
  line-height: 0.92;
}

h1 span,
.section-heading h2 span,
.note-panel h2 span {
  color: var(--accent);
}

.hero-text {
  max-width: 560px;
  margin-top: 24px;
  font-size: 1.02rem;
}

.hero-stage {
  min-height: 520px;
  padding: 22px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(228, 131, 66, 0.12), transparent 34%),
    radial-gradient(circle at bottom left, rgba(151, 210, 194, 0.11), transparent 30%),
    rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}

.stage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  height: 100%;
}

.stage-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 170px;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(20px);
}

.stage-card-large {
  grid-column: span 2;
  min-height: 230px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
    rgba(255, 255, 255, 0.04);
}

.stage-label {
  margin-bottom: 12px;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 242, 232, 0.68);
}

.stage-card-large h2 {
  max-width: 440px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.stage-card p:last-child {
  font-size: 0.98rem;
}

.section {
  padding-top: 108px;
}

.section-heading {
  display: grid;
  gap: 10px;
  max-width: 720px;
}

.section-heading h2,
.note-panel h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.card-grid {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

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

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

.info-card,
.note-panel {
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.info-card h3 {
  margin-bottom: 12px;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.info-card.compact h3 {
  font-size: 1.22rem;
}

.card-index {
  margin-bottom: 18px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--accent-alt);
}

.note-section {
  padding-bottom: 88px;
}

.note-panel {
  background:
    linear-gradient(135deg, rgba(228, 131, 66, 0.1), transparent 44%),
    rgba(255, 255, 255, 0.04);
}

.site-footer {
  padding: 0 0 42px;
}

.site-footer p {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 242, 232, 0.5);
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

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

@media (max-width: 980px) {
  .hero,
  .card-grid-focus,
  .card-grid-process {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  :root {
    --content-width: min(100vw - 28px, 100%);
  }

  body::before {
    background-size: 46px 46px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 20px;
  }

  .hero {
    padding-top: 36px;
    gap: 20px;
  }

  h1 {
    font-size: clamp(2.8rem, 17vw, 4.9rem);
  }

  .hero-text,
  .stage-card p:last-child,
  .info-card p {
    font-size: 0.98rem;
  }

  .hero-stage {
    padding: 16px;
  }

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

  .stage-card,
  .stage-card-large {
    min-height: 0;
  }

  .stage-card-large {
    grid-column: span 1;
  }

  .section {
    padding-top: 88px;
  }

  .info-card,
  .note-panel {
    padding: 22px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
