/* ═══════════════════════════════════════════
   JONO SHIN — Portfolio Stylesheet
   수정 가이드:
   - 색상 → :root 변수만 바꾸면 전체 반영
   - 폰트  → @import URL + --font-* 변수
   - 레이아웃 → 각 섹션 주석 참고
═══════════════════════════════════════════ */

/* ─── Google Fonts ─── */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

/* ─── 색상 & 폰트 변수 ─── */
:root {
  /* Primary — Red */
  --red:       #C41E3A;
  --red-deep:  #9A1630;
  --red-glow:  rgba(196,30,58,0.18);

  /* Accent — Charcoal */
  --charcoal:  #141414;
  --charcoal2: #1c1c1c;
  --charcoal3: #222222;

  /* Secondary — White */
  --gold:      #E8E4DE;
  --gold-dim:  #787270;

  /* Navy */
  --navy:      #1A2E4A;

  /* Text */
  --white:     #F0EDE8;
  --off:       #C0BCB6;
  --muted:     #7A7674;
  --dim:       #343230;
  --ink:       #080808;

  /* Fonts */
  --font-d: 'Cormorant Garamond', Georgia, serif; /* cinematic display serif */
  --font-s: 'Space Grotesk', sans-serif;          /* body / general text */
  --font-h: 'Space Grotesk', sans-serif;          /* UI labels */
  --font-m: 'Space Mono', monospace;              /* metadata / terminal UI */
  --font-a: 'Bebas Neue', sans-serif;             /* arcade UI titles */
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-s);
  font-size: 15px;
  font-weight: 400;
  overflow-x: hidden;
  cursor: none;
}

/* ─── FILM GRAIN ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)' opacity='0.09'/%3E%3C/svg%3E");
  animation: grain 0.5s steps(4) infinite, flicker 8s ease-in-out 2s infinite;
  mix-blend-mode: overlay;
  opacity: 0.55;
}
@keyframes grain {
  0%   { transform: translate(0,0); }
  25%  { transform: translate(-3px,2px); }
  50%  { transform: translate(2px,-3px); }
  75%  { transform: translate(-1px,3px); }
}
@keyframes flicker {
  0%, 94%, 100% { opacity: 0.55; }
  95%            { opacity: 0.28; }
  96%            { opacity: 0.65; }
  97%            { opacity: 0.38; }
  98%            { opacity: 0.55; }
}


/* ─── CUSTOM CURSOR ─── */
.cur {
  position: fixed;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: transform 0.08s;
  box-shadow: 0 0 8px rgba(240,237,232,0.25);
}
.cur-r {
  position: fixed;
  width: 28px; height: 28px;
  border: 1px solid rgba(240,237,232,0.35);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}

/* ─── FILM STRIP SIDEBAR ─── */
.sprocket-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 32px;
  z-index: 150;
  pointer-events: none;
  background: #0a0808;
  border-right: 1px solid rgba(196,30,58,0.15);
  box-shadow: 2px 0 18px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 8px 0;
  overflow: hidden;
}
.sprk-pair {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.sprk {
  width: 11px;
  height: 8px;
  border: 1px solid #2e1818;
  background: #000;
  border-radius: 1px;
  box-shadow: 0 0 4px rgba(196,30,58,0.1);
}
@media (max-width: 768px) {
  .sprocket-sidebar { display: none; }
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 0 56px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.5s, border 0.5s;
}
nav.scrolled {
  background: rgba(12,10,9,0.97);
  border-bottom: 1px solid var(--dim);
  backdrop-filter: blur(12px);
}
.nav-logo {
  font-family: var(--font-h);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-dot {
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: dotBlink 1.8s ease-in-out infinite;
}
@keyframes dotBlink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(196,30,58,0.8), 0 0 6px rgba(196,30,58,0.5); }
  50%       { opacity: 0.2;  box-shadow: 0 0 8px 4px rgba(196,30,58,0); }
}
.nav-r { display: flex; align-items: center; gap: 44px; }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-family: var(--font-a);
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s, text-shadow 0.3s;
}
.nav-links a:hover { color: var(--white); text-shadow: 0 0 12px rgba(240,237,232,0.3); }
.nav-cta {
  font-family: var(--font-a);
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--red);
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid var(--red-deep);
  padding: 8px 20px;
  transition: all 0.3s;
  box-shadow: 0 0 12px rgba(196,30,58,0.2), inset 0 0 10px rgba(196,30,58,0.05);
}
.nav-cta:hover { background: var(--red); color: var(--white); box-shadow: 0 0 20px rgba(196,30,58,0.5); }

/* ─── HERO ─── */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 72px;
  height: 56vh;
  min-height: 360px;
  border-bottom: 1px solid var(--dim);
}

/* mouse-follow spotlight */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 55% 65% at var(--mx, 20%) var(--my, 55%),
    rgba(139,26,26,0.13) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
  transition: background 0.08s linear;
}

/* breathing ambient glow */
.hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,30,58,0.07) 0%, transparent 70%);
  top: -160px;
  right: 8%;
  pointer-events: none;
  z-index: 0;
  animation: heroPulse 7s ease-in-out infinite;
}
@keyframes heroPulse {
  0%, 100% { transform: scale(1);   opacity: 0.6; }
  50%       { transform: scale(1.4); opacity: 1;   }
}

.hero-name-h1 {
  position: relative;
  z-index: 1;
  font-family: var(--font-a);
  font-weight: 400;
  font-size: clamp(72px, 10.5vw, 160px);
  line-height: 0.88;
  letter-spacing: 0.01em;
  color: var(--white);
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.22,1,0.36,1) 0.2s forwards,
             glitch 12s ease-in-out 5s infinite;
}
.hero-name-h1 em {
  font-style: italic;
  color: var(--red);
  display: block;
}
.hero-sub {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.22,1,0.36,1) 0.7s forwards;
}
.hero-sub-line {
  width: 0;
  height: 1px;
  background: var(--red);
  flex-shrink: 0;
  animation: lineGrow 0.7s cubic-bezier(0.22,1,0.36,1) 1.1s forwards;
}
@keyframes lineGrow {
  to { width: 32px; }
}
.hero-keyword {
  font-family: var(--font-m);
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--off);
}
.hero-li {
  display: flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
  margin-left: 20px;
  padding-left: 20px;
  border-left: 1px solid var(--dim);
  transition: color 0.3s;
}
.hero-li:hover { color: var(--white); }
.hero-li svg { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes glitch {
  0%, 82%, 100% {
    text-shadow: 2px 0 rgba(196,30,58,0.22), -1px 0 rgba(40,60,200,0.08), 0 4px 40px rgba(0,0,0,0.6);
  }
  83% {
    text-shadow: -6px 0 rgba(196,30,58,0.7), 6px 0 rgba(40,60,200,0.2), 0 4px 40px rgba(0,0,0,0.6);
  }
  84% {
    text-shadow: 6px 0 rgba(196,30,58,0.7), -5px 0 rgba(40,60,200,0.18), 0 4px 40px rgba(0,0,0,0.6);
  }
  85% {
    text-shadow: -2px 0 rgba(196,30,58,0.4), 2px 0 rgba(40,60,200,0.1), 0 4px 40px rgba(0,0,0,0.6);
  }
  86% {
    text-shadow: 2px 0 rgba(196,30,58,0.22), -1px 0 rgba(40,60,200,0.08), 0 4px 40px rgba(0,0,0,0.6);
  }
  93% {
    text-shadow: -3px 0 rgba(196,30,58,0.35), 2px 0 rgba(40,60,200,0.08), 0 4px 40px rgba(0,0,0,0.6);
  }
  94% {
    text-shadow: 2px 0 rgba(196,30,58,0.22), -1px 0 rgba(40,60,200,0.08), 0 4px 40px rgba(0,0,0,0.6);
  }
}

/* ─── SECTION HEADER ─── */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--dim);
}
.sec-index {
  font-family: var(--font-m);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 12px;
  text-shadow: 0 0 10px rgba(196,30,58,0.55);
}
.sec-title {
  font-family: var(--font-a);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.03em;
  color: var(--white);
}
.sec-title em { font-style: normal; color: var(--off); }
.sec-meta {
  font-family: var(--font-m);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  text-align: right;
}

/* ─── WORK SECTION ─── */
.work-section { padding: 100px 56px; }

/* Filter tabs */
.filter-row {
  display: flex;
  margin: 40px 0 0;
  border-bottom: 1px solid var(--dim);
}
.ftab {
  font-family: var(--font-a);
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  padding: 14px 24px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: none;
  transition: color 0.25s, border-color 0.25s, text-shadow 0.25s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ftab:hover { color: var(--white); text-shadow: 0 0 10px rgba(240,237,232,0.2); }
.ftab.on { color: var(--red); border-bottom-color: var(--red); text-shadow: 0 0 10px rgba(196,30,58,0.55); }
.ftab .n { font-family: var(--font-m); font-size: 9px; color: var(--dim); }
.ftab.on .n { color: rgba(196,30,58,0.5); }

/* Project grid — 3 columns uniform */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.pc {
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
  cursor: none;
  border: 1px solid var(--dim);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.pc:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 52px rgba(0,0,0,0.55), 0 0 28px rgba(196,30,58,0.12);
  border-color: rgba(196,30,58,0.45);
  z-index: 2;
}
.pc .thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.thumb-fill {
  position: absolute;
  inset: 0;
  transition: transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.pc:hover .thumb-fill { transform: scale(1.06); }
.thumb-collage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
  background: #000;
}
.thumb-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* Thumbnail gradient colors (0–16) */
.t0  { background: linear-gradient(160deg,#1e0c0c,#2e1010,#150808); }
.t1  { background: linear-gradient(160deg,#0e0f14,#141820,#090a10); }
.t2  { background: linear-gradient(160deg,#12100c,#1e1a12,#0a0808); }
.t3  { background: linear-gradient(160deg,#0c0e10,#131a1e,#080a0c); }
.t4  { background: linear-gradient(160deg,#140a0a,#200e0e,#0e0606); }
.t5  { background: linear-gradient(160deg,#0e0c14,#16121e,#08070a); }
.t6  { background: linear-gradient(160deg,#0c1010,#121a1a,#080c0c); }
.t7  { background: linear-gradient(160deg,#14100a,#201a0e,#0a0806); }
.t8  { background: linear-gradient(160deg,#10080e,#1a0c16,#0a0608); }
.t9  { background: linear-gradient(160deg,#0a0e0c,#121a14,#060a08); }
.t10 { background: linear-gradient(160deg,#1a0e0e,#2a1414,#100808); }
.t11 { background: linear-gradient(160deg,#0a0c14,#10121e,#060810); }
.t12 { background: linear-gradient(160deg,#120e08,#1e1610,#0a0806); }
.t13 { background: linear-gradient(160deg,#140808,#220c0c,#0c0505); }
.t14 { background: linear-gradient(160deg,#08100e,#0e1c18,#060a08); }
.t15 { background: linear-gradient(160deg,#10100a,#1c1c10,#080806); }
.t16 { background: linear-gradient(160deg,#1c0a0a,#2e1010,#120606); }

.thumb-deco { display: none; }
.lb-t, .lb-b {
  position: absolute;
  left: 0; right: 0;
  height: 0;
  background: var(--ink);
  transition: height 0.4s ease;
  z-index: 3;
}
.lb-t { top: 0; }
.lb-b { bottom: 0; }
.pc:hover .lb-t, .pc:hover .lb-b { height: 8px; }
.t-ov {
  position: absolute;
  inset: 0;
  background: transparent;
  transition: background 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.pc:hover .t-ov { background: rgba(12,10,9,0.35); }
.ic-play, .ic-eye {
  opacity: 0;
  transition: opacity 0.3s;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ic-play { border: 1px solid rgba(139,26,26,0.6); }
.ic-play::after  { content: '▶'; color: var(--red); font-size: 13px; margin-left: 2px; }
.ic-eye  { border: 1px solid rgba(232,226,217,0.25); }
.ic-eye::after   { content: '◉'; color: var(--off); font-size: 18px; }
.pc:hover .ic-play,
.pc:hover .ic-eye { opacity: 1; }
.badge {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--font-a);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  z-index: 4;
  pointer-events: none;
}
.badge-v { background: rgba(139,26,26,0.2); color: var(--red); border: 1px solid rgba(139,26,26,0.35); }
.badge-a { background: rgba(240,237,232,0.08); color: var(--gold); border: 1px solid rgba(240,237,232,0.2); }
.pinfo {
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
  border-top: 1px solid var(--dim);
}
.pname {
  font-family: var(--font-a);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  transition: color 0.3s;
}
.pc:hover .pname { color: var(--red); }
.pmeta { text-align: right; }
.pclient {
  font-family: var(--font-m);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--gold-dim);
  text-transform: uppercase;
  display: block;
}
.pyear {
  font-family: var(--font-m);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  display: block;
  margin-top: 3px;
}
.pc.hidden { display: none; }
.pc.collapsed { display: none; }

.more-works-wrap {
  display: flex;
  justify-content: center;
  margin-top: 52px;
}
.more-works-btn {
  font-family: var(--font-a);
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--off);
  background: none;
  border: 1px solid var(--dim);
  padding: 16px 56px;
  cursor: none;
  position: relative;
  overflow: hidden;
  transition: color 0.35s, border-color 0.35s;
}
.more-works-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: -1;
}
.more-works-btn:hover { color: var(--white); border-color: var(--red); }
.more-works-btn:hover::before { transform: scaleX(1); }

/* ─── VIDEO MODAL ─── */
.vmodal {
  position: fixed;
  inset: 0;
  background: rgba(8,6,5,0.96);
  z-index: 9100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
  backdrop-filter: blur(10px);
}
.vmodal.open { opacity: 1; visibility: visible; }
.vmodal-inner {
  width: 88vw;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(16px);
  transition: transform 0.4s ease;
}
.vmodal.open .vmodal-inner { transform: translateY(0); }
.vmodal-close {
  position: absolute;
  top: -40px; right: 0;
  font-family: var(--font-m);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: none;
  transition: color 0.3s;
}
.vmodal-close:hover { color: var(--red); }
.vframe {
  aspect-ratio: 16/9;
  background: #000;
  position: relative;
  overflow: hidden;
}
.vmodal.vertical .vmodal-inner { max-width: 420px; }
.vmodal.vertical .vframe { aspect-ratio: 9/16; }
.vmodal.grid-mode .vmodal-inner { max-width: 860px; }
.vgrid {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  height: calc(75vh - 60px);
  background: #000;
}
.vgrid-cell {
  position: relative;
  overflow: hidden;
  background: #000;
}
.vgrid-cell iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.vframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.vinfo {
  padding: 22px 0 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  border-top: 1px solid var(--dim);
  margin-top: 18px;
}
.vtitle { font-family: var(--font-a); font-size: 26px; font-weight: 400; color: var(--white); margin-bottom: 6px; letter-spacing: 0.03em; }
.vdesc  { font-size: 14px; color: var(--off); line-height: 1.8; }
.vtags  { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.vtag {
  font-family: var(--font-m);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--gold-dim);
  text-transform: uppercase;
  border: 1px solid var(--dim);
  padding: 4px 10px;
  white-space: nowrap;
}

/* ─── VIDEO PLAYLIST ─── */
.vplaylist {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--dim);
  margin-top: 0;
  overflow-x: auto;
}
.vpitem {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-right: 1px solid var(--dim);
  cursor: none;
  transition: background 0.2s;
  min-width: 0;
}
.vpitem:last-child { border-right: none; }
.vpitem:hover { background: rgba(255,255,255,0.04); }
.vpitem.on { background: rgba(196,30,58,0.08); }
.vpitem.on .vpnum { color: var(--red); }
.vpnum {
  font-family: var(--font-m);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
  flex-shrink: 0;
}
.vptitle {
  font-family: var(--font-m);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--off);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── GALLERY MODAL ─── */
.gmodal {
  position: fixed;
  inset: 0;
  background: #080605;
  z-index: 9100;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;
}
.gmodal.open { opacity: 1; visibility: visible; }
.gmodal-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding-bottom: 120px;
}

/* sticky header */
.ghead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(8,6,5,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 18px 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.gtitle {
  font-family: var(--font-a);
  font-size: 20px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.04em;
}
.glabel {
  font-family: var(--font-m);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin-bottom: 5px;
}
.gclose {
  font-family: var(--font-m);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  background: none;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 7px 14px;
  cursor: none;
  transition: color 0.3s, border-color 0.3s;
  flex-shrink: 0;
}
.gclose:hover { color: var(--white); border-color: rgba(255,255,255,0.3); }

/* image scroll area */
.gscroll {
  padding: 64px 48px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gscroll-img {
  width: 100%;
  height: auto;
  display: block;
}

/* row groups */
.gscroll-row {
  display: grid;
  gap: 6px;
}
.gscroll-row--2 { grid-template-columns: 1fr 1fr; }
.gscroll-row--3 { grid-template-columns: 1fr 1fr 1fr; }
.gscroll-row .gscroll-img {
  width: 100%;
  height: auto;
  display: block;
}

/* separator between layout sections */
.gscroll > .gscroll-img + .gscroll-img,
.gscroll > .gscroll-row + .gscroll-img,
.gscroll > .gscroll-img + .gscroll-row {
  margin-top: 40px;
}

/* info footer */
.ginfo-bottom {
  margin: 72px 48px 0;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.gdesc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
  max-width: 560px;
}
.gtags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  flex-shrink: 0;
}

/* ─── ABOUT ─── */
.about-section { padding: 100px 56px; background: var(--charcoal2); border-top: 1px solid var(--dim); }
.about-body { display: grid; grid-template-columns: 1fr 2fr; gap: 80px; margin-top: 60px; align-items: start; }
.about-text p { font-size: 15px; font-style: normal; color: var(--off); line-height: 1.85; margin-bottom: 24px; }
.about-text p:last-child { margin-bottom: 0; }
.about-text p strong { font-style: normal; color: var(--white); font-weight: 700; }

.about-hello {
  font-family: var(--font-a) !important;
  font-size: clamp(52px, 6.5vw, 88px) !important;
  font-weight: 400 !important;
  font-style: normal !important;
  color: var(--white) !important;
  line-height: 1.0 !important;
  letter-spacing: 0.03em;
}
.about-hello em { font-style: normal; color: var(--gold); }

/* ─── SKILLS ─── */
.skills-section { padding: 100px 56px; background: var(--charcoal); border-top: 1px solid var(--dim); }
.skills-body { margin-top: 60px; }

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 60px;
  margin-bottom: 0;
}
.skills-grid .skill-block:nth-last-child(2) { border-bottom: 1px solid var(--dim); }
.skills-grid .skill-block:last-child { border-bottom: none; }

.skills-proficiency { margin-top: 0; }
.skills-proficiency .skill-block { border-bottom: 1px solid var(--dim); }

.skills-heading {
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}

.skill-block {
  padding: 22px 0;
  border-top: 1px solid var(--dim);
}
.skill-block:last-child { border-bottom: 1px solid var(--dim); }

.skill-block h4 {
  font-family: var(--font-m);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.skill-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skill-block ul li {
  font-size: 14px;
  color: var(--off);
  line-height: 1.75;
  padding-left: 14px;
  position: relative;
}

.skill-block ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--red-deep);
  font-size: 11px;
}

.skill-num {
  display: inline-block;
  font-family: var(--font-m);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--red);
  margin-right: 10px;
  opacity: 0.75;
}

.tool-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 14px;
}
.tool-chip {
  font-family: var(--font-m);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--dim);
  padding: 4px 9px;
  transition: border-color 0.2s, color 0.2s;
}
.tool-chip:hover {
  border-color: var(--red-deep);
  color: var(--off);
}

.skill-block--proficiency { margin-top: 4px; }

.proficiency-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.prof-label {
  font-family: var(--font-m);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--off);
  margin-bottom: 10px;
}

@media (max-width: 600px) {
  .proficiency-cols { grid-template-columns: 1fr; }
}

/* ─── EXPERIENCE ─── */
.exp-section { padding: 100px 56px; background: var(--charcoal); border-top: 1px solid var(--dim); }
.exp-list { margin-top: 60px; }
.exp-row {
  display: grid;
  grid-template-columns: 160px 1fr 120px;
  gap: 52px;
  padding: 36px 0;
  border-bottom: 1px solid var(--dim);
  align-items: start;
  position: relative;
  transition: padding-left 0.3s;
}
.exp-row:first-child { border-top: none; }
.exp-row:hover { padding-left: 14px; }
.exp-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s ease;
}
.exp-row:hover::before { transform: scaleY(1); }
.exp-yr   { font-family: var(--font-m); font-size: 11px; letter-spacing: 0.1em; color: var(--muted); padding-top: 5px; }
.exp-co   { font-family: var(--font-a); font-size: 30px; font-weight: 400; color: var(--white); margin-bottom: 5px; letter-spacing: 0.03em; transition: color 0.3s; }
.exp-row:hover .exp-co { color: var(--red); }
.exp-role { font-family: var(--font-s); font-style: normal; font-size: 14px; color: var(--off); margin-bottom: 14px; }
.exp-desc { font-size: 14px; color: var(--muted); line-height: 1.9; }
.exp-badge { font-family: var(--font-a); font-size: 13px; letter-spacing: 0.08em; color: var(--red); border: 1px solid var(--red-deep); padding: 4px 12px; text-transform: uppercase; white-space: nowrap; align-self: start; justify-self: end; box-shadow: 0 0 8px rgba(196,30,58,0.15); }

/* ─── CONTACT ─── */
.contact-section { padding: 160px 56px; border-top: 1px solid var(--dim); position: relative; overflow: hidden; text-align: center; }
.contact-glow { position: absolute; bottom: -20%; left: 50%; transform: translateX(-50%); width: 60vw; height: 50vh; background: radial-gradient(ellipse at center, rgba(139,26,26,0.12) 0%, transparent 70%); pointer-events: none; }
.contact-h { font-family: var(--font-a); font-size: clamp(60px,9vw,140px); font-weight: 400; line-height: 0.9; letter-spacing: 0.03em; color: var(--white); margin-bottom: 52px; }
.contact-h em { font-style: italic; color: var(--red); }
.contact-link {
  font-family: var(--font-m);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--red);
  text-decoration: none;
  text-transform: lowercase;
  border: 1px solid rgba(139,26,26,0.4);
  padding: 16px 44px;
  display: inline-block;
  position: relative;
  overflow: hidden;
  transition: color 0.35s, border-color 0.35s;
}
.contact-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: -1;
}
.contact-link:hover { color: var(--white); border-color: var(--red); }
.contact-link:hover::before { transform: scaleX(1); }

/* ─── FOOTER ─── */
footer { padding: 32px 56px; border-top: 1px solid var(--dim); display: flex; justify-content: space-between; align-items: center; }
footer p { font-family: var(--font-m); font-size: 9px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
.flinks { display: flex; gap: 28px; list-style: none; }
.flinks a { font-family: var(--font-m); font-size: 9px; letter-spacing: 0.12em; color: var(--muted); text-decoration: none; text-transform: uppercase; transition: color 0.3s; }
.flinks a:hover { color: var(--gold); }

/* ─── SCROLL REVEAL ─── */
.rv { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
.rv.vis { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) and (min-width: 769px) {
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links, .nav-cta { display: none; }
  .hero { height: 100svh; }
  .hero-left { width: 44px; }
  .hero-name-side, .hero-name-side-red { font-size: 9px; letter-spacing: 0.2em; }
  .hero-right { padding: 0 20px 60px 16px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .hero-scroll { right: 20px; bottom: 60px; }
  .work-section, .about-section, .skills-section, .exp-section, .contact-section { padding: 72px 20px; }
  .proj-grid { grid-template-columns: 1fr; gap: 12px; }
  .about-body { grid-template-columns: 1fr; gap: 40px; }
  .skills-grid { grid-template-columns: 1fr; }
  .exp-row { grid-template-columns: 1fr; gap: 10px; }
  .exp-badge { justify-self: start; }
  footer { flex-direction: column; gap: 14px; text-align: center; padding: 24px; }
  .vmodal-inner { width: 96vw; }
  .ghead, .gmain, .gfooter { padding-left: 16px; padding-right: 16px; }
  .gslide { max-height: 50vh; }
}
