:root {
  --bg: #0c0b0a;
  --bg-2: #151311;
  --ink: #f2ede4;
  --ink-2: #b9b1a4;
  --ink-3: #7d766b;
  --line: rgba(242, 237, 228, 0.12);
  --accent: #e8462f;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
em { font-style: italic; }
::selection { background: var(--accent); color: #fff; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 6px;
}
.skip:focus { left: 8px; }

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* NAV */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(12, 11, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding-top: 12px; padding-bottom: 12px;
}
.nav__brand {
  font-family: var(--serif);
  font-size: 24px;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.nav__links { display: flex; gap: clamp(14px, 2.6vw, 34px); align-items: center; }
.nav__links a {
  font-size: 14px; text-decoration: none; color: var(--ink-2);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  color: var(--ink) !important;
  border: 1px solid var(--line);
  padding: 7px 16px; border-radius: 999px;
}
.nav__cta:hover { border-color: var(--ink); }

/* HERO */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero__reel {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12,11,10,0.55) 0%, rgba(12,11,10,0.05) 30%, rgba(12,11,10,0.2) 55%, rgba(12,11,10,0.95) 100%),
    linear-gradient(90deg, rgba(12,11,10,0.5) 0%, rgba(12,11,10,0) 60%);
}
.hero__content {
  position: relative;
  padding: 0 var(--pad) clamp(40px, 8vh, 90px);
  width: 100%;
}
.hero__name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(76px, 15vw, 230px);
  line-height: 0.84;
  letter-spacing: -0.02em;
}
.hero__name em { color: var(--ink); padding-left: 0.5em; }
.hero__line {
  margin: clamp(20px, 3vh, 34px) 0 0;
  max-width: 30em;
  font-size: clamp(17px, 1.6vw, 21px);
  text-wrap: balance;
  color: var(--ink);
  opacity: 0.9;
}
.hero__scroll {
  display: inline-flex; gap: 12px; align-items: center;
  margin-top: 30px;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-2);
}
.hero__scroll .arrow { display: inline-block; animation: nudge 2.2s var(--ease) infinite; }
.hero__scroll:hover { color: var(--ink); }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* SECTIONS */
section { scroll-margin-top: 70px; }
.section-head { max-width: 880px; margin-bottom: clamp(36px, 6vw, 64px); }
.section-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.section-title em { color: var(--ink-2); }
.section-lede { margin: 22px 0 0; color: var(--ink-2); max-width: 60ch; font-size: 18px; }

/* WORK GRID */
.work { padding: clamp(90px, 12vw, 150px) var(--pad) clamp(60px, 8vw, 110px); }
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px) clamp(18px, 2.4vw, 32px);
}
.card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.card--wide { grid-column: 1 / -1; }
.card__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-2);
}
.card--wide .card__frame { aspect-ratio: 21 / 9; }
.card__frame img,
.card__frame video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), opacity 0.5s var(--ease);
}
.card__frame video { opacity: 0; }
.card.is-playing .card__frame video { opacity: 1; }
.card:hover .card__frame img,
.card:hover .card__frame video,
.card:focus-visible .card__frame img { transform: scale(1.035); }
.card__play {
  position: absolute; left: 18px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  background: rgba(12, 11, 10, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 13px;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.card__play::before {
  content: ""; width: 0; height: 0;
  border-left: 8px solid var(--ink);
  border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.card:hover .card__play, .card:focus-visible .card__play { opacity: 1; transform: none; }
.card__info {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 4px 18px;
  align-items: baseline;
  padding-top: 18px;
  border-top: 1px solid transparent;
}
.card__num { font-size: 12px; color: var(--ink-3); letter-spacing: 0.1em; font-variant-numeric: tabular-nums; }
.card__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.05;
}
.card--wide .card__title { font-size: clamp(34px, 4vw, 56px); }
.card__role {
  justify-self: end;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.card__sub { grid-column: 2 / -1; margin: 0; color: var(--ink-2); font-size: 15px; }
.card:focus-visible { outline: none; }
.card:focus-visible .card__frame { outline: 2px solid var(--ink); outline-offset: 4px; }

/* APPROACH */
.approach {
  padding: clamp(80px, 10vw, 140px) var(--pad);
  border-top: 1px solid var(--line);
}
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
}
.step { border-top: 1px solid var(--line); padding-top: 22px; }
.step__num { font-size: 12px; color: var(--accent); letter-spacing: 0.14em; }
.step__title {
  margin: 10px 0 12px;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 3.4vw, 48px); line-height: 1;
}
.step p { margin: 0; color: var(--ink-2); }
.ai-note {
  margin-top: clamp(40px, 6vw, 72px);
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-2);
  max-width: 860px;
}
.ai-note p:last-child { margin: 0; font-size: 18px; }

/* ABOUT */
.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding: clamp(80px, 10vw, 140px) var(--pad);
  border-top: 1px solid var(--line);
}
.about__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
}
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__text p { color: var(--ink-2); max-width: 58ch; }
.about__text .section-title { margin-bottom: 26px; }
.facts { list-style: none; padding: 0; margin: 32px 0 0; border-top: 1px solid var(--line); }
.facts li {
  display: grid; grid-template-columns: 130px 1fr; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.facts span { color: var(--ink-3); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; padding-top: 3px; }

/* CONTACT */
.contact {
  padding: clamp(90px, 12vw, 170px) var(--pad);
  border-top: 1px solid var(--line);
  text-align: center;
}
.contact__title {
  margin: 0 auto;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(56px, 10vw, 150px);
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.contact__title em { color: var(--accent); }
.contact__links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin-top: clamp(36px, 5vw, 56px);
}
.pill {
  display: inline-flex; align-items: center;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 15px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.pill:hover { border-color: var(--ink); }
.pill--solid { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 500; }
.pill--solid:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.pill[hidden] { display: none; }

.footer {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 26px var(--pad);
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-3);
}
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* MODAL */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: clamp(0px, 3vw, 40px); }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(6, 5, 5, 0.86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade 0.3s var(--ease); }
.modal__panel {
  position: relative;
  width: min(1180px, 100%);
  max-height: 100%;
  overflow-y: auto;
  background: var(--bg-2);
  border-radius: 6px;
  animation: rise 0.45s var(--ease);
  overscroll-behavior: contain;
}
.modal__close {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 42px; height: 42px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: rgba(12, 11, 10, 0.7); color: var(--ink);
  font-size: 26px; line-height: 1;
}
.modal__close:hover { background: var(--accent); }
.modal__player { position: relative; aspect-ratio: 16 / 9; background: #000; }
.modal__player video, .modal__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.modal__tabs { display: flex; gap: 8px; flex-wrap: wrap; padding: 16px clamp(20px, 3vw, 40px) 0; }
.modal__tabs:empty { display: none; }
.tab {
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: none; color: var(--ink-2);
  font: inherit; font-size: 14px; cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.modal__body {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(24px, 3vw, 40px);
}
.modal__title {
  margin: 0 0 22px;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 4vw, 56px); line-height: 1;
}
.modal__facts { margin: 0; border-top: 1px solid var(--line); }
.modal__facts div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.modal__facts dt { color: var(--ink-3); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; padding-top: 3px; }
.modal__facts dd { margin: 0; }
.modal__text p { margin: 0 0 16px; color: var(--ink-2); }
.modal__text p:first-child { color: var(--ink); font-size: 19px; }
.modal__text h3 { margin: 28px 0 10px; font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.modal__text ul { margin: 0; padding: 0; list-style: none; }
.modal__text li { padding: 9px 0 9px 22px; border-bottom: 1px solid var(--line); position: relative; color: var(--ink-2); }
.modal__text li::before { content: ""; position: absolute; left: 0; top: 19px; width: 10px; height: 1px; background: var(--accent); }
body.modal-open { overflow: hidden; }

@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(0.985); } }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
  .card--wide .card__frame { aspect-ratio: 16 / 9; }
  .steps { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about__media { aspect-ratio: 16 / 10; }
  .modal__body { grid-template-columns: 1fr; }
  .card__play { opacity: 1; transform: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav__links a:not(.nav__cta) { display: none; }
  .br-wide { display: none; }
  .card__info { grid-template-columns: auto 1fr; }
  .card__role { grid-column: 2; justify-self: start; }
  .facts li { grid-template-columns: 1fr; gap: 2px; }
  .footer { flex-direction: column; }
  .modal { padding: 0; }
  .modal__panel { border-radius: 0; height: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
