/* =========================================================
   Kahale Screen Printing — site styles
   Palette taken from the brand deck: logo red #d83a2b,
   lime #e4e75e, paper cream, ink navy. CMY used for
   print-process details (registration, colour bars).
   ========================================================= */

:root {
  --paper: #f4f1e4;
  --paper-2: #ebe6d0;
  --card: #fbf9f1;
  --ink: #16191f;
  --ink-2: #262b34;
  --muted: #5c5e60;
  --line: rgba(22, 25, 31, .14);
  --red: #d83a2b;
  --red-soft: #e47d72;
  --red-dark: #b42c1f;
  --lime: #e4e75e;
  --cyan: #00a3e0;
  --magenta: #e6007e;
  --yellow: #ffe600;

  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --start: left;   /* reading-direction helpers, flipped for Arabic */
  --flip: 1;
  color-scheme: light;
}
[dir="rtl"] {
  --start: right;
  --flip: -1;
  --f-display: "Cairo", "Archivo", system-ui, sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Cairo", "Archivo", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* paper grain over everything */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .37 0 0 0 0 .3 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 200; transform: translateY(-300%); }
.skip:focus { transform: none; }

/* ---------- logo ---------- */
.logo { display: block; color: var(--red); overflow: visible; }
.logo-type text {
  font-family: "Archivo", "Arial Narrow", sans-serif; /* brand mark: always Latin */
  letter-spacing: 0;
  font-size: 94px;
  font-weight: 700;
  font-stretch: 62%;
  font-variation-settings: "wdth" 62, "wght" 700;
  fill: currentColor;
}
.logo--sm { width: 64px; height: auto; aspect-ratio: 258 / 240; }
.logo--footer { width: 140px; aspect-ratio: 258 / 240; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .95em 1.5em;
  border: 2px solid var(--bg);
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 15px; letter-spacing: .01em;
  text-decoration: none; border-radius: 999px;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .3s var(--ease), border-color .3s;
}
/* squeegee sweep on hover */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--sweep, var(--red));
  transform: translateX(calc(-101% * var(--flip)));
  transition: transform .45s var(--ease);
}
.btn:hover::before { transform: translateX(0); }
.btn--red { --bg: var(--red); --sweep: var(--ink); }
.btn--ink { --bg: var(--ink); --sweep: var(--red); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--ink); --sweep: var(--ink); }
.btn--ghost:hover { color: #fff; }
.btn--sm { padding: .6em 1.15em; font-size: 14px; }
.btn--block { width: 100%; }
.link { background: none; border: 0; padding: 0; text-decoration: underline; font-size: 14px; color: var(--muted); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, padding .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.brand { display: block; text-decoration: none; position: relative; z-index: 2; }
.is-scrolled .logo--sm { width: 52px; }
.logo--sm { transition: width .3s var(--ease); }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); }
.nav a:not(.btn) {
  text-decoration: none; font-weight: 600; font-size: 15px; position: relative; padding: 4px 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: var(--start); transition: transform .35s var(--ease);
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- shared type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  margin: 0 0 22px; color: var(--ink);
}
.eyebrow--lime { background: var(--lime); padding: 5px 10px; border-radius: 2px; }
.reg-ico { width: 18px; height: 18px; color: var(--red); }
.reg-ico--lg { width: 56px; height: 56px; }

.h-section {
  font-family: var(--f-display);
  font-weight: 800;
  font-variation-settings: "wdth" 112;
  font-size: clamp(44px, 7.4vw, 104px);
  line-height: .9; letter-spacing: -.035em;
  margin: 0;
}
.h-section .dot { color: var(--red); }
.h-sub { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 112; font-size: clamp(32px, 4.4vw, 56px); letter-spacing: -.03em; line-height: 1; margin: 96px 0 32px; }
.h-sub .dot { color: var(--red); }
/* the deck's "B●ttles" device: a filled dot in place of the letter o */
.o-dot {
  display: inline-block; width: .52em; height: .52em; border-radius: 50%;
  background: var(--red); margin: 0 .03em; vertical-align: -.02em;
}
.section-sub { max-width: 52ch; color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); margin: 20px 0 0; }
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section-head { margin-bottom: clamp(40px, 5vw, 72px); }

/* halftone utility */
.halftone {
  background-color: var(--c);
  -webkit-mask: radial-gradient(circle at center, #000 42%, transparent 46%) 0 0 / 10px 10px;
          mask: radial-gradient(circle at center, #000 42%, transparent 46%) 0 0 / 10px 10px;
}
.halftone-soft {
  background-image: radial-gradient(rgba(22,25,31,.13) 1.2px, transparent 1.6px);
  background-size: 14px 14px;
}

/* ---------- HERO ---------- */
.hero {
  padding: clamp(32px, 6vw, 80px) 0 0;
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(228,231,94,.55), transparent 70%),
    radial-gradient(50% 60% at 10% 90%, rgba(228,231,94,.25), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero-title {
  font-family: var(--f-display); font-weight: 800;
  font-variation-settings: "wdth" 100;
  font-size: clamp(48px, 7.6vw, 112px);
  line-height: .9; letter-spacing: -.04em; margin: 0;
}
.hero-title .hl { color: var(--red); position: relative; white-space: nowrap; }
.hero-title .hl::after { /* misregistered ghost — offset ink layer */
  content: attr(data-ghost); position: absolute; inset-inline-start: 0; top: 0;
  color: var(--cyan); mix-blend-mode: multiply; opacity: .55;
  transform: translate(4px, 3px); pointer-events: none;
  animation: register 1.6s 1s var(--ease) forwards;
}
@keyframes register { to { transform: translate(0, 0); opacity: 0; } }
.hero-lede { max-width: 50ch; font-size: clamp(17px, 1.5vw, 20px); margin: 28px 0 32px; color: var(--ink-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* press sheet */
.press-sheet {
  position: relative; aspect-ratio: 4 / 5;
  background: var(--card);
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 30px 60px -30px rgba(40,30,10,.35);
  display: flex; flex-direction: column; justify-content: center; align-items: stretch;
  padding: 0 16%;
  direction: ltr;
}
.crop { position: absolute; width: 22px; height: 22px; border-color: var(--ink); opacity: .55; }
.crop--tl { top: 14px; left: 14px; border-top: 1px solid; border-left: 1px solid; }
.crop--tr { top: 14px; right: 14px; border-top: 1px solid; border-right: 1px solid; }
.crop--bl { bottom: 14px; left: 14px; border-bottom: 1px solid; border-left: 1px solid; }
.crop--br { bottom: 14px; right: 14px; border-bottom: 1px solid; border-right: 1px solid; }
.reg-mark { position: absolute; width: 22px; height: 22px; color: var(--ink); opacity: .6; left: 50%; margin-left: -11px; }
.reg-mark--t { top: 10px; } .reg-mark--b { top: 50%; left: 10px; margin: -11px 0 0; }
.sheet-logo { position: relative; width: 100%; aspect-ratio: 258 / 240; }
.sheet-logo .layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.layer--y { color: var(--yellow); mix-blend-mode: multiply; animation: passY 2.2s .3s var(--ease) both; }
.layer--m { color: var(--magenta); mix-blend-mode: multiply; animation: passM 2.2s .3s var(--ease) both; }
.layer--final { color: var(--red); opacity: 0; animation: inkIn .8s 2.3s ease forwards; }
@keyframes passY { from { transform: translate(-14px, -9px); clip-path: inset(0 100% 0 0); } 40% { clip-path: inset(0 0 0 0); } to { transform: none; clip-path: inset(0 0 0 0); } }
@keyframes passM { from { transform: translate(12px, 10px); clip-path: inset(0 0 0 100%); } 40% { clip-path: inset(0 0 0 0); } to { transform: none; clip-path: inset(0 0 0 0); } }
@keyframes inkIn { to { opacity: 1; } }
.sheet-year {
  align-self: flex-end; margin-top: 6%;
  display: flex; align-items: flex-end; gap: 4px;
  color: var(--red-soft); font-weight: 300; font-size: clamp(16px, 1.8vw, 24px); letter-spacing: -.02em;
}
.sheet-year span { width: clamp(50px, 7vw, 90px); height: 1px; background: currentColor; margin-bottom: .3em; }
.color-bar { display: flex; height: 14px; }
.color-bar i { flex: 1; background: var(--c); border-right: 1px solid rgba(0,0,0,.08); }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(56px, 7vw, 96px);
  border-top: 2px solid var(--ink);
}
.stat { padding-block: 22px 28px; padding-inline: 0 16px; border-inline-end: 1px solid var(--line); }
.stat + .stat { padding-inline-start: 22px; }
.stat:last-child { border-inline-end: 0; }
.stat b { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 80; font-size: clamp(38px, 4.6vw, 64px); line-height: 1; letter-spacing: -.03em; }
.stat-n { display: inline-block; }
.stat-n > span { font-family: var(--f-display); font-weight: 800; font-size: clamp(24px, 2.6vw, 36px); color: var(--red); }
.stat p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- TICKER ---------- */
.ticker { background: var(--ink); color: var(--paper); overflow: hidden; padding: 18px 0; margin-top: clamp(40px, 5vw, 64px); }
.ticker-track { display: flex; width: max-content; animation: tick 40s linear infinite; }
.ticker ul { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker li {
  font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 70;
  font-size: clamp(26px, 3.4vw, 44px); letter-spacing: -.01em; text-transform: uppercase;
  padding: 0 .55em; white-space: nowrap; display: flex; align-items: center;
}
.ticker li::after { content: ""; width: .32em; height: .32em; border-radius: 50%; background: var(--red); margin-left: 1.1em; }
.ticker li:nth-child(3n+2) { color: transparent; -webkit-text-stroke: 1px var(--paper); }
@keyframes tick { to { transform: translateX(-50%); } }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* ---------- ABOUT ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-body .big { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.25; letter-spacing: -.015em; margin: 0 0 24px; font-weight: 500; }
.about-body p { color: var(--ink-2); margin: 0; max-width: 58ch; }

/* ---------- WHAT WE PRINT ---------- */
.print-types { background: var(--paper-2); }
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--ink); border: 2px solid var(--ink); }
.type-card { background: var(--paper); padding: clamp(24px, 3vw, 40px); position: relative; overflow: hidden; min-height: 380px; display: flex; flex-direction: column; }
.type-num { font-family: var(--f-mono); font-size: 13px; letter-spacing: .1em; }
.type-swatch { width: 120px; height: 120px; border-radius: 50%; margin: 28px 0 auto; transition: transform .6s var(--ease); }
.type-card:hover .type-swatch { transform: scale(1.12) rotate(20deg); }
.type-card h3 { font-family: var(--f-display); font-variation-settings: "wdth" 100; font-weight: 800; font-size: clamp(28px, 2.6vw, 36px); letter-spacing: -.02em; margin: 32px 0 10px; line-height: 1; }
.type-card p { color: var(--ink-2); margin: 0 0 20px; }
.tag { align-self: flex-start; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--ink); padding: 4px 8px; border-radius: 99px; }

/* ---------- WORK ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.chip {
  border: 1.5px solid var(--ink); background: transparent; border-radius: 99px;
  padding: 8px 18px; font-weight: 600; font-size: 15px; transition: background .25s, color .25s;
}
.chip sup { font-family: var(--f-mono); font-size: 10px; margin-inline-start: 2px; }
.chip.is-active, .chip:hover { background: var(--ink); color: var(--paper); }
.work-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 22px); }
.work-item[hidden] { display: none; }
.work-item.is-entering { animation: pop .5s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(14px); } }
.work-card { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: start; }
.work-card img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: #ddd;
  transition: transform .7s var(--ease), filter .4s;
}
.work-card { position: relative; overflow: hidden; }
.work-card::before { /* halftone ink flood on hover */
  content: ""; position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 4 / 5; z-index: 1;
  background: radial-gradient(var(--red) 1.3px, transparent 1.8px) 0 0 / 9px 9px;
  opacity: 0; mix-blend-mode: multiply; transition: opacity .4s;
  -webkit-mask: linear-gradient(to top, #000, transparent 70%); mask: linear-gradient(to top, #000, transparent 70%);
}
.work-card:hover::before, .work-card:focus-visible::before { opacity: .5; }
.work-card:hover img { transform: scale(1.04); }
.work-cap { display: flex; flex-direction: column; padding: 12px 0 4px; border-top: 3px solid var(--ink); margin-top: 10px; position: relative; }
.work-cap::before { content: ""; position: absolute; left: 0; top: -3px; height: 3px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: var(--start); transition: transform .5s var(--ease); }
.work-card:hover .work-cap::before { transform: scaleX(1); }
.work-cap b { font-family: var(--f-display); font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.work-cap i { font-style: normal; font-size: 13px; color: var(--muted); }

/* ---------- WHO WE SERVE ---------- */
.serve { background: var(--lime); }
.serve .section-sub { color: var(--ink-2); }
.serve-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); }
.serve-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.serve-list li {
  display: flex; align-items: baseline; gap: 20px;
  font-family: var(--f-display); font-weight: 700; font-variation-settings: "wdth" 90;
  font-size: clamp(22px, 2.6vw, 34px); letter-spacing: -.02em; line-height: 1.1;
  padding: 18px 8px; border-bottom: 1px solid rgba(22,25,31,.35);
  position: relative; isolation: isolate;
}
.serve-list li::before {
  content: ""; position: absolute; inset: 0; background: var(--ink); z-index: -1;
  transform: scaleX(0); transform-origin: var(--start); transition: transform .45s var(--ease);
}
.serve-list li:hover { color: var(--lime); }
.serve-list li:hover::before { transform: scaleX(1); }
.serve-list li span { font-family: var(--f-mono); font-size: 12px; font-weight: 400; letter-spacing: .1em; }

/* ---------- WHY US ---------- */
.why { background: var(--ink); color: var(--paper); }
.why .h-section .dot, .why .h-sub .dot { color: var(--red); }
.why-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.why-item { border-top: 5px solid var(--paper); padding-top: 18px; }
.why-item h3 { color: var(--red); font-family: var(--f-display); font-weight: 800; font-size: 22px; line-height: 1.05; letter-spacing: -.015em; margin: 0 0 10px; }
.why-item p { margin: 0; font-size: 15px; color: rgba(244,241,228,.78); }
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.spec { border: 1px solid rgba(244,241,228,.22); padding: 22px; position: relative; background: rgba(255,255,255,.02); }
.spec::after { content: ""; position: absolute; top: -1px; inset-inline-end: -1px; width: 14px; height: 14px; border-top: 2px solid var(--lime); border-inline-end: 2px solid var(--lime); }
.spec code { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--lime); }
.spec h4 { font-size: 19px; margin: 14px 0 8px; letter-spacing: -.01em; }
.spec p { margin: 0; font-size: 15px; color: rgba(244,241,228,.72); }

/* ---------- PROCESS ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; }
.step { position: relative; padding: 0 20px 0 0; }
.step::before { /* the "screen" for this colour layer */
  content: ""; display: block; height: 120px; margin-bottom: 22px;
  border: 2px solid var(--ink);
  background:
    radial-gradient(var(--c) 1.6px, transparent 2.1px) 0 0 / 8px 8px,
    linear-gradient(var(--card), var(--card));
  transition: transform .5s var(--ease);
}
.step:hover::before { transform: translateY(-6px) rotate(-1.5deg); }
.step-n {
  position: absolute; top: 78px; inset-inline-start: 10px;
  font-family: var(--f-display); font-weight: 900; font-size: 30px; line-height: 1;
  background: var(--paper); padding: 2px 8px; border: 2px solid var(--ink);
}
.step h3 { font-family: var(--f-display); font-weight: 800; font-size: 22px; letter-spacing: -.015em; margin: 0 0 8px; }
.step p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* ---------- STUDIO ---------- */
.studio { background: var(--paper-2); }
.studio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.stage {
  position: sticky; top: 96px;
  background: var(--card); border: 2px solid var(--ink);
  aspect-ratio: 4 / 5; display: grid; place-items: center; overflow: hidden;
}
.stage-bg { position: absolute; inset: 0; }
.stage::before { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(transparent, rgba(22,25,31,.06)); }
#vessel { position: relative; width: 78%; height: 88%; }
.stage-note { position: absolute; bottom: 10px; left: 14px; right: 14px; margin: 0; font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em; color: var(--muted); text-align: center; }
#artLayer { transition: opacity .25s; }

.controls { display: flex; flex-direction: column; gap: 22px; }
.controls fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.controls legend { font-weight: 700; font-size: 15px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; padding: 0; }
.controls legend span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: var(--f-mono); font-size: 12px; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); border: 2px solid var(--ink); border-radius: 99px; overflow: hidden; }
.seg--2 { grid-template-columns: 1fr 1fr; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 10px 6px; font-size: 14px; font-weight: 600; border-inline-end: 1px solid var(--line); transition: background .2s, color .2s; }
.seg label:last-child span { border-inline-end: 0; }
.seg input:checked + span { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 2px solid var(--red); outline-offset: -4px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.swatches label { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 66px; cursor: pointer; }
.swatches input[type=radio] { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.swatches i { width: 42px; height: 42px; border-radius: 50%; background: var(--s); border: 1px solid rgba(0,0,0,.2); box-shadow: inset 0 -6px 10px rgba(0,0,0,.12); transition: transform .2s; }
.swatches em { font-style: normal; font-size: 11.5px; text-align: center; line-height: 1.15; color: var(--muted); }
.swatches input:checked + i { box-shadow: 0 0 0 3px var(--paper-2), 0 0 0 5px var(--ink); transform: scale(1.05); }
.swatches input:checked ~ em { color: var(--ink); font-weight: 600; }
.swatches input:focus-visible + i { outline: 2px solid var(--red); outline-offset: 5px; }
.color-in { width: 42px; height: 42px; border: 0; padding: 0; background: none; cursor: pointer; display: none; }
.color-in.is-on { display: block; }
.art-text { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 10px; }
.art-text input, .art-text select { font: inherit; font-size: 16px; padding: 10px 14px; border: 2px solid var(--ink); border-radius: 6px; background: var(--card); color: var(--ink); min-width: 0; }
.art-upload { margin-top: 10px; }
.drop { display: flex; align-items: center; gap: 14px; padding: 16px; border: 2px dashed var(--ink); border-radius: 8px; cursor: pointer; background: var(--card); position: relative; transition: background .2s; }
.drop.is-over { background: var(--lime); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-ico { font-size: 22px; width: 44px; height: 44px; display: grid; place-items: center; background: var(--ink); color: var(--paper); border-radius: 50%; flex: none; }
.drop-txt { font-size: 14px; line-height: 1.35; }
.drop-txt small { color: var(--muted); }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; margin-top: 10px; }
.check input { width: 18px; height: 18px; accent-color: var(--red); }
.range { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 12px; font-size: 14px; margin-bottom: 6px; }
.range input { width: 100%; accent-color: var(--red); }
.studio-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding-top: 6px; }
fieldset[disabled] { opacity: .4; }

/* ---------- CONTACT ---------- */
.contact { background: var(--red); color: #fff; }
.contact .section-sub { color: rgba(255,255,255,.88); }
.h-section--light .dot { color: var(--ink); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 36px 0 28px; border-top: 2px solid #fff; }
.contact-list li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.35); }
.contact-list span { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .8; padding-top: 3px; }
.contact-list a { font-weight: 600; text-decoration: none; word-break: break-word; }
.contact-list a:hover { text-decoration: underline; }
.contact-list .phones { display: flex; flex-wrap: wrap; gap: 4px 18px; font-family: inherit; font-size: inherit; letter-spacing: 0; text-transform: none; opacity: 1; padding-top: 0; }
.footer-phones a { color: var(--ink); text-decoration: none; }
.footer-phones a:hover { text-decoration: underline; }
.map { aspect-ratio: 16 / 10; border: 2px solid #fff; overflow: hidden; background: rgba(255,255,255,.1); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }

.form-card { background: var(--paper); color: var(--ink); padding: clamp(22px, 3vw, 40px); box-shadow: 14px 14px 0 var(--ink); position: relative; }
.form-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--ink); padding-bottom: 14px; margin-bottom: 22px; }
.form-head h3 { font-family: var(--f-display); font-weight: 800; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.02em; margin: 0; }
.form-head code { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin-bottom: 22px; }
.f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.f--full { grid-column: 1 / -1; }
.f > span { font-size: 13px; font-weight: 600; }
.f input, .f select, .f textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--card); border: 1.5px solid rgba(22,25,31,.35); border-radius: 6px;
  padding: 12px 14px; width: 100%; transition: border-color .2s, box-shadow .2s;
}
.f select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-end: 34px; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(216,58,43,.25); }
.f textarea { resize: vertical; min-height: 120px; }
.f input[type=file] { padding: 10px; font-size: 14px; }
.f small { font-size: 12px; color: var(--muted); }
.f.is-invalid input, .f.is-invalid textarea { border-color: var(--red); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; }
.form-status { margin: 14px 0 0; font-size: 14px; min-height: 1.2em; }
.form-status.is-error { color: var(--red-dark); font-weight: 600; }
.mockup-attached { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 10px; border: 2px solid var(--ink); background: var(--lime); margin-bottom: 20px; }
.mockup-attached[hidden] { display: none; }
.mockup-attached img { width: 64px; height: 80px; object-fit: contain; background: var(--card); }
.mockup-attached b { display: block; font-size: 15px; }
.mockup-attached span { font-size: 13px; color: var(--ink-2); }
.form-done { text-align: center; padding: 48px 12px; }
.form-done h3 { font-family: var(--f-display); font-weight: 800; font-size: 32px; letter-spacing: -.02em; margin: 18px 0 8px; }
.form-done p { color: var(--muted); margin: 0 0 22px; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--paper); padding-top: 56px; }
.footer-row { display: flex; gap: 40px; align-items: flex-end; justify-content: space-between; padding-bottom: 40px; }
.footer-meta { text-align: end; font-size: 14px; color: var(--muted); }
.footer-meta p { margin: 4px 0; }
.footer-meta a { color: var(--ink); }
.footer-meta .small { font-size: 12px; }
.color-bar--footer { height: 10px; }

/* ---------- LIGHTBOX ---------- */
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(22,25,31,.94); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-height: 100%; }
.lightbox img { max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); width: auto; object-fit: contain; }
.lightbox figcaption { color: var(--paper); margin-top: 14px; font-size: 15px; text-align: center; }
.lightbox figcaption b { font-family: var(--f-display); font-size: 20px; margin-inline-end: 8px; }
.lb-close { position: absolute; top: 12px; inset-inline-end: 16px; font-size: 36px; background: none; border: 0; color: var(--paper); width: 48px; height: 48px; }
.lb-nav { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--paper); background: none; color: var(--paper); font-size: 20px; }
.lb-nav:hover { background: var(--red); border-color: var(--red); }

/* ---------- reveal (squeegee wipe) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* hidden with opacity (not clip-path) so IntersectionObserver still sees it */
  .js .reveal { opacity: 0; }
  .js .reveal.is-in { animation: wipe 1s var(--ease) both; }
  @keyframes wipe {
    from { opacity: 1; clip-path: inset(0 100% 0 0); transform: translateY(10px); }
    to   { opacity: 1; clip-path: inset(0 0 0 0); transform: none; }
  }
}

/* ---------- language switch + current page ---------- */
.nav a.lang {
  border: 1.5px solid var(--ink); border-radius: 99px; padding: 5px 12px; line-height: 1.2;
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}
[dir="rtl"] .nav a.lang { font-family: "Archivo", sans-serif; }
.nav a.lang::after { display: none; }
.nav a.lang:hover { background: var(--ink); color: var(--paper); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- work page ---------- */
.types-more { margin: 36px 0 0; }
.work-page { padding-top: clamp(40px, 6vw, 80px); }
.work-cta { background: var(--ink); color: var(--paper); padding: clamp(56px, 8vw, 96px) 0; }
.work-cta-row { display: flex; justify-content: space-between; align-items: center; gap: 28px 40px; flex-wrap: wrap; }
.work-cta h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(32px, 4.4vw, 56px); letter-spacing: -.03em; line-height: 1.05; margin: 0 0 10px; }
.work-cta p { margin: 0; color: rgba(244,241,228,.75); max-width: 48ch; }
.btn--light { --fg: var(--paper); border-color: var(--paper); --sweep: var(--paper); }
.btn--light:hover { color: var(--ink); }
.simple-page { min-height: 100vh; display: grid; place-items: center; text-align: center; }
.simple-page .section-sub { margin: 24px auto 32px; }

/* ---------- Arabic (right-to-left) ---------- */
[dir="rtl"] body { line-height: 1.75; }
[dir="rtl"] body *:not(.ticker li) { letter-spacing: 0 !important; } /* tracking breaks Arabic letter joins */
[dir="rtl"] .h-section { line-height: 1.2; font-weight: 800; }
[dir="rtl"] .hero-title { line-height: 1.2; font-size: clamp(44px, 6.6vw, 96px); }
[dir="rtl"] .h-sub { line-height: 1.25; }
[dir="rtl"] .about-body .big { line-height: 1.6; }
[dir="rtl"] .type-card h3, [dir="rtl"] .why-item h3, [dir="rtl"] .step h3, [dir="rtl"] .work-cta h2 { line-height: 1.35; }
[dir="rtl"] .serve-list li { line-height: 1.45; }
[dir="rtl"] .eyebrow, [dir="rtl"] .tag, [dir="rtl"] .contact-list span, [dir="rtl"] .stage-note { font-family: var(--f-body); font-size: 13px; }
[dir="rtl"] .f select { background-position: 13px 52%, 18px 52%; }
.ticker { direction: ltr; } /* brand names are Latin; keeps the loop seamless */

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px;
    padding: 96px var(--gutter) 40px;
    background: var(--paper);
    transform: translateY(-100%); transition: transform .5s var(--ease);
    visibility: hidden;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a:not(.btn) { font-family: var(--f-display); font-weight: 800; font-size: 44px; letter-spacing: -.03em; line-height: 1.15; }
  [dir="rtl"] .nav a:not(.btn) { line-height: 1.45; font-size: 38px; }
  .nav a.lang { font-size: 17px !important; font-weight: 600; line-height: 1.2 !important; margin-top: 18px; padding: 8px 18px; }
  .nav .btn { margin-top: 24px; font-size: 17px; padding: 1em 1.6em; }
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }

  .hero-grid, .about-grid, .serve-grid, .studio-grid, .contact-grid { grid-template-columns: 1fr; }
  .press-sheet { max-width: 420px; width: 88%; margin: 8px auto 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-inline-end: 0; }
  .stat:nth-child(3) { padding-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .types { grid-template-columns: 1fr; }
  .type-card { min-height: 0; }
  .type-swatch { width: 84px; height: 84px; margin-bottom: 0; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step { display: grid; grid-template-columns: 96px 1fr; column-gap: 18px; padding: 0; }
  .step::before { grid-row: span 2; height: 96px; margin: 0; }
  .step-n { top: 60px; inset-inline-start: 6px; font-size: 22px; }
  .step h3 { align-self: end; }
  .stage { position: relative; top: 0; max-width: 460px; width: 100%; margin: 0 auto; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-cap b { font-size: 15px; }
  .why-grid { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .seg { grid-template-columns: 1fr 1fr; border-radius: 14px; }
  .seg span { border-bottom: 1px solid var(--line); }
  .seg--2 span { border-bottom: 0; }
  .swatches label { width: 58px; }
  .form-card { box-shadow: 8px 8px 0 var(--ink); }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
  .lightbox { grid-template-columns: 1fr 1fr; padding: 60px 12px 16px; }
  .lightbox figure { grid-column: 1 / -1; grid-row: 1; }
  .lb-nav { grid-row: 2; justify-self: center; margin-top: 12px; }
  .hero-title .hl { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .ticker-track { animation: none; }
  html { scroll-behavior: auto; }
}

[dir="rtl"] .contact-list .phones { font-family: inherit; font-size: inherit; }
