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

    :root {
      --bg: #0c0c0b;
      --surface: #111110;
      --line: rgba(255,255,255,0.07);
      --text: #e8e4dc;
      --muted: #7a7770;
      --accent: #c8a96e;
      --accent-dim: rgba(200,169,110,0.12);
      --font-serif: 'Cormorant Garamond', Georgia, serif;
      --font-mono: 'DM Mono', monospace;
    }
    img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Fills the box without distorting aspect ratio */
}

    html { scroll-behavior: smooth; }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: var(--font-serif);
      font-weight: 300;
      overflow-x: hidden;
      cursor: none;
    }

    /* ─── Custom cursor ─── */
    .cursor {
      position: fixed;
      width: 8px; height: 8px;
      background: var(--accent);
      border-radius: 50%;
      pointer-events: none;
      z-index: 9999;
      transition: transform 0.15s ease;
      transform: translate(-50%, -50%);
    }
    .cursor-ring {
      position: fixed;
      width: 32px; height: 32px;
      border: 1px solid rgba(200,169,110,0.5);
      border-radius: 50%;
      pointer-events: none;
      z-index: 9998;
      transition: transform 0.4s ease, width 0.3s, height 0.3s, opacity 0.3s;
      transform: translate(-50%, -50%);
    }
    body:hover .cursor { opacity: 1; }
    a:hover ~ .cursor, button:hover ~ .cursor { transform: translate(-50%, -50%) scale(2); }

    /* ─── Grain overlay ─── */
    body::before {
      content: '';
      position: fixed; inset: 0;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
      opacity: 0.025;
      pointer-events: none;
      z-index: 1000;
    }

    /* ─── Nav ─── */
    nav {
      position: fixed; top: 0; left: 0; right: 0;
      display: flex; align-items: center; justify-content: space-between;
      padding: 2rem 4rem;
      z-index: 100;
      background: linear-gradient(to bottom, rgba(12,12,11,0.95) 0%, transparent 100%);
    }
    .nav-logo {
      font-family: var(--font-mono);
      font-size: 1.72rem;
      letter-spacing: 0.15em;
      color: var(--accent);
      text-transform: uppercase;
      text-decoration: none;
    }
    .nav-links {
      display: flex; gap: 2.5rem; list-style: none;
    }
    .nav-links a {
      font-family: var(--font-mono);
      font-size: 0.90rem;
      letter-spacing: 0.12em;
      color: var(--muted);
      text-decoration: none;
      text-transform: uppercase;
      transition: color 0.3s;
    }
    .nav-links a:hover { color: var(--text); }

    /* ─── Hero ─── */
    .hero {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 0 4rem 5rem;
      position: relative;
      overflow: hidden;
    }
    .hero-bg {
      position: absolute; inset: 0;
      background:
        radial-gradient(ellipse 60% 60% at 70% 40%, rgba(200,169,110,0.06) 0%, transparent 70%),
        radial-gradient(ellipse 40% 50% at 20% 80%, rgba(100,80,50,0.08) 0%, transparent 60%);
    }
    .hero-line {
      position: absolute;
      top: 0; left: 4rem; bottom: 0;
      width: 1px;
      background: linear-gradient(to bottom, transparent 0%, var(--line) 20%, var(--line) 80%, transparent 100%);
    }
    .hero-year {
      font-family: var(--font-mono);
      font-size: 0.65rem;
      letter-spacing: 0.18em;
      color: var(--accent);
      text-transform: uppercase;
      margin-bottom: 2rem;
      opacity: 0;
      animation: fadeUp 1s 0.2s forwards;
    }
    .hero-title {
      font-size: clamp(3.5rem, 9vw, 8.5rem);
      font-weight: 300;
      line-height: 0.92;
      letter-spacing: -0.02em;
      margin-bottom: 1.5rem;
      opacity: 0;
      animation: fadeUp 1s 0.4s forwards;
    }
    .hero-title em {
      font-style: italic;
      color: var(--accent);
    }
    .hero-sub {
      font-family: var(--font-mono);
      font-size: 0.7rem;
      letter-spacing: 0.1em;
      color: var(--muted);
      text-transform: uppercase;
      max-width: 36ch;
      line-height: 1.8;
      opacity: 0;
      animation: fadeUp 1s 0.6s forwards;
    }
    .hero-scroll {
      position: absolute;
      right: 4rem; bottom: 5rem;
      writing-mode: vertical-rl;
      font-family: var(--font-mono);
      font-size: 1rem;
      letter-spacing: 0.2em;
      color: var(--muted);
      text-transform: uppercase;
      display: flex; align-items: center; gap: 1.2rem;
      opacity: 0;
      animation: fadeIn 1s 1.2s forwards;
    }
    .hero-scroll::before {
      content: '';
      display: block;
      width: 1px; height: 60px;
      background: linear-gradient(to bottom, var(--accent), transparent);
    }

    /* ─── Section shared ─── */
    section { position: relative; }
    .section-label {
      font-family: var(--font-mono);
      font-size: 0.62rem;
      letter-spacing: 0.2em;
      color: var(--accent);
      text-transform: uppercase;
      margin-bottom: 1rem;
    }
    .section-title {
      font-size: clamp(2rem, 5vw, 3.8rem);
      font-weight: 300;
      line-height: 1.05;
      letter-spacing: -0.01em;
    }

    /* ─── About ─── */
    .about {
      padding: 8rem 4rem;
      display: grid;
      grid-template-columns: 1fr 1.6fr;
      gap: 5rem;
      align-items: center;
      border-top: 1px solid var(--line);
    }
    .about-left {}
    .about-stats {
      margin-top: 3rem;
      display: flex; flex-direction: column; gap: 1.5rem;
    }
    .stat {
      display: flex; gap: 1.5rem; align-items: baseline;
    }
    .stat-num {
      font-size: 2.8rem;
      font-weight: 300;
      color: var(--accent);
      line-height: 1;
    }
    .stat-label {
      font-family: var(--font-mono);
      font-size: 0.62rem;
      letter-spacing: 0.12em;
      color: var(--muted);
      text-transform: uppercase;
    }
    .about-text {
      font-size: 1.3rem;
      line-height: 1.75;
      color: var(--text);
      font-weight: 300;
    }
    .about-text p + p { margin-top: 1.5rem; }
    .about-skills {
      margin-top: 2.5rem;
      display: flex; flex-wrap: wrap; gap: 0.6rem;
    }
    .skill-tag {
      font-family: var(--font-mono);
      font-size: 0.6rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
      border: 1px solid var(--line);
      padding: 0.4rem 0.9rem;
      border-radius: 2px;
      transition: color 0.3s, border-color 0.3s;
    }
    .skill-tag:hover { color: var(--accent); border-color: rgba(200,169,110,0.4); }

    /* ─── Portfolio ─── */
    .portfolio {
      padding: 6rem 4rem;
      border-top: 1px solid var(--line);
    }
    .portfolio-header {
      display: flex; justify-content: space-between; align-items: flex-end;
      margin-bottom: 4rem;
    }
    .portfolio-filter {
      display: flex; gap: 0.5rem;
    }
    .filter-btn {
      font-family: var(--font-mono);
      font-size: 0.6rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
      background: none;
      border: 1px solid transparent;
      padding: 0.4rem 0.9rem;
      cursor: none;
      transition: all 0.25s;
    }
    .filter-btn:hover, .filter-btn.active {
      color: var(--text);
      border-color: var(--line);
    }
    .filter-btn.active { color: var(--accent); border-color: rgba(200,169,110,0.4); }

    /* ─── Grid ─── */
    .portfolio-grid {
      display: grid;
      grid-template-columns: repeat(12, 1fr);
      gap: 1.5rem;
    }
    .portfolio-item {
      position: relative;
      overflow: hidden;
      background: var(--surface);
      cursor: none;
    }
    .portfolio-item:nth-child(1) { grid-column: span 7; grid-row: span 1; }
    .portfolio-item:nth-child(2) { grid-column: span 5; grid-row: span 1; }
    .portfolio-item:nth-child(3) { grid-column: span 4; grid-row: span 1; }
    .portfolio-item:nth-child(4) { grid-column: span 8; grid-row: span 1; }
    .portfolio-item:nth-child(5) { grid-column: span 6; grid-row: span 1; }
    .portfolio-item:nth-child(6) { grid-column: span 6; grid-row: span 1; }

    .portfolio-media {
      width: 100%;
      aspect-ratio: 16/10;
      object-fit: cover;
      display: block;
      transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      background: #1a1916;
    }
    .portfolio-item video.portfolio-media {
      object-fit: cover;
    }
    /* Placeholder visuals for demo */
    .media-placeholder {
      width: 100%;
      height: 100%;
      aspect-ratio: 16/10;
      background: var(--surface);
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
      transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .media-placeholder::after {
      content: '';
      position: absolute; inset: 0;
      background: linear-gradient(135deg, #1a1916 0%, #0f0f0e 100%);
    }
    .media-placeholder img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .placeholder-label {
      position: absolute;
      inset: 0;
      z-index: 2;
      font-family: var(--font-mono);
      font-size: 0.58rem;
      letter-spacing: 0.15em;
      color: var(--muted);
      text-transform: uppercase;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 0.8rem;
    }
    .placeholder-icon {
      width: 36px; height: 36px;
      border: 1px solid var(--line);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--muted);
      font-size: 0.9rem;
    }
    /* Geometric accent shapes for placeholders */
    .geo-1 { position: absolute; width: 120px; height: 120px; border: 1px solid rgba(200,169,110,0.07); border-radius: 50%; top: 20%; left: 15%; z-index: 1; }
    .geo-2 { position: absolute; width: 60px; height: 60px; border: 1px solid rgba(200,169,110,0.05); right: 20%; bottom: 25%; z-index: 1; transform: rotate(45deg); }
    .geo-3 { position: absolute; width: 200px; height: 1px; background: rgba(200,169,110,0.05); top: 50%; left: -10%; z-index: 1; transform: rotate(-15deg); }

    .portfolio-overlay {
      position: absolute; inset: 0;
      background: linear-gradient(to top, rgba(12,12,11,0.95) 0%, rgba(12,12,11,0.2) 50%, transparent 100%);
      opacity: 0;
      transition: opacity 0.4s ease;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 1.8rem;
    }
    .portfolio-item:hover .portfolio-overlay { opacity: 1; }
    .portfolio-item:hover .media-placeholder { transform: scale(1.04); }
    .portfolio-item:hover .portfolio-media { transform: scale(1.04); }

    .item-category {
      font-family: var(--font-mono);
      font-size: 0.58rem;
      letter-spacing: 0.15em;
      color: var(--accent);
      text-transform: uppercase;
      margin-bottom: 0.4rem;
    }
    .item-title {
      font-size: 1.3rem;
      font-weight: 300;
      color: var(--text);
      line-height: 1.2;
    }
    .item-meta {
      font-family: var(--font-mono);
      font-size: 0.58rem;
      color: var(--muted);
      letter-spacing: 0.08em;
      margin-top: 0.3rem;
    }

    /* Video play button */
    .play-badge {
      position: absolute;
      top: 1.2rem; right: 1.2rem;
      width: 36px; height: 36px;
      background: rgba(200,169,110,0.15);
      backdrop-filter: blur(8px);
      border: 1px solid rgba(200,169,110,0.3);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      z-index: 2;
    }
    .play-badge svg { width: 12px; height: 12px; fill: var(--accent); margin-left: 2px; }

    /* ─── Showreel ─── */
    .showreel {
      padding: 0 4rem 8rem;
      border-top: 1px solid var(--line);
      padding-top: 6rem;
    }
    .showreel-header {
      display: flex; justify-content: space-between; align-items: flex-end;
      margin-bottom: 3rem;
    }
    .showreel-wrapper {
      position: relative;
      width: 100%;
      aspect-ratio: 16/9;
      background: var(--surface);
      overflow: hidden;
    }
    .showreel-placeholder {
      width: 100%; height: 100%;
      display: flex; align-items: center; justify-content: center;
      flex-direction: column; gap: 1.5rem;
      background: linear-gradient(135deg, #111110 0%, #0c0c0b 100%);
      position: relative;
    }
    .showreel-placeholder::before {
      content: '';
      position: absolute; inset: 0;
      background:
        radial-gradient(ellipse 50% 50% at 50% 50%, rgba(200,169,110,0.04) 0%, transparent 70%);
    }
    .play-btn {
      width: 72px; height: 72px;
      border: 1px solid rgba(200,169,110,0.4);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      cursor: none;
      transition: all 0.3s;
      position: relative; z-index: 1;
    }
    .play-btn:hover { background: var(--accent-dim); border-color: var(--accent); }
    .play-btn svg { width: 22px; height: 22px; fill: var(--accent); margin-left: 4px; }
    .showreel-label {
      font-family: var(--font-mono);
      font-size: 0.65rem;
      letter-spacing: 0.2em;
      color: var(--muted);
      text-transform: uppercase;
      position: relative; z-index: 1;
    }
    .showreel-duration {
      position: absolute;
      bottom: 1.5rem; right: 2rem;
      font-family: var(--font-mono);
      font-size: 0.6rem;
      letter-spacing: 0.1em;
      color: var(--muted);
    }
    /* Replace showreel-placeholder with actual video */
    .showreel-wrapper video {
      width: 100%; height: 100%; object-fit: cover;
      display: block;
    }

    /* ─── Contact ─── */
    .contact {
      padding: 7rem 4rem;
      border-top: 1px solid var(--line);
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6rem;
      align-items: end;
    }
    .contact-left .section-title {
      margin-top: 1rem;
      margin-bottom: 2rem;
    }
    .contact-detail {
      font-family: var(--font-mono);
      font-size: 0.7rem;
      letter-spacing: 0.1em;
      color: var(--muted);
      text-transform: uppercase;
      margin-bottom: 0.5rem;
    }
    .contact-email {
      font-size: 1.6rem;
      font-weight: 300;
      font-style: italic;
      color: var(--text);
    }
    .contact-email a {
      color: inherit; text-decoration: none;
      transition: color 0.3s;
    }
    .contact-email a:hover { color: var(--accent); }

    .contact-right {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
    }
    .availability {
      display: flex; align-items: center; gap: 0.7rem;
      margin-bottom: 3rem;
    }
    .avail-dot {
      width: 6px; height: 6px;
      background: #6eb86e;
      border-radius: 50%;
      animation: pulse 2s infinite;
    }
    .avail-text {
      font-family: var(--font-mono);
      font-size: 0.62rem;
      letter-spacing: 0.12em;
      color: var(--muted);
      text-transform: uppercase;
    }

    /* ─── Social icons ─── */
    .socials {
      display: flex; gap: 1.2rem;
    }
    .social-link {
      width: 42px; height: 42px;
      border: 1px solid var(--line);
      border-radius: 2px;
      display: flex; align-items: center; justify-content: center;
      text-decoration: none;
      color: var(--muted);
      transition: all 0.3s;
    }
    .social-link:hover {
      color: var(--accent);
      border-color: rgba(200,169,110,0.4);
      background: var(--accent-dim);
    }
    .social-link svg { width: 20px; height: 20px; fill: currentColor; }

    /* ─── Responsive Images ─── */
    /* .img-responsive {
      max-width: 100%;
      height: auto;
      display: block;
      width: 100%;
      object-fit: cover;
    } */

    /* ─── Footer ─── */
    footer {
      padding: 2.5rem 4rem;
      border-top: 1px solid var(--line);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .footer-copy {
      font-family: var(--font-mono);
      font-size: 0.58rem;
      letter-spacing: 0.1em;
      color: var(--muted);
      text-transform: uppercase;
    }
    .footer-tagline {
      font-style: italic;
      font-size: 0.95rem;
      color: var(--muted);
    }

    /* ─── Animations ─── */
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(24px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes fadeIn {
      from { opacity: 0; }
      to   { opacity: 1; }
    }
    @keyframes pulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.4; }
    }

    /* Reveal on scroll */
    .reveal {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.9s ease, transform 0.9s ease;
    }
    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }

    /* ─── Responsive ─── */
    @media (max-width: 1200px) {
      nav { padding: 1.75rem 2.5rem; }
      .hero { padding: 0 2.5rem 4.5rem; }
      .hero-scroll { right: 2.5rem; }
      .about { padding: 7rem 2.5rem; gap: 4rem; }
      .portfolio { padding: 5rem 2.5rem; }
      .showreel { padding: 5rem 2.5rem; }
      .contact { padding: 6rem 2.5rem; }
      footer { padding: 2.5rem 2.5rem; }
    }

    @media (max-width: 900px) {
      nav { padding: 1.5rem 2rem; }
      .nav-links { gap: 1.5rem; }
      .hero { padding: 0 2rem 4rem; }
      .hero-line { left: 2rem; }
      .hero-scroll { right: 2rem; }
      .about { grid-template-columns: 1fr; gap: 3rem; padding: 5rem 2rem; }
      .about-left,
      .about-right { width: 100%; }
      .portfolio { padding: 4rem 2rem; }
      .portfolio-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
      .portfolio-item:nth-child(n) { grid-column: span 1; }
      .showreel { padding: 4rem 2rem; }
      .contact { grid-template-columns: 1fr; gap: 3rem; padding: 5rem 2rem; }
      .contact-right { align-items: flex-start; }
      .contact-left,
      .contact-right { width: 100%; }
      footer { padding: 2rem; flex-direction: column; gap: 1rem; text-align: center; }
    }

    @media (max-width: 700px) {
      nav { padding: 1.25rem 1.5rem; }
      .nav-links {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 1rem;
      }
      .hero { padding: 0 1.5rem 3.5rem; }
      .hero-year { font-size: 0.7rem; margin-bottom: 1.5rem; }
      .hero-title { font-size: clamp(2.5rem, 10vw, 4.5rem); margin-bottom: 1rem; }
      .hero-sub { max-width: 100%; font-size: 0.75rem; line-height: 1.7; }
      .hero-scroll { right: 1.5rem; bottom: 4rem; }
      .hero-line { display: none; }
      .about { padding: 4rem 1.5rem; }
      .portfolio { padding: 3.5rem 1.5rem; }
      .portfolio-grid { grid-template-columns: 1fr; gap: 1rem; }
      .portfolio-item { min-height: auto; }
      .showreel { padding: 3.5rem 1.5rem; }
      .contact { padding: 4rem 1.5rem; gap: 2.5rem; }
      .contact-left .section-title { font-size: clamp(2rem, 6vw, 2.8rem); }
      .socials { flex-wrap: wrap; justify-content: flex-start; }
      footer { padding: 1.5rem 1.5rem; }
    }

    @media (max-width: 540px) {
      nav { padding: 1rem 1rem; }
      .nav-logo { font-size: 1.4rem; }
      .nav-links { gap: 0.75rem; }
      .hero { padding: 0 1rem 3rem; }
      .hero-title { font-size: clamp(2.2rem, 12vw, 3.8rem); }
      .hero-sub { font-size: 0.7rem; }
      .hero-scroll { right: 1rem; bottom: 3rem; }
      .about { padding: 3rem 1rem; }
      .about-text { font-size: 1.05rem; }
      .about-skills { gap: 0.4rem; }
      .skill-tag { font-size: 0.55rem; padding: 0.35rem 0.75rem; }
      .portfolio { padding: 3rem 1rem; }
      .filter-btn { font-size: 0.55rem; padding: 0.3rem 0.7rem; }
      .showreel { padding: 3rem 1rem; }
      .contact { padding: 3rem 1rem; }
      .contact-email { font-size: 1.3rem; }
      .social-link { width: 36px; height: 36px; }
      .social-link svg { width: 18px; height: 18px; }
      footer { padding: 1rem 1rem; gap: 0.75rem; }
    }

    @media (max-width: 420px) {
      .nav-links { justify-content: center; }
      .hero { padding-bottom: 2.5rem; }
      .hero-scroll { display: none; }
      .about { padding: 2.5rem 0.9rem; }
      .portfolio { padding: 2.5rem 0.9rem; }
      .showreel { padding: 2.5rem 0.9rem; }
      .contact { padding: 2.5rem 0.9rem; }
      .footer-copy,
      .footer-tagline { font-size: 0.75rem; }
      .showreel-duration { right: 1rem; bottom: 1rem; font-size: 0.55rem; }
    }

    @media (hover: none), (pointer: coarse) {
      body { cursor: auto; }
      .cursor,
      .cursor-ring { display: none; }
      .play-btn,
      .filter-btn,
      .social-link { cursor: pointer; }
    }
