/* =========================================================
   DESIGN SYSTEM
   One set of rules for every page. Loaded after style.css,
   so anything here wins. If you need a size, a gap, a shadow
   or a color, take it from the list below. Don't invent new
   ones.

   TYPE: five sizes, three fonts
     display   the one playful headline per page (Instrument Serif)
     h2        page and section headings (Georgia)
     h3        card titles, the lead line (Georgia)
     body      paragraphs (Helvetica / Arial)
     small     labels, tags, buttons, meta (Helvetica, caps)

   SPACE: 8 · 16 · 24 · 48 · 96 (px)
   CORNERS: 999px for pills, 16px for cards
   SHADOW: one soft shadow, plus a slightly bigger one on hover
   BORDER: 1px ink
   COLOR: paper, ink, muted, plus one soft tint per page
   ========================================================= */

:root {
  /* Color */
  --paper: #fbf6ef;
  --surface: #ffffff;
  --ink: #151515;
  --muted: #5f5b54;
  --line: rgba(21, 21, 21, 0.14);

  --tint-yellow: #ffd166;
  --tint-blue: #dcecff;
  --tint-green: #d9f7ea;
  --tint-coral: #ffe1db;
  --tint-violet: #ebe5ff;
  --tint-pink: #ffe3f0;
  --highlight: #7fe0a6;

  /* Type */
  --font-display: "Instrument Serif", Georgia, serif;
  --font-head: Georgia, "Times New Roman", serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --fs-display: clamp(52px, 7.4vw, 112px);
  --fs-h2: clamp(32px, 4.2vw, 52px);
  --fs-h3: clamp(20px, 1.9vw, 24px);
  --fs-body: 17px;
  --fs-small: 13px;

  /* Space */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 48px;
  --s5: 96px;

  /* Shape */
  --radius-pill: 999px;
  --radius-card: 16px;
  --border: 1px solid var(--ink);
  --shadow: 0 1px 2px rgba(21, 21, 21, 0.06), 0 4px 14px rgba(21, 21, 21, 0.06);
  --shadow-hover: 0 2px 4px rgba(21, 21, 21, 0.08), 0 10px 26px rgba(21, 21, 21, 0.1);

  --nav-height: 68px;
}

@media (max-width: 760px) {
  :root {
    --fs-body: 16px;
    --s5: 64px;
    --nav-height: 60px;
  }
}

body {
  background: var(--paper);
  font-family: var(--font-body);
  font-size: var(--fs-body);
}


/* =========================================================
   NAV: fixed on every page, so the pages and the contact
   links are always one click away.
   ========================================================= */

.nav,
.nav.wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  width: auto;
  height: var(--nav-height);

  padding: 0 max(24px, calc((100% - 1180px) / 2));

  transform: none;

  gap: var(--s2);

  background: rgba(251, 246, 239, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);

  border-bottom: 1px solid var(--line);
}

.brand {
  flex-shrink: 0;

  padding: 6px 9px;

  border: var(--border);
  border-radius: 10px;

  font-size: var(--fs-small);
  line-height: 1;
}

.nav nav {
  gap: var(--s1);
}

.nav nav a {
  --pill: var(--surface);
  --pill-strong: var(--tint-yellow);

  padding: 8px 14px;

  font-size: var(--fs-small);

  box-shadow: none;
}

.nav nav a:hover,
.nav nav a:focus-visible {
  transform: none;

  box-shadow: var(--shadow);
}

/* One tint per page, matching that page's color */
.nav nav a[href="work.html"]     { --pill: var(--surface); --pill-strong: #9ec9ff; }
.nav nav a[href="nudge.html"]    { --pill: var(--surface); --pill-strong: #8be6c0; }
.nav nav a[href="new-york.html"] { --pill: var(--surface); --pill-strong: #ff9d90; }
.nav nav a[href="notes.html"]    { --pill: var(--surface); --pill-strong: #bfb0ff; }

/* The page you're on is filled in */
.nav nav a[aria-current="page"] {
  background: var(--pill-strong);
}

.nav nav .nav-contact {
  border-color: transparent;
  background: transparent;
}

.nav nav .nav-contact:hover,
.nav nav .nav-contact:focus-visible {
  border-color: var(--ink);
  background: var(--surface);
}

.nav nav .nav-cv {
  --pill: var(--tint-yellow);
  --pill-strong: #ffc233;
}

.nav-divider {
  flex-shrink: 0;

  width: 1px;
  height: 20px;

  margin: 0 var(--s1);

  background: var(--line);
}

@media (max-width: 760px) {

  .nav nav a {
    padding: 7px 12px;
  }

}


/* =========================================================
   BUILDING BLOCKS
   ========================================================= */

/* Tag: small caps label in a pill */
.tag {
  display: inline-block;

  margin: 0 0 var(--s3);

  padding: 7px 12px;

  border: var(--border);
  border-radius: var(--radius-pill);

  background: var(--surface);

  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
}

.tag-yellow { background: var(--tint-yellow); }
.tag-blue   { background: var(--tint-blue); }
.tag-green  { background: var(--tint-green); }
.tag-coral  { background: var(--tint-coral); }
.tag-violet { background: var(--tint-violet); }
.tag-pink   { background: var(--tint-pink); }

/* Label: the same caps text without the pill */
.label {
  display: block;

  margin: 0 0 var(--s1);

  color: var(--muted);

  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* Buttons */
.button-row {
  display: flex;
  flex-wrap: wrap;

  gap: var(--s1);
}

.btn {
  display: inline-flex;
  align-items: center;

  padding: 12px 18px;

  border: var(--border);
  border-radius: var(--radius-pill);

  background: var(--surface);

  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;

  box-shadow: var(--shadow);

  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  box-shadow: var(--shadow-hover);
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

/* Card: white surface, 1px border, soft shadow */
.card {
  border: var(--border);
  border-radius: var(--radius-card);

  background: var(--surface);

  box-shadow: var(--shadow);
}

.plain-list {
  margin: 0 0 var(--s3);
  padding: 0;

  list-style: none;
}

.plain-list li {
  position: relative;

  padding: 0 0 var(--s1) var(--s3);

  line-height: 1.5;
}

.plain-list li::before {
  content: "→";

  position: absolute;
  left: 0;
}

/* Highlighter on an italic word in a heading */
.home-hero h1 em,
.block h2 em {
  padding: 0 0.06em;

  font-style: italic;

  background-image: linear-gradient(transparent 60%, var(--highlight) 60%, var(--highlight) 90%, transparent 90%);
}


/* =========================================================
   PAGE SECTIONS (home + list on the Work page)
   ========================================================= */

.block {
  padding: var(--s5) 0;

  border-top: 1px solid var(--line);
}

.block h2 {
  margin: 0 0 var(--s3);

  font-family: var(--font-head);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.prose {
  max-width: 720px;
}

.prose p {
  margin: 0 0 var(--s2);

  font-size: var(--fs-body);
  line-height: 1.65;
}


/* ---------- Home hero ---------- */

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  align-items: center;

  gap: var(--s4);

  padding: calc(var(--nav-height) + var(--s5)) 0 var(--s5);
}

.home-hero h1 {
  margin: 0 0 var(--s3);

  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.035em;
}

.lead {
  max-width: 620px;

  margin: 0 0 var(--s4);

  font-family: var(--font-head);
  font-size: var(--fs-h3);
  line-height: 1.45;
}

.home-now {
  padding: var(--s3);
}

.home-now p:last-child {
  margin: 0;

  line-height: 1.5;
}

@media (max-width: 900px) {

  .home-hero {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;

    min-height: 0;
  }

}


/* ---------- Numbered list (what I've built, all 20 campaigns) ---------- */

.work-list {
  margin: 0;
  padding: 0;

  list-style: none;

  border-top: 1px solid var(--line);
}

.work-list li {
  border-bottom: 1px solid var(--line);
}

.work-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: baseline;

  gap: var(--s3);

  padding: var(--s3) var(--s1);

  text-decoration: none;

  transition: background 0.2s ease;
}

a.work-row:hover,
a.work-row:focus-visible {
  background: var(--surface);
}

.work-num,
.work-meta {
  color: var(--muted);

  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.work-meta {
  text-align: right;
  white-space: nowrap;
}

.work-title {
  display: block;

  margin-bottom: 6px;

  font-family: var(--font-head);
  font-size: var(--fs-h3);
}

.work-text {
  display: block;

  max-width: 680px;

  color: var(--muted);

  line-height: 1.55;
}

@media (max-width: 760px) {

  .work-row {
    grid-template-columns: 32px minmax(0, 1fr);

    gap: var(--s1) var(--s2);
  }

  .work-meta {
    grid-column: 2;

    text-align: left;
    white-space: normal;
  }

}


/* ---------- Page cards on Home ---------- */

.page-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: var(--s2);
}

.page-card {
  display: flex;
  flex-direction: column;

  padding: var(--s3);

  background: var(--tint, var(--surface));

  text-decoration: none;

  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.page-card:hover,
.page-card:focus-visible {
  transform: translateY(-2px);

  box-shadow: var(--shadow-hover);
}

.page-card .label {
  color: var(--ink);
}

.page-card-title {
  margin: var(--s1) 0;

  font-family: var(--font-head);
  font-size: var(--fs-h3);
  line-height: 1.2;
}

.page-card-text {
  flex: 1;

  margin-bottom: var(--s3);

  line-height: 1.5;
}

.page-card-go {
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.06em;
}

@media (max-width: 1000px) {
  .page-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .page-cards { grid-template-columns: minmax(0, 1fr); }
}


/* =========================================================
   INNER PAGES (Nudge, New York, MBA Notes)
   The existing sections, brought onto the same scale.
   ========================================================= */

.page-inner main > .wrap > section:first-child {
  padding-top: calc(var(--nav-height) + var(--s5));
}

.page-inner .statement,
.page-inner .map,
.page-inner .writing,
.page-inner .nyc-section {
  padding-bottom: var(--s5);
}

.statement h2, .statement h1,
.map h2, .map h1,
.about h2,
.agencies .agencies-head h2, .agencies-head h1,
.nudge .nudge-head h2, .nudge-head h1,
.nyc-heading h2 {
  font-family: var(--font-head);
  font-size: var(--fs-h2);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.statement p:not(.index),
.map-head p,
.nudge-head p,
.agencies-head p,
.nyc-heading p {
  font-size: var(--fs-body);
  line-height: 1.65;
}

/* Section labels: same tag style everywhere */
.statement > .index,
.nyc-heading .index,
.map > .index,
.writing > .index {
  padding: 7px 12px;

  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;

  box-shadow: none;
}

/* Hero tag on the Work page */
.hero-intro .eyebrow {
  font-size: var(--fs-small);
  font-weight: 600;

  box-shadow: none;
}


/* =========================================================
   WORK PAGE
   ========================================================= */

.page-work #all {
  border-top: 0;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
  font-size: var(--fs-small);
}


/* =========================================================
   NYC 3D CITY (nyc.js)
   Warm paper instead of sky blue. Only the five company
   towers are in color; their name tags are real buttons.
   ========================================================= */

.nyc-experience {
  border: var(--border);
  border-radius: var(--radius-card);

  background: #f6efe3;

  box-shadow: var(--shadow);
}

.nyc-labels {
  pointer-events: none;
}

.nyc-label-pos {
  position: absolute;
  top: 0;
  left: 0;

  will-change: transform;
}

.nyc-label {
  position: relative;

  display: inline-flex;
  align-items: center;

  padding: 7px 11px;

  font: 600 11px / 1 var(--font-body);
  letter-spacing: 0.06em;

  box-shadow: var(--shadow);

  cursor: pointer;

  pointer-events: auto;

  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.nyc-label:hover,
.nyc-label:focus-visible,
.nyc-label.is-active {
  background: var(--brand);
  color: #ffffff;

  box-shadow: var(--shadow-hover);
}

.nyc-label:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.nyc-label:hover::before,
.nyc-label:focus-visible::before,
.nyc-label.is-active::before {
  background: #ffffff;
}

.nyc-credit {
  margin: var(--s2) 0 0;

  color: var(--muted);

  font-size: var(--fs-small);
  line-height: 1.5;
}

.nyc-credit a {
  color: inherit;
}

@media (max-width: 760px) {

  .nyc-label {
    padding: 6px 9px;

    font-size: 10px;
  }

}


/* =========================================================
   HIGHLIGHTS
   The same highlighter as the hero's "grow." — on headings
   (italic word) and on a key phrase inside a line (<mark>).
   ========================================================= */

mark {
  padding: 0 0.12em;

  color: inherit;

  background: linear-gradient(transparent 38%, var(--mark, var(--tint-yellow)) 38%, var(--mark, var(--tint-yellow)) 94%, transparent 94%);
}

.block h2 em {
  background-image: linear-gradient(transparent 60%, var(--mark, var(--highlight)) 60%, var(--mark, var(--highlight)) 90%, transparent 90%);
}

#built { --mark: #b9d8ff; }
#explore { --mark: #a6ecc9; }
#about { --mark: #ffc4de; }
#all { --mark: #b9d8ff; }

/* Numbers in the lists become small colored circles */
.work-num {
  display: inline-grid;
  place-items: center;

  width: 32px;
  height: 32px;

  border: var(--border);
  border-radius: 50%;

  background: var(--num, var(--tint-blue));
  color: var(--ink);

  letter-spacing: 0;
}

.work-list li:nth-child(4n + 1) .work-num { --num: var(--tint-blue); }
.work-list li:nth-child(4n + 2) .work-num { --num: var(--tint-green); }
.work-list li:nth-child(4n + 3) .work-num { --num: var(--tint-coral); }
.work-list li:nth-child(4n + 4) .work-num { --num: var(--tint-violet); }

.work-row {
  align-items: center;
}

/* Hovering a row tints it with its own color */
.work-list li:nth-child(4n + 1) a.work-row:hover { background: #eef5ff; }
.work-list li:nth-child(4n + 2) a.work-row:hover { background: #ecfaf3; }
.work-list li:nth-child(4n + 3) a.work-row:hover { background: #fff1ed; }
.work-list li:nth-child(4n + 4) a.work-row:hover { background: #f4f0ff; }

.work-text {
  color: #3f3c37;
}


/* The agencies used to tuck up under the old one-page hero
   (negative margin). On their own page they start below the nav. */
body.page-inner #statement {
  margin-top: 0;

  padding-top: calc(var(--nav-height) + var(--s5));
}


/* =========================================================
   CURSOR
   The normal system cursor everywhere; a hand on anything
   you can click.
   ========================================================= */

.custom-cursor-ring,
.custom-cursor-dot {
  display: none;
}

button,
[role="tab"],
[role="button"],
.morph-card,
.agency-row,
summary {
  cursor: pointer;
}

#nycCanvas {
  cursor: grab;
}

#nycCanvas:active {
  cursor: grabbing;
}


/* =========================================================
   CAMPAIGN CARD (.c-card)
   One small card per campaign in its brand color. Used for
   the fanned deck in the Home hero and the moving strip.
   ========================================================= */

.c-card {
  position: relative;

  display: flex;
  flex-direction: column;

  width: 196px;
  aspect-ratio: 3 / 4;

  padding: var(--s2);

  overflow: hidden;

  border: var(--border);
  border-radius: var(--radius-card);

  background: var(--c);
  color: var(--c-ink);

  box-shadow: var(--shadow);

  text-decoration: none;

  transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), box-shadow 0.35s ease;
}

.c-num {
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.c-mark {
  flex: 1;

  display: grid;
  place-items: center;
}

.c-logo {
  width: 56px;
  height: 56px;

  object-fit: contain;
}

.c-logo.is-wide {
  width: 120px;
}

.c-logo.is-light {
  filter: invert(1);
}

.c-mark.is-word {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: 1;
  font-style: italic;
  text-align: center;
}

.c-foot strong {
  display: block;

  font-family: var(--font-head);
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: 1.1;
}

.c-foot span {
  display: block;

  margin-top: 4px;

  font-size: var(--fs-small);
  opacity: 0.85;
}

/* hook line on hover */
.c-hook {
  position: absolute;
  inset: auto 0 0 0;

  display: flex;
  flex-direction: column;
  gap: var(--s1);

  padding: var(--s2);

  background: var(--ink);
  color: var(--paper);

  font-family: var(--font-head);
  font-size: var(--fs-body);
  line-height: 1.3;

  transform: translateY(101%);

  transition: transform 0.35s cubic-bezier(.2, .8, .2, 1);
}

.c-hook em {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.c-card:hover .c-hook,
.c-card:focus-visible .c-hook {
  transform: translateY(0);
}

.c-card:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}


/* ---------- Hero deck: five cards in a fan ---------- */

.home-hero {
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
}

.hero-deck-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;

  gap: var(--s3);
}

.hero-deck {
  position: relative;

  width: 100%;
  height: 340px;
}

.hero-deck .c-card {
  position: absolute;
  left: 50%;
  bottom: 0;

  margin-left: -98px;

  transform-origin: 50% 120%;
  transform: translateX(calc(var(--i) * 30px)) rotate(calc(var(--i) * 6deg));

  z-index: calc(10 - var(--i) * var(--i));
}

/* hovering the deck spreads the fan */
.hero-deck:hover .c-card,
.hero-deck:focus-within .c-card {
  transform: translateX(calc(var(--i) * 54px)) rotate(calc(var(--i) * 8deg));
}

.hero-deck .c-card:hover,
.hero-deck .c-card:focus-visible {
  z-index: 20;

  box-shadow: var(--shadow-hover);

  transform: translateX(calc(var(--i) * 54px)) translateY(-18px) rotate(calc(var(--i) * 3deg));
}

.deck-caption {
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;

  border-bottom: 1px solid var(--ink);
}

@media (max-width: 900px) {

  .home-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-deck {
    height: 300px;
  }

  .hero-deck .c-card {
    width: 168px;

    margin-left: -84px;
  }

}

@media (max-width: 420px) {

  .hero-deck .c-card {
    transform: translateX(calc(var(--i) * 24px)) rotate(calc(var(--i) * 6deg));
  }

  .hero-deck:hover .c-card,
  .hero-deck:focus-within .c-card,
  .hero-deck .c-card:hover {
    transform: translateX(calc(var(--i) * 30px)) rotate(calc(var(--i) * 7deg));
  }

}


/* ---------- "At a glance" strip under the hero ---------- */

.glance {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;

  gap: var(--s1) var(--s3);

  padding: var(--s3) 0;

  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.glance .label {
  margin: 0;
}

.glance-list {
  display: flex;
  flex-wrap: wrap;

  gap: var(--s1) var(--s3);

  margin: 0;
  padding: 0;

  list-style: none;
}

.glance-list li {
  display: inline-flex;
  align-items: center;

  gap: var(--s1);
}

.dot {
  width: 10px;
  height: 10px;

  border: var(--border);
  border-radius: 50%;

  background: var(--dot);
}

.glance-looking {
  grid-column: 1 / -1;

  margin: 0;
}

.glance-looking .label {
  display: inline;

  margin-right: var(--s1);
}

@media (max-width: 760px) {

  .glance {
    grid-template-columns: minmax(0, 1fr);
  }

  .glance-list {
    flex-direction: column;
  }

}


/* ---------- Moving strip of all 20 ---------- */

.rail-section {
  padding: var(--s5) 0 var(--s4);
}

.rail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;

  gap: var(--s2);

  margin-bottom: var(--s4);
}

.rail-head h2 {
  margin: 0;

  font-family: var(--font-head);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.rail-head h2 em {
  background-image: linear-gradient(transparent 60%, var(--tint-yellow) 60%, var(--tint-yellow) 90%, transparent 90%);
}

.campaign-rail {
  overflow: hidden;

  padding: var(--s3) 0;

  /* soft fade at both edges */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.rail-track {
  display: flex;

  gap: var(--s2);

  width: max-content;

  animation: rail-move 110s linear infinite;
}

.campaign-rail:hover .rail-track,
.campaign-rail:focus-within .rail-track {
  animation-play-state: paused;
}

.rail-track .c-card {
  flex-shrink: 0;
}

/* every other card tilts a little, like cards on a table */
.rail-track .c-card:nth-child(odd)  { transform: rotate(-1.5deg); }
.rail-track .c-card:nth-child(even) { transform: rotate(1.5deg) translateY(10px); }

.rail-track .c-card:hover,
.rail-track .c-card:focus-visible {
  transform: rotate(0) translateY(-10px);

  box-shadow: var(--shadow-hover);
}

@keyframes rail-move {
  to {
    transform: translateX(calc(-50% - var(--s2) / 2));
  }
}

/* No motion wanted: the strip becomes a row you can swipe */
@media (prefers-reduced-motion: reduce) {

  .campaign-rail {
    overflow-x: auto;
  }

  .rail-track {
    animation: none;
  }

}


/* =========================================================
   WARMER HIGHLIGHTS (no blue)
   ========================================================= */

#built   { --mark: #ffd166; }
#explore { --mark: #a6ecc9; }
#about   { --mark: #ffc4de; }
#all     { --mark: #ffd166; }

.work-list li:nth-child(4n + 1) .work-num { --num: #ffb4a8; }
.work-list li:nth-child(4n + 2) .work-num { --num: #ffd98a; }
.work-list li:nth-child(4n + 3) .work-num { --num: #9fe3db; }
.work-list li:nth-child(4n + 4) .work-num { --num: #f9b4dc; }

.work-list li:nth-child(4n + 1) a.work-row:hover { background: #fff1ed; }
.work-list li:nth-child(4n + 2) a.work-row:hover { background: #fff7e3; }
.work-list li:nth-child(4n + 3) a.work-row:hover { background: #ebfaf8; }
.work-list li:nth-child(4n + 4) a.work-row:hover { background: #fff0f8; }



/* =========================================================
   HOME HERO: 3D NEW YORK (replaces the card deck; the cards
   live in the moving strip below)
   ========================================================= */

.hero-city-wrap {
  display: flex;
  flex-direction: column;

  gap: var(--s2);
}

.nyc-experience.hero-city {
  height: 540px;
  min-height: 0;
}

.hero-city-caption {
  margin: 0;

  font-family: var(--font-head);
  font-size: var(--fs-body);
  line-height: 1.4;
}

.hero-city-caption span {
  display: block;

  color: var(--muted);

  font-family: var(--font-body);
  font-size: var(--fs-small);
}

.hero-city-caption a {
  color: inherit;
}

@media (max-width: 900px) {

  .nyc-experience.hero-city {
    height: 460px;
  }

}


/* ---------- Home: New York section ---------- */

.section-lead {
  max-width: 640px;

  margin: 0 0 var(--s4);

  font-size: var(--fs-body);
  line-height: 1.6;
}

#nyc { --mark: #ffd166; }

.nyc-experience.home-city {
  height: clamp(440px, 64vh, 640px);
  min-height: 0;
}


/* =========================================================
   HOME HERO: MINI NUDGE ENGINE
   ========================================================= */

.visually-hidden {
  position: absolute;

  width: 1px;
  height: 1px;

  overflow: hidden;

  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hero-engine {
  position: relative;

  padding: var(--s3);

  transform: rotate(1.2deg);

  box-shadow: var(--shadow-hover);
}

/* a strip of tape at the top, like a note pinned to the wall */
.hero-engine::before {
  content: "";

  position: absolute;
  top: -12px;
  left: 50%;

  width: 92px;
  height: 24px;

  background: rgba(255, 209, 102, 0.85);

  transform: translateX(-50%) rotate(-3deg);
}

.he-sentence {
  margin: 0 0 var(--s3);

  font-family: var(--font-head);
  font-size: var(--fs-h3);
  line-height: 1.7;
}

.he-select {
  position: relative;

  display: inline-block;
}

.he-select select {
  appearance: none;
  -webkit-appearance: none;

  padding: 4px 30px 4px 12px;

  border: var(--border);
  border-radius: var(--radius-pill);

  background: var(--tint-yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23151515' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 11px center;

  color: var(--ink);

  font: inherit;
  font-style: italic;

  cursor: pointer;
}

.he-select select:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.he-result {
  padding-top: var(--s3);

  border-top: 1px dashed var(--line);
}

.he-pull {
  display: flex;
  flex-wrap: wrap;
  align-items: center;

  gap: var(--s1);

  margin: 0 0 var(--s2);
}

.he-pull-word {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: 1;
}

.he-plus {
  font-size: var(--fs-h3);
}

.he-chip {
  display: inline-flex;
  align-items: center;

  gap: 6px;

  padding: 8px 14px;

  border: var(--border);
  border-radius: var(--radius-pill);

  background: var(--chip);

  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.he-icon {
  font-size: var(--fs-body);
  line-height: 1;
}

.he-idea {
  margin: 0 0 var(--s2);

  line-height: 1.55;
}

.he-like {
  margin: 0;

  color: var(--muted);

  font-size: var(--fs-small);
  line-height: 1.5;
}

.he-like strong {
  color: var(--ink);
}

.he-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: var(--s2);

  margin-top: var(--s3);
}

.he-shuffle {
  padding: 8px 14px;

  border: var(--border);
  border-radius: var(--radius-pill);

  background: var(--ink);
  color: var(--paper);

  font-size: var(--fs-small);
  font-weight: 600;
}

.he-shuffle:hover {
  box-shadow: var(--shadow-hover);
}

.he-more {
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;

  border-bottom: 1px solid var(--ink);
}

@media (max-width: 900px) {

  .hero-engine {
    transform: none;
  }

}
