/* Nasaq Studio — 1930s cartoon print on cream paper: ink outlines, hard shadows, film grain.
   Layout: typographic sections stacked like title cards; one bold colour moment per section. */
:root {
  --paper: #F1E4C6;
  --paper-2: #E6D2A6;
  --ink: #1C1612;
  --ink-2: #3A2F27;
  --cream: #F6EBD2;
  --red: #D63A2B;
  --orange: #E5682E;
  --mustard: #F0BE2C;
  --blue: #5A8CC4;
  --muted: #6E5E4E;

  --display: "Fraunces", "Georgia", "Times New Roman", serif;
  --body: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --ar: "Lalezar", "IBM Plex Sans Arabic", "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --edge: 2.5px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --gut: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
[lang="ar"] { font-family: var(--ar); font-weight: 400; }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-left: var(--gut);
  padding-right: var(--gut-r);
}

/* ---------- Film grain + vignette ---------- */
.grain {
  position: fixed; inset: -50%;
  z-index: 90; pointer-events: none;
  opacity: .14; mix-blend-mode: multiply;
  background-size: 160px 160px;
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Iris (page in/out) ---------- */
.iris {
  --r: 150vmax;
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  background: var(--ink);
  -webkit-mask: radial-gradient(circle at var(--x, 50%) var(--y, 50%), transparent var(--r), #000 calc(var(--r) + 1px));
          mask: radial-gradient(circle at var(--x, 50%) var(--y, 50%), transparent var(--r), #000 calc(var(--r) + 1px));
  visibility: hidden;
}
html.js-intro .iris { visibility: visible; --r: 0px; }
.is-flicker { animation: flicker .9s steps(7) .3s 1 both; }
@keyframes flicker {
  0%, 30%, 60% { filter: brightness(1); }
  15%, 45% { filter: brightness(.82); }
  75% { filter: brightness(1.06); }
  100% { filter: none; }
}

/* ---------- Pills, chips, buttons ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border: var(--edge); border-radius: 999px;
  background: var(--cream);
  font-size: 14px; font-weight: 600; text-decoration: none;
  white-space: nowrap;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s;
}
a.pill:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); background: var(--mustard); }
.status i {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 0 0 var(--red);
  animation: pulse 1.8s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(214, 58, 43, .55); }
  100% { box-shadow: 0 0 0 9px rgba(214, 58, 43, 0); }
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  border: var(--edge); border-radius: 999px;
  font-weight: 800; font-size: 15px; letter-spacing: .02em;
  text-decoration: none; white-space: nowrap;
  box-shadow: var(--shadow);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn .arr { display: inline-block; transition: transform .45s var(--ease); }
.btn:hover .arr { transform: rotate(45deg); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-red { background: var(--red); color: var(--cream); font-size: 18px; padding: 16px 30px; }

.chip {
  border: var(--edge); border-radius: 999px;
  background: transparent; padding: 6px 14px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .3s, color .3s;
}
.chip:hover { background: var(--paper-2); }
.chip.is-on { background: var(--ink); color: var(--cream); }

/* ---------- Nav ---------- */
/* Fixed and the same size in every state: scrolling only fades a backdrop in,
   so nothing below it moves. */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  padding-left: max(10px, env(safe-area-inset-left, 0px));
  padding-right: max(10px, env(safe-area-inset-right, 0px));
  pointer-events: none;
}
.nav-in {
  position: relative; isolation: isolate;
  display: flex; align-items: center; gap: 18px;
  max-width: 1160px; margin-inline: auto;
  padding: 8px 14px;
  pointer-events: auto;
}
.nav-in::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(241, 228, 198, .9);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: var(--edge); border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  opacity: 0; transform: translateY(-8px) scale(.985);
  transition: opacity .45s var(--ease), transform .6s var(--ease);
  will-change: opacity, transform;
}
.nav.is-stuck .nav-in::before { opacity: 1; transform: none; }
.lang-btn {
  flex: none; display: grid; place-items: center;
  min-width: 40px; height: 40px; padding: 0 10px;
  border: var(--edge); border-radius: 999px; background: transparent;
  font-weight: 800; font-size: 14px; letter-spacing: .04em; cursor: pointer;
  transition: background .3s, color .3s;
}
.lang-btn:lang(ar) { font-family: var(--ar); font-size: 18px; font-weight: 400; letter-spacing: 0; }
/* Header order: talk + language at the start, section links, logo at the far end */
.nav-in > .btn { order: -2; }
.nav-in > .lang-btn { order: -1; }
.nav-in > .logo { order: 1; margin-inline-start: auto; }
.nav-gap { display: none; }
.lang-btn:hover { background: var(--ink); color: var(--mustard); }
.nav-in > .btn { margin-inline-start: 0; padding: 9px 18px; font-size: 14px; box-shadow: 3px 3px 0 var(--ink); }
.logo {
  display: inline-flex; align-items: baseline; gap: 6px;
  text-decoration: none;
  background: var(--ink); color: var(--cream);
  padding: 4px 12px 2px; border-radius: 10px;
  transform: rotate(-3deg);
}
.logo-ar { font-size: 22px; line-height: 1.2; color: var(--mustard); }
.logo-en { font-family: var(--display); font-weight: 900; font-size: 16px; letter-spacing: .08em; }
.links { display: flex; gap: 26px; margin-inline-start: 14px; }
.links a { text-decoration: none; font-weight: 600; font-size: 15px; position: relative; }
.links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.links a:hover::after { transform: scaleX(1); transform-origin: left; }
.links sup { font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.links + .btn { margin-inline-start: 0; }
@media (max-width: 900px) {
  .links { display: none; }
  .nav .status { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: calc(100px + env(safe-area-inset-top, 0px)) 70px; }
.rays {
  position: absolute; left: 50%; top: 46%;
  width: 260vmax; height: 260vmax; margin: -130vmax 0 0 -130vmax;
  background: repeating-conic-gradient(from 0deg, var(--paper-2) 0deg 6deg, transparent 6deg 15deg);
  opacity: .55;
  animation: spin 160s linear infinite;
  -webkit-mask: radial-gradient(circle, #000 0, #000 18vmax, transparent 70vmax);
          mask: radial-gradient(circle, #000 0, #000 18vmax, transparent 70vmax);
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero::after { /* vignette */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(28, 22, 18, .28) 100%);
}
.hero-in { position: relative; z-index: 1; display: grid; justify-items: center; gap: 10px; }
.hero-title {
  margin: 10px 0 0;
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 900;
  font-size: clamp(64px, 18.5vw, 250px);
  line-height: .82; letter-spacing: -.02em;
  text-align: center;
}
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line .ch, .line .w { display: inline-block; will-change: transform; }
.line .w { white-space: nowrap; }
.solid { color: var(--ink); text-shadow: .03em .03em 0 var(--red); }
/* Outlined words: the stroke is painted first and the letter filled on top in the paper colour,
   so only the outer edge shows (no inner rings where Arabic letters overlap). */
.outline { color: var(--paper); -webkit-text-stroke: max(3px, .024em) var(--red); paint-order: stroke fill; }

.seal {
  position: relative;
  width: clamp(120px, 20vw, 210px); aspect-ratio: 1; max-width: 100%;
  margin-top: -2.2vw;
}
.seal svg { width: 100%; height: 100%; animation: spin 26s linear infinite; }
.seal-bg { fill: var(--mustard); stroke: var(--ink); stroke-width: 4; }
.seal-core { fill: var(--red); stroke: var(--ink); stroke-width: 4; }
.seal-ring { font-family: var(--body); font-weight: 800; font-size: 15px; letter-spacing: 2.4px; fill: var(--ink); }
.seal-ar {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: clamp(30px, 5.4vw, 58px); color: var(--cream); line-height: 1;
  text-shadow: 2px 2px 0 var(--ink);
}

.hero-foot {
  width: 100%;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  margin-top: 10px;
}
.hero-copy { max-width: 380px; min-width: 0; }
.hero-copy h2 { font-family: var(--display); font-size: 26px; font-weight: 800; margin: 0 0 6px; }
.hero-copy p { margin: 0 0 18px; color: var(--ink-2); }
.socials { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
@media (max-width: 640px) {
  .socials { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .seal { margin-top: 6px; }
}

/* ---------- Sections ---------- */
.sec { position: relative; padding-block: clamp(70px, 11vw, 140px); overflow: hidden; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.sec-title {
  margin: 0;
  font-family: var(--display); font-weight: 800;
  font-variation-settings: "SOFT" 50, "WONK" 0;
  font-size: clamp(38px, 6.4vw, 76px);
  line-height: 1; letter-spacing: -.01em; text-transform: uppercase;
  text-wrap: balance;
}
.word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.word > span { display: inline-block; will-change: transform; }
.sec-note { font-weight: 600; color: var(--muted); }
.ghost {
  position: absolute; top: clamp(20px, 4vw, 60px); left: 0; right: 0;
  display: flex; justify-content: center;
  font-family: var(--display); font-weight: 900;
  font-size: clamp(90px, 21vw, 300px); line-height: 1;
  color: var(--paper); -webkit-text-stroke: 3px var(--paper-2); paint-order: stroke fill;
  white-space: nowrap; pointer-events: none; user-select: none;
}
.sec > .wrap { position: relative; }

/* ---------- Work grid ---------- */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 26px; }
.card {
  grid-column: span 12;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 0;
  border: var(--edge); border-radius: 18px; overflow: hidden;
  background: var(--cream); box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.card:hover { transform: translate(-3px, -3px) rotate(-.4deg); box-shadow: 9px 9px 0 var(--ink); }
.card-media { position: relative; overflow: hidden; border-inline-end: var(--edge); min-height: 260px; }
.card-media > * { transition: transform 1s var(--ease); }
.card:hover .card-media > * { transform: scale(1.05); }
.card-body { padding: clamp(20px, 3vw, 34px); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card-kicker { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.card-title { font-family: var(--display); font-weight: 900; font-size: clamp(30px, 4vw, 50px); line-height: .95; margin: 0; text-wrap: balance; }
.card-title span { display: block; color: var(--blue); font-weight: 700; font-size: .55em; margin-top: 6px; }
.card-sum { margin: 0; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tags li { border: 2px solid var(--ink); border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 600; }
.card-go {
  margin-top: auto; align-self: flex-start;
  display: inline-grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--mustard); border: var(--edge);
  font-size: 22px; font-weight: 800;
  transition: transform .6s var(--ease), background .3s;
}
.card:hover .card-go { transform: rotate(45deg); background: var(--red); color: var(--cream); }
.slot {
  grid-column: span 12;
  border: 2.5px dashed var(--ink); border-radius: 18px;
  padding: 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--ink-2);
}
.slot b { font-family: var(--display); font-size: 24px; color: var(--ink); }
.slot a { font-weight: 800; }
.grid .is-hidden { display: none; }
.empty { grid-column: span 12; padding: 30px; text-align: center; color: var(--muted); }
@media (max-width: 760px) {
  .card { grid-template-columns: 1fr; }
  .card-media { border-inline-end: 0; border-bottom: var(--edge); min-height: 0; aspect-ratio: 16 / 10; }
}

/* Placeholder cover */
.cover-art { position: absolute; inset: 0; }
.cover-art svg { width: 100%; height: 100%; display: block; }
.cover-art .ball { animation: bounce 1.6s var(--ease) infinite alternate; transform-origin: center; }
@keyframes bounce { from { transform: translate(0, 0); } to { transform: translate(-90px, 70px); } }
.cover-type {
  position: absolute; inset-inline-start: 6%; bottom: 8%;
  background: var(--cream); border: var(--edge); border-radius: 12px;
  padding: 8px 14px 6px; box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-2deg);
}
.cover-type b { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(18px, 2.6vw, 30px); line-height: 1; text-transform: uppercase; }
.cover-type span { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.cover-note {
  position: absolute; top: 12px; inset-inline-end: 12px;
  background: var(--ink); color: var(--cream); border-radius: 999px;
  padding: 4px 10px; font-size: 12px; font-weight: 600;
}

/* ---------- Services accordion ---------- */
.acc { list-style: none; margin: 30px 0 0; padding: 0; border-top: var(--edge); }
.acc-item { border-bottom: var(--edge); transition: background .5s var(--ease), color .5s var(--ease); }
.acc-item.is-open { background: var(--ink); color: var(--cream); border-radius: 14px; }
.acc-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: 0; cursor: pointer; text-align: start;
  padding: clamp(18px, 2.6vw, 28px) clamp(10px, 2vw, 24px);
}
.acc-name {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(26px, 4.4vw, 54px); line-height: 1;
  transition: transform .6s var(--ease);
}
.acc-head:hover .acc-name { transform: translateX(10px); }
.acc-icon { position: relative; width: 26px; height: 26px; flex: none; }
.acc-icon::before, .acc-icon::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px;
  background: currentColor; border-radius: 2px; transition: transform .6s var(--ease);
}
.acc-icon::after { transform: rotate(90deg); }
.is-open .acc-icon::before { transform: rotate(45deg); }
.is-open .acc-icon::after { transform: rotate(135deg); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.is-open .acc-body { grid-template-rows: 1fr; }
.acc-inner {
  overflow: hidden; min-height: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding-inline: clamp(10px, 2vw, 24px);
}
.is-open .acc-inner { padding-bottom: 26px; }
.acc-inner p { margin: 0; max-width: 46ch; min-width: 0; color: inherit; opacity: .85; }
.ticket {
  display: grid; gap: 2px; padding: 14px 20px;
  border: 2.5px solid var(--cream); border-radius: 12px;
  color: var(--ink); box-shadow: 5px 5px 0 var(--cream);
  transform: rotate(-4deg) translateY(20px); opacity: 0;
  transition: transform .8s var(--ease) .1s, opacity .5s .1s;
}
.is-open .ticket { transform: rotate(-4deg) translateY(0); opacity: 1; }
.ticket b { font-family: var(--display); font-size: 40px; font-weight: 900; line-height: 1; }
.ticket span { font-size: 13px; font-weight: 600; }
.t-mustard { background: var(--mustard); }
.t-red { background: var(--red); color: var(--cream); }
.t-blue { background: var(--blue); color: var(--cream); }
.t-orange { background: var(--orange); }

/* ---------- Process (ink section) ---------- */
.process { background: var(--ink); color: var(--cream); }
.process .sec-note { color: var(--paper-2); opacity: .7; }
.ghost-dark { color: var(--ink); -webkit-text-stroke-color: var(--ink-2); }
.rows { list-style: none; margin: 0; padding: 0; }
.row {
  display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 20px;
  padding: 24px 6px; border-bottom: 1.5px solid var(--ink-2);
  transition: padding .6s var(--ease), background .4s;
}
.row:first-child { border-top: 1.5px solid var(--ink-2); }
.row:hover { padding-inline: 18px; background: var(--ink-2); }
.row-n { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--mustard); font-variant-numeric: tabular-nums; }
.row-main { display: grid; gap: 2px; min-width: 0; }
.row-main b { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 3.2vw, 38px); line-height: 1.05; }
.row-main em { font-style: normal; color: var(--paper-2); opacity: .8; }
.row-when { font-weight: 600; color: var(--paper-2); opacity: .8; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .row { grid-template-columns: 40px 1fr; }
  .row-when { grid-column: 2; }
}

.follower {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  opacity: 0; translate: -50% -50%; transform: scale(.6);
}
.follower span {
  display: grid; place-items: center;
  width: 130px; height: 90px; border-radius: 14px;
  background: var(--mustard); color: var(--ink);
  border: 2.5px solid var(--ink); box-shadow: 5px 5px 0 var(--cream);
  font-family: var(--display); font-weight: 900; font-size: 30px;
  rotate: -6deg;
}

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact-in { position: relative; z-index: 1; display: grid; justify-items: center; gap: 22px; }
.rays-soft { top: 55%; opacity: .45; }
.cta-title {
  margin: 0;
  font-family: var(--display); font-weight: 900;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: clamp(44px, 9vw, 120px); line-height: .92; text-transform: uppercase;
  text-wrap: balance; max-width: 12ch;
}
.cta-alt { margin: 0; font-size: clamp(22px, 3vw, 32px); color: var(--red); }
.socials-row { flex-direction: row; flex-wrap: wrap; justify-content: center; margin-top: 10px; }

/* ---------- Footer ---------- */
.foot { border-top: var(--edge); padding-block: 22px; font-weight: 600; font-size: 14px; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-alt { font-size: 20px; }
.foot a { text-decoration: none; }

/* ---------- Project page ---------- */
.p-hero { padding-block: calc(100px + env(safe-area-inset-top, 0px)) 40px; position: relative; overflow: hidden; }
.p-back { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; text-decoration: none; margin-bottom: 26px; }
.p-kicker { font-size: 14px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.p-title {
  margin: 8px 0 0;
  font-family: var(--display); font-weight: 900;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: clamp(54px, 12vw, 170px); line-height: .86; letter-spacing: -.02em; text-transform: uppercase;
}
.p-title .outline { -webkit-text-stroke-width: max(3px, .028em); }
.p-meta {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  margin-top: 36px; border: var(--edge); border-radius: 14px; overflow: hidden; background: var(--cream);
}
.p-meta div { padding: 14px 18px; border-inline-end: var(--edge); min-width: 0; }
.p-meta div:last-child { border-inline-end: 0; }
.p-meta dt { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.p-meta dd { margin: 4px 0 0; font-weight: 700; }
@media (max-width: 700px) {
  .p-meta { grid-template-columns: 1fr 1fr; }
  .p-meta div:nth-child(2) { border-inline-end: 0; }
  .p-meta div:nth-child(-n+2) { border-bottom: var(--edge); }
}
.p-cover {
  position: relative; aspect-ratio: 16 / 9; max-width: 100%;
  border: var(--edge); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
  background: var(--cream);
}
.p-cover > img { width: 100%; height: 100%; object-fit: cover; }
.p-text { display: grid; grid-template-columns: 220px 1fr; gap: 20px 40px; padding-block: 70px 30px; }
.p-text h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 26px; text-transform: uppercase; }
.p-text p { margin: 0 0 30px; max-width: 62ch; font-size: 19px; color: var(--ink-2); }
.draft { background: var(--mustard); padding: 0 6px; border-radius: 4px; color: var(--ink); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; }
@media (max-width: 700px) { .p-text { grid-template-columns: 1fr; } .p-text p { margin-bottom: 14px; } }
.p-gallery { display: grid; gap: 26px; padding-bottom: 40px; }
.p-gallery img { border: var(--edge); border-radius: 14px; box-shadow: var(--shadow); }
.p-next { text-align: center; padding-block: 60px 90px; display: grid; justify-items: center; gap: 18px; }

/* ---------- Hero status line ---------- */
.hero-status {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font-weight: 700; font-size: 15px;
}
.hero-status i {
  width: 10px; height: 10px; border-radius: 50%; background: var(--red);
  animation: pulse 1.8s var(--ease) infinite;
}

/* ---------- 3D covers ---------- */
.card-media.has-3d, .p-cover.has-3d {
  background:
    radial-gradient(circle at 50% 60%, rgba(240, 190, 44, .45), transparent 62%),
    repeating-conic-gradient(from 0deg at 50% 60%, var(--paper-2) 0deg 6deg, var(--paper) 6deg 15deg);
  cursor: grab; touch-action: pan-y;
}
.card-media.has-3d:active, .p-cover.has-3d:active { cursor: grabbing; }
.card-media.has-3d { min-height: 380px; }
.has-3d > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.has-3d > * { transition: none; }
.card:hover .card-media.has-3d > * { transform: none; }
.spin-hint {
  position: absolute; bottom: 12px; inset-inline-start: 12px;
  background: var(--ink); color: var(--cream); border-radius: 999px;
  padding: 4px 11px; font-size: 12px; font-weight: 600;
  opacity: .85; pointer-events: none;
}
@media (max-width: 760px) { .card-media.has-3d { min-height: 0; aspect-ratio: 4 / 3; } }

/* ---------- Services: reel + list ---------- */
.svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: 30px; }
.svc .acc { margin-top: 0; }
.reel { margin: 0; position: sticky; top: 100px; }
.reel-screen {
  position: relative; aspect-ratio: 4 / 5; max-width: 100%;
  background: var(--ink); border: var(--edge); border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow);
}
/* film sprocket holes down both edges */
.reel-screen::before, .reel-screen::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 22px; z-index: 2;
  background: radial-gradient(circle, var(--paper) 0 4px, transparent 4.5px) center top / 22px 26px repeat-y;
  opacity: .9;
}
.reel-screen::before { left: 6px; } .reel-screen::after { right: 6px; }
.reel-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.leader {
  position: absolute; inset: 0 34px; display: grid; place-items: center;
  background: repeating-conic-gradient(from 0deg, #2a221c 0deg 1deg, transparent 1deg 90deg), #3A2F27;
}
.leader::before { /* the sweeping hand of an old film countdown */
  content: ""; position: absolute; width: 140%; aspect-ratio: 1;
  background: conic-gradient(from 0deg, rgba(246, 235, 210, .16) 0deg, transparent 0deg);
  animation: sweep 1s linear infinite;
}
.leader::after {
  content: ""; position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%;
  border: 3px solid var(--cream); box-shadow: 0 0 0 10px #3A2F27, 0 0 0 13px var(--cream);
}
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes sweep { from { --a: 0deg; } to { --a: 360deg; } }
.leader::before { background: conic-gradient(from 0deg, rgba(246, 235, 210, .2) var(--a), transparent var(--a)); }
.leader-n {
  position: relative; z-index: 1;
  font-family: "Fraunces", Georgia, serif; font-weight: 900; font-size: clamp(90px, 14vw, 170px);
  color: var(--cream); line-height: 1;
}
.reel figcaption { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-top: 14px; font-size: 15px; }
.reel figcaption b { font-family: var(--display); font-size: 22px; }
.reel figcaption span { color: var(--muted); }
.reel.has-video .leader { display: none; }
.reel.has-video .reel-screen { aspect-ratio: 4 / 5; }   /* the services film is 4:5 */
@media (max-width: 860px) {
  .svc { grid-template-columns: 1fr; }
  .reel { position: relative; top: 0; }
  .reel-screen { aspect-ratio: 16 / 10; }
}

/* ---------- Contact social links (text, not buttons) ---------- */
.social-links { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; }
.social-links a, .social-links span { font-weight: 700; font-size: 15px; text-decoration: none; position: relative; }
.social-links span { color: var(--muted); }
.social-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: var(--red);
  transform: scaleX(0); transition: transform .5s var(--ease);
}
.social-links a:hover::after { transform: scaleX(1); }

/* ---------- Project brief (a printed order form) ---------- */
.brief {
  width: 100%; max-width: 760px;
  display: grid; gap: 18px; justify-items: stretch;
  margin-top: 6px; text-align: start;
  border-top: var(--edge); padding-top: 22px;
}
.brief fieldset {
  border: 0; margin: 0; padding: 0 0 16px;
  border-bottom: 1.5px dashed var(--ink-2);
  display: grid; grid-template-columns: 170px 1fr; gap: 10px 20px; align-items: baseline;
}
.brief legend { float: left; padding: 0; font-family: var(--display); font-weight: 800; font-size: 20px; }
[dir="rtl"] .brief legend { float: right; }
.opts { display: flex; flex-wrap: wrap; gap: 8px 22px; min-width: 0; }
.opts label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; }
.opts input {
  appearance: none; -webkit-appearance: none; margin: 0;
  width: 18px; height: 18px; border: 2.5px solid var(--ink); border-radius: 50%;
  background: var(--cream); display: grid; place-items: center; flex: none;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.opts input::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cream); transform: scale(0); transition: transform .35s var(--ease); }
.opts input:checked { background: var(--red); }
.opts input:checked::after { transform: scale(1); }
.opts label:hover input { transform: scale(1.12); }
.opts input:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
/* the services question takes several answers: square boxes with a tick */
.opts input[type="checkbox"] { border-radius: 5px; }
.opts input[type="checkbox"]::after { width: 9px; height: 5px; border-radius: 0; background: none; border: solid var(--cream); border-width: 0 0 3px 3px; transform: translateY(-1px) rotate(-45deg) scale(0); }
.opts input[type="checkbox"]:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.brief legend small { display: block; font-family: var(--body); font-weight: 600; font-size: 13px; color: var(--muted); }
.brief-name { display: grid; grid-template-columns: 170px 1fr; gap: 20px; align-items: center; font-family: var(--display); font-weight: 800; font-size: 20px; }
.brief-name input {
  font: 600 17px var(--body); color: var(--ink);
  background: transparent; border: 0; border-bottom: var(--edge);
  padding: 6px 2px; min-width: 0; width: 100%;
}
.brief-name input:focus { outline: none; border-bottom-color: var(--red); }
.brief .btn { justify-self: center; margin-top: 8px; }
.brief-note { margin: 0; text-align: center; color: var(--red); font-weight: 700; min-height: 1.2em; }
@media (max-width: 640px) {
  .brief fieldset, .brief-name { grid-template-columns: 1fr; gap: 8px; }
  .brief legend { float: none; margin-bottom: 8px; }
}

/* ---------- Phone with the live site ---------- */
.p-phone {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 6vw, 80px);
  align-items: center; padding-block: 70px 10px;
}
.phone {
  width: min(300px, 78vw); aspect-ratio: 9 / 19; max-width: 100%;
  background: var(--ink); border-radius: 44px; padding: 12px;
  box-shadow: var(--shadow), inset 0 0 0 2px var(--ink-2);
  position: relative;
}
.phone::before { /* speaker notch */
  content: ""; position: absolute; top: 20px; left: 50%; translate: -50% 0; z-index: 2;
  width: 76px; height: 20px; border-radius: 999px; background: var(--ink);
}
.phone-screen {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: 34px; background: var(--paper-2);
  container-type: inline-size;
}
.phone-wait { position: absolute; inset: 0; display: grid; place-items: center; padding: 30px; text-align: center; color: var(--muted); font-weight: 600; font-size: 14px; }
.phone-screen iframe {
  position: absolute; top: 0; left: 0; border: 0; background: transparent;
  width: 390px; height: calc(390px * 19 / 9);
  transform-origin: 0 0; transform: scale(calc(100cqw / 390px));
}
@supports not (width: 1cqw) { .phone-screen iframe { transform: scale(.71); } }
.phone-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-phone-copy h2 { margin: 0 0 10px; font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4vw, 48px); line-height: 1.1; }
.p-phone-copy p { margin: 0 0 18px; max-width: 42ch; color: var(--ink-2); font-size: 18px; }
.link-u { font-weight: 800; text-decoration: none; border-bottom: 2.5px solid var(--red); padding-bottom: 2px; }
@media (max-width: 700px) { .p-phone { grid-template-columns: 1fr; justify-items: center; text-align: center; } .p-phone-copy p { margin-inline: auto; } }

/* ---------- Custom cursor ---------- */
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor input[type="text"] { cursor: text !important; }
.cursor {
  position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none;
  translate: -50% -50%;
}
.cursor span {
  display: grid; place-items: center;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--cream); mix-blend-mode: difference;
  font: 800 13px var(--body); color: transparent; white-space: nowrap;
  transition: width .35s var(--ease), height .35s var(--ease), background .3s, border .3s, opacity .2s;
}
.cursor { mix-blend-mode: difference; }
.cursor.is-link span { width: 38px; height: 38px; background: transparent; border: 2px solid var(--cream); }
.cursor.is-label { mix-blend-mode: normal; }
.cursor.is-label span { width: 76px; height: 76px; background: var(--red); color: var(--cream); mix-blend-mode: normal; border: 2.5px solid var(--ink); }
.cursor.is-hidden span { opacity: 0; }
html[lang="ar"] .cursor span { font-family: var(--body); font-size: 15px; }

/* ---------- Noon around the site ----------
   He sits on the top edge of the work card and the reel frame:
   scrolling down he sits, scrolling up he stands. */
.seat-wrap { position: relative; }
.noon-seat {
  position: absolute; z-index: 3; top: 0; inset-inline-end: 7%;
  width: clamp(92px, 9vw, 124px);
  translate: 0 -96%;                               /* standing: shoes on the edge */
  transition: translate .55s cubic-bezier(.34, 1.56, .64, 1);
  pointer-events: none;
}
.noon-seat.is-sitting { translate: 0 -84%; }      /* sitting: seat on the edge, legs dangle */
.noon-seat .noon > ellipse:first-child { transition: opacity .3s; }
.noon-seat.is-sitting .noon > ellipse:first-child { opacity: 0; }
.noon-reel { inset-inline-end: 16%; }
html[dir="ltr"] .noon-work .noon { transform: scaleX(-1); }   /* points across the card in both languages */
.reel { position: sticky; }
.brief-done[hidden] { display: none; }
.brief-done { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; text-align: start;
  border: var(--edge); border-radius: 16px; background: var(--cream); padding: 12px 18px; }
.brief-done p { margin: 0; font-weight: 700; font-size: 17px; }
.noon-done { width: 110px; }
.noon .noon-upper, .noon .noon-legs-stand, .noon .noon-legs-sit { transition: transform .55s cubic-bezier(.34, 1.56, .64, 1), opacity .18s; }
.noon .noon-legs-sit { opacity: 0; }
.is-sitting .noon .noon-upper { transform: translateY(24px); }
.is-sitting .noon .noon-legs-stand { opacity: 0; }
.is-sitting .noon .noon-legs-sit { opacity: 1; }
@media (max-width: 640px) { .noon-seat { width: 84px; } }

/* ---------- Noon (mascot) ---------- */
.noon { display: block; width: 100%; height: auto; overflow: visible; }
.noon .noon-eye { transform-box: fill-box; transform-origin: center; animation: noon-blink 4.2s infinite; }
.noon .noon-dot { animation: noon-bob 1.8s ease-in-out infinite; }
.noon .noon-wave { transform-box: view-box; transform-origin: 145px 200px; animation: noon-wave .9s ease-in-out infinite alternate; }
.noon-sleep .noon-dot { animation-duration: 3.2s; }
@keyframes noon-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.08); } }
@keyframes noon-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes noon-wave { from { transform: rotate(-10deg); } to { transform: rotate(12deg); } }

/* ---------- Arabic ---------- */
html[lang="ar"] {
  --display: "Lalezar", "IBM Plex Sans Arabic", "Segoe UI", sans-serif;
  --body: "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
}
html[lang="ar"] body { font-size: 17px; line-height: 1.75; }
html[lang="ar"] :is(.hero-title, .sec-title, .cta-title, .p-title, .acc-name, .card-title, .row-main b, .hero-copy h2, .p-text h2, .ghost, .ticket b, .cover-type b) {
  font-weight: 400; font-synthesis: none; letter-spacing: 0; font-variation-settings: normal;
}
html[lang="ar"] .hero-title { line-height: .95; font-size: clamp(76px, 22vw, 270px); }
html[lang="ar"] .hero-title .outline { -webkit-text-stroke-width: 4px; }
html[lang="ar"] .hero-title .line { white-space: nowrap; }
html[lang="ar"] .hero-title .outline { margin-top: -.12em; }
html[lang="ar"] .line { padding-block: .05em .12em; }
html[lang="ar"] .sec-title { line-height: 1.3; }
html[lang="ar"] .cta-title { line-height: 1.25; max-width: 11ch; }
html[lang="ar"] .p-title { line-height: 1.2; }
html[lang="ar"] .p-title .sub { font-size: .5em; }
html[lang="ar"] .acc-name { line-height: 1.35; font-size: clamp(24px, 4vw, 48px); }
html[lang="ar"] .card-title { line-height: 1.3; }
html[lang="ar"] .card-kicker, html[lang="ar"] .p-kicker, html[lang="ar"] .p-meta dt, html[lang="ar"] .cover-type span { letter-spacing: 0; }
html[lang="ar"] .ticket span { font-family: var(--body); }
html[lang="ar"] .ghost { -webkit-text-stroke-width: 4px; }
html[lang="ar"] .logo-en, html[lang="ar"] .seal-ring { font-family: "Fraunces", Georgia, serif; }
[dir="rtl"] .arr { display: inline-block; scale: -1 1; }
[dir="rtl"] .acc-head:hover .acc-name { transform: translateX(-10px); }
[dir="rtl"] .card:hover { transform: translate(3px, -3px) rotate(.4deg); box-shadow: -9px 9px 0 var(--ink); }
[dir="rtl"] .card, [dir="rtl"] .btn, [dir="rtl"] .p-cover, [dir="rtl"] .cover-type { box-shadow: -5px 5px 0 var(--ink); }
[dir="rtl"] .btn:hover { transform: translate(2px, -2px); box-shadow: -7px 7px 0 var(--ink); }
[dir="rtl"] .card:hover .card-go { transform: rotate(-45deg); }
[dir="rtl"] .btn:hover .arr { transform: rotate(-45deg); }
.cta-alt:lang(en) { font-family: var(--body); font-weight: 800; color: var(--red); font-size: clamp(17px, 2.2vw, 22px); }
.foot-alt:lang(en) { font-family: "Fraunces", Georgia, serif; font-weight: 900; letter-spacing: .1em; font-size: 14px; }
.p-logo { height: clamp(60px, 9vw, 110px); width: auto; margin-top: 18px; }
.cover-logo { padding: 10px 14px; }
.cover-logo img { height: clamp(34px, 5vw, 60px); width: auto; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html.js-intro .iris { visibility: hidden; }
  .follower { display: none; }
}
