/* =========================================================================
   Jo Nasser — Portfolio
   Dark · cinematic · editorial. One stylesheet, token-driven.
   ========================================================================= */

:root {
  --bg:        #050505;
  --bg-2:      #0a0c10;
  --ink:       #ebebeb;
  --ink-dim:   rgba(235, 235, 235, 0.60);
  --ink-faint: rgba(235, 235, 235, 0.34);
  --line:      rgba(235, 235, 235, 0.10);
  --line-soft: rgba(235, 235, 235, 0.055);

  --blue:      #005487;
  --blue-lift: #0a74b8;
  --blue-glow: rgba(0, 110, 180, 0.35);
  --char:      #3b3b3b;
  --orange:    #e4751b;
  --teal:      #039393;

  --glass:     rgba(255, 255, 255, 0.045);
  --glass-2:   rgba(255, 255, 255, 0.07);
  --blur:      saturate(1.2) blur(13px);

  --font-display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-ar:      'IBM Plex Sans Arabic', 'Inter', sans-serif;

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

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--blue-lift); outline-offset: 3px; border-radius: 4px; }
.ar { font-family: var(--font-ar); direction: rtl; }

.skip {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 10px;
  transition: top .2s;
}
.skip:focus { top: 16px; }

/* ===================== Animated background =====================
   Two pre-blurred layers, transform-only motion (GPU-composited, no per-frame
   re-blur). A static gradient carries most of the colour so blur can stay light. */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background:
      radial-gradient(1100px 760px at 72% -12%, #0b131b 0%, transparent 60%),
      radial-gradient(900px 820px at -12% 108%, #080b10 0%, transparent 55%),
      var(--bg); }
/* No filter:blur — the radial-gradient falloff IS the softness, so the compositor
   never re-rasterizes a blurred texture per frame (the main desktop/high-DPI cost). */
.bg__blob { position: absolute; border-radius: 50%; opacity: .55; will-change: transform; }
.bg__blob--a { width: 62vw; height: 62vw; left: -16vw; top: -18vw;
  background: radial-gradient(circle at 42% 42%, rgba(0,84,135,.42), rgba(0,84,135,.12) 38%, transparent 72%);
  animation: drift-a 40s var(--ease) infinite alternate; }
.bg__blob--b { width: 56vw; height: 56vw; right: -16vw; top: 24vh;
  background: radial-gradient(circle at 50% 50%, rgba(10,116,184,.3), rgba(10,116,184,.08) 42%, transparent 72%);
  animation: drift-b 48s var(--ease) infinite alternate; }
@keyframes drift-a { to { transform: translate3d(7vw, 5vh, 0) scale(1.12); } }
@keyframes drift-b { to { transform: translate3d(-6vw, -4vh, 0) scale(1.1); } }

/* ===================== Glass + light-sweep ===================== */
.glass { background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
         border: 1px solid var(--line); }
.sweep { position: relative; overflow: hidden; isolation: isolate; }
.sweep::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,.16) 50%, transparent 68%);
  transform: translateX(-130%); transition: transform .65s var(--ease);
}
.sweep:hover::before, .sweep:focus-visible::before { transform: translateX(130%); }

/* ===================== Navigation ===================== */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; padding: 12px var(--gutter);
       display: flex; justify-content: center; transition: padding .4s var(--ease); }
.nav.is-scrolled { padding-top: 7px; }
.nav__inner { width: auto; max-width: min(100%, 1140px); display: inline-flex; align-items: center;
  gap: clamp(16px, 2.5vw, 32px); padding: 6px 8px 6px 20px; border-radius: 100px; }
.nav__brand { font-family: var(--font-display); font-weight: 800; letter-spacing: .14em;
  font-size: .82rem; margin-right: 0; white-space: nowrap; }
.nav__links { display: flex; gap: 4px; }
.nav__links a { padding: 7px 13px; border-radius: 100px; font-size: .8rem; color: var(--ink-dim);
                transition: color .25s, background .25s; white-space: nowrap; }
.nav__links a:hover { color: var(--ink); background: var(--glass-2); }
.nav__cta { padding: 8px 18px; border-radius: 100px; font-size: .8rem; font-weight: 500;
  background: linear-gradient(180deg, rgba(0,84,135,.55), rgba(0,84,135,.28));
  border: 1px solid rgba(120,190,235,.3); box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
  white-space: nowrap; }
.nav__cta:hover { background: linear-gradient(180deg, rgba(0,100,160,.7), rgba(0,84,135,.4)); }
.nav__burger { display: none; width: 42px; height: 42px; border-radius: 12px; position: relative; }
.nav__burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink);
  transition: transform .3s var(--ease), opacity .3s; }
.nav__burger span:nth-child(1) { top: 17px; } .nav__burger span:nth-child(2) { bottom: 17px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 90; background: rgba(5,5,5,.92);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  display: grid; place-items: center; opacity: 0; transition: opacity .35s var(--ease); }
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; }
.menu__links { display: grid; gap: 6px; text-align: center; }
.menu__links a { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 7vw, 3rem);
  letter-spacing: -.02em; padding: 6px 0; color: var(--ink-dim); transition: color .2s; }
.menu__links a:hover { color: var(--ink); }

/* ===================== Hero Animations ===================== */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroPortraitIn {
  from {
    opacity: 0;
    transform: scale(0.88);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes heroConnectsReveal {
  0% {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(10px) scale(0.96);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes heroConnectsShimmer {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgba(56, 139, 253, 0.25));
  }
  50% {
    filter: drop-shadow(0 0 22px rgba(122, 214, 255, 0.6));
  }
}

/* ===================== Hero ===================== */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  align-items: center; text-align: center; padding: 120px var(--gutter) 40px; position: relative; }
.hero__inner { max-width: 1080px; display: flex; flex-direction: column; align-items: center; }
.hero__portrait { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; object-position: 50% 12%;
  border: 1px solid var(--line); box-shadow: 0 0 0 6px rgba(255,255,255,.03), 0 20px 60px rgba(0,0,0,.6);
  margin-bottom: 30px;
  animation: heroPortraitIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
.hero__kicker { font-family: var(--font-display); font-weight: 700; letter-spacing: .4em;
  font-size: clamp(.7rem, 1.4vw, .85rem); color: var(--ink-dim); text-transform: uppercase; margin-bottom: 22px;
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both; }
.hero__headline { font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.7rem, 8.4vw, 7rem); line-height: .96; letter-spacing: -.035em;
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both; }
.hero__headline em { display: inline-block; font-style: normal;
  background: linear-gradient(100deg, #cfe6f5, var(--blue-lift) 55%, var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation:
    heroConnectsReveal 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both,
    heroConnectsShimmer 4s ease-in-out 1.5s infinite; }
.hero__copy { max-width: 660px; margin-top: 26px; color: var(--ink-dim);
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  animation: heroFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both; }
.hero__cta { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; justify-content: center;
  animation: heroFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.75s both; }
.hero__meta { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 26px;
  display: flex; justify-content: space-between; gap: 16px; font-size: .72rem; letter-spacing: .08em;
  color: var(--ink-faint); text-transform: uppercase;
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both; }
.hero__scroll { display: inline-flex; align-items: center; gap: 10px; }
.hero__scroll i { width: 18px; height: 28px; border: 1px solid var(--line); border-radius: 12px; position: relative; }
.hero__scroll i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 6px;
  margin-left: -1.5px; border-radius: 3px; background: var(--ink-dim); animation: scroll-dot 1.8s infinite; }
@keyframes scroll-dot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 30px; border-radius: 100px; font-size: .92rem; font-weight: 500; letter-spacing: .01em;
  transition: transform .3s var(--ease), box-shadow .3s, background .3s; }
.btn:hover { transform: translateY(-2px); }
.btn--glass { color: #eaf4fb;
  background: linear-gradient(180deg, rgba(0,84,135,.42), rgba(0,84,135,.16));
  border: 1px solid rgba(130,195,235,.32);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 -10px 24px rgba(0,60,100,.25), 0 14px 40px rgba(0,50,90,.28); }
.btn--glass:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 20px 50px var(--blue-glow); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); background: var(--glass); }
.btn--ghost:hover { background: var(--glass-2); }
.btn span { position: relative; z-index: 2; }

/* ===================== Section scaffolding ===================== */
/* content-visibility lets the browser skip rendering off-screen sections —
   a large paint/layout saving on a long page. intrinsic-size avoids scroll jump. */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(80px, 12vh, 150px) var(--gutter);
  content-visibility: auto; contain-intrinsic-size: auto 900px; }
.sh { max-width: 820px; margin-bottom: clamp(36px, 6vh, 64px); }
.sh--split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.sh__tag { display: inline-block; font-size: .72rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 20px; }
.sh__tag b { color: var(--blue-lift); font-weight: 600; }
.sh__title { font-family: var(--font-display); font-weight: 700; letter-spacing: -.03em;
  font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.02; }
.sh__copy { margin-top: 20px; color: var(--ink-dim); max-width: 560px; font-size: 1.02rem; }

/* Category sections (Short-Form / Long-Form) — elevated hierarchy */
.sh--cat { max-width: none; border-top: 1px solid var(--line); padding-top: 32px; }
.sh__cat { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display);
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .82rem;
  color: var(--blue-lift); margin-bottom: 18px; }
.sh__cat::before { content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: var(--blue-lift); box-shadow: 0 0 12px var(--blue-glow); }
.sh--cat .sh__title { font-size: clamp(2.3rem, 5.8vw, 4.1rem); max-width: 16ch; }

/* reveal-on-scroll — block reveal (prose sections) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* reveal-on-scroll — staggered groups (section headers + galleries).
   Children rise in sequence via a per-item --i index; transition only on the
   way in (hidden state has none), so there is no reverse animation or jank. */
.reveal-group .r-item { opacity: 0; transform: translateY(18px); }
.reveal-group.is-in .r-item {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: calc(var(--i, 0) * 55ms);
}

/* ===================== Short-Form grid (uniform 9:16) ===================== */
.grid-sf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-sf .card__media { aspect-ratio: 9 / 16 !important; }
.card { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--line-soft);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s; }
.card__media { position: relative; width: 100%; background: #0a0c10; }
.card[data-aspect="portrait"] .card__media { aspect-ratio: 9 / 16; }
.card[data-aspect="square"]   .card__media { aspect-ratio: 1 / 1; }
.card[data-aspect="landscape"].card, .card[data-aspect="landscape"] .card__media { aspect-ratio: 16 / 9; }
.card__media img, .card__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.card__media video { opacity: 0; transition: opacity .4s; }
.card.is-playing video { opacity: 1; }
.card__shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.72)); }
.card__title { position: absolute; left: 16px; right: 16px; bottom: 15px; z-index: 2;
  font-family: var(--font-display); font-weight: 600; font-size: .96rem; letter-spacing: .01em; line-height: 1.15; }
/* Solid translucent fill instead of backdrop-filter — 16 of these badges meant
   16 extra GPU layers re-sampling the page. A flat rgba reads the same. */
.card__lang { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: .62rem; letter-spacing: .14em;
  padding: 4px 9px; border-radius: 100px; background: rgba(8, 10, 14, .66); border: 1px solid var(--line);
  color: var(--ink-dim); }
.card__play { position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px;
  display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.4);
  border: 1px solid var(--line); opacity: 0; transition: opacity .3s; }
.card__play svg { width: 13px; height: 13px; fill: var(--ink); margin-left: 2px; }
.card:hover { transform: translateY(-8px) scale(1.025); z-index: 5;
  box-shadow: 0 30px 70px rgba(0,0,0,.6); border-color: var(--line); }
.card:hover .card__play { opacity: 1; }

/* ===================== 03 · Personal Brand (interactive slider) ========= */
.section--brand { position: relative; }
.section--brand::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -0.4);
  background: radial-gradient(900px 400px at 85% 0%, rgba(0,84,135,.10), transparent 60%); z-index: -1; }
.slider { position: relative; }
.slider__track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x proximity;
  padding: 4px 0 4px; margin: 0 calc(var(--gutter) * -1); padding-inline: var(--gutter);
  scrollbar-width: none; -ms-overflow-style: none; }
.slider__track::-webkit-scrollbar { display: none; }
.slider__track .card { flex: 0 0 auto; scroll-snap-align: start; width: clamp(240px, 24vw, 310px); }
.slider__track .card__media { aspect-ratio: 9 / 16 !important; }
.slider__bar { height: 3px; border-radius: 3px; background: var(--line); margin-top: 22px; overflow: hidden; }
.slider__fill { display: block; height: 100%; width: 0; border-radius: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-lift)); transition: width .1s linear; }
.slider__track { cursor: ew-resize; }

/* ===================== 04 · Editing & Motion (disciplines) ======== */
.disc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft);
  border: 1px solid var(--line-soft); border-radius: var(--radius-lg); overflow: hidden; }
.disc li { background: var(--bg); padding: 34px 30px; min-height: 210px; display: flex; flex-direction: column;
  transition: background .4s; position: relative; }
.disc li:hover { background: var(--bg-2); }
.disc__name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; }
.disc__note { margin-top: auto; padding-top: 24px; color: var(--ink-dim); font-size: .95rem; }
.disc li::after { content: ""; position: absolute; left: 30px; top: 30px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--blue-lift); box-shadow: 0 0 14px var(--blue-glow); }
.disc__name { padding-left: 22px; }

/* ===================== 05 · Clean Motion (blue-forward) =========== */
.section--motion { position: relative; }
.section--motion::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(1000px 600px at 50% 10%, rgba(0,84,135,.16), transparent 60%); z-index: -1; }
.section--motion .sh__tag b, .section--motion .sh__title { color: var(--ink); }
.section--motion .sh__title { background: linear-gradient(100deg, #eafaff, #6fb6e0 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.motiongrid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.mclip { position: relative; border-radius: var(--radius); overflow: hidden; background: #070b10;
  border: 1px solid rgba(80,150,200,.14); cursor: pointer;
  box-shadow: 0 0 0 1px rgba(0,84,135,.05), 0 20px 50px rgba(0,30,55,.3);
  transition: transform .5s var(--ease), box-shadow .4s, border-color .4s; }
.mclip:hover { transform: translateY(-6px); border-color: rgba(120,190,235,.4);
  box-shadow: 0 26px 60px var(--blue-glow); }
.mclip[data-aspect="portrait"] { grid-column: span 3; aspect-ratio: 9 / 16; }
.mclip[data-aspect="landscape"] { grid-column: 3 / span 8; aspect-ratio: 16 / 9; }
.mclip img, .mclip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.mclip video { opacity: 0; transition: opacity .5s; }
.mclip.is-playing video { opacity: 1; }
.mclip__tag { position: absolute; left: 14px; bottom: 12px; z-index: 2; font-size: .72rem; letter-spacing: .1em;
  color: #cfe8f7; text-shadow: 0 1px 10px rgba(0,0,0,.7); }
.motion__cta { display: flex; justify-content: center; margin-top: clamp(36px, 5vh, 52px); }

/* ===================== 06 · Long-Form ===================== */
.lf { margin-top: clamp(40px, 7vh, 80px); }
.lf:first-of-type { margin-top: 0; }
.lf__head { margin-bottom: 28px; }
.lf__heading { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: .02em; }
.lf__vsl { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.vsl { position: relative; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  border: 1px solid var(--line-soft); background: var(--bg-2);
  transition: transform .5s var(--ease), box-shadow .4s; }
.vsl:hover { transform: translateY(-6px); box-shadow: 0 30px 70px rgba(0,0,0,.55); }
.vsl__media { aspect-ratio: 16 / 9; position: relative; }
.vsl__media img { width: 100%; height: 100%; object-fit: cover; }
.vsl__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.6)); }
.vsl__play { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; }
.vsl__play span { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0,84,135,.4); border: 1px solid rgba(140,200,240,.4); backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px var(--blue-glow); transition: transform .3s; }
.vsl:hover .vsl__play span { transform: scale(1.08); }
.vsl__play svg { width: 22px; height: 22px; fill: #fff; margin-left: 3px; }
.vsl__cap { position: absolute; left: 22px; bottom: 18px; z-index: 2; }
.vsl__cap h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.vsl__cap p { font-size: .8rem; color: var(--ink-dim); letter-spacing: .04em; margin-top: 3px; }

.lf__ent { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.yt { position: relative; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  border: 1px solid var(--line-soft); background: #000;
  transition: transform .5s var(--ease), box-shadow .4s; }
.yt:hover { transform: translateY(-6px); box-shadow: 0 30px 70px rgba(0,0,0,.55); }
.yt__media { aspect-ratio: 16 / 9; position: relative; }
.yt__media img { width: 100%; height: 100%; object-fit: cover; }
.yt__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.55)); }
.yt__play { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; }
.yt__play span { width: 72px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(200,30,30,.9); box-shadow: 0 10px 40px rgba(0,0,0,.5); transition: transform .3s; }
.yt:hover .yt__play span { transform: scale(1.06); }
.yt__play svg { width: 26px; height: 26px; fill: #fff; margin-left: 3px; }
.yt__cap { position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 2; }
.yt__cap h4 { font-size: 1rem; font-weight: 600; line-height: 1.25; }
.yt__cap p { font-size: .76rem; color: var(--ink-dim); letter-spacing: .08em; text-transform: uppercase; margin-top: 6px; }
.yt__ext { display: inline-block; margin-top: 10px; font-size: .78rem; color: #9fd0ee;
  border-bottom: 1px solid rgba(159,208,238,.4); padding-bottom: 1px; transition: color .2s; }
.yt__ext:hover { color: #fff; }
.modal__yt { position: absolute; left: 14px; bottom: 12px; z-index: 5; font-size: .82rem; color: #fff;
  background: rgba(200,30,30,.9); padding: 8px 14px; border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.modal__yt:hover { background: rgba(220,40,40,1); }

/* ===================== About ===================== */
.about { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.about__copy { font-size: clamp(1.08rem, 1.9vw, 1.34rem); line-height: 1.62; color: #d7d7d7; }
.about__label { font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-faint); }
.about__skills ul { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.skill { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 16px;
  padding: 13px 16px; border: 1px solid var(--line); border-radius: 15px; background: var(--glass);
  transition: border-color .3s, transform .3s var(--ease); }
.skill:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); transform: translateX(3px); }
.skill__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--c);
  background: #0b0f14; border: 1px solid color-mix(in srgb, var(--c) 42%, transparent);
  box-shadow: inset 0 0 20px color-mix(in srgb, var(--c) 16%, transparent); }
.skill__name { font-weight: 500; font-size: 1rem; }
.skill__bars { display: inline-flex; gap: 5px; }
.skill__bars i { width: 18px; height: 5px; border-radius: 3px; background: var(--line); }
.skill__bars i.on { background: var(--blue-lift); box-shadow: 0 0 8px var(--blue-glow); }
.skill__level { font-size: .73rem; color: var(--ink-dim); letter-spacing: .03em; min-width: 8.5em; text-align: right; }

/* ===================== 08 · Contact ===================== */
.section--contact { text-align: center; }
.contact { max-width: 760px; margin: 0 auto; }
.contact__title { font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em;
  font-size: clamp(2.3rem, 6.5vw, 5rem); line-height: 1; margin-top: 10px; }
.contact__copy { color: var(--ink-dim); margin: 24px auto 0; max-width: 520px; font-size: 1.05rem; }
.contact__actions { display: flex; gap: 14px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.social { display: flex; gap: 14px; justify-content: center; margin-top: 46px; }
.social a { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--glass-2);
  transition: transform .3s var(--ease), border-color .3s, background .3s; }
.social a:hover { transform: translateY(-4px); border-color: rgba(140,200,240,.5); background: var(--glass-2); }
.social svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.6; }
.foot { max-width: var(--maxw); margin: 80px auto 0; padding: 30px var(--gutter) 0; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; gap: 16px; font-size: .78rem; color: var(--ink-faint); flex-wrap: wrap; }

/* ===================== Cinema modal ===================== */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(2,3,5,.82);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); opacity: 0; transition: opacity .35s; }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__stage { position: relative; z-index: 2; max-width: min(1180px, 94vw); max-height: 90svh;
  transform: scale(.96); opacity: 0; transition: transform .4s var(--ease), opacity .35s; }
.modal.is-open .modal__stage { transform: scale(1); opacity: 1; }
.modal__close { position: absolute; top: -14px; right: -14px; z-index: 5; width: 44px; height: 44px;
  border-radius: 50%; display: grid; place-items: center; background: var(--glass-2);
  border: 1px solid var(--line); backdrop-filter: blur(10px); }
.modal__close svg { width: 20px; height: 20px; stroke: var(--ink); stroke-width: 2; fill: none; }
.modal__frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 40px 120px rgba(0,0,0,.7);
  background: #000; position: relative; }
.modal__frame video { width: auto; height: auto; max-width: min(1180px, 94vw); max-height: 86svh; display: block; }
.modal__frame.is-portrait video { max-height: 86svh; width: auto; }
.modal__frame iframe { width: min(1180px, 94vw); aspect-ratio: 16 / 9; height: auto; border: 0; display: block; }
.modal__spinner { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 3; }
.modal__spinner[hidden] { display: none; }
.modal__spinner svg { width: 44px; height: 44px; stroke: var(--blue-lift); animation: mspin .9s linear infinite; }
@keyframes mspin { to { transform: rotate(360deg); } }
.modal__error { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; color: var(--ink); z-index: 5; background: rgba(0,0,0,.85); }
.modal__error p { color: var(--ink-dim); font-size: .9rem; max-width: 320px; }

/* custom controls */
.mctrl { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 16px 16px 14px;
  background: linear-gradient(0deg, rgba(0,0,0,.72), transparent); opacity: 0; transition: opacity .3s; }
.modal__frame:hover .mctrl, .mctrl.is-visible { opacity: 1; }
.mctrl__bar { height: 5px; border-radius: 4px; background: rgba(255,255,255,.2); cursor: pointer; position: relative; }
.mctrl__buf { position: absolute; inset: 0; width: 0; background: rgba(255,255,255,.18); border-radius: 4px; }
.mctrl__prog { position: absolute; inset: 0; width: 0; background: var(--blue-lift); border-radius: 4px; }
.mctrl__prog::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px;
  transform: translateY(-50%); border-radius: 50%; background: #fff; box-shadow: 0 0 10px var(--blue-glow); }
.mctrl__row { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.mctrl__row button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; transition: background .2s; }
.mctrl__row button:hover { background: rgba(255,255,255,.12); }
.mctrl__row svg { width: 19px; height: 19px; fill: #fff; }
.mctrl__time { font-size: .78rem; color: rgba(255,255,255,.85); font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.mctrl__spacer { margin-left: auto; }
.mctrl__vol { width: 80px; accent-color: var(--blue-lift); }

/* ===================== Toast ===================== */
.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px); z-index: 400;
  padding: 13px 22px; border-radius: 100px; background: var(--glass-2); border: 1px solid var(--line);
  backdrop-filter: blur(16px); font-size: .86rem; opacity: 0; transition: opacity .3s, transform .3s; }
.toast[hidden] { display: none; }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ===================== Responsive ===================== */
@media (max-width: 1200px) { .grid-sf { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1024px) {
  .grid-sf { grid-template-columns: repeat(3, 1fr); }
  .disc { grid-template-columns: repeat(2, 1fr); }
  .mclip[data-aspect="portrait"] { grid-column: span 4; }
  .mclip[data-aspect="landscape"] { grid-column: span 12; }
  .about { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav__inner { padding: 6px 6px 6px 16px; }
  .hero__meta { display: none; }
  .lf__vsl, .lf__ent { grid-template-columns: 1fr; }
  .motiongrid { grid-template-columns: repeat(6, 1fr); }
  .mclip[data-aspect="portrait"] { grid-column: span 3; }
  .mclip[data-aspect="landscape"] { grid-column: span 6; }
  .disc { grid-template-columns: 1fr; }
  .foot { justify-content: center; text-align: center; }
}
@media (max-width: 600px) {
  .grid-sf { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero__portrait { width: 92px; height: 92px; }
  .skill { grid-template-columns: auto 1fr auto; gap: 12px; }
  .skill__level { grid-column: 2 / -1; text-align: left; min-width: 0; }
}

/* ===================== Reduced motion ===================== */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
      transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .bg__blob { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .reveal-group .r-item { opacity: 1 !important; transform: none !important; }
  .hero__portrait, .hero__kicker, .hero__headline, .hero__headline em, .hero__copy, .hero__cta, .hero__meta {
    animation: none !important; opacity: 1 !important; transform: none !important;
  }
}
