:root {
  --ink: #3a3131;
  --paper: #ffffff;
  --muted: #9a98a0;
  --on-video: #ffffff;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

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

html, body {
  height: 100%;
  overflow: hidden; /* landing page never scrolls */
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Mulish", "Proxima Nova", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  transition: color .6s var(--ease), background .6s var(--ease);
}

/* ---------- layout ---------- */
.stage {
  position: relative; /* no z-index: keeps the logo able to blend with the page behind it */
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 11vh;
}

.logo {
  display: block;
  width: clamp(48px, 4.4vw, 68px);
  opacity: 0;
  animation: fade-in 1.4s var(--ease) .2s forwards;
}
.logo img {
  display: block;
  width: 100%;
  height: auto;
}

.nav {
  margin-top: clamp(70px, 19vh, 200px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px clamp(24px, 3.2vw, 48px);
  max-width: 900px;
  padding: 0 24px;
  opacity: 0;
  animation: fade-in 1.4s var(--ease) .7s forwards;
}
.nav a, .wordmark {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: lowercase;
  text-decoration: none;
  color: inherit;
  transition: opacity .3s var(--ease), color .6s var(--ease);
}
.nav a:hover { opacity: .6; }
.nav a[aria-current="page"] { color: var(--muted); }

.wordmark {
  display: block;
  margin-top: 22px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  padding-left: .3em; /* balances trailing letter-spacing so it centres under the logo */
  opacity: 0;
  animation: fade-in 1.4s var(--ease) .5s forwards;
}
.home .wordmark { animation-delay: 3.2s; }

@keyframes fade-in { to { opacity: 1; } }

/* ---------- intro: logo alone in the middle, then the page ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: var(--paper);
  display: grid;
  place-items: center;
  pointer-events: none;
  animation: intro-out 1s var(--ease) 2.3s forwards;
}
.intro-logo {
  width: clamp(48px, 4.4vw, 68px);
  opacity: 0;
  animation: fade-in 1.1s var(--ease) .3s forwards;
}
.intro-logo img { display: block; width: 100%; }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }

/* on the landing page the real content waits for the intro to finish */
.home .logo { animation-delay: 3s; }
.home .nav  { animation-delay: 3.4s; }

/* ---------- video ---------- */
.video-wrap {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .7s var(--ease);
}
.video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.playing .video-wrap { opacity: 1; }
body.playing { --ink: var(--on-video); --muted: rgba(255,255,255,.7); }

/* soft shade so white text stays readable over the film */
.video-wrap::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.22); }


/* ---------- controls ---------- */
.controls {
  position: fixed;
  z-index: 3;
  left: 28px; right: 28px; bottom: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.ctl {
  pointer-events: auto;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: lowercase;
  color: var(--ink);
  transition: color .6s var(--ease), opacity .3s var(--ease);
  padding: 6px 0;
}
.ctl:hover { opacity: .6; }

/* touch devices: no hover, video plays right away with a play/pause button */
@media (hover: none) {
  .nav { margin-top: 18vh; }
}

/* ---------- temporary footer (landing page) ---------- */
.site-footer {
  position: fixed;
  z-index: 3;
  right: 28px; bottom: 26px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .08em;
  color: var(--ink);
  opacity: 0;
  animation: fade-in 1.4s var(--ease) 3.8s forwards;
  transition: color .6s var(--ease);
}
.site-footer a { color: inherit; text-decoration: none; transition: opacity .3s var(--ease); }
.site-footer a:hover { opacity: .6; }

/* ---------- contact page ---------- */
.contact {
  max-width: 560px;
  margin: clamp(60px, 14vh, 140px) 24px 0;
  text-align: center;
  font-size: 15px;
  font-weight: 400;
  line-height: 2;
  letter-spacing: .06em;
  opacity: 0;
  animation: fade-in 1.4s var(--ease) 1s forwards;
}
.contact a { color: inherit; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.contact a:hover { opacity: .6; }

@media (max-width: 600px) {
  .nav a, .wordmark { font-size: 13px; }
  .nav { gap: 12px 22px; }
  .contact { font-size: 14px; }
  .controls { left: 20px; right: 20px; bottom: 20px; }
  .site-footer { right: 20px; bottom: 20px; font-size: 11px; }
}

/* not enough room beside the sound button for one line: stack on the right */
@media (max-width: 1000px) {
  .site-footer { flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01s !important; transition-duration: .01s !important; }
}
