/* ============================================================
   Your Name — portfolio. Dark, cinematic, interactive.
   No external dependencies.
   ============================================================ */
:root {
  --bg: #08080a;
  --bg-2: #0e0e12;
  --text: #f4f4f5;
  --muted: #8b8b94;
  --accent: #e8e1cf;          /* warm "film" highlight */
  --accent-glow: rgba(232,225,207,0.5);
  --border: #1d1d22;
  --metal-1: #2a2b30;
  --metal-2: #16161a;
  --radius: 12px;
  --maxw: 1080px;
  --bar-h: 310px;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: var(--bar-h);
}
a { color: inherit; text-decoration: none; }

/* ---------- animated background ---------- */
.bg-aurora {
  position: fixed; inset: -20%;
  z-index: -2;
  background:
    radial-gradient(40vw 40vw at var(--mx, 30%) var(--my, 20%), rgba(120,140,255,0.12), transparent 60%),
    radial-gradient(38vw 38vw at calc(100% - var(--mx, 30%)) 80%, rgba(232,225,207,0.08), transparent 60%),
    radial-gradient(50vw 50vw at 70% 10%, rgba(160,108,255,0.10), transparent 60%);
  filter: blur(10px);
  transition: background-position 0.3s ease;
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(0,-3%,0) scale(1.08); }
}
.bg-grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- spotlight cursor ---------- */
.spotlight {
  position: fixed; top: 0; left: 0; z-index: 1; pointer-events: none;
  width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 60%);
  opacity: 0; mix-blend-mode: screen; transition: opacity 0.4s;
  will-change: transform;
}
body.has-pointer .spotlight { opacity: 0.18; }

/* ---------- scroll progress ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--accent), #a06cff);
  z-index: 60; box-shadow: 0 0 12px var(--accent-glow);
}

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 0 clamp(20px, 6vw, 80px);
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; width: 100%; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.4em;
  font-size: 0.72rem; color: var(--muted); margin: 0 0 24px;
}
.hero-title {
  margin: 0; font-weight: 700;
  font-size: clamp(3rem, 13vw, 9rem); line-height: 0.92; letter-spacing: -0.04em;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .word {
  display: inline-block;
  background: linear-gradient(180deg, #fff, #b9b3a3);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateY(110%);
  animation: rise 0.9s cubic-bezier(0.16,1,0.3,1) forwards;
}
.hero-title .line:nth-child(2) .word { animation-delay: 0.12s; }
@keyframes rise { to { transform: translateY(0); } }
.lede {
  font-size: clamp(1.05rem, 2.6vw, 1.4rem); color: var(--muted);
  margin: 28px 0 0; letter-spacing: 0.02em;
}
.scroll-cue { margin: 56px 0 0; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; }
.scroll-cue .arrow { display: inline-block; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(6px);} }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--border); padding: 18px 0; background: var(--bg-2); }
.marquee-track {
  display: flex; width: max-content; gap: 0;
  animation: slide 28s linear infinite;
  font-weight: 700; letter-spacing: 0.06em; font-size: clamp(1.1rem, 3vw, 1.8rem);
  color: var(--muted);
}
.marquee-track span { white-space: nowrap; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(70px, 12vw, 150px) clamp(20px, 6vw, 80px); }
.section-title {
  max-width: var(--maxw); margin: 0 auto clamp(36px, 5vw, 60px);
  font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 16px;
}
.section-title .num { font-size: 0.7em; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- video grid ---------- */
.video-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(22px, 3.5vw, 40px);
  perspective: 1200px;
}
.video-card { margin: 0; cursor: pointer; transform-style: preserve-3d; }
.thumb {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: linear-gradient(135deg, #1a1a1f, #0d0d10);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color 0.3s, box-shadow 0.3s;
  display: flex; align-items: center; justify-content: center;
  transform-style: preserve-3d;
}
.video-card:hover .thumb { border-color: rgba(232,225,207,0.5); box-shadow: 0 24px 60px rgba(0,0,0,0.6); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* vertical (9:16) clips: show the full frame, centered, on a blurred fill of itself */
.video-card.portrait .thumb { background-image: var(--poster); background-size: cover; background-position: center; }
.video-card.portrait .thumb::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  backdrop-filter: blur(30px) brightness(0.5); -webkit-backdrop-filter: blur(30px) brightness(0.5);
}
.video-card.portrait .thumb img { object-fit: contain; position: relative; z-index: 1; }
.play-badge {
  position: absolute; z-index: 2; width: 60px; height: 60px; border-radius: 50%;
  background: rgba(0,0,0,0.4); border: 1.5px solid rgba(255,255,255,0.9); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; padding-left: 4px; backdrop-filter: blur(2px);
  transition: transform 0.25s, background 0.25s; transform: translateZ(40px);
}
.video-card:hover .play-badge { transform: translateZ(40px) scale(1.12); background: rgba(232,225,207,0.25); }
.video-card figcaption { margin-top: 14px; display: flex; flex-direction: column; gap: 3px; }
.vc-title { color: #ffffff; font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; }
.vc-sub { color: #d6d7dd; font-size: 0.9rem; line-height: 1.45; transition: color 0.3s; }
.video-card:hover .vc-sub { color: #f1f1f4; }

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); will-change: transform, opacity; }
.reveal[data-reveal="up"]    { transform: translateY(48px); }
.reveal[data-reveal="left"]  { transform: translateX(-60px); }
.reveal[data-reveal="right"] { transform: translateX(60px); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- footer ---------- */
.footer { text-align: center; padding: clamp(60px, 10vw, 120px) 20px clamp(40px, 6vw, 70px); border-top: 1px solid var(--border); }
.contact-link {
  font-size: clamp(1.4rem, 5vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff, #b9b3a3);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  border-bottom: 1px solid transparent;
}
.contact-link:hover { opacity: 0.8; }
.copyright { color: var(--muted); font-size: 0.85rem; margin: 24px 0 0; }

/* ============================================================
   CAMERA-TOP MENU
   ============================================================ */
.camera-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; justify-content: center; align-items: flex-end;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}
/* ============================================================
   CAMERA MENU — your photo (cut out) + working overlays
   ============================================================ */
.cam-photo {
  pointer-events: auto; position: relative;
  width: min(900px, 96vw);
  aspect-ratio: 1374 / 450;
  filter: drop-shadow(0 16px 38px rgba(0,0,0,0.6));
}
.cam-base { width: 100%; height: 100%; object-fit: contain; display: block; -webkit-user-drag: none; user-select: none; }

/* clickable zones */
.cam-hot { position: absolute; border: none; background: transparent; cursor: pointer; padding: 0;
  border-radius: 12px; z-index: 4; transition: transform 0.08s ease; }
.cam-hot:focus-visible { outline: 2px solid rgba(255,255,255,0.85); outline-offset: 2px; }
.cam-hot[data-press]::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0;
  background: rgba(0,0,0,0.3); box-shadow: inset 0 2px 7px rgba(0,0,0,0.7); transition: opacity 0.08s;
}
.cam-hot[data-press].pressing::after { opacity: 1; }   /* darken only, no scale */

.menu-hit { left: 50%;    top: 62%;    width: 18%;   height: 18%; border-radius: 14px; }
.ig-hit   { left: 69%;    top: 62%;    width: 22%;   height: 18%; border-radius: 14px; }
.iso-hit  { left: 67.45%; top: 34.64%; width: 7.11%; height: 21.71%; border-radius: 50%; }

/* OFF <-> ON slider — small, centered in the gap, black metallic knob */
.onoff { position: absolute; left: 73.2%; top: 10.5%; width: 5.6%; height: 6%;
  border-radius: 999px; background: linear-gradient(180deg, #050507, #131418);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.9), inset 0 -1px 1px rgba(255,255,255,0.05); z-index: 4; }
.onoff-knob { position: absolute; top: 50%; left: 70%; transform: translate(-50%,-50%);
  width: 42%; height: 150%; border-radius: 7px; cursor: grab;
  background:
    linear-gradient(180deg, rgba(90,92,100,0.55), rgba(0,0,0,0.45)),
    repeating-linear-gradient(90deg, #16171b 0 1.5px, #34353c 1.5px 3px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.25), inset 0 -1px 1px rgba(0,0,0,0.6);
  transition: left 0.12s linear; }
.onoff-knob:active { cursor: grabbing; }

/* ISO brightness panel (slides in from the right) */
.iso-panel { position: fixed; top: 50%; right: 0; transform: translate(105%, -50%);
  z-index: 52; width: 132px; padding: 16px 14px; border-radius: 16px 0 0 16px;
  background: linear-gradient(180deg, #1a1b20, #0d0d10); border: 1px solid #2a2b31; border-right: none;
  box-shadow: -18px 0 50px rgba(0,0,0,0.6); transition: transform 0.35s cubic-bezier(0.16,1,0.3,1); }
.iso-panel.open { transform: translate(0, -50%); }
.iso-panel h4 { margin: 0 0 12px; font-size: 0.72rem; letter-spacing: 0.22em; color: var(--accent);
  text-align: center; text-transform: uppercase; }
.iso-list { display: flex; flex-direction: column-reverse; gap: 5px; }  /* low at bottom, high at top */
.iso-opt { border: none; cursor: pointer; font: inherit; font-weight: 700; font-size: 0.92rem;
  color: var(--muted); background: #15161b; border: 1px solid #26272d; border-radius: 8px; padding: 8px 0;
  text-align: center; transition: background 0.18s, color 0.18s, transform 0.1s; font-variant-numeric: tabular-nums; }
.iso-opt:hover { color: var(--text); border-color: #43444c; }
.iso-opt.active { background: linear-gradient(180deg, var(--accent), #cdbf9a); color: #1a1712; border-color: var(--accent); }
.iso-opt:active { transform: scale(0.96); }

/* exposure overlay — ISO brightens the whole site */
.expo-overlay { position: fixed; inset: 0; z-index: 5; pointer-events: none;
  background: #fff; mix-blend-mode: screen; opacity: 0; transition: opacity 0.45s ease; }

/* ---------- menu overlay ---------- */
.menu-overlay {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(8,8,10,0.92); backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: center;
}
.menu-overlay[hidden] { display: none; }
.menu-links { display: flex; flex-direction: column; gap: clamp(10px, 2vw, 18px); text-align: center; }
.menu-links a {
  font-size: clamp(2rem, 8vw, 4.5rem); font-weight: 700; letter-spacing: -0.03em;
  color: var(--muted); transition: color 0.25s, transform 0.25s; opacity: 0;
  transform: translateY(30px); animation: menuIn 0.5s cubic-bezier(0.16,1,0.3,1) forwards;
}
.menu-links a:nth-child(1){ animation-delay: 0.04s; }
.menu-links a:nth-child(2){ animation-delay: 0.10s; }
.menu-links a:nth-child(3){ animation-delay: 0.16s; }
.menu-links a:nth-child(4){ animation-delay: 0.22s; }
.menu-links a:nth-child(5){ animation-delay: 0.28s; }
.menu-links a:hover { color: var(--text); transform: translateX(8px); }
@keyframes menuIn { to { opacity: 1; transform: none; } }
.menu-close, .player-close {
  position: absolute; top: 22px; right: 26px; width: 46px; height: 46px;
  border-radius: 50%; border: none; background: rgba(255,255,255,0.1); color: #fff;
  font-size: 1.3rem; cursor: pointer; transition: background 0.2s; z-index: 2;
}
.menu-close:hover, .player-close:hover { background: rgba(255,255,255,0.25); }

/* ---------- hover preview (pops out beside the thumbnail) ---------- */
.peek { position: fixed; z-index: 70; pointer-events: none; opacity: 0; }
.peek[aria-hidden="false"] { opacity: 1; }
.peek-panel {
  position: relative; width: 100%; height: 100%; border-radius: 14px; overflow: hidden;
  transform: perspective(1300px) rotateY(-15deg) scale(0.9); opacity: 0;
  transition: transform 0.26s cubic-bezier(0.16,1,0.3,1), opacity 0.26s ease;
  box-shadow: 0 36px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.10), 0 0 55px rgba(232,225,207,0.18);
  background: #000;
}
.peek.show .peek-panel { transform: perspective(1300px) rotateY(-11deg) scale(1); opacity: 1; }
.peek.left .peek-panel { transform: perspective(1300px) rotateY(15deg) scale(0.9); }
.peek.left.show .peek-panel { transform: perspective(1300px) rotateY(11deg) scale(1); }
.peek-video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.peek-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 18px 14px;
  background: linear-gradient(0deg, rgba(0,0,0,0.8), transparent); }
.peek-meta strong { display: block; color: #fff; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.peek-meta span { display: block; margin-top: 3px; color: #d6d7dd; font-size: 0.85rem; }
@media (hover: none) { .peek { display: none; } }

/* ---------- video player ---------- */
.player-overlay {
  position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,0.94);
  display: flex; align-items: center; justify-content: center; padding: clamp(16px, 4vw, 48px);
}
.player-overlay[hidden] { display: none; }
.player-box { display: inline-flex; border-radius: 12px; overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,0.7); background: #000; }
#player-video { display: block; background: #000; width: auto; height: auto; max-width: 92vw; max-height: 86vh; }

/* ---------- responsive ---------- */
@media (max-width: 560px) {
  :root { --bar-h: 150px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-title .word { transform: none; }
  .spotlight, .bg-aurora { display: none; }
}
