/* ETERVORA — homepage prototype */
:root {
  --ink: #0f0d0b;
  --ink-2: #191613;
  --stone: #ece5d9;
  --stone-2: #d9cfbf;
  --cream: #f4eee4;
  --bronze: #b38e5d;
  --muted: rgba(244, 238, 228, .62);
  --muted-dark: rgba(15, 13, 11, .55);
  --line: rgba(244, 238, 228, .16);
  --line-dark: rgba(15, 13, 11, .14);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(16px, 3.2vw, 48px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: italic; }
::selection { background: var(--bronze); color: var(--ink); }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 22px;
  border-radius: 40px;
  font-size: 11px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase;
  background: var(--cream); color: var(--ink);
  transition: background .4s var(--ease), color .4s var(--ease);
}
.pill:hover { background: var(--bronze); color: var(--ink); }
.pill--ghost { background: transparent; color: var(--cream); border: 1px solid rgba(244,238,228,.5); }
.pill--ghost:hover { background: var(--cream); color: var(--ink); }
.pill--light { background: rgba(244,238,228,.92); }

/* ---------- Text roll on hover ---------- */
.roll { position: relative; display: inline-block; overflow: hidden; line-height: 1.2; }
.roll span { display: inline-block; transition: transform .6s var(--ease); }
.roll::after {
  content: attr(data-text);
  position: absolute; inset-inline-start: 0; top: 100%;
  transition: transform .6s var(--ease);
}
.roll:hover span, .roll:hover::after { transform: translateY(-100%); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  clip-path: inset(0% 0% 0% 0%);
}
html:not(.js) .preloader { display: none; }
.preloader__video { position: absolute; inset: 0; opacity: 0; filter: saturate(.85); }
.preloader__mark, .preloader__word, .preloader__count { z-index: 1; }
.preloader__mark { position: relative; }
.preloader__word { position: relative; }
.preloader__mark { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; opacity: 0; transform: scale(.85); }
.preloader__word { display: flex; gap: .55em; overflow: hidden; font-family: var(--serif); font-size: clamp(22px, 3vw, 34px); letter-spacing: .1em; }
.preloader__word span { display: inline-block; transform: translateY(110%); }
.preloader__count {
  position: absolute; right: var(--gutter); bottom: var(--gutter);
  font-family: var(--serif); font-size: clamp(48px, 8vw, 120px); font-weight: 300; line-height: 1; color: var(--muted);
}

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 150;
  width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border: 1px solid rgba(244,238,228,.7); border-radius: 50%;
  pointer-events: none; mix-blend-mode: difference;
  display: flex; align-items: center; justify-content: center;
  transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), background .5s var(--ease);
}
.cursor__label { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .3s; }
.cursor.is-big { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--cream); mix-blend-mode: normal; border-color: transparent; }
.cursor.is-big .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 22px var(--gutter);
  mix-blend-mode: difference; color: #fff;
  transition: transform .6s var(--ease);
}
.header.is-hidden { transform: translateY(-110%); }
.header__nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; }
.header__nav--right { justify-content: flex-end; }
.header .pill--ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.header .pill--ghost:hover { background: #fff; color: #000; }
.wordmark { font-family: var(--serif); font-size: clamp(18px, 1.7vw, 24px); font-weight: 400; letter-spacing: .48em; margin-right: -.48em; }
.burger { display: none; width: 40px; height: 40px; position: relative; justify-self: end; }
.burger span { position: absolute; left: 8px; right: 8px; height: 1px; background: #fff; transition: transform .5s var(--ease); }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--ink-2);
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: 0 var(--gutter);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu__nav { display: flex; flex-direction: column; gap: 6px; }
.menu__nav a { font-family: var(--serif); font-size: 44px; line-height: 1.15; }
.menu .pill { align-self: flex-start; }

@media (max-width: 900px) {
  .header { grid-template-columns: 1fr auto; padding: 16px var(--gutter); }
  .header__nav { display: none; }
  .wordmark { justify-self: start; letter-spacing: .38em; }
  .burger { display: block; }
}

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__video { transform-origin: 50% 60%; }
@media (max-width: 767px) { .hero__video { object-position: 74% 50%; } }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,13,11,.6) 0%, rgba(15,13,11,.1) 22%, rgba(15,13,11,.05) 45%, rgba(15,13,11,.35) 70%, rgba(15,13,11,.85) 100%); }
.hero__content { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(90px, 14vh, 150px); }
.hero__eyebrow { margin-bottom: 22px; color: rgba(244,238,228,.8); }
.hero__title { font-family: var(--serif); font-weight: 300; font-size: clamp(48px, 9.4vw, 156px); line-height: .95; letter-spacing: -.01em; }
.line { display: block; overflow: hidden; padding-bottom: .2em; margin-bottom: -.14em; }
.line > span { display: block; }
.js .hero__title .line > span { transform: translateY(110%); }
.hero__meta {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px;
  display: flex; justify-content: space-between;
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: rgba(244,238,228,.75);
}
.hero__scroll { display: inline-flex; align-items: center; gap: 12px; }
.hero__scroll i { display: block; width: 1px; height: 28px; background: currentColor; transform-origin: top; animation: scrollLine 2.2s var(--ease) infinite; }
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Manifest ---------- */
.manifest { position: relative; overflow: hidden; padding: clamp(120px, 22vh, 240px) var(--gutter); text-align: center; background: var(--stone); color: var(--ink); }
.manifest__video { position: absolute; inset: 0; opacity: .75; }
.manifest::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(236,229,217,.55), rgba(236,229,217,0) 70%); pointer-events: none; }
.manifest .eyebrow { position: relative; z-index: 1; margin-bottom: 40px; color: var(--muted-dark); }
.manifest__text em { color: #8a6a40; }
.manifest__text { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 5.2vw, 84px); line-height: 1.08; }
.w { display: inline-block; white-space: nowrap; }
.c { display: inline-block; }
.wm { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .22em; margin-bottom: -.22em; }
.wi { display: inline-block; }

/* ---------- About ---------- */
.about {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 7vw, 120px);
  align-items: center; padding: 40px var(--gutter) clamp(120px, 18vh, 200px);
}
.about__media { aspect-ratio: 3 / 4.2; overflow: hidden; border-radius: 2px; }
.about__body .eyebrow { margin-bottom: 28px; }
.about__title { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 4.4vw, 68px); line-height: 1.05; margin-bottom: 32px; }
.about__title em, .works__title em, .process__title em, .cta__title em, .film__title em, .expand__title em, .hero__title em { color: #e2c9a2; }
.about__text { max-width: 520px; color: var(--muted); font-size: 17px; margin-bottom: 48px; }
.about__list { border-top: 1px solid var(--line); max-width: 560px; }
.about__list li { display: flex; gap: 24px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 24px; }
.about__list span { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; color: var(--bronze); }
.reveal-img { clip-path: inset(0 0 0 0); }
.js .reveal-img { clip-path: inset(100% 0 0 0); }
.reveal-img img { transform-origin: center; }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about__media { aspect-ratio: 4 / 5; max-height: 70vh; }
}

/* ---------- Film ---------- */
.film__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--ink); }
.film__frame { position: absolute; inset: 0; will-change: clip-path, transform; }
.film__frame:not(:first-child) { clip-path: inset(100% 0 0 0); }
.film__shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(15,13,11,.15), rgba(15,13,11,.6)); pointer-events: none; }
.film__caption { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 22px; padding: 0 var(--gutter); }
.film__caption .eyebrow { color: rgba(244,238,228,.85); }
.film__title { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 7.4vw, 120px); line-height: 1; }
.film__chapters { position: absolute; inset-inline-start: var(--gutter); bottom: 34px; display: flex; gap: 28px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
.film__chapters span { color: rgba(244,238,228,.4); transition: color .5s; }
.film__chapters span.is-active { color: var(--cream); }
.film__bar { position: absolute; inset-inline-end: var(--gutter); bottom: 40px; width: min(220px, 30vw); height: 1px; background: rgba(244,238,228,.25); }
.film__bar i { position: absolute; inset: 0; background: var(--cream); transform: scaleX(0); transform-origin: left; }
@media (max-width: 700px) {
  .film__chapters { gap: 14px; font-size: 9px; letter-spacing: .14em; bottom: 60px; }
  .film__bar { left: var(--gutter); right: var(--gutter); width: auto; bottom: 36px; }
}

/* ---------- Services (We create) ---------- */
.services { background: var(--stone); color: var(--ink); }
.services__stage { position: relative; height: 100vh; height: 100svh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.services__word {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(64px, 15vw, 260px); line-height: 1; color: var(--ink);
}
.services__word--l { inset-inline-end: 50%; padding-inline-end: .12em; }
.services__word--r { inset-inline-start: 50%; padding-inline-start: .12em; }
.services__list { position: relative; text-align: center; }
.services__list li {
  font-family: var(--sans); font-weight: 400; text-transform: uppercase;
  font-size: clamp(22px, 3.4vw, 54px); letter-spacing: .08em; line-height: 1.25;
}

/* ---------- Works ---------- */
.works { padding: clamp(100px, 16vh, 180px) 0 clamp(80px, 12vh, 140px); }
.works__head { padding: 0 var(--gutter); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; flex-wrap: wrap; }
.works__head .eyebrow { order: 2; }
.works__title { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 6vw, 96px); line-height: 1; }
.works__viewport { overflow: hidden; }
.works__track { display: flex; gap: clamp(16px, 2vw, 32px); padding: 0 var(--gutter); width: max-content; }
.card { width: min(22vw, 44vh); min-width: 220px; flex: none; }
@media (min-width: 901px) {
  .works { height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 72px 0 24px; }
  .works__head { margin-bottom: 4vh; }
}
.card__img { aspect-ratio: 305 / 355; overflow: hidden; border-radius: 2px; background: var(--ink-2); }
.card__img img { transform: scale(1.12); transition: transform 1.2s var(--ease), filter 1.2s var(--ease); filter: saturate(.9); }
.card:hover .card__img img { transform: scale(1.02); filter: saturate(1.05); }
.card__meta { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.card__meta span:first-child { font-family: var(--serif); font-size: 21px; letter-spacing: 0; text-transform: none; }
.card__meta span:last-child { color: var(--muted); padding-top: 6px; }
@media (max-width: 900px) {
  .works__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .works__viewport::-webkit-scrollbar { display: none; }
  .card { width: 72vw; scroll-snap-align: start; }
  .card__img img { transform: none; }
}

/* ---------- Expand ---------- */
.expand__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.expand__media { position: absolute; inset: 0; clip-path: inset(22% 30% 22% 30% round 4px); will-change: clip-path; }
.expand__shade { position: absolute; inset: 0; background: rgba(15,13,11,.45); opacity: 0; pointer-events: none; }
.expand__title { position: relative; text-align: center; padding: 0 var(--gutter); font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 8vw, 132px); line-height: 1; text-shadow: 0 2px 40px rgba(15,13,11,.5); }
@media (max-width: 700px) { .expand__media { clip-path: inset(28% 12% 28% 12% round 4px); } }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 7vw, 120px); padding: clamp(120px, 18vh, 200px) var(--gutter); }
.process__aside { position: sticky; top: 110px; align-self: start; }
.process__aside .eyebrow { margin-bottom: 28px; }
.process__title { font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 4.6vw, 72px); line-height: 1.04; margin-bottom: 40px; }
.process__img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; max-width: 460px; }

.process__steps { counter-reset: step; }
.step { position: relative; display: grid; grid-template-columns: 70px 1fr; gap: 16px; padding: 44px 0; }
.step::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform-origin: left; }
.js .step::before { transform: scaleX(var(--line-scale, 0)); }
.step__num { font-size: 11px; letter-spacing: .2em; color: var(--bronze); padding-top: 12px; }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.8vw, 42px); line-height: 1.1; margin-bottom: 12px; }
.step p { color: var(--muted); max-width: 460px; }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; }
  .process__aside { position: static; }
  .step { grid-template-columns: 48px 1fr; padding: 32px 0; }
}

/* ---------- CTA ---------- */
.cta { text-align: center; padding: clamp(120px, 20vh, 220px) var(--gutter) clamp(100px, 16vh, 180px); background: var(--stone); color: var(--ink); }
.cta .eyebrow { color: var(--muted-dark); margin-bottom: 32px; }
.cta__title { font-family: var(--serif); font-weight: 300; font-size: clamp(48px, 9vw, 150px); line-height: .98; margin-bottom: 56px; }
.cta__title em { color: #8a6a40; }
.cta__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: clamp(140px, 13vw, 180px); height: clamp(140px, 13vw, 180px); border-radius: 50%;
  background: var(--ink); color: var(--cream);
  font-size: 12px; letter-spacing: .24em; text-transform: uppercase;
  transition: background .5s var(--ease);
}
.cta__btn:hover { background: #8a6a40; }

/* ---------- Footer ---------- */
.footer { padding: 80px var(--gutter) 28px; background: var(--ink); }
.footer__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-bottom: 64px; border-bottom: 1px solid var(--line); }
.footer__grid .eyebrow { margin-bottom: 14px; }
.footer__grid p:not(.eyebrow) { font-size: 15px; line-height: 1.7; }
.footer__grid a { border-bottom: 1px solid var(--line); transition: border-color .4s; }
.footer__grid a:hover { border-color: var(--cream); }
.footer__social { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer__word { font-family: var(--serif); font-weight: 300; font-size: clamp(48px, 15.4vw, 280px); line-height: 1; letter-spacing: .12em; text-align: center; padding: 48px 0 24px; margin-right: -.12em; color: #e2c9a2; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); flex-wrap: wrap; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Generic reveals ---------- */
.js .fade-up { opacity: 0; transform: translateY(30px); }

@media (prefers-reduced-motion: reduce) {
  .js .fade-up, .js .reveal-img, .js .hero__title .line > span { opacity: 1; transform: none; clip-path: none; }
  .hero__scroll i { animation: none; }
}

/* ---------- Language switcher ---------- */
.lang { display: inline-flex; gap: 2px; font-size: 10px; letter-spacing: .14em; }
.lang a { padding: 4px 6px; opacity: .5; transition: opacity .3s; cursor: pointer; }
.lang a:hover, .lang a.is-active { opacity: 1; }
.lang a.is-active { text-decoration: underline; text-underline-offset: 4px; }
.lang--menu { font-size: 13px; gap: 10px; }
.about__list b { font-weight: inherit; }

/* ---------- Project page ---------- */
.phero { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; }
.phero__media { position: absolute; inset: 0; }
.phero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,13,11,.55) 0%, rgba(15,13,11,.05) 30%, rgba(15,13,11,.2) 60%, rgba(15,13,11,.85) 100%); }
.phero__content { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(90px, 14vh, 150px); }
.phero__eyebrow { margin-bottom: 18px; color: rgba(244,238,228,.85); }
.phero__title { font-family: var(--serif); font-weight: 300; font-size: clamp(52px, 10vw, 170px); line-height: .95; }
.js .phero__title .line > span { transform: translateY(110%); }
.phero__meta { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: rgba(244,238,228,.8); }
.phero__back:hover { color: var(--cream); }
[dir="rtl"] .phero__arrow { display: inline-block; transform: scaleX(-1); }

.pinfo { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 7vw, 120px); padding: clamp(100px, 16vh, 180px) var(--gutter) clamp(80px, 12vh, 140px); }
.pinfo__specs { align-self: start; position: sticky; top: 110px; border-top: 1px solid var(--line); }
.pinfo__specs > div { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.pinfo__specs dt { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--bronze); }
.pinfo__specs dd { font-family: var(--serif); font-size: 22px; line-height: 1.3; }
.pinfo__story .eyebrow { margin-bottom: 26px; }
.pinfo__lead { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 4.4vw, 68px); line-height: 1.08; margin-bottom: 40px; color: #e2c9a2; }
.pinfo__text p { color: var(--muted); font-size: 18px; max-width: 640px; margin-bottom: 20px; }
@media (max-width: 900px) { .pinfo { grid-template-columns: 1fr; } .pinfo__specs { position: static; order: 2; } }

.pgal { display: flex; flex-direction: column; gap: clamp(14px, 2vw, 32px); padding: 0 var(--gutter); }
.pgal__row--pair, .pgal__row--pair-v { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 32px); }
.pgal__img { overflow: hidden; border-radius: 2px; background: var(--ink-2); margin: 0; }
.pgal__row--full .pgal__img { aspect-ratio: 16 / 9; }
.pgal__row--pair .pgal__img { aspect-ratio: 4 / 3; }
.pgal__row--pair-v .pgal__img, .pgal__row--single-v .pgal__img { aspect-ratio: 3 / 4; }
.pgal__row--single-v { display: flex; justify-content: center; }
.pgal__row--single-v .pgal__img { width: min(560px, 100%); }
.pgal__img img { transform: scale(1.14); }
@media (max-width: 700px) {
  .pgal__row--pair { grid-template-columns: 1fr; }
  .pgal__row--full .pgal__img { aspect-ratio: 4 / 3; }
}

.pnext { display: block; padding: clamp(100px, 16vh, 180px) var(--gutter) clamp(60px, 10vh, 120px); text-align: center; }
.pnext .eyebrow { margin-bottom: 20px; }
.pnext__title { font-family: var(--serif); font-weight: 300; font-size: clamp(48px, 9vw, 150px); line-height: 1; margin-bottom: 48px; transition: color .5s var(--ease); }
.pnext:hover .pnext__title { color: #e2c9a2; }
.pnext__img { aspect-ratio: 21 / 9; overflow: hidden; border-radius: 2px; }
.pnext__img img { transition: transform 1.4s var(--ease); }
.pnext:hover .pnext__img img { transform: scale(1.04); }

/* ---------- RTL (Arabic) ---------- */
:root[lang="ar"] { --serif: 'Amiri', 'Cormorant Garamond', serif; --sans: 'IBM Plex Sans Arabic', 'Jost', sans-serif; }
[lang="ar"] em { font-style: normal; }
[lang="ar"] .eyebrow, [lang="ar"] .header__nav, [lang="ar"] .pill, [lang="ar"] .hero__meta, [lang="ar"] .phero__meta,
[lang="ar"] .film__chapters, [lang="ar"] .services__list li, [lang="ar"] .card__meta, [lang="ar"] .footer__bottom,
[lang="ar"] .cta__btn, [lang="ar"] .pinfo__specs dt, [lang="ar"] .cursor__label { letter-spacing: 0; text-transform: none; }
[lang="ar"] .eyebrow { font-size: 13px; }
[lang="ar"] .hero__title, [lang="ar"] .phero__title, [lang="ar"] .manifest__text, [lang="ar"] .about__title, [lang="ar"] .film__title,
[lang="ar"] .works__title, [lang="ar"] .expand__title, [lang="ar"] .process__title, [lang="ar"] .cta__title, [lang="ar"] .services__word,
[lang="ar"] .pinfo__lead, [lang="ar"] .pnext__title, [lang="ar"] .step h3 { line-height: 1.35; font-weight: 400; }
[lang="ar"] .hero__title, [lang="ar"] .phero__title { font-size: clamp(44px, 8vw, 130px); }
[lang="ar"] .manifest__text { font-size: clamp(28px, 4.4vw, 70px); }
[lang="ar"] .services__word { font-style: normal; }
[lang="ar"] .services__list li { font-size: clamp(22px, 3.2vw, 48px); }
[lang="ar"] body, [lang="ar"] .about__text, [lang="ar"] .step p, [lang="ar"] .pinfo__text p { line-height: 1.9; }
[dir="rtl"] .film__bar i, [dir="rtl"] .step::before { transform-origin: right; }
[lang="ar"] .card__meta span:first-child, [lang="ar"] .pnext__title, [lang="ar"] .phero__title, [lang="ar"] .film__title { font-family: 'Cormorant Garamond', serif; }

/* Arabic: marks above and below letters need room inside the reveal masks */
[lang="ar"] .wm { padding-top: .4em; margin-top: -.4em; padding-bottom: .4em; margin-bottom: -.4em; }
[lang="ar"] .line { padding-top: .35em; margin-top: -.35em; padding-bottom: .4em; margin-bottom: -.3em; }

/* Project gallery: soft fade instead of a bottom-up wipe */
.js .pgal__img { opacity: 0; transform: translateY(40px); }
@media (prefers-reduced-motion: reduce) { .js .pgal__img { opacity: 1; transform: none; } }

/* ---------- Process media: clip per step ---------- */
.process__media { position: relative; aspect-ratio: 4 / 3; max-width: 520px; overflow: hidden; border-radius: 2px; background: var(--ink-2); }
.pm { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.06); transition: opacity 1s var(--ease), transform 1.6s var(--ease); }
.pm.is-active { opacity: 1; transform: scale(1); }
.pm video, .pm img { filter: saturate(.85) contrast(1.03); }
.pm--still.is-active img { animation: pmZoom 9s linear both; }
@keyframes pmZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.process__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,13,11,0) 60%, rgba(15,13,11,.55)); pointer-events: none; }
.process__counter { position: absolute; z-index: 1; inset-inline-start: 16px; bottom: 16px; font-size: 11px; letter-spacing: .2em; color: rgba(244,238,228,.75); }
.process__counter b { font-weight: 400; color: var(--cream); }
.process__bar { position: absolute; z-index: 1; inset-inline: 16px; bottom: 8px; height: 1px; background: rgba(244,238,228,.2); }
.process__bar i { position: absolute; inset: 0; background: var(--cream); transform: scaleX(.2); transform-origin: left; }
[dir="rtl"] .process__bar i { transform-origin: right; }
@media (min-width: 901px) {
  .step { transition: opacity .6s var(--ease); }
  .process__steps:has(.step.is-current) .step:not(.is-current) { opacity: .4; }
}
@media (prefers-reduced-motion: reduce) { .pm--still.is-active img { animation: none; } }

/* ---------- Process (full screen, pinned) ---------- */
.proc__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--ink); }
.proc__media { position: absolute; inset: 0; }
.proc .pm { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.08); transition: opacity 1.2s var(--ease), transform 2.4s var(--ease); }
.proc .pm.is-active { opacity: 1; transform: scale(1); }
.proc .pm video, .proc .pm img { filter: saturate(.85) contrast(1.03); }
.proc .pm--still.is-active img { animation: pmZoom 10s linear both; }
.proc__shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(15,13,11,.82) 0%, rgba(15,13,11,.45) 45%, rgba(15,13,11,.1) 75%),
              linear-gradient(0deg, rgba(15,13,11,.7) 0%, rgba(15,13,11,0) 40%); }
[dir="rtl"] .proc__shade { background: linear-gradient(270deg, rgba(15,13,11,.82) 0%, rgba(15,13,11,.45) 45%, rgba(15,13,11,.1) 75%), linear-gradient(0deg, rgba(15,13,11,.7) 0%, rgba(15,13,11,0) 40%); }
.proc__head { position: absolute; inset-inline-start: var(--gutter); top: clamp(90px, 14vh, 140px); max-width: 620px; }
.proc__head .eyebrow { margin-bottom: 18px; color: rgba(244,238,228,.8); }
.proc__title { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 4.4vw, 68px); line-height: 1.04; }
.proc__title em { color: #e2c9a2; }
.proc__steps { position: absolute; inset-inline-start: var(--gutter); bottom: clamp(90px, 14vh, 140px); width: min(620px, calc(100% - 2 * var(--gutter))); height: 230px; }
.pstep { position: absolute; inset-inline: 0; bottom: 0; opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .9s var(--ease); pointer-events: none; }
.pstep.is-active { opacity: 1; transform: none; transition-delay: .15s; pointer-events: auto; }
.pstep__num { display: block; font-family: var(--serif); font-size: clamp(56px, 7vw, 110px); line-height: 1; color: rgba(226,201,162,.9); margin-bottom: 8px; }
.pstep h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.6vw, 56px); line-height: 1.1; margin-bottom: 14px; }
.pstep p { color: rgba(244,238,228,.78); font-size: 17px; max-width: 480px; }
.proc__nav { position: absolute; inset-inline-end: var(--gutter); bottom: clamp(90px, 14vh, 140px); display: flex; gap: 22px; align-items: center; font-size: 11px; letter-spacing: .2em; color: rgba(244,238,228,.4); }
.proc__nav span { transition: color .4s; }
.proc__nav span.is-active { color: var(--cream); }
.proc__bar { position: absolute; left: 0; right: 0; bottom: -14px; height: 1px; background: rgba(244,238,228,.2); }
.proc__bar b { position: absolute; inset: 0; background: var(--cream); transform: scaleX(0); transform-origin: left; }
@media (max-width: 700px) {
  .proc__nav { inset-inline: var(--gutter); bottom: 34px; justify-content: space-between; }
  .proc__steps { bottom: 90px; height: 260px; }
  .proc__shade { background: linear-gradient(0deg, rgba(15,13,11,.9) 0%, rgba(15,13,11,.5) 50%, rgba(15,13,11,.35) 100%); }
  [dir="rtl"] .proc__shade { background: linear-gradient(0deg, rgba(15,13,11,.9) 0%, rgba(15,13,11,.5) 50%, rgba(15,13,11,.35) 100%); }
}
[lang="ar"] .proc__title, [lang="ar"] .pstep h3 { line-height: 1.4; font-weight: 400; }
[lang="ar"] .proc__nav { letter-spacing: 0; }
@media (prefers-reduced-motion: reduce) { .proc .pm--still.is-active img { animation: none; } }

/* ---------- Project walkthrough film ---------- */
.pwalk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 100px); align-items: center; padding: clamp(40px, 8vh, 100px) var(--gutter) clamp(100px, 16vh, 180px); }
.pwalk__text .eyebrow { margin-bottom: 20px; color: #e2c9a2; }
.pwalk__title { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 5vw, 80px); line-height: 1.04; margin-bottom: 18px; }
.pwalk__title em { color: #e2c9a2; }
.pwalk__text p:not(.eyebrow) { color: var(--muted); }
.pwalk__video { justify-self: center; width: min(400px, 100%); aspect-ratio: 9 / 16; overflow: hidden; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
@media (max-width: 800px) {
  .pwalk { grid-template-columns: 1fr; }
  .pwalk__video { width: min(320px, 100%); }
}
