/* ============================================================
   DESIGN TOKENS
============================================================ */
:root {
  --black:      #000000;
  --indigo:     #0F0054;
  --blue:       #0055FE;
  --blue-light: #00A6FF;
  --white:      #F5F7FF;
  --accent:     #5CC8FF;

  /* Semantic text opacities */
  --text-secondary: rgba(245, 247, 255, 0.90);
  --text-muted:     rgba(245, 247, 255, 0.68);
  --text-dim:       rgba(245, 247, 255, 0.55);
  --text-faint:     rgba(245, 247, 255, 0.42);

  /* Glass surfaces */
  --glass-bg:     rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.06);

  --ff-title: 'ClashGrotesk-Variable', 'Clash Grotesk', sans-serif;
  --ff-body:  'GeneralSans-Variable', 'General Sans', 'Inter', sans-serif;

  --r-card: 20px;
  --r-pill: 100px;

  --t-smooth: 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-body);
  background: var(--indigo);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ============================================================
   ANIMATED BACKGROUND — BLOBS
============================================================ */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: -3;
  background: var(--indigo);
  overflow: hidden;
}
.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
}

.bb1 {
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(0,85,254,0.52) 0%, transparent 65%);
  top: -280px; left: -200px;
  animation: blob1Move 15s ease-in-out infinite alternate;
}
.bb2 {
  width: 820px; height: 820px;
  background: radial-gradient(circle, rgba(0,85,254,0.48) 0%, transparent 65%);
  top: -180px; right: -200px;
  animation: blob2Move 19s ease-in-out infinite alternate;
  animation-delay: -6s;
}
.bb3 {
  width: 1100px; height: 1100px;
  background: radial-gradient(circle, rgba(0,85,254,0.22) 0%, transparent 60%);
  bottom: -380px; left: 20%;
  animation: blob3Move 24s ease-in-out infinite alternate;
  animation-delay: -11s;
}
.bb4 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0,166,255,0.28) 0%, transparent 62%);
  top: 32%; left: 8%;
  animation: blob4Move 17s ease-in-out infinite alternate;
  animation-delay: -4s;
}
.bb5 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(60,0,180,0.18) 0%, transparent 65%);
  top: 45%; right: 5%;
  animation: blob5Move 22s ease-in-out infinite alternate;
  animation-delay: -8s;
}

@keyframes blob1Move {
  0%   { transform: translate(0px,   0px)   scale(1);    }
  25%  { transform: translate(80px, -60px)  scale(1.08); }
  50%  { transform: translate(160px, 40px)  scale(0.94); }
  75%  { transform: translate(60px,  100px) scale(1.05); }
  100% { transform: translate(30px, -30px)  scale(1.02); }
}
@keyframes blob2Move {
  0%   { transform: translate(0px,    0px)   scale(1);    }
  30%  { transform: translate(-100px, 60px)  scale(1.1);  }
  60%  { transform: translate(-40px,  130px) scale(0.92); }
  100% { transform: translate(-80px,  20px)  scale(1.06); }
}
@keyframes blob3Move {
  0%   { transform: translate(0px,   0px)   scale(1);    }
  20%  { transform: translate(-80px,-50px)  scale(1.06); }
  50%  { transform: translate(100px,-80px)  scale(0.9);  }
  80%  { transform: translate(60px,  60px)  scale(1.08); }
  100% { transform: translate(-30px, 20px)  scale(0.97); }
}
@keyframes blob4Move {
  0%   { transform: translate(0px,   0px)   scale(1);    }
  33%  { transform: translate(120px,-70px)  scale(1.12); }
  66%  { transform: translate(60px,  100px) scale(0.88); }
  100% { transform: translate(-50px, 40px)  scale(1.05); }
}
@keyframes blob5Move {
  0%   { transform: translate(0px,    0px)   scale(1);    }
  25%  { transform: translate(-90px, -80px)  scale(1.1);  }
  55%  { transform: translate(-150px, 60px)  scale(0.9);  }
  80%  { transform: translate(-40px,  120px) scale(1.06); }
  100% { transform: translate(30px,  -40px)  scale(0.96); }
}

/* ============================================================
   BACKGROUND — FILM GRAIN NOISE
============================================================ */
.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
.bg-noise svg { width: 100%; height: 100%; }

/* ============================================================
   BACKGROUND — DOT MATRIX
============================================================ */
.bg-dots {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(245,247,255,0.09) 1px, transparent 1px),
    radial-gradient(circle, rgba(245,247,255,0.05) 1px, transparent 1px);
  background-size: 22px 22px, 44px 44px;
  background-position: 0 0, 11px 11px;
  -webkit-mask-image: radial-gradient(ellipse 68% 62% at 50% 36%, transparent 0%, transparent 28%, rgba(0,0,0,0.5) 55%, black 80%);
  mask-image:         radial-gradient(ellipse 68% 62% at 50% 36%, transparent 0%, transparent 28%, rgba(0,0,0,0.5) 55%, black 80%);
}

/* ============================================================
   LAYOUT UTILITIES
============================================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}
section { padding: 88px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--blue-light);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--ff-title);
  font-weight: 200;
  font-size: clamp(30px, 3.5vw, 50px);
  color: var(--white);
  line-height: 1.15;
  letter-spacing: 0.18em;
  margin-bottom: 52px;
  opacity: 0;
}
@keyframes titleReveal {
  0%   { letter-spacing: 0.18em; font-weight: 200; opacity: 0; }
  40%  { opacity: 1; }
  100% { letter-spacing: 0.03em; font-weight: 700; opacity: 1; }
}
.section-title.anim-play {
  animation: titleReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245,247,255,0.7);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-pill);
  padding: 4px 12px;
}

/* Back link (shared by project.html and post.html) */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 28px;
  transition: color 0.25s;
}
.back-link svg       { flex-shrink: 0; transition: transform 0.25s; }
.back-link:hover     { color: var(--white); }
.back-link:hover svg { transform: translateX(-3px); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--white);
  background: var(--blue);
  border: none;
  border-radius: var(--r-pill);
  padding: 18px 44px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.2s, box-shadow 0.25s;
}
.btn-primary:hover {
  background: var(--blue-light);
  color: var(--indigo);
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(0,166,255,0.4);
}
.btn-primary svg { flex-shrink: 0; transition: transform 0.2s; }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: rgba(245,247,255,0.8);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--r-pill);
  padding: 12px 32px;
  transition: border-color 0.25s, background 0.25s, color 0.25s, transform 0.2s;
}
.btn-outline:hover {
  border-color: var(--blue-light);
  background: rgba(0,166,255,0.08);
  color: var(--blue-light);
  transform: translateY(-2px);
}
.btn-outline svg { transition: transform 0.2s; }
.btn-outline:hover svg { transform: translateX(4px); }

.section-footer { display: flex; justify-content: center; margin-top: 52px; }

/* ============================================================
   SCROLL REVEAL
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   NAVBAR
============================================================ */
.navbar {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 96px);
  max-width: 1280px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15,0,84,0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-pill);
  padding: 12px 14px 12px 16px;
  transition: background var(--t-smooth), border-color var(--t-smooth);
}
.navbar.scrolled {
  background: rgba(15,0,84,0.78);
  border-color: rgba(255,255,255,0.12);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.navbar-logomark {
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.navbar-name {
  font-family: var(--ff-title);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--white);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.navbar-links a {
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: rgba(245,247,255,0.72);
  padding: 8px 15px;
  border-radius: var(--r-pill);
  transition: color 0.2s, background 0.2s;
}
.navbar-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}
.navbar-links .btn-connect {
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
  padding: 9px 20px;
  transition: background 0.25s, color 0.25s, transform 0.2s, box-shadow 0.25s;
}
.navbar-links .btn-connect:hover {
  background: var(--blue-light);
  color: var(--indigo);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,166,255,0.3);
}

.navbar-hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.navbar-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  flex-shrink: 0;
  transition: var(--t-smooth);
}

/* Mobile Overlay Menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(5,0,32,0.97);
  backdrop-filter: blur(24px);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--ff-title);
  font-weight: 700;
  font-size: 38px;
  letter-spacing: 0.02em;
  color: var(--white);
  padding: 14px 24px;
  border-radius: 12px;
  transition: color 0.2s, background 0.2s;
}
.mobile-menu a:hover { color: var(--blue-light); background: rgba(255,255,255,0.04); }
.mobile-menu-close {
  position: absolute;
  top: 28px; right: 28px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 12px;
  transition: background 0.2s;
}
.mobile-menu-close:hover { background: rgba(255,255,255,0.12); }

/* ============================================================
   HERO
============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 0 80px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.618fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 18px;
  width: 100%;
  min-height: clamp(520px, calc(100vh - 240px), 700px);
}
.hero-cell {
  padding: 36px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.hero-cell.visible { opacity: 1; transform: translateY(0); }

.hero-cell-1 {
  grid-column: 1; grid-row: 1 / 4;
  transition-delay: 0s;
  display: flex; align-items: center; justify-content: center;
  padding: 56px;
}
.hero-cell-2 {
  grid-column: 2; grid-row: 1;
  transition-delay: 0.1s;
  display: flex; align-items: flex-end;
}
.hero-cell-3 {
  grid-column: 2; grid-row: 2;
  transition-delay: 0.2s;
  display: flex; align-items: center;
}
.hero-cell-4 {
  grid-column: 2; grid-row: 3;
  transition-delay: 0.3s;
  display: flex; align-items: flex-start;
}

.hero-logomark-wrap {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.hero-spin-ring {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  animation: ringRotate 50s linear infinite;
  pointer-events: none;
}
@keyframes ringRotate { to { transform: rotate(360deg); } }

.hero-greeting {
  font-family: var(--ff-title);
  font-weight: 700;
  font-size: clamp(40px, 4vw, 64px);
  color: var(--white);
  line-height: 1.05;
  letter-spacing: 0.03em;
}
.hero-greeting .hi   { color: var(--text-secondary); font-weight: 600; }
.hero-greeting .name { color: var(--blue-light); }

.hero-tagline {
  font-family: var(--ff-title);
  font-weight: 500;
  font-size: clamp(18px, 2vw, 26px);
  color: rgba(245,247,255,0.95);
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.hero-tagline em { color: var(--blue-light); font-style: italic; }

.hero-bio { display: flex; flex-direction: column; gap: 10px; }
.hero-bio-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
  letter-spacing: 0.01em;
}
.hero-bio-item::before {
  content: '—';
  color: var(--blue-light);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.hero-bio-item em {
  font-style: italic;
  color: rgba(245,247,255,0.65);
}

.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  animation: chevronBob 2.6s ease-in-out infinite;
  cursor: pointer;
  opacity: 0;
  transition: opacity 1s ease 1.2s;
}
.scroll-indicator.visible { opacity: 0.55; }
.scroll-indicator:hover   { opacity: 0.9; }
@keyframes chevronBob {
  0%, 100% { transform: translateX(-50%) translateY(0px);  }
  50%       { transform: translateX(-50%) translateY(10px); }
}

/* ============================================================
   WHAT I DO
============================================================ */
.wid-cards {
  display: flex;
  gap: 14px;
  height: 520px;
}
.wid-card {
  flex-grow: 1; flex-shrink: 1; flex-basis: 0%;
  min-width: 0;
  border-radius: var(--r-card);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  outline: none;
  transition:
    flex-grow var(--t-smooth),
    opacity 0.75s ease,
    transform 0.75s ease,
    box-shadow 0.3s;
  opacity: 0;
  transform: translateY(32px);
}
.wid-card.visible { opacity: 1; transform: translateY(0); }
.wid-card:nth-child(2) { transition-delay: 0.1s; }
.wid-card:nth-child(3) { transition-delay: 0.2s; }

.wid-card:hover { flex-grow: 2; box-shadow: 0 24px 80px rgba(0,85,254,0.22); }
.wid-cards:has(.wid-card:hover) .wid-card:not(:hover) { flex-grow: 1; }

.wid-bg { position: absolute; inset: 0; transition: opacity 0.5s ease; }
.wid-bg-gray  { z-index: 1; }
.wid-bg-color {
  z-index: 2; opacity: 0;
  background-size: 200% 200%;
  animation: gradFlow 4s ease infinite;
}
@keyframes gradFlow {
  0%,100% { background-position: 0% 0%;     }
  50%      { background-position: 100% 100%; }
}
.wid-card:hover .wid-bg-gray  { opacity: 0; }
.wid-card:hover .wid-bg-color { opacity: 1; }

/* Card backgrounds — UI/UX */
.wid-card:nth-child(1) .wid-bg-gray {
  background: linear-gradient(160deg, #131330 0%, #0b0b22 55%, #050516 100%);
}
.wid-card:nth-child(1) .wid-bg-gray::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
}
.wid-card:nth-child(1) .wid-bg-color {
  background: linear-gradient(160deg, #0055FE 0%, #0033BB 40%, #001A6E 100%);
}

/* Card backgrounds — Visual Design */
.wid-card:nth-child(2) .wid-bg-gray {
  background: linear-gradient(160deg, #18082a 0%, #0c0015 55%, #060009 100%);
}
.wid-card:nth-child(2) .wid-bg-gray::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 50% 38%, transparent 18%, rgba(255,255,255,0.025) 18.5%, transparent 19%),
    radial-gradient(circle at 50% 38%, transparent 32%, rgba(255,255,255,0.022) 32.5%, transparent 33%),
    radial-gradient(circle at 50% 38%, transparent 48%, rgba(255,255,255,0.018) 48.5%, transparent 49%),
    radial-gradient(circle at 50% 38%, transparent 64%, rgba(255,255,255,0.015) 64.5%, transparent 65%);
}
.wid-card:nth-child(2) .wid-bg-color {
  background: linear-gradient(160deg, #00A6FF 0%, #0055FE 45%, #2200BB 100%);
}

/* Card backgrounds — E-Commerce */
.wid-card:nth-child(3) .wid-bg-gray {
  background: linear-gradient(160deg, #04111e 0%, #020b14 55%, #01060d 100%);
}
.wid-card:nth-child(3) .wid-bg-gray::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 18px 18px;
}
.wid-card:nth-child(3) .wid-bg-color {
  background: linear-gradient(160deg, #00A6FF 0%, #0077CC 45%, #003F88 100%);
}

.wid-overlay {
  position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.18) 55%, transparent 100%);
}
.wid-content {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  padding: 32px;
}
.wid-title-group {
  transform: translateY(0);
  transition: transform var(--t-smooth);
}
.wid-card:hover .wid-title-group { transform: translateY(-52px); }

.wid-num {
  font-family: var(--ff-title);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-dim);
  display: block; margin-bottom: 8px;
}
.wid-name {
  font-family: var(--ff-title);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 28px);
  color: var(--white);
  line-height: 1.15; margin-bottom: 5px;
  letter-spacing: 0.02em;
}
.wid-sub {
  font-size: 13px; font-weight: 500; font-style: italic;
  color: rgba(160,220,255,0.95);
}

.wid-detail {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease 0.14s, transform 0.4s ease 0.14s;
  margin-top: 14px;
}
.wid-card:hover .wid-detail { opacity: 1; transform: translateY(0); }
.wid-detail-text {
  font-size: 14px; font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.65;
  letter-spacing: 0.01em;
}

/* ============================================================
   WID PANEL — related posts drawer
============================================================ */

/* Active card: keeps the expanded + colored state locked in */
.wid-card.active {
  flex-grow: 2;
  box-shadow: 0 24px 80px rgba(0,85,254,0.22);
}
.wid-card.active .wid-bg-gray           { opacity: 0; }
.wid-card.active .wid-bg-color          { opacity: 1; }
.wid-card.active .wid-title-group       { transform: translateY(-52px); }
.wid-card.active .wid-detail            { opacity: 1; transform: translateY(0); }
/* Active bottom indicator line */
.wid-card.active::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; z-index: 5;
  background: linear-gradient(90deg, transparent 0%, rgba(0,166,255,0.75) 40%, rgba(0,166,255,0.75) 60%, transparent 100%);
  transition: opacity 0.3s;
}
/* When another card is being hovered, let hover take over temporarily */
.wid-cards:has(.wid-card:hover) .wid-card.active:not(:hover) { flex-grow: 1; }

/* Panel container — grid trick for smooth height animation */
.wid-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.48s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.36s ease,
    margin-top 0.48s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 0;
}
.wid-panel.open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 20px;
}
.wid-panel-inner {
  overflow: hidden;
  min-height: 0;
  padding-bottom: 2px; /* prevent clipping box shadows */
}

/* Panel header row */
.wid-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-top: 2px;
}
.wid-panel-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0;
}
.wid-panel-label span {
  color: var(--accent);
}
.wid-panel-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.22s;
}
.wid-panel-more:hover { color: var(--white); }

/* Grid of mini post cards */
.wid-panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

/* Mini post card */
.wid-mini-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-card);
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.25s, transform 0.25s, background 0.25s, box-shadow 0.25s;
}
.wid-mini-card:hover {
  border-color: rgba(0,166,255,0.3);
  transform: translateY(-3px);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 12px 40px rgba(0,85,254,0.12);
}
.wid-mini-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  flex-shrink: 0;
}
.wid-mini-info { min-width: 0; }
.wid-mini-type {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.wid-mini-title {
  font-family: var(--ff-title);
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wid-mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.wid-mini-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  color: var(--text-dim);
  white-space: nowrap;
}
.wid-mini-tag.active {
  background: rgba(0,166,255,0.14);
  border-color: rgba(0,166,255,0.42);
  color: var(--accent);
}

/* Empty state */
.wid-panel-empty {
  font-size: 13px;
  font-style: italic;
  color: var(--text-dim);
  margin: 8px 0 0;
}

/* ============================================================
   CONTENT CARDS — shared by Works + Posts
============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* ── Card link wrapper — handles entrance animation + hover delegation ── */
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--r-card);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.card-link.visible           { opacity: 1; transform: translateY(0); }
/* Entrance stagger — restart per row in a 3-col grid */
.card-link:nth-child(2)      { transition-delay: 0.12s; }
.card-link:nth-child(3)      { transition-delay: 0.24s; }
.card-link:nth-child(4)      { transition-delay: 0s;    }
.card-link:nth-child(5)      { transition-delay: 0.12s; }
.card-link:nth-child(6)      { transition-delay: 0.24s; }
.card-link:nth-child(7)      { transition-delay: 0s;    }
.card-link:nth-child(8)      { transition-delay: 0.12s; }
.card-link:nth-child(9)      { transition-delay: 0.24s; }
/* Delegate hover / focus-visible to inner card */
.card-link:hover .content-card {
  transform: translateY(-7px);
  border-color: rgba(0,166,255,0.22);
  box-shadow: 0 22px 64px rgba(0,85,254,0.16);
}
.card-link:focus              { outline: none; }
.card-link:focus-visible .content-card {
  outline: 2px solid var(--blue-light);
  outline-offset: 2px;
}

/* ── Content card — visual shell only (animation lives on .card-link) ── */
.content-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-card);
  overflow: hidden;
  cursor: pointer;
  height: 100%;
  transition: transform 0.35s ease, border-color 0.3s, box-shadow 0.35s;
}

.card-thumb {
  width: 100%; aspect-ratio: 16/9;
  overflow: hidden; position: relative;
}
.card-thumb-inner {
  position: absolute; inset: 0;
  transition: transform 0.5s ease;
}
.card-link:hover .card-thumb-inner { transform: scale(1.05); }

.card-body { padding: 22px 24px 24px; }

.card-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 9px;
}
.card-label {
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
}
.card-sublabel {
  font-size: 12px;
  color: rgba(245,247,255,0.38);
}

.card-title {
  font-family: var(--ff-title);
  font-weight: 700; font-size: 20px;
  color: var(--white); line-height: 1.25; margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.68; margin-bottom: 16px;
  letter-spacing: 0.01em;
}

/* ============================================================
   CTA SECTION
============================================================ */
.cta-section { padding: 120px 0; text-align: center; }
.cta-kicker {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.cta-headline {
  font-family: var(--ff-title);
  font-weight: 700;
  font-size: clamp(28px, 4.2vw, 60px);
  line-height: 1.12; letter-spacing: -0.015em;
  color: var(--white);
  max-width: 860px; margin: 0 auto 44px;
}
.cta-headline .grad {
  background: linear-gradient(95deg, var(--blue) 0%, var(--blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 76px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}
.footer-col-heading {
  font-family: var(--ff-title); font-weight: 700; font-size: 14px;
  color: var(--white); margin-bottom: 18px; letter-spacing: 0.04em;
}
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px;
  color: rgba(245,247,255,0.52);
  transition: color 0.2s;
}
.footer-link:hover { color: rgba(245,247,255,0.9); }
.footer-link svg { flex-shrink: 0; }

.footer-social { display: flex; flex-direction: column; gap: 10px; }
.footer-social-item {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 14.5px; font-weight: 500;
  color: rgba(245,247,255,0.65);
  transition: color 0.2s, gap 0.25s;
}
.footer-social-item:hover { color: var(--white); gap: 16px; }
.footer-social-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.09);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.footer-social-item:hover .footer-social-icon {
  background: rgba(0,166,255,0.14);
  border-color: rgba(0,166,255,0.25);
}

.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.065);
  margin-bottom: 28px;
}
.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
}
.footer-copy {
  font-size: 13px;
  color: var(--text-faint);
  text-align: center;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1100px) {
  .container { padding: 0 32px; }
  .navbar { width: calc(100% - 64px); }
  .hero-grid { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
  .hero-cell-1 { grid-column: 1; grid-row: 1; min-height: 280px; padding: 36px; }
  .hero-cell-2, .hero-cell-3, .hero-cell-4 { grid-column: 1; }
  .hero-cell-2 { grid-row: 2; }
  .hero-cell-3 { grid-row: 3; }
  .hero-cell-4 { grid-row: 4; }
  .hero-logomark-wrap { max-width: min(360px, 58%); }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  section { padding: 64px 0; }
  .navbar { width: calc(100% - 32px); padding: 12px; }
  .navbar-links { display: none; }
  .navbar-hamburger { display: flex; }

  /* Hero — tighter padding, bigger SVG */
  .hero { padding: 80px 0 36px; }
  .hero-cell { padding: 20px; }
  .hero-cell-1 { min-height: 340px; padding: 20px; }
  .hero-logomark-wrap { max-width: min(300px, 72%); }

  /* What I Do — bigger title, no descriptors, compact height */
  .wid-cards { flex-direction: column; height: auto; gap: 10px; }
  .wid-card  { flex-grow: unset; flex-shrink: unset; flex-basis: unset; height: 88px; }
  .wid-card:hover  { flex-grow: unset; box-shadow: none; }
  .wid-card.active { flex-grow: unset; box-shadow: none; }
  .wid-content { padding: 20px 24px; }
  .wid-name { font-size: 24px; }
  .wid-sub  { display: none; }
  .wid-detail { display: none; }
  .wid-title-group,
  .wid-card:hover  .wid-title-group,
  .wid-card.active .wid-title-group { transform: translateY(0); }

  /* Content cards — year + title only, no description / tags / company */
  .card-sublabel { display: none; }
  .card-desc { display: none; }
  .content-card .tags { display: none; }

  /* Grid + Footer */
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
