:root {
  --bg: #e6e3dc;
  --ink: #1b1b19;
  --ink-soft: rgba(27, 27, 25, 0.55);
  --serif: "Fraunces", serif;
  --sans: "Inter", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

a,
button {
  cursor: none;
}

@media (pointer: coarse) {
  body,
  a,
  button {
    cursor: auto;
  }
}

/* ---------- loader ---------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.loader__mark {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 480, "WONK" 1;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  letter-spacing: 0.02em;
}

.loader__count {
  position: absolute;
  right: 4vw;
  bottom: 4vh;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

/* ---------- canvas ---------- */

#webgl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

/* ---------- header ---------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 2rem 2.4rem;
}

.header__logo {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.header__tagline {
  margin-top: 0.7rem;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.header__nav a,
.header__lang {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  position: relative;
}

.header__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.header__nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header__nav-divider {
  width: 1px;
  height: 0.9rem;
  background: rgba(27, 27, 25, 0.25);
}

.header__menu {
  display: none;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  background: none;
  border: none;
}

/* ---------- stage / panels ---------- */

.stage {
  position: fixed;
  inset: 0;
  z-index: 10;
}

.panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
}

/* ---------- hero ---------- */

.panel--hero {
  align-items: center;
}

.hero {
  width: min(92vw, 1480px);
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 540, "WONK" 1;
  font-weight: 540;
  font-size: clamp(3.6rem, 12.5vw, 13.5rem);
  line-height: 0.88;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.hero__line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.hero__word {
  display: inline-block;
  will-change: transform;
}

.hero__line--a { padding-left: 8%; }
.hero__line--b { padding-left: 26%; }
.hero__line--c { padding-left: 2%; }
.hero__line--d { padding-left: 34%; }

/* ---------- statement ---------- */

.statement {
  font-family: var(--serif);
  font-variation-settings: "opsz" 60, "wght" 420, "WONK" 1;
  font-size: clamp(1.5rem, 3.6vw, 3.2rem);
  line-height: 1.32;
  text-align: center;
  max-width: 24em;
}

/* ---------- cta ---------- */

.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(16rem, 36vw, 26rem);
  aspect-ratio: 1;
  text-decoration: none;
  color: var(--ink);
}

.cta__text {
  font-family: var(--serif);
  font-variation-settings: "opsz" 100, "wght" 480, "WONK" 1;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  z-index: 1;
}

.cta__ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(27, 27, 25, 0.45);
  border-radius: 50%;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.cta:hover .cta__ring {
  transform: scale(1.08);
}

/* ---------- people ---------- */

.people {
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(2rem, 6vw, 6rem);
  flex-wrap: wrap;
  padding: 0 4vw;
}

.people__name {
  font-family: var(--serif);
  font-variation-settings: "opsz" 100, "wght" 460, "WONK" 1;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1.02;
  text-align: center;
}

/* ---------- footer ---------- */

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2.4rem, 6vh, 4.5rem);
  text-align: center;
  padding: 0 6vw;
}

.footer__blurb {
  font-family: var(--serif);
  font-variation-settings: "opsz" 40, "wght" 420, "WONK" 1;
  font-size: clamp(1.1rem, 2.2vw, 1.7rem);
  line-height: 1.5;
  max-width: 30em;
}

.footer__mail {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  background: none;
  border: none;
  color: var(--ink);
  position: relative;
}

.footer__mail-label {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
}

.footer__mail-address {
  font-family: var(--serif);
  font-variation-settings: "opsz" 60, "wght" 440, "WONK" 1;
  font-size: clamp(1.2rem, 2.6vw, 2rem);
  border-bottom: 1px solid rgba(27, 27, 25, 0.35);
  padding-bottom: 0.15em;
}

.footer__mail-hint {
  position: absolute;
  left: 50%;
  bottom: -1.8rem;
  transform: translateX(-50%);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer__mail:hover .footer__mail-hint,
.footer__mail.is-copied .footer__mail-hint {
  opacity: 1;
}

.footer__meta {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}

.footer__social {
  display: flex;
  gap: 1.4rem;
}

.footer__social a {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--ink);
  text-decoration: none;
}

.footer__copyright {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

/* ---------- scroll affordances ---------- */

.scroll-cta {
  position: fixed;
  right: 2.4rem;
  bottom: 2.2rem;
  z-index: 40;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid rgba(27, 27, 25, 0.4);
  background: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-cta svg {
  width: 0.9rem;
  height: 0.9rem;
}

.scroll-cta:hover {
  transform: scale(1.12);
}

.scroll-cta.is-flipped svg {
  transform: rotate(180deg);
}

.scroll-hint {
  position: fixed;
  left: 2.4rem;
  bottom: 2.2rem;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.scroll-hint__line {
  width: 3.2rem;
  height: 1px;
  background: rgba(27, 27, 25, 0.3);
  overflow: hidden;
  position: relative;
}

.scroll-hint__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  animation: hint-sweep 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes hint-sweep {
  0% { transform: translateX(-100%); }
  55% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* ---------- menu overlay ---------- */

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
}

.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.menu-overlay__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.menu-overlay__nav a {
  font-family: var(--serif);
  font-variation-settings: "opsz" 100, "wght" 480, "WONK" 1;
  font-size: clamp(2rem, 8vw, 3.4rem);
  color: var(--ink);
  text-decoration: none;
}

/* chrome elements start hidden; the intro timeline reveals them */
.ui-fade {
  opacity: 0;
  visibility: hidden;
}

/* ---------- cursor ---------- */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--ink);
  pointer-events: none;
  transition: transform 0.25s ease;
}

.cursor.is-hover {
  transform: scale(2.6);
}

@media (pointer: coarse) {
  .cursor {
    display: none;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .header {
    padding: 1.4rem 1.4rem;
  }

  .header__nav {
    display: none;
  }

  .header__menu {
    display: block;
  }

  .hero {
    font-size: clamp(3.2rem, 14.5vw, 6rem);
  }

  .hero__line--a { padding-left: 4%; }
  .hero__line--b { padding-left: 14%; }
  .hero__line--c { padding-left: 0; }
  .hero__line--d { padding-left: 10%; }

  .people {
    flex-direction: column;
    gap: 1.6rem;
  }

  .scroll-cta {
    right: 1.4rem;
    bottom: 1.4rem;
  }

  .scroll-hint {
    left: 1.4rem;
    bottom: 1.4rem;
  }
}
