/* ═══════════════════════════════════════════════
   KICKAI.ID — Landing Page Stylesheet
   Light & clean · Minimal · Professional
   ═══════════════════════════════════════════════ */

/* ─── Tokens ─── */
:root {
  --color-bg:         #ffffff;
  --color-bg-alt:     #f5f5f5;
  --color-surface:    #f0f0f0;
  --color-border:     #e5e7eb;
  --color-text:       #111111;
  --color-muted:      #4b5563;
  --color-subtle:     #9ca3af;

  /* Brand blue — pulled from Kickai logo */
  --color-blue:       #0066FF;
  --color-blue-light: #00AAFF;
  --color-blue-dim:   rgba(0, 102, 255, 0.08);
  --color-blue-mid:   #0052cc;

  /* Neutral accent kept for text/footer */
  --color-accent:     #111111;
  --color-accent-mid: #334155;

  --gradient-text:    linear-gradient(135deg, #111111 0%, #0066FF 100%);
  --gradient-blue:    linear-gradient(135deg, #0066FF 0%, #00AAFF 100%);

  --nav-bg:           rgba(255, 255, 255, 0.88);
  --nav-border:       rgba(0, 0, 0, 0.08);

  --font-display:     'Sora', sans-serif;
  --font-body:        'Inter', sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --shadow-card: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
  --shadow-hover: 0 4px 24px rgba(0,102,255,.12), 0 1px 4px rgba(0,0,0,.06);

  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);

  --container-max: 1100px;
  --container-pad: clamp(1.25rem, 5vw, 2.5rem);
}

/* ─── Dark Mode Tokens ─── */
[data-theme="dark"] {
  --color-bg:         #0d0d0d;
  --color-bg-alt:     #161616;
  --color-surface:    #1f1f1f;
  --color-border:     #2a2a2a;
  --color-text:       #f0f0f0;
  --color-muted:      #888888;
  --color-subtle:     #555555;

  --color-blue:       #4d94ff;
  --color-blue-light: #66bbff;
  --color-blue-dim:   rgba(77, 148, 255, 0.10);
  --color-blue-mid:   #3d7fe6;

  --color-accent:     #f0f0f0;
  --color-accent-mid: #cccccc;

  --gradient-text:    linear-gradient(135deg, #f0f0f0 0%, #4d94ff 100%);
  --gradient-blue:    linear-gradient(135deg, #4d94ff 0%, #66bbff 100%);

  --nav-bg:           rgba(13, 13, 13, 0.88);
  --nav-border:       rgba(255, 255, 255, 0.06);

  --shadow-card: 0 1px 3px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.3);
  --shadow-hover: 0 4px 24px rgba(77,148,255,.18), 0 1px 4px rgba(0,0,0,.3);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; }

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

ul { list-style: none; }

/* ─── Utilities ─── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.gradient-text {
  color: var(--color-blue);
}

/* ─── Scroll-reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger siblings */
.projects-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.projects-grid .reveal:nth-child(3) { transition-delay: 0.2s; }

.bento-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.bento-grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.bento-grid .reveal:nth-child(4) { transition-delay: 0.18s; }
.bento-grid .reveal:nth-child(5) { transition-delay: 0.22s; }
.bento-grid .reveal:nth-child(6) { transition-delay: 0.28s; }
.bento-grid .reveal:nth-child(7) { transition-delay: 0.32s; }

.about__content .reveal:nth-child(2) { transition-delay: 0.05s; }
.about__content .reveal:nth-child(3) { transition-delay: 0.10s; }
.about__content .reveal:nth-child(4) { transition-delay: 0.15s; }
.about__content .reveal:nth-child(5) { transition-delay: 0.20s; }
.about__content .reveal:nth-child(6) { transition-delay: 0.25s; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  border: 1.5px solid transparent;
}

.btn--primary {
  background: var(--gradient-blue);
  color: #ffffff;
  border-color: var(--color-blue);
}
.btn--primary:hover {
  background: var(--color-blue-mid);
  border-color: var(--color-blue-mid);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,102,255,.30);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--ghost:hover {
  border-color: var(--color-blue);
  color: var(--color-blue);
  background: var(--color-blue-dim);
  transform: translateY(-1px);
}

.btn--nav {
  background: var(--gradient-blue);
  color: #fff;
  border-color: var(--color-blue);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}
.btn--nav:hover {
  background: var(--color-blue-mid);
  border-color: var(--color-blue-mid);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,102,255,.30);
}

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.nav.scrolled {
  border-color: var(--nav-border);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.nav__logo-img {
  height: 28px;
  width: auto;
  display: block;
}

.logo-text { color: var(--color-text); }

/* Logo: swap to white version in dark mode */
[data-theme="dark"] .nav__logo-img {
  filter: brightness(0) invert(1);
}

/* ─── THEME TOGGLE ─── */
.theme-toggle {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  outline: none;
}

.theme-toggle__track {
  position: relative;
  width: 56px;
  height: 30px;
  border-radius: 100px;
  background: #d1d5db;
  border: 1.5px solid #9ca3af;
  transition: background var(--transition), border-color var(--transition);
  display: block;
}

[data-theme="dark"] .theme-toggle__track {
  background: var(--color-blue-dim);
  border-color: var(--color-blue);
}

.theme-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background var(--transition);
  display: grid;
  place-items: center;
}

[data-theme="dark"] .theme-toggle__thumb {
  transform: translateX(26px);
  background: var(--color-blue);
  box-shadow: 0 1px 8px rgba(77,148,255,.4);
}

.theme-icon {
  width: 13px;
  height: 13px;
  position: absolute;
  transition: opacity 0.2s, transform 0.3s;
}

.theme-icon--sun {
  color: #f59e0b;
  opacity: 1;
  transform: rotate(0deg);
}
.theme-icon--moon {
  color: #ffffff;
  opacity: 0;
  transform: rotate(-30deg);
}

[data-theme="dark"] .theme-icon--sun {
  opacity: 0;
  transform: rotate(30deg);
}
[data-theme="dark"] .theme-icon--moon {
  opacity: 1;
  transform: rotate(0deg);
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 64px;
}

/* ─── INTERACTIVE FLUID AMBIENT CANVAS ─── */
.ambient-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

.parallax-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
  pointer-events: none;
}

.orb--1 {
  top: -5%;
  left: 10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.18) 0%, rgba(0, 170, 255, 0.06) 55%, transparent 75%);
  animation: float-orb-1 20s ease-in-out infinite alternate;
}

.orb--2 {
  top: 30%;
  right: -5%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(0, 170, 255, 0.16) 0%, rgba(0, 102, 255, 0.04) 55%, transparent 75%);
  animation: float-orb-2 24s ease-in-out infinite alternate;
}

.orb--3 {
  bottom: 0%;
  left: 25%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.14) 0%, rgba(0, 102, 255, 0.03) 55%, transparent 75%);
  animation: float-orb-3 28s ease-in-out infinite alternate;
}

@keyframes float-orb-1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(45px, 35px) scale(1.08); }
  100% { transform: translate(-35px, 45px) scale(0.96); }
}

@keyframes float-orb-2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-55px, -45px) scale(1.1); }
  100% { transform: translate(35px, 25px) scale(0.92); }
}

@keyframes float-orb-3 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(65px, -35px) scale(1.06); }
  100% { transform: translate(-45px, -55px) scale(0.97); }
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--color-border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--color-border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.45;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 40%, transparent 100%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding-block: 6rem 5rem;
  max-width: 700px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-blue-dim);
  border: 1px solid rgba(0, 102, 255, 0.2);
  border-radius: 100px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-blue);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-blue);
  /* pulse animation removed */
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero__heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--color-muted);
  max-width: 560px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.hero__scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  color: var(--color-subtle);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--color-subtle));
  animation: scroll-bob 2s ease-in-out infinite;
}

@keyframes scroll-bob {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* ─── STRIP ─── */
.strip {
  background: var(--color-accent);
  padding: 0.9rem 0;
  overflow: hidden;
}

.strip__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  width: max-content;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.75);
}

.strip__inner::after {
  content: 'Product Strategy · Web Apps · AI Integration · Internal Systems · Mobile Apps · Chatbots · Automation · From 0 to Shipped';
  padding-left: 1.5rem;
  border-left: 1px solid rgba(255,255,255,.2);
}

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

.strip__dot { color: rgba(255,255,255,0.35); }

/* ─── SECTIONS ─── */
.section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.section--alt {
  background: var(--color-bg-alt);
}

.section__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 0.75rem;
}

.section__header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section__header p {
  font-size: 1rem;
  color: var(--color-muted);
  max-width: 520px;
  margin-inline: auto;
  line-height: 1.7;
}

/* ─── PROJECTS GRID ─── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.project-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0,102,255,.25);
}

.project-card:hover .project-card__icon {
  background: rgba(0,102,255,.14);
}

.project-card--soon { opacity: 0.75; }

.project-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-card__icon {
  width: 40px;
  height: 40px;
  background: var(--color-blue-dim);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: var(--color-blue);
  transition: background var(--transition);
}

.project-card__icon svg {
  width: 20px;
  height: 20px;
}

.project-card__tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-muted);
  background: var(--color-surface);
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
}

.project-card__tag--soon {
  background: #fef9c3;
  color: #854d0e;
}

.project-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 0.25rem;
}

.project-card__desc {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.65;
  flex: 1;
}

.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-blue);
  margin-top: 0.5rem;
  transition: gap var(--transition), color var(--transition);
}

.project-card__link:hover { gap: 0.75rem; color: var(--color-blue-mid); }

.project-card__link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.project-card__link--muted {
  color: var(--color-subtle);
  cursor: default;
}

.soon-pill {
  font-size: 0.7rem;
  background: #fef9c3;
  color: #854d0e;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  font-weight: 600;
}

.projects-footnote {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.projects-footnote a {
  color: var(--color-blue);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── WORK SECTION BENTO GRID ─── */
.work-section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

/* Split header */
.work-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}

.work-header__left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.work-header__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--color-text);
}

.work-header__right {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.65;
  text-align: right;
  max-width: 280px;
  flex-shrink: 0;
}

/* ─── BENTO GRID LAYOUT ─── */
/* 3-column grid, 4 rows for 7 cards */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 0.875rem;
}

/* Card size classes — grid placement */
/* XL: col 1-2, row 1-2 */
.bento-card--xl {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}
/* SM: col 3, each takes 1 row */
.bento-card--sm {
  grid-column: 3;
}
/* TALL: col 1, spans 2 rows */
.bento-card--tall {
  grid-column: 1;
  grid-row: 3 / 5;
}
/* MD: col 3, row 3+ */
.bento-card--md:nth-child(7) { grid-column: 3; }

/* WIDE: spans 2 of 3 columns */
.bento-card--wide:nth-child(5) { grid-column: 2 / 4; }
.bento-card--wide:nth-child(6) { grid-column: 1 / 3; }

/* Combined Wide + Tall card (Card 5) */
.bento-card--wide.bento-card--tall:nth-child(5) {
  grid-column: 2 / 4;
  grid-row: 3 / 5;
}

/* ─── BASE CARD ─── */
.bento-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 320ms cubic-bezier(0.16, 1, 0.3, 1), border-color 320ms cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  will-change: transform;
  /* Fix WebKit rounded corner flickering during 3D transforms */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: flat;
}

.bento-card:not(.bento-card--muted):hover {
  transform: translateY(-6px) scale(1.008);
  box-shadow: 0 16px 36px rgba(0, 102, 255, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 102, 255, 0.35);
}

.bento-card--muted {
  opacity: 0.78;
}

/* ─── IMAGE WRAPPERS ─── */
/* Portrait images displayed in a centered crop area */
.bento-card__image-wrap {
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-surface);
  position: relative;
}

/* XL card — tall image area */
.bento-card__image-wrap--xl  { height: 300px; }
/* TALL card — stack of two small squares height */
.bento-card__image-wrap--tall { height: 350px; }
/* SM card — shorter */
.bento-card__image-wrap--sm  { height: 150px; }
/* MD card — medium */
.bento-card__image-wrap--md  { height: 170px; }
/* WIDE card — moderate height, wide crop */
.bento-card__image-wrap--wide { height: 180px; }

.bento-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Portrait images — show the top portion of the phone screen */
.bento-card__image--portrait {
  object-position: top center;
}

.bento-card:not(.bento-card--muted):hover .bento-card__image {
  transform: scale(1.04);
}

/* Gradient fade from image into card body */
.bento-card__image-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to bottom, transparent, var(--color-bg));
  pointer-events: none;
}

/* ─── CARD BODY ─── */
.bento-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
  position: relative;
}

.bento-card__body--sm {
  padding: 0.85rem 1rem 1rem;
  gap: 0.45rem;
}

/* ─── PILL TAGS ─── */
.bento-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pill {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  background: var(--color-blue-dim);
  border: 1px solid rgba(0, 102, 255, 0.22);
  color: #0055d4;
  white-space: nowrap;
  transition: all var(--transition);
}

[data-theme="dark"] .pill {
  background: rgba(77, 148, 255, 0.12);
  border-color: rgba(77, 148, 255, 0.32);
  color: #66b2ff;
}

.pill--soon {
  background: rgba(217, 119, 6, 0.08);
  border: 1px dashed rgba(217, 119, 6, 0.4);
  color: #b45309;
}

[data-theme="dark"] .pill--soon {
  background: rgba(245, 158, 113, 0.14);
  border: 1px dashed rgba(245, 158, 113, 0.45);
  color: #f59e71;
}

/* ─── CARD TITLE ─── */
.bento-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-text);
}

.bento-card--xl .bento-card__title {
  font-size: 1.35rem;
}

/* ─── PROBLEM FRAMING ─── */
.bento-card__problem {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--color-muted);
  line-height: 1.55;
  border-left: 2px solid var(--color-blue);
  padding-left: 0.65rem;
}

/* ─── DESCRIPTION ─── */
.bento-card__desc {
  font-size: 0.82rem;
  color: var(--color-muted);
  line-height: 1.6;
  flex: 1;
}

/* ─── UNIFORM ACTION BUTTON ─── */
/* Single circular blue arrow — used on ALL cards */
.card-action {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-blue);
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  align-self: flex-end;
  margin-top: auto;
  text-decoration: none;
  transition:
    background var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.card-action svg {
  width: 13px;
  height: 13px;
  stroke: #ffffff;
  flex-shrink: 0;
}

.card-action:hover {
  background: var(--color-blue-mid);
  transform: translate(2px, -2px);
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.35);
}

/* Muted / coming-soon state */
.card-action--muted {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  cursor: default;
}

.card-action--muted svg {
  stroke: var(--color-subtle);
}

.card-action--muted:hover {
  background: var(--color-surface);
  transform: none;
  box-shadow: none;
}

/* ─── WIP STRIP ─── */
.wip-strip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding: 0.75rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
}

.wip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-blue);
  flex-shrink: 0;
  animation: pulse-dot 2.4s ease-in-out infinite;
}

.wip-text {
  color: var(--color-muted);
  flex: 1;
}

.wip-link {
  color: var(--color-blue);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition);
}

.wip-link:hover {
  color: var(--color-blue-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── BENTO RESPONSIVE ─── */

/* Tablet: 2-column */
@media (max-width: 860px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  /* XL spans both columns, row resets to auto */
  .bento-card--xl {
    grid-column: 1 / 3;
    grid-row: auto;
  }

  /* SM cards stack naturally in 2-col */
  .bento-card--sm { grid-column: auto; }

  /* TALL card grid placement on tablet */
  .bento-card--tall {
    grid-column: 1;
    grid-row: span 2;
  }

  /* Combined Wide + Tall card (Field Tracker) spans full width on tablet */
  .bento-card--wide.bento-card--tall:nth-child(5) {
    grid-column: 1 / 3;
    grid-row: auto;
  }

  /* MD cards flow naturally */
  .bento-card--md:nth-child(7) { grid-column: auto; }

  /* WIDE cards span both columns on tablet */
  .bento-card--wide:nth-child(6) { grid-column: 1 / 3; }
}

/* Mobile: single column */
@media (max-width: 600px) {
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  /* Reset ALL cards to single column — match nth-child selectors exactly to override base styles */
  .bento-card--xl,
  .bento-card--sm,
  .bento-card--tall,
  .bento-card--md:nth-child(7),
  .bento-card--wide:nth-child(6),
  .bento-card--wide.bento-card--tall:nth-child(5) {
    grid-column: 1;
    grid-row: auto;
  }

  /* Smaller image heights on mobile (Tall cards look tall and distinctive) */
  .bento-card__image-wrap--xl   { height: 220px; }
  .bento-card__image-wrap--tall { height: 320px; }
  .bento-card__image-wrap--sm   { height: 120px; }
  .bento-card__image-wrap--md   { height: 140px; }
  .bento-card__image-wrap--wide { height: 140px; }

  /* Header stacks vertically */
  .work-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 1.75rem;
  }

  .work-header__right {
    text-align: left;
    max-width: 100%;
    font-size: 0.875rem;
  }

  /* WIP strip wraps on small screens */
  .wip-strip {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}

/* ─── FOUNDER EXPERIENCE ─── */
.founder-section {
  background: var(--color-bg);
}

.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: center;
}

.founder-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.founder-header__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--color-text);
}

/* Vertical Timeline (Static with Dots and Line) */
.founder-timeline {
  position: relative;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.founder-timeline::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--color-border);
}

.timeline-item {
  position: relative;
  outline: none;
}

.timeline-item__dot {
  position: absolute;
  left: -1.5rem;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 2px solid var(--color-blue);
  transform: translateX(-3px);
  box-shadow: 0 0 0 4px var(--color-blue-dim);
}

.timeline-item__year {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-blue);
  margin-bottom: 0.25rem;
}

.timeline-item__title {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.timeline-item__desc {
  display: block;
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* Slideshow Bento Card (Photo Only) */
.founder-bento-card {
  height: 420px;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.founder-slideshow-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.founder-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  width: 100%;
  height: 100%;
}

.founder-slide.active {
  opacity: 1;
  visibility: visible;
}

/* Ambient Blurred Backdrop Pattern */
.slide-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

.slide-backdrop {
  position: absolute;
  inset: -15px;
  width: calc(100% + 30px);
  height: calc(100% + 30px);
  object-fit: cover;
  filter: blur(15px) brightness(0.45);
  opacity: 0.8;
  pointer-events: none;
}

.slide-foreground {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Caption Overlay inside Slide */
.slide-caption-overlay {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 5;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
}

/* Manual Navigation Overlays */
.slideshow-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;
  transition: background var(--transition), transform var(--transition);
}

.slideshow-nav-btn:hover {
  background: rgba(0, 0, 0, 0.75);
}

.slideshow-nav-btn--prev {
  left: 1rem;
}

.slideshow-nav-btn--next {
  right: 1rem;
}

.slideshow-nav-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

/* Indicators */
.slideshow-indicators {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  display: flex;
  gap: 0.35rem;
  background: rgba(0, 0, 0, 0.45);
  padding: 0.3rem 0.5rem;
  border-radius: 100px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.indicator-dot.active {
  background: var(--color-blue);
  transform: scale(1.2);
}

/* Responsive adjustment */
@media (max-width: 860px) {
  .founder-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .founder-bento-card {
    height: 380px;
  }
}

@media (max-width: 480px) {
  .founder-bento-card {
    height: 300px;
  }
}


/* ─── ABOUT ─── */
.about__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
  align-items: start;
}

.about__avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  position: sticky;
  top: 90px;
}

.avatar-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--gradient-blue);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 4px rgba(0,102,255,.12), 0 4px 20px rgba(0,102,255,.20);
  overflow: hidden;
  padding: 3px;
}

.avatar-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.avatar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 0.3rem 0.7rem;
  white-space: nowrap;
}

.avatar-badge svg {
  width: 12px;
  height: 12px;
  fill: var(--color-blue);
}

.about__lead {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about__body {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.about__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.tag {
  font-size: 0.78rem;
  font-weight: 500;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-accent-mid);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), border-color var(--transition);
}

.tag:hover {
  background: #e8eaf0;
  border-color: #c5cad6;
}

.about__stat-row {
  display: flex;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.stat__number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

.stat__label {
  font-size: 0.78rem;
  color: var(--color-muted);
}

/* ─── CONTACT ─── */
.contact__inner {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

.contact__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  text-align: left;
}

.contact-link:hover {
  border-color: var(--color-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.contact-link__icon {
  width: 44px;
  height: 44px;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background var(--transition);
}

.contact-link:hover .contact-link__icon { background: var(--color-blue-dim); }

.contact-link__icon svg {
  width: 20px;
  height: 20px;
  color: var(--color-blue);
}

.contact-link__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.15rem;
}

.contact-link__value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
}

.contact-link__arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-left: auto;
  color: var(--color-subtle);
  transition: color var(--transition), transform var(--transition);
}

.contact-link:hover .contact-link__arrow {
  color: var(--color-blue);
  transform: translate(2px, -2px);
}

/* ─── FOOTER ─── */
.footer {
  background: #111111;
  padding-block: 2.5rem;
}

[data-theme="dark"] .footer {
  background: #000000;
  border-top: 1px solid #1f1f1f;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: #fff;
  font-size: 0.95rem;
}

.footer__logo-icon {
  height: 24px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.footer__tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.02em;
}

.footer__copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.25rem;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .nav__links li:not(:last-child) { display: none; }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about__avatar {
    flex-direction: row;
    position: static;
    align-items: center;
    gap: 1rem;
  }

  .avatar-ring { width: 72px; height: 72px; }
  .avatar-initials { width: 66px; height: 66px; font-size: 1.5rem; }

  .about__stat-row { gap: 1.25rem; }
  .hero__inner { padding-block: 4rem 3rem; }
}

@media (max-width: 480px) {
  .projects-grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { justify-content: center; }
  .about__stat-row { flex-direction: column; gap: 1rem; }
}

/* ─── Accessibility ─── */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 3px;
}

@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; }
}

/* ─── ADDED PORTFOLIO & LIGHTBOX STYLES ─── */

@media (min-width: 768px) {
  .project-card--hero {
    grid-column: span 2;
  }
}

.project-card__image-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  cursor: pointer;
}

.project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition);
}

.project-card__image-container:hover .project-card__img {
  transform: scale(1.03);
}

.project-card__image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none; /* Let parent click pass through */
}

.project-card__image-container:hover .project-card__image-overlay,
.bento-card__image-wrap:hover .project-card__image-overlay {
  opacity: 1;
}

.zoom-icon {
  width: 24px;
  height: 24px;
  stroke: #fff;
}

.project-card__image-overlay span {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.project-card__content {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-grow: 1;
}

.project-card__top {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
  margin-top: 0.25rem;
}

.project-card__meta {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-blue);
}

.project-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.project-card__footer {
  margin-top: 1rem;
}

.project-card__link-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 500;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  text-decoration: none;
}

.project-card__link-block:not(.project-card__link-block--non-interactive):hover {
  background: var(--color-blue-dim);
  border-color: rgba(0, 102, 255, 0.25);
  color: var(--color-blue);
}

.project-card__link-block svg {
  width: 14px;
  height: 14px;
  stroke-width: 2px;
  transition: transform var(--transition);
}

.project-card__link-block:not(.project-card__link-block--non-interactive):hover svg {
  transform: translate(2px, -2px);
}

.project-card__link-block--non-interactive {
  color: var(--color-muted);
  background: var(--color-surface);
  border-style: dashed;
  cursor: default;
}

.project-card__link-block--non-interactive svg {
  stroke-width: 1.5px;
}

/* Unified Concept Pill Theme */
.pill--concept {
  background: rgba(217, 119, 6, 0.08) !important;
  border: 1px dashed rgba(217, 119, 6, 0.45) !important;
  color: #b45309 !important;
}

[data-theme="dark"] .pill--concept {
  background: rgba(245, 158, 113, 0.14) !important;
  border: 1px dashed rgba(245, 158, 113, 0.5) !important;
  color: #f59e71 !important;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 2020;
  opacity: 0.6;
  transition: opacity var(--transition);
}

.lightbox__close:hover {
  opacity: 1;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  padding: 0.85rem;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2020;
  transition: background var(--transition), transform var(--transition);
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-50%) scale(1.05);
}

.lightbox__nav:active {
  transform: translateY(-50%) scale(0.95);
}

.lightbox__nav--prev {
  left: 2rem;
}

.lightbox__nav--next {
  right: 2rem;
}

.lightbox__nav svg {
  width: 22px;
  height: 22px;
}

.lightbox__content {
  max-width: 85vw;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.lightbox__img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox__caption {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.01em;
}

.lightbox__counter {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .lightbox__nav {
    padding: 0.6rem;
  }
  .lightbox__nav--prev {
    left: 0.75rem;
  }
  .lightbox__nav--next {
    right: 0.75rem;
  }
  .lightbox__close {
    top: 1rem;
    right: 1.25rem;
  }
}

