/* ==============================================
   STUDIO SQUIRES — Complete Stylesheet
   Palette sourced from Echoes of the Mesozoic
   ============================================== */

/* ── Variables ─────────────────────────────── */
:root {
  /* Forest-shadow base, amber accent from the sunlight */
  --bg:             #000000;
  --bg-raised:      #050805;
  --bg-card:        #090e09;
  --bg-card-hover:  #0e160e;
  --border:         #141f14;
  --border-hover:   #1e2e1f;
  --text:           #e0dccf;
  --text-muted:     #98a088;
  --text-heading:   #f4f0e2;
  --accent:         #c89018;
  --accent-light:   #e0a830;
  --accent-glow:         rgba(200, 144, 24, 0.10);
  --accent-glow-mid:     rgba(200, 144, 24, 0.18);
  --accent-glow-strong:  rgba(200, 144, 24, 0.28);
  --accent-border:       rgba(200, 144, 24, 0.35);

  --font-head: 'Unbounded', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max-w: 1160px;
  --r:    10px;
  --r-lg: 16px;
  --r-xl: 24px;

  --ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t:      0.28s var(--ease);
  --t-fast: 0.16s var(--ease);
  --t-slow: 0.5s  var(--ease);

  --shadow:       0 4px 20px rgba(0,0,0,0.35);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px var(--accent-border);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  background-image: url('../assets/echoes-4.png');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Faint background image overlay — keeps image barely visible */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  pointer-events: none;
  z-index: 0;
}

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

a { color: var(--accent); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--accent-light); }
img, video { max-width: 100%; display: block; }
ul, ol { list-style: none; }
main { flex: 1; }

/* ── Typography ─────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--text-heading);
  line-height: 1.12;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem);   letter-spacing: -0.03em; }
h3 { font-size: clamp(1rem, 2vw, 1.15rem);     letter-spacing: -0.01em; }

p { max-width: 62ch; }

.label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Layout ─────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 4rem 0; }

/* ── Reveal Animations ──────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.reveal.in-view { opacity: 1; transform: none; }

.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.40s; }

/* ── Header ─────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 68px;
  background: rgba(6, 10, 7, 0.78);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border-bottom: 1px solid var(--border);
  transition: background var(--t), border-color var(--t);
}

.site-header.scrolled {
  background: rgba(6, 10, 7, 0.96);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-yt-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.header-yt-link:hover { color: var(--text); }
.header-yt-link:hover { opacity: 0.8; }

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-heading);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: color var(--t);
}

.logo:hover { color: var(--accent); }

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
  transition: opacity var(--t);
}

.logo:hover .logo-mark { opacity: 0.85; }

.site-nav { display: flex; align-items: center; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: 7px;
  transition: all var(--t);
}

.nav-links a:hover {
  color: var(--text-heading);
  background: rgba(255,255,255,0.04);
}

.nav-links a.active {
  color: var(--accent);
  background: var(--accent-glow);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 7px;
  cursor: pointer;
  padding: 0.4rem 0.5rem;
  flex-direction: column;
  gap: 4px;
  transition: border-color var(--t);
}

.nav-toggle:hover { border-color: var(--border-hover); }

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: var(--t);
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* ══════════════════════════════════════════════
   HERO — homepage
   Image fades in from right, text on left
   ══════════════════════════════════════════════ */
.hero-home {
  padding: 2rem 0 1.75rem;
  position: relative;
  overflow: hidden;
  min-height: 180px;
  display: flex;
  align-items: center;
}

/* Echoes-3 image fades in from the right */
.hero-home::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 28%;
  background-image: url('../assets/echoes-3.png');
  background-size: cover;
  background-position: 32% 40%;
  transform: scaleX(-1);
  mask-image: linear-gradient(to left, transparent 0%, rgba(0,0,0,0.25) 18%, black 48%);
  -webkit-mask-image: linear-gradient(to left, transparent 0%, rgba(0,0,0,0.25) 18%, black 48%);
  opacity: 0.78;
  pointer-events: none;
}

/* Gradient overlay: dark left for readable text, fades away on right */
.hero-home::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, var(--bg) 28%, rgba(6,10,7,0.70) 48%, rgba(6,10,7,0.10) 68%, transparent 82%),
    linear-gradient(to top,   var(--bg) 0%,   transparent 10%);
  pointer-events: none;
}

.hero-home .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-home .label {
  display: block;
  margin-bottom: 0.6rem;
}

.hero-home h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 0.75rem;
  max-width: 16ch;
  text-shadow: 0 2px 24px rgba(0,0,0,0.6);
}

.hero-home h1 .accent { color: var(--accent); }

.hero-home .hero-desc {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.75;
  max-width: 46ch;
  margin-bottom: 0;
}

/* Availability indicator */
.hero-avail {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--text);
}

.hero-avail-dot {
  width: 7px;
  height: 7px;
  background: #4caf50;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
  animation: pulse-dot 2.5s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(76,175,80,0.6); }
  50%       { opacity: 0.5; box-shadow: 0 0 3px rgba(76,175,80,0.2); }
}

.hero-avail a {
  color: var(--text);
  font-weight: 500;
  transition: color var(--t);
}

.hero-avail a:hover { color: var(--accent); }

/* ── Inner page hero (sub pages) ────────────── */
.hero-inner {
  padding: 5rem 0 3.5rem;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.hero-inner .label { display: block; margin-bottom: 1rem; }
.hero-inner h1 { margin-bottom: 1rem; }
.hero-inner .hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ── Stats Strip ─────────────────────────────── */
.stats-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-row {
  display: flex;
  align-items: stretch;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 2rem;
  border-right: 1px solid var(--border);
  flex: 1;
  justify-content: center;
}

.stat-item:last-child { border-right: none; }

.stat-word {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}


/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1.65rem;
  border-radius: var(--r);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t);
  border: none;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #0d1610;
}

.btn-primary:hover {
  background: var(--accent-light);
  color: #0d1610;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow-strong);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent-border);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-sm { padding: 0.42rem 1rem; font-size: 0.78rem; }

/* ── Section Head ────────────────────────────── */
.section-head { margin-bottom: 2rem; }
.section-head .label { display: block; margin-bottom: 0.65rem; }

/* ── Project Grid ────────────────────────────── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

/* ── Project Card ────────────────────────────── */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
  box-shadow: var(--shadow);
}

.project-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-raised);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow), opacity 0.4s ease;
  opacity: 0;
}

.card-media img.loaded { opacity: 1; }
.project-card:hover .card-media img { transform: scale(1.04); }

.badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 5px;
  z-index: 2;
}

.badge-live    { background: rgba(56,160,80,0.88);  color: #fff; }
.badge-dev     { background: rgba(200,144,24,0.88); color: #0d1610; }
.badge-shipped { background: rgba(80,140,210,0.88); color: #fff; }
.badge-concept { background: rgba(140,100,180,0.88);color: #fff; }

.card-body {
  padding: 1.25rem 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 { margin-bottom: 0.45rem; transition: color var(--t); }
.project-card:hover .card-body h3 { color: var(--accent); }

.card-body > p {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 0.9rem;
}

.card-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }

.card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  background: var(--accent-glow);
  color: var(--accent);
  border-radius: 4px;
  text-transform: uppercase;
}

/* ── Featured Project (split layout, work page) */
.featured-project {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transition: border-color var(--t), box-shadow var(--t);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.featured-project:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-hover);
}

.fp-info {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fp-info .badge {
  position: static;
  display: inline-block;
  margin-bottom: 1rem;
  width: fit-content;
}

.fp-info h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  margin-bottom: 0.75rem;
}

.fp-info p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: none;
}

.fp-media {
  position: relative;
  background: var(--bg-raised);
  overflow: hidden;
  min-height: 260px;
}

.fp-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease, transform var(--t-slow);
}

.fp-media img.loaded { opacity: 1; }
.featured-project:hover .fp-media img { transform: scale(1.03); }

/* ── Gallery ─────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.gallery-item {
  aspect-ratio: 16 / 9;
  background: var(--bg-raised);
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: border-color var(--t), transform var(--t);
}

.gallery-item:hover {
  border-color: var(--accent-border);
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item img.loaded { opacity: 1; }

/* ── Category Block (work page) ─────────────── */
.category-block { margin-bottom: 4.5rem; }
.category-block:last-child { margin-bottom: 0; }

.category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}

.category-header::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.category-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Filter Bar ──────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 2.5rem;
  padding: 0.28rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r);
  width: fit-content;
}

.filter-tab {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.42rem 1rem;
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 7px;
  transition: all var(--t);
}

.filter-tab:hover { color: var(--text-heading); }

.filter-tab.active {
  background: var(--bg-card);
  color: var(--text-heading);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* ── Value Cards ─────────────────────────────── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}

.value-card {
  padding: 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color var(--t), transform var(--t);
}

.value-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.value-icon {
  width: 34px;
  height: 34px;
  background: var(--accent-glow);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  color: var(--accent);
}

.value-card h3 { margin-bottom: 0.45rem; font-size: 0.98rem; }

.value-card p {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.65;
  max-width: none;
}


/* ── Tech Marquee ────────────────────────────── */
.marquee-section {
  padding: 1.75rem 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.marquee-wrapper {
  display: flex;
  overflow: hidden;
  user-select: none;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  animation: marquee 35s linear infinite;
  will-change: transform;
  flex-shrink: 0;
}

.marquee-wrapper:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-item {
  display: flex;
  align-items: center;
  padding: 0 1.4rem;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.marquee-dot {
  width: 3px;
  height: 3px;
  background: var(--accent);
  border-radius: 50%;
  margin: 0 1.4rem;
  opacity: 0.45;
  flex-shrink: 0;
}

/* ── Contact ─────────────────────────────────── */
.founder-block {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.founder-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.founder-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.founder-name {
  font-size: 1.4rem;
  margin: 0;
}

.founder-role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.founder-email {
  color: var(--accent);
  font-size: 0.9rem;
  margin-top: 0.25rem;
  text-decoration: none;
}

.founder-email:hover { text-decoration: underline; }

.founder-socials {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.founder-socials a {
  transition: opacity 0.2s;
}

.founder-socials a[aria-label="LinkedIn"] { color: #0a66c2; }
.founder-socials a[aria-label="Facebook"] { color: #1877f2; }
.founder-socials a[aria-label="YouTube"]  { color: #ff0000; }

.founder-socials a:hover { opacity: 0.75; }

.founder-bio {
  max-width: 560px;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.contact-divider {
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

.contact-form-heading {
  margin-bottom: 1.5rem;
}

.contact-layout {
  max-width: 560px;
}

.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  margin-bottom: 0.38rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.78rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--t), box-shadow var(--t);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); opacity: 0.5; }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea { min-height: 155px; resize: vertical; }

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23808a70' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group select option { background: var(--bg-card); }

.form-status {
  padding: 0.9rem 1.1rem;
  border-radius: var(--r);
  font-size: 0.875rem;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(56,160,80,0.1);
  border: 1px solid rgba(56,160,80,0.3);
  color: #5cbf72;
}

.form-status.error {
  display: block;
  background: rgba(220,60,60,0.1);
  border: 1px solid rgba(220,60,60,0.3);
  color: #f87171;
}


/* ── Lightbox ─────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.93);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active { opacity: 1; pointer-events: all; }

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 86vh;
  border-radius: var(--r);
  object-fit: contain;
}

.lightbox-btn {
  position: fixed;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t);
  font-size: 1.1rem;
  line-height: 1;
}

.lightbox-btn:hover { background: rgba(255,255,255,0.16); }

.lightbox-close {
  top: 1.25rem; right: 1.25rem;
  border-radius: 50%;
  width: 40px; height: 40px;
}

.lightbox-prev, .lightbox-next {
  top: 50%; transform: translateY(-50%);
  border-radius: 50%;
  width: 44px; height: 44px;
}

.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }

.cta-section {
  padding: 4rem 0 5rem;
  text-align: center;
}

.cta-section p {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Footer ─────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.75rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .logo { margin-bottom: 0.75rem; }

.footer-brand p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 28ch;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.45rem; }

.footer-col ul a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color var(--t);
}

.footer-col ul a:hover { color: var(--text-heading); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ── Utilities ───────────────────────────────── */
.text-center { text-align: center; }
.text-center p { margin-left: auto; margin-right: auto; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 900px) {
  .featured-project { grid-template-columns: 1fr; }
  .fp-media { aspect-ratio: 16 / 9; min-height: unset; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-home { min-height: unset; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem;
    display: none;
    flex-direction: column;
  }

  .site-nav.open { display: flex; }

  .nav-links { flex-direction: column; align-items: stretch; gap: 0.2rem; width: 100%; }
  .nav-links a { padding: 0.75rem 1rem; display: block; }

  .hero-home { padding: 1.75rem 0 1.75rem; }
  .hero-inner { padding: 4rem 0 2.5rem; }
  .section { padding: 3rem 0; }

  .project-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }

  .stats-row { flex-direction: column; }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    justify-content: flex-start;
    padding: 0.9rem 1.5rem;
  }
  .stat-item:last-child { border-bottom: none; }

  body {
    background-attachment: scroll;
  }

  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  .hero-home { padding: 1.5rem 0 1.5rem; }
  .gallery { grid-template-columns: 1fr; }
  .fp-info { padding: 1.5rem; }
  .filter-bar { width: 100%; }
}
