/*
 * ═══════════════════════════════════════════════════════════════════════════
 *  PORTFOLIO THEME STYLES
 *  Edit colors in the :root section below to retheme the entire site.
 * ═══════════════════════════════════════════════════════════════════════════
 */

/* ─── CSS Variables (Theme Colors) ───────────────────────────────────────── */
:root {
  --background: hsl(240 24% 6%);
  --foreground: hsl(220 20% 92%);
  --card: hsl(240 22% 9%);
  --card-foreground: hsl(220 20% 92%);
  --primary: hsl(172 90% 50%);
  --primary-foreground: hsl(240 30% 6%);
  --secondary: hsl(265 85% 65%);
  --muted: hsl(240 16% 16%);
  --muted-foreground: hsl(230 12% 62%);
  --destructive: hsl(0 72% 55%);
  --border: hsl(240 16% 18%);
  --radius: 0.75rem;
  --max-width: 80rem;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

/* ─── Reset & Base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--background);
  color: var(--foreground);
  overflow-x: clip;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

h1, h2, h3, h4, .font-display { font-family: var(--font-display); }
.font-mono { font-family: var(--font-mono); }

/* ─── Utilities ──────────────────────────────────────────────────────────── */
.text-primary { color: var(--primary); }
.text-muted { color: var(--muted-foreground); }
.text-gradient {
  background: linear-gradient(100deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.glow-primary { box-shadow: 0 0 40px -12px hsl(172 90% 50% / 0.5); }

.grid-bg {
  background-image:
    linear-gradient(hsl(240 16% 18% / 0.35) 1px, transparent 1px),
    linear-gradient(90deg, hsl(240 16% 18% / 0.35) 1px, transparent 1px);
  background-size: 44px 44px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 4rem 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--primary);
}

.section-title {
  margin-top: 0.5rem;
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
}

.section-sub {
  margin-top: 0.75rem;
  color: var(--muted-foreground);
  max-width: 42rem;
}

/* Reveal animation (JS adds .visible) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}
.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--foreground);
}
.btn-outline:hover { border-color: var(--primary); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }
.btn-block { width: 100%; }

/* ─── Navbar ─────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: hsl(240 24% 6% / 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.navbar.scrolled { border-bottom-color: var(--border); }

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
}

.logo-icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: calc(var(--radius) - 2px);
  background: hsl(240 22% 9% / 0.8);
  border: 1px solid var(--border);
}

.logo-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  border-radius: calc(var(--radius) - 4px);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--foreground);
  background: hsl(240 16% 16% / 0.5);
}
.nav-desktop .btn { margin-left: 0.75rem; }

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 4px);
  color: var(--foreground);
  cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle.open .icon-menu { display: none; }
.nav-toggle.open .icon-close { display: block; }

.nav-mobile {
  display: none;
  border-top: 1px solid var(--border);
  background: hsl(240 24% 6% / 0.98);
}
.nav-mobile.open { display: block; }

.nav-mobile-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-mobile-link {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted-foreground);
  border-radius: calc(var(--radius) - 4px);
}
.nav-mobile-link:hover, .nav-mobile-link.active {
  color: var(--foreground);
  background: hsl(240 16% 16% / 0.5);
}
.nav-mobile .btn { margin-top: 0.75rem; }

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  padding-top: 7rem;
}

.hero-glow-1,
.hero-glow-2 {
  pointer-events: none;
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}
.hero-glow-1 {
  right: -10rem;
  top: 2.5rem;
  width: 32rem;
  height: 32rem;
  background: hsl(172 90% 50% / 0.2);
}
.hero-glow-2 {
  left: -10rem;
  top: 15rem;
  width: 28rem;
  height: 28rem;
  background: hsl(265 85% 65% / 0.2);
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
  padding: 2.5rem 0;
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: hsl(240 22% 9% / 0.6);
}

.hero-title {
  margin-top: 1.5rem;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-desc {
  margin-top: 1.5rem;
  max-width: 32rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--muted-foreground);
  line-height: 1.7;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ─── Code Window ────────────────────────────────────────────────────────── */
.code-window {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: hsl(240 26% 5%);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.5);
}

.code-window-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: hsl(240 22% 9% / 0.6);
}

.code-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}
.code-dot.red { background: hsl(0 72% 55% / 0.8); }
.code-dot.purple { background: hsl(265 85% 65% / 0.8); }
.code-dot.green { background: hsl(172 90% 50% / 0.8); }

.code-filename {
  margin-left: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.code-body {
  overflow-x: auto;
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
}

.code-line { white-space: pre; }
.code-line .ln {
  margin-right: 1rem;
  color: hsl(230 12% 62% / 0.4);
  user-select: none;
}
.code-line .c-secondary { color: var(--secondary); }
.code-line .c-primary { color: var(--primary); }
.code-line .c-muted { color: var(--muted-foreground); }

.blink {
  animation: blink 1s step-end infinite;
  color: var(--primary);
}
@keyframes blink { 50% { opacity: 0; } }

/* ─── Marquee ────────────────────────────────────────────────────────────── */
.marquee-wrap {
  position: relative;
  overflow: hidden;
  border-top: 1px solid hsl(240 16% 18% / 0.7);
  border-bottom: 1px solid hsl(240 16% 18% / 0.7);
  background: hsl(240 22% 9% / 0.3);
  padding: 1.25rem 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 2rem;
  animation: marquee 26s linear infinite;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--muted-foreground);
  white-space: nowrap;
}
.marquee-item .star { color: var(--primary); }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─── Stats Grid ─────────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
  padding: 1.5rem;
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: hsl(240 22% 9% / 0.4);
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 700;
}
.stat-label {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ─── Discipline Cards ───────────────────────────────────────────────────── */
.disciplines-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .disciplines-grid { grid-template-columns: repeat(2, 1fr); }
}

.discipline-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: hsl(240 22% 9% / 0.4);
  transition: transform 0.3s ease;
}
.discipline-card:hover { transform: translateY(-6px); }

.discipline-img-wrap {
  position: relative;
  height: 11rem;
  overflow: hidden;
}
.discipline-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: transform 0.7s ease;
}
.discipline-card:hover .discipline-img-wrap img { transform: scale(1.05); }

.discipline-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--card), transparent);
}

.discipline-icon {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: calc(var(--radius) - 2px);
  background: hsl(240 24% 6% / 0.7);
  border: 1px solid hsl(172 90% 50% / 0.4);
  backdrop-filter: blur(4px);
  color: var(--primary);
}

.discipline-body { padding: 1.5rem; }
.discipline-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
}
.discipline-body p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.tag-list {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag {
  padding: 0.25rem 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-foreground);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 4px);
}

/* ─── Process Steps ──────────────────────────────────────────────────────── */
.process-grid {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--border);
}
@media (min-width: 768px) {
  .process-grid { grid-template-columns: repeat(4, 1fr); }
}

.process-step {
  height: 100%;
  padding: 1.5rem;
  background: hsl(240 22% 9% / 0.4);
}
.process-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(172 90% 50% / 0.5);
}
.process-step h3 {
  margin-top: 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
}
.process-step p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ─── Project Cards ──────────────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: hsl(240 22% 9% / 0.4);
  transition: transform 0.3s ease, border-color 0.3s;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: hsl(172 90% 50% / 0.4);
}

.project-card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover .project-card-img img { transform: scale(1.05); }

.project-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--primary);
  background: hsl(240 24% 6% / 0.85);
  border: 1px solid hsl(172 90% 50% / 0.3);
  border-radius: 9999px;
  backdrop-filter: blur(4px);
}

.project-card-body { padding: 1.25rem; }
.project-card-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
}
.project-card-body p {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.project-card-link {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

/* ─── Filter Tabs ────────────────────────────────────────────────────────── */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-tab {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-tab:hover, .filter-tab.active {
  color: var(--foreground);
  border-color: var(--primary);
  background: hsl(172 90% 50% / 0.1);
}

.project-card.hidden { display: none; }

/* ─── Project Detail ───────────────────────────────────────────────────────── */
.project-hero {
  position: relative;
  overflow: hidden;
  padding-top: 7rem;
  padding-bottom: 2.5rem;
}

.project-hero-img {
  margin-top: 2rem;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 21 / 9;
}
.project-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: hsl(240 22% 9% / 0.4);
}

.meta-item label {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}
.meta-item span {
  font-weight: 600;
  font-size: 0.9375rem;
}

.project-content {
  display: grid;
  gap: 3rem;
  padding: 3rem 0;
}
@media (min-width: 1024px) {
  .project-content { grid-template-columns: 2fr 1fr; }
}

.project-desc {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--muted-foreground);
}

.project-details-list {
  margin-top: 1.5rem;
}
.project-details-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}
.project-details-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 0.75rem;
}

.project-sidebar h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.gallery-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s;
}
.gallery-item:hover { border-color: var(--primary); }
.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s;
}
.back-link:hover { color: var(--primary); }

/* ─── CTA Banner ─────────────────────────────────────────────────────────── */
.cta-banner {
  position: relative;
  overflow: hidden;
  padding: 2.5rem;
  text-align: center;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: hsl(240 22% 9% / 0.4);
}
@media (min-width: 640px) {
  .cta-banner { padding: 4rem; }
}

.cta-banner h2 {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700;
  max-width: 42rem;
  margin: 0 auto;
}
.cta-banner p {
  margin: 1rem auto 0;
  max-width: 36rem;
  color: var(--muted-foreground);
}
.cta-banner .btn { margin-top: 2rem; }

.cta-glow {
  pointer-events: none;
  position: absolute;
  top: -5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: hsl(172 90% 50% / 0.2);
  filter: blur(100px);
}

/* ─── Page Head (inner pages) ────────────────────────────────────────────── */
.page-head {
  position: relative;
  overflow: hidden;
  padding-top: 9rem;
  padding-bottom: 2.5rem;
}
.page-head-glow {
  pointer-events: none;
  position: absolute;
  top: -5rem;
  right: 0;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: hsl(172 90% 50% / 0.15);
  filter: blur(110px);
}

/* ─── Services alternating layout ────────────────────────────────────────── */
.service-row {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: hsl(240 22% 9% / 0.4);
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .service-row {
    grid-template-columns: 1fr 1fr;
    padding: 2rem;
  }
  .service-row.reverse { direction: rtl; }
  .service-row.reverse > * { direction: ltr; }
}

.service-row-img {
  border-radius: var(--radius);
  overflow: hidden;
}
.service-row-img img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: calc(var(--radius) - 2px);
  background: hsl(172 90% 50% / 0.1);
  border: 1px solid hsl(172 90% 50% / 0.4);
  color: var(--primary);
}

/* ─── Contact Page ───────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  gap: 2.5rem;
  padding: 3rem 0;
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: hsl(240 22% 9% / 0.4);
  transition: border-color 0.2s;
}
a.contact-card:hover { border-color: var(--primary); }

.contact-card-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: calc(var(--radius) - 2px);
  background: hsl(172 90% 50% / 0.1);
  border: 1px solid hsl(172 90% 50% / 0.4);
  color: var(--primary);
}

.contact-card label {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}
.contact-card span {
  font-weight: 500;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: hsl(240 22% 9% / 0.4);
  font-size: 0.875rem;
  font-weight: 500;
  transition: border-color 0.2s, transform 0.2s;
}
.social-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.social-card svg { color: var(--primary); flex-shrink: 0; }

/* ─── Legal Pages ────────────────────────────────────────────────────────── */
.legal-content { max-width: 56rem; padding: 2.5rem 0 4rem; }
.legal-section { margin-bottom: 2rem; }
.legal-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
}
.legal-section p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}
.legal-section a { color: var(--primary); }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 0;
  margin-top: 2rem;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-tagline {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  max-width: 22rem;
  line-height: 1.6;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 1.25rem;
}

.social-link {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  transition: color 0.2s, border-color 0.2s;
}
.social-link:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.footer-heading {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--foreground); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding: 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

/* ─── Lightbox ───────────────────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: hsl(240 24% 6% / 0.95);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  background: hsl(240 22% 9%);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 4px);
  color: var(--foreground);
  cursor: pointer;
  font-size: 1.25rem;
}

/* ─── Reduced Motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .blink { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
