/* ═══════════════════════════════════════════
   Dale Winsor-Tanguay — Personal Site
   Silver / Black / Minimalist / Cinematic
   ═══════════════════════════════════════════ */

/* ── Self-hosted fonts (eliminates FOUT / network dependency) ── */
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url(fonts/bebas-neue-400.woff2) format('woff2');
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 300;
  font-display: block;
  src: url(fonts/barlow-condensed-300.woff2) format('woff2');
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url(fonts/barlow-condensed-400.woff2) format('woff2');
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 500;
  font-display: block;
  src: url(fonts/barlow-condensed-500.woff2) format('woff2');
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: block;
  src: url(fonts/barlow-condensed-600.woff2) format('woff2');
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url(fonts/barlow-condensed-700.woff2) format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(fonts/inter-latin.woff2) format('woff2');
}

:root {
  --bg: #e3e6ea;
  --bg-light: #ebeef1;
  --bg-mid: #dce0e5;
  --bg-darker: #d3d7dd;
  --bg-card: #d8dce2;
  --black: #000000;
  --black-soft: #080808;
  --charcoal: #151515;
  --dark: #222222;
  --mid: #434750;
  --text: #0a0a0a;
  --text-secondary: #1a1a1a;
  --text-muted: #444444;
  --border: rgba(0, 0, 0, 0.10);
  --border-strong: rgba(0, 0, 0, 0.20);
  --white: #f5f5f5;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.09), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 36px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.05);
  --shadow-text: 0 1px 2px rgba(0,0,0,0.12);
  --accent: #2a6cb6;
  --accent-hover: #1f5a9a;
  --accent-glow: rgba(42, 108, 182, 0.25);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
}

/* ── Film grain texture overlay ── */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ── Metallic sheen gradient ── */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 30% 10%, rgba(255,255,255,0.35) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 85%, rgba(190,190,190,0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(245,245,245,0.15) 0%, transparent 70%);
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #a4a8ae; border-radius: 3px; }


/* ═══ NAV ═══ */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(226, 226, 226, 0.65);
  backdrop-filter: blur(28px) saturate(1.2);
  -webkit-backdrop-filter: blur(28px) saturate(1.2);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  padding: 0 48px;
  height: 56px;
  display: flex;
  align-items: center;
  transition: all 0.4s;
}

nav.scrolled {
  background: rgba(230, 230, 230, 0.9);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  border-bottom-color: rgba(0,0,0,0.10);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-home {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 3px;
  color: var(--black);
  text-decoration: none;
  text-shadow: var(--shadow-text);
  transition: opacity 0.3s;
}
.nav-home:hover { opacity: 0.5; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--mid);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--black); }
.nav-links a.active { color: var(--accent); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--black);
  transition: all 0.3s;
}


/* ═══ HERO ═══ */
.hero {
  padding: 160px 48px 80px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Ghost watermark behind hero — deep background layer */

.hero > * { position: relative; z-index: 1; }

.hero-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(50px, 7.5vw, 108px);
  letter-spacing: 12px;
  line-height: 1;
  color: var(--black);
  text-transform: uppercase;
  white-space: nowrap;
  padding-bottom: 30px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.4);
}

.hero-name-rule {
  width: 100vw;
  height: 3px;
  background: linear-gradient(to right, var(--black) 0%, var(--black) 40%, var(--accent) 50%, var(--black) 60%, var(--black) 100%);
  margin-left: calc(-50vw + 50%);
  margin-bottom: 30px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.2);
}

.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 6px;
  text-indent: 3px;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 36px;
}

.hero-summary {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 700px;
  margin: 0 auto 60px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.stat {
  text-align: center;
  flex: 1 1 0;
  min-width: 0;
}

.stat-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 56px;
  color: var(--black);
  line-height: 1;
  margin-bottom: 6px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.12);
}

.stat-label {
  font-size: 11px;
  color: var(--mid);
  font-weight: 600;
  letter-spacing: 2px;
  text-indent: 2px;
  text-transform: uppercase;
}


/* ═══ SECTIONS ═══ */
section {
  padding: 88px 48px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.section-rule {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.section-rule hr {
  border: none;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0,0,0,0.18) 20%,
    rgba(0,0,0,0.18) 80%,
    transparent
  );
}

/* ── Section number watermarks (background depth layer) ── */
.section-num {
  position: absolute;
  top: 40px;
  right: 48px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 140px;
  line-height: 1;
  color: var(--black);
  opacity: 0.22;
  pointer-events: none;
  user-select: none;
  letter-spacing: 4px;
}

.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 12px;
}

.section-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  letter-spacing: 3px;
  color: var(--black);
  margin-bottom: 40px;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0,0,0,0.10);
}


/* ═══ SKILLS GRID (3-col) ═══ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skill-item {
  background: #ffffff;
  padding: 32px 32px 32px 29px;
  border: 1px solid rgba(0,0,0,0.06);
  border-left: 3px solid var(--black);
  box-shadow: var(--shadow-sm);
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.skill-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(0,0,0,0.12);
  border-left-color: var(--accent);
}

.skill-item h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--black);
  margin-bottom: 10px;
}

.skill-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 400;
}


/* ═══ TRACK RECORD ═══ */
.track-record {
  padding: 48px 48px 48px 44px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.track-record p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.9;
  font-weight: 400;
  margin-bottom: 16px;
}

.track-record p:last-of-type { margin-bottom: 0; }

.dist-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.dist-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--black);
  padding: 8px 18px;
  border: 1.5px solid rgba(0,0,0,0.30);
  background: rgba(255,255,255,0.18);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dist-tag:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
  box-shadow: 0 3px 12px rgba(0,0,0,0.18);
  transform: translateY(-2px);
}


/* ═══ CONTACT ═══ */
.contact {
  text-align: center;
  padding: 88px 48px 110px;
}

.contact .section-heading { margin-bottom: 12px; }

.contact-intro {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 44px;
  font-weight: 400;
}

.contact-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 34px;
  border: 2px solid var(--accent);
  background: var(--accent);
  box-shadow: 0 2px 8px var(--accent-glow);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 6px 24px rgba(42, 108, 182, 0.35);
  transform: translateY(-3px);
}

.contact-btn svg {
  width: 16px;
  height: 16px;
  opacity: 0.9;
}
.contact-btn:hover svg { opacity: 1; }


/* ═══ FOOTER ═══ */
footer {
  text-align: center;
  padding: 28px 48px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}


/* ═══ ABOUT PAGE ═══ */
.page-header {
  padding: 120px 48px 40px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.page-header h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 52px;
  letter-spacing: 4px;
  color: var(--black);
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0,0,0,0.10);
}

.about-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 48px 80px;
}

.about-photo {
  width: 260px;
  height: 320px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 80px;
}

.about-photo svg {
  width: 56px;
  height: 56px;
  opacity: 0.15;
  color: var(--dark);
}

.about-text p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 20px;
  font-weight: 400;
}

.about-text p:last-child { margin-bottom: 0; }


/* ═══ RESUME PAGE ═══ */
.resume-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px 80px;
}

.resume-header-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 48px 6px;
}

.resume-header-bar h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 52px;
  letter-spacing: 4px;
  color: var(--black);
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0,0,0,0.10);
  margin: 0;
}

.resume-content--pdf {
  padding-top: 0;
  padding-bottom: 40px;
}

.resume-pdf-viewer {
  width: 100%;
  height: calc(100vh - 56px);
  min-height: 700px;
  border: 1px solid var(--bg-darker);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.resume-pdf-viewer embed {
  display: block;
  border: none;
}

.resume-pdf-fallback {
  display: none;
  text-align: center;
  padding: 60px 24px;
  color: var(--mid);
}

.resume-section {
  margin-bottom: 56px;
}

.resume-section:last-child { margin-bottom: 0; }

.resume-section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  letter-spacing: 3px;
  color: var(--black);
  text-transform: uppercase;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--black);
  text-shadow: var(--shadow-text);
}

.resume-entry {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.resume-entry:last-child { border-bottom: none; }

.resume-date {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mid);
  padding-top: 2px;
}

.resume-role {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 2px;
  text-shadow: var(--shadow-text);
}

.resume-company {
  font-size: 14px;
  color: var(--mid);
  margin-bottom: 10px;
  font-weight: 500;
}

.resume-desc {
  font-size: 14px;
  color: var(--text);
  line-height: 1.8;
  font-weight: 400;
}

.resume-skills-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 48px;
}

.resume-skill-line {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  font-weight: 400;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.resume-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  padding: 14px 28px;
  border: 2px solid var(--accent);
  background: var(--accent);
  box-shadow: 0 2px 8px var(--accent-glow);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  margin-top: 40px;
}

.resume-download:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 6px 20px rgba(42, 108, 182, 0.35);
  transform: translateY(-2px);
}


/* ═══ POST-PRODUCTION TEXTURE SYSTEM ═══ */
/* Environmental layers evoking modern post-production workflow:
   timecode, frame guides, waveforms, metadata, pipeline nodes.
   All at very low opacity — texture, not content. */

/* ── Hero safe-area frame marks (crop/finishing guide) ── */
.hero-frame {
  position: absolute;
  top: 110px;
  left: 36px;
  right: 36px;
  bottom: 20px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  background:
    /* top-left corner */
    linear-gradient(var(--black), var(--black)) 0 0 / 40px 1.5px no-repeat,
    linear-gradient(var(--black), var(--black)) 0 0 / 1.5px 40px no-repeat,
    /* top-right corner */
    linear-gradient(var(--black), var(--black)) 100% 0 / 40px 1.5px no-repeat,
    linear-gradient(var(--black), var(--black)) 100% 0 / 1.5px 40px no-repeat,
    /* bottom-left corner */
    linear-gradient(var(--black), var(--black)) 0 100% / 40px 1.5px no-repeat,
    linear-gradient(var(--black), var(--black)) 0 100% / 1.5px 40px no-repeat,
    /* bottom-right corner */
    linear-gradient(var(--black), var(--black)) 100% 100% / 40px 1.5px no-repeat,
    linear-gradient(var(--black), var(--black)) 100% 100% / 1.5px 40px no-repeat;
}

/* Center crosshair (frame center mark) */
.hero-frame::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(var(--black), var(--black)) 50% 0 / 1px 100% no-repeat,
    linear-gradient(var(--black), var(--black)) 0 50% / 100% 1px no-repeat;
  opacity: 0.6;
}

/* ── Timecode burn-in stamps ── */
.tc-burn {
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2.5px;
  color: var(--black);
  opacity: 0.85;
  position: absolute;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.tc-burn--br {
  bottom: 16px;
  right: 48px;
}

.tc-burn--bl {
  bottom: 16px;
  left: 48px;
}

.tc-burn--tr {
  top: 40px;
  right: 48px;
}

/* ── Audio waveform trace ── */
.waveform-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  position: relative;
}

.waveform-trace {
  display: block;
  width: 100%;
  height: 28px;
  opacity: 0.28;
  pointer-events: none;
}

.waveform-wrap .tc-stamp {
  font-family: 'Courier New', Courier, monospace;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--black);
  opacity: 0.85;
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  user-select: none;
}

/* ── Metadata strip (technical specs watermark) ── */
.meta-strip {
  font-family: 'Courier New', Courier, monospace;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--black);
  opacity: 0.75;
  text-align: center;
  margin-top: 44px;
  pointer-events: none;
  user-select: none;
}

/* ── Delivery pipeline ── */
.pipeline-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px 48px;
}

.pipeline {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 0.70;
  pointer-events: none;
  user-select: none;
}

.pipeline-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pipeline-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--black);
  background: transparent;
}

.pipeline-dot--filled {
  background: var(--black);
}

.pipeline-label {
  font-family: 'Courier New', Courier, monospace;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--black);
  white-space: nowrap;
}

.pipeline-line {
  flex: 1;
  height: 1px;
  background: var(--black);
  min-width: 36px;
  max-width: 80px;
  margin-top: 3px; /* align with dot center */
}

/* ── Timeline ruler ticks on section dividers ── */
.section-rule {
  position: relative;
}

.section-rule::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 48px;
  right: 48px;
  height: 7px;
  background: repeating-linear-gradient(
    to right,
    transparent 0px,
    transparent 59px,
    rgba(0,0,0,0.30) 59px,
    rgba(0,0,0,0.30) 60px
  );
  pointer-events: none;
}

/* Cut-point diamond on section rule center */
.section-rule::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--black);
  opacity: 0.35;
  transform: translateX(-50%) rotate(45deg);
  pointer-events: none;
}


/* ═══ SCROLL ANIMATIONS ═══ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children inside skills grid */
.skills-grid .skill-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-left-color 0.35s ease;
}
.skills-grid.visible .skill-item {
  opacity: 1;
  transform: translateY(0);
}
.skills-grid.visible .skill-item:nth-child(1) { transition-delay: 0.05s; }
.skills-grid.visible .skill-item:nth-child(2) { transition-delay: 0.12s; }
.skills-grid.visible .skill-item:nth-child(3) { transition-delay: 0.19s; }
.skills-grid.visible .skill-item:nth-child(4) { transition-delay: 0.26s; }
.skills-grid.visible .skill-item:nth-child(5) { transition-delay: 0.33s; }
.skills-grid.visible .skill-item:nth-child(6) { transition-delay: 0.40s; }

/* Staggered dist tags */
.dist-list .dist-tag {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease,
              background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.track-record.visible .dist-tag,
.resume-content .dist-tag {
  opacity: 1;
  transform: translateY(0);
}
.track-record.visible .dist-tag:nth-child(1) { transition-delay: 0.05s; }
.track-record.visible .dist-tag:nth-child(2) { transition-delay: 0.10s; }
.track-record.visible .dist-tag:nth-child(3) { transition-delay: 0.15s; }
.track-record.visible .dist-tag:nth-child(4) { transition-delay: 0.20s; }
.track-record.visible .dist-tag:nth-child(5) { transition-delay: 0.25s; }
.track-record.visible .dist-tag:nth-child(6) { transition-delay: 0.30s; }
.track-record.visible .dist-tag:nth-child(7) { transition-delay: 0.35s; }
.track-record.visible .dist-tag:nth-child(8) { transition-delay: 0.40s; }


/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  nav { padding: 0 24px; }

  .hero-frame { top: 80px; left: 16px; right: 16px; bottom: 12px; opacity: 0.04; }
  .hero-frame::after { display: none; }
  .tc-burn { display: none; }
  .meta-strip { display: none; }
  .waveform-wrap { padding: 0 24px; }
  .pipeline { display: none; }
  .section-rule::after, .section-rule::before { display: none; }

  .nav-links {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(226, 226, 226, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  .hero { padding: 110px 24px 60px; }
  .hero-name { letter-spacing: 4px; white-space: normal; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .stat { display: flex; align-items: baseline; gap: 12px; justify-content: center; }
  .stat-number { font-size: 40px; }

  section { padding: 60px 24px; }
  .section-rule { padding: 0 24px; }
  .section-num { font-size: 80px; right: 24px; top: 24px; }

  .skills-grid { grid-template-columns: 1fr; }

  .track-record { padding: 32px; }
  .contact { padding: 60px 24px 80px; }
  footer { padding: 20px 24px; }

  .page-header { padding: 100px 24px 24px; }
  .about-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px 24px 60px;
  }
  .about-photo {
    width: 180px;
    height: 220px;
    position: static;
  }

  .resume-content { padding: 0 24px 60px; }
  .resume-entry {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .resume-skills-list { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 36px; letter-spacing: 2px; }
  .hero-title { font-size: 13px; letter-spacing: 3px; }
  .contact-row { flex-direction: column; align-items: center; }
  .contact-btn { width: 100%; justify-content: center; }
}
