:root {
  --bg: #efeeec;
  --ink: #141414;
  --body-text: #3c3a38;
  --muted: #6c6a67;
  --line: rgba(20, 20, 20, .12);
  --red: #e3241b;
  --red-deep: #b8170f;
  --white: #ffffff;
  --black: #141414;
  --halo: transparent;
  color-scheme: light;
  --gutter: clamp(16px, 4vw, 56px);
  --nav-h: 72px;
  --dir: 1;
  --display: "Anton", "Noto Kufi Arabic", Impact, sans-serif;
  --body: "Archivo", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "IBM Plex Sans Arabic", ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161514;
    --ink: #f3f0eb;
    --body-text: #cfcac3;
    --muted: #a39e97;
    --line: rgba(255, 255, 255, .12);
    --red: #f0372c;
    --red-deep: #c01d14;
    --halo: rgba(255, 255, 255, .08);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #161514;
  --ink: #f3f0eb;
  --body-text: #cfcac3;
  --muted: #a39e97;
  --line: rgba(255, 255, 255, .12);
  --red: #f0372c;
  --red-deep: #c01d14;
  --halo: rgba(255, 255, 255, .08);
  color-scheme: dark;
}

html[dir="rtl"] { --dir: -1; }
html:lang(ar) {
  --display: "Noto Kufi Arabic", "Anton", sans-serif;
  --body: "IBM Plex Sans Arabic", "Archivo", system-ui, sans-serif;
  --mono: "IBM Plex Sans Arabic", "IBM Plex Mono", monospace;
}

*, *::before, *::after { 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(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

html:lang(ar) body { line-height: 1.8; }

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

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

.skip {
  position: fixed;
  inset-inline-start: var(--gutter);
  top: -100px;
  z-index: 50;
  background: var(--ink);
  color: var(--bg);
  padding: .5rem 1rem;
}
.skip:focus { top: 12px; }

/* ---------- Shared type ---------- */

.display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .92;
  letter-spacing: -.005em;
  font-size: clamp(2.75rem, 6.4vw, 6rem);
  margin: 0 0 1.75rem;
}

html:lang(ar) .display {
  font-weight: 900;
  line-height: 1.25;
  font-size: clamp(2.25rem, 5vw, 4.75rem);
}

.display span { display: block; }
.ink { color: var(--ink); }
.red { color: var(--red); }

.label {
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.25rem;
  display: flex;
  gap: .6rem;
  align-items: center;
}
.label span:first-child { color: var(--red); }
html:lang(ar) .label { letter-spacing: 0; font-size: .875rem; }

.kicker {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1rem;
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 20;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-inline: var(--gutter);
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 92%, transparent), transparent);
}

body[data-section="contact"] .nav { background: none; }
body[data-section="contact"] .logo,
body[data-section="contact"] .nav a,
body[data-section="contact"] .lang,
body[data-section="contact"] .theme { color: var(--white); }
body[data-section="contact"] .logo i { background: var(--white); }

.logo {
  font-family: "Anton", "Noto Kufi Arabic", sans-serif;
  font-size: 1.5rem;
  letter-spacing: .02em;
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  gap: 3px;
  margin-inline-end: auto;
  transition: color .3s;
}
html:lang(ar) .logo { font-weight: 900; font-size: 1.25rem; }

.logo i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  margin-top: .45em;
}

.nav nav { display: flex; gap: .25rem; }

.nav nav a {
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  padding: .4rem .9rem;
  border-radius: 999px;
  transition: background .25s, color .25s;
}
.nav nav a:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.nav nav a[aria-current="true"] {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 6px 16px -6px rgba(227, 36, 27, .7);
}
body[data-section="contact"] .nav nav a[aria-current="true"] { background: var(--white); color: var(--red); }

.theme {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: none;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
}
.theme svg { width: 16px; height: 16px; }
.theme .moon { display: none; }
.is-dark .theme .sun { display: none; }
.is-dark .theme .moon { display: block; }

.lang {
  background: none;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: .3rem 1rem;
  font-size: .875rem;
  cursor: pointer;
}

/* ---------- Poses: each section carries its own cut-out of Fadi ----------
   The cut-out scrolls with its section and never leaves it, so it cannot cover
   another section's text. Inside a tall section (work, journey) it stays pinned
   to the bottom of the screen until that section ends. */

.pose {
  --x: 54vw;
  --tx: 0%;
  --h: min(92vh, 980px);
  --wcap: 60vw;
  position: absolute !important;
  inset: 0;
  z-index: 1 !important;
  pointer-events: none;
  /* Keeps the glow behind the cut-out from widening the page; clip still lets the frame stick. */
  overflow: clip;
}

.pose-frame {
  --ph: min(var(--h), var(--wcap));
  position: sticky;
  top: calc(100vh - var(--ph));
  height: var(--ph);
  aspect-ratio: 2 / 3;
  margin-inline-start: var(--x);
  transform: translateX(calc(var(--tx) * var(--dir)));
}

/* In dark mode a soft light behind the cut-out keeps its edges from reading as a hard sticker. */
.pose-frame::before {
  content: "";
  position: absolute;
  inset: 8% -18% -4%;
  background: radial-gradient(closest-side, var(--halo), transparent);
}

.pose img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: 50% 100%;
  filter: drop-shadow(0 30px 40px rgba(20, 20, 20, .14));
}

.pose-camera img {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%);
}

/* --wcap keeps each pose inside its free column (height = 1.5 x the width it may use). */
.hero .pose { --x: 55vw; --h: min(94vh, 1000px); --wcap: 63vw; }
.about .pose { --x: 3vw; --h: min(86vh, 900px); --wcap: 64vw; }
.work .pose { --x: 70vw; --h: min(66vh, 700px); --wcap: 40vw; }
.journey .pose { --x: 5vw; --h: min(88vh, 940px); --wcap: 60vw; }
.tools .pose { --x: 50vw; --tx: -50%; --h: min(80vh, 860px); --wcap: 36vw; }
.numbers .pose { --x: 67vw; --h: min(80vh, 860px); --wcap: 46vw; }
.contact .pose { --x: 44vw; --tx: -50%; --h: min(84vh, 900px); --wcap: 48vw; }

/* ---------- Sections ---------- */

main > section {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--nav-h) + 48px) var(--gutter) 72px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(12px, 2vw, 32px);
  align-content: center;
}

main > section > * { position: relative; z-index: 2; }

/* Hero */
/* clip, not hidden: hidden would make the section a scroll box and stop the sticky pose. */
.hero { overflow: clip; }

.giant-name {
  position: absolute !important;
  z-index: 0 !important;
  top: calc(var(--nav-h) - 1vw);
  inset-inline-end: calc(var(--gutter) - 1vw);
  margin: 0;
  font-family: "Anton", "Noto Kufi Arabic", sans-serif;
  font-size: clamp(9rem, 27vw, 30rem);
  line-height: .85;
  color: var(--red);
  text-shadow: 0 30px 60px rgba(227, 36, 27, .25);
  user-select: none;
}
html:lang(ar) .giant-name { font-weight: 900; font-size: clamp(7rem, 22vw, 24rem); line-height: 1.1; }

.hero-copy { grid-column: 1 / span 6; padding-top: 18vh; }

.hero h1 {
  margin: 0 0 1.5rem;
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(3rem, 7.4vw, 7.5rem);
  line-height: .9;
}
html:lang(ar) .hero h1 { font-weight: 900; line-height: 1.3; font-size: clamp(2.75rem, 6vw, 6rem); }
.hero h1 .line { display: block; }

.lede { max-width: 32rem; color: var(--body-text); margin: 0 0 2rem; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 999px;
  padding: .8rem 1.5rem;
  font-weight: 600;
  font-size: .9375rem;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .2s, background .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn-red { background: var(--red); color: var(--white); box-shadow: 0 10px 24px -10px rgba(227, 36, 27, .8); }
.btn-red:hover { background: var(--red-deep); }
.btn-line { background: transparent; border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--bg); }

/* About */
.about-copy { grid-column: 7 / span 6; }
.about-copy > p { max-width: 34rem; margin: 0 0 1.1rem; color: var(--body-text); }

.facts {
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 34rem;
}
.facts div { border-top: 2px solid var(--ink); padding-top: .6rem; }
.facts dt { font-size: .8125rem; color: var(--muted); }
.facts dd { margin: .15rem 0 0; font-family: var(--display); font-size: 1.5rem; line-height: 1.1; text-transform: uppercase; }
html:lang(ar) .facts dd { font-weight: 700; font-size: 1.125rem; line-height: 1.5; }

/* Work */
.work { align-content: start; }

/* Sticky header with its own background so cards slide under it cleanly; it stops before the image column. */
.work-head {
  grid-column: 1 / span 8;
  margin-inline-start: calc(var(--gutter) * -1);
  padding-inline-start: var(--gutter);
  background: var(--bg);
  position: sticky !important;
  top: var(--nav-h);
  z-index: 3 !important;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: .5rem;
}
.work-head .label { margin: 0; }

.counter { margin: 0; font-family: "Anton", sans-serif; display: flex; align-items: baseline; gap: .2rem; }
.counter b { font-weight: 400; font-size: 3rem; line-height: 1; }
.counter span { color: var(--muted); }
.work-head::after { content: ""; flex: 0 0 64px; height: 2px; background: var(--red); }

.chapters { grid-column: 1 / span 8; }

.chapter {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 40px;
}

.chapter .tag { font-family: var(--mono); font-size: .75rem; color: var(--red); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .5rem; }
html:lang(ar) .chapter .tag { letter-spacing: 0; font-size: .875rem; }
.chapter .display { font-size: clamp(2.5rem, 5.4vw, 5rem); margin-bottom: 1rem; }
html:lang(ar) .chapter .display { font-size: clamp(2rem, 4.2vw, 3.75rem); }
.chapter-desc { max-width: 36rem; color: var(--body-text); margin: 0 0 1.75rem; }

.reel-row {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
  max-width: 780px;
}

/* Video card */
.card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: start;
  cursor: pointer;
}

.card-media {
  display: block;
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  background: #1c1c1c;
  box-shadow: 0 18px 40px -22px rgba(20, 20, 20, .55);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s;
}
.card:hover .card-media,
.card:focus-visible .card-media { transform: translateY(-6px); box-shadow: 0 26px 50px -24px rgba(227, 36, 27, .6); }

.card-media img,
.card-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-media video { opacity: 0; transition: opacity .3s; }
.card.is-playing .card-media video { opacity: 1; }

.card-play {
  position: absolute;
  inset-inline-start: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px -4px rgba(0, 0, 0, .5);
}
.card-play::before {
  content: "";
  margin-inline-start: 3px;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent var(--white);
}
html[dir="rtl"] .card-play::before { transform: scaleX(-1); margin-inline-start: 0; margin-inline-end: 3px; }

.card-dur {
  position: absolute;
  inset-inline-end: 10px;
  top: 10px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(0, 0, 0, .55);
  padding: .1rem .5rem;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.card-title {
  display: block;
  margin-top: .6rem;
  font-weight: 600;
  font-size: .9375rem;
  line-height: 1.35;
}

/* "View more" card: same size as a video card, the next cover dimmed under a count. */
.more .card-media { background: var(--red); }
.more .card-media img { filter: grayscale(.2) brightness(.45); transform: scale(1.06); transition: transform .5s; }
.more:hover .card-media img { transform: scale(1.12); }
.more-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  color: var(--white);
  text-align: center;
  padding: 1rem;
}
.more-count { font-family: "Anton", sans-serif; font-size: clamp(2.5rem, 4vw, 3.5rem); line-height: 1; }
.more-text {
  font-weight: 600;
  font-size: .9375rem;
  border-bottom: 2px solid var(--red);
  padding-bottom: .15rem;
}
.more:hover .more-text,
.more:focus-visible .more-text { border-color: var(--white); }

/* Journey */
.journey { min-height: 260vh; align-content: start; }

.journey-stage {
  position: absolute !important;
  inset: 0;
  z-index: 0 !important;
  pointer-events: none;
}

.year-outline {
  position: sticky;
  top: 14vh;
  margin: 0;
  padding-inline-start: 2vw;
  font-family: "Anton", sans-serif;
  font-size: clamp(9rem, 25vw, 26rem);
  line-height: .85;
  color: transparent;
  -webkit-text-stroke: 2px var(--red);
  opacity: .9;
  transition: opacity .3s;
}
.year-outline.swap { opacity: 0; }

.journey-copy {
  grid-column: 7 / span 6;
  position: sticky !important;
  top: calc(var(--nav-h) + 24px);
  align-self: start;
  padding-top: 8vh;
}

.stops { list-style: none; margin: 0; padding: 0; }
.stops li {
  min-height: 56vh;
  padding-block: 1rem;
  opacity: .28;
  transition: opacity .4s;
}
.stops li.is-active { opacity: 1; }
.stops li:last-child { min-height: 40vh; }
.when { margin: 0; font-family: var(--mono); font-size: .8125rem; color: var(--red); letter-spacing: .06em; }
.stops h3 { margin: .25rem 0 .5rem; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1; }
html:lang(ar) .stops h3 { font-weight: 900; line-height: 1.4; }
.stops p:last-child { margin: 0; max-width: 30rem; color: var(--body-text); }

/* Tools */
.tools { align-content: start; overflow: clip; padding-bottom: 0; }
.tools-copy { grid-column: 1 / span 5; justify-self: start; width: fit-content; max-width: 100%; }
html:lang(ar) .tools .display { font-size: clamp(2rem, 3.6vw, 3.4rem); }

.orbit {
  position: absolute !important;
  z-index: auto !important;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}

.orbit li {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  background: var(--red);
  color: var(--white);
  font-weight: 600;
  font-size: .875rem;
  padding: .45rem 1rem;
  border-radius: 999px;
  box-shadow: 0 10px 22px -10px rgba(227, 36, 27, .9);
  will-change: transform;
}
.orbit li:nth-child(3n) { background: var(--ink); box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .8); }
.orbit li:nth-child(3n) { background: var(--black); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 10px 22px -12px rgba(0, 0, 0, .8); }
.orbit li:nth-child(4n) { background: var(--white); color: var(--black); }

.marquee {
  grid-column: 1 / -1;
  align-self: end;
  margin-inline: calc(var(--gutter) * -1);
  margin-top: auto;
  background: var(--red);
  color: var(--white);
  overflow: hidden;
  transform: rotate(-2deg);
  transform-origin: center;
  padding-block: .8rem;
  z-index: 3 !important;
  /* The loop math assumes left-to-right; each word still shapes in its own script. */
  direction: ltr;
}
.tools { grid-template-rows: auto 1fr auto; }
.marquee { grid-row: 3; margin-bottom: 48px; }

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  font-family: "Anton", "Noto Kufi Arabic", sans-serif;
  font-size: 1.75rem;
  text-transform: uppercase;
  padding-inline: 1.25rem;
  white-space: nowrap;
}
html:lang(ar) .marquee-track span { font-weight: 900; font-size: 1.375rem; }
.marquee-track span::after { content: "✦"; margin-inline-start: 2.5rem; font-size: 1rem; vertical-align: middle; }

@keyframes marquee { to { transform: translateX(-50%); } }

/* Numbers */
.numbers { align-content: center; }
.numbers .label { grid-column: 1 / -1; justify-self: start; }

.stats {
  grid-column: 1 / span 8;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 22px);
  perspective: 900px;
}

.stat {
  border-radius: 20px;
  padding: 1.4rem 1.2rem 1.2rem;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--white);
  transform: rotateY(-14deg) rotateX(6deg);
  box-shadow: 0 30px 40px -24px rgba(20, 20, 20, .6);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
html[dir="rtl"] .stat { transform: rotateY(14deg) rotateX(6deg); }
.stat:hover { transform: none; }
.stat.red { background: linear-gradient(160deg, #f0392f, var(--red-deep)); }
.stat.ink { background: linear-gradient(160deg, #2a2a2a, #0d0d0d); outline: 1px solid var(--line); }
.stat b { font-family: "Anton", sans-serif; font-weight: 400; font-size: clamp(3.5rem, 6vw, 5.5rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stat b[data-plus]::after { content: "+"; font-size: .5em; vertical-align: top; margin-inline-start: .05em; color: #ffd2cf; }
.stat.ink b[data-plus]::after { color: var(--red); }
.stat span { font-size: .875rem; font-weight: 500; opacity: .9; }

/* Contact */
.contact {
  /* Tall enough that the four contact links sit below the giant word. */
  min-height: max(100vh, 980px);
  background: radial-gradient(120% 90% at 50% 100%, #f2453b 0%, var(--red) 45%, var(--red-deep) 100%);
  color: var(--white);
  overflow: clip;
  align-content: end;
}

.lets {
  position: absolute !important;
  z-index: 0 !important;
  top: calc(var(--nav-h) - 2vw);
  inset-inline: 0;
  margin: 0;
  text-align: center;
  font-family: "Anton", "Noto Kufi Arabic", sans-serif;
  font-size: clamp(8rem, 25vw, 27rem);
  line-height: .85;
  color: var(--white);
  opacity: .96;
  white-space: nowrap;
  user-select: none;
}
html:lang(ar) .lets { font-weight: 900; font-size: clamp(7rem, 26vw, 27rem); line-height: 1.1; letter-spacing: 0; }

.contact-copy { grid-column: 9 / span 4; align-self: end; padding-bottom: 4vh; }
.contact .display { font-size: clamp(2rem, 3.4vw, 3.25rem); }
html:lang(ar) .contact .display { font-size: clamp(1.75rem, 2.8vw, 2.75rem); }
.contact-copy p { margin: 0 0 1.5rem; opacity: .92; }

.contact-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.contact-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  font-weight: 600;
  padding: .85rem 1.1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .28);
  transition: background .2s, color .2s;
}
.contact-links a:hover { background: var(--white); color: var(--red); }
.contact-links small { font-weight: 400; opacity: .8; direction: ltr; unicode-bidi: isolate; }

.contact-name {
  position: absolute !important;
  inset-inline-start: var(--gutter);
  bottom: 56px;
  margin: 0;
  font-family: "Anton", sans-serif;
  font-size: clamp(2rem, 4vw, 3.75rem);
  line-height: .95;
  text-transform: uppercase;
  max-width: 6em;
}
html:lang(ar) .contact-name { font-family: "Noto Kufi Arabic", sans-serif; font-weight: 900; line-height: 1.35; }

.foot {
  background: var(--red-deep);
  color: rgba(255, 255, 255, .85);
  padding: 18px var(--gutter);
  font-size: .8125rem;
  position: relative;
  z-index: 2;
}
.foot p { margin: 0; }

/* ---------- Dialogs ---------- */

dialog {
  border: 0;
  padding: 0;
  max-width: none;
  max-height: none;
  color: inherit;
}
dialog::backdrop { background: rgba(10, 10, 10, .78); backdrop-filter: blur(6px); }

.close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--white);
  color: var(--black);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.close:hover { background: var(--red); color: var(--white); }

.sheet {
  width: min(1200px, calc(100vw - 32px));
  height: calc(100vh - 32px);
  margin: auto;
  border-radius: 24px;
  background: var(--bg);
  overflow: auto;
  padding: 0 clamp(16px, 3vw, 40px) 40px;
}
.sheet-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px;
  background: var(--bg);
}
.sheet h2 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; }
html:lang(ar) .sheet h2 { font-weight: 900; line-height: 1.4; }
.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 24px 16px;
}

.player {
  background: transparent;
  width: 100vw;
  height: 100vh;
  margin: 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.player[open] { display: flex; }
.player .close { position: absolute; top: 16px; inset-inline-end: 16px; z-index: 2; }
.player figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.player video {
  max-height: calc(100vh - 120px);
  max-width: min(92vw, 1100px);
  border-radius: 14px;
  background: #000;
}
.player figcaption { color: var(--white); font-weight: 600; text-align: center; }
.step {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  flex: none;
}
.step:hover { background: var(--red); border-color: var(--red); }
html[dir="rtl"] .step { transform: scaleX(-1); }

/* ---------- Small screens: the travelling cut-out gives way to inline photos ---------- */

@media (max-width: 960px) {
  :root { --nav-h: 60px; }
  .nav nav { display: none; }
  /* A solid bar on phones, so text scrolling underneath doesn't show through the buttons. */
  .nav { background: var(--bg); }
  body[data-section="contact"] .nav { background: var(--red-deep); }

  /* Each pose sits in its section's flow, smaller, and floats gently. */
  .pose {
    position: relative !important;
    inset: auto;
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-block: 1.75rem .25rem;
  }
  .pose-frame {
    --ph: min(46vh, 340px);
    position: relative;
    top: auto;
    margin-inline-start: 0;
    transform: none;
  }
  .pose img {
    animation: pose-float 5s ease-in-out infinite;
    filter: drop-shadow(0 18px 24px rgba(20, 20, 20, .18));
  }
  .hero .pose-frame,
  .contact .pose-frame { --ph: min(58vh, 430px); }

  main > section { min-height: auto; padding-block: calc(var(--nav-h) + 32px) 64px; }
  .hero-copy, .about-copy, .chapters, .journey-copy, .tools-copy, .stats, .contact-copy { grid-column: 1 / -1; }

  .hero { min-height: 100svh; align-content: start; }
  .hero-copy { padding-top: 26vw; }
  .giant-name { font-size: 34vw; top: var(--nav-h); }
  /* The hero cut-out sits flush on the section's bottom edge, so it stays still. */
  .hero .pose { order: 1; margin-bottom: -64px; }
  .hero .pose img { animation: none; }

  .work-head { grid-column: 1 / -1; }
  .chapter { min-height: auto; padding-block: 32px; }
  .reel-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .journey { min-height: auto; }
  .journey-copy { position: relative !important; top: 0; padding-top: 0; }
  .year-outline { font-size: 42vw; top: 20vh; opacity: .35; }
  .stops li { min-height: auto; padding-block: 1.5rem; opacity: 1; }

  .tools { min-height: auto; grid-template-rows: none; }
  .tools .pose { order: 1; margin-block: .5rem 1.5rem; }
  .orbit { order: 2; position: static !important; display: flex; flex-wrap: wrap; gap: .5rem; grid-column: 1 / -1; margin-bottom: 2.5rem; pointer-events: auto; }
  .orbit li { position: static; transform: none !important; }
  .marquee { order: 3; grid-row: auto; margin-bottom: 0; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { transform: none !important; min-height: 160px; }

  .contact { min-height: auto; align-content: start; padding-top: 34vw; }
  .lets { font-size: 36vw; }
  .contact .pose { order: -1; margin-block: 0; }
  .contact-name { position: static !important; grid-column: 1 / -1; margin-top: 2rem; }

  .player { flex-wrap: wrap; align-content: center; }
  .step { position: absolute; bottom: 20px; }
  .step.prev { inset-inline-start: 20px; }
  .step.next { inset-inline-end: 20px; }
  .player video { max-height: calc(100vh - 160px); }
}

@keyframes pose-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pose-in {
  from { opacity: 0; transform: translateY(40px) scale(.94); }
  to { opacity: 1; transform: none; }
}

/* On small screens each pose rises in as its section scrolls into view.
   Browsers without scroll-linked animation simply show it in place. */
@media (max-width: 960px) {
  @supports (animation-timeline: view()) {
    .pose-frame {
      animation: pose-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
    /* The hero is on screen at load, so it never waits for a scroll. */
    .hero .pose-frame { animation: none; }
  }
}

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