/* ============================================
   Mikel Acha — shared styles
   Editorial, Questrial, orange accent
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Questrial&family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&display=swap');

:root {
  --bg: #FAFAF7;
  --bg-2: #F2F0E8;
  --ink: #0A0A0A;
  --ink-2: #2A2A2A;
  --ink-3: #6B6B6B;
  --ink-4: #A8A39A;
  --line: #E2DFD5;
  --accent: #2251FF;
  --accent-soft: #EEF2FF;

  --sans: "Questrial", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --serif: "Fraunces", Georgia, serif;

  --container: 1080px;
  --gutter: 32px;
  --gutter-mobile: 20px;

  --ease: cubic-bezier(.2,.6,.2,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern", "liga";
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.brand {
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.brand .dot { color: var(--accent); }
.nav {
  display: flex;
  gap: 36px;
  justify-content: center;
}
.nav a {
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 4px 0;
  position: relative;
  transition: color .25s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--accent);
  transition: right .35s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--ink);
}
.nav a:hover::after, .nav a[aria-current="page"]::after {
  right: 0;
}
.contact-link {
  justify-self: end;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.contact-link:hover { color: var(--accent); border-color: var(--accent); }

/* header social icons (replaces contact-link) */
.header-icons {
  justify-self: end;
  display: flex;
  gap: 14px;
  align-items: center;
}
.header-icons a {
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.header-icons a:hover {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}
.header-icons a svg { width: 15px; height: 15px; }

/* mckinsey project accordion */
.mck-accordion {
  margin-top: 0;
  border-top: 1px solid var(--line);
}
.mck-acc-item {
  border-bottom: 1px solid var(--line);
}
.mck-acc-trigger {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 22px 0;
  display: grid;
  grid-template-columns: 2fr 1.4fr 1fr;
  gap: 24px;
  align-items: baseline;
  text-align: left;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  transition: padding .25s var(--ease);
}
.mck-acc-trigger:hover { color: var(--accent); }
.mck-acc-chev {
  font-size: 12px;
  color: var(--accent);
  transition: transform .3s var(--ease);
  transform: translateY(-1px);
}
.mck-acc-item[open] .mck-acc-chev { transform: rotate(90deg); }
.mck-acc-num {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  display: block;
  margin-bottom: 6px;
}
.mck-acc-title {
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.25;
}
.mck-acc-desc {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--ink-3);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}
.mck-acc-role {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-variant-caps: all-small-caps;
  text-align: left;
}
.mck-acc-metric {
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-align: left;
  font-family: var(--serif);
  font-style: italic;
}
.mck-acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--ease);
}
.mck-acc-item[open] .mck-acc-body {
  grid-template-rows: 1fr;
}
.mck-acc-body-inner {
  overflow: hidden;
}
.mck-acc-body ul {
  list-style: none;
  margin: 0;
  padding: 0 0 28px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 80ch;
}
.mck-acc-body li {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
  padding-left: 22px;
  position: relative;
}
.mck-acc-body li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 12px; height: 1px;
  background: var(--accent);
}
@media (max-width: 760px) {
  .mck-acc-trigger {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .mck-acc-meta-mob {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
  }
  .mck-acc-metric { text-align: left; }
  .mck-acc-trigger > .mck-acc-role,
  .mck-acc-trigger > .mck-acc-metric { display: none; }
  .mck-acc-body ul { padding-left: 24px; }
}
@media (min-width: 761px) {
  .mck-acc-meta-mob { display: none; }
}

/* Earlier section accordion rows */
.earlier-acc {
  border-top: 1px solid var(--line);
}
.earlier-acc__trigger {
  display: grid;
  grid-template-columns: 60px 1.8fr 1fr auto;
  gap: 32px;
  padding: 28px 0;
  align-items: baseline;
  list-style: none;
  color: inherit;
  cursor: pointer;
  width: 100%;
  transition: color .2s var(--ease);
}
.earlier-acc__trigger::-webkit-details-marker { display: none; }
.earlier-acc__trigger:hover { color: var(--accent); }
.earlier-acc[open] .mck-acc-body { grid-template-rows: 1fr; }
@media (max-width: 760px) {
  .earlier-acc__trigger {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* personal blurb on work page */
.bio-block {
  max-width: 76ch;
  margin: 0 auto;
}
.bio-block p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
}
.bio-block p + p { margin-top: 18px; }

/* hide italic pull-quote on detail pages (v4 — no quotation marks) */
.proj-detail__body .italic-quote { display: none; }
.feature__body .italic-quote { display: none; }

/* writing coming-soon card */
.coming-soon-card {
  margin: 24px auto 0;
  max-width: 640px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: 64px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}
.coming-soon-card .italic-quote { max-width: 28ch; }
.coming-soon-card .label { color: var(--accent); }
.coming-soon-card .label::before { content: ""; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 32px; height: 32px;
  position: relative;
  justify-self: end;
  color: var(--ink);
}
.menu-toggle span {
  position: absolute;
  left: 4px; right: 4px;
  height: 1.5px;
  background: currentColor;
  transition: transform .3s var(--ease), top .3s var(--ease), opacity .2s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 11px; }
.menu-toggle span:nth-child(2) { top: 16px; }
.menu-toggle span:nth-child(3) { top: 21px; }
.site-header.is-open .menu-toggle span:nth-child(1) { top: 16px; transform: rotate(45deg); }
.site-header.is-open .menu-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .menu-toggle span:nth-child(3) { top: 16px; transform: rotate(-45deg); }

@media (max-width: 760px) {
  .site-header__inner {
    grid-template-columns: 1fr auto;
    padding: 18px var(--gutter-mobile);
  }
  .menu-toggle { display: inline-block; }
  .nav, .contact-link { display: none; }
  .site-header.is-open .nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 18px;
    padding: 24px var(--gutter-mobile) 28px;
  }
  .site-header.is-open .nav a {
    font-size: 14px;
  }
  .site-header.is-open .contact-link {
    display: inline-block;
    position: absolute;
    top: 100%;
    left: var(--gutter-mobile);
    margin-top: 220px;
    background: var(--bg);
  }
}

/* ============ LAYOUT ============ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (max-width: 760px) {
  .container { padding: 0 var(--gutter-mobile); }
}

main {
  padding-bottom: 0;
}
section.block {
  padding: 64px 0;
}
section.block + section.block {
  padding-top: 0;
}
@media (max-width: 760px) {
  section.block { padding: 44px 0; }
}

/* eyebrow label */
.label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.label::before {
  content: "####";
  color: var(--accent);
  letter-spacing: 0.04em;
  font-size: 11px;
}

/* big sentence-style heading */
.statement {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(34px, 5.5vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.statement em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}
.statement .dash {
  color: var(--accent);
  font-weight: 300;
}

.heading-md {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
.heading-sm {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; text-wrap: pretty; }
.lede {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 56ch;
}
.body {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 60ch;
}
.muted { color: var(--ink-3); }

.italic-quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: color .25s var(--ease), border-color .25s var(--ease), gap .25s var(--ease);
}
.link-arrow::after {
  content: "→";
  font-size: 14px;
  transition: transform .25s var(--ease);
}
.link-arrow:hover {
  color: var(--accent);
  border-color: var(--accent);
  gap: 14px;
}

/* pixel accents */
.pixel-block {
  display: inline-grid;
  grid-template-columns: repeat(5, 6px);
  grid-template-rows: repeat(3, 6px);
  gap: 1px;
  vertical-align: middle;
}
.pixel-block i {
  background: var(--accent);
  display: block;
}
.pixel-block i.off { background: transparent; }

/* tag chip */
.tag {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ============ HERO ============ */
.hero {
  padding: 80px 0 100px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: end;
}
.hero__lede {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}
.hero__meta {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 8px;
}
.hero__contact {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero__contact a {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}
.hero__decor {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.hero__decor i {
  width: 10px; height: 10px;
  background: var(--accent);
  display: block;
}
.hero__decor i:nth-child(2) { background: var(--ink); }
.hero__decor i:nth-child(3) { background: var(--accent); opacity: 0.4; }
.hero__decor i:nth-child(4) { background: var(--ink); opacity: 0.2; }

@media (max-width: 920px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
  }
  .hero { padding: 56px 0 72px; }
}

/* ============ SECTION HEADER ============ */
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-bottom: 56px;
  align-items: end;
}
.section-head__right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (max-width: 760px) {
  .section-head {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 36px;
    align-items: start;
  }
}

/* ============ WORK BLOCK ============ */
.work-list {
  display: flex;
  flex-direction: column;
}
.work-row {
  display: grid;
  grid-template-columns: 60px 1.8fr 1fr auto;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.work-row:last-child { border-bottom: 1px solid var(--line); }
.work-row__num {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}
.work-row__company {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
}
.work-row__role {
  font-size: 14px;
  color: var(--ink-3);
  text-align: left;
}
.work-row__dates {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.work-row.is-current .work-row__company::after {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 12px;
  vertical-align: middle;
  animation: pulse 2.4s infinite var(--ease);
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 81, 255, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(34, 81, 255, 0); }
}

@media (max-width: 760px) {
  .work-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px 0;
  }
  .work-row__num { display: none; }
  .work-row__dates { order: -1; }
}

/* ============ PROJECT FEATURE / GRID ============ */
.feature {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 48px;
  align-items: stretch;
  padding-top: 0;
}
.feature__media {
  background: var(--bg-2);
  aspect-ratio: auto;
  min-height: 320px;
  max-height: 560px;
  height: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}
.feature__media svg { height: 100%; }
.feature__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 8px;
}
.feature__meta {
  display: flex;
  gap: 14px;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.feature__meta b {
  color: var(--ink);
  font-weight: 400;
}
.feature__meta .sep {
  color: var(--accent);
}
@media (max-width: 920px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .feature__media { aspect-ratio: 4 / 3; }
}

.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.proj-card {
  background: var(--bg);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
  position: relative;
  cursor: pointer;
  transition: background .3s var(--ease);
}
.proj-card:hover { background: var(--accent-soft); }
.proj-card__num {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}
.proj-card__title {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0;
}
.proj-card__desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  flex: 1;
}
.proj-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.proj-card__tags span { padding: 0; }
.proj-card__tags span + span::before {
  content: "·";
  margin: 0 6px;
  color: var(--ink-4);
}
.proj-card__arrow {
  position: absolute;
  top: 28px; right: 24px;
  width: 22px; height: 22px;
  color: var(--ink-3);
  transition: transform .3s var(--ease), color .3s var(--ease);
}
.proj-card:hover .proj-card__arrow {
  transform: translate(3px, -3px);
  color: var(--accent);
}
@media (max-width: 920px) { .proj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .proj-grid { grid-template-columns: 1fr; } }

/* ── Homepage-only overrides (#projects) — no effect on other pages ── */
#projects .feature {
  grid-template-columns: 0.42fr 1fr;
  align-items: start;
}
#projects .feature__media {
  min-height: 0;
  max-height: none;
  height: auto;
}
#projects .feature__media svg {
  width: 100%;
  height: auto;
  display: block;
}
#projects .proj-card {
  min-height: 0;
}
#projects .proj-card__desc {
  flex: none;
}

/* project page detailed cards */
.proj-detail {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 48px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  align-items: stretch;
}
.proj-detail:last-child { border-bottom: 1px solid var(--line); }
.proj-detail__media {
  background: var(--bg-2);
  aspect-ratio: auto;
  min-height: 300px;
  max-height: 520px;
  height: 100%;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.proj-detail__media svg { height: 100%; }
.proj-detail__body {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.proj-detail__bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.proj-detail__bullets li {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
  padding-left: 22px;
  position: relative;
}
.proj-detail__bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 12px; height: 1px;
  background: var(--accent);
}
@media (max-width: 920px) {
  .proj-detail {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 0;
  }
  .proj-detail__media { aspect-ratio: 4 / 3; }
}

/* ============ POSTS / BLOG ============ */
.posts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.post {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 24px;
  cursor: pointer;
  transition: background .3s var(--ease);
}
.post:nth-child(odd) {
  padding-right: 40px;
  border-right: 1px solid var(--line);
}
.post:nth-child(even) {
  padding-left: 40px;
}
.post:hover .post__title { color: var(--accent); }
.post__num {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  padding-top: 4px;
}
.post__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  align-items: center;
}
.post__meta .sep {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--ink-4);
  display: inline-block;
}
.post__category {
  color: var(--accent);
}
.post__title {
  font-size: clamp(20px, 2.1vw, 26px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0;
  transition: color .25s var(--ease);
  text-wrap: balance;
}
.post__teaser {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}
.post__cta {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
}
.post__cta::after {
  content: "→";
  transition: transform .25s var(--ease);
}
.post:hover .post__cta {
  color: var(--accent);
  border-color: var(--accent);
}
.post:hover .post__cta::after { transform: translateX(4px); }

@media (max-width: 760px) {
  .posts { grid-template-columns: 1fr; }
  .post { padding: 28px 0; grid-template-columns: 50px 1fr; gap: 16px; }
  .post:nth-child(odd) { padding-right: 0; border-right: 0; }
  .post:nth-child(even) { padding-left: 0; }
}

/* ============ STRIP / CLIENTS ============ */
.strip {
  background: var(--ink);
  color: var(--bg);
  padding: 56px 0;
}
.strip .label::before { color: var(--accent); }
.strip .label { color: rgba(255,255,255,0.6); }
.strip__row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 56px;
  margin-top: 32px;
}
.strip__row span {
  font-size: clamp(16px, 1.6vw, 22px);
  letter-spacing: -0.005em;
}
.strip__row span:nth-child(even) { color: rgba(255,255,255,0.5); }

/* ============ FOOTER ============ */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding: 40px 0 24px;
}
.site-footer__statement {
  font-size: clamp(28px, 4.5vw, 56px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 56px;
  max-width: 18ch;
  text-wrap: balance;
}
.site-footer__statement em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  padding-top: 40px;
}
.site-footer__col h5 {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 14px;
  font-weight: 400;
}
.site-footer__col ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-footer__col a {
  font-size: 14px;
  color: var(--ink);
  transition: color .2s var(--ease);
}
.site-footer__col a:hover { color: var(--accent); }
.site-footer__copy {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

@media (max-width: 760px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

/* ============ PAGE HEADER (for sub-pages) ============ */
.page-hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.page-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
}
.page-hero__count {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: right;
}
.page-hero__count b {
  color: var(--accent);
  font-weight: 400;
  font-size: 14px;
}
@media (max-width: 760px) {
  .page-hero { padding: 56px 0 40px; }
  .page-hero__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
  }
  .page-hero__count { text-align: left; }
}

/* ============ REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

::selection { background: var(--accent); color: var(--bg); }

/* ===== SECTION INTRO (replaces section-head label) ===== */
.section-intro {
  margin-bottom: 48px;
}
.section-title {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(18px, 2.2vw, 26px);
  color: var(--accent);
  letter-spacing: -0.005em;
  margin: 0 0 10px;
  line-height: 1.2;
}
.section-sub {
  font-size: clamp(14px, 1.5vw, 16px);
  color: var(--ink-2);
  margin: 0;
  max-width: 64ch;
  line-height: 1.55;
}
@media (max-width: 760px) {
  .section-intro { margin-bottom: 28px; }
}

/* ===== HERO LOCATION PIN ===== */
.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero-location svg {
  width: 14px; height: 14px;
  color: var(--accent);
  flex-shrink: 0;
  display: block;
}

/* ===== FOOTER ONE-ROW LAYOUT ===== */
.site-footer__main {
  display: grid;
  grid-template-columns: 1.6fr 1.6fr 1fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.site-footer__connect {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.site-footer__connect p {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0;
  max-width: 26ch;
  line-height: 1.5;
}
.footer-icons {
  display: flex;
  gap: 10px;
}
.footer-icons a {
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.footer-icons a:hover {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}
.footer-icons a svg { width: 15px; height: 15px; display: block; }

/* Pages column — 2-col layout */
.site-footer__col--pages ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}

@media (max-width: 760px) {
  .site-footer__main {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ===== WORK PAGE NAV TABS ===== */
.work-nav {
  display: flex;
  border: 1px solid var(--line);
  margin: 32px 0 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.work-nav a {
  flex: 1;
  padding: 13px 16px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  border-right: 1px solid var(--line);
  color: var(--ink-3);
  transition: background .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.work-nav a:last-child { border-right: 0; }
.work-nav a:hover { background: var(--bg-2); color: var(--ink); }
@media (max-width: 620px) {
  .work-nav a { font-size: 10px; padding: 11px 10px; letter-spacing: 0.12em; }
}

/* ===== PAGE TITLE (sub-pages) ===== */
.page-title {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 36px);
  color: var(--accent);
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.15;
}

/* ===== HBS GMOC SECTION ===== */
.gmoc-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.gmoc-logos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.gmoc-logo-btn {
  background: transparent;
  border: 1px solid var(--line);
  padding: 0;
  cursor: pointer;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  color: var(--ink-3);
  text-align: center;
  font-family: var(--sans);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 100px;
}
.gmoc-logo-btn svg {
  width: 100%;
  height: 100%;
  display: block;
}
.gmoc-logo-btn:hover,
.gmoc-logo-btn.is-selected {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 2px var(--accent);
}
.gmoc-logo-name {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
}
.gmoc-summary-text {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 60ch;
  margin: 0;
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.gmoc-summary-text.is-visible {
  opacity: 1;
}
@media (max-width: 480px) {
  .gmoc-logos { grid-template-columns: 1fr; }
}

/* ===== DARK MODE ===== */
body.dark {
  --bg: #1E1E1C;
  --bg-2: #272724;
  --ink: #FAFAF7;
  --ink-2: #D5D2CA;
  --ink-3: #8A8780;
  --ink-4: #5A5752;
  --line: #38352F;
  --accent-soft: #1A2248;
}

/* Theme toggle button */
.theme-toggle {
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.theme-toggle:hover {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}
.theme-toggle svg { width: 15px; height: 15px; }
/* moon shows in light mode, sun shows in dark mode */
.theme-toggle .icon-sun { display: none; }
body.dark .theme-toggle .icon-moon { display: none; }
body.dark .theme-toggle .icon-sun { display: block; }

/* ===== HERO CONNECT ROW ===== */
.hero__connect {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 18px;
}
.hero__connect-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero__connect-btn {
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
  flex-shrink: 0;
}
.hero__connect-btn:hover {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}
.hero__connect-btn svg { width: 15px; height: 15px; display: block; }

/* ============ SECTION NAV ============ */
.section-nav {
  position: fixed;
  top: 50%;
  left: 24px;
  transform: translateY(-50%);
  z-index: 40;
}
.section-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
/* vertical line — starts/ends at center of first/last dot container (28px/2 = 14px) */
.section-nav ul::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 50%;
  width: 1px;
  background: var(--line);
  transform: translateX(-0.5px);
}
/* each <a> has a generously sized hit area; ::before is the visual dot */
.section-nav__dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  position: relative;
  z-index: 1;
  cursor: pointer;
  text-decoration: none;
}
/* visual dot via ::before */
.section-nav__dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 35%, transparent);
  transition: width 200ms var(--ease), height 200ms var(--ease),
              background 200ms var(--ease), box-shadow 200ms var(--ease);
  flex-shrink: 0;
}
.section-nav__dot:hover::before {
  width: 11px;
  height: 11px;
  background: var(--ink);
}
.section-nav__dot.is-active::before {
  width: 12px;
  height: 12px;
  background: var(--accent);
  box-shadow: 0 0 0 2.5px var(--bg);
}
/* label text — shown on hover and when active */
.section-nav__dot::after {
  content: attr(data-label);
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-family: var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  max-width: 100px;
  white-space: normal;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms var(--ease);
}
.section-nav__dot:hover::after {
  opacity: 1;
  color: var(--ink);
}
.section-nav__dot.is-active::after {
  opacity: 1;
  color: var(--accent);
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (max-width: 920px) { .section-nav { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .section-nav__dot::before,
  .section-nav__dot::after { transition: none; }
}

/* ============ LOGO CAROUSEL ============ */

/* Carousel strip — container-aligned (no viewport bleed), touchpad-scrollable */
.logo-strip-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 28px 0;
  cursor: grab;
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 60px, black calc(100% - 60px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, black 60px, black calc(100% - 60px), transparent 100%);
}
.logo-strip-wrap::-webkit-scrollbar { display: none; }
.logo-strip-wrap:active { cursor: grabbing; }

/* Scrolling track — JS scrollLeft drives the loop (no CSS animation) */
.logo-track {
  display: flex;
  width: max-content;
}

/* Individual tile — transparent, no border, no box-shadow by default */
.logo-tile {
  flex-shrink: 0;
  width: 130px;
  height: 130px;
  margin-right: 20px; /* gap; kept as margin so loop math is exact */
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: transparent;
  box-shadow: none;
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease);
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  outline: none;
}
.logo-tile:hover,
.logo-tile:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 0 48px 12px rgba(34, 81, 255, 0.13), 0 8px 40px -8px rgba(0,0,0,0.18);
}
body.dark .logo-tile:hover,
body.dark .logo-tile:focus-visible {
  box-shadow: 0 0 48px 12px rgba(34, 81, 255, 0.20), 0 8px 40px -8px rgba(255,255,255,0.14);
}
.logo-tile:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Logo image — colored logos, no dark-mode invert */
.logo-tile img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  opacity: 0.45;
  transition: opacity 250ms var(--ease);
  display: block;
}
.logo-tile:hover img,
.logo-tile:focus-visible img {
  opacity: 1;
}

/* McKinsey is a wide horizontal wordmark — give it extra room */
.logo-tile--mckinsey img {
  width: 92%;
  height: 92%;
}

/* Portal tooltip — position: fixed, appended to <body> by JS */
.logo-tooltip {
  position: fixed;
  z-index: 200;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 150ms var(--ease), transform 150ms var(--ease);
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.logo-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.logo-tooltip__role {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.logo-tooltip__detail {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink);
}
/* Downward-pointing arrow at the bottom of the tooltip */
.logo-tooltip__arrow {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: var(--bg);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Reduced motion: static layout, no scroll, clones hidden */
@media (prefers-reduced-motion: reduce) {
  .logo-strip-wrap {
    -webkit-mask-image: none;
    mask-image: none;
    overflow: visible;
    cursor: default;
  }
  .logo-track {
    flex-wrap: wrap;
    width: 100%;
    gap: 16px;
    justify-content: flex-start;
  }
  .logo-tile {
    margin-right: 0;
  }
  .logo-tile[aria-hidden="true"] { display: none; }
}

/* Mobile: smaller tiles */
@media (max-width: 620px) {
  .logo-tile { width: 88px; height: 88px; }
}
