/* Aura Creative - all styles. Tokens live in style.css (:root). */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--step-0)/1.7 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
[dir="rtl"] body, [dir="rtl"] button, [dir="rtl"] input, [dir="rtl"] select, [dir="rtl"] textarea { font-family: var(--font-ar); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; margin: 0 0 .5em; letter-spacing: -.03em; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { font-family: var(--font-ar); font-weight: 800; letter-spacing: 0; line-height: 1.3; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.screen-reader-text, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: .5rem; inset-inline-start: .5rem; z-index: 100; background: var(--ink); color: var(--paper); padding: .5rem 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 760px); }

/* header */
.site-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--paper); z-index: 20; }
.site-header__row { display: flex; align-items: center; gap: 1rem; min-height: 4.5rem; }
.brand { font: 700 1.4rem var(--font-display); letter-spacing: -.03em; text-decoration: none; }
[dir="rtl"] .brand { font-family: var(--font-ar); letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav__list { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-size: .95rem; }
.nav__list a:hover { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: inherit; padding: .4rem .9rem; cursor: pointer; }
.lang-pill { margin-inline-start: auto; border: 1px solid var(--ink); border-radius: 999px; padding: .25rem .9rem; font-size: .85rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.lang-pill:hover { background: var(--ink); color: var(--paper); }

/* buttons + links */
.btn { display: inline-block; padding: .9rem 1.9rem; border: 1px solid var(--ink); border-radius: 999px; color: var(--ink); background: transparent; text-decoration: none; font: 600 .95rem var(--font-body); cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
[dir="rtl"] .btn { font-family: var(--font-ar); }
.btn:hover, .btn--solid { background: var(--ink); color: var(--paper); }
.btn--small { padding: .5rem 1.2rem; }
.link { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* sections */
.section { padding-block: var(--section-pad); }
.section + .section { border-top: 1px solid var(--line); }
.section--package, .section--point, .section--story, .section--milestone, .section--testimonial { background: var(--wash); }
.section__head { max-width: 46rem; margin-bottom: var(--space-3); }
.section__head p { color: var(--mute); font-size: var(--step-1); }
.section__more { margin-top: 2.5rem; }
.eyebrow { color: var(--accent); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; }
[dir="rtl"] .eyebrow { letter-spacing: 0; }

/* hero: scattered photo showcase on dark (Huge-style). Presets per card; mobile gets a simple collage. */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--paper); min-height: clamp(560px, 92svh, 920px); display: grid; place-items: center; padding-block: 6rem; }
.hero__stage { position: absolute; inset: 0; z-index: 0; }
.hero__card { border-radius: 16px; overflow: hidden; position: absolute; left: var(--x); top: var(--y); width: var(--w); margin: 0; transform: translate(var(--px, 0px), var(--py, 0px)) rotate(var(--r)); transition: scale .4s cubic-bezier(.2, .7, .2, 1); }
.hero__card:hover { scale: 1.05; z-index: 1; }
.hero__card img { width: 100%; aspect-ratio: var(--ar, 4 / 3); object-fit: cover; }
.hero__card::after { content: ""; position: absolute; inset: 0; background: rgba(11, 11, 12, .4); transition: background .3s; }
.hero__card:hover::after { background: rgba(11, 11, 12, 0); }
.hero__card:nth-child(1) { --x: 3%; --y: 9%; --w: 22%; --r: -7deg; }
.hero__card:nth-child(2) { --x: 71%; --y: 7%; --w: 24%; --r: 6deg; --ar: 5 / 4; }
.hero__card:nth-child(3) { --x: 11%; --y: 60%; --w: 24%; --r: 5deg; }
.hero__card:nth-child(4) { --x: 63%; --y: 58%; --w: 22%; --r: -6deg; --ar: 3 / 2; }
.hero__card:nth-child(5) { --x: 40%; --y: 76%; --w: 18%; --r: -3deg; }
.hero__center { position: relative; z-index: 2; text-align: center; max-width: 64rem; pointer-events: none; }
.hero__center a, .hero__center button { pointer-events: auto; }
.hero__title { font-size: clamp(2.8rem, 8vw, 7rem); font-weight: 800; line-height: .98; margin-inline: auto; max-width: 11em; }
[dir="rtl"] .hero__title { line-height: 1.2; }
.hero__sub { max-width: 34rem; margin-inline: auto; font-size: 1.2rem; color: #d6d6d9; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.5rem; }
.hero .btn { border-color: var(--paper); color: var(--paper); background: rgba(11, 11, 12, .55); }
.hero .btn:hover { background: var(--paper); color: var(--ink); }
.btn--play { display: inline-flex; align-items: center; gap: .6rem; }
.btn--play svg { width: .8em; height: .95em; fill: currentColor; }

/* showreel dialog */
.reel { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; }
.reel[hidden] { display: none; }
.reel__backdrop { position: absolute; inset: 0; background: rgba(11, 11, 12, .88); }
.reel__box { position: relative; width: min(92vw, 1100px); aspect-ratio: 16 / 9; background: #000; }
.reel__frame, .reel__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reel__close { position: absolute; top: -3rem; inset-inline-end: 0; background: none; border: 0; color: #fff; cursor: pointer; padding: .4rem; }
html.reel-open { overflow: hidden; }

/* image frames: crop + hover zoom */
.card__media { overflow: hidden; aspect-ratio: 4 / 3; background: var(--wash); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card__media img, .card__media:hover img { transform: scale(1.06); }

/* marquee: two identical sets, track shifts by exactly one set */
.marquee__track { display: flex; width: max-content; animation: aura-marquee 40s linear infinite; }
.marquee__track:hover { animation-play-state: paused; }
.marquee__set { display: flex; flex-shrink: 0; list-style: none; margin: 0; padding: 0; }
.marquee__set li { font: 700 clamp(1.4rem, 3vw, 2.4rem) var(--font-display); text-transform: uppercase; letter-spacing: -.02em; padding-inline: 1.5rem; white-space: nowrap; }
[dir="rtl"] .marquee__set li { font-family: var(--font-ar); text-transform: none; letter-spacing: 0; }
.marquee__set li::after { content: ""; display: inline-block; width: .5em; height: .5em; margin-inline-start: 3rem; border-radius: 50%; background: var(--ink); vertical-align: middle; }
@keyframes aura-marquee { to { transform: translateX(-50%); } }

/* stats, logos, studio, founder, CTA */
.section--stat { padding-block: 0; }
.grid--stat .card { text-align: center; padding-block: 3rem; }
.section--logo { padding-block: 3rem; }
.section--logo .section__head { margin-bottom: 1.5rem; }
.section--logo .section__head h2 { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
[dir="rtl"] .section--logo .section__head h2 { letter-spacing: 0; }
.grid--logo img { filter: grayscale(1); opacity: .55; width: 100%; max-width: 160px; margin-inline: auto; transition: opacity .2s; }
.grid--logo img:hover { opacity: 1; }
.studio, .founder { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.studio { grid-template-columns: 1.3fr 1fr; }
.studio__img { aspect-ratio: 3 / 2; }
.founder { grid-template-columns: .8fr 1.2fr; }
.founder__img { aspect-ratio: 4 / 5; }
.founder__text { margin: 0; }
.founder blockquote { font: 600 clamp(1.5rem, 3vw, 2.5rem)/1.3 var(--font-display); letter-spacing: -.02em; margin: 0 0 2rem; }
[dir="rtl"] .founder blockquote { font-family: var(--font-ar); letter-spacing: 0; line-height: 1.6; }
.founder figcaption { display: grid; gap: .25rem; justify-items: start; }
.signature { font: italic 700 2rem var(--font-display); color: var(--accent); }
[dir="rtl"] .signature { font-family: var(--font-ar); font-style: normal; }
.signature__line { color: var(--accent); }
.cta { background: var(--ink); color: var(--paper); padding-block: clamp(3.5rem, 8vw, 6rem); }
.cta__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.cta h2 { margin-bottom: .25em; font-size: clamp(2.2rem, 6vw, 4.5rem); }
.cta p { margin: 0; color: #c9c9cc; }

/* grids: column counts always divide the item count (class grid--nN), so no half-empty rows */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid--n3 { grid-template-columns: repeat(3, 1fr); }
.grid--n4 { grid-template-columns: repeat(4, 1fr); }
.grid--n6 { grid-template-columns: repeat(3, 1fr); }
.grid--stat { border: 0; }
.grid--person { background: none; border: 0; gap: 2rem; }
.grid--person .card { background: none; padding: 0; }
.grid--person .card__media { aspect-ratio: 4 / 5; margin-bottom: 1rem; }
.grid--person h3, .grid--portfolio h3 { margin-bottom: .15em; }
/* dynamic counts: wrap and let the last row stretch */
.grid--portfolio, .grid--logo { display: flex; flex-wrap: wrap; background: none; border: 0; gap: 2rem; }
.grid--portfolio > .card { flex: 1 1 300px; background: none; padding: 0; }
.grid--logo { justify-content: center; align-items: center; }
.grid--logo > .card { flex: 0 1 150px; background: none; padding: 0; }
.card { background: var(--paper); padding: 2.25rem; position: relative; transition: box-shadow .25s ease; }
.section--package .card, .section--point .card, .section--milestone .card, .section--testimonial .card { background: var(--wash); }
.card p:last-child { margin-bottom: 0; }
.card__num { font: 700 1rem var(--font-display); color: var(--accent); display: block; margin-bottom: 1rem; }
.card__number { font: 800 clamp(2.6rem, 5vw, 4rem) var(--font-display); letter-spacing: -.04em; color: var(--ink); margin: 0; line-height: 1; }
.grid--portfolio .card__number { color: var(--accent); margin-top: 1rem; }
.card__meta { color: var(--mute); font-size: .95rem; }
.card__price { font: 700 1.75rem var(--font-display); margin-bottom: .25rem; }
[dir="rtl"] .card__price, [dir="rtl"] .card__number, [dir="rtl"] .card__num { font-family: var(--font-ar); letter-spacing: 0; }
.card__list { list-style: none; padding: 0; margin: 1.25rem 0 2rem; border-top: 1px solid var(--line); }
.card__list li { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.card__flag { position: absolute; top: 0; inset-inline-start: 2.25rem; background: var(--accent); color: var(--ink); font-size: .75rem; font-weight: 600; padding: .25rem .75rem; }
.card--package.is-featured { background: var(--ink); color: var(--paper); }
.card--package.is-featured .card__list, .card--package.is-featured .card__list li { border-color: rgba(255, 255, 255, .2); }
.card--package.is-featured .btn { border-color: var(--accent); }
.card--portfolio h3 a { text-decoration: none; }
.card--portfolio h3 a:hover { color: var(--accent); }
.card[hidden] { display: none; }
.card--milestone .card__number { color: var(--accent); }
blockquote { margin: 0 0 1.5rem; font: 500 1.25rem/1.6 var(--font-display); }
[dir="rtl"] blockquote { font-family: var(--font-ar); }

.section__intro { font-size: 1rem; }

/* filter */
.filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter__btn { background: none; border: 1px solid var(--line); border-radius: 999px; color: inherit; padding: .4rem 1.1rem; cursor: pointer; font: inherit; }
.filter__btn.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* form */
.form p { margin: 0 0 1.25rem; }
.form label { display: block; font-size: .9rem; margin-bottom: .35rem; }
.form input, .form select, .form textarea, .search input { width: 100%; padding: .9rem 1rem; border: 1px solid var(--ink); background: transparent; color: inherit; font: inherit; border-radius: 0; }
.hp { position: absolute; inset-inline-start: -9999px; }
.notice { border: 1px solid var(--accent); padding: 1rem; margin-bottom: 1.5rem; }
.search { display: flex; gap: .5rem; }

/* entries + comments */
.entry { margin-bottom: 3rem; }
.entry__body > * { max-width: 100%; }
.comments { margin-top: 4rem; }

/* footer */
.footer__bar { margin-top: 3rem; padding-block: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .15); color: var(--mute); font-size: .85rem; }
.footer__bar p { margin: 0; }

/* custom cursor (created by JS on fine pointers only) */
.cursor { position: fixed; top: 0; left: 0; z-index: 1100; pointer-events: none; opacity: 0; transition: opacity .2s; will-change: transform; }
.cursor.is-on { opacity: 1; }
.cursor.is-hover i { transform: scale(3.4); opacity: .55; }
.cursor.is-big i { transform: scale(5.5); opacity: .5; }

/* motion: only hidden/animated when the user has not asked for reduced motion */
@media (prefers-reduced-motion: no-preference) {
	.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
	.js .reveal.is-in { opacity: 1; transform: none; }
	/* headings: mask-up reveal */
	.js .section__head.reveal { opacity: 1; transform: none; }
	.js .section__head.reveal h2 { clip-path: inset(0 0 100% 0); transform: translateY(40%); transition: clip-path .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
	.js .section__head.reveal.is-in h2 { clip-path: inset(-15% -2% -15% -2%); transform: none; }
	/* hero cards float on their own: the individual translate/rotate properties stack on top of the
	   transform that carries the base angle and the mouse/scroll parallax, so neither overwrites the other */
	.hero__card { animation: aura-float 9s ease-in-out infinite; }
	.hero__card:nth-child(1) { animation-duration: 9s; animation-delay: -2s; }
	.hero__card:nth-child(2) { animation-duration: 12s; animation-delay: -6s; }
	.hero__card:nth-child(3) { animation-duration: 7s; animation-delay: -1s; }
	.hero__card:nth-child(4) { animation-duration: 13s; animation-delay: -8s; }
	.hero__card:nth-child(5) { animation-duration: 10s; animation-delay: -4s; }
	@keyframes aura-float { 0%, 100% { translate: 0 0; rotate: -2.5deg; } 50% { translate: 0 -12px; rotate: 2.5deg; } }
	.hero__title { animation: aura-mask 1s cubic-bezier(.2, .7, .2, 1) both; }
	.hero__sub, .hero__cta, .hero .eyebrow { animation: aura-rise .9s ease .25s both; }
	@keyframes aura-mask { from { clip-path: inset(0 0 100% 0); transform: translateY(30%); } to { clip-path: inset(-10% -2% -10% -2%); transform: none; } }
	@keyframes aura-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.marquee__track { animation: none; }
	.card__media img { transition: none; }
}

/* ===== v5 layouts: asymmetric, editorial. Later rules win over the earlier card styles. ===== */

/* services: interactive index list + sticky photo panel */
.section--index { background: var(--paper); }
.index { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.index__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.index__desc { grid-column: 2; margin: 0; max-height: 0; overflow: hidden; color: var(--mute); transition: max-height .4s ease, margin .4s ease; }
.index__row.is-active .index__title { transform: translateX(.6rem); }
[dir="rtl"] .index__row.is-active .index__title { transform: translateX(-.6rem); }
.index__row.is-active .index__desc { max-height: 7rem; margin-top: .6rem; }
.index__panel { position: sticky; top: 6rem; aspect-ratio: 4 / 5; overflow: hidden; background: var(--wash); }
.index__img { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.06); transition: opacity .5s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.index__img.is-active { opacity: 1; transform: none; }
.index__img img { width: 100%; height: 100%; object-fit: cover; }

/* work: big alternating case rows (home). The archive keeps .grid--portfolio. */
.section--case .section__head { margin-bottom: 4rem; }
.case__media img { scale: 1.14; translate: 0 var(--par, 0px); } /* headroom for the parallax shift */

/* statement: one huge sentence, words light up as you scroll */
.statement { padding-block: clamp(7rem, 22vh, 16rem); border-top: 1px solid var(--line); }
.statement__text { margin: 0 0 0 8%; max-width: 15em; font: 800 clamp(2.4rem, 7.5vw, 7rem) / 1.05 var(--font-display); letter-spacing: -.04em; }
[dir="rtl"] .statement__text { margin: 0 8% 0 0; font-family: var(--font-ar); letter-spacing: 0; line-height: 1.35; }
.statement__text.is-split .w { opacity: .14; transition: opacity .35s ease, color .35s ease; }
.statement__text.is-split .w.is-on { opacity: 1; }

/* stats: dark band, big left-aligned numbers */
.section--stat { background: var(--ink); color: var(--paper); padding-block: clamp(3rem, 7vw, 6rem); border-top: 0; }
.grid--stat { gap: 0; background: none; border: 0; }
.grid--stat .card { background: none; text-align: start; padding: 1.5rem 1.5rem 0; border-inline-start: 1px solid rgba(255, 255, 255, .18); }
.grid--stat .card__number { font-size: clamp(3rem, 7vw, 6.5rem); color: var(--paper); font-variant-numeric: tabular-nums; }
.grid--stat .card__meta { color: #a9a9ad; margin: .5rem 0 0; }

/* team + leadership: tall portraits, name on the photo, accent tint on hover, staggered columns */
.grid--person { gap: 2rem; }
.grid--person .card__media { position: relative; aspect-ratio: 3 / 4; margin-bottom: 0; }
.grid--person .card__media::after { content: ""; position: absolute; inset: 0; background: rgba(11, 11, 12, .3); transition: background .35s ease; }
.grid--person .card:hover .card__media::after { background: rgba(11, 11, 12, .5); }
.card__cap { position: absolute; inset-inline: 1.2rem; bottom: 1.2rem; z-index: 2; color: #fff; }
.card__cap h3 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 2.2rem); }
.card__cap .card__meta { margin: 0; color: #ececee; }
.grid--person.grid--n6 .card:nth-child(3n+2), .grid--person.grid--n3 .card:nth-child(2) { margin-top: 3rem; }

/* founder: big portrait, oversized pull-quote */
.section--founder { background: var(--wash); }
.founder { grid-template-columns: 5fr 7fr; align-items: end; gap: 0; }
.founder__img { aspect-ratio: 4 / 5; }
.founder__text { padding-inline-start: clamp(1.5rem, 5vw, 5rem); margin-bottom: 1rem; }
.founder blockquote { font-size: clamp(2rem, 4.6vw, 4.4rem); line-height: 1.1; border-inline-start: 6px solid var(--accent); padding-inline-start: 1.5rem; }
[dir="rtl"] .founder blockquote { line-height: 1.5; }

/* motion extras */
@media (prefers-reduced-motion: no-preference) {
	.js .card--case.reveal .case__title { clip-path: inset(0 0 100% 0); transform: translateY(40%); transition: clip-path .9s cubic-bezier(.2, .7, .2, 1) .15s, transform .9s cubic-bezier(.2, .7, .2, 1) .15s; }
	.js .card--case.reveal.is-in .case__title { clip-path: inset(-15% -2% -15% -2%); transform: none; }
}

/* numbers are always left-to-right (keeps "+210%" and "120+" intact in Arabic) */
.card__number { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .card__number { text-align: right; }

/* ===== v7: monochrome, Huge-style. The photos carry all the colour. ===== */
/* dark contexts flip the accent token to white so every accent use stays visible */
.hero, .section--stat, .section--flow, .section--case, .cta, .site-footer, .card--package.is-featured { --accent: var(--paper); --on-accent: var(--ink); }

/* buttons: ink pill on light, white pill on dark */
.btn--solid:hover { background: transparent; color: var(--ink); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: transparent; color: var(--accent); }
.site-header .btn { background: var(--ink); color: var(--paper); }
.site-header .btn:hover { background: transparent; color: var(--ink); }
.hero .btn--accent { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.hero .btn--accent:hover { background: rgba(11, 11, 12, .55); color: var(--paper); }
.hero .btn--solid { background: rgba(11, 11, 12, .55); color: var(--paper); }
.hero .btn--solid:hover { background: var(--paper); color: var(--ink); }

/* marquee: white strip, ink words */
.marquee { overflow: hidden; direction: ltr; background: var(--paper); color: var(--ink); padding-block: 1rem; border-block: 1px solid var(--line); }

/* cursor: white dot with difference blend, visible on light, dark and photos */
.cursor i { display: block; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; mix-blend-mode: difference; transition: transform .25s ease; }

/* giant section headings (Huge "Our work.") */
.section--case .section__head, .section--index .section__head { max-width: none; }
.section--case .section__head h2, .section--index .section__head h2 { font-size: clamp(3.5rem, 13vw, 12rem); line-height: .9; letter-spacing: -.05em; }
[dir="rtl"] .section--case .section__head h2, [dir="rtl"] .section--index .section__head h2 { letter-spacing: 0; line-height: 1.15; }

/* services: giant numbered rows */
.index { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); }
.index__row { display: grid; grid-template-columns: 1fr; padding: 2rem 0; border-bottom: 1px solid var(--line); outline-offset: -2px; }
.index__num { padding-top: 0; margin-bottom: .4rem; font: 700 .95rem var(--font-display); color: var(--mute); transition: color .25s; }
.index__title { grid-column: 1; margin: 0; font-size: clamp(2.4rem, 6.6vw, 6.5rem); line-height: .98; letter-spacing: -.04em; color: var(--mute); transition: color .25s, transform .35s ease; }
[dir="rtl"] .index__title { letter-spacing: 0; line-height: 1.2; }
.index__desc { grid-column: 1; }
.index__row.is-active .index__num, .index__row.is-active .index__title { color: var(--ink); }

/* work: two big image tiles per row, caption UNDER the photo (nothing on the image) */
.grid--case { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 3vw, 3rem); background: none; border: 0; }
.card--case { display: block; background: none; padding: 0; margin: 0; }
.card--case:last-child:nth-child(odd) { grid-column: 1 / -1; } /* a lone last tile spans the row: no half-empty row */
.case__media { aspect-ratio: 4 / 3; border-radius: 14px; }
.card--case:last-child:nth-child(odd) .case__media { aspect-ratio: 21 / 9; }
.case__body { display: grid; grid-template-columns: 1fr auto; gap: .15rem 1.5rem; align-items: baseline; margin-top: 1.1rem; }
.case__title { grid-column: 1; margin: 0; font-size: clamp(1.3rem, 2.2vw, 2rem); }
.case__title a { text-decoration: none; }
.case__title a:hover { text-decoration: underline; }
.case__body .card__number { grid-column: 2; grid-row: 1 / 3; margin: 0; font-size: clamp(1.6rem, 3vw, 2.6rem); color: var(--accent); }
.case__body .card__meta { grid-column: 1; margin: 0; }
.case__desc { grid-column: 1 / -1; margin: .5rem 0 0; color: var(--mute); font-size: .95rem; }

/* footer: giant closing line, big nav words, contact, email capture */
.site-footer { background: var(--ink); color: var(--paper); padding-top: clamp(4rem, 9vw, 8rem); font-size: .95rem; }
.footer__big { margin: 0 0 clamp(3rem, 7vw, 6rem); font: 800 clamp(5rem, 20vw, 19rem) / .85 var(--font-display); letter-spacing: -.06em; }
[dir="rtl"] .footer__big { font-family: var(--font-ar); letter-spacing: 0; line-height: 1.15; }
.footer__grid { display: grid; grid-template-columns: 1.2fr .8fr 1.4fr; gap: 3rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { opacity: .6; }
.footer__nav li { margin: 0; }
.footer__nav a { font: 700 clamp(1.8rem, 3.4vw, 3.2rem) / 1.15 var(--font-display); letter-spacing: -.03em; }
[dir="rtl"] .footer__nav a { font-family: var(--font-ar); letter-spacing: 0; }
.footer__nav a::after { content: "."; }
.site-footer h3 { margin: 0 0 1rem; font: 600 .8rem var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
[dir="rtl"] .site-footer h3 { letter-spacing: 0; font-family: var(--font-ar); }
.site-footer .footer__ask { font: 700 clamp(1.4rem, 2.4vw, 2rem) / 1.2 var(--font-display); letter-spacing: -.02em; text-transform: none; color: var(--paper); }
[dir="rtl"] .site-footer .footer__ask { font-family: var(--font-ar); letter-spacing: 0; }
.signup { display: flex; background: var(--paper); color: var(--ink); }
.signup input[type="email"] { flex: 1; min-width: 0; border: 0; background: transparent; padding: 1.1rem 1rem; font: inherit; color: var(--ink); }
.signup input[type="email"]::placeholder { color: var(--mute); }
.signup button { border: 0; background: transparent; padding: 0 1.1rem; color: var(--ink); cursor: pointer; }
[dir="rtl"] .signup button svg { transform: scaleX(-1); }
.signup input:focus-visible, .signup button:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
.footer__note { margin: .75rem 0 0; font-size: .8rem; color: var(--mute); }
.footer__bar { margin-top: clamp(3rem, 6vw, 5rem); }

/* ===== v8: responsive hero + header ===== */
.brand { white-space: nowrap; }

/* the title rises in (opacity + translate); no clip mask, so it can never be caught half-cut */
@media (prefers-reduced-motion: no-preference) {
	.hero__title { animation: aura-title .8s cubic-bezier(.2, .7, .2, 1) both; }
	@keyframes aura-title { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
}

/* section headings below desktop: fade + rise instead of the clip mask */
@media (max-width: 1023px) and (prefers-reduced-motion: no-preference) {
	.js .section__head.reveal h2 { clip-path: none; opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
	.js .section__head.reveal.is-in h2 { opacity: 1; transform: none; }
	.js .card--case.reveal .case__title, .js .card--case.reveal.is-in .case__title { clip-path: none; }
}

/* ===== v10: ONE horizontal showcase for Work and Process (same count, card shape and motion) ===== */
.hpin { overflow-x: clip; } /* cards moving sideways must never widen the page */
.section--flow { background: var(--ink); color: var(--paper); border-top: 0; }
.section--flow .section__head p { color: #a9a9ad; }
.section--flow .section__head, .section--case .section__head { max-width: none; }
.section--flow .section__head h2 { font-size: clamp(3.5rem, 13vw, 12rem); line-height: .9; letter-spacing: -.05em; }
[dir="rtl"] .section--flow .section__head h2 { letter-spacing: 0; line-height: 1.15; }
.case__media img { translate: var(--parx, 0px) var(--par, 0px); }

/* desktop with motion: pinned. main.js sets the section height to exactly viewport + sideways travel, so every
   scrolled pixel moves the track and there is no dead scroll. The 220vh below is only the no-JS-yet fallback. */
@media (min-width: 1024px) and (min-height: 700px) and (prefers-reduced-motion: no-preference) {
	.js .hpin { --hw: min(50vw, calc((100vh - 19rem) * 1.4545)); padding: 0; height: 220vh; } /* wider cards: the next one peeks in from the far edge */
	.js .hpin__sticky { position: sticky; top: 0; height: 100vh; box-sizing: border-box; padding-block: 5.5rem 1.5rem; display: flex; flex-direction: column; overflow: hidden; }
	.js .hpin .section__head { margin-bottom: 0; }
	.js .hpin .section__head h2 { font-size: clamp(2.6rem, 5.5vw, 5rem); }
	.js .hpin .section__head p { margin: .25rem 0 0; }
	.js .hpin__view { flex: 1; min-height: 0; display: flex; align-items: center; }
	.js .hpin__track { display: flex; position: relative; width: max-content; gap: 2.5rem; will-change: transform; transition: transform .55s cubic-bezier(.16, .84, .3, 1); }
	.js .hpin .hcard, .js .hpin .hcard.reveal, .js .hpin .hcard.reveal.is-in { flex: 0 0 var(--hw); opacity: 1; transform: scale(var(--cs, 1)) rotate(var(--cr, 0deg)); transition: transform .55s cubic-bezier(.16, .84, .3, 1); }
	.js .hpin .case__media, .js .hpin .card--case:last-child:nth-child(odd) .case__media { aspect-ratio: 16 / 11; }
	.js .hpin .section__more { margin: 0; }
	.js .hpin .section__intro { display: none; } /* the pinned frame is exactly one screen: keep the heading block short so nothing overlaps the cards */
}

.section--flow .case__desc, .section--flow .card__meta { color: #a9a9ad; }

/* ===== Work like Huge's "Our work.": dark, giant heading, one big wide card with the next peeking in ===== */
.section--case { background: var(--ink); color: var(--paper); border-top: 0; }
.section--case .section__head p { color: #a9a9ad; }
.section--case .case__desc, .section--case .card__meta { color: #a9a9ad; }
.section--flow { border-top: 1px solid rgba(255, 255, 255, .14); } /* two dark sections in a row: a hairline between them */
@media (min-width: 1024px) and (min-height: 700px) and (prefers-reduced-motion: no-preference) {
	.js .hpin.hpin--hero { --hw: min(78vw, calc((100vh - 22rem) * 1.7778)); }
	.js .hpin.hpin--hero .section__head h2 { font-size: clamp(3.2rem, 8.5vw, 7.5rem); line-height: .92; }
	.js .hpin.hpin--hero .section__head p { display: none; }
	.js .hpin.hpin--hero .section__more { position: absolute; top: 7.25rem; inset-inline-end: 2rem; z-index: 3; } /* beside the heading, never over a caption */
	.js .hpin.hpin--hero .section__more .link { color: var(--paper); }
	.js .hpin.hpin--hero .case__media, .js .hpin.hpin--hero .card--case:last-child:nth-child(odd) .case__media { aspect-ratio: 16 / 9; }
}

@media (min-width: 1024px) and (min-height: 700px) and (prefers-reduced-motion: no-preference) { .js .hpin .case__media img { transition: transform .8s cubic-bezier(.2, .7, .2, 1), translate .55s cubic-bezier(.16, .84, .3, 1); } }

/* ===== v12: Work is a card SWITCHER (3D tilt deck); #flow keeps the flat sideways slide ===== */
@media (min-width: 1024px) and (min-height: 700px) and (prefers-reduced-motion: no-preference) {
	.js .hpin--switch .hpin__view { display: block; position: relative; }
	.js .hpin--switch .case__body { opacity: var(--sc, 1); transition: opacity .3s ease; }
	.js .hpin--switch .hpin__track { display: block; position: relative; width: 100%; height: 100%; perspective: 1500px; transform: none; transition: none; }
	.js .hpin.hpin--switch .hcard, .js .hpin.hpin--switch .hcard.reveal, .js .hpin.hpin--switch .hcard.reveal.is-in {
		position: absolute; left: 50%; top: 50%; flex: none; width: var(--hw); opacity: var(--so, 1); will-change: transform, opacity;
		transform: translate(-50%, -50%) translate3d(var(--sx, 0px), 0, var(--sz, 0px)) rotateY(var(--sry, 0deg)) scale(var(--ss, 1));
		transition: transform .45s cubic-bezier(.2, .7, .2, 1), opacity .35s ease;
	}
}

/* ===== v13: production polish. Same identity; states, tap targets, header, responsive tiers. ===== */

/* reading measure + Arabic rhythm */
.section__head p, .studio__text p, .entry__body p, .index__desc, .case__desc { max-width: 65ch; }
[dir="rtl"] body { line-height: 1.85; }

/* tap targets: every control is at least 44px tall; the visible pill keeps its desktop size */
.brand, .nav a, .footer__nav a, .footer__contact a, .link, .case__title a, .filter__btn { min-height: 44px; display: inline-flex; align-items: center; }
.nav-toggle { min-height: 44px; align-items: center; } /* shown (inline-flex) only in the tablet/phone tier */
.lang-pill { position: relative; min-height: 44px; display: inline-flex; align-items: center; border: 0; padding: 0 .9rem; }
.lang-pill::before { content: ""; position: absolute; inset: 6px 0; z-index: -1; border: 1px solid var(--ink); border-radius: 999px; transition: background .2s; }
.lang-pill:hover { background: none; color: var(--paper); }
.lang-pill:hover::before { background: var(--ink); }
.site-header .btn--small, .site-header .btn--small:hover { position: relative; min-height: 44px; display: inline-flex; align-items: center; padding-block: 0; border-color: transparent; background: none; }
.site-header .btn--small { color: var(--paper); }
.site-header .btn--small:hover { color: var(--ink); }
.site-header .btn--small::before { content: ""; position: absolute; inset: 4px 0; z-index: -1; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); transition: background .2s; }
.site-header .btn--small:hover::before { background: transparent; }
.signup input[type="email"], .signup button { min-height: 44px; min-width: 44px; }
.reel__close { min-width: 44px; min-height: 44px; }

/* states: focus on light and dark (accent flips to white on dark sections), press, disabled */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn:active { scale: .97; }
.btn:disabled, .btn[aria-busy="true"] { opacity: .5; cursor: progress; pointer-events: none; }
.form input, .form select, .form textarea { min-height: 48px; transition: border-color .2s, box-shadow .2s; }
.form input:hover, .form select:hover, .form textarea:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.form [aria-invalid="true"] { border-style: dashed; border-width: 2px; }
.field-msg { display: block; margin-top: .4rem; font-size: var(--step--1); font-weight: 600; }
.field-msg:empty { display: none; }
.notice { padding: 1rem 1.25rem; border: 1px solid var(--ink); font-weight: 600; }
.notice--ok { background: var(--wash); }
.notice--error { background: var(--ink); color: var(--paper); }

/* header: compact with a soft backdrop once scrolled; hides on scroll down, back on scroll up or focus */
.site-header { padding-inline: env(safe-area-inset-left) env(safe-area-inset-right); transition: transform .35s cubic-bezier(.2, .7, .2, 1), background-color .3s; }
.site-header__row { transition: min-height .3s ease; }
.site-header.is-compact { background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.site-header.is-compact .site-header__row { min-height: 3.5rem; }
.site-header.is-hidden:not(:focus-within) { transform: translateY(-100%); }
html.menu-open, html.menu-open body { overflow: hidden; }
html.menu-open .site-header { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; }
.site-footer { padding-bottom: env(safe-area-inset-bottom); }

/* image placeholders: wash tone while loading, a dim wash on dark sections */
.card__media, .hero__card, .index__panel, .studio__img, .founder__img { background-color: var(--wash); }
.hero .hero__card, .section--case .card__media, .section--flow .card__media { background-color: rgba(244, 242, 236, .08); }
/* below the fold and not an anchor target: skip rendering work until near the viewport */
#about, #voices, #founder, #leadership { content-visibility: auto; contain-intrinsic-size: auto 900px; }

/* contrast: grey text on the dark footer uses the light grey (AA), not --mute */
.site-footer h3, .footer__note, .footer__bar { color: #a9a9ad; }

@media (prefers-reduced-motion: reduce) {
	.site-header, .site-header__row, .lang-pill::before, .site-header .btn--small::before { transition: none; }
	.btn:active { scale: none; }
}

/* ---- responsive: three tiers (1023 / 767 / 599). Pinned showcases need >= 1024 wide AND >= 700 tall. ---- */

/* Work + Process below that: a native swipe row (scroll-snap, no JS); leadership joins it on phones */
@media (max-width: 1023px), (max-height: 699px) {
	.hpin .hpin__view { width: 100%; }
	.hpin .hpin__track { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(82vw, 560px); gap: 1rem; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
	.hpin .hpin__track > .card--case:nth-child(n) { grid-column: auto; scroll-snap-align: start; }
	.hpin .hpin__track .card--case:nth-child(n) .case__media { aspect-ratio: 4 / 3; }
	.hpin .hpin__track { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: .25rem; }
	.hpin .hpin__track::-webkit-scrollbar { display: none; }
}
@media (min-width: 600px) and (max-width: 1023px), (min-width: 600px) and (max-height: 699px) {
	.hpin .hpin__track { grid-auto-columns: min(46vw, 70vh * 4 / 3); }
}

@media (max-width: 1023px) {
	/* header: menu button + full-width panel */
	.nav-toggle { display: inline-flex; }
	.nav { display: none; position: absolute; top: 100%; inset-inline: 0; min-height: calc(100dvh - 3.5rem); max-height: calc(100dvh - 3.5rem); overflow-y: auto; flex-direction: column; align-items: stretch; gap: 1.5rem; padding: 1.5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); }
	.nav.is-open { display: flex; }
	.nav__list { flex-direction: column; gap: 0; }
	.nav__list a { width: 100%; padding-block: .5rem; font: 700 var(--step-2) var(--font-display); letter-spacing: -.02em; border-bottom: 1px solid var(--line); }
	[dir="rtl"] .nav__list a { font-family: var(--font-ar); letter-spacing: 0; }
	.nav .btn--small { align-self: flex-start; }

	/* hero: headline first, then a tidy row of photos. Scatter, float and parallax are desktop-only. */
	.hero { display: flex; flex-direction: column; min-height: 0; padding-block: clamp(3.5rem, 9vw, 6rem) 0; }
	.hero__center { pointer-events: auto; }
	.hero__stage { position: relative; inset: auto; order: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; width: min(100% - 2 * var(--gutter), 900px); height: auto; margin: var(--space-3) auto 0; padding-bottom: var(--space-3); }
	.hero__card { position: relative; left: auto; top: auto; width: auto; transform: rotate(var(--r)); animation: none; }
	.hero__card img { aspect-ratio: 4 / 5; }
	.hero__card:nth-child(n+4) { display: none; }
	.hero__card:nth-child(1) { --r: -3deg; }
	.hero__card:nth-child(2) { --r: 2deg; margin-top: 1.5rem; }
	.hero__card:nth-child(3) { --r: -2deg; }

	/* services: one column, every title readable, the active row shows its description */
	.index { grid-template-columns: 1fr; }
	.index__panel { display: none; }
	.index__title, .index__row.is-active .index__title { color: var(--ink); transform: none; }
	[dir="rtl"] .index__row.is-active .index__title { transform: none; }
	.index__row.is-active .index__num { color: var(--mute); }

	.grid--n4 { grid-template-columns: repeat(2, 1fr); }
	.footer__grid { grid-template-columns: 1fr 1fr; }
	.footer__signup { grid-column: 1 / -1; }
}
/* landscape phones: keep the hero photos short */
@media (max-width: 1023px) and (max-height: 499px) {
	.hero__card img { aspect-ratio: 3 / 2; }
}

@media (max-width: 767px) {
	.studio, .founder { grid-template-columns: 1fr; }
	.founder__img { max-width: 520px; }
	.founder__text { padding-inline-start: 0; margin-top: 2rem; }
	.statement__text, [dir="rtl"] .statement__text { margin: 0; }
	.grid--n3:not(.grid--person) { grid-template-columns: 1fr; }
	.grid--n6 { grid-template-columns: repeat(2, 1fr); }
	.grid--person.grid--n6 .card:nth-child(3n+2) { margin-top: 0; }
	.grid--stat .card { padding-inline: 1rem; }
}

@media (max-width: 599px) {
	.site-header__row { gap: .5rem; min-height: 3.75rem; }
	.brand { font-size: 1rem; }
	.lang-pill { padding-inline: .75rem; font-size: .8rem; }
	.nav-toggle { padding-inline: .8rem; font-size: .85rem; }

	.hero__stage { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
	.hero__card:nth-child(3) { display: none; }
	.hero__card img { aspect-ratio: 1 / 1.15; }
	.hero__cta { flex-direction: column; align-items: stretch; margin-top: 1.75rem; }
	.hero__cta .btn { width: 100%; text-align: center; justify-content: center; }

	.index__row { padding: 1.25rem 0; }
	.index__title { font-size: clamp(1.9rem, 9vw, 2.6rem); }

	/* clients: one compact block, 3 + 2 */
	.section--logo { padding-block: 2rem; }
	.grid--logo { gap: 1.25rem .5rem; }
	.grid--logo > .card { flex: 0 1 calc(33.333% - .5rem); }
	.grid--logo img { max-width: 96px; }

	/* leadership: swipe row instead of three full-width portraits */
	.grid--person.grid--n3 { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72vw; gap: 1rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
	.grid--person.grid--n3::-webkit-scrollbar { display: none; }
	.grid--person.grid--n3 > .card:nth-child(n) { scroll-snap-align: start; margin-top: 0; }

	/* packages: same stack, tighter */
	.grid--package { gap: 1px; }
	.section--package .card { padding: 1.5rem; }
	.card__list { margin: 1rem 0 1.5rem; }

	.footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}
