* {
  box-sizing: border-box;
}

:root {
  --bg: #050505;
  --paper: #f4efe3;
  --muted: rgba(244, 239, 227, 0.68);
  --line: rgba(244, 239, 227, 0.72);
  --acid: #9dff66;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

body,
.site-header,
main,
footer,
.hero,
.index-list,
.feature-grid,
.newsletter,
.about {
  color: var(--paper);
}

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

.grain,
.glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.grain {
  inset: 0;
  opacity: 0.1;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.12) 0,
    rgba(255, 255, 255, 0.12) 1px,
    transparent 1px,
    transparent 4px
  );
}

.glow {
  left: 50%;
  top: 50%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(157, 255, 102, 0.25), transparent 65%);
  transform: translate(-50%, -50%);
  filter: blur(24px);
}

.site-header,
main,
footer,
.newsletter-modal {
  position: relative;
  z-index: 2;
}

.site-header {
  min-height: 45px;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 12px;
}
.logo {
  font-weight: 900;
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a:hover {
  color: var(--acid);
}

.hero {
  position: relative;

  min-height: calc(100vh - 72px);

  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  padding: 20px 20px 4px;

  overflow: hidden;
}

.hero h1,
.hero .eyebrow,
.hero .intro,
.hero .scroll-link {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 22px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  color: var(--muted);
}

.hero h1 {
  margin: 0;
  font-size: clamp(72px, 15vw, 230px);
  line-height: 0.74;
  letter-spacing: -0.105em;
  font-weight: 950;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

.intro {
  max-width: 690px;
  margin: 34px 0 0;
  font-size: clamp(20px, 3vw, 38px);
  line-height: 1.08;
}

#webgl-canvas {

  position: absolute;
  left: 0;
  right: 0;
  bottom: -60px;
  width: 100%;     
  height: 260px;

  display: block;
  z-index: 0;
  pointer-events: none;
  background: transparent;
}

.scroll-link {
  width: fit-content;
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
}

.scroll-link:hover {
  background: var(--paper);
  color: var(--bg);
}

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
}

.marquee div {
  width: max-content;
  padding: 14px 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  animation: drift 28s linear infinite;
}

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.index-list {
  border-top: 1px solid var(--line);
}

.index-list a {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) minmax(240px, 420px);
  gap: 24px;
  align-items: baseline;
  padding: 24px;
  border-bottom: 1px solid var(--line);
  transition: all 0.22s ease;
}

.index-list span {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.index-list strong {
  font-size: clamp(36px, 7vw, 108px);
  line-height: 0.88;
  letter-spacing: -0.075em;
  text-transform: uppercase;
}

.index-list em {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
  font-style: normal;
}

.index-list a:hover {
  background: var(--paper);
  color: var(--bg);
  padding-left: 44px;
}

.index-list a:hover span,
.index-list a:hover em {
  color: var(--bg);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.feature-card {
  min-height: 320px;
  padding: 24px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-card:last-child {
  border-right: 0;
}

.feature-card p {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--muted);
}

.feature-card h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(30px, 3vw, 48px);
  font-weight: 400;
  font-style: italic;
  line-height: 0.95;
}

.feature-card a {
  width: fit-content;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
}

.newsletter {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 80px 24px;
  border-bottom: 1px solid var(--line);
}

.newsletter h2 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(42px, 8vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.newsletter p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
}

.stamp {
  width: 210px;
  height: 210px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  animation: spin 12s linear infinite;
}

.stamp span {
  display: block;
  max-width: 130px;
  margin: auto;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.18em;
}

.stamp:hover {
  background: var(--paper);
  color: var(--bg);
}

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

.about {
  padding: 90px 24px;
}

.about p {
  max-width: 1000px;
  margin: 0;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: clamp(38px, 7vw, 100px);
  line-height: 0.95;
}

footer {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.newsletter-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(5, 5, 5, 0.78);
  backdrop-filter: blur(10px);
}

.newsletter-modal.is-open {
  display: grid;
}

.modal-card {
  width: min(540px, 100%);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--bg);
  padding: 28px;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 34px;
  cursor: pointer;
}

form {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--bg);
  background: transparent;
  padding: 14px;
}

form button {
  border: 1px solid var(--bg);
  background: var(--bg);
  color: var(--paper);
  padding: 14px 18px;
}

@media (max-width: 900px) {
  .index-list a {
    grid-template-columns: 60px 1fr;
  }

  .index-list em {
    grid-column: 2;
  }

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

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

@media (max-width: 650px) {
  .site-header {
    flex-direction: column;
  }

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

  .feature-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  form,
  footer {
    flex-direction: column;
  }
}
