:root {
  --bg: #000;
  --fg: #fff;
  --muted: rgba(255, 255, 255, 0.82);
  --hairline: rgba(255, 255, 255, 0.25);
  --accent: hsl(0, 100%, 55%);

  /* Fluid spacing: scales smoothly between small and large viewports */
  --pad-x: clamp(1.25rem, 4vw, 3rem);
  --pad-y: clamp(1.5rem, 4vw, 3rem);
  --indicator-width: clamp(48px, 6vw, 80px);
  --indicator-top: clamp(7rem, 15vh, 10rem);
  --indicator-bottom: clamp(3rem, 6vh, 5rem);

  /* Fluid type */
  --fs-name: clamp(0.95rem, 1.6vw, 1.25rem);
  --fs-nav: clamp(0.95rem, 1.3vw, 1.1rem);
  --fs-h1: clamp(2rem, 5vw, 3.25rem);
  --fs-brand: clamp(0.8rem, 1.1vw, 0.95rem);
  --fs-meta: clamp(0.75rem, 1vw, 0.9rem);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: "Chakra Petch", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* legacy Edge/IE */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;                  /* Chrome, Safari, Edge */
}

p {
  font-size: 1.125rem;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease, opacity 160ms ease;
}

a:hover {
  border-bottom-color: var(--fg);
}

/* ---------- Home ---------- */

.home {
  height: 100vh;        /* fallback */
  height: 100svh;       /* stable across mobile chrome show/hide */
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.home-top,
.home-bottom {
  flex: none;
  padding: var(--pad-y) var(--pad-x);
}

.home-top {
  padding-top: clamp(0.75rem, 2vw, 1.5rem);
  padding-bottom: clamp(0.75rem, 2vw, 1.5rem);
}

.home-bottom {
  display: flex;
  justify-content: flex-end;
}

.home-stage {
  flex: 1 1 auto;
  position: relative;
  min-height: 0;        /* lets flex child shrink below its content height */
  overflow: hidden;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg);
}

.name {
  margin: 0;
  line-height: 0;
}

.name-img {
  height: clamp(3.28rem, 7.5vw, 6.09rem);
  width: auto;
  display: block;
}

.home-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: var(--fs-nav);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-nav .sep {
  color: var(--muted);
}

/* ---------- Inner pages ---------- */

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: clamp(0.75rem, 2vw, 1.5rem) var(--pad-x);
  border-bottom: 1px solid var(--hairline);
}

.page-header .brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  border-bottom: none;
}

.page-header .brand img {
  height: clamp(1.875rem, 3.75vw, 2.8125rem);
  width: auto;
  display: block;
}

.page-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: var(--fs-brand);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-header nav a {
  color: var(--muted);
}

.page-header nav a:hover,
.page-header nav a.active {
  color: var(--fg);
}

.page-main {
  flex: 1;
  padding: clamp(2rem, 6vw, 4rem) var(--pad-x);
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.page-main h1 {
  font-size: var(--fs-h1);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 2rem;
}

.page-main p {
  line-height: 1.7;
  color: var(--muted);
  max-width: 60ch;
}

/* ---------- About page ---------- */

.about {
  max-width: 80ch;
}

.about .kicker {
  font-size: var(--fs-meta);
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--hairline);
}

.about h1 {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0 0 2.5rem;
}

.about .lede {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 500;
  line-height: 1.5;

  margin: 0 0 1.75rem;
  max-width: none;
}

.about p {
  margin: 0 0 1.25rem;
  font-weight: 400;
}

.about strong {
  font-weight: 700;
  color: var(--fg);
  letter-spacing: 0.03em;
}

/* ---------- Scroll indicator ---------- */

.scroll-indicator {
  position: fixed;
  top: var(--indicator-top);
  right: 0;
  bottom: var(--indicator-bottom);
  width: var(--indicator-width);
  pointer-events: none;
  z-index: 10;
}

.scroll-indicator-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100svh - var(--indicator-top) - var(--indicator-bottom));
  height: var(--indicator-width);
  display: block;
  overflow: visible;
  transform: translate(-50%, -50%) rotate(90deg);
  transform-origin: center;
}

.scroll-indicator-dashed,
.scroll-indicator-progress {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke: var(--accent);
}

.scroll-indicator-dashed {
  stroke-opacity: 0.25;
  stroke-dasharray: 11 18;
}

.scroll-indicator-progress {
  stroke-opacity: 1;
}

/* Reserve horizontal space on pages that have the indicator */
.has-indicator .page-header,
.has-indicator .page-main {
  padding-right: calc(var(--pad-x) + var(--indicator-width));
}

/* ---------- Layout restructure on narrow screens ---------- */

@media (max-width: 560px) {
  .home-bottom {
    justify-content: flex-start;
  }

  .home-nav {
    flex-direction: column;
    gap: 0.5rem;
  }

  .home-nav .sep {
    display: none;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
