:root {
  color-scheme: dark;
  --bg: #000;
  --text: #f6f6f2;
  --muted: rgba(246, 246, 242, 0.58);
  --dim: rgba(246, 246, 242, 0.28);
  --line: rgba(246, 246, 242, 0.18);
  --strong-line: rgba(246, 246, 242, 0.34);
  --panel: rgba(255, 255, 255, 0.035);
  --accent: #fff;
  --gold: #d4a64f;
  --gold-soft: rgba(212, 166, 79, 0.26);
  --title: "Cormorant Garamond", Georgia, serif;
  --body: "Montserrat", system-ui, sans-serif;
  --subtitle: var(--body);
  --mono: var(--body);
  --display: var(--title);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.06), transparent 34rem),
    radial-gradient(circle at 80% 75%, rgba(255, 255, 255, 0.035), transparent 30rem),
    #000;
}

.page-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

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

canvas {
  display: block;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 38px;
  pointer-events: none;
}

.wordmark,
.pill-nav {
  pointer-events: auto;
}

.wordmark {
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.26em;
}

.pill-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(18px);
}

.pill-nav a {
  min-width: 80px;
  padding: 12px 19px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.56);
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 500;
  text-align: center;
  transition: background 180ms ease, color 180ms ease;
}

.pill-nav a:hover,
.pill-nav a.active {
  background: linear-gradient(135deg, #fff 0%, #f7f3e7 72%, #d7ad62 100%);
  box-shadow: 0 0 0 1px rgba(212, 166, 79, 0.18), 0 0 28px rgba(212, 166, 79, 0.09);
  color: #000;
}

.frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.frame::before,
.frame::after {
  position: absolute;
  z-index: 2;
  width: 72px;
  height: 42px;
  pointer-events: none;
  content: "";
  background: #000;
}

.frame::before {
  top: -2px;
  right: 30%;
  border-bottom: 1px solid var(--gold-soft);
  transform: skewX(-42deg);
}

.frame::after {
  bottom: -2px;
  left: 19%;
  border-top: 1px solid var(--gold-soft);
  transform: skewX(42deg);
}

.hero-scroll {
  position: relative;
  min-height: 190vh;
  padding: 10px;
}

.hero {
  position: sticky;
  top: 10px;
  height: calc(100vh - 20px);
  margin: 10px;
  overflow: hidden;
}

.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.hero-kicker {
  position: absolute;
  top: 13%;
  left: 3.2%;
  z-index: 4;
}

.hero-kicker,
.hero-note,
.hero h2 {
  transition: opacity 160ms ease, transform 160ms ease;
}

body[data-hero-phase="graph"] .hero-kicker {
  opacity: 0.22;
  transform: translateY(-14px);
}

body[data-hero-phase="graph"] .hero-note {
  opacity: 0.42;
}

body[data-hero-phase="graph"] .hero h2 {
  transform: translateY(10px);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 13ch;
  font-family: var(--title);
  font-size: 5.4rem;
  font-weight: 300;
  line-height: 0.78;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-kicker p {
  margin-top: 18px;
  color: rgba(244, 212, 145, 0.76);
  font-family: var(--body);
  font-size: 1.02rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.hero-note {
  position: absolute;
  right: 4.8%;
  bottom: 22%;
  z-index: 4;
  max-width: 360px;
  color: rgba(255, 255, 255, 0.76);
  font-family: var(--body);
  font-size: 1.52rem;
  font-weight: 300;
  line-height: 1.35;
  text-align: right;
}

.hero h2 {
  position: absolute;
  right: 4.4%;
  bottom: 5.8%;
  z-index: 4;
  color: #fff;
  font-family: var(--title);
  font-size: 5.4rem;
  font-weight: 400;
  line-height: 0.9;
}

.morph-readout {
  position: absolute;
  bottom: 28px;
  left: 3.2%;
  z-index: 5;
  display: grid;
  grid-template-columns: auto 108px auto;
  gap: 12px;
  align-items: center;
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.morph-readout i {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(212, 166, 79, 0.7));
  transform-origin: left center;
  transform: scaleX(max(0.08, var(--hero-progress, 0)));
}

.manifesto {
  display: grid;
  gap: 32px;
  width: min(980px, calc(100% - 48px));
  margin: 94px auto;
  padding: 18px 0;
}

.manifesto p {
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--title);
  font-size: 3.3rem;
  font-weight: 300;
  line-height: 1;
}

.manifesto p:nth-child(even) {
  margin-left: auto;
  color: rgba(244, 212, 145, 0.54);
  text-align: right;
}

.brief {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(420px, 1fr);
  gap: 48px;
  width: min(1420px, calc(100% - 20px));
  margin: 0 auto 88px;
  padding: 48px;
  background: rgba(255, 255, 255, 0.015);
  overflow: hidden;
}

.brief span {
  display: block;
  margin-bottom: 18px;
  color: rgba(244, 212, 145, 0.56);
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brief h2 {
  max-width: 740px;
  font-family: var(--title);
  font-size: 4.2rem;
  font-weight: 300;
  line-height: 0.92;
}

.founder-grid {
  display: grid;
  gap: 1px;
  align-self: stretch;
  border: 1px solid var(--line);
  background: var(--line);
}

.founder-grid article {
  padding: 28px;
  background: #000;
}

.founder-grid strong {
  display: block;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.65;
  text-transform: uppercase;
}

.founder-grid p {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.56);
  font-family: var(--body);
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.5;
}

.work {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  width: min(1420px, calc(100% - 20px));
  margin: 0 auto 88px;
}

.work-card {
  position: relative;
  min-height: 500px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.018);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 180ms ease, transform 180ms ease;
}

.work-card:hover {
  border-color: rgba(212, 166, 79, 0.42);
}

.work-card canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.work-card span,
.work-card h3,
.work-card p {
  position: absolute;
  z-index: 3;
  left: 28px;
}

.work-card span {
  top: 26px;
  color: rgba(244, 212, 145, 0.58);
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 500;
}

.work-card h3 {
  right: 24px;
  bottom: 132px;
  font-family: var(--title);
  font-size: clamp(2rem, 2.4vw, 3rem);
  font-weight: 400;
  line-height: 0.86;
}

.work-card p {
  right: 24px;
  bottom: 28px;
  color: rgba(255, 255, 255, 0.56);
  font-family: var(--body);
  font-size: 0.84rem;
  font-weight: 300;
  line-height: 1.42;
}

.closing {
  display: grid;
  min-height: 62vh;
  place-items: center;
  margin: 10px;
  padding: 80px 28px;
  text-align: center;
}

.closing p {
  color: var(--muted);
  font-family: var(--body);
  font-size: 1.6rem;
  font-weight: 300;
}

.closing h2 {
  margin-top: 12px;
  font-family: var(--title);
  font-size: 5.3rem;
  font-weight: 400;
  line-height: 0.9;
}

.closing a {
  margin-top: 28px;
  color: rgba(244, 212, 145, 0.68);
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.waitlist-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 46px;
  padding: 14px 24px;
  border: 1px solid rgba(212, 166, 79, 0.42);
  border-radius: 999px;
  background: rgba(212, 166, 79, 0.08);
  color: rgba(255, 255, 255, 0.86);
  text-transform: uppercase;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.waitlist-button:hover {
  border-color: rgba(244, 212, 145, 0.74);
  background: rgba(212, 166, 79, 0.16);
  transform: translateY(-1px);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 38px 34px;
  color: rgba(255, 255, 255, 0.34);
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding: 22px;
  }

  .pill-nav {
    max-width: 100%;
    overflow-x: auto;
  }

  .pill-nav a {
    min-width: 72px;
    padding: 10px 14px;
  }

  .hero-kicker {
    top: 18%;
    left: 22px;
  }

  h1 {
    font-size: 3.55rem;
  }

  .hero-kicker p {
    font-size: 0.86rem;
  }

  .hero-note {
    right: 22px;
    bottom: 20%;
    max-width: 290px;
    font-size: 1.12rem;
  }

  .hero h2 {
    right: 20px;
    bottom: 86px;
    font-size: 2.85rem;
  }

  .manifesto p {
    font-size: 2.25rem;
  }

  .brief {
    grid-template-columns: 1fr;
    padding: 30px 22px;
  }

  .brief h2 {
    font-size: 2.75rem;
  }

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

@media (max-width: 560px) {
  .hero {
    height: 820px;
  }

  .hero-scroll {
    min-height: 150vh;
  }

  .frame::before,
  .frame::after {
    width: 44px;
    height: 26px;
  }

  .hero-note {
    text-align: left;
  }

  .morph-readout {
    grid-template-columns: 1fr;
    gap: 8px;
    bottom: 24px;
    left: 22px;
    font-size: 0.58rem;
  }

  .morph-readout i {
    width: 140px;
  }

  .manifesto {
    gap: 24px;
    margin: 64px auto;
  }

  .manifesto p {
    font-size: 1.86rem;
  }

  .founder-grid p {
    font-size: 1.08rem;
  }

  .work-card {
    min-height: 440px;
  }

  .closing h2 {
    font-size: 3.1rem;
  }
}
