
:root {
  color-scheme: light;
  --paper: #edece7;
  --paper-2: #e4e2da;
  --ink: #141412;
  --ink-soft: #2a2926;
  --crimson: #cb3027;
  --crimson-deep: #8f1f1a;
  --gold: #d9b47b;
  --gold-soft: #e8d2a8;
  --mute: #6f6d66;
  --gutter: clamp(18px, 3.4vw, 64px);
  --header-h: 88px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-snap: cubic-bezier(.2, .7, .2, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --progress: 0; --scatter: 0;
  --font-ar: "Cairo", "Tajawal", "Segoe UI", Tahoma, sans-serif;
  --font-display: "Barlow Condensed", "Cairo", sans-serif;
  --font-latin: "Instrument Sans", system-ui, sans-serif;
  --font-ar-display: "Tajawal", "Cairo", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: auto; scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; }
body {
  margin: 0; color: var(--ink); background: var(--paper);
  font-family: var(--font-ar); font-weight: 500;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden; line-height: 1.7;
}
body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--crimson); color: var(--paper); }
:focus-visible { outline: 2px solid var(--crimson); outline-offset: 4px; }

.skip-link { position: fixed; z-index: 100; top: -80px; inset-inline-start: 20px; background: var(--ink); color: var(--paper); padding: 12px 16px; }
.skip-link:focus { top: 12px; }

.paper-grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
.scroll-progress { position: fixed; z-index: 55; top: 0; inset-inline: 0; height: 3px; pointer-events: none; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.scroll-progress i { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(217,180,123,.25), transparent); }
.scroll-progress span { display: block; height: 100%; width: calc(var(--progress) * 100%); background: linear-gradient(90deg, var(--crimson), var(--gold)); box-shadow: 0 0 12px rgba(203,48,39,.45); }

.rim-orbit { position: relative; isolation: isolate; }
.rim-orbit::before {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--rim-angle, 0deg), transparent 0 70%, var(--crimson) 78%, var(--gold) 88%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s var(--ease-out); pointer-events: none; z-index: -1;
}
.rim-orbit:hover::before, .rim-orbit:focus-visible::before { opacity: 1; animation: rim-spin 1.6s linear infinite; }
@keyframes rim-spin { to { --rim-angle: 360deg; } }
@property --rim-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* LOADER */
.loader { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: #0c0c0b; color: var(--paper); overflow: hidden; transition: opacity 1s var(--ease-snap), visibility 1s, transform 1.1s var(--ease-out); }
html:not(.is-loading) .loader { opacity: 0; visibility: hidden; pointer-events: none; transform: scale(1.04); }
.loader.is-exiting { opacity: 0; transform: scale(1.08); }
.loader-embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.loader-veil { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 42%, rgba(203,48,39,.18), transparent 55%), radial-gradient(ellipse at 50% 100%, rgba(217,180,123,.08), transparent 40%); pointer-events: none; }
.loader-panel { position: relative; z-index: 2; text-align: center; width: min(320px, 80vw); }
.loader-mark { width: 132px; height: 132px; margin: 0 auto 26px; overflow: visible; }
.loader-ring { stroke: rgba(237,236,231,.14); transform-origin: 80px 80px; animation: loader-spin 3.2s linear infinite; }
.loader-ring.soft { stroke: rgba(217,180,123,.22); animation-direction: reverse; animation-duration: 5s; }
.loader-stroke { stroke-dasharray: 280; stroke-dashoffset: 280; animation: stroke-draw 1.9s var(--ease-out) .12s forwards; filter: drop-shadow(0 0 6px rgba(203,48,39,.35)); }
.draw-book { animation-delay: .05s; opacity: .55; }
.ta-t { animation-delay: .35s; }
.ta-a { animation-delay: .7s; }
.loader-spark { opacity: 0; animation: spark-pop .6s var(--ease-out) 1.7s forwards; }
.loader-name { margin: 0 0 4px; font-weight: 800; font-size: clamp(20px, 2.6vw, 26px); letter-spacing: .04em; opacity: 0; animation: fade-up .7s var(--ease-out) .95s forwards; }
.loader-sub { margin: 0 0 22px; font-family: var(--font-display); font-size: 11px; letter-spacing: .26em; color: rgba(237,236,231,.4); opacity: 0; animation: fade-up .7s var(--ease-out) 1.1s forwards; }
.loader-bar { height: 2px; background: rgba(237,236,231,.12); overflow: hidden; border-radius: 2px; }
.loader-fill { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--crimson), var(--gold), var(--paper)); background-size: 200% 100%; animation: shimmer 1.8s linear infinite; transition: width .2s var(--ease-soft); box-shadow: 0 0 10px rgba(203,48,39,.5); }
.loader-pct { margin: 14px 0 0; font-family: var(--font-display); font-size: 14px; letter-spacing: .2em; color: rgba(237,236,231,.5); }
.loader-pct small { font-size: .75em; margin-inline-start: 2px; }
@keyframes stroke-draw { to { stroke-dashoffset: 0; } }
@keyframes loader-spin { to { transform: rotate(360deg); } }
@keyframes spark-pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { to { background-position: -200% 0; } }

/* HEADER */
.site-header { position: fixed; z-index: 40; top: 0; inset-inline: 0; height: var(--header-h); padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; pointer-events: none; opacity: 0; transform: translateY(-16px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.header-in .site-header { opacity: 1; transform: none; }
.site-header > * { pointer-events: auto; }
.brand { position: relative; display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: .08em; }
.brand-mark { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); background: color-mix(in srgb, var(--paper) 75%, transparent); backdrop-filter: blur(10px); border-radius: 999px; box-shadow: 0 8px 24px rgba(20,20,18,.06); transition: transform .4s var(--ease-out), border-color .3s; }
.brand:hover .brand-mark { transform: scale(1.06); border-color: var(--crimson); }
.brand-dot { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--crimson); inset-inline-end: -8px; bottom: 10px; transition: transform .35s var(--ease-out); box-shadow: 0 0 8px rgba(203,48,39,.6); }
.brand:hover .brand-dot { transform: translateY(-8px); }
.menu-toggle { display: inline-flex; align-items: center; gap: 12px; padding: 11px 16px; background: color-mix(in srgb, var(--paper) 72%, transparent); backdrop-filter: blur(10px); border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); border-radius: 999px; }
.menu-toggle-label { font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.menu-toggle-lines { display: grid; gap: 5px; width: 18px; }
.menu-toggle-lines i { display: block; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease-out); }
.menu-open .menu-toggle-lines i:first-child { transform: translateY(3.25px) rotate(40deg); }
.menu-open .menu-toggle-lines i:last-child { transform: translateY(-3.25px) rotate(-40deg); }
.nav-overlay { position: fixed; inset: 0; z-index: 35; background: color-mix(in srgb, var(--ink) 94%, #000); color: var(--paper); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease-soft), visibility .5s; }
.menu-open .nav-overlay { opacity: 1; visibility: visible; }
.nav-overlay[hidden] { display: none; }
.menu-open .nav-overlay[hidden] { display: grid; }
.nav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(8px, 1.6vh, 18px); }
.nav-list li { opacity: 0; transform: translateY(28px); transition: opacity .55s var(--ease-out), transform .55s var(--ease-out); transition-delay: calc(var(--i) * .06s + .08s); }
.menu-open .nav-list li { opacity: 1; transform: none; }
.nav-list a { display: flex; align-items: baseline; gap: 18px; font-size: clamp(32px, 6vw, 72px); font-weight: 900; line-height: 1.05; transition: transform .4s var(--ease-out), color .25s; }
.nav-list a:hover { color: var(--gold); transform: translateX(-10px); }
.nav-num { font-family: var(--font-display); font-size: .26em; font-weight: 600; letter-spacing: .18em; color: var(--crimson); }
.nav-footnote { margin: 36px 0 0; color: rgba(237,236,231,.4); font-size: 14px; opacity: 0; transition: opacity .5s .4s; }
.menu-open .nav-footnote { opacity: 1; }

/* SHARED SECTION */
.section-kicker { margin: 0 0 14px; font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .2em; color: var(--crimson); }
.section-kicker.light { color: var(--gold); }
.section-title { margin: 0 0 18px; font-family: var(--font-ar-display); font-size: clamp(34px, 6vw, 78px); font-weight: 800; line-height: 1.12; letter-spacing: 0; }
.section-title.light { color: var(--paper); }
.section-title em { font-style: normal; color: var(--mute); font-weight: 700; }
.section-title.light em { color: rgba(237,236,231,.42); }
.section-lead, .lead { margin: 0; max-width: 560px; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.9; color: var(--ink-soft); font-weight: 500; }
.body-text { margin: 16px 0 0; max-width: 540px; font-size: 15.5px; line-height: 1.95; color: var(--ink-soft); }
.section-head { padding: 0 var(--gutter); max-width: 920px; margin-inline: auto 0; }
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .85s var(--ease-out), transform .85s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }
.section-divider { display: grid; place-items: center; padding: 28px var(--gutter); color: color-mix(in srgb, var(--ink) 35%, transparent); }
.section-divider img { width: min(420px, 80vw); opacity: .7; }

/* HERO */
.hero { position: relative; height: 200svh; }
.hero-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate; }
.hero-backdrop {
  position: absolute; z-index: 1;
  inset: calc(var(--header-h) + 8px) var(--gutter) 56px;
  background: linear-gradient(145deg, #d63a30 0%, var(--crimson) 45%, var(--crimson-deep) 100%);
  transform: scale(var(--hero-scale-x, .66), var(--hero-scale-y, .72)) translate3d(0, var(--panel-y, 0px), 0);
  transform-origin: center; will-change: transform; overflow: hidden;
  box-shadow: 0 40px 100px rgba(80, 16, 12, .22), inset 0 0 80px rgba(255,255,255,.06);
}
.hero-rim { position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(237,236,231,.18); pointer-events: none; background: linear-gradient(120deg, rgba(255,255,255,.12), transparent 35%, transparent 65%, rgba(0,0,0,.12)); }
.hero-dots { position: absolute; inset-inline-end: 0; top: 0; width: 44%; height: 72%; background: radial-gradient(circle, #611b13 1.1px, transparent 1.6px) 0 0 / 9px 9px; opacity: .25; mask-image: linear-gradient(135deg, transparent 12%, #000 100%); }
.hero-motif { position: absolute; inset-inline-start: 8%; bottom: 10%; width: clamp(72px, 10vw, 110px); opacity: .22; filter: invert(1); }
.corner { position: absolute; width: 14px; height: 14px; opacity: .6; }
.corner-tl { top: 18px; inset-inline-start: 18px; border-block-start: 1px solid var(--paper); border-inline-start: 1px solid var(--paper); }
.corner-tr { top: 18px; inset-inline-end: 18px; border-block-start: 1px solid var(--paper); border-inline-end: 1px solid var(--paper); }
.corner-bl { bottom: 18px; inset-inline-start: 18px; border-block-end: 1px solid var(--paper); border-inline-start: 1px solid var(--paper); }
.corner-br { bottom: 18px; inset-inline-end: 18px; border-block-end: 1px solid var(--paper); border-inline-end: 1px solid var(--paper); }
.hero-title { margin: 0; }
.hero-word { position: absolute; z-index: 2; display: block; width: max-content; white-space: nowrap; margin: 0; line-height: .88; --py: 0px; transform: translate3d(0, var(--py), 0); will-change: transform; }
.word-thamer { inset-inline-start: 2.5%; top: 15%; font-family: var(--font-display); font-weight: 700; font-size: clamp(88px, 18.5vw, 340px); letter-spacing: -.028em; color: var(--ink); direction: ltr; }
.word-omaie { inset-inline-end: 3.5%; top: 52%; font-family: var(--font-ar-display); font-weight: 800; font-size: clamp(52px, 11.8vw, 196px); color: var(--ink); display: flex; gap: .32em; letter-spacing: 0; text-shadow: 0 1px 0 rgba(237,236,231,.3); }
.ar-chunk { display: inline-block; opacity: 0; transform: translateY(36px); }
.hero-entered .ar-chunk { animation: letter-in .9s calc(.4s + var(--li) * .1s) var(--ease-out) forwards; }
.hero-letter { position: relative; display: inline-block; color: transparent; -webkit-text-stroke: 1.2px var(--ink); opacity: 0; transform: translateY(48px) rotate(-4deg); }
.hero-entered .hero-letter { animation: letter-in .85s calc(.08s + var(--li) * .07s) var(--ease-out) forwards; }
.hero-letter::after { content: attr(data-letter); position: absolute; inset: 0; color: var(--ink); -webkit-text-stroke: 0; clip-path: inset(0); transition: clip-path .55s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .hero-letter:hover::after { clip-path: inset(100% 0 0); } }
@keyframes letter-in { to { opacity: 1; transform: none; } }
.hero-entered .hero-copy { animation: hero-copy-in .95s .55s var(--ease-out) both; }
.hero-entered .hero-backdrop { animation: backdrop-in 1.25s .02s var(--ease-out) both; }
.hero-entered .hero-meta { animation: fade-up .8s .7s var(--ease-out) both; }
@keyframes hero-copy-in { from { opacity: 0; transform: translate3d(0, calc(var(--py) + 28px), 0); } to { opacity: 1; transform: translate3d(0, var(--py), 0); } }
@keyframes backdrop-in { from { transform: scale(.4, .52); opacity: .35; } to { transform: scale(var(--hero-scale-x, .66), var(--hero-scale-y, .72)) translate3d(0, var(--panel-y, 0px), 0); opacity: 1; } }
.hero-copy { position: absolute; z-index: 4; inset-inline-start: var(--gutter); bottom: clamp(64px, 11vh, 118px); max-width: min(440px, 48vw); --py: 0px; transform: translate3d(0, var(--py), 0); }
.hero-kicker { margin: 0 0 10px; font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--crimson-deep); }
.hero-tagline { margin: 0 0 14px; font-size: clamp(15px, 1.65vw, 18.5px); line-height: 1.85; font-weight: 600; color: var(--ink-soft); }
.hero-beats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.hero-beats span { padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 6%, transparent); font-size: 12px; font-weight: 700; color: var(--ink-soft); border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); }
.hero-cta { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; background: var(--ink); color: var(--paper); border-radius: 999px; font-weight: 700; font-size: 14px; transition: transform .35s var(--ease-out), background .25s, box-shadow .35s; box-shadow: 0 10px 28px rgba(20,20,18,.18); }
.hero-cta:hover { transform: translateY(-3px); background: var(--crimson); box-shadow: 0 14px 36px rgba(203,48,39,.28); }
.hero-meta { position: absolute; z-index: 4; inset-inline-end: var(--gutter); bottom: 28px; display: flex; gap: 28px; align-items: center; font-family: var(--font-display); font-size: 12px; letter-spacing: .16em; color: var(--mute); text-transform: uppercase; }
.hero-scroll-hint { display: inline-flex; align-items: center; gap: 12px; }
.cue-line { display: block; width: 1px; height: 28px; background: linear-gradient(to bottom, var(--crimson), transparent); animation: cue-pulse 1.8s var(--ease-soft) infinite; transform-origin: top; }
@keyframes cue-pulse { 0%, 100% { transform: scaleY(.45); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }


/* PITCH + PORTRAIT */
.hero-pitch {
  margin: 0 0 14px; display: inline-block; max-width: 100%;
  padding: 8px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--crimson) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--crimson) 28%, transparent);
  color: var(--crimson-deep); font-weight: 800; font-size: clamp(13px, 1.35vw, 15px);
  line-height: 1.55; letter-spacing: .01em;
  box-shadow: 0 8px 24px rgba(203,48,39,.08);
}
.pitch-line { color: var(--crimson-deep); font-weight: 700; }
.hero-portrait {
  position: absolute; z-index: 3;
  inset-inline-end: clamp(0%, 2vw, 4%);
  bottom: 0; height: min(82vh, 760px); width: auto;
  pointer-events: none; display: flex; align-items: flex-end; justify-content: center;
}
.portrait-glow {
  position: absolute; z-index: 0;
  inset-inline: 8% 8%; bottom: 6%; height: 55%;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(203,48,39,.55), transparent 62%),
    radial-gradient(ellipse at 50% 100%, rgba(217,180,123,.4), transparent 55%);
  filter: blur(18px); opacity: 0; transform: scale(.85);
}
.portrait-clip {
  position: relative; z-index: 1; height: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 8%, #000 100%);
  mask-image: linear-gradient(to top, transparent 0%, #000 8%, #000 100%);
}
.portrait-img {
  display: block; height: 100%; width: auto; max-width: min(42vw, 520px);
  object-fit: contain; object-position: bottom center;
  transform: translate3d(0, 110%, 0) scale(.96);
  filter: drop-shadow(0 18px 40px rgba(20,20,18,.28)) drop-shadow(0 0 28px rgba(203,48,39,.22));
  will-change: transform;
}
.hero-entered .portrait-img {
  animation: portrait-rise 1.75s cubic-bezier(.16,1,.3,1) .35s forwards;
}
.hero-entered .portrait-glow {
  animation: portrait-glow-in 1.6s cubic-bezier(.16,1,.3,1) .55s forwards;
}
@keyframes portrait-rise {
  0% { transform: translate3d(0, 110%, 0) scale(.96); opacity: .35; }
  60% { opacity: 1; }
  100% { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
}
@keyframes portrait-glow-in {
  to { opacity: 1; transform: scale(1); }
}


/* ABOUT */
.about { padding: clamp(70px, 12vh, 130px) var(--gutter); }
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; max-width: 1180px; margin: 0 auto; }
.about-points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.about-points li { padding: 14px 16px; border-inline-start: 3px solid var(--crimson); background: color-mix(in srgb, var(--ink) 3.5%, transparent); border-radius: 0 12px 12px 0; font-size: 15px; line-height: 1.7; }
.about-points strong { color: var(--crimson-deep); }
.about-visual { position: relative; min-height: 360px; display: grid; place-items: center; }
.seal-card { width: min(260px, 70vw); aspect-ratio: 1; border-radius: 28px; background: radial-gradient(circle at 30% 25%, #fff, var(--paper-2)); border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); display: grid; place-content: center; text-align: center; gap: 8px; box-shadow: 0 30px 70px rgba(20,20,18,.1); position: relative; z-index: 2; }
.seal-card p { margin: 0; font-family: var(--font-display); font-size: 42px; font-weight: 700; letter-spacing: .1em; }
.seal-card span { font-size: 12px; color: var(--mute); letter-spacing: .08em; }
.floating-motifs { position: absolute; inset: 0; pointer-events: none; }
.fm { position: absolute; width: 72px; opacity: .55; color: var(--ink); animation: floaty 7s var(--ease-soft) infinite alternate; }
.fm-a { top: 8%; inset-inline-start: 4%; }
.fm-b { bottom: 12%; inset-inline-end: 6%; animation-delay: -2s; width: 84px; }
.fm-c { top: 42%; inset-inline-end: -2%; animation-delay: -4s; width: 64px; }
@keyframes floaty { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-14px) rotate(4deg); } }

/* STATS */
.stats { padding: 20px var(--gutter) clamp(50px, 8vh, 90px); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 1100px; margin: 0 auto; }
.stat { padding: 28px 18px; text-align: center; border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); border-radius: 22px; background: linear-gradient(160deg, #fff, var(--paper-2)); box-shadow: 0 16px 40px rgba(20,20,18,.05); }
.stat-num { display: block; font-family: var(--font-display); font-size: clamp(40px, 6vw, 64px); font-weight: 700; letter-spacing: -.02em; color: var(--crimson); line-height: 1; }
.stat-label { display: block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--mute); }

/* PROJECTS */
.projects { position: relative; padding: clamp(40px, 6vh, 80px) 0 0; }
.scatter-stage { position: relative; height: 300svh; margin-top: clamp(24px, 4vh, 50px); }
.scatter-pin { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; overflow: hidden; }
.scatter-field { position: relative; width: min(980px, 94vw); height: min(660px, 80vh); }
.scatter-core { position: absolute; inset: 50% auto auto 50%; translate: -50% -50%; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle at 30% 28%, #fff, var(--paper-2)); display: grid; place-content: center; text-align: center; box-shadow: 0 24px 60px rgba(20,20,18,.1); z-index: 1; }
.core-ring { position: absolute; inset: -8px; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--crimson) 35%, transparent); animation: loader-spin 18s linear infinite; }
.core-mark { font-family: var(--font-display); font-weight: 700; font-size: 36px; letter-spacing: .08em; }
.scatter-core p { margin: 4px 0 0; font-size: 11px; color: var(--mute); }
.scatter-orb {
  --spread: 0; --tilt-x: 0deg; --tilt-y: 0deg;
  position: absolute; inset-inline-start: 50%; top: 50%;
  width: clamp(86px, 12.5vw, 132px); aspect-ratio: 1; padding: 0; border-radius: 24px;
  transform: translate(-50%, -50%) translate(calc(var(--ox) * var(--spread)), calc(var(--oy) * var(--spread))) rotate(calc(var(--or) * var(--spread) + var(--orbit, 0deg))) scale(calc(.38 + var(--spread) * .62 * var(--oz, 1))) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  opacity: calc(.15 + var(--spread) * .85); overflow: hidden;
  border: 1px solid rgba(20,20,18,.08);
  box-shadow: 0 22px 50px rgba(20,20,18,.15), inset 0 0 0 1px rgba(255,255,255,.2);
  transition: filter .35s, box-shadow .35s; z-index: 2; will-change: transform, opacity; transform-style: preserve-3d;
}
.scatter-orb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.orb-glow { position: absolute; inset: -20%; background: radial-gradient(circle, rgba(203,48,39,.35), transparent 60%); opacity: 0; transition: opacity .35s; pointer-events: none; z-index: 1; mix-blend-mode: screen; }
.scatter-orb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(145deg, rgba(255,255,255,.28), transparent 42%, rgba(0,0,0,.14)); pointer-events: none; z-index: 2; }
.scatter-orb:hover, .scatter-orb:focus-visible { filter: brightness(1.06); box-shadow: 0 28px 60px rgba(203,48,39,.28), 0 0 0 2px var(--crimson), 0 0 40px rgba(217,180,123,.25); z-index: 6; }
.scatter-orb:hover .orb-glow, .scatter-orb:focus-visible .orb-glow { opacity: 1; }
.scatter-orb:hover img { transform: scale(1.06); }

.project-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 40px var(--gutter) 20px; max-width: 1200px; margin: 0 auto; }
.p-card { display: grid; grid-template-columns: 88px 1fr; gap: 16px; padding: 20px; border-radius: 22px; background: linear-gradient(160deg, #fff, var(--paper-2)); border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); box-shadow: 0 16px 40px rgba(20,20,18,.05); transition: transform .35s var(--ease-out), box-shadow .35s; }
.p-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(203,48,39,.12); }
.p-card-logo { width: 88px; height: 88px; border-radius: 18px; object-fit: cover; }
.p-card-en { margin: 0 0 4px; font-family: var(--font-display); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--crimson); }
.p-card h3 { margin: 0 0 8px; font-size: 22px; font-weight: 800; }
.p-card p { margin: 0 0 10px; font-size: 14px; line-height: 1.75; color: var(--ink-soft); }
.chip-row { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip-row li { padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 6%, transparent); font-family: var(--font-latin); font-size: 11px; font-weight: 500; }
.text-link { font-weight: 700; color: var(--crimson); font-size: 13px; }

/* CONTACT */
.contact { background: var(--paper-2); padding: clamp(80px, 14vh, 150px) var(--gutter) 48px; }
.contact-inner { max-width: 900px; }
.contact-title { margin: 0 0 16px; font-family: var(--font-ar-display); font-size: clamp(42px, 8vw, 96px); font-weight: 800; line-height: 1.08; }
.contact-lead { margin: 0 0 24px; max-width: 480px; color: var(--ink-soft); font-size: 16px; line-height: 1.8; }
.contact-mail { display: inline-block; font-family: var(--font-latin); font-size: clamp(20px, 3vw, 32px); font-weight: 600; border-bottom: 2px solid var(--crimson); padding-bottom: 4px; border-radius: 2px; transition: color .25s; }
.contact-mail:hover { color: var(--crimson); }
.contact-meta { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--mute); font-size: 13px; font-weight: 600; }
.socials { list-style: none; margin: 36px 0 0; padding: 0; display: flex; gap: 12px; flex-wrap: wrap; }
.socials a { display: inline-flex; align-items: center; justify-content: center; min-width: 92px; padding: 12px 18px; border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); border-radius: 999px; font-family: var(--font-latin); font-size: 13px; font-weight: 600; transition: background .3s, color .3s, transform .3s var(--ease-out); }
.socials a:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.credits { margin-top: 64px; padding-top: 28px; border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); color: var(--mute); font-size: 13px; line-height: 1.8; }
.copyright { margin-top: 12px; }

/* DIALOG */
.project-dialog { border: 0; padding: 0; margin: auto; width: min(980px, calc(100vw - 28px)); max-height: calc(100svh - 40px); background: transparent; color: var(--ink); }
.project-dialog::backdrop { background: rgba(12, 12, 11, .8); backdrop-filter: blur(12px); }
.dialog-sheet { position: relative; display: grid; grid-template-columns: minmax(150px, 260px) 1fr; gap: 30px; background: linear-gradient(160deg, #f4f3ee, var(--paper) 40%, var(--paper-2)); border-radius: 30px; padding: clamp(24px, 3.2vw, 40px); box-shadow: 0 50px 120px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.7); animation: paper-unfold .65s var(--ease-out); overflow: auto; max-height: calc(100svh - 40px); border: 1px solid rgba(20,20,18,.06); }
@keyframes paper-unfold { from { opacity: 0; transform: translateY(36px) rotateX(10deg) scale(.92); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.dialog-close { position: absolute; top: 16px; inset-inline-start: 16px; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 24px; line-height: 1; display: grid; place-items: center; z-index: 2; }
.dialog-media { position: relative; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, #fff, var(--paper-2)); border-radius: 24px; padding: 22px; border: 1px solid rgba(20,20,18,.06); min-height: 220px; }
.dialog-media img[data-dialog-logo] { width: min(200px, 100%); border-radius: 22px; box-shadow: 0 20px 48px rgba(20,20,18,.18); }
.dialog-year, .dialog-status { position: absolute; font-family: var(--font-display); font-size: 11px; letter-spacing: .14em; padding: 6px 10px; border-radius: 999px; }
.dialog-year { bottom: 14px; inset-inline-end: 14px; background: var(--ink); color: var(--gold); }
.dialog-status { top: 14px; inset-inline-end: 14px; background: var(--crimson); color: var(--paper); }
.dialog-motif { position: absolute; bottom: 14px; inset-inline-start: 14px; opacity: .45; width: 48px; height: 48px; }
.dialog-en { margin: 0 0 6px; font-family: var(--font-display); letter-spacing: .18em; text-transform: uppercase; font-size: 12px; color: var(--crimson); }
.dialog-body h3 { margin: 0 0 14px; font-size: clamp(28px, 4vw, 40px); font-weight: 900; }
.dialog-desc { margin: 0 0 14px; font-size: 15.5px; line-height: 1.9; color: var(--ink-soft); }
.dialog-bullets { margin: 0 0 16px; padding: 0 1.1em 0 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.75; }
.dialog-bullets li { margin-bottom: 6px; }
.dialog-tags { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dialog-tags li { padding: 7px 12px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 6%, transparent); font-family: var(--font-latin); font-size: 12px; font-weight: 500; }
.dialog-link { display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; background: var(--crimson); color: var(--paper); border-radius: 999px; font-weight: 700; box-shadow: 0 12px 30px rgba(203,48,39,.28); transition: transform .3s var(--ease-out), background .25s; }
.dialog-link:hover { transform: translateY(-2px); background: var(--crimson-deep); }
.dialog-link.is-disabled { background: color-mix(in srgb, var(--ink) 16%, transparent); color: var(--mute); pointer-events: none; box-shadow: none; }

/* CURSOR */
.cursor { position: fixed; inset: 0; z-index: 95; pointer-events: none; opacity: 0; transition: opacity .35s; }
html.has-cursor .cursor { opacity: 1; }
html.has-cursor, html.has-cursor body, html.has-cursor a, html.has-cursor button { cursor: none; }
.cursor-ring { position: absolute; width: 36px; height: 36px; border: 1.5px solid var(--crimson); border-radius: 50%; translate: -50% -50%; transition: width .3s var(--ease-out), height .3s var(--ease-out), background .3s, border-color .3s; box-shadow: 0 0 0 1px rgba(217,180,123,.15); }
.cursor-dot { position: absolute; width: 6px; height: 6px; background: var(--ink); border-radius: 50%; translate: -50% -50%; }
.cursor-ribbon { position: absolute; inset: 0; }
.cursor-ribbon i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--crimson); translate: -50% -50%; opacity: 0; }
html.cursor-hover .cursor-ring { width: 58px; height: 58px; background: color-mix(in srgb, var(--crimson) 10%, transparent); border-color: var(--gold); }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .project-cards { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .hero { height: auto; }
  .hero-stage { position: relative; height: auto; min-height: 100svh; padding-bottom: 40px; }
  .hero-backdrop { inset: calc(var(--header-h) + 6px) 16px 38%; transform: none !important; }
  .word-thamer { position: relative; inset: auto; margin: calc(var(--header-h) + 36px) var(--gutter) 0; font-size: clamp(68px, 19vw, 118px); }
  .word-omaie { position: relative; inset: auto; margin: 10px var(--gutter) 0; font-size: clamp(44px, 13vw, 76px); }
  .hero-copy { position: relative; inset: auto; margin: 28px var(--gutter) 0; }
  .hero-meta { display: none; }
  .scatter-stage { height: auto; margin-top: 20px; }
  .scatter-pin { position: relative; height: auto; padding: 10px 0 24px; }
  .scatter-field { width: 100%; height: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 var(--gutter); }
  .scatter-core { display: none; }
  .scatter-orb { position: relative; inset: auto; width: 100%; transform: none !important; opacity: 1 !important; border-radius: 18px; }
  .dialog-sheet { grid-template-columns: 1fr; text-align: center; }
  .dialog-media { order: -1; }
  .dialog-tags, .dialog-bullets { text-align: start; }
  .dialog-close { inset-inline: auto 12px; }
  .p-card { grid-template-columns: 72px 1fr; }

  .hero-portrait { position: relative; inset: auto; height: min(58vh, 420px); margin: 8px auto -12px; order: 0; }
  .portrait-img { max-width: min(78vw, 340px); margin-inline: auto; }
  .hero-stage { display: flex; flex-direction: column; }
  .hero-backdrop { order: -2; }
  .hero-title { order: -1; }
  .hero-pitch { font-size: 12.5px; padding: 7px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero { height: auto; } .hero-stage { position: relative; }
  .scatter-stage { height: auto; } .scatter-pin { position: relative; }
  .scatter-orb { transform: translate(-50%, -50%) translate(var(--ox), var(--oy)) rotate(var(--or)) scale(1); opacity: 1; }
  .cursor { display: none !important; }
  .cue-line, .fm { animation: none; }
  [data-reveal], .hero-letter, .ar-chunk { opacity: 1; transform: none; }
  .portrait-img, .portrait-glow { animation: none !important; opacity: 1; transform: none; }
}

@media (hover: none), (pointer: coarse) {
  .cursor { display: none !important; }
  html.has-cursor, html.has-cursor body, html.has-cursor a, html.has-cursor button { cursor: auto; }
}
