/* ============================================================
   Ron Bulischeck — Portfolio
   ============================================================ */

:root {
  --bg:           #07090f;
  --bg-2:         #0a0e17;
  --surface:      #111827;
  --surface-2:    #0e1420;
  --line:         #1c2433;
  --line-soft:    #161d2b;

  --primary:      #ff6b1a;
  --primary-soft: #ff8c4d;
  --primary-glow: rgba(255, 107, 26, 0.18);
  --accent:       #22d3ee;
  --accent-2:     #0ea5e9;
  --accent-glow:  rgba(34, 211, 238, 0.16);

  --text:         #f4f6fb;
  --text-mid:     #aab3c5;
  --text-dim:     #6b7689;

  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease:         cubic-bezier(0.16, 1, 0.3, 1);
  --maxw:         1320px;
  --pad:          clamp(1.25rem, 5vw, 6rem);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

body.is-loading { overflow: hidden; height: 100vh; }
body.menu-open  { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--primary); color: #07090f; }

/* Subtle global noise/vignette */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  background:
    radial-gradient(120% 80% at 50% 0%, transparent 55%, rgba(0,0,0,0.45) 100%);
  mix-blend-mode: multiply;
}

/* ============ PRELOADER ============ */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { width: min(420px, 70vw); text-align: center; }
.preloader__brand {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.5rem, 8vw, 4rem); letter-spacing: -0.02em;
}
.preloader__brand span { color: var(--primary); }
.preloader__bar {
  height: 2px; background: var(--line); margin: 1.5rem 0 0.75rem;
  position: relative; overflow: hidden;
}
.preloader__bar span {
  position: absolute; inset: 0; width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.preloader__count {
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-mid);
  display: flex; justify-content: flex-end;
}
.preloader__status {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.4em;
  color: var(--text-dim); margin-top: 0.75rem;
}

/* ============ CUSTOM CURSOR ============ */
.cursor, .cursor-dot { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    position: fixed; top: 0; left: 0; z-index: 9998;
    width: 38px; height: 38px; border: 1px solid var(--text-dim);
    border-radius: 50%; pointer-events: none; display: block;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease), height 0.3s var(--ease),
                border-color 0.3s var(--ease), background 0.3s var(--ease),
                opacity 0.3s var(--ease);
    mix-blend-mode: difference;
  }
  .cursor-dot {
    position: fixed; top: 0; left: 0; z-index: 9998;
    width: 5px; height: 5px; background: var(--primary); border-radius: 50%;
    pointer-events: none; display: block; transform: translate(-50%, -50%);
  }
  .cursor.is-hover { width: 64px; height: 64px; border-color: var(--primary); background: var(--primary-glow); }
  .cursor.is-view  {
    width: 86px; height: 86px; border-color: transparent; background: var(--primary);
    mix-blend-mode: normal;
  }
  .cursor.is-view::after {
    content: "VIEW"; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.15em;
    color: #07090f; font-weight: 600;
  }
  .cursor.is-view + .cursor-dot, .cursor.is-hover + .cursor-dot { opacity: 0; }
}

/* ============ SCROLL PROGRESS ============ */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 1000;
}

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem var(--pad);
  transition: padding 0.4s var(--ease), background 0.4s var(--ease),
              border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding-top: 0.9rem; padding-bottom: 0.9rem;
  background: rgba(7, 9, 15, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav { transition: transform 0.45s var(--ease), padding 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease); }

.nav__logo { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); }
.nav__logo-mark {
  display: grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid var(--line); border-radius: 8px;
  font-weight: 700; font-size: 0.85rem; color: var(--primary);
  background: var(--surface);
}
.nav__logo-text { font-weight: 600; font-size: 0.98rem; letter-spacing: -0.01em; }
.nav__logo-text em { color: var(--text-dim); font-style: normal; font-weight: 400; }

.nav__links { display: flex; gap: 2rem; }
.nav__links a {
  font-size: 0.86rem; color: var(--text-mid); font-weight: 500;
  position: relative; transition: color 0.3s;
}
.nav__links a i { font-family: var(--font-mono); font-style: normal; font-size: 0.65rem; color: var(--primary); margin-right: 0.35rem; opacity: 0.7; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--primary); transition: width 0.35s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }

.nav__cta {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.02em;
  padding: 0.6rem 1.1rem; border: 1px solid var(--line); border-radius: 100px;
  color: var(--text); transition: all 0.3s var(--ease); position: relative; overflow: hidden;
}
.nav__cta span { position: relative; z-index: 1; }
.nav__cta::before {
  content: ""; position: absolute; inset: 0; background: var(--primary);
  transform: translateY(101%); transition: transform 0.35s var(--ease);
}
.nav__cta:hover { color: #07090f; border-color: var(--primary); }
.nav__cta:hover::before { transform: translateY(0); }

.nav__burger { display: none; background: none; border: 0; flex-direction: column; gap: 6px; cursor: pointer; padding: 8px; }
.nav__burger span { display: block; width: 26px; height: 2px; background: var(--text); transition: transform 0.3s var(--ease), opacity 0.3s; }
.nav.menu-active .nav__burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav.menu-active .nav__burger span:nth-child(2) { transform: translateY(-8px) rotate(-45deg); }

/* ============ MOBILE MENU ============ */
.mobile-menu {
  position: fixed; inset: 0; z-index: 800;
  background: var(--bg-2); padding: 6rem var(--pad) 3rem;
  display: flex; flex-direction: column; justify-content: center; gap: 0.5rem;
  transform: translateY(-100%); transition: transform 0.55s var(--ease);
  visibility: hidden;
}
.mobile-menu.is-open { transform: translateY(0); visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-menu nav a {
  font-family: var(--font-display); font-size: clamp(2rem, 9vw, 3rem); font-weight: 600;
  padding: 0.4rem 0; border-bottom: 1px solid var(--line-soft); display: flex; align-items: baseline; gap: 1rem;
}
.mobile-menu nav a i { font-family: var(--font-mono); font-style: normal; font-size: 0.9rem; color: var(--primary); }
.mobile-menu__cta { font-family: var(--font-mono); color: var(--accent); margin-top: 2rem; font-size: 1rem; }

/* ============ LAYOUT HELPERS ============ */
section { position: relative; z-index: 2; }
.section-head {
  display: flex; align-items: center; gap: 1rem;
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--pad); margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.section-head__index { font-family: var(--font-mono); color: var(--primary); font-size: 0.9rem; }
.section-head__label {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.3em;
  font-size: 0.72rem; color: var(--text-mid);
}
.section-head::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 7rem var(--pad) 5rem; overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__grid-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 40%, transparent 30%, #000 100%);
  mask-image: radial-gradient(120% 90% at 50% 40%, transparent 30%, #000 100%);
  opacity: 0.5;
}

.hero__meta {
  position: absolute; top: 50%; font-family: var(--font-mono);
  font-size: 0.68rem; letter-spacing: 0.12em; color: var(--text-dim);
  text-transform: uppercase; z-index: 3; display: flex; align-items: center; gap: 0.5rem;
}
.hero__meta--left  { left: var(--pad); transform: rotate(-90deg) translateX(-50%); transform-origin: left center; }
.hero__meta--right { right: var(--pad); transform: rotate(90deg) translateX(50%); transform-origin: right center; }
.hero__meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.hero__meta .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 0 var(--primary-glow); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,107,26,0.5);} 70% { box-shadow: 0 0 0 10px rgba(255,107,26,0);} 100% { box-shadow: 0 0 0 0 rgba(255,107,26,0);} }

.hero__content { position: relative; z-index: 3; max-width: var(--maxw); margin: 0 auto; width: 100%; }
.hero__eyebrow {
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1.5rem; overflow: hidden;
}
.hero__eyebrow span { display: inline-block; }

.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3.4rem, 15vw, 13rem); line-height: 0.86; letter-spacing: -0.04em;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line span { display: inline-block; will-change: transform; }
.hero__title .line:nth-child(2) span {
  background: linear-gradient(100deg, var(--text) 0%, var(--text-dim) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.hero__tagline {
  max-width: 42ch; margin-top: 2rem; font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-mid); line-height: 1.7;
}
.hero__tagline em { color: var(--primary); font-style: normal; }

.hero__actions { display: flex; gap: 1rem; margin-top: 2.5rem; flex-wrap: wrap; }
.btn {
  font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.03em;
  padding: 0.95rem 1.8rem; border-radius: 100px; position: relative; overflow: hidden;
  border: 1px solid var(--line); transition: color 0.35s, border-color 0.35s;
}
.btn span { position: relative; z-index: 1; }
.btn::before { content: ""; position: absolute; inset: 0; transform: translateY(101%); transition: transform 0.4s var(--ease); }
.btn:hover::before { transform: translateY(0); }
.btn--primary { background: var(--primary); color: #07090f; border-color: var(--primary); font-weight: 600; }
.btn--primary::before { background: var(--text); }
.btn--primary:hover { color: #07090f; }
.btn--ghost { color: var(--text); }
.btn--ghost::before { background: var(--primary); }
.btn--ghost:hover { color: #07090f; border-color: var(--primary); }

.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--text-dim);
}
.hero__scroll-line { width: 1px; height: 48px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 40%; background: var(--primary); animation: scrollLine 2s var(--ease) infinite; }
@keyframes scrollLine { 0% { transform: translateY(-100%);} 100% { transform: translateY(300%);} }

/* ============ MARQUEE ============ */
.marquee {
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  padding: 1.4rem 0; overflow: hidden; background: var(--bg-2); position: relative; z-index: 2;
}
.marquee__track { display: flex; gap: 3rem; width: max-content; white-space: nowrap; will-change: transform; }
.marquee__track span {
  font-family: var(--font-display); font-size: clamp(1.2rem, 2.5vw, 2rem); font-weight: 500;
  color: var(--text-dim); display: flex; align-items: center; gap: 3rem;
}
.marquee__track span::after { content: "&"; color: var(--primary); font-family: var(--font-mono); }

/* ============ ABOUT ============ */
.about { padding: clamp(5rem, 12vw, 9rem) 0; }
.about__grid {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 6vw, 6rem);
}
.about__statement h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: 1.08; letter-spacing: -0.02em;
}
.about__body p { color: var(--text-mid); font-size: 1.05rem; margin-bottom: 1.25rem; }
.about__body strong { color: var(--text); font-weight: 600; }
.about__quote {
  font-family: var(--font-mono); font-size: 0.92rem; line-height: 1.7; color: var(--text-mid);
  border-left: 2px solid var(--primary); padding: 1rem 0 1rem 1.5rem; margin-top: 2rem;
  background: linear-gradient(90deg, var(--primary-glow), transparent); border-radius: 0 6px 6px 0;
}

/* ============ METRICS ============ */
.metrics { padding: clamp(3rem, 8vw, 6rem) 0; }
.metrics__grid {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden;
}
.metric-card {
  background: var(--surface-2); padding: clamp(1.75rem, 3vw, 2.75rem);
  transition: background 0.4s var(--ease); position: relative;
}
.metric-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width 0.5s var(--ease);
}
.metric-card:hover { background: var(--surface); }
.metric-card:hover::before { width: 100%; }
.metric-card__value {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(2.5rem, 5vw, 3.6rem);
  letter-spacing: -0.03em; line-height: 1; display: flex; align-items: baseline; gap: 0.25rem;
  background: linear-gradient(135deg, var(--text), var(--primary-soft));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.metric-card__value em { font-size: 0.4em; font-style: normal; color: var(--text-dim); -webkit-text-fill-color: var(--text-dim); }
.metric-card__label { margin-top: 1rem; font-weight: 600; color: var(--text); font-size: 0.98rem; }
.metric-card__note { margin-top: 0.4rem; color: var(--text-dim); font-size: 0.82rem; }

/* ============ CAPABILITIES ============ */
.caps { padding: clamp(4rem, 10vw, 8rem) 0; }
.caps__grid {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.cap {
  border: 1px solid var(--line-soft); border-radius: 14px; padding: 2rem 1.75rem;
  background: linear-gradient(180deg, var(--surface-2), var(--bg-2));
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease);
}
.cap:hover { transform: translateY(-8px); border-color: var(--line); }
.cap__num { font-family: var(--font-mono); color: var(--primary); font-size: 0.9rem; margin-bottom: 2.5rem; }
.cap h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin-bottom: 0.75rem; }
.cap p { color: var(--text-mid); font-size: 0.92rem; margin-bottom: 1.5rem; }
.cap__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.cap__tags li {
  font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-mid);
  border: 1px solid var(--line); border-radius: 100px; padding: 0.25rem 0.7rem;
}

/* ============ EXPERIENCE ============ */
.exp { padding: clamp(4rem, 10vw, 8rem) 0; }
.exp__list { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.exp__item {
  display: grid; grid-template-columns: 200px 1fr; gap: 2rem;
  padding: 2.5rem 0; border-top: 1px solid var(--line-soft); position: relative;
}
.exp__item:last-child { border-bottom: 1px solid var(--line-soft); }
.exp__item::before {
  content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 1px;
  background: var(--primary); transition: width 0.6s var(--ease);
}
.exp__item:hover::before { width: 100%; }
.exp__year { font-family: var(--font-mono); font-size: 0.85rem; color: var(--primary); letter-spacing: 0.05em; }
.exp__main h3 { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; letter-spacing: -0.01em; }
.exp__org { color: var(--accent); font-size: 0.9rem; margin: 0.4rem 0 1rem; font-family: var(--font-mono); }
.exp__main > p { color: var(--text-mid); margin-bottom: 1rem; max-width: 60ch; }
.exp__main ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.exp__main ul li { color: var(--text-mid); font-size: 0.92rem; padding-left: 1.4rem; position: relative; max-width: 70ch; }
.exp__main ul li::before { content: "\25B8"; position: absolute; left: 0; color: var(--primary); font-size: 0.7rem; top: 0.15em; }
.exp__main ul li strong { color: var(--text); }
.exp__main ul li em { color: var(--accent); font-style: normal; }

/* ============ SELECTED WORK ============ */
.work { padding: clamp(4rem, 10vw, 8rem) 0; }
.work__list { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); display: flex; flex-direction: column; gap: clamp(3rem, 7vw, 6rem); }
.project { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.project:nth-child(even) .project__media { order: 2; }
.project__media {
  position: relative; aspect-ratio: 4/3; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); background: #000;
}
.project__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.82; transition: transform 0.9s var(--ease), opacity 0.6s; }
.project__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,107,26,0.12));
  opacity: 0; transition: opacity 0.5s;
}
.project:hover .project__media img { transform: scale(1.06); opacity: 1; }
.project:hover .project__media::after { opacity: 1; }
.project__index { font-family: var(--font-mono); color: var(--text-dim); font-size: 0.8rem; margin-bottom: 1rem; }
.project__info h3 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
.project__info p { color: var(--text-mid); margin: 1.25rem 0; max-width: 48ch; }
.project__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.project__tags li { font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent); border: 1px solid rgba(34,211,238,0.25); border-radius: 100px; padding: 0.3rem 0.8rem; background: var(--accent-glow); }
.project__result { font-size: 0.92rem; color: var(--text); border-left: 2px solid var(--primary); padding-left: 1rem; }
.project__result span { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--primary); display: block; margin-bottom: 0.25rem; }

/* ============ GALLERY ============ */
.gallery { padding: clamp(4rem, 10vw, 8rem) 0; }
.gallery__filters {
  max-width: var(--maxw); margin: 0 auto clamp(2rem, 4vw, 3rem); padding: 0 var(--pad);
  display: flex; gap: 0.6rem; flex-wrap: wrap;
}
.gallery__filters button {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-mid);
  background: none; border: 1px solid var(--line); border-radius: 100px;
  padding: 0.55rem 1.3rem; cursor: pointer; transition: all 0.3s var(--ease);
}
.gallery__filters button:hover { border-color: var(--text-dim); color: var(--text); }
.gallery__filters button.is-active { background: var(--primary); border-color: var(--primary); color: #07090f; font-weight: 600; }

.gallery__grid {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
  columns: 4; column-gap: 12px;
}
.gallery__item {
  break-inside: avoid; margin-bottom: 12px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line-soft); background: #000; cursor: pointer; position: relative;
  display: block;
}
.gallery__item img { width: 100%; height: auto; opacity: 0.72; transition: opacity 0.4s, transform 0.6s var(--ease); }
.gallery__item:hover img { opacity: 1; transform: scale(1.04); }
.gallery__item::after {
  content: ""; position: absolute; inset: 0; border: 1px solid transparent;
  border-radius: 10px; transition: border-color 0.3s;
}
.gallery__item:hover::after { border-color: var(--primary); }
.gallery__item.is-hidden { display: none; }

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 9990; background: rgba(5,7,12,0.94);
  display: grid; place-items: center; opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s; backdrop-filter: blur(6px);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img { max-width: 86vw; max-height: 82vh; border-radius: 8px; border: 1px solid var(--line); }
.lightbox__close, .lightbox__nav {
  position: absolute; background: var(--surface); border: 1px solid var(--line); color: var(--text);
  width: 52px; height: 52px; border-radius: 50%; cursor: pointer; font-size: 1.4rem;
  display: grid; place-items: center; transition: all 0.3s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--primary); color: #07090f; border-color: var(--primary); }
.lightbox__close { top: 5vh; right: 5vw; }
.lightbox__nav--prev { left: 4vw; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 4vw; top: 50%; transform: translateY(-50%); }
.lightbox__caption { position: absolute; bottom: 4vh; font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-mid); }

/* ============ CONTACT / FOOTER ============ */
.contact { padding: clamp(5rem, 14vw, 11rem) 0 0; position: relative; }
.contact__inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); text-align: center; }
.contact__eyebrow { font-family: var(--font-mono); color: var(--primary); letter-spacing: 0.1em; font-size: 0.82rem; margin-bottom: 1.5rem; }
.contact__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 7vw, 5.5rem); line-height: 1.02; letter-spacing: -0.03em; }
.contact__email {
  display: inline-block; margin-top: 2.5rem; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.2rem, 4vw, 2.4rem); color: var(--text); position: relative; letter-spacing: -0.01em;
  background: linear-gradient(var(--primary), var(--primary)) no-repeat left bottom / 0% 2px;
  transition: background-size 0.45s var(--ease), color 0.45s;
}
.contact__email:hover { background-size: 100% 2px; color: var(--primary-soft); }
.contact__links { display: flex; justify-content: center; gap: 2rem; margin-top: 2.5rem; flex-wrap: wrap; }
.contact__links a { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-mid); transition: color 0.3s; }
.contact__links a:hover { color: var(--primary); }

.footer {
  max-width: var(--maxw); margin: clamp(4rem, 8vw, 7rem) auto 0; padding: 2rem var(--pad);
  border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim);
}

/* ============ REVEAL ANIMATION DEFAULTS ============ */
[data-reveal] { opacity: 0; transform: translateY(40px); }
.reveal-fade { opacity: 0; transform: translateY(24px); }
.reveal-line span, .reveal-words .word { display: inline-block; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .caps__grid { grid-template-columns: repeat(2, 1fr); }
  .metrics__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { columns: 3; }
}
@media (max-width: 820px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .about__grid { grid-template-columns: 1fr; gap: 2rem; }
  .project { grid-template-columns: 1fr; gap: 1.5rem; }
  .project:nth-child(even) .project__media { order: 0; }
  .exp__item { grid-template-columns: 1fr; gap: 0.75rem; }
  .hero__meta { display: none; }
}
@media (max-width: 560px) {
  .metrics__grid { grid-template-columns: 1fr; }
  .caps__grid { grid-template-columns: 1fr; }
  .gallery__grid { columns: 2; column-gap: 8px; }
  .gallery__item { margin-bottom: 8px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .btn { text-align: center; }
  .footer { flex-direction: column; text-align: center; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  [data-reveal], .reveal-fade { opacity: 1 !important; transform: none !important; }
}
