/* =====================================================================
   Mo · MassJedi — Dark Cinematic Portfolio
   Hand-built design system. No frameworks.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg:        #141009;   /* warm espresso ink — not cold black */
  --bg-2:      #1b150d;
  --surface:   #221b11;
  --surface-2: #2b2316;
  --line:      rgba(243,236,221,0.09);
  --line-2:    rgba(243,236,221,0.17);

  --text:      #f3ecdd;   /* warm cream / parchment */
  --text-dim:  #c2b59b;
  --text-mute: #9a8c72;   /* ~4.5:1 on --bg (WCAG AA) */

  --volt:      #e3a23c;   /* primary — burnished saffron gold (stage light · the Farr) */
  --volt-deep: #c4842a;
  --cyan:      #3f9a8c;   /* secondary — deep jade, the cool Persian counterpoint */
  --violet:    #7a4a2c;   /* warm bronze background glow only */

  --grad: linear-gradient(100deg, var(--volt) 0%, #edc06a 42%, #cf7a52 100%);  /* gold → amber → terracotta */

  --maxw: 1320px;
  --gutter: clamp(20px, 5vw, 80px);
  --radius: 18px;
  --radius-lg: 26px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: clamp(15px, 1.05vw, 17px);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
em { font-style: normal; }
::selection { background: var(--volt); color: #06210a; }

/* Hide native cursor on capable devices (re-enabled in media query) */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button, [data-magnetic], [data-cursor] { cursor: none; }
}

/* ---------- Atmosphere: grain + background field ---------- */
.grain {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  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='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
#bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 78% -10%, rgba(111,92,255,0.16), transparent 60%),
    radial-gradient(50vw 50vw at 8% 18%, rgba(31,227,255,0.10), transparent 60%),
    radial-gradient(45vw 45vw at 50% 115%, rgba(227,162,60,0.10), transparent 60%);
}
main, .nav, .footer, .marquee { position: relative; z-index: 3; }

/* ---------- Custom cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 9000; pointer-events: none; mix-blend-mode: difference; }
.cursor__dot {
  position: fixed; width: 7px; height: 7px; border-radius: 50%;
  background: #fff; transform: translate(-50%, -50%);
}
.cursor__ring {
  position: fixed; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.65); transform: translate(-50%, -50%);
  transition: width .3s var(--ease), height .3s var(--ease), background .3s, border-color .3s;
  display: grid; place-items: center;
}
.cursor__label {
  font-family: var(--font-display); font-size: 10px; letter-spacing: .08em;
  text-transform: uppercase; color: #06210a; opacity: 0; transition: opacity .2s;
}
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; background: var(--volt); border-color: var(--volt); }
.cursor.is-label .cursor__ring { width: 78px; height: 78px; background: var(--volt); border-color: var(--volt); }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-down .cursor__ring { width: 30px; height: 30px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } body { cursor: auto; } }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 8000; background: transparent; }
.scroll-progress span { display: block; height: 100%; width: 0; background: var(--grad); box-shadow: 0 0 12px var(--volt); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9500; background: var(--bg);
  display: grid; place-items: center; transition: opacity .6s var(--ease), visibility .6s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { width: min(420px, 80vw); text-align: center; }
.preloader__mark { font-family: var(--font-display); font-weight: 600; letter-spacing: .2em; font-size: 13px; color: var(--text-dim); margin-bottom: 18px; }
.preloader__mark span { color: var(--volt); margin: 0 .3em; }
.preloader__bar { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 0; background: var(--grad); }
.preloader__count { font-family: var(--font-display); font-size: 64px; font-weight: 500; margin-top: 18px; line-height: 1; }
.preloader__count i { font-family: var(--font-serif); font-style: italic; font-size: 28px; color: var(--text-mute); margin-left: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 500; font-size: 15px;
  padding: 15px 26px; border-radius: 100px; border: 1px solid transparent;
  transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s;
  will-change: transform;
}
.btn svg { transition: transform .3s var(--ease); }
.btn--solid { background: var(--volt); color: #06210a; }
.btn--solid:hover svg { transform: translateX(4px); }
.btn--ghost { border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--volt); color: var(--volt); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 7000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  transition: padding .4s var(--ease), background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding: 14px var(--gutter);
  background: rgba(6,6,8,0.6); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__logo { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.logo__bolt { color: var(--volt); filter: drop-shadow(0 0 8px rgba(227,162,60,.6)); }
.logo__text i { color: var(--volt); font-style: normal; margin: 0 1px; }
.nav__links { display: flex; gap: 30px; }
.nav__links a { position: relative; font-size: 15px; color: var(--text-dim); transition: color .3s; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 1px; background: var(--volt); transition: width .35s var(--ease); }
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }
.nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after { width: 100%; }
.nav__cta { padding: 11px 20px; font-size: 14px; }
.nav__burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav__burger span { display: block; width: 18px; height: 1.5px; background: var(--text); transition: transform .35s var(--ease), opacity .25s; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- Full-screen menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 6500; background: var(--bg-2);
  display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gutter);
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease); visibility: hidden;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__nav { display: flex; flex-direction: column; gap: 6px; }
.menu__nav a {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(34px, 9vw, 76px);
  line-height: 1.05; color: var(--text); display: flex; align-items: baseline; gap: 18px;
  opacity: 0; transform: translateY(40px); transition: color .3s;
}
.menu.is-open .menu__nav a { animation: menuIn .6s var(--ease) forwards; }
.menu.is-open .menu__nav a:nth-child(1){animation-delay:.12s}
.menu.is-open .menu__nav a:nth-child(2){animation-delay:.18s}
.menu.is-open .menu__nav a:nth-child(3){animation-delay:.24s}
.menu.is-open .menu__nav a:nth-child(4){animation-delay:.30s}
.menu.is-open .menu__nav a:nth-child(5){animation-delay:.36s}
.menu.is-open .menu__nav a:nth-child(6){animation-delay:.42s}
.menu.is-open .menu__nav a:nth-child(7){animation-delay:.48s}
.menu.is-open .menu__nav a:nth-child(8){animation-delay:.54s}
.menu.is-open .menu__nav a:nth-child(9){animation-delay:.60s}
.menu.is-open .menu__nav a:nth-child(10){animation-delay:.66s}
@keyframes menuIn { to { opacity: 1; transform: translateY(0); } }
.menu__nav a:hover { color: var(--volt); }
.menu__idx { font-family: var(--font-body); font-size: 14px; color: var(--text-mute); }
.menu__foot { display: flex; justify-content: space-between; margin-top: 60px; color: var(--text-mute); font-size: 13px; font-family: var(--font-display); }

/* ---------- Layout primitives ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(80px, 11vw, 170px) var(--gutter); }
.section__head { margin-bottom: clamp(40px, 6vw, 80px); max-width: 880px; }
.eyebrow {
  display: inline-block; font-family: var(--font-display); font-size: 13px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--volt); margin-bottom: 18px;
}
.section__title {
  font-family: var(--font-display); font-weight: 500; line-height: 1.04;
  font-size: clamp(34px, 6vw, 76px); letter-spacing: -0.02em;
}
.section__title em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.section__lead { margin-top: 24px; font-size: clamp(17px, 1.5vw, 21px); color: var(--text-dim); max-width: 720px; }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 120px var(--gutter) 60px; max-width: var(--maxw); margin: 0 auto; position: relative; isolation: isolate; }
/* cinematic photo backdrop */
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; will-change: transform; background: linear-gradient(135deg, var(--surface-2), var(--bg)); }
.hero__bg img { position: absolute; inset: -2% -2% -2% -2%; width: 104%; height: 104%; object-fit: cover; object-position: 58% 38%;
  filter: saturate(0.76) contrast(1.06) brightness(0.82) sepia(0.20) hue-rotate(-8deg) blur(0.7px); opacity: 1;
  transform: scale(1.05); will-change: transform;
  animation: heroKen 30s ease-in-out 1.4s infinite alternate; }
@keyframes heroKen { from { transform: scale(1.05) translate3d(0,0,0); } to { transform: scale(1.11) translate3d(-1.4%, -1.2%, 0); } }
.hero__scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(94deg, var(--bg) 4%, rgba(20,16,9,0.86) 32%, rgba(20,16,9,0.42) 64%, rgba(20,16,9,0.30) 100%),
    linear-gradient(0deg, var(--bg) 1%, transparent 38%),
    radial-gradient(130% 95% at 78% 32%, transparent 38%, rgba(20,16,9,0.55) 100%); }
.hero__inner { max-width: 1040px; position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce){ .hero__bg img { animation: none; opacity: 1; transform: scale(1.03); } }
@media (max-width: 720px){
  .hero { padding: 84px var(--gutter) 44px; }
  .hero__bg img { object-position: 60% 36%; }
  .hero__scrim { background: linear-gradient(0deg, var(--bg) 6%, rgba(20,16,9,0.58) 52%, rgba(20,16,9,0.72) 100%); }
}
@media (max-width: 480px){ .hero { padding: 72px var(--gutter) 36px; } }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 30px; }
.hero__eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--volt); box-shadow: 0 0 12px var(--volt); animation: pulse 2s infinite; }
.hero__title {
  font-family: var(--font-display); font-weight: 500; letter-spacing: -0.03em;
  font-size: clamp(40px, 8.5vw, 116px); line-height: 0.98; margin-bottom: 36px;
}
.hero__title em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.hero__sub { max-width: 620px; font-size: clamp(16px, 1.5vw, 20px); color: var(--text-dim); }
.hero__sub strong { color: var(--text); font-weight: 600; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 40px; }
.hero__meta { display: flex; gap: clamp(24px, 5vw, 70px); flex-wrap: wrap; margin-top: clamp(48px, 8vw, 90px); border-top: 1px solid var(--line); padding-top: 26px; }
.hero__meta-item { display: flex; flex-direction: column; gap: 4px; }
.hero__meta-item .k { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-mute); font-family: var(--font-display); }
.hero__meta-item .v { font-size: 15px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.hero__scroll { position: absolute; bottom: 34px; right: var(--gutter); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--text-mute); }
.hero__scroll-line { width: 1px; height: 50px; background: linear-gradient(var(--volt), transparent); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--volt); animation: scrollDrop 1.8s var(--ease) infinite; }
@keyframes scrollDrop { 0%{transform:translateY(-100%)} 100%{transform:translateY(300%)} }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--volt); box-shadow: 0 0 10px var(--volt); animation: pulse 2s infinite; display: inline-block; }
@keyframes pulse { 0%,100%{opacity:1; transform:scale(1)} 50%{opacity:.4; transform:scale(.8)} }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; background: rgba(255,255,255,0.012); }
.marquee__track { display: flex; align-items: center; gap: 34px; white-space: nowrap; width: max-content; animation: marquee 28s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 3vw, 40px); letter-spacing: -0.01em; color: var(--text); }
.marquee__track i { color: var(--volt); font-size: 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.about__portrait { position: sticky; top: 110px; }
.portrait { position: relative; aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(160deg, var(--surface), var(--bg-2)); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait img.is-missing { display: none; }
.portrait__mono { position: absolute; inset: 0; display: grid; place-items: center; }
.portrait img:not(.is-missing) + .portrait__mono { display: none; }
.portrait__mono span { font-family: var(--font-display); font-weight: 600; font-size: clamp(70px, 14vw, 150px); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9; }
.portrait__ring { position: absolute; inset: 0; border-radius: var(--radius-lg); box-shadow: inset 0 0 60px rgba(227,162,60,0.08); pointer-events: none; }
.about__signature { font-family: var(--font-serif); font-style: italic; font-size: 22px; color: var(--text-dim); margin-top: 18px; text-align: right; }
.about__lead { font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 28px; }
.about__lead strong { color: var(--volt); font-weight: 500; }
.about__body p { color: var(--text-dim); margin-bottom: 20px; max-width: 60ch; }
.about__body p strong { color: var(--text); }
.about__body a strong { color: var(--volt); }
.timeline { list-style: none; margin-top: 40px; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 160px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); transition: padding-left .3s var(--ease); }
.timeline li:hover { padding-left: 12px; }
.t__phase { font-family: var(--font-display); font-weight: 500; color: var(--volt); }
.t__desc { color: var(--text-dim); }

/* ---------- Stats ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(40px, 6vw, 70px) var(--gutter); border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat__num { font-family: var(--font-display); font-weight: 500; font-size: clamp(44px, 6vw, 78px); line-height: 1; letter-spacing: -0.02em; display: flex; align-items: baseline; }
.stat__num i { color: var(--volt); font-style: normal; font-size: .5em; }
.stat__label { color: var(--text-mute); font-size: 14px; margin-top: 14px; max-width: 22ch; }

/* ---------- Research ---------- */
.research__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.rcard { position: relative; padding: clamp(26px, 3vw, 40px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: transform .4s var(--ease), border-color .4s, background .4s; }
.rcard:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--surface-2); }
.rcard--wide { grid-column: span 2; }
.rcard--accent { background: linear-gradient(150deg, rgba(227,162,60,0.07), var(--surface)); }
.rcard__no { font-family: var(--font-display); font-size: 13px; color: var(--volt); letter-spacing: .1em; }
.rcard h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, 2.2vw, 28px); margin: 14px 0 12px; }
.rcard p { color: var(--text-dim); max-width: 52ch; }
.rcard p em { color: var(--text); font-style: italic; font-family: var(--font-serif); }
.attn { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--bg-2); }
.attn__grid { display: grid; grid-template-columns: repeat(24, 1fr); gap: 4px; }
.attn__grid i { display: block; aspect-ratio: 1; border-radius: 3px; background: var(--volt); }
.attn__cap { display: block; margin-top: 14px; font-family: var(--font-display); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mute); }
.research__note { margin-top: 28px; color: var(--text-mute); font-family: var(--font-display); font-size: 14px; }
.research__note strong { color: var(--text-dim); }

/* ---------- Work / projects ---------- */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.project { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; transition: transform .45s var(--ease), border-color .45s, background .45s; display: flex; flex-direction: column; }
.project:hover { transform: translateY(-6px); border-color: var(--line-2); background: var(--surface-2); }
.project--feature { grid-column: span 2; flex-direction: row; }
.project__media { flex: 1; min-height: 280px; position: relative; background: radial-gradient(120% 120% at 20% 0%, rgba(31,227,255,0.12), transparent 50%), linear-gradient(160deg, #0c1015, #07080b); display: grid; place-items: center; overflow: hidden; }
.project__body { flex: 1; padding: clamp(28px, 3.4vw, 48px); display: flex; flex-direction: column; align-items: flex-start; }
.project__tag { font-family: var(--font-display); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--volt); }
.project__statusrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.project__status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--bg); background: var(--volt); border-radius: 100px; padding: 3px 11px; }
.project__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 3vw, 40px); margin: 14px 0 14px; letter-spacing: -0.01em; }
.project__desc { color: var(--text-dim); margin-bottom: 22px; max-width: 46ch; }
.project__desc em { color: var(--text-mute); font-family: var(--font-serif); font-style: italic; }
.project__explain { margin: 0 0 20px; display: grid; gap: 4px; max-width: 46ch; }
.project__explain dt { font-family: var(--font-display); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-mute); margin-top: 8px; }
.project__explain dd { margin: 2px 0 0; color: var(--text-dim); }
.project__tech { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.project__tech span { font-size: 12px; font-family: var(--font-display); color: var(--text-dim); border: 1px solid var(--line); border-radius: 100px; padding: 5px 13px; }
.project__link { margin-top: auto; display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 500; color: var(--text); border-bottom: 1px solid var(--line-2); padding-bottom: 4px; transition: gap .3s var(--ease), color .3s, border-color .3s; }
.project__link:hover { gap: 16px; color: var(--volt); border-color: var(--volt); }
.project__link.is-static { color: var(--text-mute); border: none; cursor: default; }
.project__link.is-soon { color: var(--text-mute); }
.project__link.is-soon::after { content: "soon"; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: #06210a; background: var(--text-mute); border-radius: 100px; padding: 2px 8px; }

/* CellSight mini-demo visual */
.cs-demo { width: 78%; aspect-ratio: 16/10; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(8,10,14,0.7); padding: 22px; position: relative; backdrop-filter: blur(2px); }
.cs-demo__bars { display: flex; align-items: flex-end; gap: 8px; height: 60%; }
.cs-demo__bars i { flex: 1; background: linear-gradient(var(--volt), rgba(227,162,60,0.2)); border-radius: 3px 3px 0 0; animation: barGrow 2.6s var(--ease) infinite alternate; }
.cs-demo__bars i:nth-child(2){animation-delay:.2s}.cs-demo__bars i:nth-child(3){animation-delay:.4s}.cs-demo__bars i:nth-child(4){animation-delay:.6s}.cs-demo__bars i:nth-child(5){animation-delay:.8s}.cs-demo__bars i:nth-child(6){animation-delay:1s}.cs-demo__bars i:nth-child(7){animation-delay:1.2s}
@keyframes barGrow { from { height: 30%; } to { height: 95%; } }
.cs-demo__line { position: absolute; left: 22px; right: 22px; bottom: 40px; height: 2px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); opacity: .8; }
.cs-demo__chip { position: absolute; top: 16px; right: 16px; font-family: var(--font-display); font-size: 11px; letter-spacing: .08em; color: var(--cyan); border: 1px solid rgba(31,227,255,0.4); border-radius: 100px; padding: 4px 10px;
  /* never clip or collide with the bars behind it */
  max-width: calc(100% - 32px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: rgba(8,10,14,0.85); backdrop-filter: blur(3px); }

/* ---------- Skills ---------- */
.skills__rows { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(40px, 5vw, 64px); }
.skillrow { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; }
.skillrow__track { display: flex; gap: 16px; width: max-content; animation: marquee 36s linear infinite; }
.skillrow--rev .skillrow__track { animation-direction: reverse; animation-duration: 44s; }
.skillrow__track span { font-family: var(--font-display); font-weight: 500; font-size: clamp(18px, 2vw, 26px); color: var(--text-dim); border: 1px solid var(--line); border-radius: 100px; padding: 8px 22px; white-space: nowrap; transition: color .3s, border-color .3s; }
.skillrow__track span:hover { color: var(--volt); border-color: var(--volt); }
.skills__cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.catcard { padding: clamp(26px, 3vw, 38px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform .4s var(--ease), border-color .4s; }
.catcard:hover { transform: translateY(-4px); border-color: var(--line-2); }
.catcard h4 { font-family: var(--font-display); font-weight: 500; font-size: 20px; margin-bottom: 12px; }
.catcard h4::before { content: "→ "; color: var(--volt); }
.catcard p { color: var(--text-dim); }

/* ---------- Channels ---------- */
/* ===== Follow the journey — subscribe CTA + live stats ===== */
.follow { display: grid; grid-template-columns: minmax(260px, 0.9fr) 2fr; gap: clamp(18px, 2.4vw, 34px); align-items: stretch; margin: 8px 0 34px; }
@media (max-width: 860px){ .follow { grid-template-columns: 1fr; } }
.follow__yt { display: flex; align-items: center; gap: 16px; padding: clamp(20px, 2.4vw, 30px); border-radius: var(--radius-lg, 20px); text-decoration: none; color: #fff;
  background: linear-gradient(135deg, #c4842a 0%, var(--volt) 55%, #edc06a 100%); box-shadow: 0 14px 40px -16px rgba(227,162,60,0.55); transition: transform .4s var(--ease), box-shadow .4s; }
.follow__yt:hover { transform: translateY(-3px); box-shadow: 0 22px 54px -16px rgba(227,162,60,0.7); }
.follow__yt-ico { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: rgba(20,16,9,0.82); color: #fff; font-size: 18px; padding-left: 3px; }
.follow__yt-txt { display: flex; flex-direction: column; line-height: 1.25; color: #1a1408; }
.follow__yt-txt b { font-family: var(--font-display); font-weight: 600; font-size: 1.06rem; }
.follow__yt-txt i { font-style: normal; opacity: 0.8; font-size: 0.86rem; }
.fstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 560px){ .fstats { grid-template-columns: repeat(2, 1fr); } }
.fstat { padding: clamp(16px, 2vw, 24px) 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-align: center; transition: transform .4s var(--ease), border-color .4s; }
.fstat:hover { transform: translateY(-3px); border-color: var(--line-2); }
.fstat__num { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.fstat__lbl { display: block; margin-top: 8px; font-size: 0.78rem; letter-spacing: 0.02em; color: var(--text-dim); }
.channels__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.channel { position: relative; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; gap: 10px; min-height: 170px; transition: transform .4s var(--ease), border-color .4s, background .4s; overflow: hidden; }
.channel::after { content: "↗"; position: absolute; top: 22px; inset-inline-end: 22px; color: var(--text-mute); transition: color .3s, transform .3s var(--ease); }
.channel:hover { transform: translateY(-5px); border-color: var(--volt); background: var(--surface-2); }
.channel:hover::after { color: var(--volt); transform: translate(3px, -3px); }
.channel__ico { font-size: 26px; }
.channel__name { font-family: var(--font-display); font-weight: 500; font-size: 19px; margin-top: auto; }
.channel__handle { font-size: 13px; color: var(--text-mute); font-family: var(--font-display); }
.channel.is-soon { opacity: .62; }
.channel.is-soon::after { content: "soon"; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: #06210a; background: var(--text-mute); border-radius: 100px; padding: 2px 8px; top: 18px; }
.channel.is-soon:hover { border-color: var(--line-2); transform: translateY(-2px); }
html[lang="de"] .channel.is-soon::after { content: "bald"; }
html[lang="fa"] .channel.is-soon::after { content: "به‌زودی"; letter-spacing: 0; text-transform: none; }

/* ---------- Support ---------- */
.support__sahar { max-width: 720px; margin: 4px 0 30px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text-dim); font-size: 0.92rem; line-height: 1.55; }
.support__sahar strong { color: var(--volt); font-weight: 600; }
.support-btn.is-soon:hover { cursor: default; }
.channels__grid.support__grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px){ .channels__grid.support__grid { grid-template-columns: 1fr; } }
.support-btn .channel__ico svg { display: block; width: 24px; height: 24px; }

/* ── inline video gallery (click a poster → the recital plays right here) ──────── */
.vgallery { display: flex; flex-direction: column; gap: 18px; }
.vid { position: relative; display: block; width: 100%; aspect-ratio: 16/9; padding: 0; margin: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer;
  background: var(--bg-2); text-align: left; font: inherit;
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s; }
.vid:hover { transform: translateY(-4px); border-color: var(--volt); box-shadow: 0 22px 60px -26px rgba(227,162,60,.45); }
.vid__thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.9) brightness(.78); transition: filter .4s, transform .6s var(--ease); }
.vid:hover .vid__thumb { filter: saturate(1) brightness(.9); transform: scale(1.04); }
.vid__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 60px; height: 60px; border-radius: 50%; background: var(--volt);
  box-shadow: 0 10px 34px -6px rgba(227,162,60,.6); display: grid; place-items: center;
  transition: transform .35s var(--ease), background .3s; }
.vid__play::after { content: ""; margin-left: 4px; border-style: solid; border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--bg); }
.vid:hover .vid__play { transform: translate(-50%,-50%) scale(1.12); }
.vid__meta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex;
  flex-direction: column; gap: 1px; padding: 16px 18px; background: linear-gradient(transparent, rgba(6,6,8,.9)); }
.vid__name { font-weight: 700; font-size: 1.02rem; color: var(--text); letter-spacing: .2px; }
.vid__handle { font-size: .78rem; color: var(--text-mute); }
.vid--hero .vid__play { width: 80px; height: 80px; }
.vid--hero .vid__name { font-size: 1.4rem; }
.vid--hero .vid__handle { font-size: .9rem; }
.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.vid--playing { cursor: default; transform: none; }
.vid--playing .vid__thumb, .vid--playing .vid__play, .vid--playing .vid__meta { opacity: 0; pointer-events: none; transition: opacity .25s; }
.vid__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.vid--all { display: flex; align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(160deg, var(--surface), var(--bg-2)); text-decoration: none; }
.vid--all:hover { transform: translateY(-4px); }
.vid--all .vid__allico { color: var(--volt); font-size: 1.5rem; }
.vid--all .vid__meta { position: static; padding: 0; background: none; }
.vid--all .vid__meta--c { align-items: center; text-align: center; }
@media (max-width: 820px) { .vgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .vgrid { grid-template-columns: 1fr; } }

/* ---------- Now + interests ---------- */
.now__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); margin-bottom: clamp(60px, 8vw, 110px); }
.now__updated { font-family: var(--font-display); font-size: 13px; color: var(--text-mute); margin: 8px 0 26px; }
.now__list { list-style: none; }
.now__list li { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--text-dim); }
.now__list li strong { color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.chip { font-family: var(--font-display); font-size: 15px; color: var(--text-dim); border: 1px solid var(--line); border-radius: 100px; padding: 10px 20px; transition: color .3s, border-color .3s, transform .3s var(--ease); }
.chip:hover { color: var(--volt); border-color: var(--volt); transform: translateY(-3px); }

.notes__head { margin-bottom: 30px; }
.notes__head h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 3vw, 36px); margin-top: 8px; }
.notes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.note { padding: clamp(24px, 3vw, 34px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform .4s var(--ease), border-color .4s; }
.note:hover { transform: translateY(-4px); border-color: var(--line-2); }
.note__meta { font-family: var(--font-display); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--volt); }
.note h4 { font-family: var(--font-display); font-weight: 500; font-size: 21px; line-height: 1.2; margin: 14px 0 10px; }
.note p { color: var(--text-dim); font-size: 15px; }
.note.is-soon { opacity: .72; }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact__inner { max-width: 1000px; margin: 0 auto; }
.contact__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(36px, 7vw, 92px); line-height: 1.02; letter-spacing: -0.02em; margin: 18px 0 26px; }
.contact__title em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.contact__sub { color: var(--text-dim); max-width: 560px; margin: 0 auto 40px; font-size: clamp(16px, 1.5vw, 19px); }
.contact__mail { display: inline-block; max-width: 100%; overflow-wrap: anywhere; font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 4vw, 46px); padding-bottom: 8px; border-bottom: 2px solid var(--line-2); transition: color .3s, border-color .3s; }
.contact__mail:hover { color: var(--volt); border-color: var(--volt); }
/* narrow phones: scale the long address down so it never clips (375px / 360px) */
@media (max-width: 480px){ .contact__mail { font-size: clamp(16px, 5.4vw, 24px); } }
.contact__socials { display: flex; gap: 26px; justify-content: center; margin-top: 50px; flex-wrap: wrap; }
.contact__socials a { font-family: var(--font-display); color: var(--text-dim); position: relative; transition: color .3s; }
.contact__socials a:hover { color: var(--volt); }
.contact__socials a.is-soon { color: var(--text-mute); }
.contact__socials a.is-soon::after { content: " ·soon"; font-size: 11px; color: var(--text-mute); }

/* ---------- Footer ---------- */
.footer { max-width: var(--maxw); margin: 0 auto; padding: 50px var(--gutter) 40px; border-top: 1px solid var(--line); }
.footer__row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.footer__logo { font-family: var(--font-display); font-weight: 600; font-size: 22px; }
.footer__logo i { color: var(--volt); font-style: normal; }
.footer__top { font-family: var(--font-display); color: var(--text-dim); transition: color .3s; }
.footer__top:hover { color: var(--volt); }
.footer__row--sub { margin-top: 24px; color: #80858f; font-size: 13px; } /* a11y: 5.5:1 on bg (--text-mute was 4.0:1, below WCAG AA) */

/* ---------- Reveal animations ---------- */
[data-reveal] { opacity: 0; transform: translateY(38px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-split] .word { display: inline-block; overflow: hidden; vertical-align: top; }
[data-split] .word > span { display: inline-block; transform: translateY(110%); transition: transform .8s var(--ease-out); }
[data-split].is-in .word > span { transform: translateY(0); }
/* Re-apply gradient on the inner (transformed) spans, since background-clip:text
   on the parent <em> doesn't paint through transformed descendants. */
[data-split] em .word > span {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .about__grid { grid-template-columns: 1fr; }
  .about__portrait { position: relative; top: 0; max-width: 340px; }
  .channels__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat { border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .research__grid, .projects, .skills__cats, .notes__grid, .now__grid { grid-template-columns: 1fr; }
  .rcard--wide, .project--feature { grid-column: span 1; }
  .project--feature { flex-direction: column; }
  .project__media { min-height: 220px; }
  .hero__scroll { display: none; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .stats__grid { grid-template-columns: 1fr; }
  .stat { border-right: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal], [data-split] .word > span { opacity: 1 !important; transform: none !important; }
  .marquee__track, .skillrow__track { animation: none !important; }
  .role-cycle > span { transition: none !important; }
}

/* =====================================================================
   v2 — Multi-hyphenate sections
   ===================================================================== */

/* ---- Hero role cycler ---- */
.role-line { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 30px; font-family: var(--font-display); }
.role-line__pre { font-size: clamp(20px, 3vw, 34px); color: var(--text-dim); font-weight: 400; }
.role-cycle { position: relative; font-size: clamp(28px, 5vw, 58px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.role-cycle > span { display: inline-block; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; transition: transform .45s var(--ease), opacity .45s var(--ease); }
.role-cycle.swapping > span { opacity: 0; transform: translateY(-32%); }

/* ---- Worlds (facets index) ---- */
.facets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.facet { position: relative; padding: clamp(28px, 3vw, 40px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; min-height: 230px; display: flex; flex-direction: column;
  transform: perspective(1000px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateY(var(--ty,0px)); will-change: transform;
  transition: transform .5s var(--ease), border-color .45s, background .45s; }
.facet.is-tilting { transition: border-color .45s, background .45s; }  /* instant tilt-follow while pointer is inside */
.facet::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 80% 0%, rgba(227,162,60,0.08), transparent 60%); opacity: 0; transition: opacity .45s; z-index: 0; }
/* spotlight that tracks the cursor */
.facet::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(227,162,60,0.20), transparent 46%); }
.facet > * { position: relative; z-index: 1; }
.facet:hover, .facet:focus-visible { --ty: -6px; border-color: var(--volt); background: var(--surface-2); }
.facet:hover::before { opacity: 1; }
.facet:hover::after { opacity: 1; }
@media (prefers-reduced-motion: reduce){ .facet { transform: translateY(var(--ty,0px)); } }
.facet__no { font-family: var(--font-display); font-size: 13px; color: var(--text-mute); letter-spacing: .1em; }
.facet__ico { font-size: 30px; margin: 14px 0 6px; filter: drop-shadow(0 0 12px rgba(227,162,60,.35)); }
.facet h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 8px; }
.facet p { color: var(--text-dim); font-size: 15px; max-width: 30ch; }
.facet__go { margin-top: auto; padding-top: 18px; font-family: var(--font-display); font-size: 14px; color: var(--volt); opacity: 0; transform: translateX(-8px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.facet:hover .facet__go { opacity: 1; transform: translateX(0); }

/* ---- Facet section headers ---- */
.facet-sec { border-top: 1px solid var(--line); }
.facet-head { display: flex; align-items: flex-start; gap: clamp(18px, 3vw, 40px); margin-bottom: 36px; }
.facet-head__no { font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 7vw, 96px); line-height: 0.9; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .85; }
.hint { display: inline; color: var(--text-mute); font-size: .85em; font-family: var(--font-display); }
.hint code, code { background: rgba(255,255,255,0.06); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; font-size: .9em; color: var(--cyan); font-family: var(--font-display); }
.stats__grid--inset { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 36px 0; }
.stats__grid--inset .stat { padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 40px); border-bottom: none; }

/* ---- Artist gallery ---- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.art { position: relative; aspect-ratio: 4/5; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding: 0; text-align: left; }
.art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.art:hover img { transform: scale(1.05); }
.art__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; font-family: var(--font-display); font-size: 14px; color: var(--text); background: linear-gradient(transparent, rgba(0,0,0,0.6)); z-index: 2; }
.art__cap i { color: var(--text-mute); font-style: italic; }
.art::after { content: ""; position: absolute; inset: 0; opacity: .9; }
.art--a::after { background: linear-gradient(135deg, #16233f, #0a0b0f), radial-gradient(circle at 28% 26%, rgba(31,227,255,0.45), transparent 55%); }
.art--b::after { background: linear-gradient(135deg, #2a1b3f, #0a0b0f), radial-gradient(circle at 70% 30%, rgba(227,162,60,0.4), transparent 55%); }
.art--c::after { background: linear-gradient(135deg, #1b3f2c, #0a0b0f), radial-gradient(circle at 40% 70%, rgba(111,92,255,0.45), transparent 55%); }
.art--d::after { background: linear-gradient(135deg, #3f2a1b, #0a0b0f), radial-gradient(circle at 60% 40%, rgba(255,160,74,0.4), transparent 55%); }
.art--e::after { background: linear-gradient(135deg, #1b2b3f, #0a0b0f), radial-gradient(circle at 30% 60%, rgba(227,162,60,0.35), transparent 55%); }
.art--f::after { background: linear-gradient(135deg, #321b3f, #0a0b0f), radial-gradient(circle at 70% 70%, rgba(31,227,255,0.4), transparent 55%); }
.art img:not(.is-missing) ~ .art__cap { background: linear-gradient(transparent, rgba(0,0,0,0.7)); }
.art img:not(.is-missing) + .art__cap, .art:has(img:not(.is-missing))::after { /* hide gradient placeholder when real image exists */ }
.art:has(img:not(.is-missing))::after { display: none; }

/* ---- Athlete ---- */
.ath-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ath-card { padding: clamp(28px, 3vw, 40px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; gap: 8px; transition: transform .4s var(--ease), border-color .4s; }
.ath-card:hover { transform: translateY(-5px); border-color: var(--line-2); }
.ath-card__k { font-family: var(--font-display); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--volt); }
.ath-card__v { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3vw, 38px); }
.ath-card__v i { color: var(--text-mute); font-style: italic; font-weight: 400; font-size: .6em; }
.ath-card__s { color: var(--text-mute); font-size: 14px; }
.ath-quote { margin-top: 36px; font-family: var(--font-serif); font-style: italic; font-size: clamp(24px, 4vw, 44px); line-height: 1.3; color: var(--text-dim); max-width: 20ch; }

/* ---- Leader / principles ---- */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.principle { padding: clamp(26px, 3vw, 38px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform .4s var(--ease), border-color .4s; }
.principle:hover { transform: translateY(-4px); border-color: var(--line-2); }
.principle__no { font-family: var(--font-display); color: var(--volt); font-size: 14px; letter-spacing: .1em; }
.principle h3 { font-family: var(--font-display); font-weight: 500; font-size: 22px; margin: 10px 0 8px; }
.principle p { color: var(--text-dim); }

/* ---- Poet ---- */
.poem-toggle { display: inline-flex; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 100px; margin-bottom: 40px; }
.poem-toggle__btn { font-family: var(--font-display); font-size: 14px; color: var(--text-dim); background: transparent; border: none; border-radius: 100px; padding: 9px 20px; transition: background .3s, color .3s; }
.poem-toggle__btn.is-active { background: var(--volt); color: #06210a; }
.poem { display: none; max-width: 760px; }
.poem.is-active { display: block; }
.poem blockquote { font-family: var(--font-serif); font-style: italic; font-size: clamp(26px, 4.4vw, 50px); line-height: 1.45; color: var(--text); }
.poem blockquote p { margin: 0; }
.poem figcaption { margin-top: 28px; font-family: var(--font-display); font-size: 13px; color: var(--text-mute); }
.poem--fa { font-family: "Vazirmatn", var(--font-body); }
.poem--fa blockquote { font-style: normal; font-size: clamp(24px, 4.2vw, 46px); line-height: 1.9; }

/* ---- Personal / cats ---- */
.personal__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 70px); }
.cats h3, .interests h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 14px; }
.cats__note { color: var(--text-dim); margin-bottom: 26px; }
.cats__row { display: flex; gap: 18px; flex-wrap: wrap; }
.cat { flex: 1; min-width: 150px; }
.cat__pic { position: relative; aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: linear-gradient(160deg, var(--surface), var(--bg-2)); display: grid; place-items: center; }
.cat__pic img { width: 100%; height: 100%; object-fit: cover; }
.cat__pic img.is-missing { display: none; }
.cat__emoji { font-size: 64px; }
.cat__pic img:not(.is-missing) ~ .cat__emoji { display: none; }
/* Jupiter — in memory */
.cat--memorial .cat__pic { background: radial-gradient(120% 120% at 50% 30%, rgba(227,162,60,0.10), var(--bg-2) 70%); border-color: var(--line-2); }
.cat--memorial .cat__emoji { opacity: 0.92; filter: saturate(0.85); animation: catGlow 6s var(--ease, ease) infinite; }
@keyframes catGlow { 0%,100% { text-shadow: 0 0 0 transparent; transform: translateY(0); } 50% { text-shadow: 0 0 26px rgba(227,162,60,0.55); transform: translateY(-3px); } }
.cat__memorial { display: block; font-family: var(--font-serif, serif); font-style: italic; font-size: 0.82rem; letter-spacing: 0.04em; color: var(--volt); opacity: 0.85; margin-top: 2px; }
@media (prefers-reduced-motion: reduce){ .cat--memorial .cat__emoji { animation: none; } }
.cat__name { display: block; margin-top: 12px; font-family: var(--font-display); font-weight: 500; }
.cat__name i { color: var(--text-mute); font-style: italic; font-weight: 400; }
.cat__bio { display: block; margin-top: 7px; font-size: 13px; line-height: 1.55; color: var(--text-dim); }
.now { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 26px; }
.now h4 { font-family: var(--font-display); font-weight: 500; font-size: 16px; color: var(--volt); margin-bottom: 14px; letter-spacing: .05em; }

/* ---- Lightbox ---- */
.lightbox { position: fixed; inset: 0; z-index: 9200; background: rgba(4,4,6,0.94); display: none; place-items: center; padding: 5vw; backdrop-filter: blur(8px); }
.lightbox.is-open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 12px; border: 1px solid var(--line-2); }
.lightbox__close { position: absolute; top: 26px; right: 30px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--text); font-size: 18px; }
.lightbox__close:hover { border-color: var(--volt); color: var(--volt); }

/* ---- v2 responsive ---- */
@media (max-width: 1024px) {
  .facets, .gallery { grid-template-columns: repeat(2, 1fr); }
  .ath-cards { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .personal__grid { grid-template-columns: 1fr; }
  .stats__grid--inset .stat { border-right: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .facets, .gallery { grid-template-columns: 1fr; }
  .facet-head { gap: 14px; }
  .role-line { gap: 8px; }
}

/* =====================================================================
   i18n — language switch · Persian font · right-to-left
   (appended; additive — the default English design is unchanged)
   ===================================================================== */
.lang-switch {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line-2); border-radius: 100px; overflow: hidden;
  margin-left: 6px;
}
.lang-btn {
  background: transparent; border: 0; cursor: pointer;
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: .04em; color: var(--text-mute);
  padding: 7px 11px; line-height: 1; transition: color .25s, background .25s;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.is-active { background: var(--volt); color: #06210a; }
@media (hover: hover) and (pointer: fine) { .lang-btn { cursor: none; } }

/* prose blocks in the new art-life sections */
.sec-prose { max-width: 64ch; }
.sec-prose p { color: var(--text-dim); margin-bottom: 1.1em; }
.sec-prose p:last-child { margin-bottom: 0; }
.sec-link { margin-top: 22px; }

/* Real-photo media block inside a facet section (e.g. the concert in Music) */
.sec-media { margin-top: 44px; }
/* stage photo gallery (lightbox shots) */
.shot { position: relative; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; background: var(--surface-2); display: block; width: 100%; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(1.03) contrast(1.02); transition: transform .6s var(--ease); }
.shot:hover img { transform: scale(1.045); }
.shot:hover { border-color: var(--volt); }
.shot__zoom { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: rgba(20,16,9,0.72); color: var(--volt); font-size: 15px; opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s; pointer-events: none; }
.shot:hover .shot__zoom, .shot:focus-visible .shot__zoom { opacity: 1; transform: translateY(0); }
.shot:focus-visible { outline: 2px solid var(--volt); outline-offset: 2px; }
.shot--feature { aspect-ratio: 16 / 7; margin-bottom: 14px; }
.shot--feature img { aspect-ratio: 16 / 7; }
.stage-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stage-gallery .shot { aspect-ratio: 4 / 5; }
.sec-media__hint { color: var(--text-mute); font-weight: 400; opacity: 0.8; }
@media (max-width: 720px){ .stage-gallery { grid-template-columns: repeat(2, 1fr); } .shot--feature { aspect-ratio: 16 / 9; } .shot--feature img { aspect-ratio: 16 / 9; } }
.sec-media__grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 14px; }
.sec-media__grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10;
  border-radius: var(--radius); border: 1px solid var(--line); display: block;
  filter: saturate(1.02) contrast(1.02); transition: transform .5s var(--ease), border-color .4s; }
.sec-media__grid img:hover { transform: translateY(-3px); border-color: var(--line-2); }
.sec-media__cap { margin-top: 16px; font-family: var(--font-display); font-size: 13px;
  letter-spacing: .01em; color: var(--text-mute); max-width: 70ch; }
@media (max-width: 720px) { .sec-media__grid { grid-template-columns: 1fr; } }
.sec-link a { color: var(--volt); font-family: var(--font-display); font-size: 14px; letter-spacing: .03em; }
.sec-link a:hover { color: var(--text); }

/* Translations / Daricheh — "coming soon" pill (stub section) */
.dar-soon { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px;
  font-family: var(--font-display); font-size: 14px; letter-spacing: .02em; color: var(--text-dim);
  border: 1px solid var(--line-2); border-radius: 100px; padding: 10px 20px; background: var(--surface); }
.dar-soon__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--volt);
  box-shadow: 0 0 12px var(--volt); animation: pulse 2s infinite; flex: none; }
@media (prefers-reduced-motion: reduce){ .dar-soon__dot { animation: none; } }

/* Shiraz House — Archive: placeholder "coming soon" gallery (no copyrighted images) */
.arc-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.arc-shot { position: relative; aspect-ratio: 4 / 5; border: 1px solid var(--line);
  border-radius: var(--radius); background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.018) 0 14px, transparent 14px 28px),
    var(--surface-2);
  display: grid; place-items: center; overflow: hidden; }
.arc-shot__mark { font-family: var(--font-display); color: var(--volt); opacity: .5; font-size: 22px; }
@media (max-width: 720px){ .arc-gallery { grid-template-columns: repeat(2, 1fr); } }

/* Persian: Vazirmatn + calmer line-height */
html[lang="fa"] body { font-family: "Vazirmatn", var(--font-body); }
html[lang="fa"] .hero__title,
html[lang="fa"] .section__title,
html[lang="fa"] .contact__title { font-family: "Vazirmatn", var(--font-display); font-weight: 700; line-height: 1.45; }
html[lang="fa"] .section__lead,
html[lang="fa"] .hero__sub,
html[lang="fa"] .sec-prose p { line-height: 2.05; }
html[lang="fa"] .eyebrow,
html[lang="fa"] .menu__idx { font-family: "Vazirmatn", var(--font-display); }

/* right-to-left layout */
html[dir="rtl"] .lang-switch { margin-left: 0; margin-right: 6px; }
html[dir="rtl"] .nav__links,
html[dir="rtl"] .facet-head,
html[dir="rtl"] .role-line { direction: rtl; }
html[dir="rtl"] .section__head,
html[dir="rtl"] .about__body,
html[dir="rtl"] .sec-prose,
html[dir="rtl"] .facet,
html[dir="rtl"] .contact__inner { text-align: right; }
html[dir="rtl"] .marquee { direction: ltr; }   /* keep decorative marquee LTR */
html[dir="rtl"] .skillrow { direction: ltr; }  /* tech-term marquee stays LTR too */
html[dir="rtl"] .cs-demo { direction: ltr; }   /* the CellSight mock is an LTR artifact */
/* numbers with +/− suffixes must not flip in RTL: "340+" not "+340" */
html[dir="rtl"] .stat__num,
html[dir="rtl"] .fstat__num { direction: ltr; unicode-bidi: isolate; }
/* @handles, mail, clock: direction follows their own first strong character */
html[dir="rtl"] .channel__handle,
html[dir="rtl"] .vid__handle,
html[dir="rtl"] .follow__yt-txt i,
html[dir="rtl"] .menu__clock,
html[dir="rtl"] .contact__mail { unicode-bidi: plaintext; }
/* the facet arrow glides toward the reading direction */
html[dir="rtl"] .facet__go { transform: translateX(8px); }
html[dir="rtl"] .facet:hover .facet__go,
html[dir="rtl"] .facet:focus-visible .facet__go { transform: translateX(-7px); }


/* =====================================================================
   Professional polish — focus states, scrollbar, anchor offset,
   micro-interactions. Appended last; the prefers-reduced-motion block
   above already neutralises the transitions for motion-sensitive users.
   ===================================================================== */

/* Keyboard focus: a clean, branded ring for keyboard users only (mouse clicks
   don't show it). A real accessibility + professionalism win. */
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 8px;
}
:focus:not(:focus-visible) { outline: none; }

/* Anchor links land below the fixed header instead of under it. */
section[id], [id].section, .facet-sec[id] { scroll-margin-top: clamp(72px, 11vh, 104px); }

/* Branded, unobtrusive scrollbar that matches the dark theme. */
* { scrollbar-width: thin; scrollbar-color: #262a33 transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #262a33; border-radius: 20px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #343945; }

/* Tactile press feedback. */
.btn:active, .channel:active, .facet:active, .project__link:active, .lang-btn:active {
  transform: translateY(1px) scale(0.995);
}

/* The "Enter ->" arrow glides on hover / keyboard focus. */
.facet__go { transition: transform .4s var(--ease), color .3s var(--ease); }
.facet:hover .facet__go, .facet:focus-visible .facet__go { transform: translateX(7px); color: var(--volt); }

/* Subtle living zoom on the real photos inside clipped frames. */
.cat__pic img, .sec-media__grid img { transition: transform .6s var(--ease), border-color .4s; }
.cat__pic:hover img { transform: scale(1.05); }

/* Active section is highlighted in the nav (set by js/polish.js) — reuses the
   existing underline so it feels native. */
.nav__links a.is-current { color: var(--text); }
.nav__links a.is-current::after { width: 100%; }

/* Don't let real photos be dragged out as ghost images. */
img { -webkit-user-drag: none; user-select: none; }
