/* =========================================================
   rayanmaamary.com — four full-screen panels, scrolled sideways
   Venturico (display, variable 400–900) + NewBlack (text)
   ========================================================= */

/* Two static cuts rather than the variable file. format("woff2-variations")
   is a pre-standard hint that Firefox rejects, and the site only ever uses
   400 and 700 — so there's nothing to gain from depending on variable-font
   support, and this renders identically in every browser. */
@font-face {
  font-family: "Venturico";
  src: url("../fonts/Venturico-Regular.woff2") format("woff2"),
       url("../fonts/Venturico-Regular.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: block;
}
@font-face {
  font-family: "Venturico";
  src: url("../fonts/Venturico-Bold.woff2") format("woff2"),
       url("../fonts/Venturico-Bold.woff") format("woff");
  font-weight: 700; font-style: normal; font-display: block;
}
@font-face { font-family:"NewBlack"; font-weight:300; font-style:normal; font-display:swap;
  src:url("../fonts/NewBlackTypeface-Light.woff2") format("woff2"),url("../fonts/NewBlackTypeface-Light.woff") format("woff"); }
@font-face { font-family:"NewBlack"; font-weight:400; font-style:normal; font-display:swap;
  src:url("../fonts/NewBlackTypeface-Regular.woff2") format("woff2"),url("../fonts/NewBlackTypeface-Regular.woff") format("woff"); }
@font-face { font-family:"NewBlack"; font-weight:500; font-style:normal; font-display:swap;
  src:url("../fonts/NewBlackTypeface-Medium.woff2") format("woff2"),url("../fonts/NewBlackTypeface-Medium.woff") format("woff"); }
@font-face { font-family:"NewBlack"; font-weight:600; font-style:normal; font-display:swap;
  src:url("../fonts/NewBlackTypeface-SemiBold.woff2") format("woff2"),url("../fonts/NewBlackTypeface-SemiBold.woff") format("woff"); }
@font-face { font-family:"NewBlack"; font-weight:700; font-style:normal; font-display:swap;
  src:url("../fonts/NewBlackTypeface-Bold.woff2") format("woff2"),url("../fonts/NewBlackTypeface-Bold.woff") format("woff"); }
@font-face { font-family:"NewBlack"; font-weight:800; font-style:normal; font-display:swap;
  src:url("../fonts/NewBlackTypeface-ExtraBold.woff2") format("woff2"),url("../fonts/NewBlackTypeface-ExtraBold.woff") format("woff"); }

:root {
  --ink: #191919;
  --paper: #e8e8e8;
  --accent: #c61a1a;

  --display: "Venturico", Georgia, serif;
  --text: "NewBlack", "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(1.25rem, 4vw, 4.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  font-family: var(--text);
  font-weight: 300;
  font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ---------------------------------------------------------
   Panels. Each one is a screen. Same skeleton every time:
   number, title, content. Only the colour changes.
   --------------------------------------------------------- */
.hwrap { position: relative; }
.track { display: flex; }

.panel {
  flex: 0 0 100vw;
  width: 100vw;
  height: 100svh;
  display: flex;
  position: relative;
  overflow: hidden;
}
.panel__inner {
  flex: 1;
  display: flex; flex-direction: column;
  padding: clamp(4.5rem, 11vh, 7rem) var(--pad) clamp(1.75rem, 5vh, 3rem);
  min-width: 0;
}

/* the closing panel is a narrow column, not a full screen — the work
   panel stays visible to its left as it slides in */
@media (min-width: 900px) {
  .panel--accent { flex: 0 0 min(650px, 42vw); width: min(650px, 42vw); }
  .panel--accent .panel__inner { padding-inline: clamp(1.5rem, 2.2vw, 2.5rem); }
  /* the other panels keep their title inside the head; here the headline
     sits after it, so the head margin would push it 22px lower */
  .panel--accent .panel__head { margin-bottom: 0; }
  .panel--accent .contact__line { font-size: clamp(1.5rem, 2.4vw, 3.25rem); width: 100%; max-width: 13ch; }
  /* sits directly under the title, as in the reference, not mid-column */
  .panel--accent .contact { flex: 1; justify-content: flex-start; }
  .panel--accent .contact__line { margin-top: 0; }
  .panel--accent .btn { padding: 0.75rem 1.25rem; font-size: 0.8125rem; }
  .panel--accent .foot { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
}

.panel--ink   { background: var(--ink);    color: var(--paper); }
.panel--paper { background: var(--paper);  color: var(--ink); }
.panel--accent{ background: var(--accent); color: var(--paper); }

.panel__head { flex: 0 0 auto; margin-bottom: clamp(0.75rem, 2vh, 1.5rem); }
.panel__no {
  font-weight: 800; font-size: 0.6875rem; letter-spacing: 0.14em;
  text-transform: uppercase; opacity: 0.5; margin: 0 0 clamp(0.5rem, 1.4vh, 0.9rem);
}
.panel__title,
.hero__name {
  font-family: var(--display, "Venturico", Georgia, serif);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
  margin: 0;
}
.panel__title { font-weight: 700; font-size: clamp(2rem, 5.6vw, 9rem); }
.hero__name   { font-weight: 700; font-size: clamp(2rem, 5.6vw, 9rem); }
.hero__name .ch { display: inline-block; will-change: transform, opacity; }
.hero__tag {
  margin: clamp(0.15rem, 0.5vh, 0.5rem) 0 0;
  max-width: 44ch; opacity: 0.7;
  font-size: clamp(0.875rem, 0.8rem + 0.35vw, 1.375rem);
}

.panel__cue {
  position: absolute; right: var(--pad); top: clamp(6.5rem, 16vh, 10rem); bottom: auto;
  margin: 0; display: flex; align-items: center; gap: 0.75rem;
  font-weight: 800; font-size: 0.6875rem; letter-spacing: 0.14em;
  text-transform: uppercase; opacity: 0.55;
}
.panel__cue span { display: block; width: 3.5rem; height: 1px; background: currentColor; transform-origin: left; }

.meta { font-weight: 800; font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.55; }

/* ---------------------------------------------------------
   Nav + progress
   --------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: clamp(1.1rem, 2.4vh, 1.75rem) var(--pad);
  color: var(--paper);
  transition: color 450ms var(--ease), transform 500ms var(--ease);
}
.nav.on-dark { color: var(--ink); }
.nav__name { font-weight: 600; font-size: 0.8125rem; white-space: nowrap; }
.nav__links { display: flex; gap: clamp(1rem, 2.2vw, 2rem); }
.nav__links a { font-size: 0.8125rem; opacity: 0.7; position: relative; padding-block: 0.15rem; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 420ms var(--ease);
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.progress {
  position: fixed; left: var(--pad); right: var(--pad); bottom: 0.9rem; z-index: 60;
  height: 1px; background: rgba(128,128,128,0.35);
}
.progress span {
  display: block; height: 100%; width: 0%; background: var(--accent);
  transform-origin: left;
}

/* ---------------------------------------------------------
   Preloader
   --------------------------------------------------------- */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--pad) var(--pad) 0.9rem;
  will-change: transform;
}
.loader__pct {
  font-family: var(--display, "Venturico", Georgia, serif); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.01em; line-height: 0.95;
  font-size: clamp(2rem, 5.6vw, 9rem);
  color: var(--paper);
  margin: 0 0 clamp(0.6rem, 1.4vh, 1.1rem);
}
.loader__bar { height: 1px; background: rgba(128,128,128,0.35); }
.loader__bar span {
  display: block; height: 100%; width: 0%;
  background: var(--accent);
}
/* nothing behind the loader moves until it lifts */
body.is-loading { overflow: hidden; }
body.is-loading .nav,
body.is-loading .progress { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
}

/* ---------------------------------------------------------
   Media wells
   --------------------------------------------------------- */
.well { position: relative; overflow: hidden; background: rgba(128,128,128,0.14); }
.well--portrait { aspect-ratio: 9 / 16; }
.well--45 { aspect-ratio: 4 / 5; }
.well img, .well video { width: 100%; height: 100%; object-fit: cover; }
.well video { position: absolute; inset: 0; opacity: 0; transition: opacity 500ms var(--ease); }
.well video.is-ready { opacity: 1; }

/* ---------------------------------------------------------
   01 — Hero: name top-left, three vertical reels beneath
   --------------------------------------------------------- */
.hero .reels {
  flex: 1; min-height: 0;
  display: flex; align-items: stretch; justify-content: flex-start;
  gap: clamp(0.5rem, 0.85vw, 1.1rem);
}
.reel {
  margin: 0; position: relative; height: 100%; min-height: 0;
  display: flex; flex-direction: column;
  color: inherit;
}
/* height drives the frame; the ratio derives its width. 3rem is reserved
   for the label that now sits underneath. */
.reel .well {
  height: calc(100% - 3rem); aspect-ratio: 9 / 16; width: auto;
  border-radius: 20px;
  transition: transform 620ms var(--ease), box-shadow 620ms var(--ease);
  will-change: transform;
}
.reel__label {
  margin: 0.8rem 0 0;
  font-weight: 600; font-size: clamp(0.8125rem, 1.05vw, 1.25rem);
  line-height: 1.2; letter-spacing: 0.005em;
  transition: opacity 400ms var(--ease);
}

@media (hover: hover) and (min-width: 900px) {
  /* the hovered frame lifts out; the others step back */
  .reels:hover .reel { }
  .reels:hover .reel:not(:hover) .well,
  .reels:hover .reel:not(:hover) .reel__label { opacity: 0.35; }
  .reel .well, .reel__label { opacity: 1; transition: opacity 400ms var(--ease),
                              transform 620ms var(--ease), box-shadow 620ms var(--ease); }
  .reel:hover .well {
    transform: translateY(-10px) scale(1.035);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  }
}

/* ---------------------------------------------------------
   02 — About
   --------------------------------------------------------- */
.about__grid {
  flex: 1; min-height: 0;
  display: grid; gap: clamp(1.5rem, 3.5vw, 3rem);
  grid-template-columns: 1fr; align-content: center; align-items: center;
}
@media (min-width: 900px) {
  .about__grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
}
.about__portrait { height: 100%; min-height: 0; display: flex; align-items: center; }
.about__portrait .well { height: min(100%, 54svh); aspect-ratio: 4/5; width: auto; }
.about__portrait img { transform: scale(1.06); will-change: transform; }
.about__lead {
  font-family: var(--text); font-weight: 700;
  font-size: clamp(1.125rem, 0.95rem + 0.85vw, 1.75rem);
  line-height: 1.28; margin: 0 0 clamp(1rem, 2.2vh, 1.5rem); max-width: 26ch;
}
.about__body { opacity: 0.7; max-width: 44ch; }
.about__body p { margin: 0 0 0.85rem; }
.about__note { color: var(--ink); }
.about__note strong { font-weight: 700; }
.about__body p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------
   03 — Work
   --------------------------------------------------------- */
.rows { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-start; }
.row {
  display: block;
  padding-block: clamp(0.4rem, 1.0vh, 1rem);
  border-top: 1px solid currentColor;
  position: relative;
}
.row:last-child { border-bottom: 1px solid currentColor; }
.row__name {
  font-family: var(--display, "Venturico", Georgia, serif); font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.01em; line-height: 1;
  font-size: clamp(1.25rem, 3vw, 4rem); margin: 0;
  transition: transform 620ms var(--ease), opacity 400ms var(--ease);
}
.row__meta { margin: 0.35rem 0 0; display: flex; flex-direction: column; gap: 0.1rem; transition: opacity 400ms var(--ease); }
.row__title { font-weight: 800; text-transform: uppercase; font-size: clamp(0.6875rem, 0.65rem + 0.12vw, 0.875rem); letter-spacing: 0.1em; }
.row__role { font-weight: 300; font-size: clamp(0.8125rem, 0.78rem + 0.15vw, 1rem); opacity: 0.55; }

@media (hover: hover) and (min-width: 900px) {
  .row:hover .row__name { transform: translateX(clamp(0.5rem, 1.4vw, 1.25rem)); }
  .rows:hover .row:not(:hover) .row__name,
  .rows:hover .row:not(:hover) .row__meta { opacity: 0.32; }
}

.peek {
  position: fixed; top: 0; left: 0;
  width: clamp(8rem, 11vw, 11rem); aspect-ratio: 9/16;
  pointer-events: none; z-index: 40; opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0.9);
  transition: opacity 320ms var(--ease), transform 520ms var(--ease);
  background: #222; overflow: hidden;
}
.peek.is-on { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1); }
.peek img, .peek video { width: 100%; height: 100%; object-fit: cover; }
.peek video { position: absolute; inset: 0; opacity: 0; transition: opacity 400ms var(--ease); }
.peek video.is-ready { opacity: 1; }

/* ---------------------------------------------------------
   04 — Contact
   --------------------------------------------------------- */
.contact { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-start; }
.contact__line {
  font-family: var(--display, "Venturico", Georgia, serif); font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.01em; line-height: 0.98;
  font-size: clamp(1.5rem, 2.5vw, 3.5rem);
  margin: 0 0 clamp(1.25rem, 3vh, 2.25rem);
  width: 100%; max-width: 14ch;
}
.contact__line .w { display: inline-block; will-change: transform; }
.contact__actions { display: flex; flex-wrap: wrap; gap: clamp(0.6rem, 1vw, 1rem); }
.panel--accent .btn { padding-inline: clamp(1rem, 1.4vw, 1.75rem); font-size: 0.8125rem; }
.btn {
  display: inline-block; padding: 0.9rem 1.75rem;
  background: currentColor; font-size: 0.875rem; font-weight: 600;
  will-change: transform;
}
.btn span { color: var(--accent); }
.panel--accent .btn { background: var(--paper); color: var(--accent); }
.btn--ghost { background: none !important; color: inherit !important; box-shadow: inset 0 0 0 1px currentColor; }

.foot {
  flex: 0 0 auto; padding-top: clamp(1.5rem, 4vh, 2.5rem);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  justify-content: space-between; align-items: baseline;
}
.foot__links { display: flex; gap: 1.25rem; }

/* ---------------------------------------------------------
   Cursor
   --------------------------------------------------------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 90;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  border: 1px solid var(--accent);
  pointer-events: none; opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  display: grid; place-items: center;
  transition: opacity 300ms var(--ease), width 420ms var(--ease),
              height 420ms var(--ease), background-color 420ms var(--ease),
              border-color 420ms var(--ease);
}
.cursor.is-on { opacity: 1; }
.cursor.is-lg { width: 5.5rem; height: 5.5rem; background: var(--accent); border-color: var(--accent); }
/* on the red panel the red ring would vanish, so it flips to paper */
.cursor.on-accent { border-color: var(--paper); }
.cursor.on-accent.is-lg { background: var(--paper); }
.cursor__label {
  font-size: 0.625rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff; opacity: 0; transition: opacity 260ms var(--ease);
}
.cursor.on-accent .cursor__label { color: var(--accent); }
.cursor.is-lg .cursor__label { opacity: 1; }
@media (hover: none), (max-width: 899px) { .cursor, .peek { display: none; } }

/* ---------------------------------------------------------
   Reveal primitives
   --------------------------------------------------------- */
.line { display: block; overflow: hidden; }
.line > span { display: block; }

/* ---------------------------------------------------------
   Below 900px the whole thing goes back to vertical.
   Sideways scrolling on a phone fights the platform.
   --------------------------------------------------------- */
@media (max-width: 899px) {
  .track { display: block; }
  .panel { width: 100%; height: auto; min-height: auto; }
  .panel__inner { padding-block: clamp(4.5rem, 12vh, 6rem) clamp(3rem, 8vh, 4.5rem); }
  .panel__cue { display: none; }
  .progress { display: none; }
  .hero .reels { display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; }
  .reel .well { flex: none; height: auto; width: 100%; }
  .contact__line { width: 100%; max-width: 100%; }
  .panel--accent { width: 100%; }
  .about__portrait .well { height: auto; width: 100%; }
  .rows { display: block; }
  .row { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .row__meta { flex-direction: column; gap: 0.1rem; }

}
@media (max-width: 560px) {
  .hero .reels { grid-template-columns: 1fr; gap: 1.25rem; }
  .reel .well { max-width: 70vw; }
}

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


/* =========================================================
   Project pages — information left, the film on the right
   ========================================================= */
.project { background: var(--ink); color: var(--paper); }
.project .proj {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding: clamp(5rem, 11vh, 7.5rem) var(--pad) clamp(3rem, 8vh, 5rem);
  align-items: start;
}
@media (min-width: 900px) {
  .project .proj { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .proj__info { position: sticky; top: clamp(5rem, 11vh, 7.5rem); }
}

.proj__back {
  display: inline-block; margin-bottom: clamp(1.25rem, 3vh, 2rem);
  font-weight: 800; font-size: 0.6875rem; letter-spacing: 0.12em;
  text-transform: uppercase; opacity: 0.55;
}
.proj__back:hover { opacity: 1; }

.proj__title {
  font-family: var(--display, "Venturico", Georgia, serif); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.01em; line-height: 0.95;
  font-size: clamp(1.75rem, 4.4vw, 5rem); margin: 0 0 clamp(1.25rem, 3vh, 2rem);
}
.proj__sub {
  font-weight: 800; font-size: 0.6875rem; letter-spacing: 0.12em;
  text-transform: uppercase; opacity: 0.55; margin: 0 0 clamp(0.6rem, 1.4vh, 1rem);
}
.proj__overview { max-width: 46ch; margin: 0 0 clamp(1.75rem, 4vh, 2.75rem); opacity: 0.75; }

.proj__details { margin: 0 0 clamp(1.75rem, 4vh, 2.75rem); max-width: 34rem; }
.proj__row {
  display: flex; gap: 1.5rem; justify-content: space-between;
  padding-block: 0.7rem; border-top: 1px solid rgba(232,232,232,0.16);
}
.proj__row:last-child { border-bottom: 1px solid rgba(232,232,232,0.16); }
.proj__row dt {
  font-weight: 800; font-size: 0.6875rem; letter-spacing: 0.1em;
  text-transform: uppercase; opacity: 0.5; margin: 0;
}
.proj__row dd { margin: 0; font-size: 0.9375rem; text-align: right; }

.proj__next { display: block; }
.proj__next .proj__sub { margin-bottom: 0.35rem; }
.proj__next-name {
  font-family: var(--display, "Venturico", Georgia, serif); font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.01em; line-height: 1;
  font-size: clamp(1.25rem, 2.4vw, 2.25rem);
  display: inline-block; transition: transform 520ms var(--ease);
}
.proj__next:hover .proj__next-name { transform: translateX(0.75rem); }

.proj__media { display: flex; flex-direction: column; gap: clamp(1rem, 2vw, 1.75rem); }
.proj__media .well { width: 100%; }
.proj__still {
  background: rgba(128,128,128,0.14); aspect-ratio: 9 / 16;
  display: grid; place-items: center; text-align: center; padding: 2rem;
  font-weight: 800; font-size: 0.6875rem; letter-spacing: 0.12em;
  text-transform: uppercase; opacity: 0.35;
}


/* =========================================================
   Project pages — two shapes
   .proj--single : one screen, no scrolling, film shown whole
   .proj--reel   : film plus a scrolling column of 4:5 stills
   ========================================================= */
.project--single { overflow: hidden; }
.project--single .proj {
  height: 100svh;
  padding-bottom: clamp(2rem, 5vh, 3.5rem);
  align-items: stretch;
}
.project--single .proj__info { position: static; align-self: center; }
.project--single .proj__media { height: 100%; min-height: 0; justify-content: center; align-items: center; }

/* the whole frame, never a crop */
/* The box is the same shape as the film, so the YouTube player fills it
   instead of pillarboxing a vertical video inside a 16:9 frame. */
.ytbox {
  position: relative;
  height: 100%; aspect-ratio: 9 / 16; width: auto; max-width: 100%;
  margin-inline: auto;
  display: flex; align-items: center; justify-content: center;
  background: #000; border-radius: 20px; overflow: hidden;
}
.ytbox video {
  width: 100%; height: 100%;
  object-fit: contain;
}
.ytframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.ytplay {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.5rem; border: 0; cursor: pointer;
  background: var(--accent); color: #fff;
  font-family: var(--text); font-weight: 800;
  font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase;
  transition: transform 420ms var(--ease);
}
.ytplay:hover { transform: translate(-50%, -50%) scale(1.06); }
/* our display:inline-flex would otherwise beat the browser's [hidden] rule */
.ytplay[hidden] { display: none; }

/* Each frame is one screen tall and 919 : 1080 wide, whatever the source
   image is. Images fill the frame edge to edge, so a mixed set of crops
   still reads as one consistent column. */
.project .proj--reel {
  grid-template-columns: minmax(0, 1fr) auto;
  /* the column never ends, so there's nothing to leave room for */
  padding-bottom: 0;
  /* the media column bleeds off the right edge — no page padding on that side */
  padding-right: 0;
  justify-items: end;
}
/* only the media bleeds right; the text column stays on the left margin */
.project .proj--reel .proj__info { justify-self: stretch; }
.proj--reel .proj__media {
  align-items: center;
  gap: clamp(1rem, 2vh, 2rem);
  /* cancel the page's top padding so the first frame starts at the very top */
  margin-top: calc(-1 * clamp(5rem, 11vh, 7.5rem));
}
.proj--reel .proj__media > * {
  height: 100svh;
  aspect-ratio: 919 / 1080;
  width: auto;
  max-width: 100%;
  object-fit: cover;
  display: block;
  background: rgba(128,128,128,0.14);
}

@media (max-width: 899px) {
  .project .proj--reel { grid-template-columns: 1fr; padding-right: 0; padding-left: 0; }
  .proj--reel .proj__info { padding-inline: var(--pad); }
  .proj--reel .proj__media { margin-top: 0; }
  .proj--reel .proj__media > * { height: auto; width: 100%; aspect-ratio: 919 / 1080; }
}

@media (max-width: 899px) {
  .project--single { overflow: visible; }
  .project--single .proj { height: auto; }
  .ytbox { height: auto; width: 100%; }
}
