:root {
  --ground: #0b0906;
  --surface: #161109;
  --surface-2: #1f180f;
  --ink: #ede3d0;
  --ink-dim: #96897a;
  --ink-faint: #655b4f;
  --brass: #c7a468;
  --brass-bright: #e6c68b;
  --oxblood: #7a2f37;
  --hairline: rgba(199, 164, 104, .16);
  --hairline-strong: rgba(199, 164, 104, .36);
  --shadow: rgba(0, 0, 0, .5);
  --font-mono: RobotoMono, ui-monospace, monospace;
  --font-serif: Merriweather, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

@font-face {
  font-family: "Merriweather";
  src: url("Merriweather.woff2") format("woff2"),
    url("Merriweather.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "RobotoMono";
  src: url("RobotoMono.woff2") format("woff2"),
    url("RobotoMono.ttf") format("truetype");
  font-style: normal;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ground);
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

::selection {
  background: var(--brass);
  color: var(--ground);
}

.wrap {
  max-width: 74rem;
  margin: 0 auto;
  padding-left: clamp(1.5rem, 5vw, 4rem);
  padding-right: clamp(1.5rem, 5vw, 4rem);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(199, 164, 104, .07), transparent 60%),
    radial-gradient(ellipse 90% 70% at 50% 110%, rgba(0, 0, 0, .6), transparent 60%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass);
}

.eyebrow svg {
  width: 16px;
  height: 16px;
  flex: none;
  opacity: .9;
}

.hairline {
  height: 1px;
  background: var(--hairline);
  width: 100%;
}

.hairline.grow {
  width: 0;
  transition: width 1.2s cubic-bezier(.16, 1, .3, 1);
}

.is-in .hairline.grow {
  width: 100%;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .4s cubic-bezier(.16, 1, .3, 1), transform .3s cubic-bezier(.16, 1, .3, 1);
  transition-delay: var(--d, 0s);
}

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

@media (prefers-reduced-motion:reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hairline.grow {
    width: 100%;
    transition: none;
  }
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem clamp(1.5rem, 5vw, 4rem);
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .5s ease, border-color .5s ease, padding .5s ease;
}

.nav.scrolled {
  background: rgba(11, 9, 6, .82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--hairline);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.nav .mark {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--brass-bright);
}

.nav .mark svg {
  width: 18px;
  height: 18px;
}

.nav a.cta-link {
  color: var(--ink-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .3s ease, border-color .3s ease;
}

.nav a.cta-link:hover,
.nav a.cta-link:focus-visible {
  color: var(--brass-bright);
  border-color: var(--brass);
}

.hero-spacer {
  /* height: 170vh; */
  position: relative;
  pointer-events: none;
}

#conway {
  /* position: fixed; */
  /* inset: 0; */
  width: 100%;
  height: 100%;
  /* z-index: -1; */
  display: block;
}

.hero-background {
  position: absolute;
  /* background-image: url(/img/waves.jpg); */
  /* background-size: cover; */
  /* opacity: 0.2; */
  filter: blur(2px);
  height: 100%;
  width: 100%;
  pointer-events: none;
}

.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.5rem;
  will-change: transform, opacity;
  transform: scale(calc(1 - .12 * var(--p, 0)));
  opacity: calc(1 - .9 * var(--p, 0));
  pointer-events: none;
  user-select: none;
}

@media (prefers-reduced-motion:reduce) {
  .hero {
    transform: none;
    opacity: 1;
  }

  .hero-spacer {
    height: 100vh;
  }
}

#dial {
  width: min(30vw, 220px);
  height: min(30vw, 220px);
  margin-bottom: 2.1rem;
  opacity: 0;
  animation: dialIn 0.2s cubic-bezier(.16, 1, .3, 1) .2s forwards;
}

@keyframes dialIn {
  from {
    opacity: 0;
    transform: scale(.85);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero .eyebrow {
  margin-bottom: 1.4rem;
  opacity: 0;
  animation: fadeUp .2s cubic-bezier(.16, 1, .3, 1) .3s forwards;
}

.hero h1 {
  font-size: clamp(3.2rem, 11vw, 7.5rem);
  line-height: .92;
  color: var(--ink);
  opacity: 0;
  animation: fadeUp .2s cubic-bezier(.16, 1, .3, 1) .2s forwards;
}

.hero h1 .the {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(.85rem, 1.6vw, 1.1rem);
  letter-spacing: .4em;
  font-weight: 400;
  color: var(--brass);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  text-align: left;
}

.hero h1 .rohans {
  font-style: italic;
}

.hero p.sub {
  max-width: 34ch;
  margin: 1.6rem auto 0;
  color: var(--ink-dim);
  font-size: 1.08rem;
  opacity: 0;
  animation: fadeUp .2s cubic-bezier(.16, 1, .3, 1) .5s forwards;
  text-align: left;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-top: 2.4rem;
  padding: .95rem 1.9rem;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ground);
  background: var(--brass);
  border: 1px solid var(--brass);
  border-radius: 1px;
  text-decoration: none;
  cursor: pointer;
  transition: background .3s ease, color .3s ease, transform .3s ease, box-shadow .3s ease;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(.16, 1, .3, 1) 1.25s forwards;
}

.btn:hover,
.btn:focus-visible {
  background: transparent;
  color: var(--brass-bright);
  box-shadow: 0 0 0 1px var(--brass) inset;
}

.btn.ghost {
  background: transparent;
  color: var(--brass-bright);
  animation: none;
  opacity: 1;
}

.btn.ghost:hover,
.btn.ghost:focus-visible {
  background: var(--brass);
  color: var(--ground);
}

.scroll-cue {
  position: absolute;
  bottom: 2.6rem;
  transform: translateX(50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  opacity: 0;
  animation: fadeUp 1s ease 1.6s forwards;
}

.scroll-cue .line {
  width: 1px;
  height: 34px;
  background: linear-gradient(transparent, var(--brass));
  animation: cueDrop 2.2s ease-in-out infinite;
}

@keyframes cueDrop {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  45% {
    transform: scaleY(1);
    transform-origin: top;
  }

  55% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

@media (prefers-reduced-motion:reduce) {
  .scroll-cue .line {
    animation: none;
  }

  #dial {
    animation: none;
    opacity: 1;
  }

  .hero .eyebrow,
  .hero h1,
  .hero p.sub,
  .btn,
  .scroll-cue {
    animation: none;
    opacity: 1;
  }
}

.plate {
  position: relative;
  z-index: 2;
  padding: clamp(5rem, 12vh, 9rem) 0;
}

.plate.deep {
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.manifesto {
  text-align: center;
}

.manifesto .hairline {
  max-width: 64px;
  margin: 0 auto 2.6rem;
}

.manifesto blockquote {
  margin: 0 auto;
  max-width: 22ch;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.7rem, 4.4vw, 3.1rem);
  line-height: 1.32;
  color: var(--ink);
}

.manifesto blockquote em {
  color: var(--brass-bright);
  font-style: italic;
}

.manifesto cite {
  display: block;
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.section-head {
  margin-bottom: 3.4rem;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-top: .6rem;
  max-width: 16ch;
}

.section-head .eyebrow {
  margin-bottom: 0;
}

.stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
}

.stage {
  padding: 2rem 1.6rem 2.2rem 1rem;
  border-right: 1px solid var(--hairline);
}

.stage:last-child {
  border-right: none;
}

.stage .num {
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--brass);
  letter-spacing: .08em;
}

.stage h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 1.1rem 0 .8rem;
  color: var(--ink);
}

.stage p {
  color: var(--ink-dim);
  font-size: .94rem;
  line-height: 1.65;
}

.pedigree-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  position: relative;
  padding-top: 1rem;
}

.pedigree-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--hairline-strong);
}

.pillar {
  position: relative;
}

.pillar::before {
  content: '';
  position: absolute;
  top: -2.6rem;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ground);
  border: 1px solid var(--brass);
}

.pillar h3 {
  font-size: 1.4rem;
  font-style: italic;
  color: var(--brass-bright);
  margin-bottom: .9rem;
}

.pillar p {
  color: var(--ink-dim);
  font-size: .95rem;
  line-height: 1.7;
}

/* ---------- standards strip ---------- */
.standards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--hairline);
}

.standard {
  padding: 2.1rem 1.5rem;
  border-right: 1px solid var(--hairline);
  text-align: center;
}

.standard:last-child {
  border-right: none;
}

.standard .label {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.standard .value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 500;
  color: var(--brass-bright);
  margin-top: .6rem;
}

/* ---------- closing ---------- */
.closing {
  text-align: center;
}

.closing h2 {
  font-size: clamp(2.1rem, 5.5vw, 3.8rem);
  max-width: 16ch;
  margin: 0 auto;
  font-style: italic;
}

.closing .contact {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--ink-dim);
  letter-spacing: .04em;
}

.closing .contact a {
  color: var(--brass-bright);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline-strong);
  padding-bottom: 2px;
  transition: border-color .3s ease, color .3s ease;
}

.closing .contact a:hover,
.closing .contact a:focus-visible {
  border-color: var(--brass-bright);
}

footer {
  padding: 2.6rem clamp(1.5rem, 5vw, 4rem) 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-top: 1px solid var(--hairline);
}

footer .mark {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--ink-faint);
}

footer .mark svg {
  width: 15px;
  height: 15px;
  opacity: .7;
}

@media (max-width:860px) {
  .stages {
    grid-template-columns: repeat(2, 1fr);
  }

  .stage {
    border-bottom: 1px solid var(--hairline);
  }

  .stage:nth-child(2n) {
    border-right: none;
  }

  .pedigree-row {
    grid-template-columns: 1fr;
    gap: 2.6rem;
  }

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

  .standard {
    border-bottom: 1px solid var(--hairline);
  }

  .standard:nth-child(2n) {
    border-right: none;
  }
}

@media (max-width:520px) {
  .stages {
    grid-template-columns: 1fr;
  }

  .stage {
    border-right: none;
  }
}

/* ////////////////////////////////  */
.grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.card {
  display: block;
  padding: 2rem 1.5rem;
  background: var(--surface);
  border: none;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s ease;
  outline-offset: -2px;
}

.card:hover .card-name {
  color: var(--accent);
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 0.6rem;
}

.card-name {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  transition: color 0.15s ease;
}

.card-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.card-split {
  display: block;
  padding: 2rem 1.5rem;
  background: var(--surface);
}

.card-split-links a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  /* color: var(--muted); */
  text-decoration: none;
  /* border: 1px solid var(--border); */
  padding: 0.3rem 0.6rem;
  border-radius: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.card-split-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}
