/* ==========================================================================
   ThirdSkin — main stylesheet
   Calm, architectural, warm-neutral. Light + dark. LTR + RTL.
   ========================================================================== */

/* Tokens ------------------------------------------------------------------ */
:root {
	--bg: #f2efe9;
	--bg-2: #e9e4db;
	--surface: #fbfaf7;
	--ink: #1b1a17;
	--ink-2: #4a4740;
	--muted: #7b766c;
	--line: rgba(27, 26, 23, .14);
	--accent: #8c7457;
	--on-media: #f6f3ee;
	--shade: rgba(14, 13, 11, .55);
	--curtain: #1b1a17;
	--map-filter: none;

	--font: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
	--font-ar: "IBM Plex Sans Arabic", "Inter Tight", Tahoma, sans-serif;

	--gutter: clamp(16px, 4vw, 56px);
	--max: 1600px;
	--header-h: 76px;
	--section: clamp(72px, 12vw, 180px);

	--ease: cubic-bezier(.2, .7, .1, 1);
	--ease-in-out: cubic-bezier(.7, 0, .2, 1);
	--dur: .9s;

	color-scheme: light;
}

:root[data-theme="dark"] {
	--bg: #121110;
	--bg-2: #1a1917;
	--surface: #1f1d1b;
	--ink: #ece8e1;
	--ink-2: #c3beb4;
	--muted: #8f897f;
	--line: rgba(236, 232, 225, .14);
	--accent: #c7ac87;
	--curtain: #ece8e1;
	--map-filter: none;
	color-scheme: dark;
}

/* Base -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-weight: 300;
	font-size: clamp(16px, 1.05vw, 18px);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	transition: background-color .6s var(--ease), color .6s var(--ease);
	overflow-x: clip;
}
html[lang="ar"] body { font-family: var(--font-ar); font-weight: 300; }
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

.tsc-skip { position: absolute; inset-inline-start: 16px; top: -100px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 16px; }
.tsc-skip:focus { top: 16px; }

.tsc-wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.tsc-section { padding-block: var(--section); position: relative; }
.tsc-section--tight { padding-block: clamp(40px, 6vw, 96px); }

/* Type -------------------------------------------------------------------- */
.tsc-kicker {
	font-size: .75rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--muted);
	font-weight: 400;
	margin-bottom: 1.6em;
	display: flex;
	align-items: center;
	gap: .9em;
}
.tsc-kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
html[lang="ar"] .tsc-kicker { letter-spacing: 0; font-size: .9rem; }

.tsc-display {
	font-size: clamp(2.6rem, 8.2vw, 8.5rem);
	font-weight: 300;
	line-height: .98;
	letter-spacing: -.035em;
}
html[lang="ar"] .tsc-display { letter-spacing: 0; line-height: 1.2; }
.tsc-h2 { font-size: clamp(1.9rem, 3.6vw, 3.6rem); font-weight: 300; line-height: 1.08; letter-spacing: -.025em; }
.tsc-h2 em { font-style: normal; color: var(--muted); }
.tsc-h3 { font-size: clamp(1.4rem, 2.2vw, 2.1rem); font-weight: 300; line-height: 1.2; letter-spacing: -.015em; }
html[lang="ar"] :is(.tsc-h2, .tsc-h3) { letter-spacing: 0; line-height: 1.35; }
.tsc-statement { font-size: clamp(1.7rem, 3.4vw, 3.4rem); font-weight: 300; line-height: 1.15; letter-spacing: -.02em; max-width: 22ch; }
html[lang="ar"] .tsc-statement { letter-spacing: 0; line-height: 1.45; }
.tsc-lead { color: var(--ink-2); max-width: 58ch; margin-top: 1.6em; }
.tsc-lead--big { font-size: clamp(1.15rem, 1.6vw, 1.5rem); line-height: 1.55; color: var(--ink); margin-top: 0; max-width: 46ch; }
.tsc-lead p + p { margin-top: 1em; }

.tsc-line { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.tsc-line > span { display: inline-block; }

/* Links & buttons --------------------------------------------------------- */
.tsc-link { background: linear-gradient(currentColor, currentColor) no-repeat 100% 100% / 0 1px; transition: background-size .5s var(--ease); padding-bottom: 2px; }
.tsc-link:hover { background-size: 100% 1px; background-position: 0 100%; }
html[dir="rtl"] .tsc-link { background-position: 0 100%; }
html[dir="rtl"] .tsc-link:hover { background-position: 100% 100%; }

.tsc-btn {
	--pad: 1.05em 1.6em;
	display: inline-flex; align-items: center; gap: .8em;
	padding: var(--pad);
	border-radius: 999px;
	font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 400;
	position: relative; overflow: hidden; isolation: isolate;
	transition: color .5s var(--ease), border-color .5s var(--ease), transform .4s var(--ease);
	margin-top: 2.2rem;
}
html[lang="ar"] .tsc-btn { letter-spacing: 0; font-size: .95rem; }
.tsc-btn::before {
	content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
	background: var(--ink); transform: translateY(101%); transition: transform .55s var(--ease);
}
.tsc-btn:hover::before, .tsc-btn:focus-visible::before { transform: translateY(0); }
.tsc-btn:hover, .tsc-btn:focus-visible { color: var(--bg); }
.tsc-btn--line { border: 1px solid var(--line); }
.tsc-btn--solid { background: var(--ink); color: var(--bg); }
.tsc-btn--solid::before { background: var(--accent); }
.tsc-btn--solid:hover { color: var(--bg); }
.tsc-btn--glass { color: var(--on-media); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(8px); background: rgba(255,255,255,.06); }
.tsc-btn--glass::before { background: var(--on-media); }
.tsc-btn--glass:hover { color: #121110; }
.tsc-btn--small { --pad: .7em 1.1em; font-size: .72rem; margin-top: 0; }
.tsc-btn__arrow { transition: transform .5s var(--ease); display: inline-block; }
.tsc-btn:hover .tsc-btn__arrow { transform: translateX(4px); }
html[dir="rtl"] .tsc-btn__arrow { transform: scaleX(-1); }
html[dir="rtl"] .tsc-btn:hover .tsc-btn__arrow { transform: scaleX(-1) translateX(4px); }
.tsc-btn__icon { font-size: .7em; }

/* Header ------------------------------------------------------------------ */
.tsc-header {
	position: fixed; inset: 0 0 auto; z-index: 50;
	height: var(--header-h);
	color: var(--ink);
	transition: transform .6s var(--ease), background-color .5s var(--ease), color .5s var(--ease);
}
.tsc-header::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--line); opacity: 0; transition: opacity .5s; }
.tsc-header.is-scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px) saturate(1.2); }
.tsc-header.is-scrolled::after { opacity: 1; }
.tsc-header.is-hidden { transform: translateY(-100%); }
.has-hero-media .tsc-header:not(.is-scrolled) { color: var(--on-media); }
.tsc-header__inner { height: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: 2rem; }

.tsc-logo { display: block; flex: none; }
.tsc-logo__mark {
	display: block; width: 112px; aspect-ratio: 843 / 578;
	background: currentColor;
	-webkit-mask: var(--logo) center / contain no-repeat;
	mask: var(--logo) center / contain no-repeat;
	transition: opacity .3s;
}
.tsc-header .tsc-logo__mark { width: 78px; }
.tsc-logo:hover .tsc-logo__mark { opacity: .7; }

.tsc-nav { margin-inline-start: auto; }
.tsc-nav > ul { display: flex; gap: clamp(1.2rem, 2.4vw, 2.6rem); }
.tsc-nav li { position: relative; }
.tsc-nav__link { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 400; padding-block: .6em; position: relative; display: inline-block; }
html[lang="ar"] .tsc-nav__link { letter-spacing: 0; font-size: .95rem; }
.tsc-nav__link::after { content: ""; position: absolute; inset-inline: 0; bottom: .25em; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.tsc-nav li:hover > .tsc-nav__link::after, .tsc-nav .is-current > .tsc-nav__link::after { transform: scaleX(1); transform-origin: left; }
html[dir="rtl"] .tsc-nav__link::after { transform-origin: left; }
html[dir="rtl"] .tsc-nav li:hover > .tsc-nav__link::after { transform-origin: right; }
.tsc-nav__sub {
	position: absolute; top: 100%; inset-inline-start: -1.2rem; min-width: 260px;
	padding: .8rem 0; background: var(--surface); color: var(--ink);
	border: 1px solid var(--line);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s;
}
.tsc-nav .has-sub:hover .tsc-nav__sub, .tsc-nav .has-sub:focus-within .tsc-nav__sub, .tsc-nav .has-sub.is-open .tsc-nav__sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.tsc-nav__sub a { display: block; padding: .55rem 1.2rem; font-size: .92rem; transition: padding .4s var(--ease), color .3s; }
.tsc-nav__sub a:hover { padding-inline-start: 1.6rem; color: var(--accent); }

.tsc-header__tools { display: flex; align-items: center; gap: 1.1rem; }
.tsc-lang { font-size: .9rem; padding: .3em .2em; opacity: .85; transition: opacity .3s; }
.tsc-lang:hover { opacity: 1; }
.tsc-lang[lang="ar"] { font-family: var(--font-ar); }
.tsc-lang[lang="en"] { font-family: var(--font); }

.tsc-theme { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid currentColor; opacity: .85; transition: opacity .3s, transform .6s var(--ease); }
.tsc-theme:hover { opacity: 1; transform: rotate(25deg); }
.tsc-theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; overflow: visible; }
.tsc-theme__sun { transition: transform .6s var(--ease), opacity .4s; transform-origin: center; }
.tsc-theme__rays { transition: transform .6s var(--ease), opacity .4s; transform-origin: 12px 12px; }
.tsc-theme__moon { fill: currentColor; stroke: none; opacity: 0; transform: scale(.4) rotate(-60deg); transform-origin: 12px 12px; transition: transform .6s var(--ease), opacity .4s; }
[data-theme="dark"] .tsc-theme__sun, [data-theme="dark"] .tsc-theme__rays { opacity: 0; transform: scale(.4); }
[data-theme="dark"] .tsc-theme__moon { opacity: 1; transform: none; }

.tsc-burger { display: none; align-items: center; gap: .7rem; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.tsc-burger__lines { width: 26px; height: 10px; position: relative; }
.tsc-burger__lines span { position: absolute; inset-inline: 0; height: 1px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.tsc-burger__lines span:first-child { top: 0; }
.tsc-burger__lines span:last-child { top: 9px; }
.menu-open .tsc-burger__lines span:first-child { top: 4.5px; transform: rotate(45deg); }
.menu-open .tsc-burger__lines span:last-child { top: 4.5px; transform: rotate(-45deg); }

/* Full-screen menu (mobile) */
.tsc-menu {
	position: fixed; inset: 0; z-index: 45; background: var(--bg); color: var(--ink);
	display: flex; padding: calc(var(--header-h) + 4vh) var(--gutter) 32px;
	clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-in-out);
	overflow-y: auto;
}
.tsc-menu[hidden] { display: flex; visibility: hidden; }
.menu-open .tsc-menu { clip-path: inset(0); visibility: visible; }
.menu-open .tsc-header { color: var(--ink) !important; background: transparent !important; }
.tsc-menu__inner { display: flex; flex-direction: column; justify-content: space-between; width: 100%; gap: 3rem; }
.tsc-menu__list a { display: flex; align-items: baseline; gap: 1rem; font-size: clamp(2rem, 9vw, 3.4rem); line-height: 1.15; font-weight: 300; letter-spacing: -.02em; padding-block: .1em; }
.tsc-menu__list li { overflow: hidden; }
.tsc-menu__list li a { transform: translateY(110%); transition: transform .8s var(--ease); transition-delay: calc(var(--i) * 50ms + .2s); }
.menu-open .tsc-menu__list li a { transform: none; }
.tsc-menu__num { font-size: .8rem; color: var(--muted); letter-spacing: .1em; }
.tsc-menu__foot { color: var(--muted); font-size: .9rem; display: grid; gap: 1rem; }

/* Page transition curtain -------------------------------------------------- */
.tsc-curtain {
	position: fixed; inset: 0; z-index: 100; pointer-events: none;
	background: var(--curtain); display: grid; place-items: center;
	transform: translateY(100%);
}
.tsc-curtain__mark { width: 64px; height: 64px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--bg) 40%, transparent); border-top-color: var(--bg); opacity: 0; }
.is-leaving .tsc-curtain { transform: translateY(0); transition: transform .65s var(--ease-in-out); pointer-events: all; }
.is-leaving .tsc-curtain__mark { opacity: 1; animation: tsc-spin 1s linear infinite; transition: opacity .3s .5s; }
.is-entering .tsc-curtain { transform: translateY(0); }
.is-entered .tsc-curtain { transform: translateY(-100%); transition: transform .8s var(--ease-in-out); }
@keyframes tsc-spin { to { transform: rotate(360deg); } }

/* Native cross-document view transitions where supported (Chrome, Edge, Safari 18+) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: tsc-vt-out .5s var(--ease-in-out) both; }
::view-transition-new(root) { animation: tsc-vt-in .7s var(--ease) both; }
@keyframes tsc-vt-out { to { opacity: 0; transform: translateY(-24px); } }
@keyframes tsc-vt-in { from { opacity: 0; transform: translateY(32px); } }
::view-transition-group(*) { animation-duration: .7s; animation-timing-function: var(--ease); }

/* Custom cursor ------------------------------------------------------------ */
.tsc-cursor {
	position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none;
	width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%;
	background: var(--ink); color: var(--bg);
	display: grid; place-items: center;
	transform: translate3d(var(--x, -200px), var(--y, -200px), 0) scale(0);
	transition: transform .45s var(--ease), opacity .3s;
	font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
	mix-blend-mode: normal;
}
.tsc-cursor.is-on { transform: translate3d(var(--x), var(--y), 0) scale(1); }
.tsc-cursor.is-moving { transition: transform .45s var(--ease), opacity .3s; }
@media (hover: none), (pointer: coarse) { .tsc-cursor { display: none; } }

/* Reveal animations --------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(18% 0 0 0); transition: clip-path 1.4s var(--ease); transition-delay: calc(var(--d, 0) * 120ms); }
.js [data-reveal="clip"] > * { transform: scale(1.12); transition: transform 1.8s var(--ease); transition-delay: inherit; }
.js [data-reveal="clip"].is-in { clip-path: inset(0); }
.js [data-reveal="clip"].is-in > * { transform: none; }
.js [data-reveal="lines"] { opacity: 1; transform: none; }
.js [data-reveal="lines"] .tsc-line > span { transform: translateY(105%); transition: transform 1.2s var(--ease); transition-delay: calc(var(--i, 0) * 90ms + 100ms); }
.js [data-reveal="lines"].is-in .tsc-line > span { transform: none; }
.js [data-reveal="words"] { opacity: 1; transform: none; }
.js [data-reveal="words"] .tsc-w { display: inline; opacity: .12; transition: opacity .8s var(--ease); transition-delay: calc(var(--w) * 22ms); }
.js [data-reveal="words"].is-in .tsc-w { opacity: 1; }

/* Hero (text pages) --------------------------------------------------------- */
.tsc-hero--text { padding-top: calc(var(--header-h) + clamp(64px, 12vw, 180px)); padding-bottom: clamp(48px, 7vw, 110px); }
.tsc-hero__lead { max-width: 64ch; margin-top: clamp(2rem, 4vw, 3.5rem); font-size: clamp(1.05rem, 1.3vw, 1.25rem); }
.tsc-band { height: clamp(320px, 70vh, 820px); overflow: hidden; }
.tsc-band img { width: 100%; height: 120%; object-fit: cover; }

/* Generic layouts ------------------------------------------------------------- */
.tsc-head { margin-bottom: clamp(40px, 5vw, 80px); }
.tsc-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.tsc-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 120px); align-items: start; }

/* Showcase (home) -------------------------------------------------------------- */
.has-hero-media { --header-fg: var(--on-media); }
.tsc-showcase { position: relative; height: 100svh; min-height: 560px; color: var(--on-media); background: #0e0d0b; overflow: hidden; }
.tsc-showcase__slides, .tsc-slide { position: absolute; inset: 0; }
.tsc-slide { visibility: hidden; z-index: 0; }
.tsc-slide.is-active { visibility: visible; z-index: 2; }
.tsc-slide.is-leaving { visibility: visible; z-index: 1; }
.tsc-slide__media { position: absolute; inset: 0; clip-path: inset(0 0 0 100%); transition: clip-path 1.4s var(--ease-in-out); }
html[dir="rtl"] .tsc-slide__media { clip-path: inset(0 100% 0 0); }
.tsc-slide.is-active .tsc-slide__media, .tsc-slide.is-leaving .tsc-slide__media { clip-path: inset(0); }
.tsc-slide.is-first .tsc-slide__media { transition: none; }
.tsc-slide__media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); transition: transform 7s cubic-bezier(.2, .5, .3, 1); }
.tsc-slide.is-active .tsc-slide__media > * { transform: scale(1.02); }
.tsc-slide__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.05) 55%, rgba(0,0,0,.6) 100%), linear-gradient(90deg, rgba(0,0,0,.38) 0%, rgba(0,0,0,0) 60%); pointer-events: none; }
html[dir="rtl"] .tsc-slide__media::after { background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.05) 55%, rgba(0,0,0,.6) 100%), linear-gradient(270deg, rgba(0,0,0,.38) 0%, rgba(0,0,0,0) 60%); }
.tsc-slide__content { position: absolute; inset: auto 0 clamp(110px, 16vh, 170px); z-index: 2; }
.tsc-slide__title { display: flex; align-items: center; gap: 1rem; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; opacity: 0; transform: translateY(10px); transition: opacity .8s .5s var(--ease), transform .8s .5s var(--ease); }
html[lang="ar"] .tsc-slide__title { letter-spacing: 0; font-size: .95rem; }
.tsc-slide__index { font-variant-numeric: tabular-nums; opacity: .7; }
.tsc-slide__kicker { font-size: clamp(2.8rem, 8.6vw, 9rem); font-weight: 300; line-height: .98; letter-spacing: -.04em; margin-top: .3em; max-width: 12ch; }
html[lang="ar"] .tsc-slide__kicker { letter-spacing: 0; line-height: 1.2; }
.tsc-slide__kicker .tsc-line { margin-inline-end: .22em; }
.tsc-slide__kicker .tsc-line > span { transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 70ms + .45s); }
.tsc-slide.is-active .tsc-slide__kicker .tsc-line > span { transform: none; }
.tsc-slide.is-active .tsc-slide__title { opacity: 1; transform: none; }
.tsc-slide .tsc-btn { opacity: 0; transform: translateY(14px); transition: opacity .8s .9s var(--ease), transform .8s .9s var(--ease), color .5s var(--ease); }
.tsc-slide.is-active .tsc-btn { opacity: 1; transform: none; }

.tsc-showcase__ui { position: absolute; inset: auto 0 clamp(28px, 5vh, 48px); z-index: 3; display: flex; align-items: center; gap: 2rem; }
.tsc-showcase__progress { display: flex; gap: 8px; flex: 1; max-width: 520px; }
.tsc-showcase__dot { flex: 1; height: 24px; position: relative; }
.tsc-showcase__dot::before, .tsc-showcase__dot span { content: ""; position: absolute; inset-inline: 0; top: 50%; height: 2px; background: rgba(255,255,255,.28); }
.tsc-showcase__dot span { background: var(--on-media); transform: scaleX(0); transform-origin: left; }
html[dir="rtl"] .tsc-showcase__dot span { transform-origin: right; }
.tsc-showcase__dot.is-done span { transform: scaleX(1); }
.tsc-showcase__dot.is-active span { animation: tsc-progress var(--slide-time, 7s) linear forwards; }
.is-paused .tsc-showcase__dot.is-active span { animation-play-state: paused; }
@keyframes tsc-progress { to { transform: scaleX(1); } }
.tsc-showcase__count { font-variant-numeric: tabular-nums; font-size: .85rem; letter-spacing: .1em; }
.tsc-showcase__arrows { display: flex; gap: 8px; margin-inline-start: auto; }
.tsc-showcase__arrows button, .tsc-rail-nav button, .tsc-slider__nav button {
	width: 52px; height: 52px; border-radius: 50%; border: 1px solid currentColor; opacity: .75;
	transition: opacity .3s, background-color .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.tsc-showcase__arrows button:hover { opacity: 1; background: var(--on-media); color: #111; border-color: var(--on-media); }
html[dir="rtl"] :is(.tsc-showcase__arrows, .tsc-rail-nav, .tsc-slider__nav) button { transform: scaleX(-1); }
.tsc-showcase__scroll { position: absolute; inset-inline-end: var(--gutter); bottom: 50%; z-index: 3; writing-mode: vertical-rl; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; display: flex; align-items: center; gap: 1rem; opacity: .8; }
.tsc-showcase__scroll::after { content: ""; width: 1px; height: 56px; background: currentColor; animation: tsc-scrollcue 2.2s var(--ease-in-out) infinite; transform-origin: top; }
@keyframes tsc-scrollcue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Looping videos ------------------------------------------------------------- */
.tsc-loop { position: relative; overflow: hidden; background: var(--bg-2); }
.tsc-loop > img, .tsc-loop > video, .tsc-loop > iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.tsc-loop > iframe { pointer-events: none; width: 177.78%; height: 177.78%; inset: auto; top: 50%; left: 50%; transform: translate(-50%, -50%); min-width: 100%; min-height: 100%; aspect-ratio: 16/9; height: auto; }
.tsc-loop > video, .tsc-loop > iframe { opacity: 0; transition: opacity .8s var(--ease); }
.tsc-loop.is-playing > video, .tsc-loop.is-playing > iframe { opacity: 1; }
.tsc-loop.is-playing > img { opacity: 0; transition: opacity .8s .2s; }
.tsc-loop--cover { position: absolute !important; inset: 0; }

/* Intro + services (home) ----------------------------------------------------- */
.tsc-intro__grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(24px, 4vw, 64px); }
.tsc-services { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(80px, 10vw, 160px); border-top: 1px solid var(--line); }
.tsc-service { border-inline-end: 1px solid var(--line); }
.tsc-service:last-child { border-inline-end: 0; }
.tsc-service a { display: flex; flex-direction: column; gap: 1.2rem; padding: clamp(28px, 3vw, 48px) clamp(20px, 2.4vw, 40px) clamp(32px, 4vw, 64px); min-height: 100%; position: relative; overflow: hidden; isolation: isolate; }
.tsc-service__num { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tsc-service__title { font-size: clamp(1.4rem, 2vw, 2rem); font-weight: 300; line-height: 1.15; }
.tsc-service__text { color: var(--ink-2); font-size: .95rem; max-width: 38ch; transition: color .5s; }
.tsc-service__arrow { margin-top: auto; font-size: 1.4rem; transition: transform .6s var(--ease); }
html[dir="rtl"] .tsc-service__arrow { transform: scaleX(-1); }
.tsc-service__peek { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .7s var(--ease); }
.tsc-service__peek img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 1.6s var(--ease); }
.tsc-service__peek::after { content: ""; position: absolute; inset: 0; background: var(--shade); }
.tsc-service a:hover { color: var(--on-media); }
.tsc-service a:hover .tsc-service__text, .tsc-service a:hover .tsc-service__num { color: rgba(246, 243, 238, .82); }
.tsc-service a:hover .tsc-service__peek { opacity: 1; }
.tsc-service a:hover .tsc-service__peek img { transform: scale(1); }
.tsc-service a:hover .tsc-service__arrow { transform: translateX(10px); }
html[dir="rtl"] .tsc-service a:hover .tsc-service__arrow { transform: scaleX(-1) translateX(10px); }

/* Cards ------------------------------------------------------------------------- */
.tsc-card__media { display: block; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); }
.tsc-card__media > img, .tsc-card__media > .tsc-loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter .8s; }
.tsc-card:hover .tsc-card__media > * { transform: scale(1.045); }
.tsc-card__body { padding-top: 1.1rem; }
.tsc-card__title { font-size: clamp(1.1rem, 1.4vw, 1.4rem); font-weight: 400; line-height: 1.25; }
.tsc-card__meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; color: var(--muted); font-size: .85rem; margin-top: .35rem; }
.tsc-card__film { display: inline-flex; gap: .5em; margin-top: .8rem; font-size: .85rem; }
.tsc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 56px) clamp(16px, 2vw, 32px); margin-top: clamp(48px, 6vw, 96px); }
.tsc-grid > :nth-child(3n+2) { margin-top: clamp(0px, 6vw, 96px); }

/* Latest projects rail ---------------------------------------------------------- */
.tsc-rail {
	display: grid; grid-auto-flow: column; grid-auto-columns: clamp(260px, 30vw, 460px); gap: clamp(16px, 2vw, 32px);
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
	padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
	scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
	cursor: grab;
}
.tsc-rail::-webkit-scrollbar { display: none; }
.tsc-rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.tsc-rail.is-dragging a { pointer-events: none; }
.tsc-rail > * { scroll-snap-align: start; }
.tsc-rail__more { display: grid; place-content: center; gap: 1rem; text-align: center; aspect-ratio: 4 / 5; border: 1px solid var(--line); font-size: 1.3rem; font-weight: 300; transition: background-color .5s var(--ease), color .5s var(--ease); }
.tsc-rail__more:hover { background: var(--ink); color: var(--bg); }
.tsc-rail-nav { display: flex; gap: 8px; }
.tsc-rail-nav button:hover, .tsc-slider__nav button:hover { opacity: 1; background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* About (home) ----------------------------------------------------------------- */
.tsc-about { background: var(--bg-2); }
.tsc-about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 140px); align-items: center; }
.tsc-about__media { position: relative; min-height: clamp(420px, 52vw, 760px); }
.tsc-about__img { position: absolute; overflow: hidden; }
.tsc-about__img img { width: 100%; height: 100%; object-fit: cover; }
.tsc-about__img--0 { inset: 0 28% 18% 0; }
.tsc-about__img--1 { inset: 42% 0 0 46%; box-shadow: 0 30px 80px -30px rgba(0,0,0,.4); }
html[dir="rtl"] .tsc-about__img--0 { inset: 0 0 18% 28%; }
html[dir="rtl"] .tsc-about__img--1 { inset: 42% 46% 0 0; }
.tsc-about__years { position: absolute; inset-inline-start: 0; bottom: 0; background: var(--bg); padding: 1.4rem 1.8rem; display: grid; gap: .2rem; }
.tsc-about__num { font-size: clamp(3rem, 6vw, 5.5rem); line-height: 1; font-weight: 300; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.tsc-ticks { margin-top: 2rem; display: grid; gap: .9rem; }
.tsc-ticks li { display: grid; grid-template-columns: 22px 1fr; gap: .8rem; color: var(--ink-2); padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.tsc-ticks li::before { content: "+"; color: var(--accent); }

/* Map --------------------------------------------------------------------------- */
.tsc-mapsec__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.tsc-mapsec__count { margin-top: 1.4rem; color: var(--muted); }
.tsc-mapsec__count span { display: block; font-size: clamp(3.4rem, 7vw, 6rem); line-height: 1; color: var(--ink); font-weight: 300; letter-spacing: -.04em; }
.tsc-map svg { width: 100%; height: auto; overflow: hidden; display: block; }
.tsc-map__land { fill: var(--bg-2); stroke: var(--line); stroke-width: 1; }
.tsc-map__egypt { fill: color-mix(in srgb, var(--ink) 9%, var(--bg)); stroke: color-mix(in srgb, var(--ink) 35%, transparent); stroke-width: 1.2; }
.tsc-map__place { font-size: 15px; fill: var(--muted); text-anchor: middle; pointer-events: none; }
.tsc-map__place--sea { font-style: italic; letter-spacing: .15em; font-size: 14px; text-transform: uppercase; opacity: .8; }
html[lang="ar"] .tsc-map__place--sea { letter-spacing: 0; font-style: normal; font-size: 17px; }
.tsc-map__place--city { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.tsc-map__dot { fill: var(--accent); stroke: var(--bg); stroke-width: 2; transition: r .4s var(--ease); }
.tsc-map__halo { fill: var(--accent); opacity: 0; transform-origin: center; }
.tsc-map.is-in .tsc-map__halo { animation: tsc-ping 3.2s var(--ease) infinite; animation-delay: calc(var(--d) * 140ms); }
@keyframes tsc-ping { 0% { opacity: .35; transform: scale(.2); } 70%, 100% { opacity: 0; transform: scale(1.4); } }
.tsc-map__label { font-size: 17px; fill: var(--ink); paint-order: stroke; stroke: var(--bg); stroke-width: 6px; stroke-linejoin: round; opacity: 0; transition: opacity .3s; pointer-events: none; }
html[dir="rtl"] .tsc-map__label { text-anchor: end; }
.tsc-map__pin { cursor: pointer; }
.tsc-map__pin:hover .tsc-map__label, .tsc-map__pin:focus .tsc-map__label { opacity: 1; }
.tsc-map__pin:hover .tsc-map__dot, .tsc-map__pin:focus .tsc-map__dot { r: 8; }
.tsc-map__pin:hover, .tsc-map__pin:focus { outline: none; }
.tsc-map svg:has(.tsc-map__pin:hover) .tsc-map__pin:not(:hover) .tsc-map__dot { opacity: .45; }

/* Testimonials ------------------------------------------------------------------- */
.tsc-quotes__stage { display: grid; margin-top: 1rem; }
.tsc-quote { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility 0s .8s; }
.tsc-quote.is-active { opacity: 1; visibility: visible; transition-delay: .3s, 0s; }
.tsc-quote blockquote { margin: 0; font-size: clamp(1.4rem, 2.8vw, 2.7rem); line-height: 1.3; font-weight: 300; letter-spacing: -.015em; max-width: 36ch; }
html[lang="ar"] .tsc-quote blockquote { letter-spacing: 0; line-height: 1.6; }
.tsc-quote blockquote p::before { content: "“"; color: var(--accent); }
.tsc-quote blockquote p::after { content: "”"; color: var(--accent); }
html[lang="ar"] .tsc-quote blockquote p::before { content: "«"; }
html[lang="ar"] .tsc-quote blockquote p::after { content: "»"; }
.tsc-quote figcaption { margin-top: 2rem; display: grid; gap: .2rem; }
.tsc-quote figcaption strong { font-weight: 400; }
.tsc-quote figcaption span { color: var(--muted); font-size: .9rem; }
.tsc-quotes__nav { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 1.4rem; }
.tsc-quotes__nav button { color: var(--muted); font-size: .9rem; position: relative; padding-block: .3em; transition: color .3s; }
.tsc-quotes__nav button.is-active, .tsc-quotes__nav button:hover { color: var(--ink); }
.tsc-quotes__nav button.is-active::after { content: ""; position: absolute; inset-inline: 0; top: calc(-1.4rem - 1px); height: 1px; background: var(--ink); }

/* Client logo marquee --------------------------------------------------------------- */
/* Many of the logos were made for dark backgrounds (white lettering), so this band stays dark in both themes. */
.tsc-clients { padding-block: var(--section) calc(var(--section) * .7); background: #161513; color: #ece8e1; }
.tsc-clients .tsc-kicker { color: #8f897f; }
.tsc-marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.tsc-marquee__track { display: flex; width: max-content; animation: tsc-marquee 45s linear infinite; }
.tsc-marquee:hover .tsc-marquee__track { animation-play-state: paused; }
html[dir="rtl"] .tsc-marquee__track { animation-direction: reverse; }
.tsc-marquee__list { display: flex; align-items: center; gap: clamp(48px, 6vw, 104px); padding-inline-end: clamp(48px, 6vw, 104px); }
.tsc-marquee__list img { height: clamp(52px, 6vw, 88px); width: auto; max-width: 220px; object-fit: contain; filter: grayscale(.35); opacity: .82; transition: opacity .4s, filter .4s, transform .6s var(--ease); }
.tsc-marquee__list img:hover { opacity: 1; filter: none; transform: scale(1.06); }
@keyframes tsc-marquee { to { transform: translateX(-50%); } }

/* CTA ---------------------------------------------------------------------------- */
.tsc-cta { padding-block: var(--section); border-top: 1px solid var(--line); overflow: hidden; }
.tsc-cta__link { display: block; font-size: clamp(3rem, 11vw, 11.5rem); line-height: .95; font-weight: 300; letter-spacing: -.045em; }
html[lang="ar"] .tsc-cta__link { letter-spacing: 0; line-height: 1.25; }
.tsc-cta__line { display: block; overflow: hidden; }
.tsc-cta__line > span { display: inline-block; transition: transform 1s var(--ease); }
.tsc-cta__line--accent { color: var(--muted); }
.tsc-cta__link:hover .tsc-cta__line > span { transform: translateX(3vw); }
html[dir="rtl"] .tsc-cta__link:hover .tsc-cta__line > span { transform: translateX(-3vw); }
.tsc-cta__link:hover .tsc-cta__line--accent > span { transform: translateX(6vw); color: var(--ink); transition: transform 1s var(--ease), color .6s; }
html[dir="rtl"] .tsc-cta__link:hover .tsc-cta__line--accent > span { transform: translateX(-6vw); }
.tsc-cta__foot { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-top: 2.5rem; color: var(--ink-2); }
.tsc-cta__foot .tsc-btn { margin-top: 0; }

/* Portfolio ------------------------------------------------------------------------- */
.tsc-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.tsc-filters button { padding: .6em 1.1em; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s; }
.tsc-filters button sup { color: var(--muted); font-size: .65em; margin-inline-start: .2em; }
.tsc-filters button:hover { border-color: var(--ink); }
.tsc-filters button.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tsc-filters button.is-active sup { color: inherit; opacity: .6; }

.tsc-works { display: grid; gap: clamp(72px, 10vw, 160px); }
.tsc-work { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(20px, 3vw, 56px); align-items: start; transition: opacity .5s var(--ease); }
.tsc-work.is-hidden { display: none; }
.tsc-work__head { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: .6rem; padding-top: .4rem; border-top: 1px solid var(--line); }
.tsc-work__num { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 1rem; }
.tsc-work__title { font-size: clamp(1.5rem, 2.4vw, 2.4rem); font-weight: 300; line-height: 1.1; letter-spacing: -.02em; }
html[lang="ar"] .tsc-work__title { letter-spacing: 0; line-height: 1.35; }
.tsc-work__title a { transition: color .3s; }
.tsc-work__title a:hover { color: var(--accent); }
.tsc-work__client { color: var(--ink-2); font-size: .95rem; }
.tsc-work__client span { color: var(--muted); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; display: block; }
html[lang="ar"] .tsc-work__client span { letter-spacing: 0; font-size: .85rem; }
.tsc-work__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: 1rem; font-size: .9rem; }
.tsc-work__media { display: grid; gap: clamp(8px, 1vw, 16px); grid-template-columns: repeat(6, 1fr); }
.tsc-work__clip { position: relative; display: block; overflow: hidden; background: var(--bg-2); }
.tsc-work__clip > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.tsc-work__clip:hover > * { transform: scale(1.04); }
.tsc-work--trio .tsc-work__clip:nth-child(1) { grid-column: span 6; aspect-ratio: 16 / 8; }
.tsc-work--trio .tsc-work__clip:nth-child(2), .tsc-work--trio .tsc-work__clip:nth-child(3) { grid-column: span 3; aspect-ratio: 16 / 10; }
.tsc-work--duo .tsc-work__clip:nth-child(1) { grid-column: span 4; aspect-ratio: 4 / 3; }
.tsc-work--duo .tsc-work__clip:nth-child(2) { grid-column: span 2; aspect-ratio: auto; }
.tsc-work--duo:nth-child(even) .tsc-work__clip:nth-child(1) { grid-column: 3 / span 4; grid-row: 1; }
.tsc-work--duo:nth-child(even) .tsc-work__clip:nth-child(2) { grid-column: 1 / span 2; grid-row: 1; }
.tsc-work--still .tsc-work__clip { grid-column: span 6; aspect-ratio: 16 / 9; }

/* Project page ------------------------------------------------------------------------- */
.tsc-project__hero { position: relative; height: 100svh; min-height: 520px; color: var(--on-media); overflow: hidden; background: #0e0d0b; }
.tsc-project__media { position: absolute; inset: 0; }
.tsc-project__media > img { width: 100%; height: 115%; object-fit: cover; }
.tsc-project__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 30%, transparent 50%, rgba(0,0,0,.6)); pointer-events: none; }
.tsc-project__title { position: absolute; inset: auto 0 clamp(40px, 8vh, 96px); z-index: 2; }
.tsc-project__title .tsc-kicker { color: rgba(246,243,238,.8); }
.tsc-project__title .tsc-display { font-size: clamp(2.6rem, 7.4vw, 7.6rem); max-width: 16ch; }
.tsc-facts { display: grid; gap: 1.4rem; }
.tsc-facts div { padding-top: 1rem; border-top: 1px solid var(--line); }
.tsc-facts dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .tsc-facts dt { letter-spacing: 0; font-size: .85rem; }
.tsc-facts dd { margin-top: .3rem; font-size: 1.05rem; }
.tsc-clips { display: grid; gap: clamp(8px, 1vw, 16px); }
.tsc-clips--2 { grid-template-columns: 1fr 1fr; }
.tsc-clips--3 { grid-template-columns: 2fr 1fr 1fr; }
.tsc-clips__item { aspect-ratio: 16 / 10; position: relative; overflow: hidden; }
.tsc-clips--1 .tsc-clips__item { aspect-ratio: 21 / 9; }
.tsc-clips__item > .tsc-loop { position: absolute; inset: 0; }

.tsc-slider { position: relative; }
.tsc-slider__track {
	display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 1200px); gap: clamp(12px, 1.6vw, 24px);
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab;
	padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
	scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
.tsc-slider__track::-webkit-scrollbar { display: none; }
.tsc-slider__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.tsc-slider__slide { scroll-snap-align: start; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.tsc-slider__slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .8s; }
.tsc-slider__slide:not(.is-current) img { opacity: .55; transform: scale(.97); }
.tsc-slider__nav { display: flex; align-items: center; gap: 1rem; margin-top: 1.4rem; }
.tsc-slider__bar { flex: 1; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.tsc-slider__bar span { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .4s var(--ease); }
html[dir="rtl"] .tsc-slider__bar span { transform-origin: right; }
.tsc-gallery-sec__count { font-variant-numeric: tabular-nums; color: var(--muted); }

.tsc-next { display: block; position: relative; height: clamp(360px, 70vh, 760px); overflow: hidden; color: var(--on-media); background: #0e0d0b; }
.tsc-next__img { position: absolute; inset: 0; }
.tsc-next__img img { width: 100%; height: 100%; object-fit: cover; opacity: .6; transform: scale(1.08); transition: transform 1.8s var(--ease), opacity 1s; }
.tsc-next:hover .tsc-next__img img { transform: scale(1); opacity: .8; }
.tsc-next__text { position: absolute; inset: auto 0 clamp(40px, 8vh, 96px); }
.tsc-next__text .tsc-kicker { color: rgba(246,243,238,.8); }
.tsc-next__title { display: block; font-size: clamp(2.4rem, 7vw, 7rem); line-height: 1; font-weight: 300; letter-spacing: -.035em; }
html[lang="ar"] .tsc-next__title { letter-spacing: 0; line-height: 1.25; }

/* Services: showreel ---------------------------------------------------------------------- */
.tsc-reel { position: relative; height: clamp(320px, 72vh, 820px); overflow: hidden; background: #0e0d0b; display: grid; place-items: center; }
.tsc-reel > img { position: absolute; inset: 0; width: 100%; height: 120%; object-fit: cover; opacity: .75; }
.tsc-reel__play { position: relative; z-index: 1; width: clamp(120px, 14vw, 180px); aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; justify-items: center; gap: .4rem; color: #121110; background: var(--on-media); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; text-align: center; transition: transform .6s var(--ease); }
.tsc-reel__play:hover { transform: scale(1.08); }
.tsc-reel__play .tsc-btn__icon { font-size: 1.3rem; }

/* Contact ------------------------------------------------------------------------------- */
.tsc-contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 140px); }
.tsc-contact__info { display: grid; gap: 1.4rem; align-content: start; color: var(--ink-2); }
.tsc-contact__info .tsc-lead { margin-top: 0; }
.tsc-contact__form .tsc-h3 { margin-bottom: 2.4rem; max-width: 26ch; }
.tsc-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2rem; }
.tsc-form__field { display: grid; gap: .5rem; margin: 0; border: 0; padding: 0; min-width: 0; }
.tsc-form__field--wide { grid-column: 1 / -1; }
.tsc-form__field > label, .tsc-form__field > legend { font-size: .85rem; color: var(--ink-2); padding: 0; }
.tsc-form__req { color: var(--accent); }
.tsc-form input[type="text"], .tsc-form input[type="email"], .tsc-form input[type="tel"], .tsc-form select, .tsc-form textarea {
	width: 100%; font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line);
	padding: .7rem 0; border-radius: 0; transition: border-color .4s;
	-webkit-appearance: none; appearance: none;
}
.tsc-form select { background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
html[dir="rtl"] .tsc-form select { background-position: 12px 55%, 7px 55%; }
.tsc-form select option { background: var(--surface); color: var(--ink); }
.tsc-form input:focus, .tsc-form select:focus, .tsc-form textarea:focus { outline: 0; border-color: var(--ink); }
.tsc-form textarea { resize: vertical; min-height: 120px; }
.tsc-form__options { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .3rem; }
.tsc-form__option { position: relative; }
.tsc-form__option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tsc-form__option span { display: inline-block; padding: .55em 1.1em; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; transition: background-color .3s, color .3s, border-color .3s; }
.tsc-form__option input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tsc-form__option input:focus-visible + span { outline: 1px solid var(--accent); outline-offset: 3px; }
.tsc-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tsc-form__notice { padding: 1rem 1.2rem; margin-bottom: 2rem; border: 1px solid var(--line); }
.tsc-form__notice--ok { border-color: #5b8a5b; }
.tsc-form__notice--err { border-color: #b4523f; }
.tsc-form .tsc-btn { margin-top: 2.4rem; }

/* Socials --------------------------------------------------------------------------------- */
.tsc-socials { display: flex; gap: .5rem; }
.tsc-socials a { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s; }
.tsc-socials a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tsc-socials svg { width: 17px; height: 17px; }

/* Footer ----------------------------------------------------------------------------------- */
.tsc-footer { background: var(--bg-2); padding-top: clamp(56px, 7vw, 110px); color: var(--ink-2); font-size: .95rem; }
.tsc-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 3rem; padding-bottom: clamp(48px, 6vw, 96px); }
.tsc-footer__brand { display: grid; gap: 1.2rem; align-content: start; }
.tsc-footer .tsc-logo { color: var(--ink); }
.tsc-footer__nav ul { display: grid; gap: .5rem; }
.tsc-footer__contact { display: grid; gap: 1rem; align-content: start; }
.tsc-footer__base { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.4rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.tsc-top { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; transition: transform .5s var(--ease), background-color .4s, color .4s; }
.tsc-top:hover { transform: translateY(-4px); background: var(--ink); color: var(--bg); }

/* Lightbox --------------------------------------------------------------------------------- */
.tsc-lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(8, 8, 7, .94); display: grid; place-items: center; padding: clamp(56px, 8vh, 96px) var(--gutter) var(--gutter); opacity: 0; transition: opacity .5s var(--ease); }
.tsc-lightbox[hidden] { display: none; }
.tsc-lightbox.is-open { opacity: 1; }
.tsc-lightbox__frame { width: min(100%, calc((100vh - 160px) * 16 / 9)); aspect-ratio: 16 / 9; background: #000; transform: scale(.94); transition: transform .7s var(--ease); }
.tsc-lightbox.is-open .tsc-lightbox__frame { transform: none; }
.tsc-lightbox__frame iframe, .tsc-lightbox__frame video { width: 100%; height: 100%; border: 0; }
.tsc-lightbox__close { position: absolute; top: 20px; inset-inline-end: var(--gutter); color: #f6f3ee; font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; display: flex; align-items: center; gap: .6rem; }
.tsc-lightbox__close span { font-size: .75rem; }

/* Company profile dialog */
.tsc-profile { width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); border: 0; padding: 0; background: var(--surface); color: var(--ink); overflow: auto; opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .6s var(--ease), overlay .5s allow-discrete, display .5s allow-discrete; }
.tsc-profile[open] { opacity: 1; transform: none; }
@starting-style { .tsc-profile[open] { opacity: 0; transform: translateY(24px); } }
.tsc-profile::backdrop { background: rgba(10, 9, 8, .6); backdrop-filter: blur(6px); }
.tsc-profile__form { padding: clamp(28px, 5vw, 56px); position: relative; }
.tsc-profile__form .tsc-h3 { margin-bottom: .8rem; }
.tsc-profile__intro { color: var(--ink-2); margin-bottom: 2rem; }
.tsc-profile__close { position: absolute; top: 14px; inset-inline-end: 18px; font-size: 1.8rem; line-height: 1; opacity: .7; }
.tsc-profile__close:hover { opacity: 1; }
.tsc-profile__note { margin-top: 1.2rem; font-size: .8rem; color: var(--muted); }
.tsc-profile .tsc-form__grid { grid-template-columns: 1fr; gap: 1.2rem; }
.tsc-profile .tsc-btn { margin-top: 1.6rem; }
.tsc-profile .is-busy { opacity: .6; pointer-events: none; }
.tsc-footer__profile { display: inline-block; margin-top: .4rem; }

/* Inline arrows flip for Arabic */
.tsc-arrow { display: inline-block; transition: transform .4s var(--ease); }
html[dir="rtl"] .tsc-arrow { transform: scaleX(-1); }
a:hover > .tsc-arrow { transform: translateX(4px); }
html[dir="rtl"] a:hover > .tsc-arrow { transform: scaleX(-1) translateX(4px); }

/* Prose & 404 ------------------------------------------------------------------------------ */
.tsc-prose { max-width: 72ch; }
.tsc-prose > * + * { margin-top: 1.2em; }
.tsc-stat { display: flex; align-items: flex-end; gap: 1.4rem; margin-top: clamp(40px, 5vw, 72px); padding-top: 2rem; border-top: 1px solid var(--line); }
.tsc-stat__num { font-size: clamp(4rem, 9vw, 8rem); line-height: .85; font-weight: 300; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.tsc-stat__label { color: var(--ink-2); padding-bottom: .4rem; }
.tsc-stat__label small { color: var(--muted); font-size: .85rem; }

/* Responsive ------------------------------------------------------------------------------- */
@media (max-width: 1080px) {
	.tsc-nav { display: none; }
	.tsc-burger { display: inline-flex; }
	.tsc-header__tools { margin-inline-start: auto; }
	.tsc-grid { grid-template-columns: repeat(2, 1fr); }
	.tsc-grid > :nth-child(3n+2) { margin-top: 0; }
	.tsc-grid > :nth-child(2n) { margin-top: clamp(0px, 8vw, 80px); }
	.tsc-work { grid-template-columns: 1fr; }
	.tsc-work__head { position: static; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 1rem; }
	.tsc-work__head > :not(.tsc-work__num):not(.tsc-work__title) { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
	:root { --header-h: 64px; }
	.tsc-split, .tsc-intro__grid, .tsc-about__grid, .tsc-mapsec__grid, .tsc-contact, .tsc-footer__grid { grid-template-columns: 1fr; }
	.tsc-services { grid-template-columns: 1fr; }
	.tsc-service { border-inline-end: 0; border-bottom: 1px solid var(--line); }
	.tsc-service__peek { opacity: .0; }
	.tsc-about__media { min-height: 120vw; }
	.tsc-form__grid { grid-template-columns: 1fr; }
	.tsc-showcase__progress { max-width: none; }
	.tsc-showcase__arrows, .tsc-showcase__scroll { display: none; }
	.tsc-clips--3 { grid-template-columns: 1fr 1fr; }
	.tsc-clips--3 .tsc-clips__item:first-child { grid-column: 1 / -1; }
	.tsc-work--duo .tsc-work__clip:nth-child(n) { grid-column: span 3; grid-row: auto; aspect-ratio: 4 / 5; }
	.tsc-work--trio .tsc-work__clip:nth-child(1) { aspect-ratio: 16 / 10; }
	.tsc-slider__track { grid-auto-columns: 86vw; }
	.tsc-lang { font-size: .85rem; }
}
@media (max-width: 560px) {
	.tsc-grid { grid-template-columns: 1fr; }
	.tsc-grid > :nth-child(2n) { margin-top: 0; }
	.tsc-burger__label { display: none; }
	.tsc-footer__base { flex-direction: column-reverse; align-items: flex-start; }
}

/* Reduced motion ----------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
	.js [data-reveal], .js [data-reveal] * { opacity: 1 !important; transform: none !important; clip-path: none !important; }
	.tsc-marquee__track { animation: none; }
	@view-transition { navigation: none; }
}
