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

/* ── DESIGN TOKENS ── */
:root {
  --pink-light:  #fdf0f3;
  --pink-mid:    #f7cdd8;
  --pink-soft:   #f2a8bc;
  --rose:        #c0435e;
  --deep:        #1a1118;
  --muted:       #8a7680;
  --white:       #ffffff;
  --green:       #2f8c5e;
  --green-light: #e8f5ee;
  --footer-bg:   #c4b0b8;

  --page-bg:   #ffffff;
  --ink-900:   #393939;
  --ink-700:   #565656;
  --ink-600:   #5f5f5f;
  --black:     #000000;
  --lilac-100: #ffdcf6;
  --lilac-300: #ccb7c7;
  --line-soft: rgba(255, 255, 255, 0.58);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Zilla Slab', serif;
  background: var(--white);
  color: var(--deep);
  overflow-x: hidden;
}

a   { color: inherit; }
img { max-width: 100%; }

.page {
  margin: 0 auto;
  max-width: 1440px;
  min-height: 100vh;
}

/* ══════════════════════════════
   NAV (sticky)
══════════════════════════════ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--pink-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 56px;
  border-bottom: 1px solid var(--pink-mid);
  animation: fadeDown 0.6s ease both;
}

.nav-logo {
  font-family: 'Zilla Slab', serif;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--deep);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.nav-logo,
.nav-logo:hover,
.nav-logo:visited,
.nav-logo:focus { text-decoration: none; }

.nav-logo .spark { color: var(--rose); font-size: 1rem; }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: 'Zilla Slab', serif;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--deep);
  text-decoration: none;
  letter-spacing: 0.03em;
  position: relative;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--rose);
  transition: width 0.25s ease;
}

.nav-links a:hover { color: var(--rose); }
.nav-links a:hover::after { width: 100%; }

/* ══════════════════════════════
   TOPBAR (file2 page-level bar)
══════════════════════════════ */
.topbar {
  align-items: flex-end;
  display: flex;
  margin-left: calc(50% - 50vw);
  padding: 48px 32px;
  width: 100vw;
  animation: rise 520ms ease both;
}

.mobile-brand-star { display: none; }

.mobile-home-link {
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
}

.brand {
  color: var(--black);
  font-family: 'Zilla Slab', serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 33px;
  margin-left: auto;
}

.nav a {
  color: var(--black);
  font-family: 'Zilla Slab', serif;
  font-size: 16px;
  line-height: 1;
  padding: 10px;
  text-decoration: none;
}

/* ══════════════════════════════
   SECTION ANIMATE
══════════════════════════════ */
.section-animate { animation: rise 650ms ease both; }

/* ══════════════════════════════
   HOME HERO
══════════════════════════════ */
.hero {
  padding: 180px 56px 180px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-text h1 {
  font-family: 'Zilla Slab', serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.22;
  font-weight: 400;
  color: var(--deep);
}

.hero-text h1 .bold   { font-weight: 700; }
.hero-text h1 .italic { font-style: italic; }

.hero-text h1 .spark-inline {
  display: inline-block;
  color: var(--pink-soft);
  font-size: 0.7em;
  vertical-align: middle;
  margin: 0 2px;
  animation: twinkle 2.4s ease-in-out infinite;
}

.hero-img {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--pink-mid);
  box-shadow: 0 8px 32px rgba(192, 67, 94, 0.12);
  flex-shrink: 0;
}

/* ── Home hero (file2 variant) ── */
.eyebrow {
  color: var(--ink-700);
  font-family: 'Zilla Slab', serif;
  font-size: 16px;
  margin: 0 0 32px;
}

.accent {
  color: var(--lilac-300);
  font-family: 'Zilla Slab', serif;
  font-weight: 400;
}

.sparkle {
  display: inline-block;
  height: 32px;
  margin-left: 10px;
  vertical-align: middle;
  width: 36px;
}

.sparkle.small { height: 45px; margin-left: 0; width: 50px; }

.home-hero { margin: 253px auto 402px; text-align: center; }

.home-hero h1 {
  color: var(--ink-900);
  font-family: 'Zilla Slab', serif;
  font-size: 64px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 auto;
  max-width: 852px;
}

/* ══════════════════════════════
   SHARED — SECTION TAG & DIVIDER
══════════════════════════════ */
.section-tag {
  display: inline-block;
  background: var(--pink-light);
  border: 1px solid var(--pink-mid);
  color: var(--muted);
  font-family: 'Zilla Slab', serif;
  font-size: 0.72rem;
  padding: 5px 14px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.divider {
  width: calc(100% - 112px);
  margin: 0 56px;
  height: 1px;
  background: var(--pink-mid);
}

/* ══════════════════════════════
   HOME — WORKS HEADING
══════════════════════════════ */
.home-works { margin-bottom: 100px; }

.home-works h2 {
  font-family: 'Zilla Slab', serif;
  font-size: 32px;
  font-weight: 400;
  margin: 0;
  padding: 10px 64px;
}

/* ══════════════════════════════
   PROJECT CARDS
══════════════════════════════ */
.projects {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 56px 80px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 61px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.project-card.visible { opacity: 1; transform: translateY(0); }

.project-meta {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: auto 1fr auto;
  padding: 0 64px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.badge {
  background: var(--lilac-100);
  color: var(--black);
  display: inline-block;
  font-family: 'Zilla Slab', serif;
  font-size: 32px;
  line-height: 1.15;
  margin: 0;
  padding: 16px 32px;
}

.project-title-wrap {
  align-items: center;
  display: inline-flex;
  gap: 16px;
  justify-self: center;
  text-decoration: none;
}

.project-title-wrap h3 {
  color: var(--black);
  font-family: 'Zilla Slab', serif;
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  margin: 0;
}

.project-title {
  font-family: 'Zilla Slab', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--deep);
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: center;
  text-align: center;
}

.project-title .star { color: var(--pink-soft); font-size: 0.65em; }

.project-tagline {
  font-size: 0.82rem;
  color: var(--muted);
  margin-left: auto;
  text-align: right;
  line-height: 1.4;
  max-width: 180px;
}

.project-kicker {
  color: var(--black);
  font-family: 'Zilla Slab', serif;
  font-size: 16px;
  justify-self: end;
  line-height: 1.18;
  margin: 0;
  max-width: 149px;
  text-align: left;
}

.project-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  text-decoration: none;
  border-radius: 16px;
  overflow: hidden;
}

.project-images .img-wrap {
  overflow: hidden;
  background: #f5f0f2;
  aspect-ratio: 4/3;
}

.project-images .img-wrap img,
.project-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.project-images img { height: 400px; }

.project-images .img-wrap:hover img { transform: scale(1.04); }

.case-study {
  align-self: flex-end;
  color: var(--ink-900);
  font-family: 'Zilla Slab', serif;
  font-size: 24px;
  line-height: 1;
  margin-right: 64px;
  text-decoration: none;
}

/* ══════════════════════════════
   SELFDOSE BRAND MOCKUP
══════════════════════════════ */
.selfdose-brand {
  background: linear-gradient(145deg, #e8f4f8 0%, #d0eae8 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px;
  aspect-ratio: 4/3;
}

.selfdose-brand .brand-icon { width: 72px; height: 72px; }

.selfdose-brand .brand-name {
  font-family: 'Zilla Slab', serif;
  font-size: 2rem;
  color: var(--rose);
  font-style: italic;
}

.selfdose-mockup {
  background: #1a0f14;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  aspect-ratio: 4/3;
}

.phone-frame {
  background: #8B1C36;
  border-radius: 28px;
  width: 120px;
  height: 210px;
  padding: 16px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}

.phone-status { display: flex; justify-content: space-between; align-items: center; }

.phone-notch {
  width: 28px;
  height: 6px;
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
  margin: 0 auto;
}

.phone-screen-content {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 8px;
}

.phone-row {
  height: 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
  margin-bottom: 5px;
}

.phone-row.short  { width: 60%; }
.phone-row.accent { background: rgba(255,255,255,0.5); }

/* ══════════════════════════════
   CAREMATCH BRAND MOCKUP
══════════════════════════════ */
.carematch-brand {
  background: var(--green-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px;
  aspect-ratio: 4/3;
}

.carematch-brand .brand-name {
  font-family: 'Zilla Slab', serif;
  font-size: 1.8rem;
  color: var(--green);
  font-style: italic;
}

.carematch-brand .brand-sub {
  font-size: 0.78rem;
  color: var(--green);
  opacity: 0.7;
  letter-spacing: 0.04em;
}

.carematch-screens {
  background: #f0eeec;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  aspect-ratio: 4/3;
}

.mini-phone {
  background: white;
  border-radius: 14px;
  width: 60px;
  height: 110px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.mini-phone + .mini-phone { margin-left: -10px; }

.mini-row { height: 4px; background: #e2e2e2; border-radius: 2px; }
.mini-row.green { background: #2f8c5e; }
.mini-row.short { width: 70%; }

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
footer {
  background: var(--footer-bg);
  color: white;
  padding: 56px 56px 40px;
}

footer h2 {
  font-family: 'Zilla Slab', serif;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

.footer-contacts { display: flex; gap: 64px; margin-bottom: 48px; flex-wrap: wrap; }

.footer-contact-group label {
  display: block;
  font-size: 0.75rem;
  opacity: 0.7;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  margin-bottom: 4px;
}

.footer-contact-group a {
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  transition: border-color 0.2s;
}

.footer-contact-group a:hover { border-color: white; }

.footer-copy {
  font-size: 0.75rem;
  opacity: 0.55;
  text-align: right;
  letter-spacing: 0.03em;
}

/* ── Site footer (file2 variant) ── */
.site-footer {
  background: var(--lilac-300);
  color: var(--white);
  margin-left: calc(50% - 50vw);
  margin-top: 100px;
  min-height: 366px;
  padding: 0 0 128px;
  width: 100vw;
}

.footer-rule { background: var(--line-soft); height: 1px; width: 100%; }

.footer-inner { padding: 64px 32px 0; }

.site-footer h4 {
  font-family: 'Zilla Slab', serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 29px;
}

.footer-row { align-items: flex-end; display: flex; justify-content: space-between; }

.footer-links { display: flex; gap: 40px; }

.contact { min-width: 215px; }

.contact p { font-family: 'Zilla Slab', serif; font-size: 16px; margin: 0 0 6px; }

.contact a {
  color: var(--white);
  font-family: 'Zilla Slab', serif;
  font-size: 20px;
  text-decoration: none;
}

.copyright { font-family: 'Zilla Slab', serif; font-size: 15px; margin: 0; white-space: nowrap; }

/* ══════════════════════════════
   GALLERY PAGE
══════════════════════════════ */
.gallery-page main { padding-bottom: 100px; }

.gallery-hero { margin: 40px 0 88px; text-align: center; }

.gallery-hero h1 {
  color: var(--black);
  font-family: 'Zilla Slab', serif;
  font-size: 64px;
  font-weight: 500;
  line-height: 1;
  margin: 0;
}

.gallery-header {
  text-align: center;
  padding: 80px 56px 56px;
  animation: fadeUp 0.8s 0.2s ease both;
}

.gallery-header h1 {
  font-family: 'Zilla Slab', serif;
  font-size: clamp(2.8rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--deep);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.gallery-header h1 .spark-inline {
  display: inline-block;
  color: var(--pink-soft);
  font-size: 0.55em;
  animation: twinkle 2.4s ease-in-out infinite;
}

.gallery-header h1 .spark-inline.small {
  font-size: 0.35em;
  margin-left: -8px;
  animation-delay: 0.4s;
}

.gallery-grid-wrap { padding: 0 21px; }

/* Standard gallery grid (file2 scoped, now global) */
.gallery-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 56px 120px;
}

/* Full-bleed max-width gallery grid (file1) */
.gallery-grid-full {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 56px 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-grid img {
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  width: 100%;
}

.gallery-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1/1;
  background: var(--pink-light);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.gallery-card.visible { opacity: 1; transform: translateY(0); }

.gallery-card:nth-child(1) { transition-delay: 0s; }
.gallery-card:nth-child(2) { transition-delay: 0.08s; }
.gallery-card:nth-child(3) { transition-delay: 0.16s; }
.gallery-card:nth-child(4) { transition-delay: 0.24s; }
.gallery-card:nth-child(5) { transition-delay: 0.32s; }
.gallery-card:nth-child(6) { transition-delay: 0.40s; }

.gallery-card:hover { box-shadow: 0 12px 40px rgba(26,17,24,0.14); }

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-card:hover img { transform: scale(1.05); }

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,17,24,0.72) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.gallery-card:hover .card-overlay { opacity: 1; }

.card-overlay .card-title {
  font-family: 'Zilla Slab', serif;
  font-size: 1.1rem;
  color: white;
  font-weight: 400;
  margin-bottom: 4px;
  transform: translateY(8px);
  transition: transform 0.3s ease;
}

.gallery-card:hover .card-overlay .card-title { transform: translateY(0); }

.card-overlay .card-tag {
  font-family: 'Zilla Slab', serif;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.06em;
  transform: translateY(8px);
  transition: transform 0.3s ease 0.04s;
}

.gallery-card:hover .card-overlay .card-tag { transform: translateY(0); }

.card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Zilla Slab', serif;
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  background: var(--pink-light);
  text-align: center;
  padding: 16px;
}

/* ══════════════════════════════
   CASE STUDY — CAREMATCH PAGE
══════════════════════════════ */
.carematch-page { max-width: 1440px; }

.case-main { margin: 46px auto 140px; max-width: 720px; padding: 0 24px; }

.case-intro { align-items: end; display: flex; gap: 24px; justify-content: space-between; }

.case-intro h1 {
  color: var(--ink-900);
  font-family: 'Zilla Slab', serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  margin: 0;
}

.case-intro .subtitle {
  color: var(--ink-900);
  font-family: 'Zilla Slab', serif;
  font-size: 24px;
  margin: 6px 0 0;
}

.case-intro .badge { color: var(--white); font-size: 20px; font-weight: 500; padding: 8px 16px; }

.case-hero-image { margin-top: 100px; }
.case-hero-image img { display: block; width: 100%; }

.case-block,
.case-feature-stack { margin-top: 64px; }

.mono-label { color: var(--ink-900); font-family: 'Zilla Slab', serif; font-size: 26px; margin: 0 0 32px; }

.case-block h2 {
  color: var(--ink-900);
  font-family: 'Zilla Slab', serif;
  font-size: 38px;
  font-weight: 500;
  line-height: 1.28;
  margin: 0 0 24px;
}

.case-block h3,
.case-feature h3 {
  color: var(--ink-900);
  font-family: 'Zilla Slab', serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 18px;
}

.case-block p,
.case-block li,
.case-feature p {
  color: var(--ink-600);
  font-family: 'Zilla Slab', serif;
  font-size: 18px;
  line-height: 1.72;
  margin-top: 0;
}

.case-block ul,
.case-block ol { margin: 0 0 20px; padding-left: 24px; }

.content-image { background: #fff; display: block; margin-top: 30px; width: 100%; }

.case-feature-stack { display: flex; flex-direction: column; gap: 88px; }

.case-feature { align-items: center; display: flex; flex-direction: column; gap: 40px; }

.case-feature-copy { max-width: 640px; text-align: center; }

.content-image.tall {
  aspect-ratio: 311 / 588;
  margin-top: 0;
  object-fit: cover;
  width: min(311px, 100%);
}

.crop-top      { object-position: center top; }
.crop-mid      { object-position: center 24%; }
.crop-lower    { object-position: center 48%; }
.crop-bottom   { object-position: center 72%; }
.crop-settings { object-position: center bottom; }

.double-tall-images {
  display: grid;
  gap: 24px;
  grid-template-columns: 252px 274px;
  justify-content: center;
  margin-top: 30px;
}

.double-tall-images img { display: block; height: 547px; object-fit: cover; width: 100%; }

/* ══════════════════════════════
   CASE STUDY — HERO (shared)
══════════════════════════════ */
.cs-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 56px 60px;
  animation: fadeUp 0.8s 0.2s ease both;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Zilla Slab', serif;
  font-size: 0.72rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
  transition: color 0.2s;
}

.back-link:hover { color: var(--rose); }

.cs-hero h1 {
  font-family: 'Zilla Slab', serif;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.15;
  font-weight: 700;
  color: var(--deep);
  max-width: 700px;
  margin-bottom: 32px;
}

.cs-meta-row { display: flex; gap: 48px; flex-wrap: wrap; margin-bottom: 32px; }

.cs-meta-item label {
  display: block;
  font-family: 'Zilla Slab', serif;
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.cs-meta-item span {
  font-family: 'Zilla Slab', serif;
  font-size: 0.9rem;
  color: var(--deep);
  font-weight: 500;
}

.cs-hero-desc {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  color: var(--muted);
  line-height: 1.75;
}

/* ══════════════════════════════
   CASE STUDY — HERO IMAGE
══════════════════════════════ */
.cs-hero-img { max-width: 1100px; margin: 0 auto 80px; padding: 0 56px; }

.cs-hero-img .img-wrap {
  aspect-ratio: 16/7;
  border-radius: 16px;
  overflow: hidden;
  background: var(--green-light);
  border: 1px solid #c5e3d4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-hero-img .img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

.img-placeholder {
  font-family: 'Zilla Slab', serif;
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-align: center;
  padding: 16px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pink-light), #f0e4e8);
}

/* ══════════════════════════════
   CASE STUDY — SECTIONS
══════════════════════════════ */
.cs-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 56px 72px;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.cs-section.visible { opacity: 1; transform: translateY(0); }

.cs-section-label {
  font-family: 'Zilla Slab', serif;
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
  font-weight: 600;
  color: var(--deep);
  margin-bottom: 20px;
}

.cs-body,
.cs-section p {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  line-height: 1.8;
  color: #4a3f45;
}

.cs-subheading {
  font-family: 'Zilla Slab', serif;
  font-size: 1.6rem;
  font-weight: 600;
  margin: 24px 0 6px;
}

.cs-divider { width: calc(100% - 112px); margin: 0 56px 72px; height: 1px; background: var(--pink-mid); }

/* ══════════════════════════════
   CASE STUDY — PROBLEM LIST
══════════════════════════════ */
.problem-list { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }

.problem-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  line-height: 1.65;
  color: #4a3f45;
}

/* file1 badge style */
.problem-list li .num {
  font-family: 'Zilla Slab', serif;
  font-size: 0.7rem;
  color: var(--rose);
  background: var(--pink-light);
  border: 1px solid var(--pink-mid);
  border-radius: 4px;
  padding: 2px 7px;
  flex-shrink: 0;
  margin-top: 3px;
}

/* file2 dot style */
.problem-list li .bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose);
  flex-shrink: 0;
  margin-top: 9px;
}

/* ══════════════════════════════
   CASE STUDY — STATS
══════════════════════════════ */
.cs-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 28px 0; }

.stat-card { background: var(--pink-light); border: 1px solid var(--pink-mid); border-radius: 12px; padding: 24px 20px; }

.stat-card .stat-num {
  font-family: 'Zilla Slab', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--rose);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-card .stat-label { font-size: 0.8rem; color: var(--muted); line-height: 1.4; }

/* ══════════════════════════════
   CASE STUDY — JOURNEY TABLE
══════════════════════════════ */
.journey-table { width: 100%; border-collapse: collapse; margin-top: 28px; font-size: 0.8rem; }

.journey-table th {
  background: var(--deep);
  color: white;
  font-family: 'Zilla Slab', serif;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: left;
  font-weight: 400;
}

.journey-table th:first-child { background: var(--rose); width: 110px; }

.journey-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--pink-mid);
  vertical-align: top;
  line-height: 1.5;
  color: #4a3f45;
}

.journey-table td:first-child {
  font-family: 'Zilla Slab', serif;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 700;
  background: var(--pink-light);
}

.journey-table tr:nth-child(even) td:not(:first-child) { background: #fdf7f9; }

.emotion-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.dot-pos { background: var(--green); }
.dot-neg { background: var(--rose); }
.dot-neu { background: var(--muted); }

/* ══════════════════════════════
   CASE STUDY — IMAGE GRID
══════════════════════════════ */
.cs-img-grid { display: grid; gap: 12px; margin-top: 28px; }
.cs-img-grid.cols-1 { grid-template-columns: 1fr; }
.cs-img-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.cs-img-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

.cs-img-grid .img-wrap {
  aspect-ratio: 4/3;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-img-grid .img-wrap.wide { aspect-ratio: 16/6; }

.cs-img-grid.cols-1 .img-wrap { aspect-ratio: auto; height: auto; }
.cs-img-grid.cols-1 .img-wrap img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
  margin: 0 auto;
}

.cs-img-grid .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.cs-img-grid .img-wrap:hover img { transform: scale(1.03); }

/* ══════════════════════════════
   CASE STUDY — SOLUTION SPLIT
══════════════════════════════ */
.solution-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

.solution-text { display: flex; flex-direction: column; gap: 12px; }

.solution-subheader { font-family: 'Zilla Slab', serif; font-size: 1.6rem; font-weight: 600; margin: 0; }

.solution-img { display: flex; justify-content: center; }
.solution-img img { width: 100%; max-width: 280px; border-radius: 12px; display: block; }

.centered-img { display: block; margin: 28px auto 0; max-width: 100%; height: auto; }

.project-card-link { display: block; color: inherit; text-decoration: none; }
.project-card-link:hover,
.project-card-link:focus,
.project-card-link:visited { color: inherit; text-decoration: none; }

.problem-img,
.solution-img-full { display: block; width: 100%; height: auto; margin-top: 60px; }

/* ══════════════════════════════
   CASE STUDY — FEATURES GRID
══════════════════════════════ */
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }

.feature-card { background: var(--pink-light); border: 1px solid var(--pink-mid); border-radius: 12px; padding: 24px 20px; }

.feature-card h4 { font-family: 'Zilla Slab', serif; font-size: 1rem; font-weight: 400; color: var(--deep); margin-bottom: 8px; }

.feature-card p { font-size: 0.83rem; color: var(--muted); line-height: 1.65; }

/* ══════════════════════════════
   CASE STUDY — JAKOB'S LAW
══════════════════════════════ */
.jakobs-row { display: flex; gap: 16px; margin-top: 24px; flex-wrap: wrap; }

.jakobs-card { background: var(--deep); border-radius: 12px; padding: 20px 24px; flex: 1; min-width: 180px; }

.jakobs-card .app-name {
  font-family: 'Zilla Slab', serif;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.jakobs-card .pattern { font-size: 0.85rem; color: rgba(255,255,255,0.85); line-height: 1.5; }

/* ══════════════════════════════
   CASE STUDY — DESIGN SYSTEM
══════════════════════════════ */
.ds-row { display: flex; gap: 24px; margin-top: 28px; flex-wrap: wrap; align-items: flex-start; }

.ds-type {
  background: var(--pink-light);
  border: 1px solid var(--pink-mid);
  border-radius: 12px;
  padding: 28px 32px;
  min-width: 180px;
}

.ds-type .type-sample {
  font-family: 'Zilla Slab', serif;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--deep);
  margin-bottom: 8px;
}

.ds-type .type-label { font-family: 'Zilla Slab', serif; font-size: 0.68rem; color: var(--muted); letter-spacing: 0.08em; }

.ds-colors { display: flex; gap: 10px; flex-wrap: wrap; }

.color-chip { width: 52px; height: 52px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

.color-chip-label {
  font-family: 'Zilla Slab', serif;
  font-size: 0.6rem;
  color: var(--muted);
  text-align: center;
  margin-top: 4px;
  letter-spacing: 0.04em;
}

/* ══════════════════════════════
   CASE STUDY — TWO-COL & CARDS
══════════════════════════════ */
.cs-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 28px; }

.cs-card { background: var(--pink-light); border: 1px solid var(--pink-mid); border-radius: 12px; padding: 28px 24px; }

.cs-card h4 { font-family: 'Zilla Slab', serif; font-size: 1.35rem; font-weight: 700; color: var(--deep); margin-bottom: 10px; }

.cs-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.7; }

/* ══════════════════════════════
   CASE STUDY — REFLECTION
══════════════════════════════ */
.reflection-block { background: var(--deep); border-radius: 16px; padding: 48px; margin-top: 28px; }

.reflection-block p {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  max-width: 680px;
}

/* ══════════════════════════════
   CASE STUDY — BRAND LOCKUP
══════════════════════════════ */
.brand-lockup { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; margin: 24px 0; }

.brand-lockup .brand-name { font-family: 'Zilla Slab', serif; font-size: 2.2rem; color: var(--green); font-style: italic; }

.brand-lockup .brand-sub { font-size: 0.8rem; color: var(--green); opacity: 0.65; letter-spacing: 0.04em; }

/* ══════════════════════════════
   ABOUT PAGE
══════════════════════════════ */
.about-page  { max-width: 1440px; }

.about-main { margin: 40px auto 160px; max-width: 1200px; padding: 0 48px; }

.about-title { display: flex; justify-content: center; margin: 0 0 54px; }

.about-title h1 {
  align-items: center;
  color: var(--black);
  display: inline-flex;
  font-family: 'Zilla Slab', serif;
  font-size: 64px;
  font-weight: 500;
  gap: 8px;
  line-height: 1;
  margin: 0;
}

.about-sparkle { height: 46px; width: 52px; }

.about-profile { align-items: start; display: grid; gap: 48px; grid-template-columns: 1fr 260px; margin: 0 auto 116px; max-width: 1050px; }

.about-photo { background: #ddd6d9; height: 320px; width: 100%; }

.about-copy { padding-top: 30px; }

.about-copy p { color: var(--ink-900); font-family: 'Zilla Slab', serif; font-size: 15px; line-height: 1.45; margin: 0 0 34px; }

.about-copy p:last-child { margin-bottom: 0; }

.tools-section { margin: 0 auto; max-width: 760px; text-align: center; }

.tools-section h2 { color: var(--ink-900); font-family: 'Zilla Slab', serif; font-size: 64px; font-weight: 500; line-height: 1; margin: 0 0 48px; }

.tools-grid { column-gap: 86px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 42px; }

.tool-item { align-items: center; display: flex; flex-direction: column; gap: 10px; }

.tool-icon-frame { align-items: center; background: #050505; border-radius: 20px; display: flex; height: 70px; justify-content: center; width: 70px; }

.tool-icon-frame-light    { background: #ffd92d; }
.tool-icon-frame-vscode,
.tool-icon-frame-firebase { background: transparent; }

.tool-icon { display: block; height: 44px; width: 44px; }

.tool-item p { color: var(--ink-900); font-family: 'Zilla Slab', serif; font-size: 16px; margin: 0; }

/* ══════════════════════════════
   ANIMATIONS
══════════════════════════════ */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes twinkle {
  0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
  50%       { opacity: 0.5; transform: scale(1.3) rotate(20deg); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════
   RESPONSIVE — 1120px
══════════════════════════════ */
@media (max-width: 1120px) {
  .topbar { padding: 40px 32px; }
  .home-hero { margin: 180px auto 260px; }
  .home-hero h1, .gallery-hero h1 { font-size: 56px; }
  .project-meta { align-items: start; grid-template-columns: 1fr; padding: 0 32px; }
  .project-title-wrap { justify-self: start; }
  .project-kicker { justify-self: start; max-width: none; }
  .project-images { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 32px; }
  .project-images img { height: 320px; }
  .home-works h2 { padding: 10px 32px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-main { max-width: 760px; }
  .case-block h2 { font-size: 32px; }
  .about-main { margin-top: 24px; padding: 0 32px; }
  .about-title h1, .tools-section h2 { font-size: 56px; }
  .about-profile { grid-template-columns: 1fr 300px; max-width: 980px; }
}

/* ══════════════════════════════
   RESPONSIVE — 800px
══════════════════════════════ */
@media (max-width: 800px) {
  .gallery-header { padding: 60px 24px 40px; }
  .gallery-grid-full { grid-template-columns: repeat(2, 1fr); padding: 0 24px 60px; }
}

/* ══════════════════════════════
   RESPONSIVE — 760px
══════════════════════════════ */
@media (max-width: 760px) {
  nav { padding: 14px 24px; }
  .hero { padding: 60px 24px 48px; grid-template-columns: 1fr; }
  .hero-img { width: 120px; height: 120px; justify-self: center; }
  .projects { padding: 20px 24px 60px; }
  .project-images { gap: 8px; grid-template-columns: 1fr; }
  .project-images img { height: auto; }
  footer { padding: 40px 24px 28px; }
  .divider { width: calc(100% - 48px); margin: 0 24px; }

  .topbar { align-items: center; padding: 24px 16px; }
  .brand  { font-size: 32px; }
  .nav    { gap: 8px; }
  .nav a  { font-size: 14px; padding: 8px; }

  .home-hero { margin: 140px auto 170px; padding: 0 16px; }
  .eyebrow   { font-size: 14px; }
  .home-hero h1, .gallery-hero h1 { font-size: 42px; }
  .sparkle { height: 27px; width: 30px; }
  .home-works h2 { font-size: 20px; padding: 10px 16px; }
  .project-card  { margin-top: 32px; }
  .project-meta, .project-images { padding: 0 16px; }
  .badge { font-size: 22px; padding: 10px 16px; }
  .project-title-wrap h3 { font-size: 42px; }
  .project-kicker { font-size: 14px; }
  .case-study { font-size: 20px; margin-right: 16px; }
  .gallery-hero { margin: 44px 0 52px; }
  .gallery-grid-wrap { padding: 0 16px; }
  .gallery-grid { gap: 12px; grid-template-columns: 1fr; }

  .case-main { margin-top: 16px; max-width: 720px; padding: 0 16px; }
  .case-intro { align-items: flex-start; flex-direction: column; gap: 16px; }
  .case-intro h1 { font-size: 42px; }
  .case-intro .subtitle { font-size: 20px; }
  .case-hero-image { margin-top: 52px; }
  .mono-label { font-size: 18px; margin-bottom: 20px; }
  .case-block, .case-feature-stack { margin-top: 48px; }
  .case-block h2 { font-size: 26px; line-height: 1.35; }
  .case-block h3, .case-feature h3 { font-size: 24px; margin-bottom: 14px; }
  .case-block p, .case-block li, .case-feature p { font-size: 16px; line-height: 1.62; }
  .case-feature-stack { gap: 64px; }
  .double-tall-images { gap: 20px; grid-template-columns: 1fr; }
  .double-tall-images img { height: auto; }

  .site-footer { margin-top: 72px; min-height: 0; padding-bottom: 42px; }
  .footer-inner { padding: 32px 16px 0; }
  .site-footer h4 { font-size: 32px; margin-bottom: 20px; }
  .footer-row, .footer-links { align-items: flex-start; flex-direction: column; gap: 20px; }
  .contact p { font-size: 14px; }
  .contact a { font-size: 16px; }
  .copyright { font-size: 12px; white-space: normal; }

  .cs-hero, .cs-section { padding-left: 24px; padding-right: 24px; }
  .cs-hero-img { padding: 0 24px; }
  .features-grid, .cs-img-grid.cols-2, .cs-img-grid.cols-3, .solution-split { grid-template-columns: 1fr; }
  .cs-divider { width: calc(100% - 48px); margin: 0 24px 56px; }
  .reflection-block { padding: 28px 20px; }

  .about-main { margin: 24px auto 100px; padding: 0 16px; }
  .about-title { margin-bottom: 36px; }
  .about-title h1, .tools-section h2 { font-size: 40px; }
  .about-profile { gap: 24px; grid-template-columns: 1fr; margin-bottom: 72px; }
  .about-photo { height: 240px; }
  .about-copy { padding-top: 0; }
  .about-copy p { font-size: 14px; margin-bottom: 22px; }
  .tools-grid { column-gap: 20px; row-gap: 28px; }
}

/* ══════════════════════════════
   RESPONSIVE — 500px
══════════════════════════════ */
@media (max-width: 500px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════
   RESPONSIVE — 480px
══════════════════════════════ */
@media (max-width: 480px) {
  .page { max-width: 376px; }
  .topbar { padding: 16px; }
  .mobile-brand-star { display: block; height: 37px; width: 39px; }
  .brand { display: none; }
  .home-hero { margin: 130px auto 120px; }
  .home-hero h1 { font-size: 40px; line-height: 1.14; }
  .home-works h2 { font-size: 16px; padding: 10px 32px; }
  .project-meta, .project-images { padding: 0 32px; }
  .project-title-wrap h3 { font-size: 40px; }
  .about-title h1, .tools-section h2 { font-size: 32px; }
  .about-sparkle { height: 34px; width: 38px; }
  .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-main { max-width: 343px; padding: 0 16px; }
  .case-intro .badge { font-size: 20px; }
  .mono-label { font-size: 16px; }
  .case-block h2 { font-size: 24px; }
  .content-image.tall { width: min(311px, 100%); }
  .cs-stats { grid-template-columns: 1fr 1fr; }
  .cs-two-col { grid-template-columns: 1fr; }
  .journey-table { font-size: 0.72rem; }
  .cs-divider { width: calc(100% - 48px); margin: 0 24px 56px; }
  .site-footer { padding-bottom: 36px; }
  .footer-inner { padding-top: 21px; }
  .site-footer h4 { font-size: 24px; }
  .gallery-grid-full { grid-template-columns: 1fr; }
}

/* ══════════════════════════════
   ABOUT PAGE (about.html)
══════════════════════════════ */
.about-page { max-width: 1440px; margin: 0 auto; }

.about-main {
  margin: 64px auto 160px;
  max-width: 1100px;
  padding: 0 56px;
  animation: fadeUp 0.8s 0.2s ease both;
}

.about-profile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 100px;
}

.about-photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 4px;
  background: #ddd6d9;
  height: auto;
}

.about-copy { padding-top: 16px; }

.about-copy h2 {
  font-family: 'Zilla Slab', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 500;
  color: var(--deep);
  line-height: 1.1;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-copy h2 .sparkle-sm {
  color: var(--pink-soft);
  font-size: 0.55em;
  display: inline-block;
  animation: twinkle 2.4s ease-in-out infinite;
}

.about-copy h2 .sparkle-xs {
  color: var(--deep);
  font-size: 0.35em;
  display: inline-block;
  animation: twinkle 2.4s 0.4s ease-in-out infinite;
}

.about-copy p {
  color: var(--ink-700);
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  line-height: 1.72;
  margin-bottom: 20px;
}

.about-copy p:last-child { margin-bottom: 0; }

/* ── VALUES SECTION ── */
.values-section {
  background: var(--pink-light);
  margin: 0 -56px 100px;
  padding: 56px 56px 64px;
}

.values-label {
  font-family: 'Zilla Slab', serif;
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 32px;
  letter-spacing: 0.01em;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.value-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px 28px 28px;
}

.value-card h3 {
  font-family: 'Zilla Slab', serif;
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 500;
  color: var(--deep);
  margin-bottom: 14px;
  line-height: 1;
}

.value-card p {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── TOOLS SECTION (about.html) ── */
.tools-section {
  text-align: center;
  margin-bottom: 80px;
  max-width: none;
}

.tools-section h2 {
  font-family: 'Zilla Slab', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--deep);
  margin-bottom: 52px;
  letter-spacing: -0.01em;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 48px;
  row-gap: 44px;
  max-width: 560px;
  margin: 0 auto;
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.tool-icon-frame {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.tool-icon-frame.light { background: #ffd92d; }
.tool-icon-frame.trans { background: transparent; border: none; }

.tool-icon-frame img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
}

.tool-item p {
  font-family: 'Zilla Slab', serif;
  font-size: 0.95rem;
  color: var(--deep);
  margin: 0;
}

/* ── SITE FOOTER (about.html overrides) ── */
.site-footer {
  background: var(--footer-bg);
  color: var(--white);
  margin-left: calc(50% - 50vw);
  width: 100vw;
  padding: 0 0 64px;
  min-height: 0;
}

.footer-inner { padding: 52px 56px 0; }

.site-footer h4 {
  font-family: 'Zilla Slab', serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 28px;
  letter-spacing: -0.01em;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.footer-links { display: flex; gap: 48px; }

.contact p {
  font-family: 'Zilla Slab', serif;
  font-size: 0.75rem;
  opacity: 0.65;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  margin: 0 0 5px;
}

.contact a {
  color: var(--white);
  font-family: 'Zilla Slab', serif;
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  transition: border-color 0.2s;
}

.contact a:hover { border-color: white; }

.copyright {
  font-family: 'Zilla Slab', serif;
  font-size: 0.75rem;
  opacity: 0.5;
  margin: 0;
}

@media (max-width: 760px) {
  .about-main { padding: 0 24px; margin: 40px auto 100px; }
  .about-profile { grid-template-columns: 1fr; gap: 32px; }
  .values-section { margin: 0 -24px 64px; padding: 40px 24px 48px; }
  .values-grid { grid-template-columns: 1fr; }
  .tools-grid { column-gap: 24px; row-gap: 32px; }
  .footer-inner { padding: 32px 24px 0; }
  .footer-row, .footer-links { flex-direction: column; gap: 20px; align-items: flex-start; }
}