@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Roboto:wght@300;400;500;700&family=Roboto+Mono:wght@300;400;500;600;700&display=swap');

/* ═══════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-family: 'Poppins', sans-serif; -webkit-font-smoothing: antialiased; }
body { background: #fcfcfc; color: #111; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: 'Roboto Mono', monospace; }

/* ── ROBOTO — body reading copy ── */
.hero-body,
.hero-body p,
.about-bio,
.about-bio p,
.faq-a,
.faq-a-block,
.faq-a-block p {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  color: #333;
}

/* ── POPPINS — UI / meta copy ── */
.card-subtitle,
.footer-credits,
.footer-credits p {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  color: #686868;
}

/* ── ROBOTO MONO — hero subtitle tagline only ── */
.hero-subtitle {
  font-family: 'Roboto Mono', monospace;
  font-weight: 400;
}

/* ═══════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 72px);
  background: color-mix(in srgb, #fcfcfc 86%, transparent);
  backdrop-filter: saturate(1.1) blur(14px);
  -webkit-backdrop-filter: saturate(1.1) blur(14px);
  border-bottom: 1px solid #e6e6e3;
}

@keyframes logo-wiggle {
  0%   { transform: rotate(0deg)   scale(1); }
  15%  { transform: rotate(-11deg) scale(1.22); }
  30%  { transform: rotate(9deg)   scale(1.24); }
  50%  { transform: rotate(-6deg)  scale(1.19); }
  65%  { transform: rotate(4deg)   scale(1.14); }
  80%  { transform: rotate(-2deg)  scale(1.08); }
  100% { transform: rotate(0deg)   scale(1); }
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Roboto Mono', monospace; font-size: 13px; color: #111; text-decoration: none;
}
.nav-logo img {
  width: 38px; height: 38px;
  transition: transform .55s cubic-bezier(.34,1.56,.64,1);
}
.nav-logo:hover img { transform: rotate(-8deg) scale(1.06); }
.nav-logo img.logo-wiggling { animation: logo-wiggle 0.58s cubic-bezier(0.34, 1.56, 0.64, 1); }
.nav-logo small { color: #888; }

.nav-links { display: flex; align-items: center; gap: 30px; }

.nav-link {
  font-family: 'Roboto Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: #888;
  position: relative;
  padding: 6px 2px;
  display: inline-block;
  transition: color .2s ease, transform .35s cubic-bezier(.34,1.56,.64,1);
  text-decoration: none;
}
.nav-link:hover { color: #0069bf; transform: translateY(-2px); }
.nav-link.active { color: #111; }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 2px; right: 2px; bottom: 0;
  height: 2px;
  background: #111;
  border-radius: 2px;
}

/* Sparkle particles */
@keyframes nav-sparkle-fly {
  0%   { opacity: 1; transform: translate(0, 0) scale(1) rotate(0deg); }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0.2) rotate(var(--rot)); }
}
.nav-sparkle {
  position: fixed;
  pointer-events: none;
  font-size: 11px;
  line-height: 1;
  user-select: none;
  z-index: 9999;
  animation: nav-sparkle-fly 0.55s ease-out forwards;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger .bar {
  display: block;
  width: 22px; height: 2px;
  background: #111; border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.hamburger.open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 64px; left: 0; right: 0;
  z-index: 199;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #ebebeb;
  flex-direction: column;
  padding: 16px clamp(24px, 6vw, 80px) 24px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
  display: none;
}
.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.mobile-link {
  display: block;
  font-family: 'Roboto Mono', monospace;
  font-size: 18px; font-weight: 500;
  color: #888;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
  transition: color 0.2s;
}
.mobile-link:last-child { border-bottom: none; }
.mobile-link:hover { color: #111; }
.mobile-link.active { color: #111; font-weight: 600; }

/* ═══════════════════════════════════════
   SCROLL FADE-IN ANIMATION
   ═══════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════
   HOME — PAGE & HERO
   ═══════════════════════════════════════ */
.home-page { min-height: 100vh; padding-top: 64px; }

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto auto;
  grid-template-areas:
    "name  gif"
    "sub   gif"
    "body  gif"
    "cta   gif";
  column-gap: clamp(32px, 5vw, 64px);
  padding: clamp(80px, 10vw, 120px) clamp(24px, 6vw, 80px) clamp(48px, 6vw, 80px);
  max-width: 1400px;
  margin: 0 auto;
  align-content: start;
  align-items: start;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideUpSm {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.hero-name {
  grid-area: name;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: #111;
  white-space: nowrap;
  animation: fadeSlideUp 0.7s cubic-bezier(0.22,1,0.36,1) both;
}
.hero-subtitle {
  grid-area: sub;
  margin-top: 10px;
  font-size: clamp(18px, 1.8vw, 22px); font-weight: 400; color: #888; line-height: 1.4;
  animation: fadeSlideUpSm 0.6s cubic-bezier(0.22,1,0.36,1) 0.2s both;
}
.hero-body {
  grid-area: body;
  display: flex; flex-direction: column; gap: 10px;
  margin-top: clamp(20px, 2.5vw, 32px);
  font-size: 16px; font-weight: 400; color: #555; line-height: 1.75;
  animation: fadeSlideUpSm 0.6s cubic-bezier(0.22,1,0.36,1) 0.35s both;
}
.hero-body strong { font-weight: 700; }

.hero-bullets {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.hero-bullets li {
  padding-left: 1.5em;
  position: relative;
}
.hero-bullets li::before {
  content: '★';
  position: absolute;
  left: 0;
  font-size: 0.75em;
  top: 0.22em;
  color: #111;
}
.cta-row {
  grid-area: cta;
  display: flex; gap: 36px;
  margin-top: clamp(24px, 3vw, 36px);
  align-items: flex-end;
  animation: fadeSlideUpSm 0.6s cubic-bezier(0.22,1,0.36,1) 0.5s both;
}
.cta-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: #555; font-size: clamp(12px, 1.2vw, 14px); font-weight: 500; letter-spacing: 0.02em;
  transition: color 0.2s;
  background: none; border: none; cursor: pointer; padding: 0;
  text-decoration: none;
}
.cta-item:hover { color: #111; }
.cta-item:focus-visible { outline: 2px solid #111; outline-offset: 4px; border-radius: 4px; }
.pot-icon {
  width: clamp(110px, 14vw, 160px);
  height: clamp(110px, 14vw, 160px);
  object-fit: contain;
}
.hero-illustration {
  grid-area: gif;
  align-self: center; justify-self: center;
  width: clamp(300px, 46vw, 580px);
  animation: scaleIn 0.7s cubic-bezier(0.22,1,0.36,1) 0.3s both;
}

/* ═══════════════════════════════════════
   HOME — WORK GRID
   ═══════════════════════════════════════ */
.work-section {
  padding: clamp(56px, 8vw, 100px) clamp(24px, 5vw, 72px) clamp(40px, 7vw, 80px);
  max-width: 1320px;
  margin: 0 auto;
}

/* Section header */
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(26px, 3.2vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: #111;
}
.section-title em { font-style: italic; font-weight: 400; color: #686868; }
.section-meta {
  text-align: right;
  font-family: 'Roboto Mono', monospace;
  font-size: 12px; color: #686868;
  letter-spacing: 0.05em; line-height: 1.7;
}
.section-meta b { color: #111; font-weight: 500; }

/* 2-column grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 32px);
}

.work-card {
  position: relative;
  display: flex; flex-direction: column;
  border: 1px solid #e6e6e3;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease, border-color .25s ease;
  isolation: isolate;
  text-decoration: none; color: inherit; cursor: pointer;
}
.work-card:hover {
  transform: translateY(-6px);
  border-color: #111;
  box-shadow: 0 24px 48px -28px rgba(17,17,17,0.22);
}
.work-card.no-link { cursor: default; }
.work-card.no-link:hover { transform: none; box-shadow: none; border-color: #e6e6e3; }

/* Arrow button — top-right corner */
.arrow-corner {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; border: 1px solid #e6e6e3;
  display: grid; place-items: center;
  color: #111; font-size: 14px; font-style: normal;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), background .25s ease, color .25s ease, border-color .25s ease;
}
.work-card:hover .arrow-corner {
  background: #111; color: #fff; border-color: #111;
  transform: rotate(45deg);
}

/* Image area — 16:9, with tint overlay and gif swap */
.card-img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #f7f4ef;
  overflow: hidden;
}
.card-img-wrap .tint { position: absolute; inset: 0; z-index: 0; }
.card-img-wrap img.thumb,
.card-img-wrap img.gif {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: opacity .35s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
.card-img-wrap img.gif { opacity: 0; }
.work-card:hover .card-img-wrap:not(.no-gif) img.thumb { opacity: 0; transform: scale(1.02); }
.work-card:hover .card-img-wrap img.gif { opacity: 1; transform: scale(1.02); }
.card-img-wrap.no-gif img.thumb { opacity: 1 !important; }
.card-img-wrap .placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center; text-align: center;
  font-family: 'Roboto Mono', monospace; font-size: 12px; color: #888; line-height: 1.6;
}
.card-img-wrap .placeholder small { display: block; opacity: 0.6; margin-top: 4px; letter-spacing: 0.06em; }

/* Per-card tints */
.card-budgets  .tint { background: #b9ecd9; opacity: 0.55; }
.card-vision   .tint { background: #e8f0f8; opacity: 1; }
.card-racism   .tint { background: #d9d6ff; opacity: 0.55; }

/* Budgets thumbnail — contain so the full UI is visible, not centre-cropped */
.card-budgets .card-img-wrap { background: #fff; }
.card-budgets .thumb { object-fit: contain; }

/* Pomodoro placeholder — solid grey, no tint div needed */
.card-pomodoro-ph { background: #e0e0e0; }

/* Card body — text area below image */
.card-body {
  flex: 1;
  padding: 22px 24px 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.card-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(18px, 1.8vw, 24px);
  letter-spacing: -0.015em; line-height: 1.2;
  color: #111;
}
.coming-soon-tag {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.6em; font-weight: 400;
  color: #888; white-space: nowrap;
  vertical-align: middle;
}
.card-blurb {
  font-size: 14px; color: #686868; line-height: 1.5; font-family: 'Poppins', sans-serif;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  padding-top: 14px;
  border-top: 1px dashed #e6e6e3;
  margin-top: auto;
}

/* Chips (tags) */
.chip {
  font-family: 'Roboto Mono', monospace;
  font-size: 11px; font-weight: 500; letter-spacing: 0.03em;
  padding: 5px 10px; border-radius: 999px;
  background: #f7f4ef; color: #2a2a2a; border: 1px solid #e6e6e3;
}
.chip.tag-shipped { background: #cef0e0; color: #1e6c4b; border-color: transparent; }
.chip.tag-side    { background: #e2def8; color: #4a3a89; border-color: transparent; }

/* Cards fade in from below */
.work-card.fade-in         { transform: translateY(48px); }
.work-card.fade-in.visible { transform: translateY(0); }
.work-card.fade-in.visible:hover { transform: translateY(-6px); }

/* ── CTA labels — text highlight style (like old-portfolio "explore my work") ── */
.cta-label {
  font-family: 'Roboto Mono', monospace;
  font-size: clamp(12px, 1.1vw, 14px);
  font-weight: 400;
  font-style: normal;
  text-decoration: underline;
  text-underline-offset: 2px;
  color: #111;
  background: #c4e3ff;
  letter-spacing: 0.01em;
  transition: background 0.2s ease;
}
.cta-item:hover .cta-label {
  background: #f6e9b9;
  font-weight: 500;
  font-style: italic;
  color: #0069bf;
}

/* ── Back to top ── */
.back-to-top {
  font-family: 'Roboto Mono', monospace;
  font-size: 12px; color: #686868; letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: none; cursor: pointer; padding: 0;
  transition: color .2s ease, transform .35s cubic-bezier(.34,1.56,.64,1);
}
.back-to-top:hover { color: #111; transform: translateY(-2px); }
.uparrow {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid #d9d9d4; font-size: 11px;
}


/* ═══════════════════════════════════════
   SHARED FOOTER
   ═══════════════════════════════════════ */
.site-footer {
  margin-top: clamp(40px, 6vw, 80px);
  border-top: 1px solid #e6e6e3;
  overflow: hidden;
}
.footer-inner {
  max-width: 1320px; margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 72px);
}
.footer-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 0 48px;
  gap: 24px; flex-wrap: wrap;
}
.footer-credits {
  font-family: 'Roboto Mono', monospace;
  font-size: 11px; color: #888;
  letter-spacing: 0.04em; text-align: right;
  display: flex; flex-direction: column; gap: 3px;
}
.footer-credits a { border-bottom: 1px dotted #888; color: inherit; }
.flower-footer {
  display: block;
  width: 100%;
  height: 80px;
  background-image: url(../Assets/illustrations/flowerfooter2.png);
  background-repeat: repeat-x;
  background-size: auto 80px;
  background-position: center top;
}

/* ═══════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════ */
.about-page { min-height: 100vh; padding-top: 60px; }

.about-hero {
  display: grid;
  grid-template-columns: 2fr 3fr;
  grid-template-areas:
    "illus heading"
    "illus right";
  column-gap: clamp(60px, 9vw, 120px);
  row-gap: clamp(16px, 2vw, 24px);
  align-items: start;
  padding: clamp(80px, 10vw, 120px) clamp(24px, 6vw, 80px) clamp(48px, 6vw, 80px);
  max-width: 1400px;
  margin: 0 auto;
}
.about-illustration { grid-area: illus; }
.about-heading      { grid-area: heading; }
.about-right-col    { grid-area: right; }
.about-illustration {
  width: 100%; height: auto;
}
.about-right-col {
  display: flex; flex-direction: column;
  gap: clamp(20px, 2.5vw, 32px);
}
.about-heading {
  font-size: clamp(40px, 6vw, 80px); font-weight: 800; line-height: 1.05;
  letter-spacing: -0.03em; color: #111;
}
.about-bio {
  display: flex; flex-direction: column; gap: 16px;
  font-size: 16px; font-weight: 400; color: #333; line-height: 1.8;
}
.about-bio strong { font-weight: 500; color: #111; }
.accent { color: #0069bf; }
.accent a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.muted  { color: #686868; }
.about-faq {
  display: flex; flex-direction: column; gap: 64px;
  border-top: 1px solid #ebebeb;
  padding-top: clamp(40px, 5vw, 64px);
  margin-top: clamp(40px, 5vw, 64px);
}
.faq-heading {
  font-size: clamp(40px, 6vw, 80px); font-weight: 800;
  line-height: 1.05; letter-spacing: -0.03em; color: #111;
}
.faq-item { display: flex; flex-direction: column; gap: 8px; }
.faq-q {
  font-family: 'Poppins', sans-serif;
  font-size: 16px; font-weight: 600;
  color: #111; line-height: 1.4;
}
.faq-a { font-size: 16px; font-weight: 400; color: #333; line-height: 1.8; }
.faq-a-block {
  display: flex; flex-direction: column; gap: 20px;
  font-size: 16px; font-weight: 400; color: #333; line-height: 1.8;
}
.ai-tool-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ai-tool-card { border: 1px solid #ebebeb; border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.atc-top { display: flex; justify-content: space-between; align-items: center; }
.atc-label { font-family: 'Roboto Mono', monospace; font-size: 13px; font-weight: 500; color: #111; }
.atc-desc { font-size: 13px; color: #333; line-height: 1.55; margin: 0; font-family: 'Roboto', sans-serif; }
.tool-icons { display: inline-flex; gap: 4px; align-items: center; }
.tool-icon { width: 16px; height: 16px; border-radius: 3px; }
.faq-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  align-items: start;
}
.faq-row-label {
  font-weight: 400; color: #111;
  font-family: 'Roboto', sans-serif;
  line-height: 1.8;
}
.about-footer-wrap { /* layout inherited from .site-footer */ }

/* ═══════════════════════════════════════
   CASE STUDY — SHARED
   ═══════════════════════════════════════ */
.case-page { min-height: 100vh; padding-top: 64px; }

/* Outer wrapper — allows full-width separators */
.case-inner { max-width: 1100px; margin: 0 auto; padding: 0; overflow: hidden; }

/* Banner cover */
.cover-img {
  width: 100%; max-height: 500px;
  object-fit: cover; object-position: center;
  display: block;
}

/* Hero block — same narrow column as text */
.case-hero {
  max-width: 750px; margin: clamp(32px, 5vw, 64px) auto 0;
  padding: clamp(28px, 4vw, 48px) 0 36px;
}
.case-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: #aaa; margin-bottom: 16px;
}
.case-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 600; line-height: 1.2;
  letter-spacing: -0.01em; color: #111; margin-bottom: 12px; overflow-wrap: anywhere;
}
.case-tagline {
  font-size: 1.1rem; font-weight: 400; color: #888; line-height: 1.5; margin-bottom: 28px;
}

/* Stats — stacked column, grey, like old site */
.case-meta {
  display: flex; flex-direction: column; gap: 18px;
  border-top: 1px solid #e8e8e8; padding-top: 28px;
  border-bottom: 1px solid #e8e8e8; padding-bottom: 28px;
  color: #808080;
}
.meta-item { display: flex; flex-direction: column; gap: 4px; }
.meta-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: #bbb;
}
.meta-value { font-size: 15px; font-weight: 400; color: #666; line-height: 1.5; font-family: 'Roboto', sans-serif; }

/* Content flow — no gap, use margin-top on each section */
.case-content { padding: 0 0 24px; display: flex; flex-direction: column; }

/* Text section — narrow reading column, centred */
.case-section {
  max-width: 750px; margin: 5vw auto 0;
  padding: 0;
  display: flex; flex-direction: column; gap: 22px;
}

/* Full-width section separator banners (like old site) */
.section-separator {
  margin-top: 5vw;
  padding: clamp(24px, 4vw, 48px) clamp(24px, 5vw, 64px);
  font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 600; line-height: 1.3;
  color: #fff; background-color: #444;
  background-repeat: no-repeat; background-position: center; background-size: cover;
}
.sep-genshin { background-image: url(../images/genshin/Separator.png); }
.sep-ics     { background-image: url(../images/ics/SeparatorBG.png); }

.section-heading { font-size: 1.35rem; font-weight: 600; line-height: 1.25; color: #111; }
.section-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: #bbb;
}
.body-text { font-size: 1rem; font-weight: 400; line-height: 1.8; color: #333; font-family: 'Roboto', sans-serif; }
.body-text strong { font-weight: 500; color: #333; }
.body-text a { color: #111; text-decoration: underline; text-underline-offset: 3px; }
.body-text a:hover { opacity: 0.7; }
.case-link { color: #111; text-decoration: underline; text-underline-offset: 3px; }
.case-link:hover { opacity: 0.7; }

.callout {
  padding: 20px 24px; background: #f5f5f5; border-radius: 12px; border-left: 3px solid #111;
  font-size: 1rem; line-height: 1.8; color: #333;
}
.callout strong { font-weight: 600; color: #111; }
.hmw-block {
  padding: 24px 32px; border-left: 3px solid #111;
  background: #f9f9f9; border-radius: 0 12px 12px 0;
  font-size: 1.3rem; font-weight: 400; font-style: italic; color: #555; line-height: 1.7;
}

/* Big quote — prominent, coloured, centred like old site */
.big-quote {
  font-size: 1.5rem; font-weight: 600; color: #6981CE;
  font-style: italic; line-height: 1.65;
  text-align: center; padding: 24px 0;
  font-family: 'Roboto', sans-serif;
}

/* Key insight — bold label, not tiny uppercase */
.key-insight { font-weight: 700; font-size: 1rem; color: #333; }

/* Lists — circle bullets, spacious like old site */
.case-list {
  font-size: 1rem; font-weight: 400; line-height: 1.8; color: #333;
  padding-left: 1.5em; list-style: circle;
  font-family: 'Roboto', sans-serif;
  display: flex; flex-direction: column;
}
.case-list li { padding-top: 1.25em; }
.case-list li:first-child { padding-top: 0.5em; }
.case-list li strong { font-weight: 500; color: #333; }
ol.case-list { list-style: decimal; }
ol.case-list li { padding-bottom: 12px; }

/* Images — full-width images break out of the text column naturally */
.img-full { width: 100%; height: auto; display: block; }
.img-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 20px); }
.img-half { width: 100%; height: auto; object-fit: contain; }
.img-small { display: block; margin: 0 auto; max-width: 450px; height: auto; }
.img-medium { display: block; margin: 0 auto; max-width: 80%; height: auto; }

/* Genshin 4-col process */
.process-four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.process-four img { width: 100%; height: auto; }

/* Genshin principles — side by side like old site */
.principle-row {
  max-width: 750px; margin: 5vw auto 0;
  padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.principle-item { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.principle-item img { max-width: 80px; height: auto; }
.principle-item h4 { font-size: 1rem; font-weight: 700; color: #6B4B2A; }
.principle-item p { font-size: 0.9rem; color: #555; line-height: 1.6; font-family: 'Roboto', sans-serif; }
.genbrown { color: #BB7627; }

/* Video */
.video-wrap { width: 100%; overflow: hidden; }
.video-wrap video { width: 100%; display: block; }

/* Back button */
.back-row {
  max-width: 750px; margin: 5vw auto 0;
  padding: 52px 0 72px;
  border-top: 1px solid #e8e8e8;
  display: flex; justify-content: space-between; align-items: center;
}
.back-btn {
  background: #c4e3ff; border: none; padding: 0; cursor: pointer;
  font-family: 'Roboto Mono', monospace;
  font-size: clamp(12px, 1.1vw, 14px); font-weight: 400;
  text-decoration: underline; text-underline-offset: 2px;
  letter-spacing: 0.01em; color: #111;
  display: inline; transition: background 0.2s ease, color 0.2s ease;
}
.back-btn:hover { background: #f6e9b9; font-weight: 500; font-style: italic; color: #0069bf; }

/* ═══════════════════════════════════════
   BUDGETS — SPECIFIC STYLES
   ═══════════════════════════════════════ */
.divider { height: 1px; background: #ebebeb; margin: 0; }

.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.impact-stat {
  background: #f5f5f5; border-radius: 16px; padding: 28px 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.impact-number { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; color: #111; }
.impact-text { font-size: 0.95rem; font-weight: 400; color: #555; line-height: 1.5; }

.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.problem-card { background: #fafafa; border-radius: 16px; padding: 28px 24px; display: flex; flex-direction: column; gap: 12px; }
.problem-label { font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: #aaa; }

.north-star {
  background: #111; color: #fff; border-radius: 16px;
  padding: 32px 36px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px;
}
.north-star-label { font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: #888; }
.north-star-text { font-size: 1.25rem; font-weight: 500; line-height: 1.5; color: #fff; }
.section-subheading { font-size: 1.3rem; font-weight: 600; color: #111; margin-top: 8px; }

.owned-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.owned-list { display: flex; flex-direction: column; gap: 16px; }
.owned-item { background: #fafafa; border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.owned-title { font-size: 1rem; font-weight: 700; color: #111; }
.owned-action { font-size: 0.95rem; color: #555; line-height: 1.6; }
.owned-impact { font-size: 0.95rem; color: #555; line-height: 1.6; }
.owned-action strong, .owned-impact strong { font-weight: 700; color: #111; }

.method-list { display: flex; flex-direction: column; gap: 20px; margin: 8px 0; }
.method-item { display: flex; gap: 16px; align-items: flex-start; }
.method-dot { width: 8px; height: 8px; border-radius: 50%; background: #111; flex-shrink: 0; margin-top: 6px; }
.method-title { font-size: 0.95rem; font-weight: 700; color: #111; margin-bottom: 4px; }

.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 8px 0; }
.stat-card { background: #f5f5f5; border-radius: 14px; padding: 28px 24px; display: flex; flex-direction: column; gap: 10px; }
.stat-number { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; color: #111; }
.stat-desc { font-size: 0.9rem; color: #555; line-height: 1.5; }

.decisions-stack { display: flex; flex-direction: column; gap: 20px; }
.decision-card { border-radius: 16px; border: 1px solid #ebebeb; padding: 32px 36px; display: flex; flex-direction: column; gap: 12px; }
.decision-number { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #bbb; }
.decision-title { font-size: 1.25rem; font-weight: 600; color: #111; }
.decision-body { display: flex; flex-direction: column; gap: 12px; font-size: 1rem; line-height: 1.8; color: #333; }
.decision-body strong { font-weight: 600; color: #111; }
.impact-note { font-size: 0.9rem; color: #888; line-height: 1.6; }

.outcome-list { display: flex; flex-direction: column; gap: 10px; margin: 8px 0; }
.outcome-item { font-size: 1rem; font-weight: 400; color: #333; line-height: 1.8; }
.heading-spaced-top { font-size: 2rem; font-weight: 500; color: #111; margin-top: 32px; }

.case-footer-btm {
  padding: 52px 0 72px; border-top: 1px solid #e8e8e8; margin-top: 32px;
  display: flex; justify-content: space-between; align-items: center;
}
.back-btn-large {
  background: #c4e3ff; border: none; padding: 0; cursor: pointer;
  font-family: 'Roboto Mono', monospace;
  font-size: clamp(12px, 1.1vw, 14px); font-weight: 400;
  text-decoration: underline; text-underline-offset: 2px;
  letter-spacing: 0.01em; color: #111;
  display: inline; transition: background 0.2s ease, color 0.2s ease;
}
.back-btn-large:hover { background: #f6e9b9; font-weight: 500; font-style: italic; color: #0069bf; }

/* ═══════════════════════════════════════
   TABLE OF CONTENTS (case study, desktop only)
   ═══════════════════════════════════════ */
.toc-nav { display: none; }

/* Reading progress bar — case study pages, hidden at wide where TOC shows */
.reading-bar {
  position: fixed;
  top: 60px; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(to right, #c4e3ff, #6981CE);
  z-index: 201;
  pointer-events: none;
  transform-origin: left;
}
/* ── Peek image modal (touch devices) ── */
.peek-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}
.peek-modal-overlay.active { opacity: 1; pointer-events: all; }
.peek-modal-img {
  max-width: 100%;
  max-height: 72vh;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
  display: block;
}
.peek-modal-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Roboto Mono', monospace;
  color: #111;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

/* About page — hover peek images on ✿ accent spans */
.hover-peek { position: relative; display: inline-block; cursor: default; }
.peek-img {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(10px) scale(0.91);
  width: 312px;
  max-width: none;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 9000;
  object-fit: cover;
}
.hover-peek:hover .peek-img {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}
.peek-below .peek-img {
  bottom: auto;
  top: calc(100% + 12px);
  transform: translateX(-50%) translateY(-10px) scale(0.91);
}
.peek-below:hover .peek-img {
  transform: translateX(-50%) translateY(0) scale(1);
}

@media (min-width: 1500px) {
  .toc-nav {
    display: block;
    position: fixed;
    top: 84px;
    /* Sits to the left of case-inner (max-width 1100px centred), with safe minimum from edge */
    left: max(10px, calc(50% - 750px));
    width: 220px;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
    scrollbar-width: none;
  }
  .toc-nav::-webkit-scrollbar { display: none; }

  .toc-heading {
    font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: #bbb; margin-bottom: 16px;
    font-family: 'Roboto Mono', monospace;
  }

  .toc-nav ul { list-style: none; display: flex; flex-direction: column; gap: 0; }

  .toc-nav a {
    display: block;
    font-size: 14px; font-weight: 400; line-height: 1.5;
    color: #aaa; font-family: 'Roboto Mono', monospace;
    padding: 8px 0 8px 14px;
    border-left: 2px solid #e8e8e8;
    text-decoration: none;
    transition: color 0.18s, border-color 0.18s;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .toc-nav a:hover { color: #555; border-left-color: #bbb; }
  .toc-nav a.toc-active { color: #111; border-left-color: #111; font-weight: 500; }
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
/* ── Tablet & mobile: full mobile layout from 1000px down ── */
@media (max-width: 1000px) {
  /* Hero: single column */
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas: "name" "sub" "gif" "body" "cta";
    min-height: auto; padding-top: 72px; padding-bottom: 48px;
    align-content: start; row-gap: 0;
  }
  .hero-illustration { width: clamp(300px, 85vw, 420px); margin: 24px auto; justify-self: center; }
  .hero-body { max-width: 100%; }

  .impact-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; }
  .section-meta { text-align: left; }
  .work-card.fade-in.visible { transform: translateY(0); }
  .work-card.fade-in.visible:hover { transform: translateY(-4px); }

  /* Nav: hamburger */
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }

  /* CTA: centered, use active styling */
  .cta-row { justify-content: center; gap: 28px; }
  .cta-label { background: #f6e9b9; font-weight: 500; font-style: italic; color: #0069bf; }

  /* Footer */
  .footer-credits { text-align: center; }

  /* About: heading → illustration → bio+faq */
  .about-hero {
    grid-template-columns: 1fr;
    grid-template-areas: "heading" "illus" "right";
    padding-top: 80px;
    row-gap: clamp(20px, 3vw, 32px);
  }
  .about-illustration { max-width: clamp(220px, 60vw, 360px); margin: 0 auto; }
  .faq-row { grid-template-columns: 1fr; gap: 4px; }


  /* Minimum 24px on all headers */
  .card-title { font-size: 24px; }
  .section-heading { font-size: 24px; }
}

/* Remove all hover effects on touch devices */
@media (hover: none) {
  .work-card:hover { box-shadow: none; }
  .work-card.fade-in.visible:hover { transform: translateY(0); }
}

/* ── Case study padding: restore gutters when column fills viewport ── */
@media (max-width: 780px) {
  .case-section,
  .case-hero,
  .principle-row,
  .back-row {
    padding-left: clamp(16px, 5vw, 28px);
    padding-right: clamp(16px, 5vw, 28px);
  }
}

@media (max-width: 700px) {
  .img-pair { grid-template-columns: 1fr; }
  .process-four { grid-template-columns: repeat(2, 1fr); }
  .principle-row { grid-template-columns: 1fr; }
  .img-small { max-width: 80%; }
  .problem-grid { grid-template-columns: 1fr; }
  .owned-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .decision-card { padding: 24px; }
}

/* ── Small phone fine-tuning ── */
@media (max-width: 640px) {
  .case-hero { padding: 20px clamp(16px, 5vw, 28px) 24px; }
  .case-content { padding: 40px 0 16px; gap: 48px; }
  .case-meta { gap: 20px; }
  .case-title { font-size: 1.8rem; }
}

@media (max-width: 400px) {
  .hero-illustration { width: 80vw; }
  .pot-icon { width: 52px; height: 52px; }
}
