@font-face {
  font-family: 'Hayah';
  src: url('fonts/Hayah.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Tajawal';
  src: url('fonts/Tajawal-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Tajawal';
  src: url('fonts/Tajawal-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: #0a0a0b;
  color: #f4f1f1;
}

html.mp-intro-lock,
html.mp-intro-lock body {
  overflow: hidden;
}

@scope (.mp) {
  :scope {
    --bg: #0a0a0b;
    --bg-soft: #141012;
    --card: #1c1416;
    --card-glass: rgba(28, 20, 22, 0.72);
    --accent: #9b2a44;
    --accent-soft: #b8405c;
    --text: #f4f1f1;
    --muted: #a9a0a2;
    --line: rgba(155, 42, 68, 0.22);
    --radius: 16px;
    --max-w: 1050px;
    --font-head: 'Hayah', 'Tajawal', 'Cairo', Tahoma, sans-serif;
    --font-body: 'Tajawal', 'Cairo', Tahoma, sans-serif;

    display: block;
    min-height: 100vh;
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.9;
    overflow-x: clip;
    position: relative;
  }

  img, video, svg {
    display: block;
    max-width: 100%;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  button {
    font-family: inherit;
    color: inherit;
  }

  h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--font-head);
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: 0;
  }

  p {
    margin: 0;
  }

  .container {
    width: 100%;
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: 20px;
  }

  /* ================== Intro Overlay ================== */
  .intro-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #0a0a0b;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.55s ease;
    cursor: pointer;
  }

  html.mp-intro-pending & .intro-overlay {
    display: flex;
  }

  .intro-overlay.is-fading {
    opacity: 0;
    pointer-events: none;
  }

  .intro-glow {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(68vmin, 480px);
    height: min(68vmin, 480px);
    transform: translate(-50%, -50%) scale(0.8);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(155, 42, 68, 0.36) 0%, rgba(184, 64, 92, 0.14) 42%, rgba(10, 10, 11, 0) 72%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease, transform 1s ease;
  }

  .intro-glow.is-on {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }

  .intro-stage {
    position: fixed;
    left: 50%;
    top: 50%;
    height: min(44vh, 340px);
    aspect-ratio: 640 / 736;
    transform: translate(-50%, -50%);
    will-change: transform, opacity;
    perspective: 900px;
  }

  .intro-canvas,
  .intro-wings,
  .intro-logo-final {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .intro-canvas {
    filter: drop-shadow(0 0 18px rgba(244, 241, 241, 0.25)) drop-shadow(0 0 36px rgba(155, 42, 68, 0.35));
    transition: opacity 0.25s ease;
  }

  .intro-wings {
    opacity: 0;
    pointer-events: none;
    transform-style: preserve-3d;
  }

  .intro-wing {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    will-change: transform;
    filter: drop-shadow(0 0 18px rgba(244, 241, 241, 0.22));
  }

  .intro-wing-left {
    clip-path: polygon(0 0, 52% 0, 52% 100%, 0 100%);
    transform-origin: 51% 52%;
  }

  .intro-wing-right {
    clip-path: polygon(51% 0, 100% 0, 100% 100%, 51% 100%);
    transform-origin: 51% 52%;
  }

  .intro-logo-final {
    object-fit: contain;
    opacity: 0;
    filter: drop-shadow(0 0 22px rgba(244, 241, 241, 0.24));
  }

  /* ================== Sticky Topbar ================== */
  .topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 11, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
  }

  .topbar-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
  }

  .brand-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
  }

  .brand-name {
    font-family: var(--font-head);
    font-size: 1.45rem;
    color: var(--accent-soft);
    line-height: 1.2;
  }

  .nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(28, 20, 22, 0.65);
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    transition: border-color 0.25s ease, background-color 0.25s ease;
  }

  .nav-toggle:hover,
  .nav-toggle:focus-visible {
    border-color: var(--accent-soft);
    background: rgba(155, 42, 68, 0.18);
    outline: none;
  }

  .nav {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .nav-link {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.96rem;
    color: var(--muted);
    transition: color 0.25s ease, background-color 0.25s ease;
    white-space: nowrap;
  }

  .nav-link:hover,
  .nav-link:focus-visible,
  .nav-link.is-active {
    color: var(--text);
    background: rgba(155, 42, 68, 0.18);
    outline: none;
  }

  /* ================== Sections ================== */
  .section {
    padding-block: 76px;
    scroll-margin-top: 64px;
    position: relative;
  }

  .section-soft {
    background: var(--bg-soft);
    border-block: 1px solid rgba(155, 42, 68, 0.14);
  }

  .section-head {
    margin-bottom: 36px;
  }

  .section-title {
    font-size: clamp(1.9rem, 3.6vw, 2.55rem);
    color: var(--text);
    margin-bottom: 6px;
  }

  .section-sub {
    color: var(--muted);
    font-size: 1.02rem;
  }

  .subsection-head {
    margin-bottom: 20px;
  }

  .subsection-title {
    font-size: clamp(1.45rem, 2.6vw, 1.85rem);
    color: var(--text);
  }

  /* ================== Liquid Glass + 3D Cards ================== */
  .glass-card {
    position: relative;
    background: linear-gradient(155deg, rgba(32, 22, 25, 0.84) 0%, rgba(20, 15, 17, 0.76) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 14px 36px -18px rgba(0, 0, 0, 0.78);
    overflow: hidden;
  }

  .tilt-card {
    transform-style: preserve-3d;
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease;
    will-change: transform;
  }

  .tilt-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
      340px circle at var(--mx, 50%) var(--my, 50%),
      rgba(184, 64, 92, 0.2),
      transparent 62%
    );
    opacity: var(--glow, 0);
    transition: opacity 0.3s ease;
  }

  @media (hover: hover) and (pointer: fine) {
    .tilt-card:hover {
      border-color: rgba(184, 64, 92, 0.5);
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 20px 44px -18px rgba(155, 42, 68, 0.32);
    }
  }

  /* ================== Hero ================== */
  .hero {
    min-height: calc(100svh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-block: 64px 80px;
    background:
      radial-gradient(ellipse 68% 54% at 50% 34%, rgba(155, 42, 68, 0.18) 0%, rgba(10, 10, 11, 0) 72%);
    overflow: hidden;
  }

  .hero-beams {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
  }

  .beam {
    position: absolute;
    border-radius: 50%;
    filter: blur(72px);
    opacity: 0.24;
    will-change: transform;
  }

  .beam-1 {
    width: 440px;
    height: 220px;
    top: 10%;
    right: 8%;
    background: radial-gradient(circle, rgba(155, 42, 68, 0.55), transparent 70%);
    animation: mp-beam-float-a 16s ease-in-out infinite alternate;
  }

  .beam-2 {
    width: 380px;
    height: 260px;
    bottom: 12%;
    left: 10%;
    background: radial-gradient(circle, rgba(184, 64, 92, 0.4), transparent 70%);
    animation: mp-beam-float-b 20s ease-in-out infinite alternate;
  }

  .beam-3 {
    width: 300px;
    height: 180px;
    top: 42%;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(155, 42, 68, 0.3), transparent 72%);
    animation: mp-beam-float-c 14s ease-in-out infinite alternate;
  }

  @keyframes mp-beam-float-a {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-40px, 28px, 0) scale(1.12); }
  }

  @keyframes mp-beam-float-b {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(38px, -24px, 0) scale(1.1); }
  }

  @keyframes mp-beam-float-c {
    from { transform: translate3d(-50%, 0, 0) scale(0.96); }
    to { transform: translate3d(-50%, -22px, 0) scale(1.12); }
  }

  .hero-inner {
    position: relative;
    z-index: 2;
    max-width: 720px;
    will-change: transform, opacity;
  }

  .hero-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
  }

  .hero-logo {
    width: 112px;
    height: auto;
    filter: drop-shadow(0 12px 30px rgba(155, 42, 68, 0.35));
  }

  .hero-title {
    font-size: clamp(2.8rem, 7vw, 4.4rem);
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.28;
  }

  .hero-subtitle {
    font-size: clamp(1.15rem, 2.3vw, 1.4rem);
    font-weight: 700;
    color: var(--accent-soft);
    margin-bottom: 14px;
  }

  .hero-desc {
    font-size: 1.06rem;
    color: var(--muted);
    max-width: 580px;
    margin-inline: auto;
    margin-bottom: 30px;
  }

  .hero-actions {
    display: flex;
    justify-content: center;
  }

  .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 30px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
    color: var(--text);
    font-weight: 700;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 30px -10px rgba(155, 42, 68, 0.72);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  }

  .btn-primary:hover,
  .btn-primary:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px -10px rgba(184, 64, 92, 0.85);
    filter: brightness(1.06);
    outline: none;
  }

  .btn-arrow {
    width: 18px;
    height: 18px;
  }

  /* ================== About ================== */
  .about-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: center;
  }

  .about-photo-card {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .portrait-ring {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    padding: 6px;
    background: radial-gradient(circle, rgba(155, 42, 68, 0.42), rgba(155, 42, 68, 0.08));
    border: 1px solid rgba(184, 64, 92, 0.35);
    box-shadow: 0 16px 40px -16px rgba(155, 42, 68, 0.55);
  }

  .about-portrait {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
  }

  .about-text-card {
    padding: 32px;
  }

  .about-text {
    font-size: 1.07rem;
    color: var(--text);
  }

  /* ================== Films ================== */
  .films-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 56px;
  }

  .film-card {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .role-tag {
    display: inline-block;
    width: fit-content;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    background: rgba(155, 42, 68, 0.24);
    border: 1px solid rgba(184, 64, 92, 0.38);
    line-height: 1.5;
  }

  .card-icon-sm {
    width: 22px;
    height: 22px;
    color: var(--accent-soft);
    flex-shrink: 0;
  }

  .card-title {
    font-size: 1.38rem;
    color: var(--text);
  }

  .card-desc {
    color: var(--muted);
    font-size: 0.96rem;
  }

  /* ================== Galleries ================== */
  .galleries-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
  }

  .filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .filter-btn {
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(28, 20, 22, 0.65);
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
  }

  .filter-btn:hover,
  .filter-btn:focus-visible {
    border-color: var(--accent-soft);
    color: var(--text);
    outline: none;
  }

  .filter-btn.is-active {
    background: var(--accent);
    border-color: var(--accent-soft);
    color: var(--text);
  }

  .galleries-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .gal-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .gal-card[hidden] {
    display: none;
  }

  .gal-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .gal-count {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-soft);
  }

  .gal {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 10px;
  }

  .gal img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(155, 42, 68, 0.24);
    background: #120d0f;
    cursor: zoom-in;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  }

  .gal img:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: var(--accent-soft);
    box-shadow: 0 10px 24px -10px rgba(155, 42, 68, 0.55);
  }

  .gal-wide-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  }

  .gal-wide-grid img {
    aspect-ratio: 16 / 9;
  }

  .gal-featured {
    grid-template-columns: minmax(0, 540px);
  }

  .gal-featured img {
    aspect-ratio: auto;
    height: auto;
  }

  /* ================== Video ================== */
  .video-block {
    margin-top: 28px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .video-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .video-frame {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #070607;
  }

  .reel {
    width: 100%;
    max-height: 540px;
    margin-inline: auto;
    background: #070607;
  }

  /* ================== Skills ================== */
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .skill-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .card-icon {
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(155, 42, 68, 0.16);
    border: 1px solid rgba(184, 64, 92, 0.3);
    color: var(--accent-soft);
  }

  .card-icon svg {
    width: 100%;
    height: 100%;
  }

  /* ================== Experience Timeline ================== */
  .timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-inline-start: 28px;
  }

  .timeline::before {
    content: '';
    position: absolute;
    top: 16px;
    bottom: 16px;
    inset-inline-start: 7px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-soft), rgba(155, 42, 68, 0.15));
  }

  .timeline-item {
    padding: 24px;
    overflow: visible;
  }

  .timeline-dot {
    position: absolute;
    top: 28px;
    inset-inline-start: -28px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-soft);
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 3px rgba(155, 42, 68, 0.28);
  }

  /* ================== Education ================== */
  .edu-card {
    padding: 26px;
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .edu-icon {
    width: 54px;
    height: 54px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(155, 42, 68, 0.18);
    border: 1px solid rgba(184, 64, 92, 0.35);
    color: var(--accent-soft);
    flex-shrink: 0;
  }

  .edu-icon svg {
    width: 100%;
    height: 100%;
  }

  .edu-meta {
    color: var(--muted);
    margin-top: 4px;
  }

  .edu-meta strong {
    color: var(--accent-soft);
  }

  .edu-sep {
    margin-inline: 8px;
    color: var(--line);
  }

  /* ================== Contact ================== */
  .contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .contact-btn {
    padding: 22px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.05rem;
  }

  .contact-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-soft);
    flex-shrink: 0;
  }

  /* ================== Footer ================== */
  .footer {
    border-top: 1px solid var(--line);
    padding-block: 26px;
    text-align: center;
    color: var(--muted);
    font-size: 0.94rem;
    background: rgba(10, 10, 11, 0.9);
  }

  .accent-star {
    color: var(--accent-soft);
    margin-inline: 4px;
  }

  /* ================== Lightbox ================== */
  .lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(6, 5, 6, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: zoom-out;
  }

  .lightbox[hidden] {
    display: none;
  }

  .lightbox-close {
    position: fixed;
    top: 18px;
    inset-inline-end: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(184, 64, 92, 0.45);
    background: rgba(28, 20, 22, 0.88);
    color: var(--text);
    font-size: 1.7rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
  }

  .lightbox-figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 92vw;
  }

  .lightbox-img {
    max-height: 90vh;
    max-width: 92vw;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid var(--line);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
    animation: mp-lb-zoom 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .lightbox-caption {
    color: var(--muted);
    font-size: 0.92rem;
    text-align: center;
  }

  @keyframes mp-lb-zoom {
    from {
      opacity: 0;
      transform: scale(0.92);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  /* ================== Motion & Reveals ================== */
  .mo-word {
    display: inline-block;
  }

  html.mp-intro-pending & .mo-word {
    opacity: 0;
    transform: translateY(34px);
    filter: blur(8px);
    transition: opacity 0.75s ease, transform 0.85s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.75s ease;
    transition-delay: calc(var(--w-idx, 0) * 110ms);
  }

  html.mp-intro-pending & .hero-logo,
  html.mp-intro-pending & .hero-subtitle,
  html.mp-intro-pending & .hero-desc,
  html.mp-intro-pending & .hero-actions {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.75s ease, transform 0.85s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  html.mp-intro-done & .mo-word,
  html.mp-intro-done & .hero-logo,
  html.mp-intro-done & .hero-subtitle,
  html.mp-intro-done & .hero-desc,
  html.mp-intro-done & .hero-actions {
    opacity: 1;
    transform: none;
    filter: none;
  }

  html.mp-intro-done & .hero-subtitle { transition-delay: 0.18s; }
  html.mp-intro-done & .hero-desc { transition-delay: 0.3s; }
  html.mp-intro-done & .hero-actions { transition-delay: 0.42s; }

  html.mp-intro-done & .topbar {
    animation: mp-nav-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  @keyframes mp-nav-in {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: none; opacity: 1; }
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  html.mp-reveal-ready & .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: calc(var(--stagger, 0) * 75ms);
  }

  html.mp-reveal-ready & .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  /* ================== Responsive ================== */
  @media (max-width: 920px) {
    .films-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-grid {
      grid-template-columns: 1fr;
    }

    .contact-grid {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 768px) {
    .nav-toggle {
      display: inline-flex;
    }

    .nav {
      display: none;
      position: absolute;
      top: 100%;
      inset-inline: 0;
      flex-direction: column;
      align-items: stretch;
      gap: 4px;
      padding: 12px 20px 18px;
      background: rgba(10, 10, 11, 0.96);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      border-bottom: 1px solid var(--line);
    }

    .nav.is-open {
      display: flex;
    }

    .nav-link {
      padding: 10px 14px;
      border-radius: 12px;
    }

    .films-grid,
    .skills-grid {
      grid-template-columns: 1fr;
    }

    .section {
      padding-block: 56px;
    }

    .gal {
      grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
      gap: 8px;
    }

    .gal-card,
    .about-text-card,
    .video-block {
      padding: 18px;
    }

    .edu-card {
      flex-direction: column;
      align-items: flex-start;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .intro-overlay {
      display: none !important;
    }

    .beam {
      animation: none !important;
    }

    .tilt-card {
      transform: none !important;
      transition: none !important;
    }

    .mo-word,
    .hero-logo,
    .hero-subtitle,
    .hero-desc,
    .hero-actions,
    .reveal {
      opacity: 1 !important;
      transform: none !important;
      filter: none !important;
      transition: none !important;
    }
  }
}
