/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ─── DESIGN TOKENS ─────────────────────────────────────
   WCAG audit:
   --ink    (#2C1810) on --bg (#FAF7F5): 14.2:1  AAA ✓
   --brown  (#4E342E) on --bg:           10.8:1  AAA ✓
   --muted  (#6D4C41) on --bg:            6.2:1  AA  ✓
   --pink   (#F092A0), decorative only (2.1:1 on bg)
   --peach  (#F0BD8B), decorative only (1.6:1 on bg)
   --mocha  (#A1887F), large text / UI only (3.1:1)
   --ink on --pink:    5.0:1  AA large ✓
   --cream on --brown: 10.8:1 AAA ✓
──────────────────────────────────────────────────────── */
:root {
  /* Core brand */
  --pink:   #F092A0;
  --brown:  #4E342E;
  --peach:  #F0BD8B;
  --mocha:  #A1887F;

  /* Text, all pass AA/AAA on --bg */
  --ink:       #2C1810;
  --ink-dim:   rgba(44,24,16,0.65);
  --ink-soft:  rgba(44,24,16,0.42);
  --ink-faint: rgba(44,24,16,0.12);

  /* Surfaces, derived from palette */
  --bg:      #FFFBF9;
  --bg2:     #FBF2ED;
  --bg3:     #F5E8E0;
  --bg4:     #EDD6C8;

  /* Accent tints, decorative use */
  --pink-lt:  #FDEEF3;
  --pink-mid: rgba(240,146,160,0.35);
  --peach-lt: #FEF4E5;
  --peach-mid:rgba(240,189,139,0.45);
  --brown-lt: #F5E6DE;

  /* Borders */
  --border:  rgba(44,24,16,0.09);
  --border2: rgba(44,24,16,0.05);

  /* Typography */
  --font: 'Manrope', system-ui, sans-serif;

  /* Radius */
  --r4:  4px;
  --r8:  8px;
  --r12: 12px;
  --r16: 16px;
}


body { font-family: var(--font); background: var(--bg); margin: 0; padding: 0; }












/* ─── PAGES ─── */



/* ═══════════════════════════════════════
   SITE NAV
═══════════════════════════════════════ */
.nav {
  position: sticky; top: 0; z-index: 150;
  background: rgba(250,247,245,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-in {
  max-width: 1200px; margin: 0 auto; padding: 0 5rem;
  display: flex; align-items: center; height: 60px; gap: 0;
}
.nav-logo {
  font-size: 0.85rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); margin-right: auto;
}
.nav-links {
  display: flex; list-style: none; align-items: center; gap: 0;
}
.nav-links li a {
  font-size: 0.8rem; font-weight: 600;
  color: var(--ink-dim); padding: 0 0.9rem;
  height: 60px; display: flex; align-items: center;
  transition: color 0.15s; letter-spacing: 0.01em;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-links li a:hover,
.nav-links li a.on { color: var(--ink); border-bottom-color: var(--pink); }
.nav-links .nav-resume a {
  margin-left: 0.75rem;
  background: var(--brown); color: var(--bg) !important;
  border-radius: var(--r4); padding: 0 1.1rem !important;
  height: auto !important; border-bottom: none !important;
  font-weight: 600; font-size: 0.78rem; letter-spacing: 0.03em;
  transition: background 0.15s !important;
}
.nav-links .nav-resume a:hover { background: var(--ink) !important; }

/* ═══════════════════════════════════════
   WRAP / CONTAINERS
═══════════════════════════════════════ */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 5rem; }

/* Section label, consistent across all sections */
.section-label {
  font-size: 0.88rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--mocha); margin-bottom: 3rem;
  display: flex; align-items: center; gap: 14px;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero { padding: 6.5rem 0 6rem; border-bottom: 1px solid var(--border); }
.hero-inner {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 4rem; align-items: end; margin-bottom: 4rem;
}
.hero-h1 {
  font-size: clamp(2.8rem, 4.5vw, 4.2rem);
  font-weight: 800; line-height: 1.08;
  letter-spacing: -0.03em; color: var(--ink);
  max-width: 20ch;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.9rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--mocha); margin-bottom: 2rem;
}
.hero-kicker::before {
  content: ''; width: 18px; height: 2px;
  background: var(--pink); flex-shrink: 0;
}.hero-h1 .light { font-weight: 300; color: var(--ink-dim); }
.hero-right { display: flex; flex-direction: column; gap: 2.25rem; justify-content: flex-end; }
.hero-sub {
  font-size: 1.2rem; font-weight: 500;
  color: var(--ink-dim); line-height: 1.9;
}
/* Inline highlight, pink tint bg, dark text stays AAA accessible */
.hl {
  background: var(--pink-lt);
  color: var(--ink);
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 3px;
  /* Ensures seamless inline flow */
  display: inline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-contact {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.88rem; font-weight: 700;
  color: var(--brown); letter-spacing: 0.01em;
  transition: gap 0.15s;
}
.hero-contact:hover { gap: 10px; }
.hero-contact::after { content: '↗'; font-size: 0.85em; font-weight: 400; }
.hero-contact:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; border-radius: 2px; }

.hero-bottom {
  display: flex; align-items: center;
  justify-content: space-between;
  padding-top: 3.5rem; border-top: 1px solid var(--border);
}
.hero-stats { display: flex; gap: 3.5rem; }
.h-stat-val {
  font-size: 2.2rem; font-weight: 800;
  color: var(--ink); line-height: 1; margin-bottom: 0.3rem;
}
.h-stat-val .a { color: var(--pink); }
.h-stat-lbl {
  font-size: 0.82rem; font-weight: 600;
  color: var(--ink-soft); letter-spacing: 0.06em; text-transform: uppercase;
  line-height: 1.5; margin-top: 0.35rem;
}
.hero-cta {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brown); cursor: pointer; transition: color 0.15s;
  background: none; border: none; padding: 0;
}
.hero-cta:hover { color: var(--ink); }
.hero-cta:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; border-radius: 2px; }
.cta-ring {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--brown);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; transition: all 0.15s;
}
.hero-cta:hover .cta-ring { border-color: var(--ink); background: var(--brown-lt); color: var(--ink); }

/* ═══════════════════════════════════════
   EXPERTISE
═══════════════════════════════════════ */
.expertise-section { padding: 5rem 0; border-bottom: 1px solid var(--border); }
.expertise-grid {
  display: grid; grid-template-columns: 2fr 1.4fr 1.3fr;
  border: 1px solid var(--border); border-radius: var(--r12); overflow: hidden;
}
.exp-col { padding: 2.75rem 2.25rem; border-right: 1px solid var(--border); background: var(--bg); }
.exp-col:last-child { border-right: none; }
.exp-col-label {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 1.5rem; font-weight: 800;
  padding-bottom: 1.1rem; border-bottom: 2px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.exp-icon {
  width: 24px; height: 24px; border-radius: var(--r4);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.exp-icon-pink  { background: var(--pink-lt); color: var(--brown); }
.exp-icon-peach { background: var(--peach-lt); color: var(--brown); }
.exp-icon-mocha { background: var(--bg2); color: var(--brown); }
.exp-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.exp-tag {
  font-size: 0.78rem; font-weight: 700; color: var(--ink);
  padding: 5px 13px; border-radius: 100px;
  border: 1px solid var(--border); background: var(--bg3);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  cursor: default;
}
.exp-tag:hover { border-color: var(--pink-mid); background: var(--pink-lt); color: var(--brown); }
.exp-tag-tool { font-weight: 700; background: var(--bg3); color: var(--ink); }
.exp-tag-tool:hover { background: var(--bg4); border-color: var(--border); color: var(--ink); }

/* ═══════════════════════════════════════
   WORK LIST
═══════════════════════════════════════ */
.work-section { padding: 7rem 0; }
.work-list { border-top: 1px solid var(--border); }

.work-item {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  gap: 2.5rem; align-items: stretch;
  padding: 2.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer; border-radius: var(--r8);
  margin: 0 -1.25rem;
  transition: background 0.12s;
}
.work-item:hover { background: var(--pink-lt); }
.work-item:hover .work-title { color: var(--brown); }
.work-item:hover .work-read { color: var(--brown); }
.work-item:focus-visible { outline: 2px solid var(--brown); outline-offset: -2px; border-radius: var(--r8); }

.work-num { font-size: 0.8rem; font-weight: 700; color: var(--ink-soft); letter-spacing: 0.04em; }

/* Thumbnails */
.work-thumb { display: none; }
.work-photo {
  border-radius: var(--r12); overflow: hidden;
  width: 300px; flex-shrink: 0;
  aspect-ratio: 2 / 3;
  position: relative; align-self: flex-start;
}
.work-read-more {
  display: flex; align-items: center; justify-content: flex-end;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brown); margin-top: 1.25rem;
  transition: color 0.15s;
}
.work-item:hover .work-read-more { color: var(--ink); }
.work-photo img {
  width: 100%; height: 100%;
  object-fit: cover; display: block; position: absolute; top: 0; left: 0;
  filter: sepia(8%) saturate(105%) brightness(1.02);
  transition: transform 0.4s ease, filter 0.4s ease;
}
.work-item:hover .work-photo img { filter: sepia(0%) saturate(105%) brightness(1.03); }
.work-item:hover .work-photo img { transform: scale(1.03); }
.work-photo-fallback {
  width: 100%; height: 100%; min-height: 220px;
  background: var(--bg2); display: flex;
  align-items: center; justify-content: center;
  border-radius: var(--r12);
}

.work-tags { display: flex; gap: 6px; margin-bottom: 0.75rem; flex-wrap: wrap; }
.work-tag {
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-soft); padding: 3px 10px;
  border: 1px solid var(--border); border-radius: 100px;
}
.work-tag.warm { color: var(--brown); border-color: var(--pink-mid); background: var(--pink-lt); }
.work-tag.soft { color: #5D4037; border-color: var(--peach-mid); background: var(--peach-lt); }
.work-tag.teal { color: #1A5C55; border-color: rgba(38,166,154,0.25); background: rgba(38,166,154,0.08); }
.work-tag.mocha { color: #5D3D2E; border-color: rgba(161,136,127,0.35); background: rgba(161,136,127,0.1); }

.work-title {
  font-size: 1.5rem; font-weight: 800;
  color: var(--ink); line-height: 1.25; margin-bottom: 1.1rem;
  transition: color 0.15s;
}
.work-meta { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 1.5rem; }
.work-field { display: grid; grid-template-columns: 155px 1fr; gap: 0.75rem; align-items: baseline; }
.wf-label {
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--brown); white-space: nowrap; font-weight: 800;
}
.wf-val { font-size: 1.05rem; color: var(--ink-dim); line-height: 1.65; font-weight: 500; }
.wf-val.impact { color: var(--ink-dim); font-weight: 600; }

.work-right {
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 0.6rem;
  padding-top: 0;
}
.work-stat {
  font-size: 0.78rem; font-weight: 700;
  color: var(--brown); text-align: right;
}
.work-read {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft);
  display: flex; align-items: center; gap: 4px;
  transition: color 0.15s; white-space: nowrap;
}
.work-read::after { content: '↗'; font-size: 0.85em; font-weight: 400; }

/* ═══════════════════════════════════════
   LOGOS
═══════════════════════════════════════ */
.logos-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.75rem 0;
}
.logos-in { display: flex; align-items: center; gap: 3rem; }
.logos-lbl {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); white-space: nowrap; flex-shrink: 0;
}
.logos-row { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.logo-placeholder {
  height: 52px; display: flex; align-items: center; justify-content: center;
  padding: 0 20px; border: 1px solid var(--border);
  border-radius: var(--r8); background: var(--bg2);
  opacity: 1; transition: border-color 0.15s, background 0.15s;
  cursor: pointer; text-decoration: none;
}
.logo-placeholder:hover { border-color: var(--brown); background: var(--bg3); }
.logo-placeholder img { height: 28px; width: auto; max-width: 130px; object-fit: contain; filter: grayscale(30%) sepia(10%); opacity: 0.85; }
.logo-fallback { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }

/* ═══════════════════════════════════════
   BACKGROUND (experience + education)
═══════════════════════════════════════ */
.about-section { padding: 7rem 0; border-top: 1px solid var(--border); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; }
.about-pull {
  font-size: 1.7rem; font-weight: 700; font-style: normal;
  color: var(--ink); line-height: 1.7; margin-bottom: 1.75rem;
}
.about-body { font-size: 1.1rem; font-weight: 500; color: var(--ink-dim); line-height: 1.85; }

.col-label {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 1.5rem;
  padding-bottom: 0.75rem; border-bottom: 1px solid var(--border);
}
.xp-item {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.5rem;
  padding: 1.5rem 0; border-bottom: 1px solid var(--border2); align-items: start;
}
.xp-item:last-child { border-bottom: none; }
.xp-yr {
  font-size: 0.72rem; font-weight: 700;
  color: var(--brown); letter-spacing: 0.06em;
  text-transform: uppercase; padding-top: 3px; line-height: 1.4;
  white-space: nowrap;
}
.xp-role { font-size: 1.05rem; font-weight: 800; color: var(--ink); margin-bottom: 0.2rem; line-height: 1.3; }
.xp-org { font-size: 0.95rem; color: var(--ink-dim); font-weight: 500; }

/* ═══════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════ */
.testi-section { padding: 7rem 0; border-top: 1px solid var(--border); }
.testi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; }
.testi-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r16); padding: 2.75rem 2.5rem;
}
.testi-mark {
  font-size: 3.5rem; line-height: 0.5; font-weight: 800;
  color: var(--pink); display: block; margin-bottom: 1.5rem;
}
.testi-text {
  font-size: 1.03rem; font-weight: 400; font-style: italic;
  color: var(--ink); line-height: 1.82; margin-bottom: 2rem;
}
.testi-by { display: flex; align-items: center; gap: 0.85rem; }
.testi-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1.5px solid var(--border); }
.testi-name { font-size: 0.88rem; font-weight: 800; color: var(--ink); }
.testi-role { font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.15rem; font-weight: 400; }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.footer {
  background: var(--brown);
  padding: 5.5rem 0;
}
.footer-in { display: flex; flex-direction: column; gap: 2.5rem; }
.footer-greeting {
  font-size: 1.15rem; font-weight: 400;
  color: rgba(250,247,245,0.95); line-height: 1.65;
  letter-spacing: 0.01em; margin-bottom: 0.5rem;
}
.footer-greeting strong { font-weight: 700; color: var(--bg); }
.footer-name {
  font-size: 0.85rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--bg); margin-bottom: 0.35rem;
}
.footer-sub { font-size: 0.78rem; color: rgba(250,247,245,0.5); font-weight: 400; }
.footer-links { display: flex; gap: 2rem; align-items: center; }
.footer-link {
  font-size: 0.82rem; font-weight: 500;
  color: rgba(250,247,245,0.82); transition: color 0.15s;
}
.footer-link:hover { color: var(--bg); }
.footer-link:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 2px; }
.footer-cta {
  font-size: 0.82rem; font-weight: 700; color: var(--peach);
  display: flex; align-items: center; gap: 4px; transition: gap 0.15s;
}
.footer-cta:hover { gap: 8px; color: var(--bg); }
.footer-cta::after { content: '↗'; font-weight: 400; }
.footer-cta:focus-visible { outline: 2px solid var(--peach); outline-offset: 3px; border-radius: 2px; }

/* ═══════════════════════════════════════
   PROJECT DETAIL PAGE
═══════════════════════════════════════ */
.proj-header { padding: 5.5rem 0 4.5rem; border-bottom: 1px solid var(--border); }
.proj-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 500;
  color: var(--ink-soft); margin-bottom: 2.5rem;
}
.proj-breadcrumb a { color: var(--ink-dim); transition: color 0.15s; }
.proj-breadcrumb a:hover { color: var(--brown); }
.proj-breadcrumb a:focus-visible { outline: 2px solid var(--brown); outline-offset: 2px; border-radius: 2px; }
.bc-div { color: var(--border); }

.proj-meta { display: flex; gap: 6px; margin-bottom: 1.5rem; flex-wrap: wrap; }
.proj-tag {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-soft); padding: 3px 10px;
  border: 1px solid var(--border); border-radius: 100px;
}
.proj-tag.warm  { color: var(--brown); border-color: var(--pink-mid); background: var(--pink-lt); }
.proj-tag.soft  { color: #5D4037; border-color: var(--peach-mid); background: var(--peach-lt); }
.proj-tag.teal  { color: #1A5C55; border-color: rgba(38,166,154,0.25); background: rgba(38,166,154,0.08); }
.proj-tag.mocha { color: #5D3D2E; border-color: rgba(161,136,127,0.35); background: rgba(161,136,127,0.1); }

.proj-h1 {
  font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.15;
  color: var(--ink); margin-bottom: 1.25rem; max-width: 22ch;
}
.proj-lead {
  font-size: 1.08rem; font-weight: 500;
  color: var(--ink-dim); line-height: 1.85;
  max-width: 52ch; margin-bottom: 3rem;
}
.kpi:last-child { border-right: none; }
.kpi-n .a { color: var(--brown); }
/* Project body */
.proj-body { display: grid; grid-template-columns: 1fr 280px; gap: 5rem; padding: 5rem 0; }
.proj-content h2 {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brown); margin-bottom: 1rem;
  margin-top: 3.5rem; padding-top: 3.5rem; border-top: 1px solid var(--border);
}
.proj-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.proj-content p { font-size: 1rem; font-weight: 500; color: var(--ink); line-height: 1.85; margin-bottom: 1.25rem; }

.challenge-list { list-style: none; margin-bottom: 1rem; }
.challenge-list li {
  font-size: 1rem; font-weight: 500; color: var(--ink);
  padding: 0.9rem 0 0.9rem 1.35rem;
  border-bottom: 1px solid var(--border2); line-height: 1.75; position: relative;
}
.challenge-list li:first-child { border-top: 1px solid var(--border2); }
.challenge-list li::before {
  content: ''; position: absolute; left: 0; top: 1.35rem;
  width: 5px; height: 5px; background: var(--pink); border-radius: 50%;
}

.step-card {
  border: 1px solid var(--border); border-radius: var(--r8);
  padding: 1.6rem 1.75rem; margin-bottom: 0.6rem; background: var(--bg);
  transition: border-color 0.15s, background 0.15s;
}
.step-card:hover { background: var(--pink-lt); border-color: var(--pink-mid); }
.step-n { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brown); margin-bottom: 0.5rem; }
.step-t { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 0.5rem; }
.step-d { font-size: 0.97rem; font-weight: 500; color: var(--ink); line-height: 1.8; }

.outcome-block {
  background: var(--peach-lt); border: 1px solid var(--peach-mid);
  border-radius: var(--r8); padding: 1.6rem 1.75rem; margin-bottom: 0.6rem;
}
.outcome-block .ol { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #7B4F1E; margin-bottom: 0.4rem; }
.outcome-block p { color: var(--ink); font-size: 1rem; line-height: 1.8; margin: 0; font-weight: 500; }

/* Sidebar */
.stat-card {
  background: var(--brown); border-radius: var(--r12);
  padding: 2.25rem 1.75rem; margin-bottom: 0.75rem;
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: -30px; right: -30px;
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--pink); opacity: 0.2;
}
.stat-card::after {
  content: ''; position: absolute; bottom: -20px; left: -20px;
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--peach); opacity: 0.2;
}
.sc-lbl { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(250,247,245,0.45); margin-bottom: 0.4rem; position: relative; z-index: 1; }
.sc-val { font-size: 3rem; font-weight: 800; color: var(--bg); line-height: 1; position: relative; z-index: 1; }
.sc-sub { font-size: 0.78rem; font-weight: 400; color: rgba(250,247,245,0.4); margin-top: 0.4rem; position: relative; z-index: 1; }

.sidebar-block { border: 1px solid var(--border); border-radius: var(--r8); padding: 1.5rem; margin-bottom: 0.75rem; background: var(--bg); }
.sb-lbl { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.9rem; }
.sb-methods { display: flex; flex-wrap: wrap; gap: 5px; }
.sb-method { font-size: 0.8rem; font-weight: 600; padding: 4px 11px; border-radius: 100px; background: var(--bg2); color: var(--ink); border: 1px solid var(--border); }
.sb-row { padding: 0.7rem 0; border-bottom: 1px solid var(--border2); font-size: 0.85rem; }
.sb-row:last-child { border-bottom: none; padding-bottom: 0; }
.sb-row strong { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.2rem; }
.sb-row span { color: var(--ink); font-weight: 500; line-height: 1.6; }

.back-link {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 0.9rem;
  border: 1.5px solid var(--border); border-radius: var(--r8);
  font-size: 0.78rem; font-weight: 700; color: var(--ink-dim);
  letter-spacing: 0.04em; background: var(--bg); transition: all 0.15s;
}
.back-link:hover { color: var(--brown); border-color: var(--pink-mid); background: var(--pink-lt); }
.back-link:focus-visible { outline: 2px solid var(--brown); outline-offset: 2px; }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
/* ── 900px: nav starts getting tight with 6 items ── */
@media (max-width: 960px) {
  .nav-links li a { padding: 0 0.6rem; font-size: 0.75rem; }
  .nav-links .nav-resume a { padding: 0 0.85rem !important; font-size: 0.72rem; }
}

/* ── 768px: full mobile treatment ── */
@media (max-width: 768px) {
  .wrap { padding: 0 1.25rem; }

  /* Nav: scrollable strip so all items remain accessible */
  .nav-in {
    padding: 0 1.25rem;
    height: auto;
    flex-wrap: wrap;
    gap: 0;
  }
  .nav-logo { padding: 0.9rem 0; margin-right: 0; width: 100%; border-bottom: 1px solid var(--border); }
  .nav-links {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0;
    gap: 0;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links li a {
    padding: 0.75rem 0.85rem;
    font-size: 0.72rem;
    height: auto;
    white-space: nowrap;
    border-bottom: none;
    border-right: 1px solid var(--border);
  }
  .nav-links li:last-child a { border-right: none; }
  .nav-links li a.on,
  .nav-links li a:hover { border-bottom: none; background: var(--pink-lt); color: var(--brown); }
  .nav-links .nav-resume a {
    border-radius: 0 !important;
    margin-left: 0 !important;
    height: auto !important;
    padding: 0.75rem 0.85rem !important;
    font-size: 0.72rem !important;
    border-right: none !important;
  }

  /* Hero */
  .hero { padding: 3.5rem 0 3rem; margin-top: 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-h1 { font-size: 2.4rem; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .hero-stats { gap: 2rem; flex-wrap: wrap; }

  /* Expertise */
  .expertise-grid { grid-template-columns: 1fr; }
  .exp-col { border-right: none; border-bottom: 1px solid var(--border); }
  .exp-col:last-child { border-bottom: none; }

  /* Work list, hide right col, collapse grid to num + content only */
  .work-item {
    grid-template-columns: 2rem 1fr;
    grid-template-rows: auto auto;
    margin: 0; padding: 1.75rem 0;
    gap: 0 1.25rem;
  }
  .work-thumb { display: none; }
  .work-right { display: none; }
  .work-field { grid-template-columns: 1fr; gap: 0.1rem; }
  .wf-label { white-space: normal; }
  .work-photo {
    grid-column: 1 / -1;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 6;
    border-radius: var(--r8);
    margin-top: 1.25rem;
    overflow: hidden;
    position: relative;
  }
  .work-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Background / about */
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }

  /* Testimonials */
  .testi-grid { grid-template-columns: 1fr; }

  /* Logos */
  .logos-in { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .logos-row { gap: 0.75rem; }

  /* Footer */
  .footer-links { flex-wrap: wrap; }

  /* Project page */
  .proj-body { grid-template-columns: 1fr; }
  /* Blog */
  .blog-post-row { grid-template-columns: 1fr; gap: 0.75rem; margin: 0; padding: 1.75rem 0; }
  .blog-post-date { font-size: 0.72rem; padding-top: 0; }
  .blog-read { display: none; }
  .post-body { grid-template-columns: 1fr; }
  .post-h1 { font-size: 1.9rem; }
}

/* ═══════════════════════════════════════
   BLOG
═══════════════════════════════════════ */
.blog-header { padding: 5.5rem 0 4rem; border-bottom: 1px solid var(--border); }
.blog-header h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 800; letter-spacing: -0.025em;
  line-height: 1.1; color: var(--ink);
  margin-bottom: 1rem;
}
.blog-header .blog-desc {
  font-size: 1.05rem; font-weight: 300;
  color: var(--ink-dim); line-height: 1.85;
  max-width: 52ch;
}

/* Post list */
.blog-list { padding: 5.5rem 0; }
.blog-post-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 2.5rem; align-items: start;
  padding: 2.25rem 1.25rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer; border-radius: var(--r8);
  margin: 0 -1.25rem;
  transition: background 0.12s;
}
.blog-post-row:hover { background: var(--pink-lt); }
.blog-post-row:hover .blog-post-title { color: var(--brown); }
.blog-post-row:hover .blog-read { color: var(--brown); }

.blog-post-date {
  font-size: 0.78rem; font-weight: 600;
  color: var(--ink-soft); letter-spacing: 0.05em;
  text-transform: uppercase; line-height: 1.4;
  padding-top: 0.3rem;
}
.blog-post-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 0.75rem; flex-wrap: wrap; }
.blog-post-tag {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 2px 9px; border-radius: 100px;
  border: 1px solid var(--border); color: var(--ink-soft);
  background: transparent;
}
.blog-post-tag.warm { color: var(--brown); border-color: var(--pink-mid); background: var(--pink-lt); }
.blog-post-title {
  font-size: 1.2rem; font-weight: 700;
  color: var(--ink); line-height: 1.3;
  margin-bottom: 0.6rem; transition: color 0.15s;
}
.blog-post-excerpt {
  font-size: 0.92rem; font-weight: 400;
  color: var(--ink-dim); line-height: 1.65;
  max-width: 58ch;
}
.blog-read {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft); display: flex; align-items: center;
  gap: 4px; transition: color 0.15s; white-space: nowrap;
  padding-top: 0.3rem;
}
.blog-read::after { content: '→'; font-size: 0.85em; font-weight: 400; }

/* Post detail */
.post-header { padding: 5.5rem 0 4rem; border-bottom: 1px solid var(--border); }
.post-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 2.5rem;
}
.post-breadcrumb a { color: var(--ink-dim); transition: color 0.15s; }
.post-breadcrumb a:hover { color: var(--brown); }
.post-tags { display: flex; gap: 6px; margin-bottom: 1.5rem; flex-wrap: wrap; }
.post-h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.18; color: var(--ink);
  margin-bottom: 1.5rem; max-width: 24ch;
}
.post-byline {
  display: flex; align-items: center; gap: 1.5rem;
  font-size: 0.82rem; font-weight: 500;
  color: var(--ink-soft);
}
.post-byline .sep { color: var(--border); }
.post-byline strong { color: var(--ink); font-weight: 700; }

/* Article body */
.post-body {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 5rem; padding: 5rem 0;
}
.post-article {}
.post-article p {
  font-size: 1rem; font-weight: 400;
  color: var(--ink-dim); line-height: 1.9;
  margin-bottom: 1.6rem; max-width: 62ch;
}
.post-article p.lead {
  font-size: 1.15rem; font-weight: 300;
  color: var(--ink-dim); line-height: 1.85;
  margin-bottom: 2rem;
}
.post-article .pullquote {
  border-left: 3px solid var(--pink);
  padding: 0.5rem 0 0.5rem 2rem;
  margin: 2.5rem 0;
  font-size: 1.12rem; font-weight: 400; font-style: italic;
  color: var(--ink); line-height: 1.7;
  max-width: 54ch;
}
.post-article .post-cta {
  margin-top: 2.5rem; padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.post-article .post-cta p {
  font-size: 1rem; font-weight: 600;
  color: var(--ink); max-width: none; margin-bottom: 0;
}
.post-hashtags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 1.25rem;
}
.post-hashtag {
  font-size: 0.78rem; font-weight: 600;
  color: var(--brown); padding: 4px 12px;
  background: var(--pink-lt); border: 1px solid var(--pink-mid);
  border-radius: 100px; transition: background 0.15s;
  cursor: default;
}

/* Blog sidebar */
.post-sidebar {}
.post-sidebar-card {
  border: 1px solid var(--border); border-radius: var(--r12);
  padding: 1.5rem; margin-bottom: 0.75rem; background: var(--bg2);
}
.post-sidebar-label {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 1rem;
}
.post-sidebar-author {
  display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1rem;
}
.post-sidebar-av {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg3); border: 1px solid var(--border);
  flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; font-weight: 700; color: var(--brown);
}
.post-sidebar-name { font-size: 0.88rem; font-weight: 700; color: var(--ink); }
.post-sidebar-role { font-size: 0.75rem; color: var(--ink-soft); margin-top: 0.15rem; }
.post-sidebar-bio {
  font-size: 0.85rem; color: var(--ink-dim);
  line-height: 1.65; margin-bottom: 0;
}

@media (max-width: 768px) {
  .blog-post-row { grid-template-columns: 1fr; gap: 1rem; margin: 0; padding: 1.75rem 0; }
  .blog-read { display: none; }
  .post-body { grid-template-columns: 1fr; }
  .post-h1 { font-size: 1.9rem; }
}

/* ═══════════════════════════════════════
   PUBLICATIONS
═══════════════════════════════════════ */
.pub-header { padding: 5.5rem 0 4rem; border-bottom: 1px solid var(--border); }
.pub-header h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 800; letter-spacing: -0.025em;
  line-height: 1.1; color: var(--ink); margin-bottom: 1rem;
}
.pub-header-desc {
  font-size: 1.05rem; font-weight: 300;
  color: var(--ink-dim); line-height: 1.85;
  max-width: 52ch; margin-bottom: 2rem;
}
.pub-profile-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.pub-profile-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.8rem; font-weight: 700;
  color: var(--brown); padding: 7px 16px;
  border: 1.5px solid var(--brown); border-radius: var(--r4);
  text-decoration: none; transition: background 0.15s, color 0.15s;
  letter-spacing: 0.02em;
}
.pub-profile-link::after { content: '↗'; font-weight: 400; font-size: 0.85em; }
.pub-profile-link:hover { background: var(--brown); color: var(--bg); }

/* Filter bar */
.pub-filters {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 0; margin-bottom: 0;
}
.pub-filter-btn {
  font-family: var(--font);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft); background: none; border: none;
  padding: 1rem 1.5rem; cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.pub-filter-btn:hover { color: var(--ink); }
.pub-filter-btn.on { color: var(--brown); border-bottom-color: var(--brown); }
.pub-filter-btn[onclick*="journal"].on { color: var(--brown); border-bottom-color: var(--pink); }
.pub-filter-btn[onclick*="presentation"].on { color: var(--mocha); border-bottom-color: var(--mocha); }
.pub-filter-btn[onclick*="conf"].on { color: #7B4F1E; border-bottom-color: var(--peach); }
.pub-filter-btn[onclick*="poster"].on { color: var(--ink); border-bottom-color: var(--ink-soft); }
.pub-filter-btn[onclick*="panel"].on { color: var(--brown); border-bottom-color: var(--brown); }
.pub-count {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 100px;
  background: var(--bg3); color: var(--ink-soft);
  font-size: 0.65rem; font-weight: 700;
  margin-left: 6px; vertical-align: middle;
}
.pub-filter-btn.on .pub-count { background: var(--pink-lt); color: var(--brown); }

/* List */
.pub-list { padding: 0 0 5.5rem; }

.pub-year-group { margin-top: 3rem; }
.pub-year-label {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); padding: 0 0 0.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
  display: flex; align-items: center; gap: 12px;
}
.pub-year-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.pub-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1.5rem; align-items: start;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border2);
}
.pub-item > div:last-child { min-width: 0; overflow-wrap: break-word; }
.pub-item:last-child { border-bottom: none; }
.pub-type-badge {
  display: inline-block;
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 8px; border-radius: var(--r4);
  text-align: center; line-height: 1.35;
  white-space: normal; word-break: keep-all;
  margin-top: 0.15rem; min-width: 0;
}
.badge-journal      { background: var(--pink-lt); color: var(--brown); border: 1px solid var(--pink-mid); }
.badge-conf         { background: var(--peach-lt); color: #7B4F1E; border: 1px solid var(--peach-mid); }
.badge-poster       { background: var(--bg3); color: var(--ink-soft); border: 1px solid var(--border); }
.badge-ms           { background: var(--bg3); color: var(--ink-soft); border: 1px solid var(--border); font-style: italic; }
.badge-presentation { background: var(--peach-lt); color: #7B4F1E; border: 1px solid var(--peach-mid); }
.badge-panel        { background: var(--bg3); color: var(--ink-soft); border: 1px solid var(--border); }

.pub-authors {
  font-size: 0.85rem; font-weight: 400;
  color: var(--ink-dim); line-height: 1.5;
  margin-bottom: 0.4rem;
}
.pub-authors .me { font-weight: 700; color: var(--brown); }
.pub-title {
  font-size: 0.97rem; font-weight: 600;
  color: var(--ink); line-height: 1.5;
  margin-bottom: 0.4rem;
}
.pub-venue {
  font-size: 0.82rem; font-style: italic;
  color: var(--ink-dim); line-height: 1.5;
}
.pub-venue strong { font-style: normal; font-weight: 600; color: var(--ink); }
.pub-authors, .pub-title, .pub-venue { overflow-wrap: break-word; word-break: break-word; }

@media (max-width: 768px) {
  .pub-item { grid-template-columns: 1fr; gap: 0.6rem; }
  .pub-type-badge { font-size: 0.6rem; padding: 3px 8px; }
  .pub-filters { flex-wrap: wrap; border-bottom: none; gap: 0.4rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }
  .pub-filter-btn { padding: 0.55rem 0.9rem; font-size: 0.72rem; border: 1px solid var(--border); border-radius: var(--r4); border-bottom: 1px solid var(--border); white-space: nowrap; }
  .pub-filter-btn.on { border-color: var(--brown); background: var(--pink-lt); }
}

/* ─── BLOG PAGINATION ─── */
.blog-pagination {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2.5rem 0 5.5rem;
  border-top: 1px solid var(--border);
  margin-top: 0;
}
.blog-page-info {
  font-size: 0.78rem; font-weight: 600;
  color: var(--ink-soft); letter-spacing: 0.04em;
}
.blog-page-btns { display: flex; gap: 4px; align-items: center; }
.blog-page-btn {
  font-family: var(--font);
  font-size: 0.8rem; font-weight: 700;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--r4);
  background: transparent; color: var(--ink-dim);
  cursor: pointer; transition: all 0.15s;
}
.blog-page-btn:hover { border-color: var(--brown); color: var(--brown); background: var(--brown-lt); }
.blog-page-btn.on { background: var(--brown); color: var(--bg); border-color: var(--brown); }
.blog-page-btn:disabled { opacity: 0.3; cursor: not-allowed; pointer-events: none; }
.blog-page-btn.nav-btn { width: auto; padding: 0 14px; gap: 4px; }

/* ─── NEXT POST PREVIEW ─── */
.next-post-section {
  border-top: 1px solid var(--border);
  padding: 3.5rem 0;
  background: var(--bg2);
}
.next-post-label {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 1.75rem;
  display: flex; align-items: center; gap: 12px;
}
.next-post-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.next-post-card {
  display: grid; grid-template-columns: 1fr auto;
  gap: 3rem; align-items: center;
  padding: 2rem 2.25rem;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r12); cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-decoration: none; color: inherit;
}
.next-post-card:hover { border-color: var(--pink-mid); background: var(--pink-lt); }
.next-post-card:hover .next-post-title { color: var(--brown); }
.next-post-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 0.6rem; flex-wrap: wrap; }
.next-post-date { font-size: 0.75rem; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.04em; text-transform: uppercase; }
.next-post-title { font-size: 1.15rem; font-weight: 700; color: var(--ink); line-height: 1.35; margin-bottom: 0.5rem; transition: color 0.15s; }
.next-post-excerpt { font-size: 0.88rem; color: var(--ink-dim); line-height: 1.6; max-width: 52ch; }
.next-post-arrow {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--ink-soft); flex-shrink: 0;
  transition: all 0.15s;
}
.next-post-card:hover .next-post-arrow { border-color: var(--brown); color: var(--brown); background: var(--brown-lt); }

@media (max-width: 768px) {
  .next-post-card { grid-template-columns: 1fr; }
  .next-post-arrow { display: none; }
  .blog-pagination { flex-direction: column; gap: 1rem; }
}

/* ─── HAMBURGER MENU (CSS-only checkbox hack) ─── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.22s, opacity 0.22s;
  transform-origin: center;
}
.nav-toggle-input { position: absolute; width: 0; height: 0; margin: 0; padding: 0; overflow: hidden; }

.nav-toggle-input:checked ~ .nav .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle-input:checked ~ .nav .nav-hamburger span:nth-child(2) { opacity: 0; }
.nav-toggle-input:checked ~ .nav .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 60px; left: 0; right: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 200;
  box-shadow: 0 8px 24px rgba(44,24,16,0.08);
}
.nav-toggle-input:checked ~ .nav-mobile-menu { display: block; }

.nav-mobile-menu ul { list-style: none; padding: 0.5rem 0 1rem; margin: 0; }
.nav-mobile-menu ul li a {
  display: block;
  font-family: var(--font);
  font-size: 0.95rem; font-weight: 500;
  color: var(--ink-dim);
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid var(--border2);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.nav-mobile-menu ul li a:hover { color: var(--brown); background: var(--pink-lt); }
.nav-mobile-menu ul li:last-child a { border-bottom: none; color: var(--brown); font-weight: 700; }

@media (max-width: 768px) {
  .nav-links { display: none !important; }
  .nav-hamburger { display: flex; }
  .nav-in { height: 60px; flex-wrap: nowrap; padding: 0 1.25rem; }
  .nav-logo { width: auto; padding: 0; border-bottom: none; }
}
@media (min-width: 769px) {
  .nav-mobile-menu,
  .nav-hamburger { display: none !important; }
  }

/* ─── About portrait ─── */
.about-portrait-wrap {
  width: 100%;
  border-radius: var(--r12);
  overflow: hidden;
  margin-bottom: 2rem;
  aspect-ratio: 4 / 3;
}
.about-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
  filter: sepia(8%) saturate(105%) brightness(1.02);
  transition: transform 0.4s ease, filter 0.4s ease;
}
.about-portrait-wrap:hover .about-portrait { transform: scale(1.02); filter: sepia(0%) saturate(105%) brightness(1.03); }

/* ─── Expertise pill cloud ─── */
.exp-cloud {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
}
.exp-pill {
  font-size: 0.82rem; font-weight: 600;
  color: var(--ink);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r4);
  padding: 0.45rem 1rem;
  cursor: default;
  user-select: none;
}

/* ─── Footer CTA block ─── */
.footer-headline {
  font-size: 1.35rem; font-weight: 700;
  color: var(--bg); line-height: 1.3;
  margin-bottom: 0.75rem; letter-spacing: -0.01em;
}
.footer-sub-text {
  font-size: 0.92rem; font-weight: 400;
  color: rgba(250,247,245,0.7); line-height: 1.7;
  max-width: 46ch; margin-bottom: 2rem;
}
.footer-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.footer-btn {
  font-family: var(--font); font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.02em; border-radius: var(--r4);
  padding: 0.75rem 1.5rem; text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  display: inline-flex; align-items: center;
}
.footer-btn-outline {
  background: transparent;
  border: 1.5px solid rgba(250,247,245,0.4);
  color: var(--bg);
}
.footer-btn-outline:hover { border-color: var(--bg); background: rgba(250,247,245,0.08); }
.footer-btn-fill {
  background: var(--peach);
  border: 1.5px solid var(--peach);
  color: var(--brown);
}
.footer-btn-fill:hover { background: var(--bg); border-color: var(--bg); color: var(--brown); }

/* ─── Clickable stats ─── */
.h-stat-link {
  display: block; text-decoration: none; color: inherit;
  cursor: pointer; transition: opacity 0.15s;
}
.h-stat-link:hover { opacity: 0.7; }
.h-stat-link:hover .h-stat-val { color: var(--brown); }
.h-stat-link:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; border-radius: var(--r4); }

/* ─── 404 Page ─── */
.notfound-section {
  min-height: 100vh; display: flex; align-items: center;
  padding: 6.5rem 0 6rem; background: var(--bg);
  position: relative; overflow: hidden;
}
.notfound-wrap { position: relative; z-index: 2; }
.notfound-blob-field { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.nf-blob {
  position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: 0.55;
  animation: blobFloat 8s ease-in-out infinite alternate;
}
.nf-blob-1 { width: 420px; height: 420px; background: var(--pink-lt); top: -80px; right: -100px; animation-delay: 0s; }
.nf-blob-2 { width: 320px; height: 320px; background: var(--peach-lt); bottom: -60px; left: -80px; animation-delay: -3s; }
.nf-blob-3 { width: 200px; height: 200px; background: var(--brown-lt); top: 40%; left: 40%; animation-delay: -5s; }
@keyframes blobFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(20px, -20px) scale(1.06); }
}
.notfound-content { position: relative; z-index: 2; max-width: 640px; }
.nf-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--mocha); margin-bottom: 1.5rem;
}
.nf-kicker::before { content: ''; width: 18px; height: 2px; background: var(--pink); flex-shrink: 0; }
.notfound-h1 {
  font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.08; color: var(--ink); margin-bottom: 1.5rem;
}
.nf-accent { font-weight: 300; color: var(--ink-dim); }
.notfound-sub {
  font-size: 1.05rem; font-weight: 500; color: var(--ink-dim);
  line-height: 1.8; max-width: 44ch; margin-bottom: 2.5rem;
}
.nf-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.nf-btn-primary {
  display: inline-flex; align-items: center;
  font-family: var(--font); font-size: 0.88rem; font-weight: 700;
  letter-spacing: 0.02em; padding: 0.85rem 1.75rem;
  background: var(--brown); color: #FAF7F5;
  border-radius: var(--r4); text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.nf-btn-primary:hover { background: var(--ink); transform: translateY(-2px); }
.nf-btn-ghost {
  display: inline-flex; align-items: center;
  font-family: var(--font); font-size: 0.88rem; font-weight: 700;
  letter-spacing: 0.02em; padding: 0.85rem 1.75rem;
  background: transparent; color: var(--brown);
  border: 1.5px solid rgba(78,52,46,0.3);
  border-radius: var(--r4); text-decoration: none;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.nf-btn-ghost:hover { border-color: var(--brown); background: var(--brown-lt); transform: translateY(-2px); }
.nf-404-bg {
  position: absolute; top: 50%; right: -2rem;
  transform: translateY(-50%);
  font-size: clamp(10rem, 22vw, 18rem);
  font-weight: 800; letter-spacing: -0.05em;
  color: var(--bg3); line-height: 1;
  user-select: none; pointer-events: none; z-index: -1;
}


/* ─── Freelance High-Exposure Colors ─── */
.fl-hero, .fl-services, .fl-process, .fl-fit { background: #FFFBF9; }
.fl-packages { background: #F5E8E0; }
.fl-hero-kicker { color: #2C1810; }
.fl-hero-kicker::before { background: #F092A0; }
.fl-hero-h1 { color: #2C1810; }
.fl-hero-h1 em { color: #A1887F; }
.fl-hero-sub { font-size: 1.1rem; font-weight: 500; color: #4E342E; line-height: 1.85; max-width: 42ch; }





.fl-pkg { background: #FFFBF9; border-color: #E8D0C4; }
.fl-pkg:hover { border-color: #F092A0; box-shadow: 0 6px 28px rgba(240,146,160,.18); }
.fl-pkg-num { color: #A1887F; font-size: 1.15rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.fl-pkg-name { color: #2C1810; font-size: 1.5rem; }
.fl-pkg-price { background: #F092A0; color: #fff; border: none; font-size: 1rem; font-weight: 700; padding: 5px 16px; border-radius: 100px; display: inline-block; }
.fl-pkg-desc { font-size: 1.1rem; font-weight: 500; color: #2C1810; line-height: 1.6; }
.fl-pkg-includes li { font-size: 1.1rem; font-weight: 500; color: #2C1810; padding-left: 1.5rem; position: relative; list-style: none; line-height: 1.6; }
.fl-pkg-includes li::before { content: "✓"; position: absolute; left: 0; color: #F092A0; font-size: 1rem; font-weight: 700; }
.fl-pkg-timeline { font-size: 0.88rem; font-weight: 600; color: #4E342E; border-top: 1px solid #E8D0C4; padding-top: .75rem; margin-top: auto; }
.fl-step-num { color: #F092A0; font-size: 3.5rem; }
.fl-step-title { font-size: 1.1rem; font-weight: 800; color: #2C1810; }
.fl-step-desc { font-size: 1.1rem; font-weight: 500; color: #2C1810; line-height: 1.7; }
.fl-fit-label.yes { color: #4E342E; font-size: 0.95rem; }
.fl-fit-label.no { color: #A1887F; font-size: 0.95rem; }
.fl-fit-list li { font-size: 1.1rem; font-weight: 500; color: #2C1810; padding-left: 1.25rem; position: relative; line-height: 1.6; }
.fl-fit-list.yes li::before { color: #F092A0; }
.fl-fit-list.no li::before { color: #BDB9B7; }
.fl-hero ~ * .section-label, .fl-services .section-label, .fl-packages .section-label, .fl-process .section-label, .fl-fit .section-label { color: #4E342E; font-size: 1rem; letter-spacing: 0.08em; }


/* ─── Services Redesign ─── */
.fl-services-grid { display: flex; flex-direction: column; gap: 0; margin-top: 2.75rem; }
.fl-svc-row { display: grid; grid-template-columns: 72px 1fr 1fr; gap: 2.5rem; align-items: start; padding: 2.5rem 0; border-bottom: 1px solid #E8D0C4; }
.fl-svc-row:first-child { border-top: 1px solid #E8D0C4; }
.fl-svc-icon { font-size: 2.2rem; line-height: 1; margin-top: .2rem; }
.fl-svc-body { display: flex; flex-direction: column; gap: .5rem; }
.fl-svc-title { font-size: 1.4rem; font-weight: 800; color: #2C1810; letter-spacing: -0.01em; }
.fl-svc-desc { font-size: 1.1rem; font-weight: 500; color: #4E342E; line-height: 1.6; max-width: 36ch; }
.fl-svc-tags { display: flex; flex-wrap: wrap; gap: .5rem; align-content: flex-start; padding-top: .25rem; }
.fl-svc-tag { font-size: 1rem; font-weight: 600; padding: 5px 14px; border-radius: 100px; background: #FAF3EF; border: 1px solid #E8D0C4; color: #4E342E; }
@media (max-width: 768px) {
  .fl-svc-row { grid-template-columns: 48px 1fr; }
  .fl-svc-tags { grid-column: 1 / -1; }
}


/* ─── Package Ribbon ─── */
.fl-pkg { position: relative; overflow: hidden; }
.fl-pkg-ribbon {
  position: absolute; top: 0; right: 0;
  background: #F092A0; color: #fff;
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 0 var(--r12) 0 var(--r8);
  white-space: normal;
  width: 160px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(240,146,160,.25);
  z-index: 2;
  transition: background .15s;
  line-height: 1.4;
  text-align: center;
}
.fl-pkg-ribbon-availability {
  white-space: normal;
  width: 160px;
  padding: 6px 14px;
}
.fl-pkg-ribbon:hover { background: #4E342E; }
.fl-pkg-ribbon.fl-pkg-ribbon-cognitive { background: #5C6EAB !important; }
.fl-pkg-ribbon.fl-pkg-ribbon-cognitive:hover { background: #3D4E8A !important; }
.fl-pkg-ribbon.fl-pkg-ribbon-availability { background: #4E342E !important; }
.fl-pkg-ribbon.fl-pkg-ribbon-availability:hover { background: #2C1810 !important; }

.fl-step-note { font-size: 0.88rem; font-weight: 600; color: #A1887F; margin-top: .4rem; line-height: 1.5; }

/* ─── Inquiry Form ─── */
.fl-form-section { padding: 6rem 0; background: var(--bg2); border-top: 1px solid #E8D0C4; }
.fl-form-intro { margin-bottom: 2.5rem; }
.fl-form-intro h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; color: #2C1810; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: .75rem; }
.fl-form-intro p { font-size: 1.05rem; font-weight: 500; color: #4E342E; line-height: 1.7; max-width: 48ch; }
.fl-form { display: flex; flex-direction: column; gap: 1.5rem; max-width: 680px; }
.fl-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.fl-field { display: flex; flex-direction: column; gap: .4rem; }
.fl-field label { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #A1887F; }
.fl-field input, .fl-field textarea { font-family: 'Manrope', system-ui, sans-serif; font-size: 1rem; font-weight: 500; color: #2C1810; background: #FFFBF9; border: 1.5px solid #E8D0C4; border-radius: var(--r8); padding: .75rem 1rem; outline: none; transition: border-color .15s; width: 100%; box-sizing: border-box; }
.fl-field input:focus, .fl-field textarea:focus { border-color: #F092A0; }
.fl-field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.fl-pkg-options { display: flex; flex-direction: column; gap: .65rem; }
.fl-radio-item { display: flex; align-items: flex-start; gap: .75rem; cursor: pointer; }
.fl-radio-item input[type="radio"] { margin-top: 3px; accent-color: #F092A0; width: 17px; height: 17px; flex-shrink: 0; cursor: pointer; }
.fl-radio-item span { font-size: 1rem; font-weight: 500; color: #2C1810; line-height: 1.4; }
.fl-radio-item span small { display: block; font-size: 0.82rem; color: #A1887F; margin-top: 1px; }
.fl-timeline-options { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.fl-timeline-item { display: flex; align-items: center; gap: .6rem; cursor: pointer; }
.fl-timeline-item input[type="radio"] { accent-color: #F092A0; width: 16px; height: 16px; flex-shrink: 0; cursor: pointer; }
.fl-timeline-item span { font-size: 1rem; font-weight: 500; color: #2C1810; }
.fl-submit-btn { display: inline-flex; align-items: center; justify-content: center; font-family: 'Manrope', system-ui, sans-serif; font-size: 1rem; font-weight: 700; letter-spacing: 0.02em; padding: .9rem 2.5rem; background: #4E342E; color: #FAF7F5; border: none; border-radius: var(--r4); cursor: pointer; transition: background .15s; align-self: flex-start; }
.fl-submit-btn:hover { background: #2C1810; }
.fl-form-note { font-size: 0.82rem; color: #A1887F; font-weight: 500; line-height: 1.6; }
.fl-success-msg { display: none; background: var(--pink-lt); border: 1px solid var(--pink-mid); border-radius: var(--r8); padding: 1.25rem 1.5rem; font-size: 1rem; font-weight: 600; color: var(--brown); }
@media (max-width: 768px) { .fl-form-row { grid-template-columns: 1fr; } .fl-timeline-options { grid-template-columns: 1fr; } }

/* ─── Freelance Page ─── */
.fl-hero { padding: calc(6rem + 60px) 0 5rem; border-bottom: 1px solid var(--border); background: var(--bg); }
.fl-hero-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mocha); margin-bottom: 1.5rem; }
.fl-hero-kicker::before { content: ''; width: 18px; height: 2px; background: var(--pink); flex-shrink: 0; }
.fl-hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 5rem; align-items: end; }
.fl-hero-h1 { font-size: clamp(2.2rem, 3.5vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.06; color: var(--ink); margin-bottom: 1.25rem; }
.fl-hero-h1 em { font-style: normal; font-weight: 300; color: var(--ink-dim); }
.fl-hero-sub { font-size: 1.1rem; font-weight: 500; color: #4E342E; line-height: 1.85; max-width: 42ch; }
.fl-hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; }
.fl-btn { display: inline-flex; align-items: center; font-family: var(--font); font-size: 0.95rem; font-weight: 700; letter-spacing: 0.02em; padding: .75rem 1.6rem; border-radius: var(--r4); text-decoration: none; transition: background .15s, color .15s; }
.fl-btn-fill { background: var(--brown); color: #FAF7F5 !important; }
.fl-btn-fill:hover { background: var(--ink); }
.fl-btn-outline { background: transparent; color: var(--brown) !important; border: 1.5px solid rgba(78,52,46,.3); }
.fl-btn-outline:hover { border-color: var(--brown); background: var(--brown-lt); }

/* Services overview */
.fl-services { padding: 6rem 0; border-bottom: 1px solid var(--border); background: var(--bg); }








/* Packages */
.fl-packages { padding: 6rem 0; border-bottom: 1px solid var(--border); background: var(--bg2); }
.fl-pkg-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-top: 2.75rem; max-width: 760px; }
.fl-pkg { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r12); padding: 2.25rem 2.25rem 1.75rem; display: flex; flex-direction: column; gap: 1.25rem; transition: border-color .15s, box-shadow .15s; }
.fl-pkg:hover { border-color: var(--pink-mid); box-shadow: 0 4px 20px rgba(240,146,160,.1); }
.fl-pkg-num { color: #A1887F; font-size: 1.15rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.fl-pkg-name { font-size: 1.25rem; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; line-height: 1.2; }
.fl-pkg-price { background: #F092A0; color: #fff; border: none; font-size: 1rem; font-weight: 700; padding: 5px 16px; border-radius: 100px; display: inline-block; }
.fl-pkg-desc { font-size: 1.1rem; font-weight: 500; color: #2C1810; line-height: 1.6; }
.fl-pkg-includes { display: flex; flex-direction: column; gap: .8rem; }
.fl-pkg-includes li { font-size: 1.1rem; font-weight: 500; color: #2C1810; padding-left: 1.5rem; position: relative; list-style: none; line-height: 1.6; }
.fl-pkg-includes li::before { content: "✓"; position: absolute; left: 0; color: #F092A0; font-size: 1rem; font-weight: 700; }
.fl-pkg-timeline { font-size: 0.88rem; font-weight: 600; color: #4E342E; border-top: 1px solid #E8D0C4; padding-top: .75rem; margin-top: auto; }

/* Process */
.fl-process { padding: 6rem 0; border-bottom: 1px solid var(--border); background: var(--bg); }
.fl-process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 2.75rem; }
.fl-step { display: flex; flex-direction: column; gap: .75rem; }
.fl-step-num { font-size: 3.5rem; font-weight: 800; color: #F092A0; line-height: 1; }
.fl-step-title { font-size: 1.1rem; font-weight: 800; color: #2C1810; }
.fl-step-desc { font-size: 1.1rem; font-weight: 500; color: #2C1810; line-height: 1.7; }

/* Fit */
.fl-fit { padding: 6rem 0; border-bottom: 1px solid var(--border); background: var(--bg); }
.fl-fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 2.75rem; }
.fl-fit-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.25rem; }
.fl-fit-label.yes { color: var(--brown); }
.fl-fit-label.no { color: var(--ink-soft); }
.fl-fit-list { display: flex; flex-direction: column; gap: .6rem; list-style: none; padding: 0; }
.fl-fit-list li { font-size: 1.1rem; font-weight: 500; color: #2C1810; padding-left: 1.25rem; position: relative; line-height: 1.6; }
.fl-fit-list.yes li::before { content: '✓'; position: absolute; left: 0; color: var(--pink); font-weight: 700; }
.fl-fit-list.no li::before { content: '×'; position: absolute; left: 0; color: var(--ink-soft); }

/* Mobile */
@media (max-width: 768px) {
  .fl-hero { padding: calc(3.5rem + 60px) 0 4rem; }
  .fl-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .fl-pkg-grid { grid-template-columns: 1fr; }
  .fl-process-grid { grid-template-columns: 1fr 1fr; }
  .fl-fit-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}


/* ─── FAQ Section ─── */
.fl-faq-section { padding: 6rem 0; background: var(--bg); border-top: 1px solid #E8D0C4; }
.fl-faq-intro { margin-bottom: 3rem; }
.fl-faq-intro .fl-faq-kicker { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #A1887F; margin-bottom: .75rem; }
.fl-faq-intro h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; color: #2C1810; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: .75rem; }
.fl-faq-intro p { font-size: 1.05rem; font-weight: 500; color: #4E342E; line-height: 1.7; max-width: 52ch; }
.fl-faq-list { display: flex; flex-direction: column; max-width: 760px; }
.fl-faq-item { border-bottom: 1px solid #E8D0C4; }
.fl-faq-item:first-child { border-top: 1px solid #E8D0C4; }
.fl-faq-btn { display: flex; justify-content: space-between; align-items: center; width: 100%; background: none; border: none; cursor: pointer; padding: 1.5rem 0; text-align: left; gap: 1rem; font-family: 'Manrope', system-ui, sans-serif; }
.fl-faq-q { font-size: 1.1rem; font-weight: 700; color: #2C1810; line-height: 1.4; }
.fl-faq-icon { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: #F5E8E0; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: #F092A0; font-weight: 700; transition: transform .25s, background .2s; }
.fl-faq-item.open .fl-faq-icon { transform: rotate(45deg); background: #F092A0; color: #fff; }
.fl-faq-answer { overflow: hidden; max-height: 0; transition: max-height .35s ease, padding .25s ease; padding: 0; }
.fl-faq-item.open .fl-faq-answer { max-height: 400px; padding-bottom: 1.5rem; }
.fl-faq-answer p { font-size: 1rem; font-weight: 500; color: #4E342E; line-height: 1.75; }

/* ── static-site additions ── */
html { scroll-behavior: smooth; }
#work, [id^="work-item-"], #fl-inquiry-anchor, #fl-faq-heading { scroll-margin-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--brown); color: #FAF7F5; padding: .6rem 1rem; z-index: 1000; border-radius: 0 0 8px 0; font-weight: 700; }
.skip-link:focus { left: 0; }

/* 404 page (classes used in the design but never styled) */
.nf-outer { padding: calc(5rem + 60px) 0 2.5rem; }
.nf-num { display: block; font-size: clamp(5rem, 12vw, 8.5rem); font-weight: 800; line-height: 1; letter-spacing: -0.05em; color: var(--pink); opacity: .55; margin-bottom: 1.25rem; }
.nf-h1 { font-size: clamp(2.4rem, 4.5vw, 4rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; color: var(--ink); max-width: 18ch; margin: 0; }
.nf-light { font-weight: 300; color: var(--ink-dim); }
.nf-sub { font-size: 1.05rem; font-weight: 500; color: var(--ink); line-height: 1.8; max-width: 60ch; }
.nf-game-wrap { padding: 0 0 6rem; }
.nf-game-wrap .wrap > * { max-width: 640px; }
@media (max-width: 900px) { .nf-outer { padding-top: calc(3rem + 60px); } }

/* Divider between featured research and other projects on the homepage */
.more-work-label { margin-top: 4rem; }
