/* ==========================================================================
   SarrdehTech — company profile (light)
   Identity: Figma "Sarrdeh-Tech System" (LBC type, the Sarrdeh mark, #076662 / #57B6B2).
   Content and service colours: pages 1–7 of the company profile PDF.
   ========================================================================== */

/* LBC is the brand typeface (variable, weights 100–900), the same file the
   Sarrdeh-Tech System app uses. Readex Pro stays as the fallback while it loads. */
@font-face {
  font-family: "LBC";
  src: url("/assets/fonts/LBC.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Paper and ink (the light page of the PDF, page 7) */
  --paper: #f5f8f8;
  --paper-2: #eaf0f0;
  --card: #ffffff;
  --ink: #011314;
  --ink-2: #263b3b;
  --mute: #5f7473;
  --line: rgb(1 19 20 / 0.1);
  --line-2: rgb(1 19 20 / 0.18);
  /* Brand */
  --teal: #076662;
  --cyan: #0bc3c5;
  --aqua: #57b6b2;
  /* The four services, as printed on page 3 */
  --care: #0c84c6;
  --dev: #0bc3c5;
  --creative: #e5e538;
  --marketing: #f43c3a;

  --f: "LBC", "Readex Pro", system-ui, sans-serif;
  --f-num: "Manrope", "LBC", system-ui, sans-serif;
  --t-hero: clamp(2.6rem, 1.2rem + 5.6vw, 7rem);
  --t-h2: clamp(2rem, 1.15rem + 3.2vw, 4.25rem);
  --t-h3: clamp(1.35rem, 1.05rem + 1.1vw, 2rem);
  --t-lead: clamp(1.1rem, 1rem + 0.45vw, 1.4rem);
  --t-body: 1.0625rem;
  --t-s: 0.9375rem;
  --t-xs: 0.8125rem;
  --pad: clamp(20px, 5vw, 72px);
  --max: 1380px;
  --hdr: 76px;
  --r: 24px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  color-scheme: light;
  accent-color: var(--teal);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 12px); }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(60vw 50vh at 100% 0%, rgb(11 195 197 / 0.08), transparent 70%),
    radial-gradient(50vw 60vh at 0% 30%, rgb(7 102 98 / 0.06), transparent 70%),
    var(--paper);
  color: var(--ink);
  font-family: var(--f);
  font-size: var(--t-body);
  line-height: 1.85;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
:lang(en) body, body:lang(en) { line-height: 1.7; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ol, ul, dl, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
[lang="en"] { font-family: var(--f); }
::selection { background: var(--teal); color: #fff; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; border-radius: 6px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: fixed; top: 12px; inset-inline-start: 12px; z-index: 200; padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: #fff; translate: 0 -200%; transition: translate 0.25s var(--ease);
}
.skip:focus { translate: 0 0; }
.wrap { width: min(100% - var(--pad) * 2, var(--max)); margin-inline: auto; }

/* ---------- Backdrop: the Sarrdeh mark behind the page ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.backdrop__mark {
  position: absolute; top: 50%; left: 50%; height: min(118vh, 1100px); width: auto; translate: -50% -50%;
  fill: var(--teal); opacity: 0.055; transition: opacity 0.6s;
}
/* scene.js drives the canvas opacity (full in the cover, a faint watermark further down). */
.backdrop__gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.has-gl .backdrop__mark, .has-gl .hero__fallback { opacity: 0; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 30px; border-radius: 999px; border: 1px solid transparent;
  font-size: var(--t-s); font-weight: 600; letter-spacing: 0; white-space: nowrap;
  transition: color 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--teal); transform: scaleX(0); transform-origin: var(--from, right); transition: transform 0.5s var(--ease);
}
[dir="ltr"] .btn::before { --from: left; }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn--ink { background: var(--ink); color: #fff; box-shadow: 0 14px 30px -18px rgb(1 19 20 / 0.7); }
.btn--line { border-color: var(--line-2); color: var(--ink); background: rgb(255 255 255 / 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn--line:hover, .btn--line:focus-visible { color: #fff; border-color: var(--teal); }
.btn--xl { min-height: 72px; padding: 0 44px; font-size: var(--t-lead); }
.btn span { position: relative; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 0.75rem; font-weight: 600; line-height: 1.5; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgb(11 195 197 / 0.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgb(11 195 197 / 0); } 100% { box-shadow: 0 0 0 0 rgb(11 195 197 / 0); } }

/* ---------- Logo (masks so it can take any colour) ---------- */
.logo {
  display: block; width: 91px; height: 44px; background: var(--ink);
  -webkit-mask: url("/assets/img/brand/logo-horizontal-white.svg") center / contain no-repeat;
  mask: url("/assets/img/brand/logo-horizontal-white.svg") center / contain no-repeat;
}
.logo--sm { width: 74px; height: 36px; }

/* ---------- Header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hdr);
  display: flex; align-items: center; gap: 28px; padding-inline: var(--pad);
  transition: background-color 0.4s, box-shadow 0.4s, translate 0.45s var(--ease);
}
.hdr.is-scrolled {
  background: rgb(245 248 248 / 0.78); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.hdr.is-hidden { translate: 0 -100%; }
.hdr__brand { flex: none; border-radius: 8px; }
.hdr__nav { margin-inline: auto; }
.hdr__nav ul { display: flex; gap: 6px; }
.hdr__nav a {
  position: relative; display: block; padding: 8px 14px; border-radius: 999px; font-size: var(--t-s); font-weight: 500; color: var(--ink-2);
  transition: color 0.3s, background-color 0.3s;
}
.hdr__nav a:hover { color: var(--ink); background: rgb(1 19 20 / 0.05); }
.hdr__nav a[aria-current="true"] { color: var(--ink); background: rgb(7 102 98 / 0.1); }
.hdr__end { display: flex; align-items: center; gap: 10px; }
.hdr__cta { min-height: 46px; padding: 0 22px; }
.lang {
  display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.02em; transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.lang:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.lang:lang(ar) { font-size: var(--t-s); }
.hdr__menu {
  display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: rgb(255 255 255 / 0.6);
  place-content: center; gap: 6px; padding: 0;
}
.hdr__menu span { display: block; width: 18px; height: 1.5px; background: var(--ink); border-radius: 2px; }

.mnav {
  inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; padding: calc(var(--hdr) + 24px) var(--pad) 40px;
  background: var(--paper); color: var(--ink);
}
.mnav:popover-open { display: flex; flex-direction: column; gap: 32px; }
.mnav ul { display: grid; gap: 8px; }
.mnav ul a { display: block; padding: 8px 0; font-size: clamp(2rem, 9vw, 3rem); font-weight: 700; line-height: 1.3; border-block-end: 1px solid var(--line); }
.mnav__close { position: absolute; top: 15px; inset-inline-end: var(--pad); width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); }
.mnav__close::before, .mnav__close::after { content: ""; position: absolute; inset: 50% 30%; height: 1.5px; background: var(--ink); rotate: 45deg; }
.mnav__close::after { rotate: -45deg; }
.lang--big { align-self: start; height: 54px; padding: 0 26px; font-size: var(--t-body); }

/* ---------- Shared section heads ---------- */
section { position: relative; }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-size: var(--t-s); font-weight: 600; color: var(--teal); }
.kicker::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }
.title { font-size: var(--t-h2); font-weight: 700; line-height: 1.18; letter-spacing: -0.01em; text-wrap: balance; }
:lang(en) .title { line-height: 1.06; letter-spacing: -0.035em; }
.lead { max-width: 60ch; font-size: var(--t-lead); line-height: 1.75; color: var(--mute); text-wrap: pretty; }
.head { display: grid; gap: 20px; margin-block-end: clamp(40px, 6vw, 80px); }
.head--split { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; }
.w { display: inline-block; overflow: clip; overflow-clip-margin: 0.2em; vertical-align: top; padding-block: 0.06em; margin-block: -0.06em; }
.w > span { display: inline-block; }

/* ---------- 01 · Cover ---------- */
.hero {
  min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: 24px;
  padding: calc(var(--hdr) + 32px) var(--pad) 120px; max-width: calc(var(--max) + var(--pad) * 2); margin-inline: auto;
}
.hero__copy { display: grid; gap: 28px; position: relative; z-index: 2; }
.hero__tagline { font-size: var(--t-s); color: var(--mute); max-width: 52ch; }
.hero__title { font-size: var(--t-hero); font-weight: 700; line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
:lang(en) .hero__title { line-height: 1; letter-spacing: -0.045em; }
.hero__slogan { font-size: clamp(1.4rem, 1rem + 1.5vw, 2.4rem); font-weight: 700; color: var(--teal); }
.hero__slogan span { position: relative; padding-inline: 0.08em; }
.hero__slogan span::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0.08em; height: 0.32em; z-index: -1; border-radius: 4px;
  background: linear-gradient(90deg, rgb(11 195 197 / 0.35), rgb(229 229 56 / 0.45)); transform: scaleX(var(--u, 1)); transform-origin: var(--from, right);
}
[dir="ltr"] .hero__slogan span::after { --from: left; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 8px; }
.hero__stage { position: relative; height: min(76vh, 760px); display: grid; place-items: center; }
.hero__fallback { height: 92%; width: auto; fill: var(--teal); opacity: 0.9; filter: drop-shadow(0 40px 60px rgb(7 102 98 / 0.25)); transition: opacity 0.6s; }
.hero__year {
  position: absolute; inset-inline-end: var(--pad); bottom: 28px; font-family: var(--f-num); font-weight: 800; font-size: clamp(4rem, 13vw, 13rem); line-height: 0.8;
  color: transparent; -webkit-text-stroke: 1px rgb(7 102 98 / 0.22); letter-spacing: -0.04em; pointer-events: none; user-select: none;
}
.hero__hint { position: absolute; bottom: 34px; inset-inline-start: var(--pad); display: flex; align-items: center; gap: 12px; font-size: var(--t-xs); color: var(--mute); }
.hero__wheel { width: 22px; height: 34px; border: 1.5px solid var(--line-2); border-radius: 12px; position: relative; }
.hero__wheel::after { content: ""; position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--teal); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; translate: 0 -2px; } 30% { opacity: 1; } 100% { opacity: 0; translate: 0 10px; } }

/* Crossing tapes with the six disciplines */
.tapes { position: relative; height: clamp(150px, 16vw, 230px); margin-block: 20px clamp(60px, 9vw, 140px); overflow: hidden; }
.tape { position: absolute; inset-inline: -5%; top: 50%; padding-block: clamp(14px, 1.5vw, 22px); overflow: hidden; }
.tape--ink { background: var(--ink); color: #fff; rotate: -3deg; translate: 0 -55%; z-index: 2; box-shadow: 0 20px 40px -24px rgb(1 19 20 / 0.6); }
.tape--cyan { background: var(--cyan); color: var(--ink); rotate: 2.4deg; translate: 0 -40%; }
.tape__track { display: flex; align-items: center; gap: clamp(22px, 3vw, 44px); width: max-content; font-size: clamp(1.1rem, 0.8rem + 1.4vw, 2rem); font-weight: 700; white-space: nowrap; }
.tape__track svg { height: 1.3em; width: auto; fill: var(--cyan); flex: none; }
.tape__track i { width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--ink); flex: none; }

/* ---------- 02 · Founder message ---------- */
.msg { padding-block: clamp(40px, 6vw, 80px) clamp(90px, 12vw, 180px); }
.msg__lead {
  margin-block: 28px clamp(48px, 7vw, 96px); font-size: clamp(1.6rem, 1rem + 2.6vw, 3.4rem); font-weight: 600; line-height: 1.45; letter-spacing: -0.01em; text-wrap: pretty;
}
:lang(en) .msg__lead { line-height: 1.22; letter-spacing: -0.03em; }
.js .msg__lead .w > span { color: rgb(1 19 20 / 0.16); transition: color 0.2s; }
.js .msg__lead .w.is-lit > span { color: var(--ink); }
.msg__body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.msg__text { display: grid; gap: 22px; font-size: var(--t-lead); color: var(--ink-2); line-height: 1.9; max-width: 68ch; }
:lang(en) .msg__text { line-height: 1.7; }
.msg__close { font-weight: 700; color: var(--teal); }
.msg__sign {
  position: sticky; top: calc(var(--hdr) + 24px); display: grid; gap: 4px; padding: 30px; border-radius: var(--r);
  background: var(--card); box-shadow: 0 30px 60px -40px rgb(1 19 20 / 0.35), 0 0 0 1px var(--line);
}
.msg__sym { height: 64px; width: auto; fill: var(--teal); margin-block-end: 18px; }
.msg__name { font-size: var(--t-h3); font-weight: 700; color: var(--teal); }
.msg__role { color: var(--mute); }

/* ---------- 03–05 · Services ---------- */
.svc { padding-block-end: clamp(80px, 10vw, 160px); }
.svc__list { border-block-start: 1px solid var(--line-2); counter-reset: svc; }
.svc__item { border-block-end: 1px solid var(--line-2); }
.svc__row {
  position: relative; isolation: isolate; display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.1fr) 56px; align-items: center; gap: clamp(16px, 3vw, 48px);
  padding: clamp(22px, 3vw, 38px) clamp(8px, 1.5vw, 24px); transition: color 0.45s var(--ease);
}
.svc__row::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--tone); transform: scaleY(0); transform-origin: bottom; transition: transform 0.6s var(--ease);
}
.svc__row:hover, .svc__row:focus-visible { color: var(--on); }
.svc__row:hover::before, .svc__row:focus-visible::before { transform: scaleY(1); }
.svc__num { font-family: var(--f-num); font-size: clamp(2.2rem, 1.4rem + 2.4vw, 3.6rem); font-weight: 800; color: var(--tone); line-height: 1; transition: color 0.45s; -webkit-text-stroke: 0; }
.svc__row:hover .svc__num, .svc__row:focus-visible .svc__num { color: var(--on); }
.svc__item:nth-child(3) .svc__num { color: var(--ink); -webkit-text-stroke: 0; text-shadow: 0 0 0 var(--creative); background: linear-gradient(transparent 55%, var(--creative) 55%); width: max-content; padding-inline: 4px; }
.svc__names { display: grid; gap: 2px; }
.svc__name { font-size: var(--t-h3); font-weight: 700; line-height: 1.3; }
.svc__alt { font-size: var(--t-s); font-weight: 600; opacity: 0.65; }
.svc__desc { color: inherit; opacity: 0.85; font-size: var(--t-body); line-height: 1.75; }
.svc__go { width: 56px; height: 56px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; opacity: 0.4; transition: opacity 0.3s, rotate 0.45s var(--ease); }
.svc__go svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .svc__go svg { scale: -1 1; }
.svc__row:hover .svc__go { opacity: 1; rotate: 45deg; }
[dir="rtl"] .svc__row:hover .svc__go { rotate: -45deg; }

/* Stacked service sheets (pages 4–5) */
.sheets { width: min(100% - var(--pad) * 2, var(--max)); margin: clamp(60px, 8vw, 120px) auto 0; display: grid; gap: 40px; }
.sheet { position: sticky; top: calc(var(--hdr) + 20px + var(--i) * 18px); }
.sheet__card {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px);
  min-height: min(72vh, 640px); padding: clamp(28px, 4.5vw, 64px); border-radius: clamp(24px, 3vw, 40px);
  background: var(--card); box-shadow: 0 -1px 0 var(--line), 0 40px 80px -50px rgb(1 19 20 / 0.45); transform-origin: 50% 0;
}
.sheet__card::before { content: ""; position: absolute; inset: 0 0 auto; height: 10px; background: var(--tone); }
/* The sheet underneath dims a little as the next one slides over it */
.sheet__card::after { content: ""; position: absolute; inset: 0; background: var(--paper-2); opacity: calc(var(--dim, 0) * 0.55); pointer-events: none; z-index: 2; }
.sheet__side { display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; }
.sheet__num { font-family: var(--f-num); font-weight: 800; font-size: clamp(4rem, 3rem + 4vw, 8rem); line-height: 0.9; color: var(--tone); letter-spacing: -0.04em; }
.sheet:nth-child(3) .sheet__num { color: var(--ink); text-shadow: 3px 3px 0 var(--creative); }
.sheet__kicker { color: var(--mute); font-size: var(--t-s); font-weight: 600; }
.sheet__name { font-size: var(--t-h2); font-weight: 700; line-height: 1.15; }
.sheet__alt { font-size: var(--t-body); font-weight: 600; color: var(--mute); margin-block-start: -6px; }
.sheet__intro { margin-block-start: auto; font-size: var(--t-lead); color: var(--ink-2); line-height: 1.8; max-width: 44ch; }
.sheet__points { align-self: center; display: grid; gap: 4px; position: relative; z-index: 1; }
.sheet__points li {
  display: flex; align-items: center; gap: 16px; padding: 16px 4px; border-block-end: 1px solid var(--line);
  font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.25rem); font-weight: 600; line-height: 1.5;
}
.sheet__dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 5px color-mix(in srgb, var(--tone) 18%, transparent); }
.sheet__points .badge { margin-inline-start: auto; }
.sheet__sym { position: absolute; inset-inline-end: -4%; bottom: -18%; height: 80%; width: auto; fill: var(--tone); opacity: 0.08; pointer-events: none; }

/* ---------- 06 · Vision, mission & values ---------- */
.about { padding-block: clamp(90px, 12vw, 180px); }
.about__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 32px); margin-block: clamp(40px, 6vw, 80px); }
.about__card {
  position: relative; overflow: hidden; padding: clamp(28px, 4vw, 56px); border-radius: var(--r); background: var(--card);
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -45px rgb(1 19 20 / 0.4);
}
.about__card h3 { font-size: var(--t-h3); font-weight: 700; color: var(--teal); margin-block-end: 18px; }
.about__card p { font-size: var(--t-lead); line-height: 1.85; color: var(--ink-2); }
:lang(en) .about__card p { line-height: 1.65; }
.about__card--alt { background: var(--ink); color: #fff; }
.about__card--alt h3 { color: var(--cyan); }
.about__card--alt p { color: rgb(255 255 255 / 0.82); }
.values { display: grid; justify-items: center; gap: 30px; margin-block-start: clamp(40px, 6vw, 100px); }
.values__orbit { position: relative; width: min(660px, 92vw); aspect-ratio: 1; }
.values__ring { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--line-2); stroke-width: 0.25; stroke-dasharray: 0.6 1.2; }
.values__sym { position: absolute; top: 50%; left: 50%; height: 38%; width: auto; translate: -50% -50%; fill: var(--teal); }
.values__list { position: absolute; inset: 0; }
.values__list li {
  position: absolute; top: 50%; left: 50%; width: 0; height: 0;
  transform: rotate(calc(var(--i) * 60deg - 90deg)) translateX(calc(min(660px, 92vw) * 0.5 - 2px)) rotate(calc(var(--i) * -60deg + 90deg)) rotate(calc(var(--spin, 0) * -1deg));
}
.values__list li span {
  position: absolute; translate: -50% -50%; white-space: nowrap; padding: 12px 22px; border-radius: 999px;
  background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 16px 30px -18px rgb(1 19 20 / 0.45);
  font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.2rem); font-weight: 700; transition: background-color 0.3s, color 0.3s;
}
.values__list li:hover span { background: var(--teal); color: #fff; }

/* ---------- Work ---------- */
.work { padding-block: clamp(60px, 9vw, 140px); }
.work__count { display: flex; align-items: baseline; gap: 10px; color: var(--mute); }
.work__count b { font-family: var(--f-num); font-size: clamp(3rem, 2rem + 4vw, 6.5rem); font-weight: 800; line-height: 0.9; color: var(--ink); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.filters { position: relative; display: flex; flex-wrap: wrap; gap: 8px 6px; margin-block-end: 26px; }
.filter {
  position: relative; z-index: 1; display: inline-flex; align-items: flex-start; gap: 6px; padding: 12px 22px; border: 0; border-radius: 999px; background: transparent;
  font-size: clamp(1rem, 0.9rem + 0.45vw, 1.3rem); font-weight: 600; color: var(--ink-2); transition: color 0.35s var(--ease);
}
.filter::after { content: ""; position: absolute; inset: 0; z-index: -2; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow 0.3s; }
.filter:hover::after { box-shadow: inset 0 0 0 1px var(--ink); }
.filter sup { font-family: var(--f-num); font-size: 0.62em; font-weight: 700; line-height: 1; translate: 0 0.15em; opacity: 0.6; }
.filter[aria-pressed="true"] { color: #fff; }
.filter__pill { position: absolute; z-index: -1; inset: 0; border-radius: 999px; background: var(--ink); pointer-events: none; }
.work__intro { min-height: 0; margin-block-end: 26px; }
.work__intro:not(:empty) { display: grid; gap: 4px; padding: 20px 24px; border-radius: 18px; background: rgb(7 102 98 / 0.07); }
.work__intro h3 { font-size: var(--t-body); font-weight: 700; }
.work__intro p { color: var(--mute); font-size: var(--t-s); line-height: 1.7; }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 26px); }
.card { grid-column: span 4; --h: clamp(240px, 26vw, 400px); }
.card[data-size="wide"] { grid-column: span 7; --h: clamp(260px, 32vw, 500px); }
.card[data-size="mid"] { grid-column: span 5; --h: clamp(260px, 32vw, 500px); }
.card[hidden] { display: none; }
.card__btn {
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; text-align: start; perspective: 900px;
}
.card__frame {
  position: relative; display: block; height: var(--h); border-radius: clamp(18px, 2vw, 28px); overflow: hidden; background: var(--paper-2);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
  box-shadow: 0 0 0 1px var(--line);
}
.card__btn:hover .card__frame { box-shadow: 0 40px 60px -40px rgb(1 19 20 / 0.55), 0 0 0 1px var(--line); }
.card__frame img { width: 100%; height: 100%; object-fit: cover; scale: 1.02; transition: scale 1s var(--ease), filter 0.6s; }
.card__btn:hover .card__frame img { scale: 1.08; }
.card__shine {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--px, 50%) var(--py, 50%), rgb(255 255 255 / 0.28), transparent 45%);
}
.card__btn:hover .card__shine { opacity: 1; }
.card__veil {
  position: absolute; inset: auto 0 0; padding: 60px 22px 20px; color: #fff; pointer-events: none;
  background: linear-gradient(transparent, rgb(1 19 20 / 0.82)); opacity: 0; translate: 0 14px; transition: opacity 0.45s var(--ease), translate 0.45s var(--ease);
  font-size: var(--t-s); line-height: 1.6;
}
.card__btn:hover .card__veil, .card__btn:focus-visible .card__veil { opacity: 1; translate: 0 0; }
.card__stats { position: absolute; inset: 0; display: grid; place-content: center; gap: 10px; text-align: center; background: var(--ink); color: #fff; }
.card__stats b { display: block; font-family: var(--f-num); font-weight: 800; font-size: clamp(2.2rem, 1.6rem + 2vw, 3.6rem); line-height: 1; color: var(--cyan); }
.card__stats span { font-size: var(--t-s); color: rgb(255 255 255 / 0.75); }
.card__chip {
  position: absolute; top: 14px; inset-inline-start: 14px; padding: 5px 12px; border-radius: 999px; font-size: 0.75rem; font-weight: 700;
  background: rgb(255 255 255 / 0.86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--ink);
  display: inline-flex; align-items: center; gap: 7px;
}
.card__chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tone, var(--cyan)); }
.card__info { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 6px 4px; }
.card__title { font-weight: 700; font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem); line-height: 1.35; }
.card__no { font-family: var(--f-num); font-size: var(--t-xs); font-weight: 700; color: var(--mute); }
.work__more { display: flex; justify-content: center; margin-block-start: clamp(40px, 5vw, 64px); }
.work__noscript { padding: 24px; border-radius: 16px; background: var(--card); }

/* Pointer label over the cards */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 90; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: #fff; font-size: var(--t-s); font-weight: 700;
  pointer-events: none; scale: 0; opacity: 0; transition: scale 0.4s var(--ease), opacity 0.3s;
}
.cursor.is-on { scale: 1; opacity: 1; }
.cursor span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- 07 · Clients ---------- */
.clients { padding-block: clamp(60px, 8vw, 120px); }
.clients__panel { padding: clamp(28px, 5vw, 72px); border-radius: clamp(28px, 3vw, 44px); background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 50px 90px -60px rgb(1 19 20 / 0.45); }
.clients__grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); border-block-start: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.clients__grid li { display: flex; align-items: center; justify-content: center; aspect-ratio: 1.25; min-height: 0; overflow: hidden; padding: clamp(10px, 1.4vw, 20px); border-block-end: 1px solid var(--line); border-inline-end: 1px solid var(--line); transition: background-color 0.4s; }
.clients__grid img { width: auto; height: auto; max-width: 78%; max-height: 58%; object-fit: contain; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.05); opacity: 0.72; transition: filter 0.5s, opacity 0.5s, scale 0.5s var(--ease); }
.clients__grid li:hover { background: var(--paper); }
.clients__grid li:hover img { filter: none; opacity: 1; scale: 1.08; }
.clients__note { margin-block-start: 22px; font-size: var(--t-xs); color: var(--mute); }

/* ---------- Coming soon ---------- */
.soon { padding-block: clamp(60px, 8vw, 120px); }
.soon__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.soon__card {
  position: relative; overflow: hidden; isolation: isolate; display: grid; align-content: start; gap: 10px; min-height: 330px;
  padding: clamp(24px, 3vw, 40px); border-radius: var(--r); background: var(--card); box-shadow: 0 0 0 1px var(--line);
}
.soon__card::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--a, 0deg), transparent 0 70%, var(--cyan), var(--creative), transparent 85%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spin 6s linear infinite;
}
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --a: 360deg; } }
.soon__card .badge { justify-self: start; margin-block-end: 26px; }
.soon__name { font-family: var(--f-num); font-weight: 800; font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem); line-height: 1; letter-spacing: -0.03em; }
.soon__kind { font-weight: 700; color: var(--teal); }
.soon__text { color: var(--mute); line-height: 1.8; }
.soon__sym { position: absolute; inset-inline-end: -30px; bottom: -40px; height: 220px; width: auto; fill: var(--ink); opacity: 0.04; z-index: -1; }

/* ---------- Contact ---------- */
.contact { padding-block: clamp(100px, 14vw, 220px) clamp(70px, 9vw, 130px); text-align: center; }
.contact .wrap { display: grid; justify-items: center; gap: 28px; }
.contact__title { font-size: clamp(2.8rem, 1.2rem + 7vw, 8.5rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
:lang(en) .contact__title { line-height: 0.98; letter-spacing: -0.05em; }
.contact .lead { margin-inline: auto; }
.contact__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; margin-block-start: 20px; }
.contact__list li { display: grid; gap: 2px; }
.contact__list span { font-size: var(--t-xs); color: var(--mute); }
.contact__list a { font-family: var(--f-num); font-weight: 700; font-size: var(--t-lead); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size 0.4s var(--ease); }
.contact__list a:hover { background-size: 100% 1.5px; color: var(--teal); }

/* ---------- Footer ---------- */
.ftr { padding-block: 28px 36px; border-block-start: 1px solid var(--line); }
.ftr__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.ftr__row p { margin-inline-end: auto; font-size: var(--t-xs); color: var(--mute); }
.ftr__top { font-size: var(--t-xs); font-weight: 600; }
.ftr__top:hover { color: var(--teal); }

/* ---------- Project viewer ---------- */
.viewer {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--paper); color: var(--ink); overflow-y: auto; overscroll-behavior: contain;
}
.viewer::backdrop { background: rgb(1 19 20 / 0.4); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
/* The opening: the dialog is seen through a Sarrdeh-mark-shaped window that grows, then a circle opens it fully. */
.viewer.is-masking {
  -webkit-mask-image: url("/assets/img/brand/symbol-white.svg"), radial-gradient(circle at var(--cx, 50%) var(--cy, 50%), #000 var(--mr, 0px), transparent calc(var(--mr, 0px) + 1px));
  mask-image: url("/assets/img/brand/symbol-white.svg"), radial-gradient(circle at var(--cx, 50%) var(--cy, 50%), #000 var(--mr, 0px), transparent calc(var(--mr, 0px) + 1px));
  -webkit-mask-size: var(--mw, 0px) calc(var(--mw, 0px) * 2.4444), 100% 100%;
  mask-size: var(--mw, 0px) calc(var(--mw, 0px) * 2.4444), 100% 100%;
  -webkit-mask-position: calc(var(--mx, 50vw) - var(--mw, 0px) / 2) calc(var(--my, 50vh) - var(--mw, 0px) * 1.2222), 0 0;
  mask-position: calc(var(--mx, 50vw) - var(--mw, 0px) / 2) calc(var(--my, 50vh) - var(--mw, 0px) * 1.2222), 0 0;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  overflow: hidden;
}
.viewer__veil {
  position: fixed; inset: 0; z-index: 5; display: grid; place-items: center; background: var(--teal); pointer-events: none; opacity: 0;
}
.viewer__veil svg { height: 36vmin; width: auto; fill: var(--cyan); opacity: 0.35; }
.viewer__bar {
  position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 8px; padding: 14px var(--pad);
  background: rgb(245 248 248 / 0.82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--line);
}
.viewer__pos { margin-inline-start: auto; font-family: var(--f-num); font-size: var(--t-xs); font-weight: 700; color: var(--mute); }
.vbtn { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); transition: background-color 0.3s, color 0.3s; }
.vbtn:hover { background: var(--ink); color: #fff; }
.vbtn svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
[dir="ltr"] [data-viewer-prev] svg, [dir="ltr"] [data-viewer-next] svg { scale: -1 1; }
.viewer__sheet { width: min(100% - var(--pad) * 2, 1180px); margin: 0 auto; padding-block: clamp(36px, 5vw, 70px) 90px; }
.v-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; margin-block-end: clamp(28px, 4vw, 52px); }
.v-cat { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-s); font-weight: 700; color: var(--teal); }
.v-cat::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--tone, var(--cyan)); }
.v-title { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 5rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; margin-block: 10px 6px; }
.v-sub { color: var(--mute); }
.v-intro { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); padding-block: clamp(24px, 3vw, 40px); border-block: 1px solid var(--line); margin-block-end: clamp(28px, 4vw, 52px); }
.v-line { font-size: var(--t-h3); font-weight: 700; line-height: 1.45; }
.v-desc { color: var(--ink-2); line-height: 1.9; }
.v-note { margin-block-start: 12px; font-size: var(--t-s); color: var(--mute); }
.v-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 20px; }
.v-tags li { padding: 5px 14px; border-radius: 999px; background: rgb(7 102 98 / 0.08); color: var(--teal); font-size: var(--t-xs); font-weight: 700; }
.v-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-block-start: 16px; }
.v-links a { font-weight: 700; color: var(--teal); text-decoration: underline; text-underline-offset: 4px; }
.v-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-block-end: clamp(28px, 4vw, 52px); }
.v-stats div { padding: 22px; border-radius: 18px; background: var(--ink); color: #fff; display: grid; gap: 4px; }
.v-stats b { font-family: var(--f-num); font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.8rem); font-weight: 800; color: var(--cyan); line-height: 1.1; direction: ltr; text-align: start; }
.v-stats small { color: rgb(255 255 255 / 0.6); }
.v-mod { margin-block-end: clamp(18px, 2.5vw, 32px); }
.v-mod__cap { max-width: 60ch; margin-block: clamp(24px, 4vw, 48px) 18px; }
.v-mod__cap h3 { font-size: var(--t-h3); font-weight: 700; }
.v-mod__cap p { color: var(--mute); margin-block-start: 6px; }
.v-imgs { display: grid; gap: clamp(10px, 1.4vw, 18px); }
.v-imgs img { width: 100%; border-radius: clamp(12px, 1.4vw, 20px); background: var(--paper-2); }
.v-imgs--grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.v-imgs--grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.v-imgs--phones { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; max-width: 960px; margin-inline: auto; }
.v-imgs--phones img { border-radius: clamp(18px, 2.6vw, 34px); box-shadow: 0 30px 50px -36px rgb(1 19 20 / 0.6); }
.v-imgs--narrow { max-width: 760px; margin-inline: auto; }
.v-more { margin-block-start: clamp(50px, 7vw, 100px); padding-block-start: 30px; border-block-start: 1px solid var(--line); }
.v-more h3 { font-size: var(--t-h3); font-weight: 700; margin-block-end: 20px; }
.v-more ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.v-more button { display: grid; gap: 10px; width: 100%; padding: 0; border: 0; background: none; text-align: start; font-weight: 700; }
.v-more img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border-radius: 16px; transition: scale 0.6s var(--ease); }
.v-more button:hover img { scale: 1.04; }
.v-end { display: grid; place-items: center; padding-block-start: 70px; }
.v-end .logo { background: var(--teal); }

/* ---------- Reveal helpers (only with JS + motion) ---------- */
.js [data-rise] { opacity: 0; translate: 0 26px; }
.js .is-in[data-rise], .js [data-rise].is-in { opacity: 1; translate: 0 0; transition: opacity 0.9s var(--ease), translate 0.9s var(--ease); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hdr__nav { display: none; }
  .hdr__end { margin-inline-start: auto; }
  .hdr__menu { display: grid; }
  .hero { grid-template-columns: 1fr; padding-block-end: 140px; }
  .hero__stage { position: absolute; inset: 0; height: auto; z-index: 0; opacity: 0.35; }
  .clients__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .svc__row { grid-template-columns: 70px minmax(0, 1fr) 48px; }
  .svc__desc { grid-column: 2 / 3; grid-row: 2; }
  .svc__go { grid-row: 1 / 3; grid-column: 3; width: 48px; height: 48px; }
  .sheet__card { grid-template-columns: 1fr; min-height: 0; }
  .v-more ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  :root { --hdr: 66px; }
  .hdr__cta { display: none; }
  .head--split { grid-template-columns: 1fr; }
  .msg__body { grid-template-columns: 1fr; }
  .msg__sign { position: static; }
  .about__grid { grid-template-columns: 1fr; }
  .soon__grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Filters become one row that scrolls sideways */
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--pad) * -1); padding: 4px var(--pad) 8px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; scroll-snap-align: start; }
  .card, .card[data-size="wide"], .card[data-size="mid"] { grid-column: span 1; --h: clamp(200px, 52vw, 340px); }
  .card[data-size="wide"] { grid-column: span 2; --h: clamp(220px, 56vw, 420px); }
  .values__orbit { width: 100%; aspect-ratio: auto; }
  .values__ring, .values__sym { display: none; }
  .values__list { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
  .values__list li { position: static; width: auto; height: auto; transform: none; }
  .values__list li span { position: static; display: block; translate: none; }
  .v-head, .v-intro { grid-template-columns: 1fr; }
  .v-imgs--grid3, .v-imgs--phones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheet { top: calc(var(--hdr) + 12px + var(--i) * 10px); }
}
@media (max-width: 560px) {
  .clients__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: 1fr; }
  .card, .card[data-size="wide"], .card[data-size="mid"] { grid-column: auto; --h: 68vw; }
  .svc__row { grid-template-columns: 54px minmax(0, 1fr); }
  .svc__go { display: none; }
  .btn { min-height: 50px; padding: 0 24px; }
  .hero__year { font-size: 26vw; bottom: 90px; }
  .v-imgs--grid2, .v-imgs--grid3 { grid-template-columns: 1fr; }
}

@media (hover: none) { .cursor { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js [data-rise] { opacity: 1; translate: none; }
  .js .msg__lead .w > span { color: var(--ink); }
}
