:root {
  --bg: #09090b;
  --fg: #f2efe9;
  --mute: #b4b1aa;
  --line: rgba(242, 239, 233, 0.14);
  --acc: #ff5a1f;
  --pad: clamp(20px, 4vw, 56px);
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  background: var(--bg);
  color: var(--fg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-loading { overflow: hidden; }

h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
::selection { background: var(--acc); color: #09090b; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 4px; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--fg); color: var(--bg); padding: 10px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }

/* Stage */
#scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.no-webgl #scene { background: radial-gradient(60vmax 60vmax at 78% 40%, rgba(255, 90, 31, 0.28), transparent 60%), radial-gradient(50vmax 50vmax at 20% 80%, rgba(120, 150, 255, 0.18), transparent 60%); }

.grain {
  position: fixed; inset: -50%; z-index: 50; pointer-events: none; opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -4%); } 75% { transform: translate(-2%, 3%); } 100% { transform: translate(3%, -1%); } }

.cursor {
  position: fixed; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; z-index: 60;
  border: 1px solid var(--fg); border-radius: 50%; pointer-events: none; opacity: 0; mix-blend-mode: difference;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease), background 0.3s, opacity 0.3s;
}
.cursor.is-on { opacity: 1; }
.cursor.is-hover { width: 72px; height: 72px; margin: -36px 0 0 -36px; background: var(--fg); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* Loader */
.loader {
  position: fixed; inset: 0; z-index: 90; background: var(--bg); display: flex; align-items: flex-end; justify-content: space-between;
  padding: var(--pad); transition: transform 0.9s var(--ease), visibility 0s 0.9s;
}
.loader__name { font-size: 14px; color: var(--mute); letter-spacing: 0.02em; }
.loader__count { font-size: clamp(72px, 16vw, 220px); line-height: 0.8; font-weight: 500; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
body:not(.is-loading) .loader { transform: translateY(-100%); visibility: hidden; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--pad);
}
.nav::before { content: ""; position: absolute; inset: 0 0 -24px 0; z-index: -1; background: linear-gradient(rgba(9, 9, 11, 0.85), transparent); pointer-events: none; }
.nav__logo { font-size: 20px; font-weight: 600; letter-spacing: -0.03em; }
.nav__logo sup { font-size: 9px; font-weight: 400; margin-inline-start: 2px; color: var(--mute); }
.nav__links { display: flex; gap: 28px; font-size: 14px; padding: 10px 22px; border: 1px solid var(--line); border-radius: 999px; background: rgba(9, 9, 11, 0.55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.nav__links a { position: relative; opacity: 0.75; transition: opacity 0.25s; }
.nav__links a:hover { opacity: 1; }

.pill {
  display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; padding: 11px 18px; border-radius: 999px;
  background: var(--fg); color: var(--bg); transition: background 0.3s, transform 0.3s var(--ease);
}
.pill:hover { background: var(--acc); transform: translateY(-2px); }
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); transition: background 0.3s; }
.pill:hover .pill__dot { background: var(--bg); }

.nav__end { display: flex; align-items: center; gap: 12px; }
.lang { position: relative; }
.lang summary { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; list-style: none; cursor: pointer; font-family: "Inter Tight", system-ui, sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 0.04em; border: 1px solid var(--line); border-radius: 999px; background: rgba(9, 9, 11, 0.55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: border-color 0.25s, background 0.25s; user-select: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { border-color: rgba(242, 239, 233, 0.4); background: rgba(9, 9, 11, 0.8); }
.lang__globe { opacity: 0.8; }
.lang__chev { opacity: 0.7; transition: transform 0.3s var(--ease); }
.lang[open] .lang__chev { transform: rotate(180deg); }
.lang__menu { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; min-width: 176px; padding: 6px; border: 1px solid var(--line); border-radius: 16px; background: rgba(14, 14, 17, 0.94); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55); }
.lang[open] .lang__menu { animation: lang-in 0.28s var(--ease); }
@keyframes lang-in { from { opacity: 0; transform: translateY(-8px) scale(0.97); } }
.lang__menu a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 12px; border-radius: 10px; font-size: 14.5px; line-height: 1.3; color: var(--fg); opacity: 0.78; transition: opacity 0.2s, background 0.2s; }
.lang__menu a:hover { opacity: 1; background: rgba(242, 239, 233, 0.09); }
.lang__menu a[aria-current="true"] { opacity: 1; }
.lang__menu a[aria-current="true"]::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); flex: none; }
.lang__menu a[lang="ar"] { font-family: "IBM Plex Sans Arabic", "Inter Tight", system-ui, sans-serif; }

/* Type */
.eyebrow { font-size: 13.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }

.display { font-weight: 500; font-size: clamp(54px, 11.4vw, 200px); line-height: 0.88; letter-spacing: -0.05em; }
.display--sm { font-size: clamp(48px, 9.4vw, 168px); }
.blend { mix-blend-mode: difference; }
.title { font-weight: 500; font-size: clamp(34px, 5vw, 76px); line-height: 1; letter-spacing: -0.04em; max-width: 16ch; }

.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line > span { display: block; transform: translateY(110%); transition: transform 1.2s var(--ease); }
.line:nth-child(2) > span { transition-delay: 0.08s; }
.line:nth-child(3) > span { transition-delay: 0.16s; }
body:not(.is-loading) .line > span { transform: none; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* Hero */
.hero { min-height: 100svh; padding: 120px var(--pad) 36px; display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(18px, 3vh, 34px); }
.hero__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.lede { max-width: 38ch; color: #cfccc5; font-size: clamp(16px, 1.35vw, 20px); }
.scroll-hint { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.scroll-hint__line { width: 56px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.scroll-hint__line::after { content: ""; position: absolute; inset: 0; background: var(--fg); animation: sweep 2.2s var(--ease) infinite; }
@keyframes sweep { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* Statement */
.statement { padding: clamp(110px, 20vh, 240px) var(--pad); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 24px; }
.statement__text { font-size: clamp(28px, 4.1vw, 66px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 500; max-width: 22ch; }
.statement__text .w { opacity: 0.16; transition: opacity 0.35s linear; }
.statement__text .w.is-lit { opacity: 1; }

/* Marquee */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; background: rgba(9, 9, 11, 0.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.marquee__track { display: flex; align-items: center; gap: 40px; width: max-content; animation: marquee 32s linear infinite; }
.marquee__track span { font-size: clamp(30px, 4.6vw, 68px); font-weight: 500; letter-spacing: -0.04em; white-space: nowrap; }
.marquee__track span:nth-of-type(even) { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--mute); }
.marquee__track i { width: 12px; height: 12px; border-radius: 50%; background: var(--acc); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Services */
.services { padding: clamp(100px, 16vh, 200px) var(--pad); display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.services__head { position: sticky; top: 120px; display: grid; gap: 22px; }
.services__list { border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--line);
  position: relative; transition: padding 0.5s var(--ease), opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.service::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--acc); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.service:hover { padding-inline-start: 18px; }
.service:hover::after { transform: scaleX(1); }
.service__n { font-size: 14px; color: var(--mute); font-variant-numeric: tabular-nums; }
.service h3 { font-size: clamp(21px, 2.1vw, 32px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.service p { color: var(--mute); font-size: 16px; transition: color 0.3s; }
.service:hover p { color: #d9d6cf; }

.service--core h3 { font-size: clamp(26px, 2.8vw, 42px); }
.service--core .service__n { color: var(--acc); }
.service__tag { display: inline-block; vertical-align: middle; margin-inline-start: 10px; padding: 5px 11px; border-radius: 999px; background: var(--acc); color: #09090b; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.2; white-space: nowrap; }
.service__sep { padding: 30px 0 12px; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); border-bottom: 1px solid var(--line); }

/* Work */
.work { padding: clamp(80px, 14vh, 180px) var(--pad); }
.work__head { display: grid; gap: 22px; margin-bottom: clamp(36px, 6vh, 72px); }
.work__head .title { max-width: 20ch; }
.work__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 36px); perspective: 1600px; }
.card:nth-child(even) { margin-top: clamp(0px, 7vw, 110px); }
.card__art {
  position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; padding: clamp(18px, 2.4vw, 34px); display: flex; flex-direction: column; justify-content: space-between;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform 0.5s var(--ease); will-change: transform;
}
.card__art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.22), transparent 60%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.card:hover .card__art::after { opacity: 1; }
.art__big { font-size: clamp(30px, 4.6vw, 76px); font-weight: 600; line-height: 0.92; letter-spacing: -0.045em; text-transform: uppercase; transform: translateZ(40px); }
.art__tag { align-self: flex-start; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; border: 1px solid currentColor; transform: translateZ(24px); }
.art--a { background: linear-gradient(140deg, #1b1b1f 0%, #050506 55%, #2a1a12 100%); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.art--b { background: var(--acc); color: #0b0b0c; }
.art--c { background: #ece7dc; color: #0b0b0c; background-image: linear-gradient(rgba(11, 11, 12, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 11, 12, 0.07) 1px, transparent 1px); background-size: 34px 34px; }
.art--d { background: linear-gradient(160deg, #20232e, #0b0c11); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); justify-content: flex-end; gap: 22px; }
.art--photo { color: var(--fg); background: #050506; box-shadow: inset 0 0 0 1px var(--line); }
.art--photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(5, 5, 6, 0.72), rgba(5, 5, 6, 0.05) 55%, rgba(5, 5, 6, 0.6)); pointer-events: none; }
.art__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.card:hover .art__img { transform: scale(1.06); }
.art--photo .art__big, .art--photo .art__tag { position: relative; z-index: 2; }
.art__bars { display: flex; align-items: flex-end; gap: 4%; height: 62%; transform: translateZ(40px); }
.art__bars b { flex: 1; height: var(--h); border-radius: 6px 6px 0 0; background: linear-gradient(#f2efe9, rgba(242, 239, 233, 0.25)); }
.art__bars b:last-child { background: var(--acc); }
.work__note { max-width: 62ch; color: var(--mute); font-size: 16px; }
.card__desc { padding: 8px 4px 0; max-width: 46ch; color: var(--mute); font-size: 16px; }
.art--site { background: #0b0b0d; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); padding: clamp(12px, 1.6vw, 22px); gap: 12px; }
.browser { flex: 1; min-height: 0; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; border: 1px solid rgba(242, 239, 233, 0.18); background: #050506; transform: translateZ(30px); }
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #17171b; border-bottom: 1px solid rgba(242, 239, 233, 0.12); }
.browser__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(242, 239, 233, 0.28); }
.browser__url { margin-inline-start: 10px; flex: 1; max-width: 260px; padding: 4px 12px; border-radius: 999px; background: rgba(242, 239, 233, 0.08); font-size: 11px; color: var(--mute); direction: ltr; text-align: start; }
.site { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(10px, 1.4vw, 20px); }
.site::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(5, 5, 6, 0.78), rgba(5, 5, 6, 0.1) 45%, rgba(5, 5, 6, 0.82)); pointer-events: none; }
.site__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.card:hover .site__img { transform: scale(1.05); }
.site__nav, .site__hero { position: relative; z-index: 2; }
.site__nav { display: flex; align-items: center; gap: clamp(8px, 1.2vw, 18px); font-size: clamp(9px, 0.85vw, 12px); }
.site__nav b { font-weight: 600; font-size: clamp(11px, 1vw, 14px); margin-inline-end: auto; }
.site__nav span { opacity: 0.8; white-space: nowrap; }
.site__nav .site__btn { opacity: 1; padding: 5px 10px; border-radius: 999px; background: var(--acc); color: #09090b; font-weight: 600; }
.site__hero { display: grid; gap: clamp(6px, 0.8vw, 12px); justify-items: start; }
.site__kicker { font-size: clamp(9px, 0.8vw, 12px); letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.8; }
.site__hero strong { font-size: clamp(24px, 3.6vw, 60px); font-weight: 600; line-height: 0.95; letter-spacing: -0.04em; text-transform: uppercase; }
.site__cta { padding: 7px 13px; border-radius: 999px; background: var(--fg); color: #09090b; font-size: clamp(9px, 0.85vw, 12px); font-weight: 600; }
@media (max-width: 520px) { .site__nav span:not(.site__btn) { display: none; } }

.card__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 4px 0; }
.card__meta h3 { font-size: clamp(18px, 1.6vw, 24px); font-weight: 500; letter-spacing: -0.025em; }
.card__meta span { font-size: 14px; color: var(--mute); }

/* Process */
.process { padding: clamp(100px, 16vh, 200px) var(--pad); display: grid; gap: 26px; }
.steps { margin-top: clamp(24px, 5vh, 60px); max-width: 60%; border-top: 1px solid var(--line); counter-reset: step; }
.step { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--line); }
.step__n { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--acc); }
.step h3 { font-size: clamp(22px, 2.2vw, 34px); font-weight: 500; letter-spacing: -0.03em; }
.step p { color: var(--mute); font-size: 16px; }

/* Studio */
.studio { padding: clamp(90px, 14vh, 180px) var(--pad); display: grid; gap: 26px; }
.studio__body { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.studio__text { display: grid; gap: 18px; max-width: 56ch; font-size: clamp(17px, 1.5vw, 21px); color: #d9d6cf; }

/* Contact */
.contact { min-height: 100svh; padding: clamp(110px, 18vh, 220px) var(--pad) clamp(60px, 10vh, 120px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 30px; }
.contact .eyebrow { justify-content: center; }
.mail { display: inline-flex; align-items: center; gap: 14px; font-size: clamp(19px, 2.3vw, 34px); font-weight: 500; letter-spacing: -0.02em; padding: 18px 30px; border-radius: 999px; background: var(--fg); color: var(--bg); transition: background 0.3s, transform 0.4s var(--ease); max-width: 100%; }
.mail:hover { background: var(--acc); transform: translateY(-3px) scale(1.02); }
.mail span { transition: transform 0.4s var(--ease); }
.mail:hover span { transform: translate(4px, -4px); }

.contact__grid { width: 100%; max-width: 1080px; margin-top: clamp(16px, 4vh, 44px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); text-align: start; align-items: start; }
.brief { display: grid; gap: 16px; padding: clamp(20px, 2.6vw, 34px); border: 1px solid var(--line); border-radius: 22px; background: rgba(14, 14, 17, 0.88); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.brief label { display: grid; gap: 7px; }
.brief__label { font-size: 14px; color: #d9d6cf; }
.brief input, .brief select, .brief textarea { width: 100%; padding: 13px 14px; border: 1px solid rgba(242, 239, 233, 0.22); border-radius: 12px; background: rgba(9, 9, 11, 0.7); color: var(--fg); font: inherit; font-size: 16px; }
.brief textarea { resize: vertical; min-height: 110px; }
.brief input:focus-visible, .brief select:focus-visible, .brief textarea:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-color: transparent; }
.brief__send { display: inline-flex; align-items: center; justify-content: center; gap: 12px; margin-top: 4px; padding: 16px 24px; border: 0; border-radius: 999px; background: var(--fg); color: var(--bg); font: inherit; font-size: 17px; font-weight: 500; cursor: pointer; transition: background 0.3s, transform 0.4s var(--ease); }
.brief__send:hover { background: var(--acc); transform: translateY(-2px); }
.brief__note { font-size: 14px; color: var(--mute); }
.contact__info { display: grid; gap: 26px; padding: clamp(20px, 2.6vw, 34px); border: 1px solid var(--line); border-radius: 22px; background: rgba(14, 14, 17, 0.88); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.contact__info h3 { margin-bottom: 12px; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.contact__info ul, .contact__info ol { display: grid; gap: 9px; color: #d9d6cf; font-size: 16px; }
.contact__info ul li { padding-inline-start: 18px; position: relative; }
.contact__info ul li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }
.contact__info ol { counter-reset: next; }
.contact__info ol li { counter-increment: next; padding-inline-start: 30px; position: relative; }
.contact__info ol li::before { content: counter(next, decimal-leading-zero); position: absolute; inset-inline-start: 0; top: 0.2em; font-size: 13px; color: var(--acc); font-variant-numeric: tabular-nums; }
.contact__mail { justify-self: start; padding-bottom: 3px; border-bottom: 1px solid var(--acc); font-size: 17px; font-weight: 500; direction: ltr; }
.contact__mail:hover { color: var(--acc); }

.footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px var(--pad); border-top: 1px solid var(--line); font-size: 14px; color: var(--mute); background: rgba(9, 9, 11, 0.7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.footer a:hover { color: var(--fg); }

/* Small screens */
@media (max-width: 860px) {
  #scene { opacity: 0.6; }
  .nav__links { display: none; }
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .statement { grid-template-columns: minmax(0, 1fr); }
  .services { grid-template-columns: minmax(0, 1fr); }
  .services__head { position: static; }
  .service, .step { grid-template-columns: 40px minmax(0, 1fr); }
  .service p, .step p { grid-column: 2; }
  .work__grid { grid-template-columns: minmax(0, 1fr); }
  .card:nth-child(even) { margin-top: 0; }
  .steps { max-width: none; }
  .art--site { aspect-ratio: auto; }
  .site { min-height: 250px; }
  .studio__body, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .service__tag { margin-inline-start: 0; margin-top: 8px; display: table; }
  .mail { padding: 16px 22px; font-size: 17px; }
}

@media (max-width: 560px) {
  .pill { display: none; }
}

/* Arabic (right-to-left) */
[dir="rtl"] { --sans: "IBM Plex Sans Arabic", "Inter Tight", system-ui, sans-serif; --serif: "Amiri", Georgia, serif; }
[dir="rtl"] body { line-height: 1.7; }
[dir="rtl"] *:not(.loader__count) { letter-spacing: 0; }
[dir="rtl"] em { font-style: normal; color: var(--acc); }
[dir="rtl"] .nav__logo, [dir="rtl"] .loader__name, [dir="rtl"] .footer span { font-family: "Inter Tight", system-ui, sans-serif; }
[dir="rtl"] .display { font-size: clamp(50px, 10vw, 176px); line-height: 1.22; }
[dir="rtl"] .blend { mix-blend-mode: normal; text-shadow: 0 0 30px rgba(9, 9, 11, 0.85), 0 0 8px rgba(9, 9, 11, 0.6); }
[dir="rtl"] .display--sm { font-size: clamp(44px, 8.4vw, 150px); }
[dir="rtl"] .line { padding-block: 0.12em; margin-block: -0.12em; }
[dir="rtl"] .title { line-height: 1.3; max-width: 18ch; }
[dir="rtl"] .statement__text { line-height: 1.45; }
[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
[dir="rtl"] .marquee__track span { line-height: 1.5; }
[dir="rtl"] .marquee__track span:nth-of-type(even) { font-style: normal; }
@keyframes marquee-rtl { to { transform: translateX(50%); } }
[dir="rtl"] .service h3, [dir="rtl"] .step h3, [dir="rtl"] .card__meta h3 { line-height: 1.4; }
[dir="rtl"] .service::after { left: auto; right: 0; transform-origin: right; }
[dir="rtl"] .step__n { font-family: "Inter Tight", system-ui, sans-serif; font-style: normal; }
[dir="rtl"] .art__big { line-height: 1.25; }
[dir="rtl"] .scroll-hint__line::after { animation-direction: reverse; }
[dir="rtl"] .mail { direction: ltr; }
[dir="rtl"] .site__hero strong { line-height: 1.25; }
[dir="rtl"] .contact__info h3 { line-height: 1.5; }
[dir="rtl"] .contact__info ol li::before { font-family: "Inter Tight", system-ui, sans-serif; }
[dir="rtl"] .mail:hover span { transform: translate(-4px, -4px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .marquee__track, .scroll-hint__line::after { animation: none; }
  .lang[open] .lang__menu { animation: none; }
  .reveal, .line > span { opacity: 1; transform: none; transition: none; }
  .statement__text .w { opacity: 1; }
  .loader { transition: none; }
  .card__art { transition: none; }
}
