/* ==========================================================================
   MACAP — cinematic theme
   Palette taken from the logo: film-strip black, star red, paper white.
   ========================================================================== */

@font-face {
  font-family: "Lifta";
  src: url("../assets/fonts/Liftaswashfixed-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

:root {
  --ink: #080707;
  --ink-2: #0f0d0c;
  --ink-3: #181514;
  --bone: #efe8dc;
  --bone-2: rgba(239, 232, 220, 0.62);
  --bone-3: rgba(239, 232, 220, 0.34);
  --line: rgba(239, 232, 220, 0.12);
  --red: #e42b24;
  --red-hot: #ff3b2f;
  --red-deep: #8f130f;

  --f-display: "Cabinet Grotesk", "Satoshi", system-ui, sans-serif;
  --f-body: "Satoshi", system-ui, sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --f-ar: "Lifta", "Amiri", "Times New Roman", serif;

  --gutter: clamp(16px, 3vw, 44px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --nav-h: 76px;
}

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

html { background: var(--ink); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: normal; }
::selection { background: var(--red); color: var(--bone); }

.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -0.01em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page { position: relative; z-index: 2; background: var(--ink); overflow-x: clip; }

.display {
  font-family: var(--f-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2.8rem, 8.4vw, 9.5rem);
  line-height: 0.86;
  letter-spacing: -0.045em;
}
.display .serif { color: var(--red); font-size: 1.08em; letter-spacing: -0.02em; }

/* Split helpers */
.split-line { overflow: clip; padding-bottom: 0.06em; margin-bottom: -0.06em; }

/* ---------- Atmosphere ---------- */
.grain {
  position: fixed; inset: -100%; z-index: 90; pointer-events: none;
  opacity: 0.075;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.6 -0.3'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-8%, 5%); }
  40% { transform: translate(6%, -9%); }
  60% { transform: translate(-4%, 11%); }
  80% { transform: translate(10%, -3%); }
  100% { transform: translate(0, 0); }
}

/* Lights-off spotlight */
.lights {
  --x: 50vw; --y: 50vh; --r: 190px;
  position: fixed; inset: 0; z-index: 80; pointer-events: none;
  background: radial-gradient(circle var(--r) at var(--x) var(--y), transparent 0%, transparent 35%, rgba(3, 2, 2, 0.6) 62%, rgba(3, 2, 2, 0.965) 100%);
  opacity: 0; visibility: hidden;
}
body.is-dark .lights { visibility: visible; }

/* ---------- Cursor ---------- */
.cursor { position: fixed; inset: 0 auto auto 0; z-index: 120; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--red); }
.cursor__ring {
  width: 42px; height: 42px; margin: -21px 0 0 -21px;
  border: 1px solid rgba(239, 232, 220, 0.45);
  display: grid; place-items: center;
  transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), background-color .4s, border-color .4s, opacity .3s;
}
.cursor__label {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); opacity: 0; transform: scale(.6); transition: opacity .3s, transform .5s var(--ease);
}
.cursor.is-label .cursor__ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--bone); border-color: var(--bone); }
.cursor.is-label .cursor__label { opacity: 1; transform: scale(1); }
.cursor.is-red .cursor__ring { background: var(--red); border-color: var(--red); }
.cursor.is-red .cursor__label { color: var(--bone); }
.cursor.is-link .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--red); }
.cursor.is-hide .cursor__ring { opacity: 0; }
.cursor.is-down .cursor__ring { transform: scale(.85); }

/* ---------- Roll text hover ---------- */
/* JS wraps .roll text in two stacked copies; hover slides the second into view */
.roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.3; height: 1.3em; }
.roll-inner { display: flex; flex-direction: column; transition: transform .65s var(--ease); }
.roll-inner > span { display: block; height: 1.3em; white-space: nowrap; }
a:hover .roll-inner, button:hover .roll-inner, a.roll:hover .roll-inner { transform: translateY(-1.3em); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  height: 56px; padding: 0 28px; border-radius: 999px;
  font-family: var(--f-body); font-weight: 500; font-size: 15px; letter-spacing: .01em;
  overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .6s var(--ease-io);
}
.btn:hover::before { transform: translateY(0); }
.btn--red { background: var(--red); color: var(--bone); }
.btn--red::before { background: var(--bone); }
.btn--red:hover { color: var(--ink); }
.btn--ghost { border: 1px solid rgba(239, 232, 220, 0.35); color: var(--bone); backdrop-filter: blur(6px); }
.btn--ghost::before { background: var(--bone); }
.btn--ghost:hover { color: var(--ink); border-color: var(--bone); }
.btn__icon { font-size: 18px; transition: transform .6s var(--ease); }
.btn:hover .btn__icon { transform: translateX(4px) rotate(-45deg); }

.link-arrow { display: inline-flex; align-items: center; gap: 16px; font-weight: 500; font-size: 16px; }
.link-arrow__circle {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 18px;
  transition: background-color .5s var(--ease), border-color .5s var(--ease), transform .6s var(--ease);
}
.link-arrow:hover .link-arrow__circle { background: var(--red); border-color: var(--red); transform: rotate(-45deg); }

/* ---------- Preloader ---------- */
.loader { display: none; }
.js .loader {
  display: block; position: fixed; inset: 0; z-index: 200; background: var(--ink);
  color: var(--bone);
}
.loader__bar { position: absolute; left: 0; right: 0; height: 0; background: #000; z-index: 2; }
.loader__bar--top { top: 0; }
.loader__bar--bottom { bottom: 0; }
.loader__center { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 28px; }
.loader__mark { width: clamp(64px, 7vw, 92px); height: auto; overflow: visible; }
.loader__count { position: absolute; right: var(--gutter); bottom: calc(var(--gutter) - 8px); font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.04em; line-height: 1; display: flex; align-items: flex-start; gap: 4px; }
.loader__pct { font-family: var(--f-mono); font-size: 12px; font-weight: 400; color: var(--red); margin-top: 6px; }
.reduced .loader, .no-loader .loader { display: none !important; }

/* ---------- Shutter transition ---------- */
.shutter { position: fixed; inset: 0; z-index: 150; pointer-events: none; display: grid; grid-template-columns: repeat(5, 1fr); }
.shutter span { background: var(--ink-3); transform: scaleY(0); transform-origin: bottom; }
.shutter span:nth-child(odd) { background: #0b0909; }
.shutter span:nth-child(3) { background: var(--red-deep); }
.shutter__mark { position: absolute; left: 50%; top: 50%; width: 54px; height: 78px; margin: -39px 0 0 -27px; color: var(--bone); opacity: 0; }
.entering .shutter span { transform: scaleY(1); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  transition: transform .7s var(--ease-io), background-color .5s, backdrop-filter .5s;
}
.nav.is-scrolled { background: rgba(8, 7, 7, 0.55); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.nav.is-scrolled::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__links { display: flex; gap: clamp(18px, 2.6vw, 40px); font-size: 14px; font-weight: 500; position: absolute; left: 50%; transform: translateX(-50%); }
.nav__links a { color: var(--bone-2); transition: color .4s; }
.nav__links a:hover { color: var(--bone); }
.nav__right { display: flex; align-items: center; gap: 18px; }
.nav__tc { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--bone-3); display: inline-flex; align-items: center; gap: 8px; }
.nav__cta { height: 44px; padding: 0 22px; font-size: 14px; }
.rec { width: 7px; height: 7px; border-radius: 50%; background: var(--red); display: inline-block; animation: rec 1.6s steps(1) infinite; }
@keyframes rec { 50% { opacity: .15; } }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.nav__burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--bone); transition: transform .6s var(--ease), top .6s var(--ease); }
.nav__burger span:nth-child(1) { top: 18px; }
.nav__burger span:nth-child(2) { top: 25px; }
body.menu-open .nav__burger span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

/* ---------- Menu overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: 95; background: var(--ink-2);
  clip-path: inset(0 0 100% 0); visibility: hidden;
}
.menu__inner { height: 100%; display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr auto; gap: 24px; padding: calc(var(--nav-h) + 30px) var(--gutter) var(--gutter); }
.menu__list { list-style: none; align-self: center; }
.menu__list li { overflow: hidden; border-bottom: 1px solid var(--line); }
.menu__list a { display: flex; align-items: baseline; gap: 20px; padding: 6px 0; }
.menu__no { font-family: var(--f-mono); font-size: 12px; color: var(--red); }
.menu__txt { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.6rem, 8vw, 6.5rem); text-transform: uppercase; letter-spacing: -.045em; line-height: 1; display: inline-block; transition: transform .7s var(--ease), color .4s; }
.menu__list a:hover .menu__txt { transform: translateX(18px); color: var(--red); font-family: var(--f-serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -.02em; }
.menu__preview { align-self: center; aspect-ratio: 4/5; max-height: 64vh; justify-self: end; width: min(100%, 440px); overflow: hidden; border-radius: 4px; }
.menu__preview img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15); }
.menu__foot { grid-column: 1 / -1; display: flex; gap: 32px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--bone-2); }
.menu__foot a:hover { color: var(--red); }

/* ---------- HERO ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; background: #000; }
.hero__media { position: absolute; inset: 0; will-change: transform; }
.hero__fallback, .hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__fallback { filter: saturate(.75) contrast(1.15) brightness(.55); background: #000; }
.hero.gl-ready .hero__fallback { opacity: 0; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 70% at 50% 45%, transparent 0%, rgba(8, 7, 7, .35) 60%, rgba(8, 7, 7, .85) 100%),
    linear-gradient(180deg, rgba(8, 7, 7, .55) 0%, transparent 25%, transparent 55%, rgba(8, 7, 7, .92) 100%);
}
.hero__bar { position: absolute; left: 0; right: 0; height: 0; background: #000; z-index: 3; }
.hero__bar--top { top: 0; }
.hero__bar--bottom { bottom: 0; }

.hud { position: absolute; inset: calc(var(--nav-h) + 10px) var(--gutter) var(--gutter); z-index: 4; pointer-events: none; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(239, 232, 220, .55); }
.hud > span { position: absolute; display: inline-flex; align-items: center; gap: 8px; }
.hud__tl { left: 0; top: 0; color: var(--bone); }
.hud__tr { right: 0; top: 0; }
.hud__bl { left: 0; bottom: 0; display: none !important; }
.hud__br { right: 0; bottom: 0; display: none !important; }
.hud__frame { inset: 26px 0 0 0; }
.hud__frame::before, .hud__frame::after { content: ""; position: absolute; width: 22px; height: 22px; border: 1px solid rgba(239, 232, 220, .4); }
.hud__frame::before { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.hud__frame::after { right: 0; top: 0; border-left: 0; border-bottom: 0; }

.hero__content {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--gutter) clamp(84px, 11vh, 120px);
}
.hero__eyebrow { display: flex; align-items: center; gap: 14px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-2); margin-bottom: clamp(14px, 2vh, 26px); }
.dash { width: 38px; height: 1px; background: var(--red); display: inline-block; }
.hero__title {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(3.4rem, 12.6vw, 15.5rem); line-height: .82; letter-spacing: -.055em;
  width: 100%;
}
.hero__line { display: block; overflow: clip; padding: .03em 0 .05em; white-space: nowrap; }
.hero__line:nth-child(2) { padding-left: 13vw; }
.hero__word { display: inline-block; will-change: transform; }
.hero__title .serif { color: var(--red); font-size: 1.12em; letter-spacing: -.03em; line-height: .7; padding-right: .06em; }
.hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: clamp(22px, 3.4vh, 40px); }
.hero__lede { max-width: 420px; font-size: clamp(15px, 1.15vw, 17px); color: var(--bone-2); }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__reel { position: absolute; left: var(--gutter); bottom: var(--gutter); z-index: 6; display: flex; align-items: center; gap: 18px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--bone-2); }
.hero__reel-cur { color: var(--bone); font-weight: 500; }
.hero__reel-name { min-width: 190px; }
.hero__reel-track { position: relative; width: 120px; height: 1px; background: rgba(239, 232, 220, .2); overflow: hidden; }
.hero__reel-track i { position: absolute; inset: 0; background: var(--red); transform-origin: left; transform: scaleX(0); }
.hero__scroll { position: absolute; right: var(--gutter); bottom: var(--gutter); z-index: 6; display: flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-2); }
.hero__scroll i { width: 1px; height: 42px; background: linear-gradient(var(--bone), transparent); animation: drip 2.2s var(--ease-io) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- MANIFESTO ---------- */
.manifesto { position: relative; padding: clamp(140px, 22vh, 260px) var(--gutter) clamp(120px, 18vh, 220px); }
.manifesto__star { position: absolute; right: var(--gutter); top: clamp(60px, 10vh, 120px); width: clamp(70px, 9vw, 140px); height: auto; aspect-ratio: 1; color: var(--red); opacity: .9; }
.manifesto__kicker { font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 36px; }
.manifesto__text {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2rem, 4.9vw, 5.6rem); line-height: 1.02; letter-spacing: -.04em;
  max-width: 1500px;
}
.manifesto__text .word { display: inline-block; }
.pill {
  display: inline-block; vertical-align: middle;
  width: 1.9em; height: .82em; border-radius: 999px; margin: -.1em .08em 0;
  background: var(--img) center / cover no-repeat;
  filter: grayscale(1) contrast(1.1);
  transition: filter .6s var(--ease);
}
.pill:hover { filter: none; }
.manifesto__foot { display: grid; grid-template-columns: minmax(0, 520px) auto; justify-content: space-between; align-items: end; gap: 40px; margin-top: clamp(70px, 10vh, 130px); padding-top: 32px; border-top: 1px solid var(--line); }
.manifesto__foot p { color: var(--bone-2); font-size: 17px; }

/* ---------- PILLARS / stacking cards ---------- */
.pillars { padding: 0 var(--gutter) clamp(100px, 16vh, 200px); }
.pillars__head { padding-bottom: clamp(60px, 9vh, 110px); }
.stack { display: grid; gap: 4vh; }
.card {
  position: sticky; top: calc(var(--nav-h) + 3vh);
  height: min(78vh, 760px); min-height: 520px;
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(20px, 3vw, 48px);
  padding: clamp(20px, 2.6vw, 40px);
  background: var(--tint, var(--ink-2));
  border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; transform-origin: 50% 0%;
  will-change: transform;
}
.card:nth-child(2) { top: calc(var(--nav-h) + 3vh + 22px); }
.card:nth-child(3) { top: calc(var(--nav-h) + 3vh + 44px); }
.card--red { background: var(--red); border-color: transparent; }
.card--red .card__copy p { color: rgba(239, 232, 220, .86); }
.card--red .card__roman { color: var(--ink); }
.card__copy { display: flex; flex-direction: column; justify-content: space-between; }
.card__roman { font-family: var(--f-serif); font-style: italic; font-size: clamp(3rem, 6vw, 6rem); line-height: 1; color: var(--red); }
.card__title { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.4rem, 5.4vw, 6rem); line-height: .86; letter-spacing: -.045em; }
.card__copy p { max-width: 420px; color: var(--bone-2); font-size: 17px; }
.card__media { position: relative; overflow: hidden; border-radius: 6px; }
.card__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(.9); transform: scale(1.12); transition: filter 1s var(--ease); }
.card__media:hover img { filter: grayscale(0) contrast(1.05); }
.card__shadow { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; border-radius: inherit; }

/* ---------- CRAFTS / film strip ---------- */
.crafts { position: relative; background: var(--ink); }
.crafts__pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(26px, 4vh, 48px); padding: calc(var(--nav-h) + 10px) 0 40px; overflow: hidden; }
.crafts__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; padding: 0 var(--gutter); }
.crafts__head .display { font-size: clamp(2.6rem, 6.6vw, 7.6rem); }
.crafts__aside { max-width: 360px; display: grid; gap: 22px; justify-items: start; }
.crafts__aside p { color: var(--bone-2); }
.lights-btn { display: inline-flex; align-items: center; gap: 12px; height: 46px; padding: 0 20px 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; transition: border-color .4s, background-color .4s; }
.lights-btn:hover { border-color: var(--bone-3); }
.lights-btn__bulb { width: 18px; height: 18px; border-radius: 50%; background: #f7d36b; box-shadow: 0 0 18px 4px rgba(247, 211, 107, .55); transition: background-color .4s, box-shadow .4s; }
body.is-dark .lights-btn { border-color: var(--red); }
body.is-dark .lights-btn__bulb { background: #3a3530; box-shadow: none; }

.strip {
  position: relative; padding: 34px 0;
  background: #050404;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.strip::before, .strip::after {
  content: ""; position: absolute; left: 0; right: 0; height: 12px; z-index: 2;
  background: repeating-linear-gradient(90deg, transparent 0 14px, rgba(239, 232, 220, .82) 14px 30px, transparent 30px 44px);
  -webkit-mask: linear-gradient(#000, #000); border-radius: 2px;
  opacity: .9;
}
.strip::before { top: 11px; }
.strip::after { bottom: 11px; }
.strip__track { display: flex; gap: 14px; padding: 0 var(--gutter); width: max-content; will-change: transform; }
.frame { position: relative; width: clamp(300px, 33vw, 520px); flex: none; display: grid; grid-template-rows: auto 1fr; gap: 0; background: #0c0a0a; }
.frame__no { position: absolute; top: -27px; left: 6px; font-family: var(--f-mono); font-size: 10px; color: #c9a227; letter-spacing: .12em; z-index: 3; }
.frame__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.frame__img img { width: 118%; max-width: none; height: 100%; object-fit: cover; margin-left: -9%; filter: grayscale(1) contrast(1.2) brightness(.85); transition: filter .9s var(--ease), transform 1.2s var(--ease); }
.frame:hover .frame__img img { filter: grayscale(0) contrast(1.05) brightness(1); transform: scale(1.05); }
.frame__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(5, 4, 4, .9)); }
.frame__meta { padding: 18px 20px 24px; display: grid; gap: 10px; align-content: start; }
.frame__meta h3 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.6rem, 2.4vw, 2.5rem); letter-spacing: -.035em; line-height: .95; }
.frame:hover .frame__meta h3 { color: var(--red); }
.frame__meta p { color: var(--bone-2); font-size: 15px; line-height: 1.5; }
.frame--end { width: clamp(300px, 30vw, 460px); display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 0 30px; background: transparent; }
.frame__end-txt { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.4rem, 4vw, 4.4rem); line-height: .9; letter-spacing: -.045em; }
.frame__end-txt .serif { color: var(--red); }
.crafts__progress { margin: 0 var(--gutter); height: 1px; background: var(--line); position: relative; }
.crafts__progress i { position: absolute; inset: 0; background: var(--red); transform-origin: left; transform: scaleX(0); }

/* ---------- PROGRAMS / accordion ---------- */
.programs { padding: clamp(140px, 20vh, 240px) var(--gutter) clamp(110px, 16vh, 200px); }
.programs__head { display: grid; grid-template-columns: 1.4fr 1fr; align-items: end; gap: 40px; margin-bottom: clamp(50px, 8vh, 90px); }
.programs__head p { color: var(--bone-2); max-width: 440px; justify-self: end; }
.accordion { display: flex; gap: 10px; height: min(74vh, 720px); min-height: 520px; }
.acc {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: 8px;
  background: var(--ink-2); outline: none;
}
.acc:focus-visible { box-shadow: 0 0 0 2px var(--red); }
.acc__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(.6); transform: scale(1.15); transition: filter 1s var(--ease), transform 1.6s var(--ease); }
.acc.is-open .acc__bg { filter: grayscale(.15) contrast(1.05) brightness(.7); transform: scale(1); }
.acc__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 7, 7, .2), rgba(8, 7, 7, .1) 40%, rgba(8, 7, 7, .92)); }
.acc__no { position: absolute; top: 20px; left: 22px; font-family: var(--f-mono); font-size: 12px; color: var(--red); letter-spacing: .1em; }
.acc__vert {
  position: absolute; left: 22px; bottom: 24px; transform-origin: 0 100%; transform: rotate(-90deg) translateY(100%);
  white-space: nowrap; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.4rem, 2vw, 2rem); letter-spacing: -.03em;
  transition: opacity .5s var(--ease);
}
.acc.is-open .acc__vert { opacity: 0; }
.acc__body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(22px, 2.6vw, 40px); display: grid; gap: 14px; justify-items: start; opacity: 0; transform: translateY(30px); transition: opacity .5s var(--ease), transform .8s var(--ease); pointer-events: none; min-width: 440px; }
.acc.is-open .acc__body { opacity: 1; transform: none; transition-delay: .25s; pointer-events: auto; }
.acc__tag { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; border: 1px solid rgba(239, 232, 220, .35); border-radius: 999px; padding: 6px 12px; }
.acc__tag--live { border-color: var(--red); color: var(--bone); background: var(--red); }
.acc__title { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 3.6vw, 3.8rem); line-height: .9; letter-spacing: -.045em; max-width: 620px; }
.acc__body p { max-width: 520px; color: var(--bone-2); }
.programs__outro { display: grid; grid-template-columns: minmax(0, 640px) auto; justify-content: space-between; align-items: end; gap: 40px; margin-top: clamp(60px, 9vh, 110px); }
.programs__outro p { font-size: clamp(18px, 1.6vw, 24px); line-height: 1.4; color: var(--bone); }

/* ---------- WORK list ---------- */
.work { position: relative; padding: clamp(100px, 16vh, 200px) var(--gutter); }
.work__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: clamp(40px, 7vh, 80px); }
.work__list { list-style: none; border-top: 1px solid var(--line); }
.work__row { border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.work__row::before { content: ""; position: absolute; inset: 0; background: var(--red); transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--ease-io); }
.work__row:hover::before { transform: scaleY(1); }
.work__row a { position: relative; display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 20px; padding: clamp(18px, 2.6vw, 34px) 6px; }
.work__idx { font-family: var(--f-mono); font-size: 12px; color: var(--bone-3); transition: color .4s; }
.work__title { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 5.6vw, 6.4rem); line-height: .9; letter-spacing: -.045em; transition: transform .8s var(--ease); }
.work__type { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--bone-2); transition: color .4s; }
.work__row:hover .work__title { transform: translateX(24px); }
.work__row:hover .work__idx, .work__row:hover .work__type { color: var(--bone); }
.work__float { position: fixed; left: 0; top: 0; z-index: 60; width: clamp(260px, 24vw, 380px); aspect-ratio: 4/5; pointer-events: none; opacity: 0; }
.work__float-inner { position: absolute; inset: 0; overflow: hidden; border-radius: 6px; clip-path: inset(0 round 6px); }
.work__float img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- QUOTE ---------- */
.quote { position: relative; padding: clamp(120px, 20vh, 240px) var(--gutter); text-align: center; display: grid; justify-items: center; gap: 40px; }
.quote__star { width: 64px; height: 64px; color: var(--red); }
.quote__text { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.9rem, 4.2vw, 4.6rem); line-height: 1.04; letter-spacing: -.035em; max-width: 1280px; }
.quote__text .serif { color: var(--red); }

/* ---------- PARTNERS / marquee ---------- */
.partners { padding: clamp(30px, 6vh, 80px) 0 clamp(110px, 16vh, 190px); overflow: hidden; }
.marquee { overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-flex; align-items: center; will-change: transform; }
.marquee--big { padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(-2deg) scale(1.04); background: var(--red); color: var(--ink); }
.marquee--big span { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(3rem, 8vw, 8.5rem); letter-spacing: -.045em; line-height: 1; padding: 0 .3em; }
.marquee--big span.serif { font-family: var(--f-serif); font-weight: 400; text-transform: none; color: var(--bone); }
.marquee--big svg { width: clamp(36px, 4.4vw, 72px); height: auto; aspect-ratio: 1; color: var(--ink); flex: none; }
.partners__inner { margin-top: clamp(80px, 13vh, 150px); display: grid; gap: 34px; }
.partners__label { padding: 0 var(--gutter); font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-3); }
.marquee--logos { -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee--logos img { height: 170px; width: auto; margin: -30px clamp(-10px, -0.5vw, 0px); filter: invert(1) brightness(.85); opacity: .55; transition: opacity .4s, filter .4s; }
.marquee--logos img:hover { opacity: 1; filter: invert(1) brightness(1); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(40px, 6vw, 120px); padding: clamp(100px, 16vh, 200px) var(--gutter); border-top: 1px solid var(--line); }
.faq__side { position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; display: grid; gap: 22px; }
.faq__side p { color: var(--bone-2); max-width: 300px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 30px 0; text-align: left; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.25rem, 2vw, 1.9rem); letter-spacing: -.025em; transition: color .4s; }
.faq__q:hover { color: var(--red); }
.faq__icon { position: relative; flex: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; transition: background-color .5s var(--ease), border-color .5s, transform .7s var(--ease); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px; background: currentColor; transition: transform .6s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item.is-open .faq__icon { background: var(--red); border-color: var(--red); transform: rotate(180deg); color: var(--bone); }
.faq__item.is-open .faq__icon::after { transform: rotate(0deg); }
.faq__a { height: 0; overflow: hidden; }
.faq__a p { padding: 0 64px 32px 0; color: var(--bone-2); font-size: 17px; max-width: 680px; }
.no-js .faq__a, html:not(.js) .faq__a { height: auto; }

/* ---------- CTA ---------- */
.cta { position: relative; min-height: 115vh; display: grid; place-items: center; align-content: center; text-align: center; gap: 30px; padding: 160px var(--gutter); overflow: hidden; }
.cta__img { position: absolute; left: 50%; top: 50%; width: min(36vw, 480px); aspect-ratio: 3/4; overflow: hidden; border-radius: 6px; opacity: .4; }
.cta__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.2) brightness(.7); }
.cta__title { position: relative; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(3.4rem, 13.5vw, 16rem); line-height: .82; letter-spacing: -.055em; text-shadow: 0 10px 60px rgba(0, 0, 0, .5); }
.cta__line { display: block; overflow: clip; padding-bottom: .04em; }
.cta__line .serif { color: var(--red); }
.cta__sub { position: relative; max-width: 460px; color: var(--bone-2); }
.cta__btn { position: relative; width: 190px; height: 190px; display: grid; place-items: center; margin-top: 10px; }
.cta__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 14s linear infinite; }
.cta__ring text { font-family: var(--f-mono); font-size: 13.2px; letter-spacing: .26em; fill: var(--bone); }
.cta__btn-core { width: 104px; height: 104px; border-radius: 50%; background: var(--red); display: grid; place-items: center; font-size: 30px; transition: transform .7s var(--ease), background-color .5s; }
.cta__btn:hover .cta__btn-core { transform: scale(1.15) rotate(-45deg); background: var(--bone); color: var(--ink); }
.cta__btn:hover .cta__ring { animation-duration: 5s; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- FOOTER ---------- */
.footer { position: relative; z-index: 1; background: var(--ink-2); overflow: hidden; }
.footer__inner { padding: clamp(80px, 12vh, 140px) var(--gutter) 28px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; border-bottom: 1px solid var(--line); }
.footer__logo { width: 240px; height: auto; margin-bottom: 24px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; color: var(--bone-2); }
.footer__col--brand p { max-width: 340px; font-size: 15px; }
.footer__col h4 { font-family: var(--f-mono); font-weight: 400; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-3); margin-bottom: 10px; }
.footer__col a { color: var(--bone); }
.footer__col a:hover { color: var(--red); }
.footer__col--ar { font-family: var(--f-ar); font-size: 24px; line-height: 1.5; color: var(--bone); align-items: flex-end; text-align: right; }
.footer__word { display: flex; justify-content: space-between; font-family: var(--f-display); font-weight: 800; font-size: 25.5vw; line-height: .78; letter-spacing: -.06em; margin: 40px -0.02em 10px; color: var(--bone); overflow: hidden; padding-top: .04em; }
.footer__word span { display: inline-block; }
.footer__word span:nth-child(3) { color: var(--red); }
.footer__legal { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--bone-3); }
.footer__legal-links { display: flex; gap: 22px; }
.footer__legal a:hover, .footer__top:hover { color: var(--bone); }
.footer__top { font-size: 13px; color: var(--bone-2); }

/* ==========================================================================
   WORK PAGE
   ========================================================================== */
.phero { position: relative; padding: calc(var(--nav-h) + clamp(80px, 16vh, 180px)) var(--gutter) clamp(60px, 10vh, 120px); }
.phero__meta { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-3); margin-bottom: 30px; }
.phero__meta b { color: var(--red); font-weight: 400; }
.phero__title { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(3.2rem, 11vw, 13rem); line-height: .84; letter-spacing: -.055em; }
.phero__title .serif { color: var(--red); }
.phero__line { display: block; overflow: clip; padding-bottom: .04em; }
.phero__intro { display: grid; grid-template-columns: 1fr minmax(0, 460px); margin-top: clamp(30px, 6vh, 70px); }
.phero__intro p { grid-column: 2; color: var(--bone-2); font-size: 17px; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 26px); padding: 0 var(--gutter) clamp(120px, 20vh, 240px); align-items: start; }
.gallery__col { display: grid; gap: clamp(12px, 1.6vw, 26px); will-change: transform; }
.gallery__col:nth-child(2) { margin-top: 18vh; }
.still { position: relative; overflow: hidden; border-radius: 6px; background: var(--ink-2); }
.still img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(.85); transform: scale(1.15); transition: filter 1s var(--ease); }
.still:hover img { filter: none; }
.still figcaption { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--bone); opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .6s var(--ease); }
.still::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 60%, rgba(0, 0, 0, .7)); opacity: 0; transition: opacity .5s; }
.still:hover::after, .still:hover figcaption { opacity: 1; transform: none; }
.still figcaption { z-index: 2; }

.lightbox { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; background: rgba(5, 4, 4, .94); visibility: hidden; opacity: 0; padding: 70px var(--gutter); }
.lightbox img { max-width: min(1200px, 100%); max-height: 78vh; width: auto; height: auto; object-fit: contain; border-radius: 4px; }
.lightbox__cap { margin-top: 18px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-2); text-align: center; }
.lightbox__close { position: absolute; top: 22px; right: var(--gutter); font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--bone); }
.lightbox__nav { position: absolute; top: 50%; width: 56px; height: 56px; margin-top: -28px; border: 1px solid var(--line); border-radius: 50%; font-size: 18px; transition: background-color .4s; }
.lightbox__nav:hover { background: var(--red); border-color: var(--red); }
.lightbox__nav--prev { left: var(--gutter); }
.lightbox__nav--next { right: var(--gutter); }

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 140px); padding: 0 var(--gutter) clamp(120px, 18vh, 220px); }
.contact__info { display: grid; gap: 36px; align-content: start; position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; }
.contact__block h4 { font-family: var(--f-mono); font-weight: 400; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-3); margin-bottom: 10px; }
.contact__block a, .contact__block span { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 2.2rem); letter-spacing: -.03em; line-height: 1.15; }
.contact__block a:hover { color: var(--red); }
.form { display: grid; gap: 8px; }
.field { position: relative; padding: 26px 0 14px; border-bottom: 1px solid var(--line); }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field label { display: flex; gap: 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-3); transition: color .4s; }
.field label b { color: var(--red); font-weight: 400; }
.field:focus-within label { color: var(--bone); }
.field input, .field textarea { width: 100%; margin-top: 10px; background: transparent; border: 0; outline: 0; color: var(--bone); font-family: var(--f-display); font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 2.2rem); letter-spacing: -.02em; resize: none; }
.field input::placeholder, .field textarea::placeholder { color: rgba(239, 232, 220, .18); }
.field.is-invalid { border-color: var(--red); }
.field__err { font-size: 13px; color: var(--red-hot); margin-top: 6px; min-height: 0; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.form__actions { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 40px; flex-wrap: wrap; }
.form__status { font-size: 15px; color: var(--bone-2); max-width: 360px; }
.form__status.is-ok { color: var(--bone); }
.form__status.is-err { color: var(--red-hot); }
.btn--xl { height: 72px; padding: 0 38px; font-size: 17px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .nav__links, .nav__tc { display: none; }
  .nav__burger { display: block; }
  .card { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: auto; min-height: 0; }
  .card__media { aspect-ratio: 16 / 10; }
  .card__copy { gap: 18px; }
  .programs__head, .manifesto__foot, .programs__outro { grid-template-columns: 1fr; }
  .programs__head p { justify-self: start; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__col--ar { align-items: flex-start; text-align: right; }
  .faq { grid-template-columns: 1fr; }
  .faq__side { position: static; }
  .contact { grid-template-columns: 1fr; }
  .contact__info { position: static; }
}

@media (max-width: 860px) {
  .hero__bottom { flex-direction: column; align-items: flex-start; }
  .hero__line:nth-child(2) { padding-left: 0; }
  .hero__reel-name, .hero__reel-track { display: none; }
  .crafts__head { flex-direction: column; align-items: flex-start; }
  .strip { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .strip::-webkit-scrollbar { display: none; }
  .crafts__progress { display: none; }
  .frame { width: 78vw; }
  .accordion { flex-direction: column; height: auto; min-height: 0; }
  .acc { flex: none; height: 96px; transition: height .8s var(--ease); }
  .acc.is-open { height: 460px; }
  .acc__vert { transform: none; left: 60px; bottom: auto; top: 30px; font-size: 1.5rem; }
  .acc__no { top: 36px; }
  .acc__body { min-width: 0; }
  .work__row a { grid-template-columns: 1fr; gap: 8px; }
  .work__idx { display: none; }
  .work__float { display: none; }
  .menu__inner { grid-template-columns: 1fr; }
  .menu__preview { display: none; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery__col:nth-child(2) { margin-top: 10vh; }
  .phero__intro { grid-template-columns: 1fr; }
  .phero__intro p { grid-column: 1; }
  .form__row { grid-template-columns: 1fr; }
  .cta__img { width: 62vw; }
}

@media (max-width: 560px) {
  :root { --nav-h: 66px; }
  .nav__cta { display: none; }
  .hud__tr { display: none; }
  .hero__ctas .btn { height: 50px; padding: 0 22px; }
  .hero__scroll { display: none; }
  .card { padding: 16px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__col--ar { align-items: flex-start; }
  .faq__a p { padding-right: 0; }
  .marquee--logos img { height: 120px; margin: -20px -6px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__col:nth-child(2) { margin-top: 0; }
  .cta__btn { width: 160px; height: 160px; }
  .cta__btn-core { width: 88px; height: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .rec, .hero__scroll i, .cta__ring { animation: none !important; }
  * { transition-duration: .01ms !important; }
}

/* Inner-page additions */
.phero__line > span { display: inline-block; }
.cta--short { min-height: 0; padding: clamp(80px, 14vh, 160px) var(--gutter) clamp(120px, 18vh, 200px); border-top: 1px solid var(--line); }
.cta--short .cta__title { mix-blend-mode: normal; margin-bottom: 20px; }
.form__count { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--bone-3); text-align: right; margin-top: 4px; }
.contact__block--ar span { font-family: var(--f-ar); font-weight: 400; font-size: clamp(1.3rem, 2vw, 1.8rem); letter-spacing: 0; line-height: 1.6; }
.still { cursor: pointer; }
.lightbox figure { display: grid; justify-items: center; }

/* ==========================================================================
   PNG logo
   ========================================================================== */
.nav__logo { height: 42px; width: auto; transition: opacity .4s, transform .8s var(--ease); }
.nav__brand:hover .nav__logo { opacity: .85; transform: scale(.98); }
.footer__logo { width: min(320px, 100%); }
.shutter__mark { width: 48px; height: auto; margin: 0; transform: translate(-50%, -50%); border-radius: 2px; }
.loader__frame { position: relative; width: clamp(280px, 52vw, 680px); }
.loader__logo { width: 100%; height: auto; will-change: clip-path, filter; }
.loader__scan { position: absolute; top: -18%; bottom: -18%; left: 0; width: 2px; margin-left: -1px; background: var(--red); box-shadow: 0 0 22px 4px rgba(228, 43, 36, .65); transform-origin: 50% 50%; }
.loader__tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--bone-3); }

/* ==========================================================================
   Language switcher
   ========================================================================== */
.lang { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang button { height: 30px; min-width: 34px; padding: 0 9px; border-radius: 999px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--bone-2); transition: background-color .4s var(--ease), color .4s; }
.lang button:hover { color: var(--bone); }
.lang button[aria-pressed="true"] { background: var(--bone); color: var(--ink); }
.lang button[lang="ar"] { font-family: var(--f-ar); font-size: 17px; letter-spacing: 0; line-height: 1; }
.i18n-pending body { opacity: 0; }

@media (max-width: 560px) {
  .nav__logo { height: 32px; }
  .nav__right { gap: 10px; }
  .lang button { height: 28px; min-width: 30px; padding: 0 7px; }
}
@media (max-width: 380px) {
  .nav__logo { height: 27px; }
}

/* ==========================================================================
   French: longer words, slightly tighter display scale
   ========================================================================== */
html[lang="fr"] .hero__title { font-size: clamp(2.9rem, 10.6vw, 13rem); }
html[lang="fr"] .phero__title { font-size: clamp(2.6rem, 8.4vw, 10.5rem); }
html[lang="fr"] .cta__title { font-size: clamp(2.8rem, 10.4vw, 12.5rem); }
html[lang="fr"] .card__title { font-size: clamp(2.1rem, 4.6vw, 5.2rem); }
html[lang="fr"] .display { font-size: clamp(2.5rem, 7.4vw, 8.6rem); }
html[lang="fr"] .acc__title { font-size: clamp(1.8rem, 3.1vw, 3.3rem); }

/* ==========================================================================
   Arabic / RTL
   ========================================================================== */
/* Lifta: MACAP's Arabic display face. Arabic-only (unicode-range), so Latin
   words and numbers inside Arabic headings fall through to Cabinet Grotesk. */
html[lang="ar"] {
  --f-display: "Lifta", "Cabinet Grotesk", sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Satoshi", sans-serif;
  --f-serif: "Lifta", "Cabinet Grotesk", serif;
  font-synthesis: none;
}
html[lang="ar"] body { font-size: 17px; line-height: 1.8; }
/* single-weight face: keep it from being faux-bolded */
html[lang="ar"] .display, html[lang="ar"] .hero__title, html[lang="ar"] .card__title, html[lang="ar"] .acc__title, html[lang="ar"] .acc__vert,
html[lang="ar"] .frame__meta h3, html[lang="ar"] .frame__end-txt, html[lang="ar"] .work__title, html[lang="ar"] .menu__txt,
html[lang="ar"] .quote__text, html[lang="ar"] .manifesto__text, html[lang="ar"] .faq__q, html[lang="ar"] .cta__title,
html[lang="ar"] .phero__title, html[lang="ar"] .contact__block a, html[lang="ar"] .contact__block span, html[lang="ar"] .serif { font-weight: 400; }
/* nav, buttons and links speak in the display face too */
html[lang="ar"] .nav__links, html[lang="ar"] .btn, html[lang="ar"] .link-arrow, html[lang="ar"] .lights-btn,
html[lang="ar"] .footer__col a, html[lang="ar"] .footer__col > span, html[lang="ar"] .footer__legal { font-family: var(--f-display); }
html[lang="ar"] .nav__links { font-size: 17px; }
html[lang="ar"] .btn { font-size: 18px; }
html[lang="ar"] .btn--xl { font-size: 21px; }
html[lang="ar"] .link-arrow, html[lang="ar"] .lights-btn, html[lang="ar"] .footer__col a, html[lang="ar"] .footer__col > span { font-size: 18px; }
html[lang="ar"] .footer__legal { font-size: 15px; }
/* letter-spacing breaks Arabic joining */
html[lang="ar"] *:not(.hud *):not(.nav__tc *):not(.loader__count *):not(.footer__word *) { letter-spacing: 0 !important; }
html[lang="ar"] .serif { font-style: normal; font-weight: 700; }
html[lang="ar"] .display { line-height: 1.25; font-size: clamp(2.4rem, 6.6vw, 7.4rem); }
html[lang="ar"] .hero__title { line-height: 1.12; font-size: clamp(3rem, 10vw, 12rem); }
html[lang="ar"] .hero__line { padding: .06em 0 .22em; }
html[lang="ar"] .hero__title .serif { line-height: 1.1; font-size: 1.05em; }
html[lang="ar"] .split-line { padding-bottom: .22em; margin-bottom: -.22em; }
html[lang="ar"] .card__title, html[lang="ar"] .acc__title, html[lang="ar"] .frame__meta h3, html[lang="ar"] .work__title, html[lang="ar"] .menu__txt, html[lang="ar"] .frame__end-txt { line-height: 1.3; }
html[lang="ar"] .phero__title, html[lang="ar"] .cta__title { line-height: 1.2; }
html[lang="ar"] .phero__line, html[lang="ar"] .cta__line { padding-bottom: .2em; }
html[lang="ar"] .manifesto__text { line-height: 1.45; font-size: clamp(1.8rem, 4.2vw, 4.8rem); }
html[lang="ar"] .quote__text { line-height: 1.5; }
html[lang="ar"] .faq__q { font-size: clamp(1.15rem, 1.8vw, 1.7rem); }
html[lang="ar"] .hero__eyebrow, html[lang="ar"] .manifesto__kicker, html[lang="ar"] .acc__tag, html[lang="ar"] .work__type,
html[lang="ar"] .partners__label, html[lang="ar"] .footer__col h4, html[lang="ar"] .contact__block h4, html[lang="ar"] .field label,
html[lang="ar"] .phero__meta, html[lang="ar"] .hero__reel, html[lang="ar"] .loader__tag, html[lang="ar"] .menu__foot, html[lang="ar"] .hero__scroll { font-family: var(--f-body); font-size: 14px; }
html[lang="ar"] .cta__ring text { font-family: var(--f-body); font-size: 15px; }
html[lang="ar"] .marquee--big span.serif { font-family: var(--f-serif); }

/* layout mirroring that logical flow doesn't cover */
html[dir="rtl"] .hero__line:nth-child(2) { padding-left: 0; padding-right: 13vw; }
html[dir="rtl"] .strip, html[dir="rtl"] .marquee, html[dir="rtl"] .crafts__progress { direction: ltr; }
/* Latin sequences laid out with flex would otherwise read backwards (PACAM, % 100, 04 / 01) */
html[dir="rtl"] .footer__word, html[dir="rtl"] .loader__count, html[dir="rtl"] .hero__reel-no, html[dir="rtl"] .nav__tc, html[dir="rtl"] .hud__tl { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .frame, html[dir="rtl"] .marquee__track > * { direction: rtl; }
html[dir="rtl"] .frame__no { left: auto; right: 6px; }
html[dir="rtl"] .crafts__progress i { transform-origin: left; }
html[dir="rtl"] .btn__icon, html[dir="rtl"] .link-arrow__circle { transform: scaleX(-1); }
html[dir="rtl"] .btn:hover .btn__icon { transform: scaleX(-1) translateX(4px) rotate(-45deg); }
html[dir="rtl"] .link-arrow:hover .link-arrow__circle { transform: scaleX(-1) rotate(-45deg); }
html[dir="rtl"] .work__row:hover .work__title { transform: translateX(-24px); }
html[dir="rtl"] .menu__list a:hover .menu__txt { transform: translateX(-18px); font-family: var(--f-serif); font-style: normal; }
html[dir="rtl"] .menu__preview { justify-self: start; }
html[dir="rtl"] .acc__no { left: auto; right: 22px; }
html[dir="rtl"] .acc__vert { left: auto; right: 22px; transform-origin: 100% 100%; transform: rotate(90deg) translateY(100%); }
html[dir="rtl"] .faq__a p { padding: 0 0 32px 64px; }
html[dir="rtl"] .footer__col--ar { align-items: flex-start; text-align: left; }
html[dir="rtl"] .field__err, html[dir="rtl"] .form__count { text-align: left; }
@media (max-width: 860px) {
  html[dir="rtl"] .hero__line:nth-child(2) { padding-right: 0; }
  html[dir="rtl"] .acc__vert { transform: none; right: 60px; }
}
