/* ============================================================================
   cgriffin_visuals — Photography Portfolio
   ----------------------------------------------------------------------------
   HOW TO CHANGE COLORS:  edit the :root variables below.
   HOW TO CHANGE THE HERO PHOTO: replace images/hero.jpg  (or edit --hero-image)
   ============================================================================ */

:root {
  /* ---- Color palette (edit these to re-theme the whole site) ---- */
  --bg:            #090909;   /* primary background            */
  --bg-2:          #111111;   /* secondary background          */
  --card:          #181818;   /* cards                         */
  --card-2:        #1f1f1f;   /* raised cards / hover          */
  --line:          rgba(255,255,255,0.08);
  --accent:        #ffffff;   /* primary accent (white)        */
  --muted:         #8d8d8d;   /* secondary accent / muted text */
  --blue:          #2f80ff;   /* subtle blue highlight         */
  --blue-soft:     rgba(47,128,255,0.14);

  /* ---- Hero background image (swap the path to change it) ---- */
  --hero-image: url("../images/hero.jpg");

  /* ---- Type ---- */
  --font-display: "Manrope", "Satoshi", -apple-system, "SF Pro Display", system-ui, sans-serif;
  --font-body:    "Inter", -apple-system, "SF Pro Text", system-ui, sans-serif;

  /* ---- Motion & shape ---- */
  --radius:   22px;
  --radius-sm:14px;
  --ease:     cubic-bezier(0.22, 1, 0.36, 1);
  --shadow:   0 30px 80px -30px rgba(0,0,0,0.8);
  --shadow-sm:0 10px 40px -20px rgba(0,0,0,0.7);

  --maxw: 1240px;
}

/* ---------------------------------------------------------------- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--bg);
  color: var(--accent);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: default;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* --------------------------------------------------------- Accessibility --- */
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 999;
  background: var(--accent); color: #000; padding: 10px 18px;
  border-radius: 10px; font-weight: 600; transition: top .25s var(--ease);
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ============================================================ LOADER ===== */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  transition: opacity .8s var(--ease), visibility .8s var(--ease);
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { text-align: center; }
.loader__logo {
  font-family: var(--font-display); font-weight: 700; letter-spacing: .04em;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--accent);
  opacity: 0; animation: loaderFade .8s var(--ease) forwards;
}
.loader__bar {
  width: 220px; height: 2px; margin: 22px auto 0;
  background: rgba(255,255,255,0.12); border-radius: 2px; overflow: hidden;
}
.loader__bar-fill {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--blue));
  animation: loaderBar 1.6s var(--ease) forwards;
}
@keyframes loaderFade { to { opacity: 1; } }
@keyframes loaderBar { to { width: 100%; } }

/* ==================================================== CUSTOM CURSOR ====== */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 900;
  pointer-events: none; border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-dot  { width: 7px; height: 7px; background: #fff; transition: transform .15s var(--ease); }
.cursor-ring {
  width: 38px; height: 38px; border: 1px solid rgba(255,255,255,0.6);
  transition: width .3s var(--ease), height .3s var(--ease), border-color .3s var(--ease), transform .12s ease-out;
}
.cursor-ring.is-hover { width: 62px; height: 62px; border-color: var(--blue); }
.cursor-dot.is-hover  { transform: translate(-50%, -50%) scale(1.8); }
/* Hide custom cursor on touch devices */
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
  body { cursor: auto; }
}

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

/* ============================================================ NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 700;
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.navbar.is-scrolled {
  background: rgba(9,9,9,0.6);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.navbar__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 18px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.navbar__brand {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .02em;
}
.navbar__brand span { color: var(--muted); }
.navbar__links { display: flex; align-items: center; gap: 34px; }
.navbar__link {
  position: relative; font-size: .92rem; font-weight: 500; color: var(--muted);
  transition: color .3s var(--ease);
}
.navbar__link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--accent); transition: width .3s var(--ease);
}
.navbar__link:hover { color: var(--accent); }
.navbar__link:hover::after { width: 100%; }
.navbar__link--accent {
  color: var(--accent); padding: 8px 18px; border: 1px solid var(--line);
  border-radius: 100px; transition: background .3s var(--ease), border-color .3s var(--ease);
}
.navbar__link--accent::after { display: none; }
.navbar__link--accent:hover { background: var(--blue-soft); border-color: var(--blue); }

.navbar__toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.navbar__toggle span { width: 24px; height: 2px; background: var(--accent); transition: .3s var(--ease); }
.navbar__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__toggle.is-open span:nth-child(2) { opacity: 0; }
.navbar__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================= HERO ====== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
/* DESIGNED HERO BACKGROUND (no photo).
   To go back to a photo instead: add  background-image: var(--hero-image);
   background-size: cover; background-position: center;  to .hero__bg below
   and set --hero-image at the top of this file. */
.hero__bg {
  position: absolute; inset: -8% 0; z-index: 0;
  transform: scale(1.05); will-change: transform;
  background-color: var(--bg);
  overflow: hidden;
  /* Soft static glows — the base of the design */
  background-image:
    radial-gradient(90% 70% at 75% 12%, rgba(47,128,255,0.20), transparent 60%),
    radial-gradient(70% 60% at 12% 85%, rgba(125,176,255,0.10), transparent 55%),
    radial-gradient(45% 40% at 50% 55%, rgba(255,255,255,0.05), transparent 65%);
}
/* Slow-drifting aurora glow (animated) */
.hero__bg::before {
  content: ""; position: absolute; inset: -25%;
  background:
    radial-gradient(32% 28% at 32% 30%, rgba(47,128,255,0.30), transparent 70%),
    radial-gradient(26% 24% at 70% 62%, rgba(170,205,255,0.16), transparent 70%),
    radial-gradient(20% 18% at 55% 25%, rgba(255,255,255,0.08), transparent 70%);
  filter: blur(70px);
  animation: heroAurora 16s ease-in-out infinite alternate;
}
@keyframes heroAurora {
  0%   { transform: translate3d(-4%, -2%, 0) scale(1); }
  100% { transform: translate3d(4%, 3%, 0) scale(1.1); }
}
/* Faint architectural grid, faded out toward the edges */
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(85% 75% at 50% 40%, black 30%, transparent 78%);
  mask-image: radial-gradient(85% 75% at 50% 40%, black 30%, transparent 78%);
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(9,9,9,0.25) 0%, rgba(9,9,9,0.05) 45%, rgba(9,9,9,0.95) 100%);
}
.hero__content {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto; padding: 0 28px; width: 100%;
}
.hero__eyebrow {
  text-transform: uppercase; letter-spacing: .28em; font-size: .78rem;
  color: var(--muted); margin-bottom: 22px;
}
.hero__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.8rem, 8vw, 6.5rem); line-height: 1.02; letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero__subtitle {
  font-size: clamp(1rem, 2.4vw, 1.4rem); color: var(--muted); font-weight: 400;
  margin-bottom: 42px; letter-spacing: .02em;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__scroll {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--muted); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px; height: 46px; background: linear-gradient(var(--muted), transparent);
  animation: scrollPulse 2s var(--ease) infinite;
}
@keyframes scrollPulse { 0%,100% { opacity: .3; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ============================================================ BUTTONS ==== */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px; border-radius: 100px; font-weight: 600; font-size: .95rem;
  letter-spacing: .01em; overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), color .35s var(--ease);
}
.btn--lg { padding: 17px 40px; font-size: 1rem; }
.btn--primary { background: var(--accent); color: #000; }
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, var(--blue), #7db0ff);
  opacity: 0; transition: opacity .4s var(--ease);
}
.btn--primary:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 18px 40px -12px rgba(47,128,255,0.6); }
.btn--primary:hover::before { opacity: 1; }
.btn--ghost {
  color: var(--accent); border: 1px solid var(--line); background: rgba(255,255,255,0.02);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  transform: translateY(-3px); border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.07);
}

/* ============================================================ SECTIONS === */
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section__eyebrow {
  text-transform: uppercase; letter-spacing: .28em; font-size: .74rem;
  color: var(--blue); margin-bottom: 16px; font-weight: 600;
}
.section__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -0.02em;
}
.section__title--sm { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.section__lead { color: var(--muted); font-size: 1.05rem; margin-top: 18px; max-width: 60ch; }
.section__head--center .section__lead { margin-left: auto; margin-right: auto; }

/* ============================================================== STATS ==== */
.stats { background: var(--bg-2); border-block: 1px solid var(--line); padding: 60px 0; }
/* auto-fit: the grid adapts automatically to however many stats are in data.js */
.stats__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; text-align: center;
}
.stat__num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1;
}
.stat__num .suffix { color: var(--blue); }
.stat__label { color: var(--muted); font-size: .9rem; margin-top: 10px; letter-spacing: .02em; }

/* =========================================================== PORTFOLIO === */
.portfolio__filters {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px;
}
.filter-btn {
  padding: 10px 22px; border-radius: 100px; border: 1px solid var(--line);
  color: var(--muted); font-size: .88rem; font-weight: 500;
  transition: all .3s var(--ease);
}
.filter-btn:hover { color: var(--accent); border-color: rgba(255,255,255,0.3); }
.filter-btn.is-active { background: var(--accent); color: #000; border-color: var(--accent); }

.portfolio__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.gallery-card {
  position: relative; border-radius: var(--radius-sm); overflow: hidden;
  aspect-ratio: 4 / 5; background: var(--card);
  box-shadow: var(--shadow-sm); text-align: left;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity .5s var(--ease);
}
.gallery-card:nth-child(4n) { aspect-ratio: 4 / 3; } /* variety */
.gallery-card.is-hidden { display: none; }
.gallery-media { position: absolute; inset: 0; }
.gallery-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease), filter .7s var(--ease);
  /* Promote to its own GPU layer immediately — prevents a browser bug where
     animated images inside rounded/clipped cards don't paint until hovered. */
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.gallery-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.gallery-card:hover .gallery-img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  padding: 20px; opacity: 0; transition: opacity .4s var(--ease);
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.75));
}
.gallery-card:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { font-weight: 600; font-size: .9rem; }
.gallery-overlay .tag { color: var(--muted); font-size: .78rem; display: block; }

/* Fallback shown when an image file is missing (before you add photos) */
.media-fallback {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; letter-spacing: .04em;
  color: rgba(255,255,255,0.55); font-size: .95rem; text-align: center; padding: 12px;
}
.fallback-sports    { background: linear-gradient(135deg,#1a1a1a,#2a2f3a); }
.fallback-portraits { background: linear-gradient(135deg,#211a1a,#3a2a2f); }
.fallback-cars      { background: linear-gradient(135deg,#1a1f21,#28323a); }
.fallback-creative  { background: linear-gradient(135deg,#1f1a21,#332a3a); }
.fallback-events    { background: linear-gradient(135deg,#1a1e1a,#2a3a2e); }

/* ============================================================== ABOUT ==== */
.about__grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center;
  margin-bottom: 120px;
}
.about__photo {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 5; background: var(--card); box-shadow: var(--shadow);
  background-size: cover; background-position: center;
}
.about__body p { color: var(--muted); font-size: 1.08rem; margin-top: 18px; }
.about__body p:first-child { margin-top: 0; }

.why__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px;
  margin-top: 48px;
}
.why-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 30px 26px; transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.why-card:hover { transform: translateY(-6px); border-color: var(--blue); background: var(--card-2); }
.why-card__check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; background: var(--blue-soft);
  color: var(--blue); font-size: 1.1rem; margin-bottom: 18px;
}
.why-card h4 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }

/* =========================================================== SERVICES ==== */
.services__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.service-card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 38px 32px; overflow: hidden;
  transition: transform .45s var(--ease), border-color .45s var(--ease);
}
.service-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(120% 120% at 100% 0%, var(--blue-soft), transparent 55%);
  transition: opacity .45s var(--ease);
}
.service-card:hover { transform: translateY(-8px); border-color: rgba(47,128,255,0.5); }
.service-card:hover::before { opacity: 1; }
.service-card__icon {
  font-size: 2rem; margin-bottom: 22px; display: inline-block;
  transition: transform .45s var(--ease);
}
.service-card:hover .service-card__icon { transform: translateY(-4px) scale(1.1); }
.service-card h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin-bottom: 12px; }
.service-card p { color: var(--muted); font-size: .98rem; }

/* =========================================================== FEATURED ==== */
.featured__track {
  display: flex; gap: 20px; overflow-x: auto; padding: 12px 28px 30px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  max-width: calc(var(--maxw) + 56px); margin: 0 auto;
}
.featured__track::-webkit-scrollbar { height: 8px; }
.featured__track::-webkit-scrollbar-thumb { background: var(--card-2); border-radius: 100px; }
.featured__track::-webkit-scrollbar-track { background: transparent; }
.featured-item {
  position: relative; flex: 0 0 min(80vw, 620px); aspect-ratio: 16 / 10;
  border-radius: var(--radius); overflow: hidden; scroll-snap-align: center;
  background: var(--card); box-shadow: var(--shadow);
}
.featured-item img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease);
  /* Same paint-bug guard as .gallery-img */
  will-change: transform; transform: translateZ(0); backface-visibility: hidden;
}
.featured-item:hover img { transform: scale(1.06); }
.featured-item__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
}
.featured-item__cap h4 { font-family: var(--font-display); font-size: 1.25rem; }
.featured-item__cap span { color: var(--muted); font-size: .85rem; }

/* ========================================================== INSTAGRAM ==== */
.instagram__card {
  position: relative; text-align: center; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(50px, 8vw, 90px) 28px;
}
.instagram__glow {
  position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, var(--blue-soft), transparent 60%);
  pointer-events: none;
}
.instagram__handle {
  position: relative; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 6vw, 3.6rem); margin: 8px 0 14px; letter-spacing: -0.02em;
}
.instagram__lead { position: relative; color: var(--muted); margin-bottom: 34px; }
.instagram__card .btn { position: relative; }

/* ============================================================ CONTACT ==== */
.contact__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 44px;
}
.contact__card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 34px 30px; transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.contact__card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.25); }
.contact__icon { font-size: 1.6rem; display: block; margin-bottom: 16px; }
.contact__label { text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; color: var(--muted); margin-bottom: 8px; }
.contact__value { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
a.contact__value { transition: color .3s var(--ease); }
a.contact__value:hover { color: var(--blue); }
.contact__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================================================= FOOTER ==== */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 60px 0 40px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.footer__name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.footer__handle { color: var(--muted); font-size: .9rem; }
.footer__links { display: flex; gap: 26px; }
.footer__links a { color: var(--muted); font-size: .92rem; transition: color .3s var(--ease); }
.footer__links a:hover { color: var(--accent); }
.footer__copy { width: 100%; color: var(--muted); font-size: .82rem; padding-top: 24px; border-top: 1px solid var(--line); margin-top: 8px; }

/* ========================================================== BACK TO TOP == */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 600;
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,0.08); backdrop-filter: blur(12px);
  border: 1px solid var(--line); font-size: 1.2rem;
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), background .3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--accent); color: #000; }

/* =========================================================== LIGHTBOX ==== */
.lightbox {
  position: fixed; inset: 0; z-index: 950;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5,5,5,0.92); backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s var(--ease);
  padding: 40px;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__stage { max-width: 92vw; max-height: 86vh; text-align: center; }
.lightbox__stage img {
  max-width: 92vw; max-height: 78vh; border-radius: var(--radius-sm);
  box-shadow: var(--shadow); transform: scale(.96); transition: transform .4s var(--ease);
}
.lightbox.is-open .lightbox__stage img { transform: scale(1); }
.lightbox__caption { margin-top: 16px; color: var(--muted); font-size: .95rem; }
.lightbox__close {
  position: absolute; top: 24px; right: 30px; font-size: 2.4rem; line-height: 1;
  color: var(--muted); transition: color .3s var(--ease);
}
.lightbox__close:hover { color: var(--accent); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px; border-radius: 50%; font-size: 1.8rem;
  background: rgba(255,255,255,0.06); border: 1px solid var(--line);
  transition: background .3s var(--ease);
}
.lightbox__nav:hover { background: rgba(255,255,255,0.16); }
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }

/* ===================================================== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(38px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
/* Stagger children a touch when they reveal together */
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* =========================================================== RESPONSIVE == */
@media (max-width: 980px) {
  .about__grid { grid-template-columns: 1fr; gap: 40px; margin-bottom: 80px; }
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid  { grid-template-columns: repeat(2, 1fr); }
  .stats__grid     { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .contact__grid   { grid-template-columns: 1fr; }

  .navbar__links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px;
    padding: 40px; background: rgba(9,9,9,0.92); backdrop-filter: blur(20px);
    transform: translateX(100%); transition: transform .45s var(--ease);
    border-left: 1px solid var(--line);
  }
  .navbar__links.is-open { transform: translateX(0); }
  .navbar__link { font-size: 1.2rem; }
  .navbar__toggle { display: flex; z-index: 710; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .portfolio__grid { grid-template-columns: 1fr; }
  .services__grid  { grid-template-columns: 1fr; }
  .hero__actions, .contact__actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
