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

:root {
  --bg:      #04040f;
  --bg2:     #07071a;
  --cyan:    #00f0ff;
  --purple:  #7b2ff7;
  --pink:    #ff3dac;
  --white:   #f0f4ff;
  --muted:   #8890aa;
  --glass:   rgba(255,255,255,0.04);
  --border:  rgba(0,240,255,0.15);
  --glow-c:  0 0 20px rgba(0,240,255,0.4);
  --radius:  14px;
  --nav-h:   68px;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
}

::selection { background: var(--purple); color: #fff; }

/* ── Scrollbar ─────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 2px; }

/* ── Nav ───────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 52px;
  background: rgba(4,4,15,0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-logo {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
  text-shadow: var(--glow-c);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 38px;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transition: transform 0.25s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--cyan); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.btn-behance {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.btn-behance svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: 40px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff;
  box-shadow: 0 0 24px rgba(0,240,255,0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0,240,255,0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--glass);
  transform: translateY(-2px);
  box-shadow: var(--glow-c);
}

/* ── Sections ──────────────────────────────────────────────────── */
section {
  min-height: 100dvh;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

/* ── Hero: Director's Viewfinder ───────────────────────────────── */
#hero {
  align-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 9vh) 40px 9vh;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-video-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%);
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(4,4,15,0.72) 0%,
    rgba(4,4,15,0.65) 50%,
    rgba(4,4,15,0.88) 100%
  );
  z-index: 1;
}

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

.beam {
  position: absolute;
  top: 0;
  width: 56%;
  height: 100%;
  opacity: 0;
  animation: beamFadeIn 2s 0.5s forwards;
}

.beam-l {
  left: -8%;
  background: linear-gradient(160deg,
    rgba(255,255,255,0.035) 0%,
    rgba(255,255,255,0.012) 35%,
    transparent 65%);
  clip-path: polygon(30% 0%, 70% 0%, 100% 100%, 0% 100%);
  animation: beamFadeIn 2s 0.5s forwards, beamPulse 9s 2.5s ease-in-out infinite;
}

.beam-r {
  right: -8%;
  background: linear-gradient(200deg,
    rgba(255,255,255,0.03) 0%,
    rgba(255,255,255,0.01) 35%,
    transparent 65%);
  clip-path: polygon(30% 0%, 70% 0%, 100% 100%, 0% 100%);
  animation: beamFadeIn 2s 1s forwards, beamPulse 9s 6.5s ease-in-out infinite;
}

@keyframes beamFadeIn { to { opacity: 1; } }
@keyframes beamPulse {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}

.hero-aperture {
  position: absolute;
  top: 50%; left: 50%;
  width: min(75vw, 75vh);
  height: min(75vw, 75vh);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(
    rgba(0,240,255,0.05) 0deg 60deg,
    transparent 60deg 120deg,
    rgba(123,47,247,0.05) 120deg 180deg,
    transparent 180deg 240deg,
    rgba(0,240,255,0.05) 240deg 300deg,
    transparent 300deg 360deg
  );
  filter: blur(35px);
  animation: irisRotate 30s linear infinite;
}

@keyframes irisRotate {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.lb-top, .lb-bottom {
  position: absolute;
  left: 0; right: 0;
  height: 9vh;
  z-index: 3;
  pointer-events: none;
}
.lb-top {
  top: 0;
  background: linear-gradient(to bottom, rgba(4,4,15,0.55), transparent);
}
.lb-bottom {
  bottom: 0;
  background: linear-gradient(to top, rgba(4,4,15,0.55), transparent);
}

/* HUD overlays — offset past corner brackets (32px) + gap */
.hud-rec {
  position: absolute;
  top: calc(9vh + 20px + 32px + 12px);
  right: calc(5vw + 12px);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: #ff3333;
  opacity: 0;
  animation: fadeIn 0.5s 1.8s forwards;
}

.hud-rec .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #ff3333;
  box-shadow: 0 0 8px #ff3333;
  animation: recBlink 1.5s step-start infinite;
}

@keyframes recBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.1; } }

.hud-scene {
  position: absolute;
  top: calc(9vh + 20px + 32px + 12px);
  /* left corners don't flip outward like the right ones, so add the 32px corner
     width to clear the bracket and match the right-side 12px gap */
  left: calc(5vw + 44px);
  z-index: 5;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(0,240,255,0.45);
  opacity: 0;
  animation: fadeIn 0.5s 1.8s forwards;
}

.hud-timecode {
  position: absolute;
  /* 12px inside the bottom corner (corner inner edge sits 52px from bottom) */
  bottom: 64px;
  right: calc(5vw + 12px);
  z-index: 5;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(0,240,255,0.4);
  font-variant-numeric: tabular-nums;
  opacity: 0;
  animation: fadeIn 0.5s 1.8s forwards;
}

.hud-format {
  position: absolute;
  /* 12px inside the bottom corner (corner inner edge sits 52px from bottom) */
  bottom: 64px;
  /* match the right-side gap — clear the 32px-wide left corner bracket */
  left: calc(5vw + 44px);
  z-index: 5;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0,240,255,0.35);
  opacity: 0;
  animation: fadeIn 0.5s 1.8s forwards;
}

.viewfinder {
  position: absolute;
  /* Bottom corners flip with scaleY(-1) and render 32px below their layout box,
     so the bottom inset adds that 32px (20 + 32 = 52) to keep a 20px visual margin. */
  inset: calc(9vh + 20px) 5vw 52px;
  z-index: 4;
  pointer-events: none;
}

.vf-c {
  position: absolute;
  width: 32px;
  height: 32px;
}

.vf-c::before,
.vf-c::after {
  content: '';
  position: absolute;
  background: rgba(0,240,255,0.5);
  box-shadow: 0 0 6px rgba(0,240,255,0.3);
}

.vf-c::before { width: 100%; height: 1.5px; top: 0; left: 0; }
.vf-c::after  { width: 1.5px; height: 100%; top: 0; left: 0; }

.vf-c.tl { top: 0;    left: 0; }
.vf-c.tr { top: 0;    right: 0;  transform-origin: 100% 0%;   transform: scaleX(-1); }
.vf-c.bl { bottom: 0; left: 0;   transform-origin: 0% 100%;   transform: scaleY(-1); }
.vf-c.br { bottom: 0; right: 0;  transform-origin: 100% 100%; transform: scale(-1,-1); }

.hero-content { position: relative; z-index: 6; }

.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: var(--glow-c);
  margin-bottom: 22px;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}

.hero-name {
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 1.08;
  background: linear-gradient(135deg, var(--white) 20%, var(--cyan) 60%, var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}

.hero-tagline {
  margin-top: 20px;
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.03em;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}

.hero-tagline strong { color: var(--pink); font-weight: 600; }

.hero-cta {
  margin-top: 52px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 1s forwards;
}

.hero-cta .btn { padding: 14px 36px; font-size: 0.82rem; }

.scroll-hint {
  position: absolute;
  bottom: calc(9vh + 24px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 6;
  opacity: 0;
  animation: fadeIn 1s 1.8s forwards;
}

.scroll-hint span {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(0,240,255,0.5);
  border-radius: 12px;
  position: relative;
  box-shadow: 0 0 10px rgba(0,240,255,0.15);
}

.scroll-wheel {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 3px;
  height: 7px;
  border-radius: 2px;
  background: var(--cyan);
  box-shadow: 0 0 6px rgba(0,240,255,0.6);
  animation: scrollWheel 1.9s ease-in-out infinite;
}

@keyframes scrollWheel {
  0%        { opacity: 0; transform: translate(-50%, 0); }
  20%       { opacity: 1; }
  80%       { opacity: 1; }
  100%      { opacity: 0; transform: translate(-50%, 12px); }
}

/* ── Section Labels & Titles ───────────────────────────────────── */
.s-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: var(--glow-c);
  margin-bottom: 10px;
}

.s-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
}

.s-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Portfolio ─────────────────────────────────────────────────── */
#portfolio {
  justify-content: flex-start;
  padding: calc(var(--nav-h) + 56px) 52px 60px;
  background: radial-gradient(ellipse 80% 55% at 50% 0%, rgba(123,47,247,0.07) 0%, transparent 70%);
}

.portfolio-header { margin-bottom: 28px; }

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.filter-tab {
  padding: 7px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.22s ease;
}

.filter-tab:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.filter-tab.active {
  background: linear-gradient(135deg, rgba(0,240,255,0.15), rgba(123,47,247,0.15));
  border-color: var(--cyan);
  color: var(--cyan);
}

.video-card.hidden { display: none; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

.video-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  aspect-ratio: 16/9;
  background: #0d0d2b;
}

.video-card:hover {
  transform: translateY(-5px) scale(1.012);
  box-shadow: 0 12px 40px rgba(0,240,255,0.18), 0 0 0 1px rgba(0,240,255,0.3);
  border-color: rgba(0,240,255,0.4);
}

.v-thumb {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #0d0d2b;
  transition: transform 0.4s;
}

.video-card:hover .v-thumb { transform: scale(1.04); }

.v-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(4,4,15,0.95) 0%,
    rgba(4,4,15,0.45) 45%,
    rgba(4,4,15,0.2) 100%
  );
  transition: background 0.3s;
}

.video-card:hover .v-overlay {
  background: linear-gradient(
    to top,
    rgba(4,4,15,0.9) 0%,
    rgba(4,4,15,0.25) 50%,
    rgba(0,240,255,0.04) 100%
  );
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -58%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(0,240,255,0.12);
  border: 1.5px solid rgba(0,240,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.play-btn svg {
  width: 18px; height: 18px;
  fill: var(--cyan);
  margin-left: 3px;
}

.video-card:hover .play-btn {
  background: rgba(0,240,255,0.25);
  transform: translate(-50%, -58%) scale(1.12);
  box-shadow: 0 0 24px rgba(0,240,255,0.5);
}

.v-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--white);
}

/* ── Video Modal ───────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4,4,15,0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active { display: flex; }

.modal-box {
  position: relative;
  width: 100%;
  max-width: 980px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 0 80px rgba(0,240,255,0.18);
}

.modal-box iframe {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  border: none;
  background: #000;
}

.modal-footer {
  padding: 13px 20px;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
}

.modal-title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.modal-close {
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--muted);
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s;
}

.modal-close:hover { color: var(--pink); border-color: var(--pink); }

/* ── About ─────────────────────────────────────────────────────── */
#about {
  background:
    radial-gradient(ellipse 70% 80% at 0% 50%, rgba(0,240,255,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 100% 50%, rgba(123,47,247,0.06) 0%, transparent 60%);
  padding: 80px 52px;
}

.about-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}

.about-visual {
  position: relative;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-orb {
  width: 300px; height: 300px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--cyan), var(--purple), var(--pink), var(--cyan));
  filter: blur(65px);
  opacity: 0.2;
  animation: orbSpin 10s linear infinite;
}

@keyframes orbSpin { to { transform: rotate(360deg); } }

.about-badge {
  position: absolute;
  padding: 20px 30px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  text-align: center;
}

.about-badge .big {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--cyan);
  text-shadow: var(--glow-c);
  display: block;
  line-height: 1;
}

.about-badge .lbl {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

.about-text .s-title { margin-bottom: 6px; }

.about-text p {
  margin-top: 22px;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.95;
  color: #9aa5c0;
}

.skill-tags {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--cyan);
  transition: background 0.2s, box-shadow 0.2s;
  cursor: default;
}

.skill-tag:hover {
  background: rgba(0,240,255,0.07);
  box-shadow: var(--glow-c);
}

/* ── Contact ───────────────────────────────────────────────────── */
#contact {
  padding: 80px 52px;
  background: radial-gradient(ellipse 60% 70% at 50% 110%, rgba(123,47,247,0.1) 0%, transparent 65%);
}

.contact-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.contact-sub {
  font-size: 0.98rem;
  font-weight: 300;
  color: var(--muted);
  margin: 12px 0 48px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-field label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-field input,
.form-field textarea {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(136,144,170,0.5); }

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(0,240,255,0.45);
  box-shadow: 0 0 0 3px rgba(0,240,255,0.07);
}

.form-field textarea { min-height: 130px; }

.form-submit {
  margin-top: 6px;
  text-align: center;
}

.form-submit .btn { padding: 15px 42px; font-size: 0.84rem; }

.form-note {
  margin-top: 16px;
  font-size: 0.7rem;
  color: rgba(136,144,170,0.5);
  letter-spacing: 0.04em;
}

/* ── Footer ────────────────────────────────────────────────────── */
footer {
  scroll-snap-align: start;
  padding: 36px 52px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-brand {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--cyan);
  text-shadow: var(--glow-c);
}

.footer-copy {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--muted);
}

.footer-behance {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-behance:hover { color: var(--cyan); }
.footer-behance svg { width: 16px; height: 16px; fill: currentColor; }

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  /* Disable scroll-snap on touch devices — it fights natural momentum scrolling */
  html { scroll-snap-type: none; }
  section { scroll-snap-align: none; min-height: auto; }
  #hero { min-height: 100dvh; }

  nav { padding: 0 18px; }
  .nav-links { display: none; }

  /* Behance → circular icon-only button (hide the text label) */
  .nav-actions .btn-behance {
    width: 42px;
    height: 42px;
    padding: 0;
    gap: 0;
    border-radius: 50%;
    justify-content: center;
    font-size: 0;            /* collapses the "My Behance" text node */
  }
  .nav-actions .btn-behance svg { width: 17px; height: 17px; }

  /* Hire Me → smaller text so it stays on one line */
  .nav-actions .btn:not(.btn-behance) {
    font-size: 0.66rem;
    padding: 10px 18px;
    white-space: nowrap;
    letter-spacing: 0.08em;
  }

  #portfolio { padding: calc(var(--nav-h) + 40px) 24px 48px; }
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  #about { padding: 80px 24px; }
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { display: none; }

  #contact { padding: 80px 24px; }
  .form-row { grid-template-columns: 1fr; }

  footer { padding: 28px 24px; }

  .hud-scene, .hud-format, .hud-timecode { font-size: 0.54rem; }
  .hud-rec { font-size: 0.54rem; }

  /* ── Hero graphics: keep all HUD/viewfinder inside the frame & content centered ── */
  #hero { padding: calc(var(--nav-h) + 48px) 24px 150px; height: 100dvh; }

  /* Viewfinder corners with equal 20px visual margins on all sides.
     The right corners flip horizontally (scaleX(-1)) and the bottom corners flip
     vertically (scaleY(-1)), each rendering 32px past their layout box. So the
     right and bottom insets add that 32px (20 + 32 = 52) to keep the 20px margin. */
  .viewfinder {
    top: calc(var(--nav-h) + 20px);
    left: 20px;
    right: 52px;
    bottom: 52px;
  }

  /* Top labels sit below the top corner brackets */
  .hud-scene, .hud-rec {
    top: calc(var(--nav-h) + 60px);
  }
  .hud-scene { left: 30px; }
  .hud-rec   { right: 30px; }

  /* Bottom stack (top → bottom): SCROLL · then 4K/timecode row · then corners */
  .scroll-hint { bottom: 100px; }

  .hud-format, .hud-timecode {
    bottom: 62px;
  }
  .hud-format   { left: 30px; }
  .hud-timecode { right: 30px; }
}

@media (max-width: 540px) {
  .video-grid { grid-template-columns: 1fr; }
  .hero-name { font-size: 2.5rem; }
}
