@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&family=Instrument+Serif:ital@0;1&family=Manrope:wght@300;400;500;600&display=swap");

:root {
  --night: #090d13;
  --night-2: #101722;
  --bone: #e9e0d0;
  --paper: #f1ebdf;
  --ink: #16191c;
  --smoke: #a8a297;
  --amber: #b87732;
  --copper: #7f4828;
  --line: rgba(233, 224, 208, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--bone);
  background: var(--night);
  font: 300 16px/1.7 "Manrope", sans-serif;
  letter-spacing: .01em;
}
body::before {
  position: fixed;
  z-index: 100;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: .06;
  background-image:
    repeating-radial-gradient(circle at 17% 31%, #fff 0 1px, transparent 1px 4px),
    repeating-radial-gradient(circle at 73% 61%, #fff 0 1px, transparent 1px 5px);
  background-size: 97px 89px, 113px 107px;
}
a { color: inherit; }
.mast {
  position: absolute;
  z-index: 10;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  padding: 28px clamp(22px, 5vw, 76px);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  justify-self: start;
  color: var(--bone);
  font: 500 17px "DM Mono", monospace;
  letter-spacing: .16em;
  text-decoration: none;
}
.wordmark span { color: var(--amber); }
.mast nav { display: flex; gap: 34px; }
.mast nav a, .quiet-link {
  color: var(--smoke);
  font: 400 10px "DM Mono", monospace;
  letter-spacing: .13em;
  text-decoration: none;
}
.mast nav a:hover, .quiet-link:hover { color: var(--bone); }
.quiet-link { justify-self: end; }
.threshold {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-content: center;
  overflow: hidden;
  padding: 140px clamp(24px, 8vw, 130px) 90px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 66%, rgba(184,119,50,.2), transparent 20%),
    radial-gradient(circle at 50% 50%, #16202d 0, var(--night) 62%);
}
.threshold::after {
  position: absolute;
  bottom: -25vh;
  left: 50%;
  width: min(56vw, 700px);
  height: 78vh;
  content: "";
  transform: translateX(-50%);
  border: 1px solid rgba(184,119,50,.45);
  border-bottom: 0;
  border-radius: 48% 48% 0 0;
  box-shadow: 0 0 90px rgba(184,119,50,.08), inset 0 0 70px rgba(184,119,50,.05);
}
.kicker, .section-head > p, .domain, .boundary .not-here > p, .final-door > p {
  margin: 0 0 24px;
  color: var(--amber);
  font: 500 10px "DM Mono", monospace;
  letter-spacing: .24em;
}
h1, h2, h3, blockquote { font-family: "Instrument Serif", serif; font-weight: 400; }
h1 {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: clamp(74px, 12vw, 172px);
  line-height: .78;
  letter-spacing: -.045em;
}
h1 em { color: var(--amber); font-weight: 400; }
.question {
  position: relative;
  z-index: 2;
  max-width: 610px;
  margin: 48px auto 34px;
  color: #c3bcae;
  font-size: clamp(16px, 2vw, 20px);
}
.enter {
  position: relative;
  z-index: 2;
  display: inline-flex;
  justify-self: center;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--amber);
  font: 400 11px "DM Mono", monospace;
  letter-spacing: .12em;
  text-decoration: none;
}
.enter span { color: var(--amber); }
.threshold-marks {
  position: absolute;
  z-index: 1;
  right: 6vw;
  bottom: 9vh;
  display: flex;
  gap: 12px;
}
.threshold-marks i {
  display: block;
  width: 7px;
  height: 7px;
  border: 1px solid var(--amber);
  border-radius: 50%;
}
.threshold-marks i:nth-child(2) { background: var(--amber); }
.margin-note {
  position: absolute;
  bottom: 7vh;
  left: 5vw;
  margin: 0;
  transform: rotate(-90deg) translateY(100%);
  transform-origin: left bottom;
  color: #77766f;
  font: 300 9px "DM Mono", monospace;
  letter-spacing: .16em;
}
.opening {
  display: grid;
  padding: 115px clamp(24px, 10vw, 160px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}
.opening p {
  margin: 0;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  color: #a8a297;
  font-family: "DM Mono", monospace;
  font-size: 12px;
}
.opening strong {
  max-width: 950px;
  margin-top: 55px;
  grid-column: 1 / -1;
  color: var(--bone);
  font: 400 clamp(42px, 6vw, 82px)/.98 "Instrument Serif", serif;
}
.doors, .boundary {
  padding: 130px clamp(22px, 6vw, 100px);
  background: var(--paper);
  color: var(--ink);
}
.section-head { display: grid; margin-bottom: 75px; grid-template-columns: .65fr 1.35fr; align-items: start; }
.section-head > p { color: var(--copper); }
.section-head h2 {
  margin: 0;
  font-size: clamp(56px, 8vw, 110px);
  line-height: .86;
  letter-spacing: -.045em;
}
.door-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.door {
  position: relative;
  min-height: 690px;
  padding: 28px 30px 34px;
  border: 1px solid rgba(22,25,28,.18);
  background: #e9e1d4;
}
.door::before {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 3px;
  content: "";
  background: var(--copper);
  opacity: 0;
  transition: opacity .3s ease;
}
.door:hover::before { opacity: 1; }
.number { color: var(--copper); font: 400 11px "DM Mono", monospace; }
.door-light {
  display: grid;
  width: 62%;
  height: 210px;
  margin: 32px auto 40px;
  place-items: center;
  border: 1px solid rgba(184,119,50,.5);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
  color: var(--bone);
  background: radial-gradient(circle at 50% 80%, #bd7831, #43291d 43%, #16191c 80%);
  box-shadow: inset 0 -30px 50px rgba(184,119,50,.32);
}
.duck-mark {
  position: relative;
  width: 68px;
  height: 42px;
  border-radius: 55% 45% 48% 52%;
  background: #090d13;
}
.duck-mark::before {
  position: absolute;
  top: -23px;
  right: -2px;
  width: 35px;
  height: 35px;
  content: "";
  border-radius: 50%;
  background: #090d13;
}
.duck-mark::after {
  position: absolute;
  top: -8px;
  right: -22px;
  width: 26px;
  height: 9px;
  content: "";
  border-radius: 0 90% 90% 0;
  background: #090d13;
}
.letters { font: italic 44px "Instrument Serif", serif; }
.nine { display: grid; padding: 57px; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.nine i { aspect-ratio: 1; border: 1px solid rgba(233,224,208,.72); }
.door h3 { margin: 8px 0 20px; font-size: 48px; letter-spacing: -.025em; }
.door > p:not(.domain) { min-height: 144px; color: #55534f; }
.door details { margin: 24px 0; padding: 16px 0; border-top: 1px solid rgba(22,25,28,.18); border-bottom: 1px solid rgba(22,25,28,.18); }
.door summary { cursor: pointer; color: var(--copper); font: 500 10px "DM Mono", monospace; letter-spacing: .1em; }
.door details p { margin: 14px 0 2px; color: #55534f; font-size: 13px; }
.door > a { font: 500 10px "DM Mono", monospace; letter-spacing: .08em; text-decoration: none; }
.door > a:hover { color: var(--copper); }
.thread {
  position: relative;
  padding: 135px clamp(24px, 8vw, 130px);
  overflow: hidden;
  background: #111925;
}
.thread::before {
  position: absolute;
  top: 0;
  left: 15%;
  width: 1px;
  height: 100%;
  content: "";
  background: linear-gradient(transparent, var(--amber), transparent);
  opacity: .4;
}
.section-head.pale { grid-template-columns: .65fr 1.35fr; }
.section-head.pale h2 { color: var(--bone); }
.thread-copy {
  max-width: 720px;
  margin-left: 33%;
  color: #a9a79f;
  font-size: 17px;
}
.thread-copy .lead { color: var(--amber); font: italic 38px "Instrument Serif", serif; }
.sequence {
  display: grid;
  margin: 100px 0 70px;
  padding: 0;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
}
.sequence li { display: grid; padding: 28px 18px; border-right: 1px solid var(--line); }
.sequence span { color: var(--amber); font: 400 9px "DM Mono", monospace; }
.sequence b { margin: 40px 0 6px; font: 400 34px "Instrument Serif", serif; }
.sequence small { color: #777c82; }
.deep-read {
  max-width: 760px;
  margin-left: auto;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.deep-read summary { cursor: pointer; color: var(--amber); font: 400 11px "DM Mono", monospace; letter-spacing: .12em; }
.deep-read div { padding: 25px 0 5px; color: #aaa79f; }
.inheritance {
  padding: 135px clamp(24px, 10vw, 160px);
  background: #d8cec0;
  color: var(--ink);
}
.inheritance .kicker { color: var(--copper); }
blockquote {
  max-width: 1100px;
  margin: 30px 0 75px;
  font-size: clamp(50px, 8vw, 108px);
  line-height: .89;
  letter-spacing: -.045em;
}
.memory-lines { display: flex; max-width: 900px; align-items: center; gap: 8px; }
.memory-lines i { display: block; height: 64px; flex: 1; background: var(--copper); }
.memory-lines i:nth-child(2) { flex: .75; opacity: .9; }
.memory-lines i:nth-child(3) { flex: .55; opacity: .8; }
.memory-lines i:nth-child(4) { flex: .4; opacity: .7; }
.memory-lines i:nth-child(5) { flex: .29; opacity: .6; }
.memory-lines i:nth-child(6) { flex: .2; opacity: .5; }
.memory-lines i:nth-child(7) { flex: .13; opacity: .4; }
.memory-lines i:nth-child(8) { flex: .08; opacity: .3; }
.inheritance > p:last-child { max-width: 740px; margin: 48px 0 0 auto; color: #54504a; font-size: 18px; }
.boundary-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 100px; }
.boundary-lead { margin-top: 0; font: 400 33px/1.3 "Instrument Serif", serif; }
.boundary-grid > div:first-child p:last-child { color: #66625b; }
.not-here { padding: 32px; border: 1px solid rgba(22,25,28,.22); }
.not-here ul { margin: 0; padding: 0; list-style: none; }
.not-here li { padding: 11px 0; border-bottom: 1px solid rgba(22,25,28,.12); font-family: "DM Mono", monospace; font-size: 12px; }
.not-here li::before { margin-right: 12px; content: "—"; color: var(--copper); }
.plain-truth {
  max-width: 880px;
  margin: 110px auto 0;
  padding-top: 45px;
  border-top: 1px solid rgba(22,25,28,.2);
  font: italic 31px "Instrument Serif", serif;
  text-align: center;
}
.final-door {
  min-height: 760px;
  display: grid;
  place-content: center;
  padding: 100px 24px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 70%, rgba(184,119,50,.18), transparent 20%),
    var(--night);
}
.final-door h2 { margin: 22px 0 55px; font-size: clamp(76px, 12vw, 165px); line-height: .77; letter-spacing: -.05em; }
.project-links { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.project-links a { padding-bottom: 8px; border-bottom: 1px solid var(--amber); font: 400 10px "DM Mono", monospace; letter-spacing: .1em; text-decoration: none; }
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(22px, 5vw, 76px);
  border-top: 1px solid var(--line);
  color: #777c82;
  background: var(--night);
  font: 300 9px "DM Mono", monospace;
  letter-spacing: .1em;
}

@media (max-width: 900px) {
  .mast { grid-template-columns: 1fr 1fr; }
  .mast nav { display: none; }
  .section-head, .section-head.pale { grid-template-columns: 1fr; gap: 20px; }
  .door-grid { grid-template-columns: 1fr; }
  .door { min-height: auto; }
  .door > p:not(.domain) { min-height: auto; }
  .thread-copy { margin-left: 15%; }
  .sequence { grid-template-columns: 1fr 1fr; }
  .boundary-grid { grid-template-columns: 1fr; gap: 45px; }
}

@media (max-width: 620px) {
  .mast { padding: 20px; }
  .threshold { padding-right: 20px; padding-left: 20px; }
  h1 { font-size: 76px; }
  .margin-note { display: none; }
  .opening { grid-template-columns: 1fr; padding: 80px 22px; }
  .opening strong { margin-top: 25px; }
  .doors, .thread, .inheritance, .boundary { padding: 88px 20px; }
  .section-head h2 { font-size: 59px; }
  .door { padding: 22px; }
  .thread-copy { margin-left: 0; }
  .sequence { grid-template-columns: 1fr; }
  .sequence li { border-bottom: 1px solid var(--line); }
  .sequence b { margin-top: 12px; }
  blockquote { font-size: 57px; }
  .inheritance > p:last-child { margin-left: 0; }
  .plain-truth { font-size: 26px; }
  .project-links { flex-direction: column; align-items: center; }
  footer { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
