/* ============================================================
   Damilare Oduyomi — portfolio
   Dark editorial design system (Stefano Bartoletti inspired)
   Plain CSS, no build step, no dependencies.
   ============================================================ */

:root {
  color-scheme: dark;

  --base-950: #0f0f0f;
  --base-900: #141414;
  --base-850: #181818;
  --base-800: #1d1d1d;
  --base-700: #242424;

  --primary: #312e81;
  --primary-400: #4338ca;

  --accent: #818cf8;
  --accent-400: #a5b4fc;
  --accent-600: #6366f1;

  --edge: #374151;
  --edge-subtle: #494949;

  --white: #ffffff;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;

  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  overflow-x: hidden;
}

body {
  margin: 0;
  position: relative;
  overflow-x: hidden;
  background: var(--base-950);
  color: var(--slate-400);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Full-page spotlights, sized to the document (not the viewport) via a
   position: relative body. Sits behind every section; opaque elements
   (cards, zebra tint, the glass nav) naturally occlude it, same as the
   hero's own glow already does locally. */
.page-glow {
  position: absolute;
  z-index: -1;
  height: 30rem;
  width: 30rem;
  border-radius: 999px;
  background: rgba(129, 140, 248, 0.16);
  filter: blur(120px);
  /* Force its own compositor layer so the blur is rasterized once instead
     of being re-painted into scroll tiles on every frame — without this,
     5 unanimated blur(160px) blobs stall Chrome's compositor mid-scroll. */
  will-change: transform;
  pointer-events: none;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: rgba(79, 70, 229, 0.35);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--base-900);
}
::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3a3a3a;
}

/* ---------- layout primitives ---------- */

.container-x {
  margin-inline: auto;
  width: 100%;
  max-width: 72rem;
  padding-inline: 1.25rem;
}
@media (min-width: 640px) {
  .container-x {
    padding-inline: 2rem;
  }
}

section {
  padding-block: 5rem;
}
@media (min-width: 640px) {
  section {
    padding-block: 7rem;
  }
}

.border-t {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.zebra {
  background: rgba(20, 20, 20, 0.4);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin: 0;
}

.section-title {
  margin: 0.75rem 0 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  font-size: 1.875rem;
  line-height: 1.2;
}
@media (min-width: 640px) {
  .section-title {
    font-size: 2.25rem;
  }
}

/* ---------- component classes ---------- */

/* Flat bordered surface — no shadow, no blur (design system default) */
.card {
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--base-800);
}
.card-hover {
  transition: border-color 0.3s ease;
}
.card-hover:hover {
  border-color: rgba(129, 140, 248, 0.5);
}

/* Scoped frosted-glass — nav chrome + image overlays only */
.glass {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 0.375rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(36, 36, 36, 0.6);
  padding: 0.25rem 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--slate-300);
}

.btn {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.125rem;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: scale(1.03);
  }
  .btn:active {
    transform: scale(0.97);
  }
}
.btn-primary {
  background: rgba(79, 70, 229, 0.55);
  color: #fff;
  font-weight: 500;
  border: 1px solid rgba(165, 180, 252, 0.35);
}
.btn-primary:hover {
  background: rgba(99, 102, 241, 0.7);
  border-color: rgba(165, 180, 252, 0.55);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
/* Direction/zoom variants — stack alongside .reveal, same transition,
   just a different hidden-state transform. Mix these across a section
   the way benrobo.vercel.app mixes fade-up/left/right/zoom via AOS. */
.reveal.reveal-left {
  transform: translateX(-28px);
}
.reveal.reveal-right {
  transform: translateX(28px);
}
.reveal.reveal-zoom {
  transform: scale(0.92);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- keyframes ---------- */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
@keyframes pulseSoft {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.9;
  }
}

.animate-fadeUp {
  animation: fadeUp 0.7s ease-out both;
}
.animate-blink {
  animation: blink 1.1s step-end infinite;
}
.animate-pulseSoft {
  animation: pulseSoft 4s ease-in-out infinite;
}

/* Hero content reveal: simple staggered fade-up on load (see
   initHeroReveal() in script.js), no scroll-scrubbing. */
.hero-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out, ease), transform 0.7s var(--ease-out, ease);
}
.hero-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .animate-fadeUp,
  .animate-blink,
  .animate-pulseSoft {
    animation: none;
  }
  .scroll-cue span,
  .marquee-track {
    animation: none;
  }
  .case-panel {
    transition: none;
  }
}

/* ============================================================
   Nav
   ============================================================ */

.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-inline: none;
  border-top: none;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.brand-logo {
  height: 1.75rem;
  width: 1.75rem;
}

.brand-name {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}
.brand-name .muted {
  color: var(--slate-400);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-400);
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: var(--accent);
}
.nav-links .slash {
  color: rgba(129, 140, 248, 0.6);
  margin-right: 0.25rem;
}

.nav-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}
.icon-btn {
  display: inline-flex;
  height: 2.25rem;
  width: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--slate-400);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.icon-btn:hover {
  color: var(--accent);
  border-color: rgba(129, 140, 248, 0.4);
}
.icon-btn svg {
  height: 1rem;
  width: 1rem;
}

.nav-github {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.125rem;
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
}
.nav-github:hover {
  background: var(--primary-400);
}
.nav-github svg {
  height: 0.875rem;
  width: 0.875rem;
}

.nav-toggle {
  display: inline-flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--slate-300);
  background: none;
}

.nav-mobile {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(15, 15, 15, 0.95);
  padding: 0.75rem 1.25rem 1.5rem;
}
.nav-mobile.is-open {
  display: block;
}
.nav-mobile ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.nav-mobile a {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-300);
}
.nav-mobile-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

@media (min-width: 768px) {
  .nav-links,
  .nav-actions {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background: var(--base-950);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, rgba(79, 70, 229, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(79, 70, 229, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
}

.hero-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(140px);
}
.hero-glow.a {
  top: -10rem;
  left: calc(50% - 360px);
  height: 480px;
  width: 720px;
  background: rgba(129, 140, 248, 0.2);
  transition: transform 0.3s ease-out;
}
.hero-glow.b {
  top: 8rem;
  right: -6rem;
  height: 288px;
  width: 288px;
  background: rgba(129, 140, 248, 0.15);
  filter: blur(120px);
  animation-delay: 1.5s;
  transition: transform 0.3s ease-out;
}

/* Ghost initials watermark behind headline */
.hero-ghost {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(10rem, 32vw, 26rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(129, 140, 248, 0.08);
  white-space: nowrap;
}

/* Floating stack chips — the tools I actually build with, drifting behind
   the headline as background texture (on-brand stand-in for the reference's
   floating glyphs). Reveal reuses .hero-reveal; the bob loop animates
   `translate`, a property independent of `transform`, so it never fights
   the reveal transition. */
.hero-chips {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(36, 36, 36, 0.78);
  padding: 0.45rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--slate-200);
  opacity: 0;
  animation: chipFloat 7s ease-in-out infinite;
}
.hero-chip svg {
  height: 17px;
  width: 17px;
  flex: none;
  color: var(--accent);
}
.hero-chip.is-visible {
  opacity: 0.92;
}
.hero-chip:nth-child(even) {
  animation-duration: 8.5s;
  animation-delay: -2s;
}
@keyframes chipFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -12px;
  }
}
@media (max-width: 767px) {
  .hero-chips {
    display: none;
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: 8rem 5rem;
  text-align: center;
}
@media (min-width: 640px) {
  .hero-inner {
    padding-block: 10rem 7rem;
  }
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 999px;
  padding: 0.375rem 1rem 0.375rem 0.375rem;
}
.hero-badge img {
  height: 2rem;
  width: 2rem;
  border-radius: 999px;
  object-fit: cover;
}
.hero-badge p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--slate-300);
}
@media (min-width: 640px) {
  .hero-badge p {
    font-size: 0.875rem;
  }
}
.hero-badge .dot {
  display: inline-block;
  height: 0.5rem;
  width: 0.5rem;
  margin-right: 0.5rem;
  border-radius: 999px;
  background: var(--accent);
  vertical-align: middle;
}

.hero-headline {
  margin: 2rem 0 0;
  max-width: 56rem;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #fff;
  font-size: 2.75rem;
}
@media (min-width: 640px) {
  .hero-headline {
    font-size: 4.5rem;
    letter-spacing: -0.04em;
  }
}
@media (min-width: 1024px) {
  .hero-headline {
    font-size: 96px;
    line-height: 0.96;
    letter-spacing: -0.05em;
  }
}
.hero-headline .line {
  display: block;
  white-space: nowrap;
}
.hero-headline .accent-word {
  color: var(--accent);
}

.hero-sub {
  margin: 1.5rem auto 0;
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--slate-400);
}
@media (min-width: 640px) {
  .hero-sub {
    font-size: 1.125rem;
  }
}

.hero-cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.hero-cta .btn {
  min-width: 191px;
}

.stat-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid var(--edge);
  background: var(--edge);
}
@media (min-width: 640px) {
  .stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.stat-grid div {
  background: var(--base-950);
  padding: 1rem;
}
.stat-grid .value {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}
.stat-grid .label {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--slate-400);
}

/* Scroll-cue beam under the hero, traveling light on a vertical line */
.scroll-cue {
  position: relative;
  z-index: 1;
  margin: 3rem auto 0;
  height: 4rem;
  width: 1px;
  background: linear-gradient(to bottom, rgba(129, 140, 248, 0.35), transparent);
}
.scroll-cue span {
  position: absolute;
  left: 0;
  top: 0;
  height: 1.25rem;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  animation: scrollCue 2.4s ease-in-out infinite;
}
@keyframes scrollCue {
  0% {
    opacity: 0;
    top: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    top: 100%;
  }
}

/* ============================================================
   About
   ============================================================ */

.about-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}
.about-copy p {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--slate-400);
}
.about-copy p:last-child {
  margin-bottom: 0;
}

.about-card img {
  height: 20rem;
  width: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: grayscale(1);
  transition: filter 0.5s ease;
}
.about-card:hover img {
  filter: grayscale(0);
}
.about-card .pad {
  padding: 1.5rem;
}
.about-card .kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent);
}
.about-dl {
  margin: 1.25rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.875rem;
}
.about-dl .row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.about-dl dt {
  flex-shrink: 0;
  font-family: var(--font-mono);
  color: var(--slate-400);
}
.about-dl dd {
  margin: 0;
  text-align: right;
  color: var(--slate-200);
}

/* ============================================================
   Stack / Flagship shared grid card
   ============================================================ */

.card-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .card-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 768px) {
  .card-grid.cols-2md {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card {
  padding: 1.5rem;
  height: 100%;
}
.feature-card .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.feature-card h3 {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}
.feature-card .role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--slate-400);
}
.feature-card .num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(129, 140, 248, 0.7);
}
.feature-card .title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
}
.feature-card .head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.feature-card p.detail {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--slate-400);
}
.feature-card .chips {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.toolbelt-card {
  margin-top: 2rem;
  padding: 1.5rem;
}
.toolbelt-card p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent);
}
.toolbelt-card .chips {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ============================================================
   Selected work
   ============================================================ */

.projects-lede {
  margin: 1rem 0 0;
  max-width: 42rem;
  line-height: 1.6;
  color: var(--slate-400);
}

.work-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.work-card {
  height: 100%;
  padding: 1.75rem;
}
.work-role {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(129, 140, 248, 0.8);
}
.work-name {
  margin: 0.5rem 0 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}
.work-stat {
  margin: 0.375rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
}
.work-desc {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--slate-400);
}
.work-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent);
  transition: color 0.2s ease;
}
.work-link:hover {
  color: var(--accent-400);
}

/* Big faint scrolling marquee band */
.marquee {
  overflow: hidden;
  padding-block: 1.5rem;
}
.marquee-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: marqueeScroll 22s linear infinite;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.5rem, 5vw, 3rem);
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(129, 140, 248, 0.45);
  filter: drop-shadow(0 0 14px rgba(129, 140, 248, 0.55)) drop-shadow(0 0 32px rgba(129, 140, 248, 0.3));
}
@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Case-study wireframe/UI gallery — glassy, hover-preview / click-to-pin */
.case-study {
  margin-top: 1.25rem;
  overflow: hidden;
}
.case-study .case-toggle {
  display: flex;
  width: 100%;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border: none;
  background: none;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--slate-300);
  text-align: left;
  transition: color 0.2s ease;
}
.case-study .case-toggle:hover,
.case-study.is-open .case-toggle {
  color: var(--accent);
}
.case-study .case-toggle .hint {
  font-size: 0.75rem;
  color: var(--slate-400);
}

/* Smooth height reveal via the grid-rows trick — no JS height math needed */
.case-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.case-study.is-open .case-panel {
  grid-template-rows: 1fr;
}
.case-panel-inner {
  overflow: hidden;
}

.case-gallery {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
@media (min-width: 768px) {
  .case-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
.case-gallery figure {
  margin: 0;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.case-gallery img {
  width: 100%;
  border-radius: 0.375rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: zoom-in;
}
.case-gallery figcaption {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-400);
}

/* ============================================================
   Contact
   ============================================================ */

.contact {
  position: relative;
  overflow: hidden;
}
.contact-glow {
  position: absolute;
  pointer-events: none;
  bottom: -8rem;
  left: 50%;
  transform: translateX(-50%);
  height: 20rem;
  width: 640px;
  border-radius: 999px;
  background: rgba(129, 140, 248, 0.15);
  filter: blur(130px);
}
.contact-inner {
  position: relative;
  margin-inline: auto;
  max-width: 42rem;
  text-align: center;
}
.contact-lede {
  margin: 1rem 0 0;
  line-height: 1.7;
  color: var(--slate-400);
}
.contact-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .contact-actions {
    flex-direction: row;
  }
}
.contact-actions .btn-primary {
  font-weight: 600;
  width: 100%;
}
@media (min-width: 640px) {
  .contact-actions .btn-primary {
    width: auto;
  }
}
.contact-actions .btn-primary svg {
  height: 1rem;
  width: 1rem;
}
.circle-btn {
  display: inline-flex;
  height: 3rem;
  width: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--slate-200);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.circle-btn:hover {
  border-color: rgba(129, 140, 248, 0.5);
  color: var(--accent);
}
.circle-btn svg {
  height: 1.25rem;
  width: 1.25rem;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  padding-block: 2.5rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-brand span.name {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--slate-400);
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
  }
}
.footer-bottom p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--slate-400);
}
.footer-bottom .accent {
  color: var(--accent);
}

/* ============================================================
   Lightbox (case-study images)
   ============================================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(15, 15, 15, 0.92);
}
.lightbox.is-open {
  display: flex;
}
.lightbox img {
  max-height: 90vh;
  max-width: 90vw;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  height: 2.75rem;
  width: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 1rem;
}

