/* ─────────────────────────────────────────────────────────────
   HUDDLE-FAITHFUL PORTFOLIO — Emmet Smyth
   Color/sizing matches huddle.works as inspected via DOM:
   - body bg #e5e6e1 (lightgrey-nb)
   - hero ~60px Nng → Space Grotesk substitute
   - text color #333
   - cards 24px radius, color blocks (pink/teal/purple/gold)
   - buttons 100px pill radius, black on cream
   ───────────────────────────────────────────────────────────── */

:root {
  /* Page palette — sampled from huddle.works */
  --paper:       #e5e6e1;    /* page bg — lightgrey-nb */
  --paper-2:     #d8d9d2;    /* deeper paper */
  --ink:         #333333;    /* default text */
  --ink-2:       #5b5b5b;
  --ink-3:       #8d8d8d;
  --black:       #000000;
  --white:       #ffffff;

  /* Color blocks — original */
  --pink:        #cb9da2;    /* card pink */
  --pink-soft:   #f8c7e2;    /* alt soft pink */
  --pink-dark:   #5c2529;    /* dark pink for accent text on pink bg */
  --teal:        #aebbba;    /* card teal/sage */
  --purple:      #bbb2ce;    /* card lavender */
  --gold:        #e4b976;    /* card mustard */
  --burly:       #ebbb90;
  --green:       #9ccd65;
  --warmmute:    #fcf8f5;

  /* New spectrum palette — 20 muted pastels, all dark-text-ready */
  --blush:       #EACFCF;
  --peach:       #EDCFBC;
  --apricot:     #EDD9BD;
  --butter:      #EDE7C2;
  --citron:      #EDEECC;
  --moss:        #D5E1BC;
  --sage:        #C8DCBC;
  --fern:        #BEDDC5;
  --mint:        #BADDD5;
  --seafoam:     #B8D9D9;
  --aqua:        #B5D5DC;
  --sky:         #D4E2EE;
  --mist:        #BECAD8;
  --periwinkle:  #C0C4DC;
  --lavender:    #C5BEDC;
  --wisteria:    #D8CCe8;
  --mauve:       #D0BEDC;
  --orchid:      #D4BECC;
  --rose:        #DCBEC8;
  --linen:       #E8E2D8;

  /* Type stack — Space Grotesk substitutes for Nnnouvelle Grotesk */
  --display:  "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --sans:     "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono:     "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --max-w:    1320px;
  --pad-x:    96px;
  --pad-x-md: 56px;
  --pad-x-sm: 24px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--paper); }

/* ───── Top nav ───── */
.topnav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: none;
}
.topnav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px var(--pad-x);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
@keyframes dot-bounce {
  0%        { transform: translateY(0); }
  10%       { transform: translateY(-10px); }
  20%       { transform: translateY(0); }
  32%       { transform: translateY(-7px); }
  42%       { transform: translateY(0); }
  54%       { transform: translateY(-4px); }
  63%       { transform: translateY(0); }
  74%       { transform: translateY(-2px); }
  82%       { transform: translateY(0); }
  100%      { transform: translateY(0); }
}
.brand .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--pink);
  display: inline-block;
  animation: dot-bounce 1.4s ease-out both;
}
.navlinks {
  justify-self: center;
  display: flex;
  gap: 32px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
}
.navlinks a { transition: color .15s; }
.navlinks a:hover { color: var(--pink-dark); }
.nav-download {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  transition: color .15s;
}
.nav-download:hover { color: var(--pink-dark); }
.cta {
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 100px;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
  transition: background .2s, color .2s;
  cursor: pointer;
}
.cta:hover { background: var(--pink-dark); border-color: var(--pink-dark); }

/* ───── Marquee/textbubble bar — Huddle's "Kyle just joined" stripe ───── */
.marquee {
  background: var(--pink);
  color: var(--pink-dark);
  overflow: hidden;
  white-space: nowrap;
  padding: 14px 0;
}
.marquee-track {
  display: inline-block;
  font-family: var(--display);
  font-weight: 300;
  font-size: 17px;
  letter-spacing: -0.005em;
  animation: scroll-left 50s linear infinite;
}
.marquee-track span { padding: 0 18px; }
.marquee-track span.dash { color: var(--pink-dark); opacity: .6; padding: 0 6px; letter-spacing: 0.5em; }
.marquee-track span em {
  font-style: italic;
  font-weight: 400;
  color: var(--pink-dark);
}
@keyframes scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ───── Hero — large stacked-word display ───── */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px var(--pad-x) 64px 105px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: end;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
  padding: 8px 16px 8px 12px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero-tag .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 0 rgba(203,157,162,0.55);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(203,157,162,0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(203,157,162,0); }
  100% { box-shadow: 0 0 0 0 rgba(203,157,162,0); }
}

.hero-display {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 5.2vw, 72px);
  line-height: 1.3;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 0;
}
.hero-display .word {
  display: inline-block;
  margin-right: 12px;
}
.hero-display .word.cycle {
  position: relative;
  background: var(--purple);
  padding: 0 36px;
  border-radius: 100px;
  margin-right: 12px;
  display: inline-block;
  min-width: 280px;
  text-align: center;
  vertical-align: baseline;
}
.hero-display .word.cycle .cycle-text {
  font-style: normal;
  font-weight: 400;
}
.hero-display .pop {
  font-style: italic;
  color: var(--pink-dark);
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 4px;
}
.hero-lede {
  font-family: var(--display);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.005em;
}
.hero-lede em {
  font-style: italic;
  font-weight: 400;
  color: var(--pink-dark);
}
.hero-clients {
  font-family: var(--display);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
  letter-spacing: -0.005em;
}
.hero-coda {
  font-family: var(--display);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
  letter-spacing: -0.005em;
}
.hero-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.btn-primary {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  padding: 24px 40px;
  border-radius: 100px;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
  transition: background .2s, transform .2s;
  cursor: pointer;
  display: inline-block;
}
.btn-primary:hover { background: var(--pink-dark); border-color: var(--pink-dark); transform: translateY(-1px); }
.btn-link {
  font-family: var(--display);
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 4px;
  transition: color .2s, border-color .2s;
  cursor: pointer;
}
.btn-link:hover { color: var(--pink-dark); border-color: var(--pink-dark); }

/* ───── Stats strip ───── */
.stats {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px var(--pad-x) 80px 105px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  border-top: 1px solid var(--ink);
  margin-top: 32px;
}
.stat {
  padding: 32px 0;
}
.stat .label {
  font-family: var(--display);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.stat .label::before {
  content: "•";
  color: var(--pink);
  font-size: 22px;
  line-height: 0;
}
.stat .num {
  font-family: var(--display);
  font-weight: 400;
  font-size: 76px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.stat .num em {
  font-style: italic;
  font-weight: 400;
  color: var(--pink-dark);
}

/* ───── Section heading ───── */
.section-head {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 96px var(--pad-x) 32px 105px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
}
.section-head .kicker {
  font-family: var(--display);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.section-head .kicker::before {
  content: "•";
  color: var(--pink);
  font-size: 10px;
  line-height: 1;
  position: relative;
  top: -2px;
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(36px, 3.5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 18px 0 0 0;
  color: var(--ink);
  max-width: 22ch;
}
.section-head h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--pink-dark);
}
.section-head .meta {
  font-family: var(--display);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-2);
  text-align: right;
  align-self: end;
}

/* ───── Filter row ───── */
.filterbar {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x) 24px 105px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.chip {
  font: inherit;
  font-family: var(--display);
  font-weight: 500;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 100px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all .15s;
}
.chip:hover { background: var(--ink); color: var(--paper); }
.chip.active { background: var(--ink); color: var(--paper); }
.chip .count {
  font-size: 12px;
  margin-left: 6px;
  opacity: 0.7;
}

/* ───── Project cards — Huddle ".list-item.newbrand" cards ───── */
.work-list {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x) 80px 105px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 1100px) { .work-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .work-list { grid-template-columns: 1fr; } }

.huddle-card {
  background: #c6d6ff;
  border-radius: 24px;
  border: 1px solid rgba(51,51,51,0.18);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  min-height: 174px;
  transition: transform .25s ease, box-shadow .25s ease;
  isolation: isolate;
}
.huddle-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 0 -6px var(--ink);
}
/* Tone variants — original 6 updated to new palette */
.huddle-card.tone-pink       { background: var(--blush); }
.huddle-card.tone-teal       { background: var(--seafoam); }
.huddle-card.tone-purple     { background: var(--lavender); }
.huddle-card.tone-gold       { background: var(--butter); }
.huddle-card.tone-burly      { background: var(--apricot); }
.huddle-card.tone-soft       { background: var(--rose); }
/* New spectrum tones */
.huddle-card.tone-blush      { background: var(--blush); }
.huddle-card.tone-peach      { background: var(--peach); }
.huddle-card.tone-apricot    { background: var(--apricot); }
.huddle-card.tone-butter     { background: var(--butter); }
.huddle-card.tone-citron     { background: var(--citron); }
.huddle-card.tone-moss       { background: var(--moss); }
.huddle-card.tone-sage       { background: var(--sage); }
.huddle-card.tone-fern       { background: var(--fern); }
.huddle-card.tone-mint       { background: var(--mint); }
.huddle-card.tone-seafoam    { background: var(--seafoam); }
.huddle-card.tone-aqua       { background: var(--aqua); }
.huddle-card.tone-sky        { background: var(--sky); }
.huddle-card.tone-mist       { background: var(--mist); }
.huddle-card.tone-periwinkle { background: var(--periwinkle); }
.huddle-card.tone-lavender   { background: var(--lavender); }
.huddle-card.tone-wisteria   { background: var(--wisteria); }
.huddle-card.tone-mauve      { background: var(--mauve); }
.huddle-card.tone-orchid     { background: var(--orchid); }
.huddle-card.tone-rose       { background: var(--rose); }
.huddle-card.tone-linen      { background: var(--linen); }
/* Lock icon on protected cards */
.lock-icon {
  display: none;
  width: 26px;
  height: 26px;
  margin: 4px 0;
  fill: var(--ink);
  opacity: 0.35;
  flex-shrink: 0;
}
.huddle-card.is-locked .status { color: var(--ink); }

.card-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-weight: 500;
}
.status .dot {
  font-size: 10px;
  line-height: 1;
}
.timestamp {
  color: var(--ink);
  font-weight: 500;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
}

.card-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.card-client {
  font-family: var(--display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: -8px;
}
.tag-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 14px;
}
.tag {
  font-family: var(--display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.01em;
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(51,51,51,0.35);
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-block;
}
.tag::before { content: "#"; opacity: 1; }

.card-meta-bottom {
  border-top: 1px solid rgba(51,51,51,0.18);
  padding-top: 12px;
  margin-top: 6px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

/* ───── Stacking card scroll scene ───── */
.stack-scene {
  background: var(--frame);
  margin-top: 96px;
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
  padding: var(--card-gap) 0;
}
.stack-outer {
  min-height: 33vh;
}
.stack-card {
  position: sticky;
  border-radius: 28px;
  overflow: hidden;
  min-height: 33vh;
}
/* Each card peeks by exactly the height of one stack-tab (52px) */
.stack-card.s1 { top: 0px;   z-index: 1; }
.stack-card.s2 { top: 52px;  z-index: 2; }
.stack-card.s3 { top: 104px; z-index: 3; }
.stack-card.s4 { top: 156px; z-index: 4; }

/* Tab label — sits at the very top of each card, exactly 52px tall */
.stack-tab {
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 var(--pad-x) 0 105px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  gap: 10px;
}
.stack-tab .num {
  color: var(--pink-dark);
}

/* Content area inside each stacking card */
.process-inner {
  padding: 72px var(--pad-x) 96px 105px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: center;
  max-width: 100vw;
}

/* ───── Process strip — STEP 1 / STEP 2 / STEP 3 / STEP 4 ───── */
.process { margin-top: 96px; }
.process-row {
  /* layout now handled by .stack-tab + .process-inner */
  display: block;
  gap: 96px;
  align-items: center;
  max-width: 100vw;
}
.process-row.alt  { background: var(--blush); }
.process-row.alt2 { background: var(--seafoam); }
.process-row.alt3 { background: var(--lavender); }
.process-row.alt4 { background: var(--butter); }
.process-inner .process-content { max-width: var(--max-w); width: 100%; margin: 0 auto; }
.process-step {
  font-family: var(--display);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.process-step .num {
  margin-right: 12px;
  color: var(--pink-dark);
}
.process-row h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  color: var(--ink);
}
.process-row h3 em {
  font-style: italic;
  font-weight: 400;
  color: var(--pink-dark);
}
.process-row p {
  font-family: var(--display);
  font-weight: 300;
  font-size: 21px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 24px;
  letter-spacing: -0.005em;
  max-width: 56ch;
}
.process-quote {
  font-family: var(--display);
  font-weight: 400;
  font-size: 14px;
  color: var(--ink);
}
.process-quote b {
  display: block;
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

/* ───── About / Bio ───── */
.about {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 96px var(--pad-x) 96px 105px;
}
.about-body {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 3.4vw, 52px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 24px 0 0;
  max-width: 22ch;
}
.about-body em { font-style: italic; font-weight: 400; color: var(--pink-dark); }
.about-body .pill {
  background: var(--purple);
  padding: 0 26px;
  border-radius: 100px;
  display: inline-block;
  font-style: normal;
}
.about-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
}
.about-grid p {
  font-family: var(--display);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 16px;
  letter-spacing: -0.005em;
}
.about-grid p:last-child { margin-bottom: 0; }

/* ───── Experience timeline ───── */
.experience { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x) 96px 105px; }
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.tl-row {
  display: grid;
  grid-template-columns: 140px 1.2fr 1.6fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(51,51,51,0.18);
  align-items: baseline;
}
.tl-year {
  font-family: var(--display);
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tl-co {
  font-family: var(--display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.tl-co-formerly {
  display: block;
}
.tl-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pink-dark);
  margin-top: 4px;
}
.tl-note {
  font-family: var(--display);
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.45;
  letter-spacing: -0.005em;
}

/* ───── Clients band — large color block ───── */
.clients { background: var(--c-clients); color: var(--ink); padding: 96px 0; margin-top: 0; }
.clients-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x) 0 105px; }
.clients .kicker {
  font-family: var(--display);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.clients .kicker::before {
  content: "•";
  color: var(--pink-dark);
  font-size: 10px;
  line-height: 1;
  position: relative;
  top: -2px;
}
.clients h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 18px 0 56px;
  max-width: 18ch;
  color: var(--ink);
}
.clients h2 em { font-style: italic; font-weight: 400; color: var(--pink-dark); }
.client-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid rgba(51,51,51,0.18);
  border-left: 1px solid rgba(51,51,51,0.18);
}
.client-cell {
  padding: 32px 18px;
  border-right: 1px solid rgba(51,51,51,0.18);
  border-bottom: 1px solid rgba(51,51,51,0.18);
  font-family: var(--display);
  font-weight: 400;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 96px;
  transition: background .2s ease, color .2s ease;
}
.client-cell:hover { background: var(--ink); color: var(--linen); }

/* ───── Two-CTA split ───── */
.split-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.split-cta > div {
  padding: 64px var(--pad-x) 70px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 380px;
  justify-content: center;
}
.split-cta .pink   { background: var(--rose); }
.split-cta .gold   { background: var(--citron); }
.split-cta h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
}
.split-cta h3 em { font-style: italic; font-weight: 400; }
.split-cta p {
  font-family: var(--display);
  font-weight: 300;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
  max-width: 38ch;
  letter-spacing: -0.005em;
}

/* ───── Footer ───── */
footer { background: var(--c-footer); color: var(--ink); }
.footer-grand {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px var(--pad-x) 32px 105px;
}
.footer-display {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(36px, 6vw, 88px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 64px;
  color: var(--ink);
}
.footer-cols {
  display: grid;
  grid-template-columns: auto auto;
  gap: 80px;
  justify-content: start;
  padding-top: 56px;
  border-top: 1px solid rgba(51,51,51,0.18);
}
.footer-cols h4 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pink-dark);
  margin: 0 0 16px;
}
.footer-cols a {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
  padding: 5px 0;
  transition: color .2s;
}
.footer-cols a:hover { color: var(--pink-dark); }
.footer-cols .nav-download {
  display: block;
  font-size: 16px;
  font-weight: 400;
  padding: 5px 0;
  text-align: left;
}
.footer-cols p {
  font-family: var(--display);
  font-weight: 300;
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.5;
  margin: 0 0 8px;
  max-width: 36ch;
  letter-spacing: -0.005em;
}
.footer-fine {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px var(--pad-x) 32px 105px;
  border-top: 1px solid rgba(51,51,51,0.12);
  font-family: var(--display);
  font-weight: 400;
  font-size: 13px;
  color: var(--ink-2);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ───── Modal overlay ───── */
.overlay-bg {
  position: fixed; inset: 0;
  background: rgba(20,20,24,0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.overlay-bg.show { opacity: 1; pointer-events: all; }
.overlay {
  position: fixed;
  top: 24px; bottom: 24px;
  left: 0; right: 0;
  margin: 0 auto;
  width: min(1180px, calc(100vw - 48px));
  background: var(--paper);
  border-radius: 24px;
  z-index: 201;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(24px);
  opacity: 0;
  pointer-events: none;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s ease;
  box-shadow: 0 32px 80px rgba(0,0,0,0.35);
}
.overlay.show { transform: translateY(0); opacity: 1; pointer-events: all; }
.overlay-head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 20px;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid rgba(51,51,51,0.18);
  background: var(--paper);
  flex-shrink: 0;
}
.overlay-head .crumb {
  display: flex;
  align-items: baseline;
  gap: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.overlay-head .crumb .crumb-sub {
  font-size: 15px;
  color: var(--ink-2);
  letter-spacing: -0.01em;
  margin-left: 24px;
}
.overlay-nav { display: flex; gap: 6px; }
.overlay-nav button, .close-btn {
  font: inherit;
  font-family: var(--display);
  background: var(--black);
  border: none;
  border-radius: 50%;
  padding: 0;
  width: 44px;
  height: 44px;
  color: var(--white);
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity .15s;
}
.overlay-nav button:hover, .close-btn:hover { opacity: 0.75; }
.overlay-body { flex: 1; overflow-y: auto; padding: 32px 36px 56px; }
.overlay-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-bottom: 28px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(51,51,51,0.18);
}
.meta-block .label {
  font-family: var(--display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.meta-block .val {
  font-family: var(--display);
  font-weight: 400;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.45;
}
.meta-block .val .tag { display: inline-block; margin: 0 6px 4px 0; }
.overlay-summary {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 32px;
  max-width: 26ch;
}
.overlay-summary em { font-style: italic; font-weight: 400; color: var(--pink-dark); }
.overlay-img {
  width: 100%;
  background: white;
  border-radius: 16px;
  margin-bottom: 12px;
  display: block;
}
.overlay-img-cap {
  font-family: var(--display);
  font-weight: 400;
  font-size: 13px;
  color: var(--ink-2);
  margin: -4px 0 28px;
  letter-spacing: 0;
}

/* Auth image loader */
.auth-img-loading {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(51,51,51,0.08);
  border-radius: 16px;
  margin-bottom: 12px;
  animation: auth-pulse 1.4s ease-in-out infinite;
}
@keyframes auth-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}
.auth-img-error {
  width: 100%;
  padding: 24px;
  background: rgba(51,51,51,0.08);
  border-radius: 16px;
  margin-bottom: 12px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 13px;
  color: var(--ink-2);
  text-align: center;
}

/* Password gate modal */
.pw-bg {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 300;
}
.pw-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--paper);
  border-radius: 24px;
  padding: 36px 32px 28px;
  z-index: 301;
  width: min(440px, calc(100vw - 48px));
  box-shadow: 0 32px 80px rgba(0,0,0,0.35);
}
.pw-kicker {
  font-family: var(--display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.pw-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); display: inline-block; }
.pw-label {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 8px 0 6px;
}
.pw-note {
  font-family: var(--display);
  font-weight: 300;
  font-size: 16px;
  color: var(--ink);
  margin: 0 0 24px;
  line-height: 1.45;
  letter-spacing: -0.005em;
}
.pw-input {
  width: 100%;
  font: inherit;
  font-family: var(--display);
  font-weight: 400;
  font-size: 16px;
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: 100px;
  padding: 14px 20px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease;
}
.pw-input:focus { border-color: var(--pink-dark); }
.pw-error {
  font-family: var(--display);
  font-weight: 500;
  font-size: 13px;
  color: #c0392b;
  margin-top: 12px;
}
.pw-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }
.pw-cancel, .pw-submit {
  font: inherit;
  font-family: var(--display);
  font-weight: 500;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 100px;
  cursor: pointer;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  transition: all .15s ease;
}
.pw-submit { background: var(--ink); color: var(--paper); }
.pw-cancel:hover { background: var(--ink); color: var(--paper); }
.pw-submit:hover { background: var(--pink-dark); border-color: var(--pink-dark); color: var(--white); }

/* ════════════════════════════════════════════════════════════════
   ▓ CARD SECTIONS — May 2026 experiment ▓
   Wraps every top-level region as its own coloured "Huddle card"
   floating on a darker body frame. Pure CSS, no JS changes.
   ════════════════════════════════════════════════════════════════ */

:root {
  --frame:        #f4f4f4;   /* page surround — near white */
  --card-radius:  28px;
  --card-gap:     12px;
}

html, body { background: var(--frame); }

/* Tone palette per section card */
:root {
  --c-nav:        var(--citron);     /* #E5E8C2 */
  --c-hero:       var(--linen);      /* #E8E2D8 */
  --c-work:       var(--sky);        /* #B8CCDC */
  --c-process:    var(--seafoam);    /* #B8D9D9 — was black */
  --c-about:      var(--sage);       /* #C8DCBC */
  --c-experience: var(--wisteria);   /* #CCBEDC */
  --c-clients:    var(--apricot);    /* #EDD9BD — was black */
  --c-stats:      var(--rose);       /* #DCBEC8 */
  --c-splitcta:   transparent;       /* split-cta supplies its own halves */
  --c-footer:     var(--periwinkle); /* #C0C4DC — was black */
}

/* Generic card chrome: width + radius + gap.
   Applied to every top-level region individually below. */
.topnav,
.hero,
#work + .section-head,
.section-head + .filterbar,
.filterbar + .work-list,
#process + .stack-scene,
#about + .about,
#experience + .section-head,
.section-head + .experience,
.clients,
.stats,
.split-cta,
footer {
  width: calc(100% - (var(--card-gap) * 2));
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

/* ── Topnav: sticky pill at the top of the frame ── */
.topnav {
  background: var(--c-nav);
  border-radius: 100px;
  margin-top: var(--card-gap);
  margin-bottom: 0;
  top: var(--card-gap);
  border-bottom: none;
}
.topnav-inner { padding: 14px 32px; }

/* ── Hero card ── */
.hero {
  background: var(--c-hero);
  border-radius: var(--card-radius);
  border-bottom-left-radius: var(--card-radius);
  border-bottom-right-radius: var(--card-radius);
  margin-top: var(--card-gap);
  margin-bottom: var(--card-gap);
  padding: 64px 72px 70px 72px;
}

/* ── Work area (3 contiguous siblings) shares one continuous coloured surface ── */
#work + .section-head,
.section-head + .filterbar,
.filterbar + .work-list {
  background: var(--c-work);
  padding-left: 72px;
  padding-right: 72px;
}
#work + .section-head {
  border-top-left-radius: var(--card-radius);
  border-top-right-radius: var(--card-radius);
  padding-top: 64px;
  padding-bottom: 24px;
  margin-top: var(--card-gap);
}
.section-head + .filterbar {
  padding-top: 0;
  padding-bottom: 24px;
}
.filterbar + .work-list {
  border-bottom-left-radius: var(--card-radius);
  border-bottom-right-radius: var(--card-radius);
  padding-top: 0;
  padding-bottom: 70px;
  margin-bottom: var(--card-gap);
}

/* ── Process: keep its sticky-stack scene, just frame it as a card ── */
#process + .stack-scene {
  background: var(--frame);
  border-radius: var(--card-radius);
  border-bottom-left-radius: var(--card-radius);
  border-bottom-right-radius: var(--card-radius);
  margin-top: var(--card-gap);
  margin-bottom: var(--card-gap);
  /* NOTE: must NOT use overflow:hidden — it would kill the sticky stack */
}

/* ── About card ── */
#about + .about {
  background: var(--c-about);
  border-radius: var(--card-radius);
  border-bottom-left-radius: var(--card-radius);
  border-bottom-right-radius: var(--card-radius);
  margin-top: var(--card-gap);
  margin-bottom: var(--card-gap);
  padding: 64px 72px 70px;
}

/* ── Experience area (heading + timeline = one card) ── */
#experience + .section-head,
.section-head + .experience {
  background: var(--c-experience);
  padding-left: 72px;
  padding-right: 72px;
}
#experience + .section-head {
  border-top-left-radius: var(--card-radius);
  border-top-right-radius: var(--card-radius);
  padding-top: 64px;
  padding-bottom: 24px;
  margin-top: var(--card-gap);
}
.section-head + .experience {
  border-bottom-left-radius: var(--card-radius);
  border-bottom-right-radius: var(--card-radius);
  padding-top: 0;
  padding-bottom: 70px;
  margin-bottom: var(--card-gap);
}

/* ── Clients: dark card ── */
.clients {
  border-radius: var(--card-radius);
  border-bottom-left-radius: var(--card-radius);
  border-bottom-right-radius: var(--card-radius);
  margin-top: var(--card-gap);
  margin-bottom: var(--card-gap);
  padding: 64px 0 70px;
  overflow: hidden;
}
.clients-inner { padding-left: 72px; padding-right: 72px; }

/* ── Stats: stand-alone card (kill the previous border-top divider) ── */
.stats {
  background: var(--c-stats);
  border-radius: var(--card-radius);
  border-bottom-left-radius: var(--card-radius);
  border-bottom-right-radius: var(--card-radius);
  margin-top: var(--card-gap);
  margin-bottom: var(--card-gap);
  padding: 48px 72px 70px;
  border-top: none;
}
.stat .num em { color: var(--pink-dark); }

/* ── Split CTA: rounded card; halves keep their existing pink + gold ── */
.split-cta {
  border-radius: var(--card-radius);
  border-bottom-left-radius: var(--card-radius);
  border-bottom-right-radius: var(--card-radius);
  margin-top: var(--card-gap);
  margin-bottom: var(--card-gap);
  overflow: hidden;
}

/* ── Footer card ── */
footer {
  border-radius: var(--card-radius);
  border-bottom-left-radius: var(--card-radius);
  border-bottom-right-radius: var(--card-radius);
  margin-top: var(--card-gap);
  margin-bottom: var(--card-gap);
  overflow: hidden;
}

/* Empty anchor divs render with 0 height — make sure they don't
   inject vertical gaps between cards */
#work, #process, #about, #experience { height: 0; margin: 0; padding: 0; }

/* Existing inner-section paddings collide with our card padding;
   neutralize the originals where the cards now own the chrome */
.hero,
#about + .about,
.stats { /* keep at 100%-card-gap*2 width set above */ }

/* On narrower viewports trim gap + radius so cards still look like cards */
@media (max-width: 700px) {
  :root { --card-gap: 8px; --card-radius: 22px; }
  .hero, #about + .about, .stats { padding-left: 28px; padding-right: 28px; }
  #work + .section-head,
  .section-head + .filterbar,
  .filterbar + .work-list,
  #experience + .section-head,
  .section-head + .experience { padding-left: 28px; padding-right: 28px; }
  .clients-inner { padding-left: 28px; padding-right: 28px; }
}

/* ════════ End CARD SECTIONS ════════ */

/* Responsive */
@media (max-width: 1200px) {
  :root { --pad-x: 56px; }
  .topnav-inner, .hero, .stats, .section-head, .filterbar, .work-list, .about, .experience, .clients-inner, .footer-grand, .footer-fine, .process-row { padding-left: 56px; padding-right: 56px; }
}
@media (max-width: 1024px) {
  :root { --pad-x: 32px; }
  .topnav-inner { grid-template-columns: auto 1fr auto; }
  .navlinks { display: none; }
  .about-body .pill { padding: 0 17px; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 32px var(--pad-x) 64px; }
  .stats { grid-template-columns: repeat(2, 1fr); padding-left: var(--pad-x); padding-right: var(--pad-x); }
  .topnav-inner, .section-head, .filterbar, .work-list, .about, .experience, .clients-inner, .footer-grand, .footer-fine, .process-row { padding-left: var(--pad-x); padding-right: var(--pad-x); }
  .process-row { grid-template-columns: 1fr; gap: 24px; padding: 56px var(--pad-x); }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .tl-row { grid-template-columns: 1fr; gap: 6px; }
  .client-grid { grid-template-columns: repeat(3, 1fr); }
  .split-cta { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: auto auto; gap: 80px; justify-content: start; }
  .overlay-meta { grid-template-columns: repeat(2, 1fr); }
  .stat .num { font-size: 56px; }
}
@media (max-width: 640px) {
  :root { --pad-x: 24px; }
  .hero-display { font-size: clamp(36px, 9vw, 56px); }
  .footer-display { font-size: clamp(36px, 11vw, 64px); }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  /* Footer mobile: override hardcoded 105px left padding, side-by-side columns */
  .footer-grand { padding-left: 24px; padding-right: 24px; }
  .footer-fine  { padding-left: 24px; padding-right: 24px; flex-direction: column; gap: 8px; }
  .footer-cols  { grid-template-columns: auto auto; gap: 0 70px; justify-content: start; }
  .fine-tagline { display: none; }
  /* Cycling pill: remove fixed min-width so it doesn't overflow on narrow screens */
  .hero-display .word.cycle { min-width: 0; width: auto; padding: 2px 20px; }
  .overlay { left: 12px; right: 12px; top: 12px; bottom: 12px; width: auto; margin: 0; border-radius: 16px; }
  .overlay-meta { grid-template-columns: 1fr 1fr; }
  .btn-primary { font-size: 17px; padding: 16px 24px; }
}
