@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');

:root{
  color-scheme:dark;
  --white:255,255,255;
  --black:0,0,0;
}

*{box-sizing:border-box;}
html{
  min-height:100%;
  background:#000;
  scroll-behavior:smooth;
}
body{
  min-height:100%;
  margin:0;
  background:#000;
  color:#fff;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none;}
button,input{font:inherit;}

/* =========================
   INDEX LAYOUT
   ========================= */
.page{
  height:100vh;
  min-height:100vh;
  background:#000;
  overflow:hidden;
  position:relative;
  display:flex;
  flex-direction:column;
  isolation:isolate;
}

.bg-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  transform:scale(1.03);
  filter:grayscale(1) contrast(1.08) brightness(.82);
  opacity:1;
  pointer-events:none;
  z-index:0;
}

.veil,.grain{display:none;}

body[data-dkc-page="index"],
body[data-dkc-page="index"] .page{
  background:#000;
}

body[data-dkc-page="index"] .page,
body[data-dkc-page="index"] .hero,
body[data-dkc-page="index"] main{
  background:transparent;
  border:0;
  box-shadow:none;
}

body[data-dkc-page="index"] .page::before,
body[data-dkc-page="index"] .page::after,
body[data-dkc-page="index"] .hero::before,
body[data-dkc-page="index"] .hero::after,
body[data-dkc-page="index"] .veil,
body[data-dkc-page="index"] .grain{
  content:none;
  display:none;
  background:none;
  opacity:0;
  pointer-events:none;
}

/* =========================
   HERO
   ========================= */
.hero{
  position:relative;
  z-index:10;
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-end;
  padding:48px 24px 16vh;
  text-align:center;
}

.hero h1{
  margin:0;
  color:rgba(255,255,255,.76);
  font-family:'Instrument Serif',serif;
  font-size:clamp(4.6rem,9.8vw,9.4rem);
  font-weight:400;
  line-height:.9;
  letter-spacing:-.05em;
  white-space:nowrap;
  text-shadow:0 12px 42px rgba(0,0,0,.58);
}

.hero-ratio{
  margin-top:1px;
  color:rgba(255,255,255,.48);
  font-family:Inter,"Be Vietnam Pro",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:clamp(3.6rem,3.6vw,3.6rem);
  font-weight:360;
  letter-spacing:.18em;
  line-height:1;
  text-shadow:0 8px 28px rgba(0,0,0,.48);
}

/* =========================
   PHASE LINKS
   ========================= */
.hero-phase-links{
  margin-top:32px;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:10px 13px;
  row-gap:8px;
  max-width:min(880px,92vw);
  color:rgba(255,255,255,.48);
  text-shadow:0 10px 34px rgba(0,0,0,.55);
}

.hero-phase-links .timeline-item{
  display:inline-flex;
  align-items:baseline;
  gap:6px;
  white-space:nowrap;
  color:rgba(255,255,255,.46);
  font-size:.78rem;
  font-weight:690;
  letter-spacing:.16em;
  line-height:1.3;
  text-transform:uppercase;
  transition:color .18s ease,text-shadow .18s ease;
}

.hero-phase-links .timeline-item:hover{
  color:rgba(242,217,130,.92);
  text-shadow:0 0 22px rgba(242,217,130,.18);
}

.hero-phase-links .phase{
  color:inherit;
  font-size:inherit;
  font-weight:inherit;
  letter-spacing:inherit;
  text-transform:inherit;
}

.hero-phase-links .sep{
  color:rgba(255,255,255,.18);
  font-size:.78rem;
  font-weight:690;
  letter-spacing:.16em;
  line-height:1.3;
  user-select:none;
}

.hero-phase-links .phase-row-break{
  flex-basis:100%;
  height:0;
}

/* =========================
   MOBILE
   ========================= */
@media (max-width:767px){
  .hero{
    padding:36px 16px 12vh;
  }

  .hero h1{
    font-size:clamp(3.6rem,18vw,6.3rem);
    line-height:.96;
  }

  .hero-ratio{
    margin-top:9px;
    font-size:1.2rem;
    letter-spacing:.27em;
  }

  .hero-phase-links{
    max-width:min(340px,100%);
    gap:7px 9px;
    row-gap:7px;
    margin-top:24px;
  }

  .hero-phase-links .timeline-item,
  .hero-phase-links .phase,
  .hero-phase-links .sep{
    font-size:.62rem;
    letter-spacing:.105em;
  }

  .hero-phase-links .sep{
    display:none;
  }

  .bg-video{
    transform:scale(1.06);
    object-position:center center;
  }
}


/* =========================
   HIDDEN GATES
   ========================= */
.hero-code-links{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.34em;
  flex-wrap:wrap;
}

.hero-code-links a,
.hero-code-links span{
  color:inherit;
  text-decoration:none;
}

.hero-code-links a{
  opacity:.82;
  transition:opacity .2s ease, text-shadow .2s ease, transform .2s ease;
}

.hero-code-links a:hover,
.hero-code-links a:focus-visible{
  opacity:1;
  text-shadow:0 0 18px rgba(255,255,255,.36);
  outline:none;
}

.hero-code-links span{
  opacity:.62;
}
