/* ============================================================
   ATHAR FILMS — styles
   Ground: Pitch #0A0A0A · Bone #E8E0D4 · Silver #8A8782 · Charcoal #3A3733
   The hit (10%): Burnt Orange #D8451F — the halation dot, nothing else.
   Type: Anton (display) · DM Serif Display italic (accent)
         Archivo (utility sans) · Cairo 900 (Arabic)
   ============================================================ */

:root {
  /* easing set carried over from the reference build */
  --ease-in-quart: cubic-bezier(0.895, 0.03, 0.685, 0.22);
  --ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1);
  --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-out-quart: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-in-out-expo: cubic-bezier(1, 0, 0, 1);

  --padding-xxl: 6rem;
  --padding-xl: 4.75rem;
  --padding-l: 3rem;
  --padding-s: 1.5rem;
  --padding-xs: 0.75rem;

  /* palette-primary */
  --pitch: #0A0A0A;
  --bone: #E8E0D4;
  --silver: #8A8782;
  --charcoal: #3A3733;
  --ember: #D8451F;
  --primary-color: var(--bone);
  --primary-bg: var(--pitch);
  --aux-color: var(--silver);

  --font-sans: "Archivo", "Cairo", sans-serif;
  --font-title: "Anton", "Cairo", sans-serif;
  --font-serif: "DM Serif Display", "Cairo", serif;
  --font-arabic: "Cairo", sans-serif;

  font-size: clamp(16px, 1.1111vw, 42px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--primary-bg);
  color: var(--primary-color);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

body.__noScroll { overflow: hidden; overscroll-behavior-y: none; }

/* home: the page itself does not scroll — the wheel drives the project strip */
body.is-home {
  overflow: hidden;
  height: 100vh;
  height: 100svh;
  overscroll-behavior: none;
  touch-action: none;
}

::selection { background-color: var(--ember); color: var(--pitch); }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 1px solid var(--ember);
  outline-offset: 4px;
}

.serif {
  font-family: var(--font-serif);
  font-style: italic;
  letter-spacing: -0.01em;
}

/* Arabic mode: Cairo takes over display + accent roles */
.lang-ar .serif {
  font-family: var(--font-arabic);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
}

/* body copy fades in after the leader lifts */
.site {
  opacity: 0;
  transition: opacity 0.9s var(--ease-out-quad);
}
.is-loaded .site { opacity: 1; }

/* ============ grain — the constant ============ */
.grain {
  position: fixed;
  inset: -60%;
  width: 220%;
  height: 220%;
  z-index: 90;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='240' height='240' filter='url(%23g)'/></svg>");
  mix-blend-mode: screen;
  opacity: 0.07;
}
@keyframes grain-jitter {
  0%   { transform: translate3d(0, 0, 0); }
  20%  { transform: translate3d(-3%, 2%, 0); }
  40%  { transform: translate3d(2%, -3%, 0); }
  60%  { transform: translate3d(-2%, -2%, 0); }
  80%  { transform: translate3d(3%, 3%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
.grain { animation: grain-jitter 0.9s steps(5) infinite; }

/* soft vignette so the frame reads photographic, not flat */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.42) 100%);
}

/* ============ loader ============ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--pitch);
  display: grid;
  place-items: center;
  transition: transform 0.8s var(--ease-in-out-quart);
}
.loader.is-done { transform: translateY(-101%); }
.loader__mark {
  margin: 0;
  font-family: var(--font-arabic);
  font-weight: 900;
  font-size: 3rem;
  color: var(--bone);
  display: flex;
  align-items: center;
  gap: 0.3em;
  animation: loader-breathe 1.2s var(--ease-out-quad) both;
}
.loader__dot {
  width: 0.32em;
  height: 0.32em;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0.5em 0.12em rgba(216, 69, 31, 0.55), 0 0 1.6em 0.5em rgba(216, 69, 31, 0.22);
}
@keyframes loader-breathe {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============ header ============ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem var(--padding-s);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.header__nav { display: flex; gap: 1.1rem; }
.header__nav a,
.header__reel {
  position: relative;
  padding: 0.35rem 0;
  color: var(--bone);
  background: none;
  border: 0;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}
.header__nav a::after,
.header__reel::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.15rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out-quart);
}
.header__nav a:hover::after,
.header__reel:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.header__hello {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 0.82rem;
  color: var(--silver);
}
/* subpages: the center of the bar goes home */
.header__home {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.86rem;
  color: var(--bone);
  padding: 0.35rem 0.2rem;
}
.header__home-dot {
  display: inline-block;
  width: 0.28em;
  height: 0.28em;
  margin-inline-start: 0.14em;
  border-radius: 50%;
  background: var(--ember);
  vertical-align: 0.06em;
}
/* current tab keeps its underline */
.header__nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ============ hero ============ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 34rem;
  overflow: hidden;
}

/* the active project's still, blown up behind the name */
.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
/* pin the page's black at the top and bottom bands so nav, manifesto
   and readout stay readable over bright stills */
.hero__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(10, 10, 10, 0.85) 0%,
    rgba(10, 10, 10, 0.2) 30%,
    rgba(10, 10, 10, 0.2) 62%,
    rgba(10, 10, 10, 0.88) 100%);
}
.hero__backdrop-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  background-size: cover;
  background-position: center;
  transition: opacity 0.9s var(--ease-out-quad);
}
.hero__backdrop-layer.is-on { opacity: 0.58; }
.hero__backdrop-layer[data-tone="a"] { background-color: #14110e; background-image: radial-gradient(120% 100% at 30% 20%, #4a423a 0%, #2a2622 45%, #100f0d 100%); }
.hero__backdrop-layer[data-tone="b"] { background-color: #12100d; background-image: linear-gradient(160deg, #262019 0%, #12100d 65%); }
.hero__backdrop-layer[data-tone="c"] { background-color: #0d0c0a; background-image: radial-gradient(130% 120% at 70% 75%, #3b342c 0%, #191612 55%, #0d0c0a 100%); }
.hero__backdrop-layer[data-tone="d"] { background-color: #0e0d0b; background-image: radial-gradient(100% 100% at 50% 10%, #40382e 0%, #1c1915 50%, #0e0d0b 100%); }
.hero__backdrop-layer[data-tone="e"] { background-color: #100f0e; background-image: linear-gradient(200deg, #2b241c 0%, #100f0e 70%); }
.hero__backdrop-layer[data-tone="f"] { background-color: #0f0e0c; background-image: radial-gradient(140% 90% at 20% 80%, #453c31 0%, #221e18 50%, #0f0e0c 100%); }

.filmstrip {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  display: flex;
  align-items: stretch;
  gap: 0.6rem;
  z-index: 1;
}
.filmstrip__viewport {
  width: clamp(120px, 12.5vw, 230px);
  height: 100%;
  overflow: hidden;
  position: relative;
}
.filmstrip__track {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  will-change: transform;
}
/* while browsing, the strip dims and the project you stand on is the picture */
.filmstrip__track.is-browsing .frame {
  opacity: 0.45;
  filter: brightness(0.72);
}
.filmstrip__track.is-browsing .frame:hover {
  opacity: 0.85;
  filter: brightness(0.9);
}
.filmstrip__track.is-browsing .frame.is-active {
  opacity: 1;
  filter: none;
  transform: scale(1.06);
  border-color: #35312c;
  z-index: 1;
}

.filmstrip__edge {
  margin: 0;
  pointer-events: none;
  writing-mode: vertical-rl;
  font-size: 0.52rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--silver);
  opacity: 0.55;
  white-space: nowrap;
  overflow: hidden;
  user-select: none;
  align-self: center;
  height: 100%;
}

/* — project frames (leader art as placeholder) — */
.frame {
  display: block;
  margin: 0;
  width: 100%;
  aspect-ratio: 4 / 5;
  flex: none;
  position: relative;
  overflow: hidden;
  background: #121110;
  border: 1px solid #201d1a;
  transition: opacity 0.5s var(--ease-out-quad), filter 0.5s var(--ease-out-quad), transform 0.6s var(--ease-out-quart);
}
.frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.14) contrast(1.04) brightness(0.94);
}
/* client mark floating over the strip thumb */
.frame img.frame__logo {
  inset: auto;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  max-width: 62%;
  max-height: 24%;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 1px 6px rgba(10, 10, 10, 0.75)) drop-shadow(0 0 14px rgba(10, 10, 10, 0.5));
}
.frame--count { background: #161412; }
.frame__ring {
  position: absolute;
  inset: 50%;
  width: 62%;
  height: 49.6%; /* circle against 4:5 frame */
  transform: translate(-50%, -50%);
  border: 1px solid rgba(138, 135, 130, 0.6);
  border-radius: 50%;
}
.frame__num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-title);
  font-size: 2.9rem;
  color: rgba(232, 224, 212, 0.85);
}
.frame--start { background: #141312; }
.frame__cross::before,
.frame__cross::after {
  content: "";
  position: absolute;
  background: rgba(138, 135, 130, 0.5);
}
.frame__cross::before {
  left: 50%; top: 18%; bottom: 30%; width: 1px;
}
.frame__cross::after {
  top: 44%; left: 14%; right: 14%; height: 1px;
}
.frame__label {
  position: absolute;
  left: 0; right: 0; bottom: 0.7rem;
  text-align: center;
  font-size: 0.5rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--silver);
}
.frame--tonal-a {
  background: radial-gradient(130% 95% at 30% 18%, #4a423a 0%, #2b2723 45%, #141210 100%);
}
.frame__streak {
  position: absolute;
  top: -12%;
  left: 58%;
  width: 18%;
  height: 130%;
  transform: skewX(-14deg);
  background: linear-gradient(90deg, transparent, rgba(232, 224, 212, 0.09), transparent);
}
.frame--slate { background: #100f0e; }
.frame__slate {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 0.55rem;
  letter-spacing: 0.32em;
  line-height: 2.3;
  text-transform: uppercase;
  color: var(--silver);
}
.frame--arabic { background: #1a1713; }
.frame__ar {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-arabic);
  font-weight: 900;
  font-size: 2.2rem;
  color: rgba(232, 224, 212, 0.7);
}
.frame--tonal-b { background: linear-gradient(180deg, #23201b 0%, #0f0e0c 72%); }
.frame--tonal-b::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 62%;
  height: 1px;
  background: rgba(232, 224, 212, 0.14);
}

/* — the name — */
.hero__title {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(3rem, 15vw, 21rem);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--bone);
  white-space: nowrap;
  /* the name is display, not UI — clicks pass through to the project strip */
  pointer-events: none;
  /* keeps the name readable when a bright still fills the backdrop */
  text-shadow: 0 0 38px rgba(10, 10, 10, 0.55), 0 2px 10px rgba(10, 10, 10, 0.35);
}
.hero__word {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.05em;
}
.hero__word + .hero__word { margin-inline-start: 0.2em; }
.hero__word-inner {
  display: inline-block;
  transform: translateY(112%);
  transition: transform 1.15s var(--ease-out-expo);
}
.is-loaded .hero__word:nth-child(1) .hero__word-inner { transition-delay: 0.08s; transform: translateY(0); }
.is-loaded .hero__word:nth-child(2) .hero__word-inner { transition-delay: 0.22s; transform: translateY(0); }

/* once the reveal is done, unclip so the halation breathes past the mask */
.title-shown .hero__word { overflow: visible; }

.hero__dot {
  display: inline-block;
  vertical-align: 0.18em;
  width: 0.16em;
  height: 0.16em;
  margin-inline-start: 0.07em;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0.35em 0.08em rgba(216, 69, 31, 0.55), 0 0 1.1em 0.32em rgba(216, 69, 31, 0.24);
  transform: scale(0);
  transition: transform 0.7s var(--ease-out-quart) 0.9s;
}
.is-loaded .hero__dot {
  transform: scale(1);
  animation: halation 5s ease-in-out 2.4s infinite;
}
@keyframes halation {
  0%, 100% { box-shadow: 0 0 0.35em 0.08em rgba(216, 69, 31, 0.55), 0 0 1.1em 0.32em rgba(216, 69, 31, 0.24); }
  50%      { box-shadow: 0 0 0.5em 0.14em rgba(216, 69, 31, 0.7), 0 0 1.6em 0.5em rgba(216, 69, 31, 0.32); }
}

/* Arabic hero: Cairo 900, taller leading for ascenders */
.lang-ar .hero__title {
  font-family: var(--font-arabic);
  font-weight: 900;
  font-size: clamp(3rem, 18.5vw, 20rem);
  line-height: 1.08;
  text-transform: none;
}
.lang-ar .hero__word { padding-bottom: 0.1em; }

/* active-project readout, bottom-left, mirrors the lang toggle */
.hero__project {
  position: absolute;
  bottom: 0.85rem;
  inset-inline-start: var(--padding-s);
  z-index: 3;
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  white-space: nowrap;
  pointer-events: none;
}
/* active client's mark — top center, right under the Athar wordmark */
.hero__clientlogo {
  position: absolute;
  top: 3.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  height: 2rem;
  width: auto;
  max-width: 34vw;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.7s var(--ease-out-quad);
  pointer-events: none;
  filter: drop-shadow(0 2px 10px rgba(10, 10, 10, 0.7)) drop-shadow(0 0 3px rgba(10, 10, 10, 0.5));
}
.hero__clientlogo.is-on { opacity: 0.92; }

/* reach-out CTA — bottom-right corner of the home screen */
.reachout {
  position: fixed;
  bottom: 3.2rem;
  inset-inline-end: var(--padding-s);
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}
.reachout__btn,
.reachout__menu a {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone);
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(232, 224, 212, 0.35);
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.3s var(--ease-out-quad);
}
.reachout__btn:hover,
.reachout__menu a:hover { border-color: var(--ember); }
.reachout__menu {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: stretch;
}
.reachout__menu[hidden] { display: none; }
.lang-ar .reachout__btn,
.lang-ar .reachout__menu a {
  font-family: var(--font-arabic);
  font-weight: 700;
  letter-spacing: 0;
  font-size: 0.78rem;
}

.hero__project-idx {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--silver);
}
.hero__project-title {
  font-size: 0.95rem;
  color: var(--bone);
  max-width: 42vw;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.35s var(--ease-out-quad);
}
.hero__project.is-swapping .hero__project-title { opacity: 0; }
.hero__project-year {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--silver);
}

.hero__manifesto {
  position: absolute;
  left: 50%;
  bottom: calc(var(--padding-s) + 1.2rem);
  transform: translateX(-50%);
  z-index: 3;
  width: min(92vw, 36rem);
  margin: 0;
  text-align: center;
  font-size: 0.76rem;
  line-height: 1.7;
  color: var(--bone);
  text-shadow: 0 0 6px rgba(10, 10, 10, 0.9), 0 1px 18px rgba(10, 10, 10, 0.95);
  pointer-events: none;
}

/* ============ sections shared ============ */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding-top: 2.6rem;
}
.page > section, .page > article { flex: 1 0 auto; }

.archive, .clients, .info, .contact, .project {
  padding: var(--padding-xl) var(--padding-l);
  scroll-margin-top: 2.5rem;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.4rem;
}
.section-head__label {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--silver);
}
.section-head__note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--silver);
}

.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.9s var(--ease-out-cubic), transform 0.9s var(--ease-out-cubic);
}
.reveal.in-view { opacity: 1; transform: none; }

/* ============ archive ============ */
.archive__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.archive__row {
  display: grid;
  grid-template-columns: 3.2rem 1fr auto 5.5rem;
  align-items: baseline;
  gap: 1.2rem;
  padding: 1.05rem 0;
  border-top: 1px solid #221f1c;
}
.archive__list li:last-child .archive__row,
.archive__row:last-child { border-bottom: 1px solid #221f1c; }
.archive__idx {
  font-size: 0.8rem;
  color: var(--silver);
  transition: color 0.35s var(--ease-out-quad);
}
.archive__row:hover .archive__idx { color: var(--ember); }
.archive__title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 3rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--bone);
}
.lang-ar .archive__title {
  font-family: var(--font-arabic);
  font-weight: 900;
  text-transform: none;
}
.archive__cat, .archive__year {
  font-size: 0.85rem;
  color: var(--silver);
}
.archive__year { text-align: end; }

/* ============ clients wall ============ */
.clients__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  border-top: 1px solid #221f1c;
  border-inline-start: 1px solid #221f1c;
}
.clients__cell {
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem;
  border-inline-end: 1px solid #221f1c;
  border-bottom: 1px solid #221f1c;
}
.clients__cell img {
  max-width: 68%;
  max-height: 52%;
  width: auto;
  height: auto;
  opacity: 0.82;
  transition: opacity 0.45s var(--ease-out-quad), transform 0.45s var(--ease-out-quad);
}
.clients__cell:hover img { opacity: 1; transform: scale(1.045); }

/* ============ contact form ============ */
.cform {
  max-width: 42rem;
  margin-top: 2.2rem;
  padding: 1.8rem;
  background: #12100e;
  border: 1px solid #221f1c;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.cform__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.cform__field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.cform__label {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver);
}
.cform__input {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--bone);
  background: #0b0a09;
  border: 1px solid #2a2622;
  border-radius: 2px;
  padding: 0.75rem 0.9rem;
  width: 100%;
  transition: border-color 0.3s var(--ease-out-quad);
}
.cform__input:focus {
  outline: none;
  border-color: var(--ember);
}
.cform__textarea {
  resize: vertical;
  min-height: 8rem;
}
.cform__send {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #12100e;
  background: var(--ember);
  border: 0;
  border-radius: 2px;
  padding: 0.9rem 1rem;
  cursor: pointer;
  transition: filter 0.3s var(--ease-out-quad);
}
.cform__send:hover { filter: brightness(1.1); }
.cform__note {
  margin: -0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--silver);
}
.lang-ar .cform__label,
.lang-ar .cform__send {
  font-family: var(--font-arabic);
  font-weight: 700;
  letter-spacing: 0;
}
.lang-ar .cform__label { font-size: 0.76rem; }
.lang-ar .cform__send { font-size: 0.85rem; }
.lang-ar .cform__input { font-family: var(--font-arabic); }

/* hover preview frame */
.preview {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  width: 15rem;
  aspect-ratio: 3 / 2;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.3s var(--ease-out-quad), transform 0.45s var(--ease-out-quart);
  border: 1px solid #2a2724;
  background: #141210;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.preview.is-visible { opacity: 1; transform: scale(1); }
.preview[data-tone="a"] { background: radial-gradient(130% 100% at 28% 18%, #4a423a 0%, #292521 48%, #131110 100%); }
.preview[data-tone="b"] { background: linear-gradient(165deg, #24211c 0%, #100f0d 70%); }
.preview[data-tone="c"] { background: radial-gradient(120% 120% at 70% 80%, #3b342c 0%, #191612 55%, #0e0d0b 100%); }
.preview__label {
  margin: 0;
  font-size: 0.85rem;
  color: var(--bone);
  opacity: 0.85;
}

/* ============ info ============ */
.info__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: start;
}
.info__copy { max-width: 42rem; }
.info__copy p { margin: 0 0 1.3rem; color: #cfc8bb; }
.info__lead {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.25;
  color: var(--bone) !important;
  margin: 0 0 2rem !important;
}
.info__quote {
  margin: 2rem 0;
  padding-inline-start: 1.2rem;
  border-inline-start: 2px solid var(--ember);
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--bone);
}
.info__aside {
  justify-self: end;
  text-align: end;
  max-width: 15rem;
}
.info__mark {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.92;
}
.info__gloss {
  margin: 0.8rem 0 0;
  font-size: 0.8rem;
  color: var(--silver);
}

/* ============ contact ============ */
.contact { padding-bottom: var(--padding-l); }
.contact__line {
  margin: 0 0 1rem;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  color: var(--silver);
}
.contact__big {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(3rem, 10vw, 9rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--bone);
  transition: color 0.4s var(--ease-out-quad);
}
.lang-ar .contact__big {
  font-family: var(--font-arabic);
  font-weight: 900;
  text-transform: none;
}
.contact__big:hover { color: #fff; }
.contact__dot {
  width: 0.14em;
  height: 0.14em;
  transform: scale(1);
  transition: none;
}
.contact__links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin: 2.2rem 0 0;
  padding: 0;
  font-size: 0.78rem;
  color: var(--silver);
}
.contact__links a {
  color: var(--silver);
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
.contact__links a:hover { color: var(--bone); border-color: var(--bone); }

/* ============ project page ============ */
.project__head { margin-bottom: 2rem; }
.project__meta {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  color: var(--silver);
}
.project__title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(2.8rem, 9vw, 8rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--bone);
}
.lang-ar .project__title {
  font-family: var(--font-arabic);
  font-weight: 900;
  text-transform: none;
  line-height: 1.15;
}
.project__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #201d1a;
  display: grid;
  place-items: end center;
}
.project__frame img, .project__frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* real film/photo frames: keep the media's own aspect ratio —
   vertical reels stay vertical, wide films stay wide */
.project__frame--media {
  aspect-ratio: auto;
  display: block;
  background: #0b0a09;
  text-align: center;
}
.project__frame--media video,
.project__frame--media img {
  position: static;
  display: inline-block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
}
.project__frame-note {
  position: relative;
  margin: 0 0 1.4rem;
  font-size: 0.85rem;
  color: var(--silver);
}
.project__clientlogo {
  display: block;
  height: 1.9rem;
  width: auto;
  margin-bottom: 0.9rem;
  opacity: 0.9;
  /* client marks arrive dark-on-transparent; flip to bone for the dark page */
  filter: invert(1) sepia(0.08);
}
/* marks that are already light-on-transparent */
.project__clientlogo--light { filter: none; }
.project__desc {
  max-width: 40rem;
  margin: 2rem 0 0;
  color: #cfc8bb;
}
.project__gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-top: 2rem;
}
.project__gallery figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid #201d1a;
  aspect-ratio: 3 / 2;
}
.project__gallery .is-tall {
  grid-row: span 2;
  aspect-ratio: auto;
}
.project__gallery .is-wide {
  grid-column: span 2;
  aspect-ratio: 21 / 9;
}
.project__gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.08) contrast(1.03) brightness(0.97);
}

/* multi-campaign project pages: one client, several bodies of work */
.project__campaign { margin-top: 4.5rem; }
.project__campaign-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.6vw, 3rem);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--bone);
}
.lang-ar .project__campaign-title {
  font-family: var(--font-arabic);
  font-weight: 900;
  text-transform: none;
}
.project__campaign-note {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: var(--silver);
}
.project__media-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.8rem;
  margin-top: 0.8rem;
}
.project__media-row .project__frame--media video { max-height: 72vh; }

.project__nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  font-size: 0.75rem;
}
.project__nav a {
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.project__nav a:hover { border-color: var(--bone); }

/* ============ footer ============ */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: var(--padding-s) var(--padding-l) 1.1rem;
  font-size: 0.68rem;
  color: var(--silver);
}
.footer p { margin: 0; }
.footer .serif { margin-inline-end: 4.5rem; }

/* ============ language toggle ============ */
.langtoggle {
  position: fixed;
  bottom: 0.85rem;
  inset-inline-end: var(--padding-s);
  z-index: 70;
  display: flex;
  gap: 0.5rem;
  background: none;
  border: 0;
  padding: 0.35rem 0;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--silver);
  cursor: pointer;
}
.langtoggle__opt.is-active {
  color: var(--bone);
  font-weight: 600;
}
.langtoggle__opt[data-lang="ar"] { font-family: var(--font-arabic); }

/* ============ reel overlay ============ */
.reel {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(8, 8, 8, 0.97);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease-out-quad);
}
.reel[hidden] { display: none; }
.reel.is-open { opacity: 1; pointer-events: auto; }
.reel__close {
  position: absolute;
  top: 0.7rem;
  inset-inline-end: var(--padding-s);
  background: none;
  border: 0;
  color: var(--bone);
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 0.35rem 0;
  cursor: pointer;
  border-bottom: 1px solid transparent;
}
.reel__close:hover { border-color: var(--bone); }
.reel__frame {
  position: relative;
  width: min(88vw, 60rem);
  aspect-ratio: 16 / 9;
  border: 1px solid var(--charcoal);
  background: #0e0d0c;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.6rem;
  overflow: hidden;
}
.reel__frame video, .reel__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.reel__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(38vh, 42%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(138, 135, 130, 0.35);
  border-radius: 50%;
}
.reel__word {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 6vw, 5rem);
  text-transform: uppercase;
  color: var(--bone);
}
.reel__note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--silver);
  max-width: 26rem;
  text-align: center;
}

/* ============ responsive ============ */
@media (max-width: 900px) {
  .archive, .info, .contact { padding-inline: var(--padding-s); }
  .footer { padding-inline: var(--padding-s); }
  .info__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .info__aside { justify-self: start; text-align: start; max-width: 12rem; }
}

@media (max-width: 640px) {
  .header { padding-inline: 1rem; }
  .header__hello { display: none; }
  /* keep the small look but give fingers >=44px targets */
  .header__nav a, .header__reel {
    padding: 0.95rem 0.4rem;
    margin: -0.6rem 0;
  }
  .header__nav a::after, .header__reel::after { bottom: 0.75rem; }
  .langtoggle { padding: 0.9rem 0.4rem; }
  .contact__links a { display: inline-block; padding: 0.7rem 0; }
  .filmstrip__viewport { width: 34vw; }
  .filmstrip__edge { display: none; }
  .hero__manifesto { font-size: 0.72rem; bottom: 5.8rem; }
  .hero__clientlogo { height: 1.5rem; top: 2.9rem; max-width: 44vw; }
  .reachout { bottom: 3.1rem; }
  .hero__project { gap: 0.55rem; }
  .hero__project-year { display: none; }
  .hero__project-title { max-width: 46vw; font-size: 0.85rem; }
  .project__nav a { padding: 0.85rem 0; }
  .section-head { flex-direction: column; gap: 0.5rem; }
  .archive__row { grid-template-columns: 2rem 1fr auto; }
  .archive__cat { display: none; }
  .archive__year { font-size: 0.75rem; }
  .clients__grid { grid-template-columns: repeat(2, 1fr); }
  .cform__row { grid-template-columns: 1fr; }
  .cform { padding: 1.2rem; }
  .clients__cell { padding: 1.1rem; }
  .clients__cell img { max-width: 76%; max-height: 58%; }
  .footer { flex-direction: column; gap: 0.3rem; padding-bottom: 2.6rem; }
  .footer .serif { margin-inline-end: 0; }
  .preview { display: none; }
}

/* touch devices: no cursor-follow preview */
@media (hover: none) {
  .preview { display: none; }
}

/* ============ reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain { animation: none; }
  .frame { transition: none; }
  .hero__project-title { transition: none; }
  .hero__backdrop-layer { transition: none; }
  .hero__word { overflow: visible; }
  .hero__word-inner { transition: none; }
  .hero__dot { transition: none; }
  .is-loaded .hero__dot, .is-loaded .contact__dot { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .site { transition: none; }
  .loader { transition: none; }
  .loader__mark { animation: none; }
}
