:root {
  --bg: #0b0b0a;
  --bg-2: #141412;
  --fg: #ecebe6;
  --muted: #8d8b84;
  --line: rgba(236, 235, 230, 0.12);
  --accent: #ff5a36;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

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

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

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

em { font-family: var(--serif); font-style: italic; font-weight: 400; }

::selection { background: var(--accent); color: #000; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.eyebrow {
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Nav */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px var(--gutter);
  transition: background 0.4s, border-color 0.4s, padding 0.4s;
  border-bottom: 1px solid transparent;
}

.nav--solid {
  background: rgba(11, 11, 10, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: var(--line);
  padding-block: 14px;
}

.nav__logo {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav__links { display: flex; gap: clamp(16px, 3vw, 36px); font-size: 14px; }

.nav__links a { opacity: 0.75; transition: opacity 0.2s; }
.nav__links a:hover { opacity: 1; }

/* Hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 120px var(--gutter) clamp(72px, 10vh, 120px);
  overflow: hidden;
}

.hero__media { position: absolute; inset: 0; }

.hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: drift 24s var(--ease) forwards;
}

@keyframes drift { to { transform: scale(1); } }

.hero__bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
  pointer-events: none;
}

.hero__bg.is-playing { opacity: 1; }

.hero__bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100vw, 177.78svh);
  height: max(56.25vw, 100svh);
  transform: translate(-50%, -50%);
  border: 0;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(11, 11, 10, 0.95) 0%, rgba(11, 11, 10, 0.35) 45%, rgba(11, 11, 10, 0.25) 75%, rgba(11, 11, 10, 0.6) 100%),
    radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.45) 100%);
}

.grain {
  position: absolute;
  inset: -50%;
  opacity: 0.09;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(4) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-2%, -1%); }
  100% { transform: translate(1%, 3%); }
}

.hero__content { position: relative; max-width: 1100px; }

.hero__content .eyebrow { color: rgba(236, 235, 230, 0.8); }

.hero__title {
  margin: 0 0 36px;
  font-size: clamp(44px, 8.4vw, 128px);
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.hero__title em { letter-spacing: -0.01em; }

.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 22px 10px 10px;
  border: 1px solid rgba(236, 235, 230, 0.35);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  background: rgba(11, 11, 10, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.play-btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.play-btn__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  flex: none;
}

.play-btn__icon::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 13px;
  border-left: 11px solid #000;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

.play-btn__time { color: var(--muted); font-variant-numeric: tabular-nums; }
.play-btn:hover .play-btn__time { color: inherit; opacity: 0.6; }

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(72px, 10vh, 120px);
  font-size: 13px;
  color: var(--muted);
  writing-mode: vertical-rl;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.hero__scroll:hover { color: var(--fg); }

/* Work */

.work { padding: clamp(80px, 12vw, 160px) var(--gutter) 0; }

.row + .row { margin-top: clamp(56px, 7vw, 96px); }

.row__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.row__head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.row__nav { display: flex; gap: 8px; }

.row__btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 17px;
  transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}

.row__btn:hover:not(:disabled) { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.row__btn:disabled { opacity: 0.3; cursor: default; }

/* Horizontal slider: runs to the screen edges, snaps card by card, swipeable on phones */
.slider {
  --gap: clamp(14px, 1.6vw, 24px);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * var(--gap)) / 3.2);
  gap: var(--gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  margin-inline: calc(-1 * var(--gutter));
  padding: 0 var(--gutter) 8px;
  scrollbar-width: none;
}

.slider::-webkit-scrollbar { display: none; }

.slider .card { scroll-snap-align: start; }

/* Snapping would fight the slow drift, so it's only used for still sliders */
.slider.is-drifting { scroll-snap-type: none; }

@media (max-width: 1000px) {
  .slider { grid-auto-columns: calc((100% - var(--gap)) / 2.2); }
}

@media (max-width: 700px) {
  .slider { grid-auto-columns: 78%; }
  .row__nav { display: none; }
}

.card {
  display: block;
  text-align: left;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.card.is-visible { opacity: 1; transform: none; }

.card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-2);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter 0.6s;
  filter: saturate(0.9);
}

.card:hover .card__media img,
.card:focus-visible .card__media img { transform: scale(1.045); filter: saturate(1.05); }

/* 9:16 videos: the frame sits upright on a blurred copy of itself */
.card--vertical .card__media .card__img {
  position: relative;
  object-fit: contain;
}

.card--vertical .card__media .card__bg,
.card--vertical:hover .card__media .card__bg {
  position: absolute;
  inset: 0;
  transform: scale(1.3);
  filter: blur(28px) brightness(0.55);
}

.card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  transition: opacity 0.35s, transform 0.5s var(--ease);
}

.card__play::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 20px;
  border-left: 15px solid #000;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.card:hover .card__play,
.card:focus-visible .card__play { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.card__time {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 3px 9px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
}

.card__meta {
  display: block;
  padding-top: 12px;
}

.card__title {
  display: block;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.card__sub {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

.work__cta {
  margin: clamp(40px, 5vw, 64px) 0 0;
  color: var(--muted);
  font-size: 16px;
}

.work__cta a { color: var(--accent); font-weight: 500; }
.work__cta a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* About */

.about { padding: clamp(100px, 14vw, 200px) var(--gutter) 0; }

.about__inner { max-width: 1100px; }

.about__lead {
  margin: 0 0 clamp(48px, 7vw, 88px);
  font-size: clamp(26px, 3.6vw, 48px);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.about__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.about__cols h3 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.about__cols ul { list-style: none; margin: 0; padding: 0; }
.about__cols li { padding: 4px 0; font-size: 17px; }

/* Contact */

.contact {
  padding: clamp(100px, 14vw, 200px) var(--gutter) clamp(80px, 10vw, 140px);
  text-align: center;
}

.contact__title {
  margin: 0 0 32px;
  font-size: clamp(40px, 7vw, 104px);
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.contact__email {
  display: inline-block;
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--accent);
  overflow-wrap: anywhere;
  transition: color 0.2s;
}

.contact__email:hover { color: var(--accent); }

.contact__links { margin-top: 28px; display: flex; justify-content: center; gap: 24px; color: var(--muted); font-size: 15px; }
.contact__links a:hover { color: var(--fg); }

/* Footer */

.footer {
  display: flex;
  justify-content: space-between;
  padding: 24px var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.footer a:hover { color: var(--fg); }

/* Lightbox */

.lightbox {
  width: min(1280px, 100vw - 2 * var(--gutter));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fg);
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(5, 5, 5, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox[open] { animation: pop 0.45s var(--ease); }

@keyframes pop { from { opacity: 0; transform: scale(0.97); } }

.lightbox__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  font-size: 14px;
}

.lightbox__title { color: var(--muted); }

.lightbox__close { font-size: 14px; opacity: 0.75; }
.lightbox__close:hover { opacity: 1; }

.lightbox__frame {
  aspect-ratio: 16 / 9;
  max-height: calc(100svh - 120px);
  margin: 0 auto;
  background: #000;
}

.lightbox__frame.is-vertical {
  aspect-ratio: 9 / 16;
  width: auto;
  height: min(calc(100svh - 120px), 1000px);
  max-width: 100%;
}

.lightbox__frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Small screens */

@media (max-width: 700px) {
  .about__cols { grid-template-columns: 1fr 1fr; }
  .hero__scroll { display: none; }
  .nav__logo { font-size: 13px; }
  .nav__links { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__poster, .grain { animation: none; }
  .card { opacity: 1; transform: none; }
}
