:root {
  --bg: #fff;
  --ink: #1a1a1a;
  --muted: #737373;
  --font-sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.55; }

.app {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.header {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  width: min(1200px, calc(100% - 10vw));
  margin: 0 auto;
  padding: 2rem 0 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  line-height: 1.35;
  pointer-events: none;
}
.mast, .tag {
  margin: 0;
  font-weight: 400;
  text-transform: none;
  color: var(--ink);
}
.tag {
  text-align: right;
  flex-shrink: 0;
}

/* Video card + caption under it */
.stage {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(1200px, calc(100% - 10vw));
  margin: 0 auto;
  padding: 0 0 4.5rem;
  gap: 1.1rem;
}

.video-container {
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
  background: var(--bg);
  touch-action: none;
  pointer-events: none;
  /* reserve frame so layout doesn't jump */
  aspect-ratio: 16 / 9;
  max-height: min(1080px, 72vh);
}

.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  max-width: min(1920px, 100%);
  max-height: min(1080px, 72vh);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  mix-blend-mode: multiply;
  transition: opacity 0.45s ease;
}
.bg-video.is-on {
  opacity: 1;
  visibility: visible;
}

/* Match header mast/tag type — same face + size as top lines */
.caption {
  position: relative;
  z-index: 10;
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: none;
  color: var(--ink);
  pointer-events: auto;
  align-self: center;
  text-align: center;
  width: auto;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--bg);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.preloader[hidden] { display: none; }

.tap-wake {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #000;
}
.tap-wake[hidden] { display: none; }

.foot {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  padding: 1rem 1.25rem 1.35rem;
  font-size: 0.52rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
}
.foot a { pointer-events: auto; color: var(--muted); }
.foot a:hover { color: var(--ink); opacity: 1; }
.foot__mail {
  border-bottom: 1px solid transparent;
  padding-bottom: 0.15rem;
}
.foot__mail:hover { border-bottom-color: var(--soft, rgba(26,26,26,.22)); }

@media (max-width: 768px) {
  .header {
    flex-direction: row;
    align-items: flex-start;
    padding: 1.35rem 1rem 1rem;
    width: 100%;
    font-size: 0.68rem;
  }
  .mast { max-width: 55%; }
  .stage {
    width: 100%;
    padding: 0 1rem 4.5rem;
  }
  .video-container {
    max-height: 58vh;
  }
  .bg-video {
    max-width: 100%;
    max-height: 58vh;
  }
  .caption {
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-video { transition: none; }
}

.foot {
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}
.foot a.foot__home {
  font-family: Helvetica, Arial, sans-serif;
  font-size: inherit;
  font-weight: 300;
  letter-spacing: inherit;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.4);
  text-decoration: none;
  border: none;
  padding: 0;
}
.foot a.foot__home:hover {
  color: rgba(0, 0, 0, 0.65);
  opacity: 1;
}
