:root {
  color-scheme: dark;
  --flour: #110e08;
  --flour-light: #f4f5ef;
  --crust: #ccff00;
  --crust-deep: #080a05;
  --tomato: #ccff00;
  --steel: #35322d;
  --ink: #f4f5ef;
  --rule: rgba(204, 255, 0, 0.22);
  --display: "Anton", "Arial Narrow", Impact, sans-serif;
  --body: "DM Sans", "Avenir Next", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--flour);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 53% 42%, rgba(204, 255, 0, 0.075), transparent 29%),
    linear-gradient(94deg, rgba(204, 255, 0, 0.018), transparent 32%, rgba(204, 255, 0, 0.035) 64%, transparent),
    repeating-linear-gradient(0deg, rgba(204, 255, 0, 0.026) 0 1px, transparent 1px 5px),
    var(--flour);
  font-family: var(--body);
  overflow: hidden;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-shell {
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) clamp(146px, 23vh, 214px);
  overflow: hidden;
  position: relative;
}

.site-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(204, 255, 0, 0.17) 0.6px, transparent 0.6px);
  background-size: 5px 5px;
  mix-blend-mode: screen;
  opacity: 0.18;
}

.topbar {
  min-height: 70px;
  padding: clamp(14px, 2vw, 24px) clamp(18px, 4vw, 64px);
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 10;
}

.wordmark {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 1.3rem;
  letter-spacing: 0.035em;
  text-decoration: none;
}

.wordmark-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--tomato);
  box-shadow: 0 0 0 5px color-mix(in oklch, var(--tomato) 13%, transparent);
}

.status {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
}

.status span {
  color: color-mix(in oklch, var(--ink) 48%, var(--flour));
}

.status::before {
  content: "";
  width: 27px;
  height: 1px;
  background: var(--crust);
}

.socials {
  justify-self: end;
  display: flex;
  gap: 7px;
}

.social-link {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--rule);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.62rem;
  font-weight: 800;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), background 180ms, color 180ms;
}

.social-link span {
  font-size: 0.87rem;
  line-height: 1;
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--crust-deep);
  border-color: var(--crust);
  background: var(--crust);
  transform: translateY(-2px);
}

.social-link--accent {
  border-color: var(--tomato);
  background: var(--tomato);
  color: var(--crust-deep);
}

.hero {
  padding: clamp(12px, 2vh, 26px) clamp(18px, 4vw, 64px) clamp(10px, 1.5vh, 20px);
  display: grid;
  grid-template-columns: minmax(250px, 1.15fr) minmax(260px, 0.9fr) minmax(190px, 0.72fr);
  align-items: center;
  gap: clamp(18px, 3.8vw, 70px);
  min-height: 0;
  position: relative;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(34vw, 520px);
  aspect-ratio: 1;
  left: 48%;
  top: 46%;
  transform: translate(-50%, -50%);
  border: 1px solid color-mix(in oklch, var(--crust) 34%, transparent);
  border-radius: 50%;
  box-shadow:
    0 0 0 4.5vw color-mix(in oklch, var(--crust) 4%, transparent),
    0 0 0 9vw color-mix(in oklch, var(--crust) 2.5%, transparent);
}

.hero-copy {
  align-self: center;
  z-index: 2;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(5.2rem, 11vw, 11rem);
  line-height: 0.71;
  letter-spacing: -0.035em;
  font-weight: 400;
  text-transform: uppercase;
}

.hero h1 span,
.hero h1 em {
  display: block;
  font-style: normal;
}

.hero h1 em {
  margin-left: clamp(20px, 4vw, 70px);
  color: transparent;
  -webkit-text-stroke: clamp(1px, 0.13vw, 2px) var(--crust);
}

.hero-note {
  margin: clamp(18px, 3vh, 34px) 0 0 clamp(4px, 2vw, 34px);
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  font-weight: 650;
}

.hero-note span {
  color: var(--tomato);
  margin-left: 3px;
}

.bread-stage {
  margin: 0;
  height: min(48vh, 520px);
  min-height: 250px;
  align-self: center;
  display: grid;
  place-items: center;
  position: relative;
  animation: stage-arrival 850ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.drop-lines {
  position: absolute;
  inset: -18% 2% 0;
  display: flex;
  justify-content: space-around;
  pointer-events: none;
  overflow: hidden;
  transform: rotate(5deg);
}

.drop-lines i {
  width: 1px;
  height: 31%;
  background: linear-gradient(to bottom, transparent, color-mix(in oklch, var(--crust) 76%, transparent), transparent);
  animation: falling-line 2.4s linear infinite;
}

.drop-lines i:nth-child(2) { animation-delay: -0.55s; height: 42%; }
.drop-lines i:nth-child(3) { animation-delay: -1.65s; height: 25%; }
.drop-lines i:nth-child(4) { animation-delay: -0.95s; height: 36%; }
.drop-lines i:nth-child(5) { animation-delay: -1.95s; height: 29%; }

.portrait-wrap {
  width: min(24vw, 360px);
  min-width: 220px;
  aspect-ratio: 0.82;
  padding: clamp(9px, 1vw, 14px);
  border: 1px solid color-mix(in oklch, var(--crust) 56%, transparent);
  background: #191a14;
  transform: rotate(-2.4deg);
  box-shadow: 20px 26px 0 color-mix(in oklch, var(--crust) 14%, transparent);
  position: relative;
  animation: bread-drop 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.bread-portrait {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.42) contrast(1.24) brightness(0.84);
}

.portrait-stamp {
  position: absolute;
  right: -30px;
  bottom: 22px;
  padding: 8px 12px;
  color: var(--crust-deep);
  background: var(--tomato);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  transform: rotate(6deg);
}

.bread-stage figcaption {
  position: absolute;
  bottom: -2px;
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
}

.profile-data {
  align-self: center;
  display: grid;
  gap: clamp(9px, 1.2vh, 16px);
  padding-left: clamp(16px, 2.5vw, 38px);
  border-left: 1px solid var(--rule);
}

.profile-handle {
  margin: 0 0 4px;
  color: var(--crust);
  font-size: 0.75rem;
  font-weight: 800;
}

.metric {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.metric strong {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.1vw, 4rem);
  line-height: 0.84;
  font-weight: 400;
}

.metric span {
  color: color-mix(in oklch, var(--ink) 70%, var(--flour));
  font-size: 0.61rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
}

.watch-cta {
  width: max-content;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--tomato);
  text-decoration: none;
  font-size: 0.64rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 800;
}

.watch-cta span {
  display: inline-block;
  margin-left: 4px;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.watch-cta:hover span,
.watch-cta:focus-visible span {
  transform: translateY(3px);
}

.archive {
  padding: 13px clamp(18px, 4vw, 64px) clamp(14px, 2vh, 22px);
  border-top: 1px solid var(--rule);
  background:
    linear-gradient(90deg, rgba(204,255,0,.045), transparent 45%, rgba(204,255,0,.025)),
    color-mix(in oklch, var(--steel) 36%, var(--flour));
  display: grid;
  grid-template-columns: clamp(135px, 15vw, 210px) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 42px);
  min-height: 0;
  position: relative;
  z-index: 5;
}

.archive-heading {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.archive-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.2vw, 3.3rem);
  line-height: 0.88;
  font-weight: 400;
}

.archive-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.archive-controls button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font: inherit;
  transition: background 160ms, color 160ms, transform 160ms;
}

.archive-controls button:hover,
.archive-controls button:focus-visible {
  color: var(--crust-deep);
  border-color: var(--crust);
  background: var(--crust);
  transform: scale(1.06);
}

.archive-controls span {
  min-width: 42px;
  text-align: center;
  font-size: 0.57rem;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.video-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(130px, 12.5vw, 188px);
  gap: 9px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  min-width: 0;
  padding: 0 1px 2px;
}

.video-rail::-webkit-scrollbar {
  display: none;
}

.video-card {
  scroll-snap-align: start;
  min-width: 0;
  overflow: hidden;
  position: relative;
  border: 0;
  border: 1px solid color-mix(in oklch, var(--crust) 26%, transparent);
  background: var(--crust-deep);
  color: var(--flour-light);
  text-decoration: none;
  isolation: isolate;
  animation: card-arrival 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--index) * 38ms + 420ms);
}

.video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(8, 10, 5, 0.94), transparent 60%);
}

.video-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  object-fit: cover;
  transition: transform 450ms cubic-bezier(0.16, 1, 0.3, 1), filter 300ms;
}

.video-card:hover img,
.video-card:focus-visible img {
  transform: scale(1.055);
  filter: saturate(0.7) contrast(1.2) brightness(0.9);
}

.video-card:focus-visible {
  outline: 3px solid var(--tomato);
  outline-offset: -3px;
}

.video-card-meta {
  position: absolute;
  inset: auto 10px 9px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 8px;
  font-size: 0.59rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.video-card-meta strong {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.video-card-meta span {
  color: var(--crust);
}

.pin {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 7px;
  color: var(--crust-deep);
  background: var(--tomato);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

@keyframes bread-drop {
  from { opacity: 0; transform: translateY(-22vh) rotate(12deg) scale(0.94); }
  to { opacity: 1; transform: translateY(0) rotate(-2.4deg) scale(1); }
}

@keyframes stage-arrival {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes falling-line {
  from { transform: translateY(-55vh); }
  to { transform: translateY(72vh); }
}

@keyframes card-arrival {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: auto 1fr;
  }

  .status {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(220px, 1fr) minmax(230px, 0.85fr);
  }

  .profile-data {
    position: absolute;
    right: clamp(18px, 4vw, 44px);
    bottom: 16px;
    grid-template-columns: auto auto;
    padding: 10px 0 0;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

  .profile-handle,
  .watch-cta {
    display: none;
  }

  .metric strong {
    font-size: clamp(1.8rem, 4vw, 3rem);
  }

  .portrait-wrap {
    width: min(30vw, 330px);
  }

  .social-link b {
    display: none;
  }

  .social-link {
    width: 37px;
    padding: 0;
    justify-content: center;
  }
}

@media (max-width: 650px) {
  .site-shell {
    min-height: 520px;
    grid-template-rows: 62px minmax(0, 1fr) clamp(158px, 27vh, 196px);
  }

  .topbar {
    min-height: 62px;
    padding: 12px 16px;
    gap: 10px;
  }

  .socials {
    gap: 4px;
  }

  .social-link {
    width: 32px;
    min-height: 32px;
    border-radius: 50%;
  }

  .wordmark {
    font-size: 1.08rem;
  }

  .wordmark-dot {
    width: 9px;
    height: 9px;
    box-shadow: none;
  }

  .hero {
    padding: 11px 16px 8px;
    grid-template-columns: 1fr 0.72fr;
    align-items: center;
    gap: 5px;
  }

  .hero::after {
    width: 58vw;
    left: 69%;
  }

  .hero h1 {
    font-size: clamp(4.05rem, 20.5vw, 7rem);
    line-height: 0.75;
  }

  .hero h1 em {
    margin-left: 7px;
  }

  .hero-note {
    margin: 14px 0 0 4px;
  }

  .bread-stage {
    height: min(39vh, 320px);
    min-height: 190px;
  }

  .portrait-wrap {
    width: min(40vw, 230px);
    min-width: 144px;
    box-shadow: 10px 13px 0 color-mix(in oklch, var(--crust) 12%, transparent);
  }

  .portrait-stamp,
  .bread-stage figcaption,
  .profile-data {
    display: none;
  }

  .archive {
    padding: 10px 16px 14px;
    grid-template-columns: 102px minmax(0, 1fr);
    gap: 12px;
  }

  .archive-heading h2 {
    font-size: 1.75rem;
  }

  .archive-controls {
    gap: 3px;
  }

  .archive-controls button {
    width: 27px;
    height: 27px;
  }

  .video-rail {
    grid-auto-columns: min(39vw, 158px);
    gap: 7px;
  }
}

@media (max-height: 670px) and (min-width: 651px) {
  .site-shell {
    grid-template-rows: 62px minmax(0, 1fr) 154px;
  }

  .topbar {
    min-height: 62px;
    padding-block: 11px;
  }

  .bread-stage {
    height: 41vh;
    min-height: 220px;
  }

  .portrait-wrap {
    width: min(21vw, 280px);
  }

  .hero h1 {
    font-size: clamp(4.7rem, 9.4vw, 8rem);
  }

  .hero-note {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
