@font-face {
  font-family: 'Whyte Inktrap';
  src: url('../assets/fonts/ABCWhyteInktrapVariable-Trial.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Damoon';
  src: url('../assets/fonts/Damoon-FaNum-VF.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #050506;
  --fg: #f2f2ef;
  --mute: rgba(242, 242, 239, .52);
  --line: rgba(242, 242, 239, .14);
  --panel: rgba(18, 18, 20, .55);
  --ease: cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 3.2vw, 48px);
  --font: 'Whyte Inktrap', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; scrollbar-gutter: stable; }
body { font-family: var(--font); font-weight: 350; background: var(--bg); overflow-x: hidden; min-height: 100vh; }
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--fg); color: var(--bg); }

#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; display: block; transition: opacity 1.2s var(--ease); }
body.mode-site #gl { opacity: .38; }

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

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--bg); transition: opacity .9s var(--ease), visibility .9s; }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__mark { width: 64px; fill: var(--fg); overflow: visible; }
.loader__mark .b { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); animation: blockIn .9s var(--ease) forwards; }
.loader__mark .b4, .loader__mark .b5 { transform-origin: 50% 0; }
.loader__mark .b1 { animation-delay: .05s } .loader__mark .b4 { animation-delay: .15s } .loader__mark .b2 { animation-delay: .25s }
.loader__mark .b5 { animation-delay: .35s } .loader__mark .b3 { animation-delay: .45s }
@keyframes blockIn { to { transform: scaleY(1) } }
.loader__count { position: absolute; left: var(--gutter); bottom: var(--gutter); font-size: clamp(56px, 11vw, 160px); font-weight: 200; letter-spacing: -.04em; line-height: .8; font-variant-numeric: tabular-nums; }
.loader__label { position: absolute; right: var(--gutter); bottom: var(--gutter); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }

/* ---------- HUD ---------- */
.hud { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; justify-content: space-between; align-items: center; padding: var(--gutter); pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud::before { content: ''; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .6s; background: linear-gradient(var(--bg) 30%, rgba(5, 5, 6, 0)); }
body.mode-site .hud::before { opacity: 1; }
.hud__wordmark { height: 20px; width: auto; opacity: .95; }
.pill {
  display: flex; align-items: center; gap: 14px; padding: 13px 26px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
}
.hud__right { display: flex; align-items: center; gap: 10px; }
.lang {
  height: 44px; min-width: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 13px; letter-spacing: .06em; transition: background .3s, color .3s;
}
.lang:hover { background: var(--fg); color: var(--bg); }
html[lang="en"] .lang { font-family: 'Damoon', var(--font); font-size: 15px; }
html[lang="fa"] .lang { font-family: 'Whyte Inktrap', sans-serif; }
.pill a { white-space: nowrap; }
.btn-enter { white-space: nowrap; }
.pill a { position: relative; opacity: .7; transition: opacity .3s; }
.pill a:hover, .pill a.is-active { opacity: 1; }
.pill a.is-active::after { content: ''; position: absolute; left: 50%; bottom: -8px; width: 4px; height: 4px; background: var(--fg); transform: translateX(-50%); }
.pill__line { width: 28px; height: 1px; background: var(--line); }
body.mode-intro .hud__brand { opacity: 0; pointer-events: none; }

/* ---------- Intro ---------- */
.intro { position: relative; z-index: 10; }
.intro__spacer { height: 1100vh; }
.intro__chapters { position: fixed; inset: 0; pointer-events: none; }
.chapter { position: absolute; left: var(--gutter); bottom: calc(var(--gutter) * 2.2); max-width: min(560px, 86vw); opacity: 0; visibility: hidden; }
.chapter.is-on { visibility: visible; }
.chapter > * { transform: translateY(var(--ty, 30px)); transition: transform 1s var(--ease-out); }
.chapter.is-on > * { --ty: 0px; }
.chapter > *:nth-child(2) { transition-delay: .06s } .chapter > *:nth-child(3) { transition-delay: .12s } .chapter > *:nth-child(4) { transition-delay: .18s }
.chapter--hero { bottom: auto; top: 50%; left: auto; right: var(--gutter); transform: translateY(-50%); text-align: right; }
.chapter--network { left: auto; right: var(--gutter); text-align: right; }
.chapter--network .body { margin-left: auto; }
.chapter--final { left: 50%; bottom: calc(var(--gutter) * 1.6); transform: translateX(-50%); text-align: center; max-width: min(760px, 92vw); pointer-events: auto; }

.kicker { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); margin-bottom: 18px; }
.display { font-size: clamp(40px, 6.6vw, 104px); font-weight: 300; line-height: .95; letter-spacing: -.035em; }
.display em, .title em { font-style: normal; font-weight: 700; }
.title { font-size: clamp(34px, 4.6vw, 72px); font-weight: 300; line-height: .98; letter-spacing: -.03em; }
.body { margin-top: 20px; font-size: 16px; line-height: 1.55; color: var(--mute); max-width: 400px; }
.final__text { font-size: clamp(19px, 2vw, 28px); line-height: 1.32; font-weight: 300; letter-spacing: -.01em; }
.final__text b { font-weight: 600; }

.btn-enter {
  margin-top: 34px; display: inline-flex; align-items: center; gap: 18px; padding: 18px 30px; border-radius: 999px;
  background: var(--fg); color: var(--bg); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500;
  transition: transform .5s var(--ease-out), box-shadow .5s;
}
.btn-enter i { font-style: normal; transition: transform .5s var(--ease-out); }
.btn-enter:hover { transform: scale(1.04); box-shadow: 0 0 60px rgba(255, 255, 255, .25); }
.btn-enter:hover i { transform: translateX(6px); }

.service-labels { position: fixed; inset: 0; pointer-events: none; z-index: 11; }
.service-label { position: absolute; left: 0; top: 0; white-space: nowrap; font-size: 13px; letter-spacing: .04em; will-change: transform, opacity; }
.service-label b { display: block; font-size: 11px; color: var(--accent, var(--mute)); font-weight: 400; letter-spacing: .14em; margin-bottom: 6px; }
.service-label span { display: inline-block; padding: 9px 14px; border: 1px solid color-mix(in srgb, var(--accent, #fff) 55%, transparent); box-shadow: 0 0 26px -8px var(--accent, transparent); border-radius: 999px; background: var(--panel); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

.intro__progress { position: fixed; left: var(--gutter); top: 50%; width: 1px; height: 120px; background: var(--line); transform: translateY(-50%); }
.intro__progress span { position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--fg); transform-origin: top; transform: scaleY(0); }
.scroll-hint { position: fixed; left: 50%; bottom: var(--gutter); transform: translateX(-50%); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); transition: opacity .6s; }
.scroll-hint::after { content: ''; display: block; width: 1px; height: 36px; margin: 12px auto 0; background: linear-gradient(var(--fg), transparent); animation: hint 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0) } 50% { transform: scaleY(1); transform-origin: top } 51% { transform-origin: bottom } 100% { transform: scaleY(0); transform-origin: bottom } }
.skip { position: fixed; right: var(--gutter); bottom: var(--gutter); z-index: 12; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); transition: color .3s; }
.skip:hover { color: var(--fg); }
body.mode-site .intro { display: none; }

/* ---------- Wipe ---------- */
.wipe { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-columns: repeat(5, 1fr); pointer-events: none; }
.wipe i { background: var(--fg); transform: scaleY(0); }
.wipe i:nth-child(odd) { transform-origin: top; }
.wipe i:nth-child(even) { transform-origin: bottom; }
.wipe.is-in i { animation: wipeIn .55s var(--ease) forwards; }
.wipe.is-out i { transform: scaleY(1); animation: wipeOut .6s var(--ease) forwards; }
.wipe i:nth-child(1) { animation-delay: 0s } .wipe i:nth-child(2) { animation-delay: .08s } .wipe i:nth-child(3) { animation-delay: .04s }
.wipe i:nth-child(4) { animation-delay: .12s } .wipe i:nth-child(5) { animation-delay: .02s }
@keyframes wipeIn { from { transform: scaleY(0) } to { transform: scaleY(1) } }
@keyframes wipeOut { from { transform: scaleY(1) } to { transform: scaleY(0) } }
.wipe.is-out i:nth-child(odd) { transform-origin: bottom; }
.wipe.is-out i:nth-child(even) { transform-origin: top; }

/* ---------- Site ---------- */
.site { position: relative; z-index: 10; min-height: 100vh; padding: calc(var(--gutter) * 4) var(--gutter) var(--gutter); }
.page-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; padding: 6vh 0 5vh; border-bottom: 1px solid var(--line); }
.page-title { font-size: clamp(54px, 10vw, 168px); font-weight: 250; letter-spacing: -.05em; line-height: .86; }
.page-title b { font-weight: 700; }
.page-meta { color: var(--mute); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; text-align: end; line-height: 1.8; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; padding: 26px 0; }
.filters button { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; letter-spacing: .04em; color: var(--mute); transition: all .3s; }
.filters button:hover { color: var(--fg); border-color: rgba(242, 242, 239, .4); }
.filters button.is-active { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.filters .count { opacity: .5; margin-left: 6px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px var(--gutter); padding-bottom: 10vh; }
.card { display: block; opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.card.is-in { opacity: 1; transform: none; }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #111; clip-path: inset(0 round 4px); transition: clip-path .7s var(--ease-out); }
.card__media img, .card__media canvas { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s var(--ease-out), filter .8s; filter: grayscale(.6) brightness(.85); }
.card:hover .card__media { clip-path: inset(10px round 4px); }
.card:hover .card__media img, .card:hover .card__media canvas { transform: scale(1); filter: none; }
.card__idx { position: absolute; left: 14px; top: 12px; font-size: 11px; letter-spacing: .14em; mix-blend-mode: difference; }
.card__row { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; align-items: baseline; }
.card__title { font-size: 22px; font-weight: 400; letter-spacing: -.015em; }
.card__year { font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; }
.card__cat { margin-top: 6px; font-size: 12px; color: var(--mute); letter-spacing: .06em; text-transform: uppercase; }

/* Detail */
.detail-hero { position: relative; height: 78vh; margin: 0 calc(var(--gutter) * -1); overflow: hidden; }
.detail-hero img, .detail-hero canvas { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); animation: heroIn 1.8s var(--ease-out) forwards; }
@keyframes heroIn { to { transform: scale(1) } }
.detail-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 2%, transparent 50%, rgba(5, 5, 6, .4)); }
.detail-hero__title { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 4vh; z-index: 2; }
.detail-hero__title .kicker { margin-bottom: 12px; }
.detail-hero__title h1 { font-size: clamp(44px, 8vw, 132px); font-weight: 300; letter-spacing: -.045em; line-height: .9; }
.detail-body { display: grid; grid-template-columns: 1fr 2fr; gap: 6vw; padding: 9vh 0; border-bottom: 1px solid var(--line); }
.facts { display: grid; gap: 26px; align-content: start; }
.fact dt { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }
.fact dd { font-size: 16px; line-height: 1.45; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; }
.prose p { font-size: clamp(19px, 1.8vw, 26px); line-height: 1.4; font-weight: 300; letter-spacing: -.01em; }
.prose p + p { margin-top: 1.1em; color: rgba(242, 242, 239, .72); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gutter); padding: 9vh 0; }
.gallery figure { overflow: hidden; border-radius: 4px; }
.gallery figure:first-child:nth-last-child(odd), .gallery figure.wide { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.next { display: block; padding: 10vh 0 6vh; border-top: 1px solid var(--line); text-align: center; }
.next .kicker { margin-bottom: 14px; }
.next h3 { font-size: clamp(40px, 8vw, 128px); font-weight: 250; letter-spacing: -.045em; line-height: .9; transition: letter-spacing .8s var(--ease-out); }
.next:hover h3 { letter-spacing: -.02em; }
.back { display: inline-flex; gap: 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 4vh; }
.back:hover { color: var(--fg); }

/* Studio */
.section { padding: 11vh 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 2fr; gap: 6vw; }
.section > * { min-width: 0; }
.section > h2 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); font-weight: 400; }
.lead p { font-size: clamp(22px, 2.6vw, 40px); line-height: 1.2; font-weight: 300; letter-spacing: -.02em; }
.lead p + p { margin-top: .8em; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.5; color: rgba(242, 242, 239, .7); }
.pillars { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.pillars span { padding: 12px 20px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 var(--gutter); }
.service { padding: 26px 0; border-top: 1px solid var(--line); }
.service h3 { font-size: 22px; font-weight: 400; letter-spacing: -.01em; display: flex; gap: 14px; }
.service h3 small { font-size: 12px; color: var(--mute); padding-top: 6px; }
.service ul { list-style: none; margin-top: 14px; color: var(--mute); font-size: 15px; line-height: 1.8; }
.why { counter-reset: why; }
.why li { list-style: none; display: grid; grid-template-columns: 60px 1fr; gap: 10px; padding: 24px 0; border-top: 1px solid var(--line); }
.why li::before { counter-increment: why; content: '0' counter(why); color: var(--mute); font-size: 13px; padding-top: 5px; }
.why h3 { font-size: 22px; font-weight: 400; }
.why p { grid-column: 2; color: var(--mute); line-height: 1.6; font-size: 15px; max-width: 620px; }
.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.logos div { position: relative; background: var(--bg); aspect-ratio: 3 / 2; transition: background .4s; }
.logos div:hover { background: #111113; }
.logos img { position: absolute; left: 22%; top: 24%; width: 56%; height: 52%; object-fit: contain; opacity: .8; transition: opacity .4s, transform .6s var(--ease-out); }
/* hover shows the brand's own colour logo */
.logos .logos__color { opacity: 0; }
.logos div.has-color:hover img:not(.logos__color) { opacity: 0; }
.logos div.has-color:hover .logos__color { opacity: 1; }
.logos div.card-light:hover { background: #f2f1ed; }
.logos__name { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(16px, 1.6vw, 22px); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: .85; }
.logos__you { background: var(--bg); display: grid; place-items: center; aspect-ratio: 3 / 2; font-size: 14px; color: var(--mute); transition: background .4s, color .4s; }
.logos__you:hover { background: var(--fg); color: var(--bg); }
.logos div:hover img { opacity: 1; transform: scale(1.06); }

/* Contact */
.contact { min-height: 76vh; display: grid; align-content: center; gap: 6vh; }
.contact h1 { font-size: clamp(52px, 10vw, 170px); font-weight: 250; letter-spacing: -.05em; line-height: .86; }
.contact h1 b { font-weight: 700; }
.contact__row { display: flex; flex-wrap: wrap; gap: 6vw; align-items: end; }
.contact__big { font-size: clamp(24px, 3vw, 44px); border-bottom: 1px solid var(--fg); padding-bottom: 6px; }
.contact__note { color: var(--mute); font-size: 14px; line-height: 1.6; max-width: 360px; }

.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 30px 0 4px; color: var(--mute); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; border-top: 1px solid var(--line); }
.footer button:hover { color: var(--fg); }

.cursor-preview { position: fixed; left: 0; top: 0; z-index: 30; width: 300px; aspect-ratio: 16 / 10; pointer-events: none; opacity: 0; overflow: hidden; border-radius: 4px; transition: opacity .3s; }

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

[hidden] { display: none !important; }

/* ---------- Below the intro ---------- */
body.is-past #gl { opacity: .4; }
body.mode-intro.is-past .hud__brand { opacity: 1; pointer-events: auto; }
body.is-past .hud::before { opacity: 1; }
.hud__brand { transition: opacity .6s; }
body.is-past .scroll-hint, body.is-past .skip, body.is-past .intro__progress, body.is-past .service-labels { opacity: 0 !important; pointer-events: none; }
.scroll-hint, .skip, .intro__progress { transition: opacity .6s; }
.after { position: relative; z-index: 10; }
body.mode-site .after, body.mode-site .client-card { display: none; }

/* Client card */
.client-card {
  position: fixed; z-index: 45; inset-inline-end: var(--gutter); bottom: calc(var(--gutter) * 2.2); width: min(400px, calc(100vw - 32px));
  padding: 22px 22px 20px; border-radius: 18px; border: 1px solid var(--line); background: rgba(10, 10, 12, .84);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
  opacity: 0; transform: translateY(24px) scale(.96); transition: opacity .4s var(--ease-out), transform .6s var(--ease-out);
}
.client-card.is-open { opacity: 1; transform: none; }
.client-card .kicker { margin-bottom: 8px; font-size: 11px; }
.client-card__name { font-size: 26px; font-weight: 400; letter-spacing: -.02em; line-height: 1.1; padding-inline-end: 28px; }
.client-card__close { position: absolute; top: 14px; inset-inline-end: 14px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); font-size: 18px; line-height: 1; color: var(--mute); transition: color .3s, border-color .3s; }
.client-card__close:hover { color: var(--fg); border-color: var(--fg); }
.client-card__thumbs { display: flex; gap: 8px; margin: 16px 0 14px; }
.client-card__thumbs:empty { display: none; }
.client-card__thumbs img, .client-card__thumbs canvas {
  width: 78px; height: 50px; object-fit: cover; border-radius: 6px; pointer-events: none; user-select: none; -webkit-user-drag: none;
  filter: grayscale(.35); animation: thumbIn .6s var(--ease-out) both;
}
.client-card__thumbs > :nth-child(2) { animation-delay: .06s } .client-card__thumbs > :nth-child(3) { animation-delay: .12s } .client-card__thumbs > :nth-child(4) { animation-delay: .18s }
@keyframes thumbIn { from { opacity: 0; transform: translateY(10px) rotate(-4deg) scale(.9); } }
.client-card__project { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }
.client-card__project:empty { display: none; }
.client-card__text { font-size: 14px; line-height: 1.6; color: rgba(242, 242, 239, .82); }

/* A/V gallery */
.av__stage { position: relative; height: 100vh; overflow: hidden; background: #030304; cursor: crosshair; touch-action: pan-y; }
.av__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.av__head { position: absolute; top: calc(var(--gutter) * 3.4); inset-inline-start: var(--gutter); pointer-events: none; }
.av__now { position: absolute; bottom: calc(var(--gutter) * 1.4); inset-inline-start: var(--gutter); max-width: min(520px, 80vw); }
.av__group { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.av__name, .av__itemTitle { font-family: 'Whyte Inktrap', var(--font); }
.av__name { margin: 8px 0 16px; font-size: clamp(18px, 2vw, 26px); letter-spacing: -.01em; direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .av__name { text-align: right; }
.av__controls { display: flex; align-items: center; gap: 10px; }
.av__btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); font-size: 22px; line-height: 1; transition: background .3s, color .3s; }
.av__btn:hover { background: var(--fg); color: var(--bg); }
html[dir="rtl"] .av__btn { transform: scaleX(-1); }
.av__play { display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 22px; border-radius: 999px; background: var(--fg); color: var(--bg); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; transition: transform .4s var(--ease-out); }
.av__play:hover { transform: scale(1.05); }
.av__play i { font-style: normal; font-size: 11px; }
.av__hint { position: absolute; bottom: calc(var(--gutter) * 1.4); inset-inline-end: var(--gutter); max-width: 260px; text-align: end; font-size: 12px; line-height: 1.6; color: var(--mute); pointer-events: none; }
.av__player { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.av__frame { width: min(62vw, 100vh); aspect-ratio: 16 / 9; pointer-events: auto; border-radius: 10px; overflow: hidden; box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .9), 0 0 0 1px var(--line); animation: playerIn .8s var(--ease-out) both; }
.av__frame iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }
@keyframes playerIn { from { opacity: 0; transform: scale(.86) rotateX(14deg); } }
.av__close { position: absolute; top: calc(var(--gutter) * 3.4); inset-inline-end: var(--gutter); pointer-events: auto; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.av__close:hover { background: var(--fg); color: var(--bg); }
.av__list { padding: 8vh var(--gutter) 2vh; display: grid; gap: 7vh; }
.av__groupTitle { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); font-weight: 400; margin-bottom: 18px; }
.av__groupTitle span { opacity: .5; margin-inline-start: 6px; }
.av__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px 16px; }
.av__item { display: block; text-align: start; }
.av__thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: #111; }
.av__thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.75); transform: scale(1.04); transition: filter .6s, transform .8s var(--ease-out); }
.av__item:hover .av__thumb img, .av__item.is-active .av__thumb img { filter: none; transform: scale(1); }
.av__item.is-active .av__thumb { box-shadow: 0 0 0 1px var(--fg); }
.av__itemTitle { display: block; margin-top: 10px; font-size: 13px; line-height: 1.45; color: rgba(242, 242, 239, .8); unicode-bidi: isolate; }
html[dir="rtl"] .av__itemTitle { text-align: right; }
.av__channel { display: inline-block; margin: 4vh var(--gutter) 0; padding-bottom: 4px; border-bottom: 1px solid var(--fg); font-size: 15px; }

/* WeLight Room portal */
.wl-portal { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 6vw; padding: 16vh var(--gutter); overflow: hidden; }
.wl-portal__tubes { position: relative; height: 46vh; display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2vw, 26px); }
.wl-portal__tubes i {
  width: 3px; height: 34%; border-radius: 2px; background: var(--fg); opacity: .12;
  box-shadow: 0 0 18px rgba(255, 255, 255, .6); animation: wlChase 3.6s var(--ease) infinite;
}
.wl-portal__tubes i:nth-child(even) { transform: translateY(40%); }
.wl-portal__tubes i:nth-child(3n) { transform: translateY(-38%); }
.wl-portal__tubes i:nth-child(1) { animation-delay: 0s } .wl-portal__tubes i:nth-child(2) { animation-delay: .12s } .wl-portal__tubes i:nth-child(3) { animation-delay: .24s }
.wl-portal__tubes i:nth-child(4) { animation-delay: .36s } .wl-portal__tubes i:nth-child(5) { animation-delay: .48s } .wl-portal__tubes i:nth-child(6) { animation-delay: .6s }
.wl-portal__tubes i:nth-child(7) { animation-delay: .72s } .wl-portal__tubes i:nth-child(8) { animation-delay: .84s } .wl-portal__tubes i:nth-child(9) { animation-delay: .96s }
.wl-portal__tubes i:nth-child(10) { animation-delay: 1.08s } .wl-portal__tubes i:nth-child(11) { animation-delay: 1.2s }
@keyframes wlChase { 0%, 100% { opacity: .1; } 12% { opacity: 1; } 40% { opacity: .18; } }
.wl-portal .title { letter-spacing: .1em; font-family: 'Whyte Inktrap', var(--font); }
.wl-portal .btn-enter { display: inline-flex; margin-top: 30px; }
html[dir="rtl"] .wl-portal .title { letter-spacing: 0 !important; font-family: var(--font); }
@media (max-width: 760px) { .wl-portal { grid-template-columns: 1fr; padding: 10vh 16px; } .wl-portal__tubes { height: 26vh; } }

/* About + contact */
.about { padding: 18vh var(--gutter) 12vh; }
.about__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 6vw; margin-top: 7vh; align-items: start; }
.about__lead { font-size: clamp(20px, 2.2vw, 32px); line-height: 1.3; font-weight: 300; letter-spacing: -.015em; }
.about__services { list-style: none; }
.about__services li { display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 16px; }
.about__services small { color: var(--mute); font-size: 12px; padding-top: 3px; }
.contact-sec { padding: 12vh var(--gutter) var(--gutter); min-height: 90vh; display: flex; flex-direction: column; }
.contact-sec__title { font-size: clamp(52px, 9.5vw, 160px); font-weight: 250; letter-spacing: -.05em; line-height: .88; margin-bottom: 6vh; }
.contact-sec__title b { font-weight: 700; }
.contact-sec__row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 4vh 6vw; align-items: start; margin-bottom: auto; padding-bottom: 10vh; }
.contact-links { list-style: none; border-top: 1px solid var(--line); }
.contact-links a {
  display: grid; grid-template-columns: minmax(110px, 1fr) auto 24px; align-items: baseline; gap: 16px;
  padding: 18px 4px; border-bottom: 1px solid var(--line); transition: padding .5s var(--ease-out), background .4s;
}
.contact-links__label { font-size: clamp(20px, 2.2vw, 30px); font-weight: 300; letter-spacing: -.01em; }
.contact-links__handle { font-family: 'Whyte Inktrap', var(--font); font-size: 14px; color: var(--mute); unicode-bidi: isolate; }
.contact-links i { font-style: normal; color: var(--mute); transition: transform .5s var(--ease-out), color .3s; }
html[dir="rtl"] .contact-links i { transform: scaleX(-1); }
.contact-links a:hover { padding-inline-start: 16px; background: rgba(242, 242, 239, .04); }
.contact-links a:hover i { color: var(--fg); transform: translate(3px, -3px); }
html[dir="rtl"] .contact-links a:hover i { transform: scaleX(-1) translate(3px, -3px); }
.contact-sec__row .contact__note { padding-top: 18px; }

/* Website: coming soon */
.soon { min-height: calc(100vh - var(--gutter) * 5); display: grid; place-content: center; justify-items: center; text-align: center; gap: 22px; }
.soon__mark { display: grid; grid-template-columns: repeat(5, 14px); grid-template-rows: repeat(2, 30px); gap: 0; margin-bottom: 18px; }
.soon__mark i { background: var(--fg); animation: soonBlock 1.6s var(--ease) infinite alternate; }
.soon__mark i:nth-child(1) { grid-area: 1 / 1; } .soon__mark i:nth-child(2) { grid-area: 1 / 3; height: 60%; align-self: end; animation-delay: .15s; }
.soon__mark i:nth-child(3) { grid-area: 1 / 5; animation-delay: .3s; } .soon__mark i:nth-child(4) { grid-area: 2 / 2; animation-delay: .45s; } .soon__mark i:nth-child(5) { grid-area: 2 / 4; animation-delay: .6s; }
@keyframes soonBlock { to { transform: scaleY(.25); opacity: .35; } }
.soon__title { font-size: clamp(40px, 7vw, 110px); font-weight: 250; letter-spacing: -.045em; line-height: .95; }
.soon__title b { font-weight: 700; }
.soon__text { max-width: 520px; color: var(--mute); font-size: 16px; line-height: 1.6; }

/* ---------- Persian (RTL) ---------- */
html[dir="rtl"] .contact-sec__title, html[dir="rtl"] .soon__title { line-height: 1.22; }
html[dir="rtl"] { --font: 'Damoon', 'Whyte Inktrap', Tahoma, sans-serif; }
html[dir="rtl"] body { font-weight: 300; }
/* letter-spacing breaks Persian letter joining */
html[dir="rtl"] body * { letter-spacing: 0 !important; }
html[dir="rtl"] .chapter--clients, html[dir="rtl"] .chapter--services { left: auto; right: var(--gutter); }
html[dir="rtl"] .skip { right: auto; left: var(--gutter); }
html[dir="rtl"] .intro__progress { left: auto; right: var(--gutter); top: auto; bottom: var(--gutter); transform: none; height: 80px; }
html[dir="rtl"] .display, html[dir="rtl"] .title, html[dir="rtl"] .page-title, html[dir="rtl"] .detail-hero__title h1,
html[dir="rtl"] .next h3, html[dir="rtl"] .contact h1 { line-height: 1.22; }
html[dir="rtl"] .display { font-size: clamp(38px, 6vw, 96px); }
html[dir="rtl"] .page-title, html[dir="rtl"] .contact h1 { font-size: clamp(48px, 8.4vw, 140px); }
html[dir="rtl"] .body, html[dir="rtl"] .prose p, html[dir="rtl"] .lead p, html[dir="rtl"] .why p, html[dir="rtl"] .final__text { line-height: 1.85; }
html[dir="rtl"] .kicker, html[dir="rtl"] .card__cat, html[dir="rtl"] .fact dt, html[dir="rtl"] .section > h2 { font-size: 13px; }
html[dir="rtl"] .pill { font-size: 14px; }
html[dir="rtl"] .card__idx { left: auto; right: 14px; }

/* portrait tablets and phones: the 3D sits in the upper part, text at the bottom */
@media (orientation: portrait) {
  .chapter--hero { top: auto; bottom: 16vh; left: var(--gutter); right: var(--gutter); transform: none; }
  .chapter--hero .display { font-size: clamp(38px, 8.4vw, 84px); }
}
/* narrow phones: logo + language on the first row, the four nav links on a second, full-width row
   (one row cannot hold them in English without squeezing the logo or pushing the button off-screen) */
.hud__brand { flex-shrink: 0; }
@media (max-width: 420px) {
  .hud { flex-wrap: wrap; row-gap: 10px; }
  .hud__right { display: contents; }
  .hud__brand { order: 1; }
  .hud .lang { order: 2; height: 36px; min-width: 36px; padding: 0 10px; }
  .hud .pill { order: 3; flex: 1 1 100%; justify-content: space-around; gap: 6px; padding: 10px 12px; }
  .hud .pill__line { display: none; }
  .hud::before { bottom: -70px; }
}
/* short phones: drop the hint's line so it never touches the hero title */
@media (orientation: portrait) and (max-height: 700px) {
  .scroll-hint::after { display: none; }
}

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .detail-body, .section { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .about__grid, .contact-sec__row { grid-template-columns: 1fr; }
  .av__frame { width: 92vw; }
  .av__hint { display: none; }
  .logos { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .hud { padding: 16px; }
  .pill { padding: 10px 16px; gap: 9px; font-size: 11px; }
  .pill__line { width: 12px; }
  .hud__right { gap: 6px; }
  .lang { height: 38px; min-width: 38px; padding: 0 10px; }
  .pill { gap: 7px; padding: 10px 13px; }
  .pill__line { width: 8px; }
  html[dir="rtl"] .pill { font-size: 13px; }
  .kicker { margin-bottom: 10px; font-size: 11px; }
  .title { font-size: 30px; }
  .body { font-size: 13.5px; margin-top: 12px; }
  .chapter { bottom: 9vh; }
  .chapter--final { bottom: 6vh; }
  .final__text { font-size: 16px; }
  html[dir="rtl"] .final__text { line-height: 1.75; }
  .btn-enter { margin-top: 20px; padding: 15px 22px; font-size: 12px; }
  .service-label { white-space: normal; width: 140px; text-align: center; font-size: 11px; }
  .service-label span { padding: 7px 10px; line-height: 1.4; }
  .client-card { bottom: 12px; padding: 18px; }
  .client-card__name { font-size: 22px; }
  .client-card__thumbs img, .client-card__thumbs canvas { width: 64px; height: 42px; }
  .av__head { top: 84px; }
  .av__name { font-size: 17px; margin: 6px 0 12px; }
  .av__frame { width: calc(100vw - 24px); }
  .av__close { top: 84px; }
  .av__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .av__itemTitle { font-size: 12px; }
  .about { padding: 12vh 16px 8vh; }
  .about__lead { font-size: 19px; }
  .contact-sec { padding: 10vh 16px 16px; }
  .contact-links a { grid-template-columns: minmax(0, 1fr) auto 18px; gap: 10px; padding: 15px 2px; }
  .contact-links__label { font-size: 19px; }
  .contact-links__handle { font-size: 12.5px; }
  .footer { gap: 10px; font-size: 11px; }
  .hud__wordmark { height: 15px; }
  .grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery figure { grid-column: auto !important; }
  .page-head { grid-template-columns: 1fr; }
  .page-meta { text-align: start; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .chapter--hero { right: 16px; left: 16px; top: auto; bottom: 22vh; transform: none; }
  .chapter { bottom: 12vh; }
  .intro__progress { display: none; }
  .detail-hero { height: 60vh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
