:root {
  --bg-dark: #1a2942;
  --bg-dark-rgb: 26, 41, 66;
  --bg-light: #f7f5f1;
  --ink: #0f0f0f;
  --ink-rgb: 15, 15, 15;
  --cream: #f5f0e6;
  --cream-rgb: 245, 240, 230;
  --accent: #c8954a;
  --rule: #2d3d5a;
  --card-bg: #ffffff;
  --border: rgba(var(--ink-rgb), 0.12);
  --muted: rgba(var(--ink-rgb), 0.62);
  --radius-lg: 28px;
  --radius-full: 999px;
  --radius-blob-a: 96px 28px 96px 28px;
  --radius-blob-b: 28px 96px 28px 96px;
  --max-width: 1160px;
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Karla", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-light);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
}

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--bg-dark); color: var(--cream); }
.btn-secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--border); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 76px;
}
.logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-dark);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  text-decoration: none;
}
.main-nav {
  display: flex;
  gap: 24px;
  list-style: none;
}
.main-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
  padding: 4px 0;
}
.main-nav a.active { color: var(--accent); font-weight: 700; }
.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-label {
  color: var(--muted);
  font-size: 14px;
  display: none;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

/* Section labels */
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
}

section { padding: 52px 0; }

/* Blob panels */
.panel {
  padding: 44px;
  position: relative;
}
.blob-a { border-radius: var(--radius-blob-a); }
.blob-b { border-radius: var(--radius-blob-b); }
.panel-navy {
  background: var(--bg-dark);
  color: var(--cream);
}
.panel-navy .eyebrow { color: rgba(var(--cream-rgb), 0.55); }
.approach-heading { font-size: 16px; color: var(--ink); }
.panel-navy .pill {
  border-color: rgba(var(--cream-rgb), 0.35);
  color: var(--cream);
}
.panel-navy .hero-text p,
.panel-navy.panel .highlight,
.panel-navy.panel > blockquote,
.panel-navy.panel > cite {
  color: var(--cream);
}
.panel-navy.panel .highlight { color: var(--accent); }
.panel-navy .hero-text p { color: rgba(var(--cream-rgb), 0.78); }
.panel-navy.panel > cite { color: var(--accent); }
.panel-navy .hero-text h1 { color: var(--cream); }

/* Hero */
.hero { padding-top: 16px; }
.hero-panel.panel {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-cutout {
  width: 78%;
  max-width: 260px;
  height: auto;
  display: block;
}
.hero-visual .profile-card {
  width: 100%;
  margin-top: -56px;
  position: relative;
  z-index: 2;
}
/* Scroll progress */
.scroll-progress {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 60vh;
  z-index: 60;
}
.scroll-progress-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0.5px;
  width: 1px;
  background: var(--border);
}
.scroll-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 0%;
  background: var(--accent);
  border-radius: 2px;
}
@media (max-width: 768px) {
  .scroll-progress { display: none; }
}

/* Side rail */
.side-rail {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  width: 40px;
  padding: 20px 0;
  border-radius: var(--radius-full);
  background: var(--bg-dark);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.side-rail-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.side-rail-chevron { font-size: 10px; opacity: 0.6; }
@media (max-width: 1400px) {
  .side-rail { display: none; }
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 48px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero h1 .highlight { color: var(--bg-dark); }
.hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 46ch;
}
.hero-text .hero-clients {
  font-size: 14px;
  margin-top: 18px;
  max-width: 46ch;
}
.hero-clients-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.profile-card {
  background: var(--card-bg);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 20px 40px -20px rgba(var(--bg-dark-rgb), 0.25);
}
.profile-card .headshot {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 12%;
  margin-bottom: 14px;
}
.profile-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; margin-bottom: 4px; color: var(--ink); }
.profile-card .role { color: var(--muted); margin-bottom: 14px; }
.profile-card .currently-with-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.profile-card .companies { margin-bottom: 18px; font-size: 15px; color: var(--ink); }
.profile-card .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.profile-card .btn { flex: 1; }

/* What I Do */
.what-i-do-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: start;
}
.what-i-do-intro h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  margin-bottom: 12px;
}
.section-intro {
  color: var(--muted);
  font-size: 16px;
  max-width: 36ch;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.do-card {
  background: var(--bg-dark);
  border-radius: 18px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  min-height: 180px;
}
.do-card .icon-box {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.do-card .icon-box svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
}
.do-card h4 { font-family: var(--font-body); font-weight: 700; font-size: 19px; color: var(--cream); margin-bottom: 6px; }
.do-card p { font-size: 13.5px; color: rgba(var(--cream-rgb), 0.6); flex-grow: 1; }
.do-card .num {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  color: rgba(var(--cream-rgb), 0.55);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
}

/* Approach */
.approach-list {
  margin-top: 14px;
  border-top: 1px solid var(--border);
}
.approach-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}
.approach-num {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 52px;
  line-height: 1;
  color: var(--accent);
}
.approach-text h4 {
  font-family: var(--font-body);
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}
.approach-text p { color: var(--muted); font-size: 15.5px; max-width: 60ch; }

/* Testimonial */
.testimonial { text-align: center; }
.testimonial blockquote {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.35;
  max-width: 800px;
  margin: 0 auto 14px;
}
.testimonial cite {
  font-style: normal;
  color: var(--accent);
  font-size: 15px;
}

/* Selected Work */
.work-header h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  margin-bottom: 6px;
}
.work-header p { color: var(--muted); margin-bottom: 20px; }

.case-study {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.case-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
}
.case-toggle h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; margin-bottom: 4px; }
.case-toggle .case-sub { color: var(--muted); font-size: 14.5px; }
.case-toggle .chevron {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  transition: transform 0.2s ease;
}
.case-study[data-open="true"] .chevron { transform: rotate(180deg); }

.case-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.case-study[data-open="true"] .case-body { grid-template-rows: 1fr; }
.case-body-inner { overflow: hidden; }
.case-body-content { padding: 0 24px 24px; }

.case-block { margin-bottom: 16px; }
.case-block h5 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.case-block p { font-size: 15px; line-height: 1.6; }
.case-block p strong { font-weight: 700; color: var(--bg-dark); }

.case-decision {
  border-left: 3px solid var(--accent);
  padding-left: 18px;
}
.case-decision p { font-weight: 700; font-size: 16.5px; color: var(--ink); }

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}
.outcome-stat .stat-num {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 24px;
  color: var(--bg-dark);
  margin-bottom: 4px;
}
.outcome-stat .stat-label { font-size: 13.5px; color: var(--muted); }

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ba-col { border-radius: 16px; padding: 20px 22px; }
.ba-before { background: var(--bg-light); border: 1px solid var(--border); }
.ba-after { background: var(--bg-dark); }
.ba-label {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.ba-before .ba-label { color: var(--muted); }
.ba-after .ba-label { color: var(--accent); }
.ba-col p { font-size: 14.5px; line-height: 1.6; }
.ba-before p { color: var(--ink); }
.ba-after p { color: var(--cream); }
.ba-after p strong { color: var(--accent); }

.case-callout {
  background: var(--bg-dark);
  border-radius: 16px;
  padding: 26px 28px;
}
.case-callout h5 { color: var(--accent); margin-bottom: 10px; }
.case-callout p {
  color: var(--cream);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.work-more {
  margin-top: 32px;
  text-align: center;
}
.work-more a {
  color: var(--muted);
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.work-more a:hover { color: var(--accent); }

@media (max-width: 560px) {
  .before-after { grid-template-columns: 1fr; }
}

/* Case study image gallery */
.case-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.gallery-item {
  position: relative;
  border: 1px solid var(--border);
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--card-bg);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.2s ease;
}
.gallery-item.is-visible { opacity: 1; transform: translateY(0); }
.gallery-item:nth-child(1) { transition-delay: 0s; }
.gallery-item:nth-child(2) { transition-delay: 0.08s; }
.gallery-item:nth-child(3) { transition-delay: 0.16s; }
.gallery-item:nth-child(4) { transition-delay: 0.24s; }
.gallery-item:nth-child(5) { transition-delay: 0.32s; }
.gallery-item img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  object-position: top;
  transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover { box-shadow: 0 10px 24px -10px rgba(var(--bg-dark-rgb), 0.4); }
.gallery-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(var(--bg-dark-rgb), 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
  padding: 60px 24px 40px;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-img {
  max-width: min(90vw, 1100px);
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
}
.lightbox-caption { color: var(--cream); font-size: 14px; max-width: 640px; text-align: center; }
.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: none;
  cursor: pointer;
  color: var(--cream);
  background: rgba(var(--cream-rgb), 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(var(--cream-rgb), 0.22); }
.lightbox-close { top: 20px; right: 24px; width: 44px; height: 44px; font-size: 24px; line-height: 1; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 28px; }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
@media (max-width: 640px) {
  .lightbox-nav { width: 38px; height: 38px; font-size: 22px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 10px; right: 10px; width: 38px; height: 38px; font-size: 20px; }
}

/* About */
.about-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}
.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 14%;
  border-radius: 20px;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.35);
}
.about-content { max-width: 720px; }
.about-content h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 16px;
}
.about-content p { color: var(--muted); font-size: 16px; margin-bottom: 12px; }
.about-content .cta-line { color: var(--ink); font-weight: 700; margin-top: 14px; }
.panel-navy .about-content h2 { color: var(--cream); }
.panel-navy .about-content p { color: rgba(var(--cream-rgb), 0.78); }
.panel-navy .about-content p strong { color: var(--cream); font-weight: 700; }
.panel-navy .about-content .cta-line { color: var(--accent); }

/* Footer */
footer {
  background: var(--bg-dark);
  color: var(--cream);
  padding-top: 56px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-brand .logo { background: var(--accent); color: var(--bg-dark); }
.footer-brand p {
  color: rgba(var(--cream-rgb), 0.65);
  font-size: 14px;
  margin-top: 14px;
  max-width: 32ch;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-heading {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.footer-col a {
  color: rgba(var(--cream-rgb), 0.75);
  text-decoration: none;
  font-weight: 500;
  font-size: 14.5px;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}
.footer-note { color: rgba(var(--cream-rgb), 0.55); font-size: 13px; }
.footer-top {
  color: rgba(var(--cream-rgb), 0.75);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-top:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 900px) {
  .hero-panel.panel { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; gap: 24px; }
  .about-photo { max-width: 220px; }
  .what-i-do-layout { grid-template-columns: 1fr; gap: 20px; }
  .section-intro { max-width: 60ch; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .panel { padding: 32px; }
  .blob-a, .blob-b { border-radius: 48px 20px 48px 20px; }
}

@media (max-width: 700px) {
  .approach-row { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; }
  .approach-num { font-size: 36px; }
}

@media (max-width: 640px) {
  section { padding: 20px 0; }
  .hero h1 { font-size: 34px; }
  .what-i-do-intro h2 { font-size: 30px; }
  .cards-grid { grid-template-columns: 1fr; }
  .panel { padding: 22px; }
  .blob-a, .blob-b { border-radius: 32px 16px 32px 16px; }
  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-light);
    flex-direction: column;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-right .btn-primary { padding: 10px 16px; font-size: 14px; }
  .case-toggle { padding: 20px; }
  .case-body-content { padding: 0 20px 24px; }
  .testimonial blockquote { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Work (visual archive) page */
.back-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}
.back-link:hover { color: var(--ink); }
.work-intro { padding-top: 40px; padding-bottom: 24px; }
.work-intro h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 38px;
  line-height: 1.2;
  margin: 10px 0 14px;
  max-width: 18ch;
}
.work-intro p { color: var(--muted); font-size: 17px; max-width: 60ch; }
.work-category { padding: 24px 0; border-top: 1px solid var(--border); }
.work-category h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 18px;
}
.work-gallery {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.work-gallery .gallery-item img { height: 200px; }
.pdf-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  max-width: 360px;
  transition: border-color 0.15s ease;
}
.pdf-card:hover { border-color: var(--accent); }
.pdf-card strong { display: block; font-size: 15px; }
.pdf-sub { color: var(--muted); font-size: 13px; }
.pdf-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg-dark);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
@media (max-width: 640px) {
  .work-intro h1 { font-size: 28px; }
  .work-gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .work-gallery .gallery-item img { height: 140px; }
}
