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

:root {
  --cream:       #FFFFFF;
  --cream-dark:  #F0EEEB;
  --ink:         #1A1A1A;
  --ink-mid:     #4A4A4A;
  --ink-light:   #8A8A8A;
  --yellow:      #C8882E;
  --yellow-lt:   #F5E0BC;
  --red:         #D94F3D;
  --green:       #3D7A5C;
  --violet:      #6B4E8C;
  --white:       #FFFFFF;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --max-w: 1200px;
  --pad:   clamp(1.5rem, 5vw, 4rem);

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; }

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  border: 2px solid var(--ink);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease);
  cursor: pointer;
}
.btn-primary:hover { background: transparent; color: var(--ink); transform: translateY(-2px); }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  border: 2px solid var(--ink);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }

.btn-case {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cream);
  background: var(--ink);
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  transition: background 0.2s, transform 0.15s;
}
.btn-case:hover { background: var(--ink-mid); transform: translateY(-2px); }

/* ── NAV ──────────────────────────────────────────────────── */
#work, #about, #contact, #playground {
  scroll-margin-top: 72px;
}

#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--cream);
  padding: 1rem var(--pad) 0;
}
.nav-rule {
  height: 1px;
  background: #000000;
  margin: 0.6rem 0 0;
}
.section-rule {
  height: 1px;
  background: #000000;
  margin: 20px var(--pad) 0;
  scroll-margin-top: 75px;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.nav-wordmark {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav-wordmark:hover { opacity: 0.7; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  justify-content: center;
}
.nav-links a {
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--ink-mid);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { font-weight: 600; color: var(--ink); }
.nav-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: flex-end;
}
.nav-icons a {
  color: var(--ink-mid);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.nav-icons a:hover { color: var(--ink); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger[aria-expanded="true"] { position: relative; z-index: 100; }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(5rem, 8vw, 8rem) var(--pad) 3rem;
}
.hero-centered {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 4.0625rem);
  font-weight: 400;
  font-style: normal;
  line-height: 1.1;
  color: #1a3347;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero-bio {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--ink-mid);
  max-width: 54ch;
  margin: 0 auto;
  line-height: 1.8;
}

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-blob {
  position: relative;
  width: clamp(280px, 40vw, 480px);
  aspect-ratio: 1;
}
.blob-ring {
  position: absolute;
  inset: 0;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  background: var(--yellow-lt);
  animation: morphBlob 8s ease-in-out infinite;
}
@keyframes morphBlob {
  0%, 100% { border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%; }
  33%       { border-radius: 40% 60% 45% 55% / 60% 40% 60% 40%; }
  66%       { border-radius: 55% 45% 60% 40% / 45% 55% 45% 55%; }
}
.blob-dot {
  position: absolute;
  border-radius: 50%;
}
.blob-dot--1 { width: 18px; height: 18px; background: var(--yellow); top: 8%; right: 12%; animation: floatDot 4s ease-in-out infinite; }
.blob-dot--2 { width: 10px; height: 10px; background: var(--red); bottom: 18%; left: 5%; animation: floatDot 5s ease-in-out infinite 1s; }
.blob-dot--3 { width: 14px; height: 14px; background: var(--green); top: 55%; right: 4%; animation: floatDot 6s ease-in-out infinite 2s; }
@keyframes floatDot {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
.hero-portrait-placeholder {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: var(--cream-dark);
  border: 2px dashed var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-light);
  line-height: 1.5;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: var(--pad);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-light);
}
.scroll-line {
  width: 40px; height: 1px;
  background: var(--ink-light);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleX(1); opacity: 1; }
  50%       { transform: scaleX(0.5); opacity: 0.4; }
}

/* ── SECTIONS ─────────────────────────────────────────────── */
.section {
  padding: clamp(3rem, 5vw, 5rem) var(--pad);
}
.section-header {
  max-width: var(--max-w);
  margin: 0 auto 4rem;
}
.work .section-header {
}
.section-sub {
  font-size: 1rem;
  color: var(--ink-mid);
  max-width: 52ch;
  margin-top: -0.5rem;
}

/* Section divider doodle */
.section-divider {
  max-width: 200px;
  margin: 3rem auto;
  opacity: 0.7;
}

/* ── WORK HEADER ──────────────────────────────────────────── */
.work-header {
  max-width: var(--max-w);
  margin: 0 auto 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.work-heading {
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--ink);
}
.work-filters {
  display: flex;
  gap: 0.5rem;
}
.work-filter {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 1.1rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  background: #EBEBEB;
  color: var(--ink-mid);
  transition: background 0.2s, color 0.2s;
}
.work-filter.active {
  background: var(--ink);
  color: #fff;
}
.work-filter:hover:not(.active) { background: #ddd; }

/* ── WORK / CASE CARDS ────────────────────────────────────── */
.work {
  background: var(--cream);
  position: relative;
}
.case-card-full {
  display: block;
  position: relative;
  margin-bottom: 5rem;
  transition: transform 0.4s var(--ease);
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}
.case-card-full img {
  width: 100%;
  display: block;
}
/* Mobile info section — hidden on desktop */
.case-card-full__info { display: none; }
.case-card-full__btn-mobile { display: none; }

.case-card-full:hover { transform: translateY(-4px); }
.case-card-full__btn {
  position: absolute;
  bottom: calc(2.5rem + 38px);
  left: calc(61% - 10px);
  background: var(--ink);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  pointer-events: none;
}
.case-card-full__btn--left {
  left: 7.83%;
  bottom: calc(2.5rem + 78px);
}
.case-card-full__btn--right {
  bottom: 118px;
}

.case-card {
  max-width: var(--max-w);
  margin: 0 auto 7rem;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 5rem;
  align-items: center;
}
.case-card--right {
  grid-template-columns: 2fr 3fr;
}
.case-card--right .case-card__image { order: 2; }
.case-card--right .case-card__content { order: 1; }

.case-card__image {
  overflow: hidden;
  background: var(--cream-dark);
  transition: transform 0.4s var(--ease);
}
.case-card__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.5s var(--ease);
}
.case-card:hover .case-card__image { transform: translateY(-6px); }
.case-card:hover .case-card__image img { transform: scale(1.03); }

/* EasyMoney cover card */
.case-card__image.em-cover-card {
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, #054057 0%, #032B3D 100%) !important;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  gap: 0;
  overflow: hidden;
  position: relative;
}

/* ── phones col ── */
.em-cc-phones {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.5rem 0 0 1.5rem;
}
.em-cc-phone {
  width: 90px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 0 3px #1C1C1E, 0 0 0 4.5px #2C2C2E, 0 12px 32px rgba(0,0,0,.5);
  overflow: hidden;
  position: absolute;
  bottom: 0;
  flex-shrink: 0;
}
.em-cc-phone--back {
  width: 82px;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  opacity: 0.85;
}
.em-cc-phone--front {
  width: 90px;
  right: 1rem;
  bottom: 0;
  z-index: 2;
}
.em-cc-di {
  height: 8px;
  background: #1C1C1E;
  width: 36px;
  border-radius: 0 0 5px 5px;
  margin: 0 auto;
}
.em-cc-screen { display: flex; flex-direction: column; }

/* Welcome screen */
.em-cc-screen--welcome { background: #032B3D; }
.em-cc-s1-img { flex: 1; overflow: hidden; min-height: 60px; }
.em-cc-s1-img img { width: 100%; object-fit: cover; display: block; }
.em-cc-s1-bar {
  background: linear-gradient(160deg, #054057, #032B3D);
  padding: 6px 7px 8px;
  color: white;
}
.em-cc-s1-hed { font-size: 7px; font-weight: 800; line-height: 1.3; margin-bottom: 5px; }
.em-cc-s1-btn {
  background: #23BE8E; color: #032B3D;
  font-size: 5.5px; font-weight: 700;
  padding: 3.5px 6px; border-radius: 4px;
  text-align: center;
}

/* Dashboard screen */
.em-cc-screen--dash { background: #F6FBFF; }
.em-cc-dash-hero {
  background: linear-gradient(160deg, #054057, #032B3D);
  padding: 10px 8px 8px;
  color: white;
}
.em-cc-dash-label { font-size: 5.5px; opacity: .6; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; margin-bottom: 1px; }
.em-cc-dash-amt { font-size: 16px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 3px; }
.em-cc-dash-stats { font-size: 5.5px; font-weight: 600; display: flex; gap: 5px; }
.em-cc-dash-body { padding: 6px 7px; display: flex; flex-direction: column; gap: 5px; }
.em-cc-dash-bud-row { display: flex; justify-content: space-between; font-size: 6px; font-weight: 600; color: #032B3D; }
.em-cc-dash-bar { height: 3px; background: #E2EBF0; border-radius: 2px; overflow: hidden; }
.em-cc-dash-bar-fill { width: 62%; height: 100%; background: linear-gradient(90deg, #23BE8E, #55ddb0); }
.em-cc-dash-pills { display: flex; gap: 3px; flex-wrap: wrap; }
.em-cc-dash-pill { font-size: 5.5px; font-weight: 600; padding: 2px 4px; border-radius: 100px; display: flex; align-items: center; gap: 2px; }
.em-cc-dash-trust { background: rgba(35,190,142,.12); border-radius: 3px; padding: 3px 5px; display: flex; gap: 3px; align-items: center; }

/* ── text col ── */
.em-cc-text {
  grid-column: 2;
  grid-row: 1;
  padding: 1.5rem 1.25rem 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}
.em-cc-body {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.65;
}
.em-cc-highlight {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
  margin-top: 0.25rem;
}
.em-cc-highlight strong { color: #23BE8E; font-weight: 700; }

/* ── footer ── */
.em-cc-footer {
  grid-column: 1 / -1;
  grid-row: 2;
  background: rgba(255,255,255,0.05);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.em-cc-logo { height: 22px; width: auto; display: block; }
.em-cc-tagline {
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
}

/* Gyanshala placeholder */
.case-card__image--placeholder {
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%);
}
.gyanshala-placeholder {
  text-align: center;
}
.gyanshala-stat {
  display: block;
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 300;
  color: var(--yellow);
  line-height: 1;
}
.gyanshala-sub {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 0.5rem;
}

.case-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 1.25rem;
}
.case-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 1.25rem;
  line-height: 1.1;
}
.case-title-logo {
  height: clamp(2.25rem, 4vw, 3.5rem);
  width: auto;
  display: block;
  margin-bottom: 0;
}
.case-desc {
  font-size: 1.05rem;
  color: var(--ink-mid);
  margin-bottom: 2rem;
  max-width: 38ch;
  line-height: 1.75;
}
.case-outcomes {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 2rem;
}
.case-outcomes li {
  font-size: 0.88rem;
  color: var(--ink-mid);
  padding-left: 1.2rem;
  position: relative;
}
.case-outcomes li::before {
  content: '\00B7';
  position: absolute;
  left: 0;
  color: var(--yellow);
  font-size: 1.2rem;
  line-height: 1.2;
}

/* ── ABOUT ────────────────────────────────────────────────── */
.about {
  background: var(--ink);
  color: var(--cream);
}
.about .section-label { color: var(--yellow); }
.about .section-title { color: var(--cream); }
.about-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: start;
}
.portrait-placeholder {
  aspect-ratio: 3/4;
  border-radius: 0;
  border: 2px dashed rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.6;
  background: rgba(255,255,255,0.04);
}
.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
  display: block;
}
.about-links {
  margin-top: 1.5rem;
}
.about-links a {
  font-size: 0.9rem;
  color: var(--yellow);
  border-bottom: 1px solid rgba(232,197,71,0.3);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.about-links a:hover { border-color: var(--yellow); }

.about-text p {
  font-size: 1rem;
  color: rgba(255,251,240,0.75);
  margin-bottom: 1.25rem;
  max-width: 60ch;
  line-height: 1.85;
}
.about-skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.skill-group h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 1rem;
}
.skill-group li {
  font-size: 0.9rem;
  color: rgba(255,251,240,0.6);
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ── PLAYGROUND ───────────────────────────────────────────── */
.playground {
  background: var(--cream-dark);
}
.playground-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  columns: 3;
  column-gap: 1rem;
}
.pg-item {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  cursor: pointer;
  break-inside: avoid;
  margin-bottom: 1rem;
  background: var(--cream);
}
.pg-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s var(--ease);
}
.pg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,26,0);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  transition: background 0.3s var(--ease);
}
.pg-overlay span {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--cream);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}
.pg-item:hover img { transform: scale(1.06); }
.pg-item:hover .pg-overlay { background: rgba(26,26,26,0.55); }
.pg-item:hover .pg-overlay span { opacity: 1; transform: translateY(0); }

.playground-footer {
  max-width: var(--max-w);
  margin: 3rem auto 0;
  text-align: center;
}

/* ── CONTACT ──────────────────────────────────────────────── */
.contact {
  background: var(--cream);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}
.contact-image img {
  width: 85%;
  display: block;
  border-radius: 12px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .contact { grid-template-columns: 1fr; gap: 2rem; }
  .contact-image { order: -1; }
}
.contact-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: start;
}
.contact-email {
  display: inline-block;
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 600;
  font-style: normal;
  color: var(--ink);
  border-bottom: 2px solid #F0844A;
  padding-bottom: 3px;
  margin-top: 1.5rem;
  transition: color 0.2s, border-color 0.2s;
}
.contact-email:hover { color: var(--red); border-color: var(--red); }
.contact-text p {
  color: var(--ink-mid);
  max-width: 38ch;
  margin-top: 0.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid #C8C4BF;
  padding: 0.75rem 0;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--yellow);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #B0ABA4;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  padding: 2rem var(--pad);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255,251,240,0.4);
}
.footer-links {
  display: flex;
  gap: 2rem;
}
.footer-links a, .footer-top {
  color: rgba(255,251,240,0.4);
  transition: color 0.2s;
}
.footer-links a:hover, .footer-top:hover { color: var(--yellow); }

/* ── LIGHTBOX ─────────────────────────────────────────────── */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,15,15,0.92);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 201;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.lightbox.active,
.lightbox-backdrop.active {
  opacity: 1;
  pointer-events: all;
}
.lightbox-content {
  max-width: min(90vw, 900px);
  max-height: 90vh;
  text-align: center;
}
#lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}
.lightbox-title {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
}
.lightbox-close {
  position: fixed;
  top: 1.5rem; right: 1.5rem;
  background: none; border: none;
  color: white; font-size: 2rem;
  cursor: pointer; opacity: 0.7;
  transition: opacity 0.2s, transform 0.2s;
  line-height: 1;
}
.lightbox-close:hover { opacity: 1; transform: rotate(90deg); }
.lightbox-prev, .lightbox-next {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: white; font-size: 1.3rem;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.2); }

/* ── SCROLL ANIMATIONS ────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
/* Mobile nav open state */
/* Icons inside drawer — hidden by default, shown when drawer open */
.nav-drawer-icons { display: none; }

.nav-links.nav-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  background: var(--cream);
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  z-index: 99;
}
.nav-links.nav-open a {
  font-size: 1.5rem;
  color: var(--ink);
}
.nav-links.nav-open .nav-drawer-icons {
  display: flex;
  margin-top: 0.5rem;
}
.nav-links.nav-open .nav-drawer-icons a {
  font-size: 1.5rem;
  color: var(--ink);
}
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { width: 100%; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { order: -1; }
  .hero-bio { margin: 0 auto 2.5rem; }
  .hero-actions { justify-content: center; }
  .hero-scroll-hint { display: none; }
  .hero { padding-bottom: 1.25rem; }
  .section-rule { margin-top: 0; }

  .case-card, .case-card--right { grid-template-columns: 1fr; direction: ltr; gap: 2rem; }
  .case-card__image img { height: auto; }
  .case-card__image--placeholder { height: 220px; }

  .about-inner { grid-template-columns: 1fr; gap: 3rem; }
  .portrait-placeholder { aspect-ratio: 1; max-width: 280px; margin: 0 auto; }
  .about-skills { grid-template-columns: 1fr 1fr; }

  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; justify-self: end; }
  .nav-icons { display: none; }
  .nav-inner { grid-template-columns: 1fr auto; }

  /* Hide desktop overlay button */
  .case-card-full__btn { display: none; }

  /* Remove section side padding on mobile so cards control their own margins */
  .section.work {
    padding-left: 0;
    padding-right: 0;
  }

  .work-header {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* No card container on mobile — just content */
  .case-card-full {
    overflow: visible;
    background: transparent;
    border-radius: 0;
    width: auto;
    margin-left: 20px;
    margin-right: 20px;
  }

  .case-card-full picture {
    display: block;
    margin-left: -20px;
    margin-right: -20px;
  }

  /* Mockup image: full width, no rounded corners */
  .case-card-full picture img,
  .case-card-full > img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
  }

  /* Text image + button below */
  .case-card-full__info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    margin-top: 30px;
  }

  .case-card-full__info-img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* Large dark filled button, aligned with text */
  .case-card-full__btn-mobile {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.8rem 2rem;
    background: var(--ink);
    color: #fff;
    border: none;
    border-radius: 100px;
    white-space: nowrap;
    margin-top: 30px;
    margin-left: 5px;
  }
}

@media (max-width: 560px) {
  .playground-grid { columns: 2; }
  .about-skills { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
}
