@font-face {
  font-family: 'ABCOracle';
  src: url('fonts/ABCOracle-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'ABCOracle';
  src: url('fonts/ABCOracle-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}

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

:root {
  --bg: #ffffff;
  --fg: #000000;
}

body {
  font-family: 'ABCOracle', sans-serif;
  letter-spacing: -0.1em;
  background-color: var(--bg);
  color: var(--fg);
  transition: background-color 0.7s ease, color 0.7s ease;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.dark {
  --bg: #000000;
  --fg: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ─── Header ─────────────────────────────── */

header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 2.5rem max(3rem, calc((100% - 1040px) / 2)) 1rem;
}

.site-name {
  font-weight: 300;
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  /* letter-spacing: -0.01em; */
  line-height: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}

.site-discipline {
  font-size: 0.87rem;
  font-weight: 400;
  letter-spacing: -0.05em;
  /* font-variant: small-caps; */
  opacity: 0.6;
}

nav {
  display: flex;
  gap: 2.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
}

nav a {
  transition: opacity 0.2s ease;
}

nav a:hover {
  opacity: 0.35;
}

/* ─── Main ───────────────────────────────── */

main {
  flex: 1;
  min-height: 0;
  display: flex;
  justify-content: center;
  padding: 0.5rem 3rem 3rem;
}

.content-column {
  max-width: 1040px;
  width: 100%;
}

main p {
  width: 60%;
  text-align: justify;
  letter-spacing: -0.05em;
  font-weight: 300;
}

/* ─── Video ──────────────────────────────── */

.video-wrapper {
  display: grid;
  grid-template-rows: 1fr;
  width: 100%;
  max-width: 1040px;
}

.video-wrapper video {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  display: block;
}

#main-video {
  opacity: 0;
  transition: opacity 0.5s ease;
}

#main-video.visible {
  opacity: 1;
}

#silent-loop {
  transition: opacity 0.5s ease;
}

#silent-loop.hidden {
  opacity: 0;
  pointer-events: none;
}

#video-overlay {
  grid-area: 1 / 1;
  height: 100%;
  z-index: 10;
  cursor: none;
}

#video-overlay.inactive {
  pointer-events: none;
  cursor: auto;
}

#progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--fg);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 20;
  pointer-events: none;
}

/* ─── Custom cursor ──────────────────────── */

#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.15s ease;
  color: var(--fg);
  z-index: 100;
  font-family: 'ABCOracle', sans-serif;
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

#custom-cursor.visible {
  opacity: 1;
}
