:root {
  color-scheme: light;
  --ink: #080808;
  --paper: #f5f4f0;
  --paper-soft: #ebe8df;
  --muted: #77736b;
  --line: rgba(8, 8, 8, 0.24);
  --line-soft: rgba(8, 8, 8, 0.12);
  --mono: "IBM Plex Mono", "Space Mono", "Courier New", monospace;
  --grotesk: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--grotesk);
  letter-spacing: 0;
}

body.is-menu-open {
  overflow: hidden;
}

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

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

button {
  color: inherit;
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Fixed navigation: distributed and architectural like a cultural festival site. */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(460px, 1.25fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: start;
  padding: 26px clamp(18px, 2.6vw, 48px);
  font-family: var(--mono);
  font-size: clamp(0.78rem, 0.95vw, 0.98rem);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  mix-blend-mode: difference;
  color: #fff;
}

.logo-mark {
  width: fit-content;
  font-family: "Bradley Hand", "Comic Sans MS", cursive;
  font-size: clamp(2.1rem, 3vw, 4rem);
  font-weight: 700;
  line-height: 0.74;
  text-transform: none;
  transform: rotate(-8deg);
}

.site-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: clamp(24px, 5vw, 100px);
}

.nav-pair {
  display: grid;
  gap: 12px;
}

.site-nav a,
.section-kicker,
.work-header a,
.text-link,
.carousel-button {
  font-family: var(--mono);
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.site-nav span,
.section-kicker span,
.hero-copy-block span,
.next-up span {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: currentColor;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Corner brackets are reused to keep the page feeling like an exhibition frame. */
.framed-section {
  position: relative;
}

.corner-frame::before,
.corner-frame::after,
.framed-section::before,
.framed-section::after {
  content: "";
  position: absolute;
  z-index: 4;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.framed-section::before {
  top: 24px;
  left: 24px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
}

.framed-section::after {
  top: 24px;
  right: 24px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.corner-frame::before {
  bottom: 24px;
  left: 24px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
}

.corner-frame::after {
  right: 24px;
  bottom: 24px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.dark-section {
  color: #fff;
  background: #050505;
}

.light-section {
  color: var(--ink);
  background: var(--paper);
}

/* Hero: full-color video only, with no overlay image on top. */
.hero {
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  transform: scale(1.02);
}

.hero-shade {
  display: none;
}

.hero-copy-block {
  position: absolute;
  left: clamp(28px, 3vw, 56px);
  bottom: clamp(32px, 4vw, 70px);
  z-index: 5;
  width: min(360px, calc(100vw - 56px));
  font-family: var(--mono);
  font-size: clamp(0.82rem, 1vw, 1rem);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.64);
}

.hero-copy-block p:last-child {
  margin: 0;
}

.hero-title {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 6;
  width: min(960px, calc(100vw - 48px));
  text-align: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-title p {
  max-width: 720px;
  margin: 0 auto 18px;
  font-family: var(--mono);
  font-size: clamp(0.86rem, 1.15vw, 1.12rem);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-title h1 {
  margin: 0;
  font-family: "Bradley Hand", "Comic Sans MS", cursive;
  font-size: clamp(4rem, 10vw, 10.5rem);
  font-weight: 700;
  line-height: 0.7;
  text-transform: none;
  transform: rotate(-6deg);
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
}

.next-up {
  position: absolute;
  right: clamp(28px, 3vw, 56px);
  bottom: clamp(28px, 3vw, 56px);
  z-index: 8;
  display: grid;
  grid-template-columns: 112px minmax(170px, 1fr);
  gap: 16px;
  width: min(390px, calc(100vw - 56px));
  margin: 0;
  padding: 12px;
  background: rgba(8, 8, 8, 0.58);
  backdrop-filter: blur(12px);
  font-family: var(--mono);
  text-transform: uppercase;
}

.next-up img {
  height: 104px;
  width: 112px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
}

.next-up p {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  font-weight: 700;
}

.next-up h2 {
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.1;
}

.next-up a {
  font-size: 0.82rem;
  font-weight: 700;
}

.about,
.meetups {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 52px);
  min-height: 100svh;
  padding: clamp(130px, 16vw, 230px) clamp(28px, 4vw, 72px);
}

.section-kicker {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
  font-size: clamp(0.86rem, 1vw, 1rem);
  line-height: 1.1;
}

.about .section-kicker,
.meetups .section-kicker {
  grid-column: 2 / 7;
}

.about h2,
.meetups h2,
.sessions h2 {
  margin: 0;
  font-size: clamp(2.45rem, 5.4vw, 6.4rem);
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
}

.about h2 {
  grid-column: 2 / 7;
}

.about-copy {
  grid-column: 8 / 12;
  align-self: center;
  font-family: var(--mono);
  font-size: clamp(1.15rem, 1.6vw, 1.72rem);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.about-copy p {
  margin: 0 0 54px;
}

.text-link {
  display: inline-block;
  font-size: 0.95rem;
  transition: transform 240ms var(--ease);
}

.text-link:hover {
  transform: translateX(8px);
}

.work,
.sessions {
  min-height: 100svh;
  padding: clamp(130px, 14vw, 210px) clamp(28px, 3vw, 54px);
  overflow: hidden;
}

.work-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  font-family: var(--mono);
  font-weight: 700;
  text-transform: uppercase;
}

.work-header a {
  transition: transform 240ms var(--ease);
}

.work-header a:hover {
  transform: translateX(8px);
}

.horizontal-shell {
  position: relative;
}

.work-track {
  display: grid;
  grid-auto-columns: minmax(360px, 32vw);
  grid-auto-flow: column;
  gap: clamp(22px, 2vw, 34px);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 54px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.work-track::-webkit-scrollbar {
  display: none;
}

.work-item {
  position: relative;
  scroll-snap-align: start;
  font-family: var(--mono);
  font-weight: 700;
  text-transform: uppercase;
}

.work-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.work-open > img,
.work-open > video {
  width: 100%;
  aspect-ratio: 1.34;
  object-fit: cover;
  border-radius: 22px;
  filter: none;
  transition:
    filter 520ms var(--ease),
    transform 520ms var(--ease);
}

.work-item:hover .work-open > img,
.work-item:hover .work-open > video {
  filter: saturate(1.04) contrast(1.02);
  transform: translateY(-6px);
}

.work-item p {
  margin: 16px 0 8px;
  font-size: clamp(0.85rem, 1vw, 1rem);
}

.work-item h3 {
  margin: 0;
  font-size: clamp(1.05rem, 1.3vw, 1.45rem);
  line-height: 1.1;
}

.reveal-strip {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 76px;
  z-index: 3;
  display: grid;
  grid-auto-columns: 84px;
  grid-auto-flow: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition:
    opacity 300ms var(--ease),
    transform 300ms var(--ease);
}

.work-item:hover .reveal-strip {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.reveal-strip button {
  width: 84px;
  height: 104px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}

.reveal-strip img {
  width: 84px;
  height: 104px;
  object-fit: cover;
  filter: grayscale(0);
  transition: transform 220ms var(--ease);
}

.reveal-strip button:hover img {
  transform: scale(1.06);
}

.carousel-button {
  position: absolute;
  bottom: 0;
  z-index: 5;
  border: 0;
  background: transparent;
  font-size: 1rem;
  cursor: pointer;
  transition:
    opacity 220ms var(--ease),
    transform 220ms var(--ease);
}

.carousel-button:hover {
  transform: translateX(4px);
}

.carousel-button.prev {
  left: 43%;
  color: var(--muted);
}

.carousel-button.next {
  right: 43%;
}

.meetups .section-kicker {
  grid-column: 2 / 7;
}

.meetups h2 {
  grid-column: 2 / 8;
}

.meetup-list {
  grid-column: 8 / 12;
  align-self: end;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-weight: 700;
  text-transform: uppercase;
}

.meetup-list p {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.05rem, 1.4vw, 1.42rem);
  line-height: 1.1;
}

.meetup-list span {
  color: var(--muted);
}

.sessions h2 {
  max-width: 1180px;
  margin-bottom: clamp(34px, 5vw, 70px);
}

.session-heading {
  font-size: clamp(2.35rem, 4.2vw, 4.8rem) !important;
  line-height: 0.96 !important;
}

.session-list {
  border-top: 1px solid var(--line);
}

.session-list p {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 24px;
  margin: 0;
  padding: clamp(18px, 2.1vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.65rem, 3.8vw, 4.6rem);
  font-weight: 900;
  line-height: 0.84;
  text-transform: uppercase;
}

.session-list span {
  font-family: var(--mono);
  font-size: clamp(0.86rem, 1vw, 1rem);
  font-weight: 700;
  color: var(--muted);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(230px, 1.1fr) repeat(4, minmax(140px, 1fr));
  gap: clamp(26px, 4vw, 70px);
  min-height: 430px;
  padding: clamp(80px, 10vw, 130px) clamp(28px, 4vw, 72px);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-weight: 700;
  text-transform: uppercase;
}

.footer-brand {
  display: grid;
  align-content: space-between;
  min-height: 260px;
}

.footer-brand .logo-mark {
  color: var(--ink);
}

.footer-brand p {
  margin: 0;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 14px;
}

.footer-col h2 {
  margin: 0 0 34px;
  font-family: var(--mono);
  font-size: 1rem;
  line-height: 1;
}

.footer-col a {
  width: fit-content;
  transition: transform 220ms var(--ease);
}

.footer-col a:hover {
  transform: translateX(8px);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 56px);
  background: rgba(5, 5, 5, 0.92);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms var(--ease);
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-stage {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.lightbox-stage img,
.lightbox-stage video {
  max-width: min(100%, 1200px);
  max-height: 78svh;
  object-fit: contain;
  border-radius: 16px;
  filter: none;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-caption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr auto;
    mix-blend-mode: normal;
    color: var(--ink);
    background: rgba(245, 244, 240, 0.94);
    border-bottom: 1px solid var(--line-soft);
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 77px 0 auto;
    display: none;
    grid-template-columns: 1fr;
    padding: 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: grid;
  }

  .about,
  .meetups {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .about .section-kicker,
  .meetups .section-kicker,
  .about h2,
  .meetups h2,
  .about-copy,
  .meetup-list {
    grid-column: 1;
  }

  .about-copy {
    max-width: 720px;
  }

  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 18px;
  }

  .logo-mark {
    font-size: 2.3rem;
  }

  .hero {
    min-height: 92svh;
  }

  .hero-title {
    top: 45%;
    width: calc(100vw - 36px);
  }

  .hero-title p {
    max-width: 320px;
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .hero-title h1 {
    font-size: clamp(3.65rem, 18vw, 6.2rem);
  }

  .hero-copy-block {
    display: none;
  }

  .next-up {
    left: 18px;
    right: 18px;
    bottom: 18px;
    grid-template-columns: 84px 1fr;
    width: auto;
  }

  .next-up img {
    width: 84px;
    height: 84px;
  }

  .about,
  .meetups,
  .work,
  .sessions,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .about h2,
  .meetups h2,
  .sessions h2 {
    font-size: clamp(2.2rem, 10.5vw, 4rem);
    line-height: 0.95;
  }

  .about-copy {
    font-size: 0.98rem;
    line-height: 1.25;
  }

  .work-track {
    grid-auto-columns: minmax(280px, 84vw);
  }

  .carousel-button.prev {
    left: 28%;
  }

  .carousel-button.next {
    right: 28%;
  }

  .meetup-list p,
  .session-list p {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .session-list p {
    font-size: clamp(1.55rem, 8.5vw, 3.1rem);
    line-height: 0.94;
  }

  .session-heading {
    font-size: clamp(2rem, 9vw, 3.5rem) !important;
  }

  .lightbox {
    padding: 14px;
  }

  .lightbox-stage img,
  .lightbox-stage video {
    max-height: 72svh;
    border-radius: 12px;
  }

  .lightbox-nav {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .lightbox-prev {
    left: 14px;
  }

  .lightbox-next {
    right: 14px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    min-height: 180px;
  }
}
