:root {
  color-scheme: dark;
  --ink: #050507;
  --paper: #f4eee3;
  --muted: #a9a29a;
  --gold: #ddb387;
  --gutter: clamp(24px, 4.1vw, 80px);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #514333 #050507;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family:
    "Helvetica Neue", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-weight: 400;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}
a,
button {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 7px;
}
::selection {
  background: #d2a373;
  color: #050507;
}
.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  top: 80px;
  left: 30px;
  z-index: 100;
  background: #111;
  padding: 20px;
}
.universe,
.atmosphere,
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.universe {
  z-index: -3;
  overflow: hidden;
  background: radial-gradient(
    ellipse at 60% 40%,
    #1c130c 0%,
    #080708 45%,
    #050507 80%
  );
}
canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 1.8s;
}
.gpu-ready canvas {
  opacity: 1;
}
.fallback-orbit {
  position: absolute;
  width: min(58vw, 780px);
  aspect-ratio: 1;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%) rotate(-22deg) scaleY(0.7);
  border: 3px solid #f8d8ab;
  border-radius: 50%;
  box-shadow:
    0 0 14px #ffdb9d,
    0 0 80px #b96a2a,
    inset 0 0 45px #ad6528;
  opacity: 0.8;
}
.gpu-ready .fallback-orbit {
  display: none;
}
.atmosphere {
  z-index: -2;
  background:
    linear-gradient(
      180deg,
      rgba(5, 5, 7, 0.4),
      transparent 22%,
      transparent 65%,
      rgba(5, 5, 7, 0.5)
    ),
    radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.5));
}
.grain {
  z-index: 10;
  opacity: 0.047;
  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='.94' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' opacity='.7' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
.masthead {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 110px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
}
.wordmark > span:first-child {
  padding: 0 2px;
}
.wordmark-star {
  font-size: 27px;
  color: var(--gold);
  margin-left: 13px;
  font-weight: 300;
}
.masthead-note {
  font-size: 9px;
  letter-spacing: 2.3px;
  color: #b4aea4;
}
.menu-toggle,
.close-menu {
  font-size: 10px;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 44px;
}
.menu-icon {
  width: 23px;
  height: 7px;
  border-top: 1px solid;
  border-bottom: 1px solid;
}
.chapter {
  height: 135svh;
  min-height: 720px;
  position: relative;
  padding: 0 var(--gutter);
  display: flex;
  align-items: flex-start;
}
.chapter-opening {
  height: 125svh;
}
.chapter-end {
  height: 100svh;
  min-height: 650px;
}
.chapter-copy {
  position: relative;
  top: 38svh;
  max-width: 85%;
  will-change: opacity, transform;
}
.opening-copy {
  top: 54svh;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 3.8px;
  font-weight: 500;
  margin: 0 0 25px;
  color: #c6b6a4;
}
h1 {
  font-size: clamp(80px, 12.3vw, 205px);
  letter-spacing: -0.07em;
  font-weight: 450;
  line-height: 0.85;
  margin: 0 0 28px;
}
.period {
  color: var(--gold);
}
.subtitle {
  font-size: 13px;
  letter-spacing: 0.12em;
  font-weight: 300;
  color: #c8c1b8;
  line-height: 1.9;
  margin: 0;
}
h2 {
  font-size: clamp(48px, 6.3vw, 100px);
  font-weight: 350;
  letter-spacing: -0.07em;
  line-height: 1.25;
  margin: 0 0 26px;
}
h2 em {
  font-style: normal;
  color: var(--gold);
}
.side-copy {
  left: 4%;
  top: 35svh;
}
.center-copy {
  width: 100%;
  max-width: 100%;
  text-align: center;
  top: 39svh;
}
.center-copy h2 {
  font-size: clamp(48px, 7.7vw, 128px);
}
.horizon-copy {
  top: 26svh;
  left: 4%;
}
.end-copy {
  width: 100%;
  max-width: 100%;
  top: 36svh;
  text-align: center;
}
.end-copy h2 {
  font-size: clamp(44px, 6.2vw, 96px);
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 58px;
  border-bottom: 1px solid #99836d;
  padding: 14px 0;
  font-size: 13px;
  letter-spacing: 1px;
}
.contact-link span {
  font-size: 24px;
  transition: transform 0.3s;
}
.contact-link:hover span {
  transform: translate(5px, -5px);
}
.scroll-invitation {
  position: absolute;
  top: 88svh;
  left: var(--gutter);
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 8px;
  letter-spacing: 2.5px;
  min-height: 44px;
}
.scroll-line {
  height: 1px;
  width: 45px;
  background: #aa8c67;
}
.scroll-invitation > span:last-child {
  font-size: 18px;
  margin-left: 9px;
}
.opening-coordinate {
  position: absolute;
  right: var(--gutter);
  top: 83svh;
  font-size: 9px;
  line-height: 1.8;
  letter-spacing: 2px;
  color: #8f867c;
}
.chapter-nav {
  position: fixed;
  right: var(--gutter);
  top: 43%;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.chapter-nav a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  height: 36px;
  width: 50px;
  font-size: 8px;
  color: #c2a582;
}
.chapter-nav span {
  opacity: 0;
  transition: opacity 0.3s;
}
.chapter-nav i {
  width: 10px;
  height: 1px;
  background: #675e54;
  transition:
    width 0.4s,
    background 0.4s;
}
.chapter-nav .active span,
.chapter-nav a:hover span {
  opacity: 1;
}
.chapter-nav .active i {
  width: 23px;
  background: #e9c69c;
}
.transport {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 24px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.transport-controls {
  display: flex;
  gap: 24px;
  pointer-events: auto;
}
.transport button {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 8px;
  letter-spacing: 1.6px;
}
.scene-label {
  font-size: 8px;
  letter-spacing: 2px;
  color: #9a9085;
}
.pause-icon {
  font-size: 13px;
}
.sound-bars {
  height: 14px;
  display: flex;
  align-items: center;
  gap: 2px;
}
.sound-bars i {
  height: 3px;
  width: 1px;
  background: var(--gold);
}
.sound-bars i:nth-child(2) {
  height: 11px;
}
.sound-bars i:nth-child(3) {
  height: 7px;
}
[aria-pressed="true"] .sound-bars i {
  animation: equalize 1.2s ease-in-out infinite alternate;
}
[aria-pressed="true"] .sound-bars i:nth-child(2) {
  animation-delay: -0.4s;
}
[aria-pressed="true"] .sound-bars i:nth-child(3) {
  animation-delay: -0.8s;
}
@keyframes equalize {
  to {
    height: 13px;
  }
  from {
    height: 3px;
  }
}
.progress-track {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 30;
  background: #ffffff09;
}
.progress-fill {
  height: 100%;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
}
footer {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 105px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
  letter-spacing: 1px;
  color: #a99c8b;
}
dialog {
  position: fixed;
  inset: 0;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100dvh;
  margin: 0;
  padding: 38px var(--gutter);
  border: 0;
  background: #090909f5;
  color: var(--paper);
  backdrop-filter: blur(22px);
}
dialog::backdrop {
  background: #0009;
}
.index-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 2px;
}
.close-menu span {
  font-size: 27px;
}
dialog nav {
  max-width: 900px;
  margin: 7vh auto 3vh;
}
dialog nav a {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #ffffff20;
  padding: 22px 0;
  font-size: clamp(30px, 4.5vw, 60px);
  letter-spacing: -2px;
}
dialog nav a > span {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--gold);
  margin-right: 40px;
}
dialog nav em {
  margin-left: auto;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 1px;
  color: #a59685;
}
dialog nav a:hover {
  color: var(--gold);
}
.index-contact {
  display: block;
  max-width: 900px;
  margin: 30px auto;
  font-size: 12px;
  color: #b7a38c;
}
html.menu-open {
  overflow: hidden;
}
@media (min-width: 1800px) {
  .opening-copy {
    top: 52svh;
  }
}
@media (max-width: 700px) {
  .masthead {
    height: 84px;
  }
  .wordmark {
    font-size: 18px;
  }
  .wordmark-star {
    font-size: 23px;
    margin-left: 10px;
  }
  .masthead-note {
    display: none;
  }
  .menu-toggle {
    font-size: 9px;
    gap: 12px;
  }
  .chapter {
    min-height: 650px;
    height: 130svh;
  }
  .chapter-opening {
    height: 120svh;
  }
  .chapter-end {
    height: 100svh;
    min-height: 620px;
  }
  .opening-copy {
    top: 59svh;
    max-width: 100%;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 2.2px;
    margin-bottom: 21px;
  }
  h1 {
    font-size: 19vw;
    letter-spacing: -0.075em;
    margin-bottom: 22px;
  }
  h2 {
    font-size: 12vw;
  }
  .subtitle {
    font-size: 11px;
    letter-spacing: 0.06em;
  }
  .scroll-invitation {
    top: 82svh;
    font-size: 7px;
    gap: 11px;
  }
  .scroll-line {
    width: 28px;
  }
  .opening-coordinate {
    display: none;
  }
  .chapter-nav {
    right: 15px;
    top: 39%;
  }
  .chapter-nav a {
    height: 36px;
    width: 35px;
  }
  .chapter-nav span {
    display: none;
  }
  .chapter-nav .active i {
    width: 17px;
  }
  .chapter-nav i {
    width: 6px;
  }
  .side-copy,
  .horizon-copy {
    left: 0;
  }
  .side-copy {
    top: 36svh;
  }
  .center-copy {
    top: 40svh;
  }
  .center-copy h2 {
    font-size: 12vw;
  }
  .horizon-copy {
    top: 25svh;
  }
  .end-copy {
    top: 34svh;
  }
  .end-copy h2 {
    font-size: 10.5vw;
  }
  .transport {
    bottom: 15px;
  }
  .transport-controls {
    gap: 15px;
  }
  .transport button {
    font-size: 7px;
    letter-spacing: 0.8px;
    gap: 7px;
  }
  .scene-label {
    font-size: 6px;
    letter-spacing: 1px;
  }
  .contact-link {
    font-size: 12px;
    gap: 40px;
  }
  footer {
    bottom: 93px;
    flex-wrap: wrap;
    font-size: 8px;
    line-height: 2;
  }
  footer > a:nth-child(2) {
    order: 3;
    width: 100%;
  }
  dialog {
    padding-top: 22px;
  }
  dialog nav {
    margin-top: 7vh;
  }
  dialog nav a {
    padding: 23px 0;
    font-size: 35px;
  }
  dialog nav a > span {
    margin-right: 22px;
  }
  dialog nav em {
    font-size: 8px;
    letter-spacing: 0;
  }
}
@media (max-height: 600px) and (min-width: 701px) {
  .masthead {
    height: 75px;
  }
  .chapter {
    min-height: 600px;
  }
  .opening-copy {
    top: 40svh;
  }
  h1 {
    font-size: 19vh;
  }
  .scroll-invitation {
    top: 76svh;
  }
  dialog nav {
    margin-top: 10px;
  }
  dialog nav a {
    padding: 9px 0;
    font-size: 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .chapter-copy {
    will-change: auto;
  }
}

[hidden] {
  display: none !important;
}

.side-copy h2,
.horizon-copy h2 {
  text-shadow:
    0 2px 35px #0009,
    0 1px 6px #0008;
}

@media (max-height: 600px) {
  .opening-coordinate { display: none; }
}
