/* =============================================================
   AYYAN SUBHANI — PORTFOLIO  v2
   Premium / cinematic / futuristic redesign
   Design tokens
   ============================================================= */
:root{
  --bg:            #07070a;
  --bg-soft:       #0c0c10;
  --surface:       #121217;
  --surface-2:     #17171d;
  --surface-3:     #1d1d24;
  --glass:         rgba(20, 20, 26, 0.55);
  --glass-strong:  rgba(16, 16, 21, 0.78);
  --glass-border:  rgba(255, 255, 255, 0.08);
  --border:        rgba(255, 255, 255, 0.09);

  --text:          #f4f2ec;
  --text-dim:      #a5a29c;
  --text-faint:    #67655f;

  --amber:         #e8b627;
  --amber-soft:    #f3cd5c;
  --amber-glow:    rgba(232, 182, 39, 0.35);
  --cyan:          #37e0d8;
  --cyan-glow:     rgba(55, 224, 216, 0.28);

  --radius-s:  10px;
  --radius-m:  18px;
  --radius-l:  28px;
  --radius-xl: 40px;

  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 84px;
  --nav-h-scrolled: 66px;
  --scrubber-h: 46px;
}

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

html{
  background: var(--bg);
}
html.lenis, html.lenis body{ height:auto; }
.lenis.lenis-smooth{ scroll-behavior:auto !important; }
.lenis.lenis-stopped{ overflow:hidden; }

body{
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img{ display:block; max-width:100%; }
a{ color: inherit; text-decoration:none; }
ul{ list-style:none; }
button, input, textarea, select{ font-family: inherit; color: inherit; }
::selection{ background: var(--amber); color: #0a0a0a; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible{
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

/* =============================================================
   Ambient background
   ============================================================= */
body::before{
  content:"";
  position: fixed;
  inset: -10%;
  background:
    radial-gradient(38vw 38vw at 82% 8%, var(--amber-glow) 0%, transparent 60%),
    radial-gradient(30vw 30vw at 8% 60%, var(--cyan-glow) 0%, transparent 60%);
  opacity: 0.28;
  z-index: 0;
  pointer-events: none;
}

.grain{
  position: fixed;
  inset:0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

main, header, footer, section{ position: relative; z-index: 1; }

/* =============================================================
   Loader — "AYYAN BUILDS" cinematic intro
   ============================================================= */
#loader{
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  gap: 26px;
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease), filter .7s var(--ease);
}
#loader.loaded{ opacity:0; visibility:hidden; filter: blur(6px); pointer-events:none; }
.loader-inner{ display:flex; flex-direction:column; align-items:center; gap:22px; overflow:hidden; }
.loader-word{
  display:flex;
  gap: 0.14em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 6vw, 54px);
  letter-spacing: 0.06em;
  color: var(--text);
}
.loader-word span{
  display:inline-block;
  transform: translateY(120%);
  opacity: 0;
}
.loader-sub{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.loader-meter{
  display:flex;
  align-items:center;
  gap:16px;
}
.loader-bar{
  width: 220px;
  height: 2px;
  background: var(--border);
  overflow:hidden;
  border-radius: 2px;
}
.loader-bar span{
  display:block;
  height:100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
}
.loader-pct{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  min-width: 34px;
}

/* =============================================================
   Custom cursor (desktop only)
   ============================================================= */
.cursor-dot, .cursor-ring{
  position: fixed;
  top:0; left:0;
  pointer-events: none;
  z-index: 998;
  border-radius: 50%;
  transform: translate(-50%,-50%);
  will-change: transform;
}
.cursor-dot{
  width: 6px; height: 6px;
  background: var(--amber-soft);
  transition: opacity .25s ease, background .25s ease, width .25s var(--ease), height .25s var(--ease);
}
.cursor-ring{
  width: 34px; height: 34px;
  border: 1px solid rgba(244,242,236,0.5);
  transition: width .3s var(--ease), height .3s var(--ease), border-color .3s ease, background .3s ease, opacity .25s ease;
}
.has-cursor .cursor-dot,
.has-cursor .cursor-ring{ opacity: 1; }
.cursor-dot, .cursor-ring{ opacity: 0; }
.cursor-ring.is-link{
  width: 58px; height: 58px;
  border-color: var(--amber);
  background: rgba(232,182,39,0.06);
}
.cursor-ring.is-project{
  width: 96px; height: 96px;
  border-color: var(--cyan);
  background: rgba(55,224,216,0.05);
}
.cursor-ring.is-drag{ width:70px; height:70px; border-style:dashed; }
.cursor-ring.is-down{ transform: translate(-50%,-50%) scale(0.85); }
body.has-cursor, body.has-cursor a, body.has-cursor button{ cursor: none; }

/* =============================================================
   Layout helpers
   ============================================================= */
.section{
  padding: 150px clamp(24px, 6vw, 96px);
  max-width: 1440px;
  margin: 0 auto;
}
.section-head{ margin-bottom: 68px; max-width: 660px; }

.eyebrow{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
  display:inline-flex;
  align-items:center;
  gap: 10px;
}
.eyebrow::before{ content:""; width: 22px; height:1px; background: var(--amber); }

.section-head h2{ font-size: clamp(30px, 4vw, 48px); color: var(--text); }

.glass{
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-radius: var(--radius-m);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor:pointer;
  border: 1px solid transparent;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease), border-color .4s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn-primary{
  background: linear-gradient(135deg, var(--amber-soft), var(--amber));
  color: #14100a;
}
.btn-primary:hover{ box-shadow: 0 12px 32px -8px var(--amber-glow); }
.btn-ghost{
  background: rgba(255,255,255,0.02);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover{ border-color: var(--cyan); box-shadow: 0 12px 32px -12px var(--cyan-glow); }

/* magnetic buttons — inner span carries the offset so the hit area stays put */
[data-magnetic]{ display:inline-flex; }
[data-magnetic] span{ display:inline-flex; align-items:center; gap:8px; transition: transform .2s var(--ease-soft); }

/* =============================================================
   Nav — floating, compacts on scroll
   ============================================================= */
.nav{
  position: fixed;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: min(1220px, 92vw);
  height: var(--nav-h);
  z-index: 100;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 0 14px 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  transition: height .5s var(--ease), background .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease), padding .5s var(--ease), top .5s var(--ease);
}
.nav.is-scrolled{
  height: var(--nav-h-scrolled);
  top: 12px;
  background: var(--glass-strong);
  border-color: var(--glass-border);
  box-shadow: 0 20px 60px -24px rgba(0,0,0,0.65);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}
.nav-logo{
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.nav-logo span{ color: var(--amber); }

.nav-links{ display:flex; gap: 32px; font-size: 13.5px; color: var(--text-dim); }
.nav-links a{ position: relative; padding: 6px 0; transition: color 0.3s ease; }
.nav-links a::after{
  content:"";
  position:absolute; left:0; bottom:0;
  width:0%; height:1px;
  background: var(--amber);
  transition: width 0.35s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active{ color: var(--text); }
.nav-links a:hover::after, .nav-links a.is-active::after{ width:100%; }

.nav-cta{
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: border-color 0.3s ease, color 0.3s ease, background .3s ease;
}
.nav-cta:hover{ border-color: var(--amber); color: var(--amber-soft); background: rgba(232,182,39,0.06); }

.nav-burger{
  display:none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
  padding: 8px;
}
.nav-burger span{ width: 22px; height: 1.5px; background: var(--text); transition: transform 0.35s var(--ease), opacity 0.3s ease; }
.nav-burger.open span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2){ opacity:0; }
.nav-burger.open span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }

.nav-links.open{
  display:flex;
  position: fixed;
  inset: 0;
  flex-direction: column;
  align-items:flex-start;
  justify-content:center;
  padding: 40px 40px;
  gap: 22px;
  background: rgba(7,7,10,0.92);
  backdrop-filter: blur(22px);
  font-size: 30px;
  font-family: var(--font-display);
  z-index: 99;
}
.nav-links.open a{ opacity:0; transform: translateY(16px); animation: navLinkIn .55s var(--ease-soft) forwards; }
.nav-links.open a:nth-child(1){ animation-delay: .05s; }
.nav-links.open a:nth-child(2){ animation-delay: .1s; }
.nav-links.open a:nth-child(3){ animation-delay: .15s; }
.nav-links.open a:nth-child(4){ animation-delay: .2s; }
.nav-links.open a:nth-child(5){ animation-delay: .25s; }
@keyframes navLinkIn{ to{ opacity:1; transform:translateY(0); } }

/* =============================================================
   Hero
   ============================================================= */
.hero{
  position: relative;
  min-height: 100vh;
  display:flex;
  align-items:center;
  padding: calc(var(--nav-h) + 40px) clamp(24px, 6vw, 96px) 60px;
  overflow: hidden;
}
#hero-canvas{ position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.95; }

.hero-fallback{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit: cover; opacity: 0; z-index: -1; pointer-events: none;
}
.hero-fallback.active{ opacity: 0.4; z-index: 0; }

.hero-inner{
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display:grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items:center;
  gap: 40px;
}

.hero-copy .eyebrow{ opacity:1; }

.hero-title{
  font-size: clamp(42px, 6.6vw, 92px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 18px 0 26px;
  overflow:hidden;
}
.hero-title .line{ display:block; overflow:hidden; padding-bottom: .06em; }
.hero-title .line span{ display:inline-block; }
.hero-title-alive{
  background: linear-gradient(100deg, var(--text) 15%, var(--amber-soft) 55%, var(--cyan) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle{
  font-family: var(--font-display);
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-dim);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.hero-subtitle strong{ color: var(--text); font-weight:600; }

.hero-desc{ max-width: 500px; color: var(--text-dim); font-size: 16px; margin-bottom: 38px; }

.hero-cta{ display:flex; gap: 16px; flex-wrap: wrap; }

/* Floating portrait card — glass "device" framing the real photo */
.hero-visual{
  position: relative;
  justify-self: center;
  width: min(340px, 78vw);
}
.hero-portrait{ position: relative; perspective: 1600px; }
.portrait-3d{ position: relative; width: 100%; aspect-ratio: 4/4.6; transform-style: preserve-3d; will-change: transform; }

.portrait-glow{
  position:absolute; inset: -30px;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle, var(--amber-glow) 0%, transparent 65%);
  filter: blur(26px);
  transform: translateZ(-70px) scale(1.05);
  pointer-events: none;
}
.portrait-frame{
  position: relative;
  width: 100%; height: 100%;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 90px -24px rgba(0,0,0,0.75), 0 0 60px -10px var(--amber-glow);
  transform: translateZ(18px);
}
.portrait-frame::after{
  content:""; position:absolute; inset:0;
  background: radial-gradient(120% 80% at 50% 118%, rgba(7,7,10,0.6), transparent 60%);
  z-index: 1;
}
.portrait-frame img{ width:100%; height:100%; object-fit: cover; filter: saturate(1.05) contrast(1.03); }
.portrait-sheen{
  position:absolute; inset:0; z-index: 2; pointer-events:none;
  background: radial-gradient(circle at var(--sx, 30%) var(--sy, 25%), rgba(255,255,255,0.45), transparent 42%);
  mix-blend-mode: overlay; opacity: 0.9;
}
.portrait-edge{
  position:absolute; inset:0; z-index: 2; pointer-events:none;
  border-radius: var(--radius-l);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
  background: linear-gradient(var(--edge-angle, 135deg), var(--cyan-glow), transparent 30%, transparent 70%, var(--amber-glow));
  opacity: 0.5; mix-blend-mode: screen;
}
.portrait-chip{
  position:absolute; z-index:3;
  display:flex; align-items:center; gap: 8px;
  padding: 9px 15px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  border-radius: 999px;
  transform: translateZ(60px);
}
.portrait-chip.chip-status{ bottom: -16px; left: 50%; transform: translate(-50%,0) translateZ(60px); }
.portrait-chip.chip-status .dot{ width:7px; height:7px; border-radius:50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulse 1.8s ease-in-out infinite; }
.portrait-chip.chip-role{ top: 18px; right: -20px; transform: translateZ(60px); color: var(--amber-soft); }
@keyframes pulse{ 0%,100%{opacity:1;} 50%{opacity:0.35;} }

.hero-scroll-hint{
  position:absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  display:flex; flex-direction: column; align-items:center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-faint); z-index:1;
}
.scroll-line{ width:1px; height: 40px; background: var(--border); overflow:hidden; }
.scroll-line i{ display:block; width:100%; height:40%; background: var(--amber); animation: scrollDown 2s ease-in-out infinite; }
@keyframes scrollDown{ 0%{ transform: translateY(-100%); } 100%{ transform: translateY(250%); } }

/* =============================================================
   About
   ============================================================= */
.about-grid{ display:grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: start; }
.about-lead{
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--text);
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 30px;
}
.about-focus{ display:flex; flex-wrap: wrap; gap: 10px; }
.about-focus span{
  padding: 9px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  transition: border-color .3s ease, color .3s ease, transform .3s var(--ease);
}
.about-focus span:hover{ border-color: var(--amber); color: var(--amber-soft); transform: translateY(-3px); }

.about-stats{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat-card{
  padding: 28px 20px;
  display:flex; flex-direction: column; gap: 8px;
  transition: transform .45s var(--ease), border-color .45s var(--ease);
  position: relative;
}
.stat-card:hover{ transform: translateY(-8px); border-color: var(--amber-glow); }
.stat-num{ font-family: var(--font-display); font-size: 32px; color: var(--amber-soft); }
.stat-label{ font-size: 13px; color: var(--text-dim); }

/* =============================================================
   Services
   ============================================================= */
.services-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card{ padding: 34px 28px; transition: transform .45s var(--ease), border-color .45s var(--ease); position: relative; }
.service-card:hover{ transform: translateY(-8px); border-color: rgba(232,182,39,0.35); }
.service-icon{
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 22px;
  background: linear-gradient(145deg, rgba(232,182,39,0.16), rgba(55,224,216,0.08));
  border: 1px solid var(--glass-border);
  position: relative;
}
.service-icon::before{
  content:""; position:absolute; inset:0; margin: auto; width: 20px; height: 20px;
  background: var(--amber-soft);
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}
.service-icon[data-icon="code"]::before{ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpolyline points='16 18 22 12 16 6'/%3E%3Cpolyline points='8 6 2 12 8 18'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpolyline points='16 18 22 12 16 6'/%3E%3Cpolyline points='8 6 2 12 8 18'/%3E%3C/svg%3E"); }
.service-icon[data-icon="refresh"]::before{ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpolyline points='23 4 23 10 17 10'/%3E%3Cpolyline points='1 20 1 14 7 14'/%3E%3Cpath d='M3.51 9a9 9 0 0114.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0020.49 15'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpolyline points='23 4 23 10 17 10'/%3E%3Cpolyline points='1 20 1 14 7 14'/%3E%3Cpath d='M3.51 9a9 9 0 0114.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0020.49 15'/%3E%3C/svg%3E"); }
.service-icon[data-icon="layout"]::before{ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cline x1='3' y1='9' x2='21' y2='9'/%3E%3Cline x1='9' y1='21' x2='9' y2='9'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cline x1='3' y1='9' x2='21' y2='9'/%3E%3Cline x1='9' y1='21' x2='9' y2='9'/%3E%3C/svg%3E"); }
.service-icon[data-icon="cart"]::before{ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 002 1.61h9.72a2 2 0 002-1.61L23 6H6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 002 1.61h9.72a2 2 0 002-1.61L23 6H6'/%3E%3C/svg%3E"); }
.service-icon[data-icon="ai"]::before{ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 1v4M12 19v4M4.2 4.2l2.9 2.9M16.9 16.9l2.9 2.9M1 12h4M19 12h4M4.2 19.8l2.9-2.9M16.9 7.1l2.9-2.9'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 1v4M12 19v4M4.2 4.2l2.9 2.9M16.9 16.9l2.9 2.9M1 12h4M19 12h4M4.2 19.8l2.9-2.9M16.9 7.1l2.9-2.9'/%3E%3C/svg%3E"); }
.service-icon[data-icon="film"]::before{ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='2' y='2' width='20' height='20' rx='2.18' ry='2.18'/%3E%3Cline x1='7' y1='2' x2='7' y2='22'/%3E%3Cline x1='17' y1='2' x2='17' y2='22'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='2' y='2' width='20' height='20' rx='2.18' ry='2.18'/%3E%3Cline x1='7' y1='2' x2='7' y2='22'/%3E%3Cline x1='17' y1='2' x2='17' y2='22'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3C/svg%3E"); }
.service-icon[data-icon="design"]::before{ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='13.5' cy='6.5' r='.5'/%3E%3Ccircle cx='17.5' cy='10.5' r='.5'/%3E%3Ccircle cx='8.5' cy='7.5' r='.5'/%3E%3Ccircle cx='6.5' cy='12.5' r='.5'/%3E%3Cpath d='M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.9 0 1.5-.7 1.5-1.5 0-.4-.2-.8-.4-1.1-.2-.3-.4-.7-.4-1.1 0-.8.7-1.5 1.5-1.5H16c3.3 0 6-2.7 6-6 0-4.4-4.5-8-10-8z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='13.5' cy='6.5' r='.5'/%3E%3Ccircle cx='17.5' cy='10.5' r='.5'/%3E%3Ccircle cx='8.5' cy='7.5' r='.5'/%3E%3Ccircle cx='6.5' cy='12.5' r='.5'/%3E%3Cpath d='M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.9 0 1.5-.7 1.5-1.5 0-.4-.2-.8-.4-1.1-.2-.3-.4-.7-.4-1.1 0-.8.7-1.5 1.5-1.5H16c3.3 0 6-2.7 6-6 0-4.4-4.5-8-10-8z'/%3E%3C/svg%3E"); }
.service-card h3{ font-size: 19px; margin-bottom: 10px; }
.service-card p{ font-size: 14.5px; color: var(--text-dim); }

/* =============================================================
   Skills — category cards + tool chips
   ============================================================= */
.skills-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 44px;
}
.skill-card{
  padding: 30px 26px;
  transition: transform .45s var(--ease), border-color .45s var(--ease);
}
.skill-card:hover{ transform: translateY(-8px); border-color: var(--cyan-glow); }
.skill-card-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom: 20px; }
.skill-card-head h3{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.skill-card-head em{
  font-style:normal;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--amber-soft);
  border: 1px solid var(--glass-border);
  padding: 3px 9px;
  border-radius: 999px;
}
.skill-tag-list{ display:flex; flex-wrap: wrap; gap: 8px; }
.skill-tag-list span{
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255,255,255,0.02);
  transition: border-color .3s ease, color .3s ease, transform .3s var(--ease);
}
.skill-tag-list span:hover{ border-color: var(--amber); color: var(--amber-soft); transform: translateY(-2px); }

.skills-bars{ display:grid; grid-template-columns: 1fr 0.85fr; gap: 50px; margin-bottom: 40px; }
.skills-col-title{
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 26px;
}
.skill-bars li{ margin-bottom: 20px; }
.skill-row{ display:flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.skill-row em{ font-style:normal; font-family: var(--font-mono); color: var(--text-faint); font-size: 12px; }
.bar{ height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.bar i{ display:block; height:100%; width:0%; border-radius: 4px; background: linear-gradient(90deg, var(--cyan), var(--amber)); transition: width 1.4s var(--ease); }
.bar.in-view i{ width: var(--val); }

.tool-chips{ display:flex; flex-wrap: wrap; gap: 10px; }
.tool-chips span{
  padding: 9px 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  transition: border-color .3s ease, color .3s ease;
}
.tool-chips span:hover{ border-color: var(--cyan); color: var(--text); }

/* =============================================================
   Experience / Timeline
   ============================================================= */
.timeline{ position: relative; padding-left: 40px; }
.timeline-line{ position:absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: var(--border); }
.timeline-line i{ display:block; width:100%; height:0%; background: linear-gradient(180deg, var(--amber), var(--cyan)); transition: height 0.2s linear; }
.timeline-item{ position: relative; display:grid; grid-template-columns: 90px 1fr; gap: 28px; align-items:start; margin-bottom: 28px; }
.timeline-item::before{
  content:""; position:absolute; left: -44px; top: 8px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--amber);
}
.timeline-code{ font-family: var(--font-mono); font-size: 13px; color: var(--amber-soft); padding-top: 24px; }
.timeline-body{ padding: 26px 28px; }
.timeline-body h3{ font-size: 18px; margin-bottom: 8px; }
.timeline-body p{ font-size: 14.5px; color: var(--text-dim); }

/* =============================================================
   Portfolio / Projects
   ============================================================= */
.portfolio-grid{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project-card{
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform .5s var(--ease), border-color .45s var(--ease);
}
.project-card:hover{ transform: translateY(-8px); border-color: rgba(232,182,39,0.35); }
.project-image{
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--glass-border);
  position: relative;
}
.project-image img{
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .8s var(--ease);
}
.project-card:hover .project-image img{ transform: scale(1.07); }
.project-image::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 40%, rgba(7,7,10,0.55));
  opacity: 0;
  transition: opacity .5s ease;
}
.project-card:hover .project-image::after{ opacity: 1; }
.project-expand-hint{
  position:absolute; right: 18px; bottom: 18px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 999px;
  background: var(--glass-strong); border: 1px solid var(--glass-border);
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  z-index: 1;
}
.project-card:hover .project-expand-hint{ opacity: 1; transform: translateY(0); }

.project-body{ padding: 30px; }
.project-body h3{ font-size: 20px; margin-bottom: 10px; color: var(--text); }
.project-category{
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 12px; display:block;
}
.project-body p{ font-size: 14.5px; color: var(--text-dim); margin-bottom: 18px; }
.project-tags{ display:flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.project-tags span{
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.03em;
  color: var(--amber-soft); background: rgba(232,182,39,0.1);
  border: 1px solid var(--glass-border); padding: 5px 12px; border-radius: 999px;
}
.project-links{ display:flex; gap: 22px; }
.project-links a{ font-family: var(--font-display); font-size: 13.5px; font-weight: 600; color: var(--text); transition: color .3s ease; position:relative; z-index:2; }
.project-links a:hover{ color: var(--amber-soft); }

/* "More work" placeholder card — tasteful, easy to replace */
.project-card.is-placeholder{ cursor: default; display:flex; flex-direction:column; }
.project-card.is-placeholder .project-image{
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(150deg, var(--surface-2), var(--surface));
  aspect-ratio: 16/10;
}
.placeholder-mark{
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-faint); display:flex; align-items:center; gap: 12px;
}
.placeholder-mark::before, .placeholder-mark::after{ content:""; width: 30px; height:1px; background: var(--border); }
.project-card.is-placeholder:hover{ transform:none; border-color: var(--glass-border); }

/* Project detail overlay — full-screen case study */
.project-overlay{
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  visibility: hidden;
  opacity: 0;
  overflow-y: auto;
  clip-path: circle(4% at 90% 10%);
  transition: opacity .1s linear;
}
.project-overlay.is-open{ visibility: visible; opacity: 1; }
.project-overlay-inner{ max-width: 1100px; margin: 0 auto; padding: 120px clamp(24px,6vw,80px) 100px; }
.overlay-close{
  position: fixed; top: 26px; right: clamp(20px, 5vw, 70px); z-index: 201;
  width: 48px; height: 48px; border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  background: var(--glass-strong); border: 1px solid var(--glass-border);
  color: var(--text); font-size: 20px; cursor: pointer;
  transition: transform .3s var(--ease), border-color .3s ease;
}
.overlay-close:hover{ transform: rotate(90deg); border-color: var(--amber); }
.overlay-media{
  width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-l); overflow:hidden;
  border: 1px solid var(--glass-border); margin-bottom: 46px;
}
.overlay-media img{ width:100%; height:100%; object-fit: cover; }
.overlay-head{ display:flex; justify-content:space-between; align-items:flex-end; flex-wrap:wrap; gap:20px; margin-bottom: 40px; }
.overlay-head h2{ font-size: clamp(28px, 4vw, 46px); }
.overlay-grid{ display:grid; grid-template-columns: 1.4fr 1fr; gap: 60px; }
.overlay-desc{ font-size: 16px; color: var(--text-dim); line-height: 1.8; }
.overlay-meta dt{ font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px; margin-top: 22px; }
.overlay-meta dt:first-child{ margin-top: 0; }
.overlay-meta dd{ font-size: 15px; color: var(--text); }
.overlay-cta{ display:flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }

/* =============================================================
   Contact
   ============================================================= */
.contact{ padding-bottom: 60px; }
.contact-inner{ max-width: 760px; }
.contact-title{ font-size: clamp(30px, 4.8vw, 54px); margin-bottom: 16px; text-transform: uppercase; }
.contact-sub{ color: var(--text-dim); margin-bottom: 48px; }

.contact-form{ padding: 36px; margin-bottom: 40px; }
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field{ margin-bottom: 20px; display:flex; flex-direction:column; gap: 8px; }
.field label{ font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; color: var(--text-dim); text-transform: uppercase; }
.field input, .field textarea, .field select{
  background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: var(--radius-s);
  padding: 13px 14px; font-size: 14.5px; transition: border-color 0.3s ease, background 0.3s ease; resize: vertical;
}
.field input:focus, .field textarea:focus, .field select:focus{ border-color: var(--amber); background: rgba(255,255,255,0.05); outline: none; }
.btn-submit{ width:100%; border:none; margin-top: 4px; }
.form-note{ margin-top: 16px; font-size: 12px; color: var(--text-faint); text-align:center; }

.contact-links{ display:flex; align-items:center; justify-content:space-between; flex-wrap: wrap; gap: 20px; }
.contact-links > a{ font-family: var(--font-display); font-size: 20px; color: var(--amber-soft); }
.social-row{ display:flex; gap: 22px; font-size: 13.5px; color: var(--text-dim); }
.social-row a:hover{ color: var(--text); }

/* =============================================================
   Footer
   ============================================================= */
.footer{ padding: 50px clamp(24px, 6vw, 96px) calc(var(--scrubber-h) + 30px); border-top: 1px solid var(--border); max-width: 1440px; margin: 0 auto; }
.footer-top{ display:flex; justify-content:space-between; align-items:center; margin-bottom: 26px; }
.footer-logo{ font-family: var(--font-display); font-size: 15px; letter-spacing: 0.06em; }
.footer-back{ font-size: 13px; color: var(--text-dim); transition: color .3s ease; }
.footer-back:hover{ color: var(--amber-soft); }
.footer-bottom{ display:flex; justify-content:space-between; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--text-faint); }

/* =============================================================
   Scrubber — signature scroll-progress "timecode" bar
   ============================================================= */
.scrubber{
  position: fixed; left:0; right:0; bottom:0; height: var(--scrubber-h); z-index: 90;
  display:flex; align-items:center; gap: 16px; padding: 0 clamp(16px, 4vw, 40px);
  background: rgba(7,7,10,0.75); border-top: 1px solid var(--border); backdrop-filter: blur(14px);
}
.scrubber-track{ position: relative; flex: 1; height: 3px; background: var(--surface-2); border-radius: 2px; }
.scrubber-fill{ position:absolute; left:0; top:0; bottom:0; width: 0%; background: linear-gradient(90deg, var(--cyan), var(--amber)); border-radius: 2px; }
.scrubber-playhead{
  position:absolute; top:50%; left:0%; width: 12px; height: 12px; border-radius: 50%;
  background: var(--amber-soft); box-shadow: 0 0 12px var(--amber-glow); transform: translate(-50%,-50%);
}
.scrubber-timecode{ font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); min-width: 92px; text-align: right; }

/* =============================================================
   Reveal-on-scroll base states (animated via GSAP)
   ============================================================= */
[data-reveal]{ opacity: 1; transform: none; }
.js [data-reveal]{ opacity: 0; transform: translateY(26px); }
.js [data-split]{ opacity: 1; }

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 980px){
  .hero-inner{ grid-template-columns: 1fr; text-align:left; }
  .hero-visual{ order:-1; width: min(220px, 60vw); margin-bottom: 12px; }
  .portrait-chip.chip-role{ display:none; }
  .about-grid{ grid-template-columns: 1fr; }
  .about-stats{ grid-template-columns: 1fr 1fr 1fr; }
  .services-grid{ grid-template-columns: 1fr 1fr; }
  .portfolio-grid{ grid-template-columns: 1fr; }
  .skills-grid{ grid-template-columns: 1fr 1fr; }
  .skills-bars{ grid-template-columns: 1fr 1fr; }
  .overlay-grid{ grid-template-columns: 1fr; gap: 30px; }
  .nav{ width: 94vw; }
}

@media (max-width: 720px){
  :root{ --nav-h: 68px; --nav-h-scrolled: 60px; }
  .nav{ top: 10px; padding: 0 8px 0 20px; }
  .nav-links, .nav-cta{ display:none; }
  .nav-burger{ display:flex; }
  .section{ padding: 100px 22px; }
  .services-grid{ grid-template-columns: 1fr; }
  .skills-grid{ grid-template-columns: 1fr; }
  .skills-bars{ grid-template-columns: 1fr; gap: 34px; }
  .form-row{ grid-template-columns: 1fr; }
  .about-stats{ grid-template-columns: 1fr; }
  .contact-links{ flex-direction: column; align-items:flex-start; }
  .timeline{ padding-left: 30px; }
  .timeline-item{ grid-template-columns: 1fr; gap: 8px; }
  .timeline-item::before{ left: -34px; }
  .timeline-code{ padding-top: 0; }
  .scrubber-timecode{ display:none; }
  .footer-top{ flex-direction: column; align-items:flex-start; gap: 14px; }
  .cursor-dot, .cursor-ring{ display:none; }
  .project-overlay-inner{ padding: 100px 20px 80px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js [data-reveal]{ opacity:1; transform:none; }
  .cursor-dot, .cursor-ring{ display:none; }
}
