/* ===========================================================================
   StridLabs — stylesheet
   Premium dark "creative AI lab" aesthetic: aurora gradients, glass surfaces,
   grain, and motion. Tweak the variables below to re-skin the whole site.
   =========================================================================== */

:root {
  --bg: #07070f;
  --bg-alt: #0b0b16;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4fa;
  --text-dim: #a5a5c0;
  --text-faint: #686883;
  --violet: #8b5cf6;
  --teal: #2dd4bf;
  --pink: #f472b6;
  --accent-grad: linear-gradient(120deg, #8b5cf6 0%, #2dd4bf 100%);
  --accent-grad-3: linear-gradient(120deg, #8b5cf6 0%, #f472b6 50%, #2dd4bf 100%);
  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1160px;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(139, 92, 246, 0.45); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--violet), var(--teal));
  border-radius: 100px;
  border: 2px solid var(--bg);
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.03em;
  font-weight: 700;
}

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

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

/* Ambient background ------------------------------------------------------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.5;
  will-change: transform;
}
.aurora span:nth-child(1) {
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.55), transparent 65%);
  top: -180px; left: -120px;
  animation: drift1 26s ease-in-out infinite alternate;
}
.aurora span:nth-child(2) {
  width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.4), transparent 65%);
  top: 30%; right: -200px;
  animation: drift2 32s ease-in-out infinite alternate;
}
.aurora span:nth-child(3) {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.28), transparent 65%);
  bottom: -160px; left: 35%;
  animation: drift3 38s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate(120px, 90px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-140px, -70px) scale(1.1); } }
@keyframes drift3 { to { transform: translate(-90px, -120px) scale(1.2); } }

/* Film grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Scroll reveal -------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.in-view { opacity: 1; transform: none; }

/* Type helpers ---------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--teal);
  margin: 0 0 1.2rem;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--accent-grad);
}

.lede { color: var(--text-dim); font-size: 1.15rem; max-width: 62ch; }

.grad {
  background: var(--accent-grad-3);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

/* Buttons ---------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: 100px;
  font-weight: 600;
  font-family: var(--font-head);
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease-out), box-shadow 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 8px 28px -8px rgba(139, 92, 246, 0.55);
}
.btn-primary:hover { box-shadow: 0 14px 38px -8px rgba(139, 92, 246, 0.75); }

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--surface);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--violet); background: var(--surface-2); }

/* Header ------------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 7, 15, 0.65);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 0.65rem; font-family: var(--font-head); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 4px 18px -4px rgba(139, 92, 246, 0.6);
  transition: transform 0.3s var(--ease-out);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }
.brand-name { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.03em; }
.brand-accent {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav ul { display: flex; gap: 0.3rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease, background 0.2s ease;
}
.site-nav a:hover { color: var(--text); }
.site-nav a.is-active { color: var(--text); background: var(--surface-2); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero ----------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 8.5rem 0 6rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  backdrop-filter: blur(8px);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 2rem;
}
.hero-badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }

.hero h1 {
  font-size: clamp(2.8rem, 7.5vw, 5.4rem);
  margin-bottom: 1.4rem;
  max-width: 16ch;
}
.hero .lede { font-size: clamp(1.1rem, 2vw, 1.3rem); margin-bottom: 2.6rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 4.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(10px);
  width: fit-content;
  overflow: hidden;
}
.hero-stats div {
  display: flex;
  flex-direction: column;
  padding: 1.4rem 2.6rem;
}
.hero-stats div + div { border-left: 1px solid var(--border); }
.hero-stats strong {
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 700;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stats span { color: var(--text-faint); font-size: 0.85rem; margin-top: 0.2rem; }

/* Marquee ---------------------------------------------------------------------------- */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
  overflow: hidden;
  white-space: nowrap;
  background: var(--bg-alt);
}
.marquee-track {
  display: inline-flex;
  gap: 3rem;
  animation: marquee 30s linear infinite;
}
.marquee span {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  gap: 3rem;
}
.marquee span::after { content: "✦"; color: var(--violet); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections ----------------------------------------------------------------------------- */
.section { padding: 6rem 0; position: relative; }
.section-alt {
  background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.04) 30%, rgba(45, 212, 191, 0.03) 70%, transparent);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0; }
.section-head p { color: var(--text-dim); margin: 0.6rem 0 0; }
.link-more {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--teal);
  transition: gap 0.2s ease;
  display: inline-flex;
  gap: 0.4rem;
}
.link-more:hover { gap: 0.7rem; }

/* Disciplines ----------------------------------------------------------------------------- */
.disciplines {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.discipline {
  position: relative;
  padding: 2.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.3s ease;
}
.discipline::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(139, 92, 246, 0.14), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.discipline:hover::before { opacity: 1; }
.discipline:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.discipline-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 1.4rem;
  margin-bottom: 1.4rem;
}
.discipline h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.discipline p { color: var(--text-dim); font-size: 0.95rem; margin: 0 0 1.4rem; }
.discipline .go {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--teal);
  display: inline-flex;
  gap: 0.4rem;
  transition: gap 0.2s ease;
}
.discipline:hover .go { gap: 0.8rem; }

/* Showcase (featured #1) -------------------------------------------------------------------- */
.showcase {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background: var(--surface);
  backdrop-filter: blur(10px);
  margin-bottom: 1.6rem;
  transition: border-color 0.3s ease;
}
.showcase:hover { border-color: var(--border-strong); }
.showcase-media { position: relative; min-height: 340px; overflow: hidden; }
.showcase-media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.showcase:hover .showcase-media img { transform: scale(1.05); }
.showcase-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, rgba(7, 7, 15, 0.55));
}
.showcase-body {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.showcase-body h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.showcase-body p { color: var(--text-dim); margin: 0 0 1.6rem; font-size: 1.05rem; }
.showcase-body .btn { align-self: flex-start; }

/* Grid + cards --------------------------------------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.6rem;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: transform 0.35s var(--ease-out), border-color 0.3s ease, box-shadow 0.35s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.8), 0 0 40px -18px rgba(139, 92, 246, 0.35);
}
.card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--bg-alt);
  overflow: hidden;
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.card:hover .card-media img { transform: scale(1.07); }
.card-placeholder {
  display: grid;
  place-items: center;
  width: 100%; height: 100%;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 25% 25%, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(circle at 75% 75%, rgba(45, 212, 191, 0.16), transparent 60%);
}
.card-badge {
  position: absolute;
  top: 14px; left: 14px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-head);
  padding: 0.35rem 0.8rem;
  border-radius: 100px;
  background: rgba(7, 7, 15, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  color: var(--teal);
}
.card-body { padding: 1.5rem; }
.card-body h3 { font-size: 1.25rem; margin-bottom: 0.45rem; }
.card-body h3 a { transition: color 0.2s ease; }
.card-body h3 a:hover { color: var(--teal); }
.card-body p { color: var(--text-dim); font-size: 0.95rem; margin: 0 0 1.1rem; }
.card-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tag {
  font-size: 0.72rem;
  padding: 0.28rem 0.7rem;
  border-radius: 100px;
  background: var(--surface-2);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

/* CTA --------------------------------------------------------------------------------------------- */
.cta {
  position: relative;
  text-align: center;
  padding: 4.5rem 2rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background:
    radial-gradient(600px circle at 50% -10%, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(500px circle at 80% 110%, rgba(45, 212, 191, 0.14), transparent 60%),
    var(--surface);
  backdrop-filter: blur(10px);
}
.cta h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
.cta p { color: var(--text-dim); margin: 0 auto 2.2rem; max-width: 50ch; font-size: 1.1rem; }

/* Page head ------------------------------------------------------------------------------------------ */
.page-head { padding: 6rem 0 1.5rem; }
.page-head h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
.error-page { text-align: center; padding: 8rem 0; }
.error-page .lede { margin: 0 auto 2.4rem; }
.error-page .eyebrow::before { display: none; }

/* Filters ---------------------------------------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.8rem; }
.filter {
  padding: 0.6rem 1.3rem;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}
.filter:hover { color: var(--text); border-color: var(--border-strong); }
.filter.is-active {
  background: var(--accent-grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 22px -8px rgba(139, 92, 246, 0.6);
}
.empty-state { color: var(--text-faint); text-align: center; padding: 3.5rem 0; }

/* Project detail ------------------------------------------------------------------------------------------ */
.project-hero { padding: 4.5rem 0 2.5rem; }
.project-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
.back-link {
  color: var(--text-dim);
  font-size: 0.9rem;
  display: inline-flex;
  gap: 0.4rem;
  margin-bottom: 2rem;
  transition: color 0.2s ease, gap 0.2s ease;
}
.back-link:hover { color: var(--teal); gap: 0.7rem; }
.project-visual { margin-bottom: 3.5rem; }
.project-visual img,
.project-placeholder {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 90px -40px rgba(139, 92, 246, 0.35);
}
.project-placeholder {
  aspect-ratio: 21 / 9;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 7rem;
  color: rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 25% 25%, rgba(139, 92, 246, 0.25), transparent 60%),
    radial-gradient(circle at 75% 75%, rgba(45, 212, 191, 0.18), transparent 60%);
}
.project-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3.5rem;
  padding-bottom: 5rem;
}
.project-content h2 { font-size: 1.7rem; }
.project-content p { color: var(--text-dim); font-size: 1.1rem; }
.project-meta {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(10px);
  padding: 1.8rem;
  height: fit-content;
}
.project-meta h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  margin: 1.6rem 0 0.7rem;
}
.project-meta > div:first-child h3 { margin-top: 0; }
.project-meta ul { list-style: none; margin: 0; padding: 0; }
.project-meta li {
  padding: 0.45rem 0;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}
.project-meta li:last-child { border-bottom: 0; }

/* Prose --------------------------------------------------------------------------------------------------- */
.prose { max-width: 70ch; }
.prose p { color: var(--text-dim); font-size: 1.12rem; margin: 0 0 1.5rem; }
.prose h2 { font-size: 1.7rem; margin-top: 2.8rem; }
.prose a {
  color: var(--teal);
  border-bottom: 1px solid rgba(45, 212, 191, 0.35);
}
.prose-list { color: var(--text-dim); padding-left: 1.2rem; font-size: 1.05rem; }
.prose-list li { margin-bottom: 0.8rem; }
.prose-list strong { color: var(--text); }

/* Contact ------------------------------------------------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; }
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(10px);
  padding: 2.2rem;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.95rem;
}
.contact-form input,
.contact-form textarea {
  background: rgba(7, 7, 15, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.05rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}
.contact-form button { align-self: flex-start; }
.contact-aside h3 { font-size: 1.05rem; margin: 1.8rem 0 0.5rem; }
.contact-aside h3:first-child { margin-top: 0; }
.contact-aside a { color: var(--teal); }
.contact-social { list-style: none; padding: 0; margin: 0; }
.contact-social li { padding: 0.3rem 0; }

/* Footer ------------------------------------------------------------------------------------------------------------ */
.site-footer {
  position: relative;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding-top: 4rem;
  margin-top: 3rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: var(--accent-grad-3);
  opacity: 0.6;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
}
.footer-brand .brand-name { font-size: 1.4rem; font-family: var(--font-head); font-weight: 700; }
.footer-brand p { color: var(--text-faint); max-width: 34ch; }
.footer-links h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
}
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { padding: 0.28rem 0; }
.footer-links a { color: var(--text-dim); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--teal); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.6rem 0;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.back-to-top { color: var(--text-faint); transition: color 0.2s ease; }
.back-to-top:hover { color: var(--teal); }

/* Reduced motion ------------------------------------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Responsive --------------------------------------------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .showcase { grid-template-columns: 1fr; }
  .showcase-media { min-height: 240px; }
  .showcase-media::after { background: linear-gradient(180deg, transparent 55%, rgba(7, 7, 15, 0.55)); }
  .showcase-body { padding: 2rem; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: rgba(7, 7, 15, 0.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease-out);
  }
  .site-nav.is-open { max-height: 340px; }
  .site-nav ul { flex-direction: column; padding: 1rem 24px; gap: 0.2rem; }
  .site-nav a { display: block; padding: 0.85rem 1rem; }

  .hero { padding: 5rem 0 4rem; }
  .hero-stats { width: 100%; }
  .hero-stats div { padding: 1.1rem; flex: 1; }
  .project-body { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .section { padding: 4rem 0; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero-stats div { padding: 1rem 0.8rem; }
  .hero-stats strong { font-size: 1.6rem; }
}
