/* =========================================================
   WARM REFINEMENTS
   The warm, colorful design (style.css + system.css) stays.
   This file only polishes it, following the designer's notes:
   - the VP mark with the orange arrow
   - real icons (Lucide) instead of text arrows
   - campaign cards you can drag and swipe; straight, not tilted;
     the card under the pointer grows so it can be read
   - calmer type in the hero card, less dead space
   ========================================================= */

:root {
  --arrow-orange: #ff6b35;
}


/* ---------- The mark: VP + rising orange arrow ---------- */

.brand-mark {
  display: inline-flex;
  align-items: center;

  color: var(--ink, #151515);
  text-decoration: none;
}

/* a square badge: VP on ink, orange arrow rising; scales with the screen */
.mark-svg {
  width: clamp(36px, 2.9vw, 42px);
  height: clamp(36px, 2.9vw, 42px);
}

.mark-bg {
  fill: var(--ink, #151515);
}

.mark-svg text {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 18px;

  fill: #faf6ef;
}

.mark-arrow {
  fill: none;

  stroke: var(--arrow-orange);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;

  transition: transform 260ms cubic-bezier(.2, .8, .2, 1);
}

.brand-mark:hover .mark-arrow {
  transform: translate(1px, -1px);
}


/* ---------- Icons ---------- */

.lucide {
  width: 15px;
  height: 15px;

  margin-left: 4px;

  stroke-width: 2;

  vertical-align: -2px;
}

.nav nav a .lucide {
  width: 13px;
  height: 13px;
}


/* ---------- Less dead space ---------- */

.block {
  padding: 72px 0;
}

.home-hero {
  padding-bottom: 64px;
}

.rail-section {
  padding: 72px 0 40px;
}


/* ---------- Hero card: one calm voice ---------- */

.he-icon {
  display: none;
}

.he-chip {
  letter-spacing: 0.04em;
}


/* ---------- Campaign cards: alive, and in your hands ----------
   They drift on their own; grab, drag or swipe them; the one
   under the pointer grows. No tilt, nothing cut off. */

.campaign-rail {
  overflow-x: auto;
  overflow-y: hidden;

  padding: 36px 0 44px;

  scrollbar-width: none;

  cursor: grab;

  /* soft fade only at the very edges */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.campaign-rail::-webkit-scrollbar {
  display: none;
}

.campaign-rail.is-dragging {
  cursor: grabbing;
}

.campaign-rail.is-dragging .c-card {
  pointer-events: none;
}

.rail-track {
  animation: none !important;

  padding-inline: 4%;
}

.rail-track .c-card,
.rail-track .c-card:nth-child(odd),
.rail-track .c-card:nth-child(even) {
  transform: none;

  transition: transform 320ms cubic-bezier(.2, .8, .2, 1), box-shadow 320ms ease;

  user-select: none;
  -webkit-user-drag: none;
}

.rail-track .c-card:hover,
.rail-track .c-card:focus-visible {
  z-index: 2;

  transform: scale(1.08) translateY(-6px);

  box-shadow: 0 2px 6px rgba(21, 21, 21, 0.08), 0 18px 40px rgba(21, 21, 21, 0.16);
}

.c-logo {
  max-width: 70%;
}

.c-logo.is-wide {
  width: auto;
  max-width: 78%;
  max-height: 44px;
}

.c-foot strong,
.c-foot span {
  overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
  .rail-track .c-card:hover {
    transform: none;
  }
}


/* ---------- Work page: the list of twenty ---------- */

.work-page {
  padding-top: calc(var(--nav-height, 68px) + 72px);

  border-top: 0;
}

.work-page h1 {
  margin: 0 0 var(--s3, 24px);

  font-family: var(--font-head, Georgia, serif);
  font-size: var(--fs-h2, clamp(32px, 4.2vw, 52px));
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.work-page h1 em {
  padding: 0 0.06em;

  font-style: italic;

  background-image: linear-gradient(transparent 60%, #ffd166 60%, #ffd166 90%, transparent 90%);
}

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

  margin: 0 0 var(--s4, 48px);

  line-height: 1.65;
}

.work-list li[hidden] {
  display: none;
}

.see-more-row {
  margin-top: var(--s3, 24px);
}


/* ---------- A fuller first screen ----------
   The hero sits higher and a size smaller, so "Best at /
   Looking for" is visible without scrolling. */

.home-hero {
  align-items: center;

  gap: 48px;

  padding: calc(var(--nav-height, 68px) + 40px) 0 36px;
}

.home-hero h1 {
  margin-bottom: 16px;

  font-size: clamp(44px, 5.4vw, 80px);
}

.home-hero .lead {
  margin-bottom: 24px;

  font-size: 18px;
}

.hero-engine {
  padding: 22px;
}

.he-sentence {
  font-size: 19px;
}

.glance {
  padding: 16px 0;
}

@media (max-width: 900px) {
  .home-hero {
    padding-top: calc(var(--nav-height, 60px) + 28px);
    gap: 32px;
  }
}


/* =========================================================
   STORY CARDS — three pages each
   ① the problem (with the brand's mark)  ② the idea
   ③ what it did (the real numbers). Tap to turn the page.
   ========================================================= */

.s-card {
  position: relative;
  flex: 0 0 auto;

  display: flex;
  flex-direction: column;

  width: 300px;
  height: 400px;
  padding: 18px 20px 16px;

  overflow: hidden;

  border: 1px solid rgba(21, 21, 21, 0.85);
  border-radius: 16px;

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

  box-shadow: 0 1px 3px rgba(21, 21, 21, 0.08), 0 8px 22px rgba(21, 21, 21, 0.08);

  cursor: pointer;
  user-select: none;

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

.s-card:hover {
  z-index: 2;

  transform: translateY(-6px) scale(1.03);

  box-shadow: 0 2px 6px rgba(21, 21, 21, 0.1), 0 20px 44px rgba(21, 21, 21, 0.18);
}

.campaign-rail.is-dragging .s-card {
  pointer-events: none;
}

.s-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;

  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* the three pages sit side by side and slide */
.s-pages {
  flex: 1;

  display: flex;

  margin: 14px -20px 0;

  overflow: hidden;
}

.s-page {
  flex: 0 0 100%;

  display: flex;
  flex-direction: column;
  gap: 10px;

  padding: 0 20px;

  transform: translateX(calc(var(--p, 0) * -100%));

  transition: transform 420ms cubic-bezier(.2, .8, .2, 1);
}

.s-card[data-page="1"] .s-page { --p: 1; }
.s-card[data-page="2"] .s-page { --p: 2; }

.s-mark {
  display: grid;
  place-items: center;

  height: 118px;
  margin-bottom: 4px;
}

.s-logo {
  max-width: 64%;
  max-height: 64px;

  object-fit: contain;
}

.s-logo.is-wide {
  max-width: 82%;
  max-height: 40px;
}

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

.s-mark.is-word {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 88px;
  font-style: italic;
  line-height: 1;
}

.s-label {
  margin: 0;

  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  opacity: 0.8;
}

.s-text {
  margin: 0;

  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

.s-heading {
  margin: 0;

  font-family: "Instrument Serif", Georgia, serif;
  font-size: 30px;
  line-height: 1.02;
}

.s-stats {
  display: grid;
  gap: 12px;

  margin: 4px 0 0;
  padding: 0;

  list-style: none;
}

.s-stats li {
  display: grid;
  gap: 2px;

  padding-top: 10px;

  border-top: 1px solid color-mix(in srgb, var(--ci) 30%, transparent);
}

.s-value {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 34px;
  line-height: 1;
}

.s-stat-label {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.35;

  opacity: 0.85;
}

.s-read {
  display: inline-flex;
  align-items: center;

  margin-top: auto;

  color: inherit;

  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* dots + next */
.s-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding-top: 12px;
}

.s-dots {
  display: flex;
  gap: 6px;
}

.s-dot {
  width: 8px;
  height: 8px;
  padding: 0;

  border: 1px solid currentColor;
  border-radius: 99px;

  background: transparent;
  color: inherit;

  cursor: pointer;

  transition: width 260ms ease, background 260ms ease;
}

.s-dot[aria-current="true"] {
  width: 22px;

  background: currentColor;
}

.s-next {
  display: grid;
  place-items: center;

  width: 34px;
  height: 34px;
  padding: 0;

  border: 1px solid currentColor;
  border-radius: 50%;

  background: transparent;
  color: inherit;

  cursor: pointer;

  transition: background 200ms ease, color 200ms ease;
}

.s-next .lucide {
  margin: 0;
}

.s-next:hover {
  background: var(--ci);
  color: var(--c);
}

@media (max-width: 720px) {
  .s-card {
    width: 78vw;
    max-width: 300px;
  }
}

/* card text always takes the card's own text color (light on dark brands) */
.s-card p,
.s-card li,
.s-card span,
.s-card a {
  color: inherit;
}


/* =========================================================
   ONE SCREEN, FULL WIDTH (round 3)
   - wider page so the hero fills the screen, no big empty sides
   - the first screen is exactly one window tall; the next
     section starts below it
   - logo: white badge, straight rising orange arrow, bigger
   ========================================================= */

.wrap {
  width: min(1360px, calc(100% - 64px));
}

.nav,
.nav.wrap {
  padding: 0 max(32px, calc((100% - 1360px) / 2));
}

@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .nav,
  .nav.wrap {
    padding: 0 16px;
  }
}

/* logo */
.mark-svg {
  width: clamp(42px, 3.4vw, 50px);
  height: clamp(42px, 3.4vw, 50px);
}

.mark-bg {
  fill: #ffffff;
  stroke: var(--ink, #151515);
  stroke-width: 1.5;
}

.mark-svg text {
  font-size: 22px;

  fill: var(--ink, #151515);
}

.mark-arrow {
  stroke-width: 2.6;
}

/* the first screen */
.first-screen {
  display: flex;
  flex-direction: column;

  min-height: 100vh;
  min-height: 100svh;

  padding-top: var(--nav-height, 68px);
}

.first-screen .home-hero {
  flex: 1;

  grid-template-columns: minmax(0, 1.25fr) minmax(0, 480px);
  gap: clamp(32px, 5vw, 88px);

  padding: clamp(20px, 4vh, 48px) 0;
}

.first-screen .home-hero h1 {
  font-size: clamp(44px, min(6vw, 9.5vh), 104px);
}

.first-screen .home-hero .lead {
  max-width: 640px;

  font-size: clamp(16px, 2.2vh, 20px);
}

.first-screen > .wrap:last-child {
  padding-bottom: clamp(16px, 3vh, 32px);
}

.first-screen .glance {
  border-bottom: 0;
}

/* the campaign section begins after the first screen */
.rail-section {
  padding-top: 88px;
}

@media (max-width: 900px) {
  .first-screen {
    min-height: 0;
  }

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

/* keep the hero and "Best at" together, centered in the screen,
   and use more of the width on big monitors */
.wrap {
  width: min(1600px, calc(100% - 64px));
}

.nav,
.nav.wrap {
  padding: 0 max(32px, calc((100% - 1600px) / 2));
}

.first-screen {
  justify-content: center;
  gap: clamp(16px, 4vh, 48px);
}

.first-screen .home-hero {
  flex: 0 0 auto;
}

.first-screen .home-hero h1 {
  font-size: clamp(44px, min(5.6vw, 10vh), 116px);
}

@media (min-width: 1700px) {
  .first-screen .home-hero {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 540px);
  }
}

@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .nav,
  .nav.wrap {
    padding: 0 16px;
  }
}


/* =========================================================
   HERO SHOWCASE (round 4) + box-less mark + less gap
   ========================================================= */

/* the mark: just VP and the rising arrow */
.mark-svg {
  width: clamp(54px, 4.2vw, 64px);
  height: auto;
  aspect-ratio: 64 / 40;
}

.mark-bg {
  display: none;
}

.mark-svg text {
  font-size: 26px;
}

.mark-arrow {
  stroke-width: 2.8;
}

/* intro sits close under the menu */
.first-screen {
  justify-content: flex-start;
}

.first-screen .home-hero {
  align-items: start;

  padding-top: clamp(28px, 5vh, 56px);
}

/* the showcase card */
.showcase {
  --sc: #7fe0a6;

  position: relative;

  display: flex;
  flex-direction: column;
  gap: 16px;

  padding: 22px 24px 20px;

  border: 1px solid var(--ink, #151515);
  border-radius: 20px;

  background: #ffffff;

  box-shadow: 0 2px 6px rgba(21, 21, 21, 0.06), 0 18px 40px rgba(21, 21, 21, 0.1);

  overflow: hidden;
}

/* a wash of the project's color in the top corner */
.showcase::before {
  content: "";

  position: absolute;
  top: -80px;
  right: -80px;

  width: 260px;
  height: 260px;

  border-radius: 50%;

  background: var(--sc);
  opacity: 0.55;

  transition: background 500ms ease;

  pointer-events: none;
}

.showcase > * {
  position: relative;
}

.sc-label {
  margin: 0;

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;

  color: var(--muted, #5f5b54);
}

.sc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sc-tab {
  padding: 6px 12px;

  border: 1px solid var(--ink, #151515);
  border-radius: 999px;

  background: #ffffff;
  color: var(--ink, #151515);

  font: 600 13px/1 "Helvetica Neue", Helvetica, Arial, sans-serif;

  cursor: pointer;

  transition: background 200ms ease, transform 200ms ease;
}

.sc-tab:hover {
  transform: translateY(-1px);
}

.sc-tab[aria-selected="true"] {
  background: var(--tc);
}

.sc-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;

  min-height: 300px;
}

.sc-kicker {
  margin: 0 0 6px;

  font-size: 13px;

  color: var(--muted, #5f5b54);
}

.sc-title {
  margin: 0;

  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(30px, 2.6vw, 42px);
  font-weight: 400;
  line-height: 1;
}

.sc-role {
  margin: 6px 0 0;

  font-size: 14px;
  font-weight: 600;
}

.sc-text {
  margin: 0;

  font-size: 16px;
  line-height: 1.5;
}

.sc-outcomes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;

  margin: 4px 0 0;
  padding: 0;

  list-style: none;
}

.sc-outcomes li {
  display: grid;
  gap: 4px;

  padding: 12px 14px;

  border-radius: 12px;

  background: color-mix(in srgb, var(--sc) 35%, #ffffff);

  transition: background 500ms ease;
}

.sc-value {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 30px;
  line-height: 1;
}

.sc-what {
  font-size: 13px;
  line-height: 1.35;
}

.sc-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;

  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sc-progress {
  height: 3px;

  border-radius: 3px;

  background: rgba(21, 21, 21, 0.1);

  overflow: hidden;
}

.sc-progress span {
  display: block;

  width: 100%;
  height: 100%;

  background: var(--ink, #151515);

  transform: scaleX(0);
  transform-origin: 0 50%;
}

@media (max-width: 520px) {
  .sc-outcomes {
    grid-template-columns: minmax(0, 1fr);
  }

  .sc-panel {
    min-height: 0;
  }
}

/* let the showcase grow with the screen, and keep "Best at" at the bottom of the first screen */
.first-screen .sc-panel {
  min-height: clamp(260px, calc(100vh - 520px), 480px);
}

.first-screen > .wrap:last-child {
  margin-top: auto;
}

.first-screen .home-hero {
  align-items: center;
}

@media (max-width: 900px) {
  .first-screen .sc-panel {
    min-height: 0;
  }
}

/* fill the card: outcomes sit at the bottom and grow with the screen */
.first-screen .sc-panel {
  min-height: clamp(260px, calc(100vh - 560px), 400px);
}

.first-screen .sc-outcomes {
  margin-top: auto;
}

.first-screen .sc-title {
  font-size: clamp(30px, min(3vw, 5.4vh), 52px);
}

.first-screen .sc-value {
  font-size: clamp(28px, min(3vw, 5.4vh), 50px);
}

.first-screen .sc-outcomes li {
  padding: clamp(12px, 2vh, 20px) 16px;
}


/* =========================================================
   ROUND 5: bigger project card · New York on one screen ·
   cards open their story
   ========================================================= */

/* a bigger project card that fills the right side */
.first-screen .home-hero {
  grid-template-columns: minmax(0, 1fr) minmax(0, 640px);
}

@media (min-width: 1700px) {
  .first-screen .home-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 720px);
  }
}

.first-screen .showcase {
  padding: clamp(22px, 3vh, 32px) clamp(22px, 2.4vw, 34px);
}

.first-screen .sc-panel {
  min-height: clamp(280px, calc(100vh - 470px), 520px);
}

.first-screen .sc-text {
  font-size: clamp(16px, 2.1vh, 19px);
}

/* New York: heading and the whole map in one screen */
#nyc {
  padding-top: 40px;
  padding-bottom: 40px;
}

#nyc h2 {
  margin-bottom: 8px;
}

#nyc .section-lead {
  margin-bottom: 20px;
}

.nyc-experience.home-city {
  height: calc(100vh - var(--nav-height, 68px) - 250px);
  height: calc(100svh - var(--nav-height, 68px) - 250px);
  min-height: 380px;
}

#nyc .nyc-credit {
  margin-top: 10px;
}

/* the story cards say they open */
.s-card {
  cursor: pointer;
}

.s-card:focus-visible {
  outline: 3px solid var(--ink, #151515);
  outline-offset: 4px;
}

.s-card::after {
  content: "Open";

  position: absolute;
  top: 14px;
  left: 50%;

  padding: 4px 10px;

  border-radius: 99px;

  background: var(--ink, #151515);
  color: #ffffff;

  font: 700 11px/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.06em;

  opacity: 0;
  transform: translate(-50%, -4px);

  transition: opacity 200ms ease, transform 200ms ease;

  pointer-events: none;
}

.s-card:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* round 5b: headline fits two lines beside the wider card; no gap inside the card */
.first-screen .home-hero h1 {
  font-size: clamp(44px, min(4.7vw, 9.5vh), 104px);
}

.first-screen .sc-panel {
  min-height: 0;
}

.first-screen .sc-outcomes {
  margin-top: 8px;
}

.first-screen .sc-value {
  font-size: clamp(32px, min(3.2vw, 6vh), 56px);
}

.first-screen .sc-outcomes li {
  padding: clamp(16px, 2.6vh, 26px) 18px;
}

/* round 5c: the card fills the height between the menu and "Best at";
   the colored outcome blocks grow to take the room */
.first-screen .home-hero {
  align-items: stretch;
}

.first-screen .home-hero > :first-child {
  align-self: center;
}

.first-screen .showcase {
  min-height: calc(100vh - var(--nav-height, 68px) - 230px);
  min-height: calc(100svh - var(--nav-height, 68px) - 230px);
}

.first-screen .sc-panel {
  flex: 1;
}

.first-screen .sc-outcomes {
  flex: 1;
  align-items: stretch;
}

.first-screen .sc-outcomes li {
  align-content: end;
}

@media (max-width: 900px) {
  .first-screen .showcase {
    min-height: 0;
  }
}

.first-screen .sc-outcomes li {
  align-content: center;
}


/* =========================================================
   ROUND 6: PURE WHITE + HIGHLIGHTED WORDS (all pages)
   Background is pure white everywhere. Instead of colored
   boxes, the important words get the highlighter.
   ========================================================= */

:root {
  --paper: #ffffff;
  --hero-bg: #ffffff;
  --sec-bg: #ffffff;
}

html,
body {
  background: #ffffff;
}

/* no paper grain on pure white */
body::after {
  display: none;
}

.nav,
.nav.wrap {
  background: rgba(255, 255, 255, 0.92);
}

/* section color bands on the inner pages become white */
.statement,
.nyc-section,
.map,
.writing,
.about,
.morph-section,
#statement,
#nyc,
#map,
#writing,
#about {
  --sec-bg: #ffffff;

  background: #ffffff;
  box-shadow: none;
}

/* ---------- The project card: white, words highlighted ---------- */

.showcase::before {
  display: none;
}

.sc-tab[aria-selected="true"] {
  background: var(--ink, #151515);
  color: #ffffff;
}

/* the highlighter, in the project's own color */
.sc-mark,
.sc-role,
.sc-value {
  padding: 0 0.12em;

  color: inherit;

  background: linear-gradient(transparent 52%, var(--sc) 52%, var(--sc) 92%, transparent 92%);
  background-repeat: no-repeat;

  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.sc-role {
  display: inline-block;
}

/* outcomes: plain lines, no colored boxes */
.sc-outcomes li,
.first-screen .sc-outcomes li {
  padding: 16px 0 0;

  border-radius: 0;
  border-top: 1px solid rgba(21, 21, 21, 0.14);

  background: transparent;
}

.sc-value {
  justify-self: start;
}

.first-screen .sc-outcomes {
  flex: 0 0 auto;
  margin-top: auto;
}

.first-screen .sc-outcomes li {
  align-content: start;
}

/* the campaign cards' "what it did" numbers get the same treatment */
.s-value {
  justify-self: start;
}

/* Nudge page: the selected lever and its card follow the same
   rule, white with highlighted words, no big color fills */
.nudge-lever.is-active,
.nudge-lever[aria-selected="true"] {
  background: #ffffff !important;
  box-shadow: inset 0 -6px 0 var(--sec-accent, #7fe0a6), 0 1px 3px rgba(21, 21, 21, 0.08) !important;
}

.nudge-brand,
.nudge-card .brand-row,
.nudge-card li.nudge-brand {
  background: transparent !important;
}

/* MBA Notes: white tiles; the subject name gets its color as a highlight */
.nodes .subject.is-done,
.nodes .subject.is-done:hover,
.nodes .subject.is-done:focus-visible {
  background: #ffffff;
  color: var(--ink, #151515);
}

.nodes .subject.is-done .subject-name {
  justify-self: start;

  padding: 0 0.1em;

  background: linear-gradient(transparent 55%, var(--subj-color) 55%, var(--subj-color) 92%, transparent 92%);

  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.nodes .subject.is-done:hover {
  box-shadow: inset 0 0 0 2px var(--ink, #151515);
}

/* the five steps above the subjects: plain words */
.growth-equation span {
  background: transparent !important;
}


/* =========================================================
   ROUND 7: one highlight color (orange) · tinted menu pills
   ========================================================= */

:root {
  --highlight-orange: #ffb48f;   /* soft version of the arrow's orange, readable under black text */
}

/* every project uses the same orange highlighter */
.showcase,
.showcase[style] {
  --sc: var(--highlight-orange) !important;
}

/* menu pills: a soft tint already showing, the full color on hover */
.nav nav a[href="work.html"]     { --pill: #fff1c4; --pill-strong: #ffd166; }
.nav nav a[href="nudge.html"]    { --pill: #d9f7ea; --pill-strong: #8be6c0; }
.nav nav a[href="new-york.html"] { --pill: #ffe1db; --pill-strong: #ff9d90; }
.nav nav a[href="notes.html"]    { --pill: #ebe5ff; --pill-strong: #bfb0ff; }

.nav nav a[href$=".html"] {
  background: var(--pill);
}

.nav nav a[href$=".html"]:hover,
.nav nav a[aria-current="page"] {
  background: var(--pill-strong);
}

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

.nav nav .nav-contact:hover {
  border-color: var(--ink, #151515);
  background: #ffe7d9;
}


/* =========================================================
   ROUND 8: "grow." in orange · stronger menu colors
   ========================================================= */

.home-hero h1 em,
.first-screen .home-hero h1 em {
  background-image: linear-gradient(transparent 60%, var(--highlight-orange) 60%, var(--highlight-orange) 90%, transparent 90%) !important;
}

.nav nav a[href="work.html"]     { --pill: #ffd166; --pill-strong: #ffbf2e; }
.nav nav a[href="nudge.html"]    { --pill: #8be6c0; --pill-strong: #5fd6a4; }
.nav nav a[href="new-york.html"] { --pill: #ff9d90; --pill-strong: #ff7f6e; }
.nav nav a[href="notes.html"]    { --pill: #bfb0ff; --pill-strong: #a491ff; }

.nav nav .nav-contact {
  background: #e9e8e4;
}


/* =========================================================
   ROUND 9: one orange highlighter everywhere · one darker
   card color · every section fills its own screen
   ========================================================= */

:root {
  --orange-marker: linear-gradient(transparent 58%, var(--highlight-orange) 58%, var(--highlight-orange) 92%, transparent 92%);
  --card-tint: #ffd9c4;   /* one soft orange for the Explore cards */
}

/* every highlighted word on every page: orange */
.home-hero h1 em,
.block h2 em,
.work-page h1 em,
.rail-head h2 em,
.statement em,
.nyc-heading em,
.map-head em,
.nudge-head em,
.agencies-head em,
.about h2 em,
#nyc h2 em,
h1 em,
h2 em {
  background-image: var(--orange-marker) !important;
  background-size: 100% 100% !important;
  background-repeat: no-repeat;
}

mark,
.work-text mark,
.sc-mark,
.sc-role,
.sc-value,
.nodes .subject.is-done .subject-name {
  background: var(--orange-marker) !important;
  background-repeat: no-repeat;
}

/* Explore cards: one color, a shade deeper */
.page-card,
.page-card[style] {
  --tint: var(--card-tint) !important;
  background: var(--card-tint) !important;
}

/* ---------- each section fills its own screen ---------- */

#built,
.rail-section,
#nyc,
#explore,
#about,
.page-inner main > .wrap > section,
.work-page {
  display: flex;
  flex-direction: column;
  justify-content: center;

  min-height: calc(100vh - var(--nav-height, 68px));
  min-height: calc(100svh - var(--nav-height, 68px));

  box-sizing: border-box;
}

/* sections that use a two-column grid keep it */
.page-inner .statement,
.page-inner .map,
.page-inner .writing {
  display: grid;
  align-content: center;
}

#nyc {
  padding-top: 32px;
  padding-bottom: 32px;
}

.rail-section {
  padding-top: 48px;
  padding-bottom: 48px;
}

@media (max-width: 900px) {
  #built,
  .rail-section,
  #nyc,
  #explore,
  #about,
  .page-inner main > .wrap > section,
  .work-page {
    min-height: 0;
  }
}

/* "Things I have built" fits one screen */
#built,
#explore,
#about {
  padding-top: 32px;
  padding-bottom: 32px;
}

#built .work-row {
  padding-top: clamp(10px, 1.8vh, 22px);
  padding-bottom: clamp(10px, 1.8vh, 22px);
}

#built h2,
#explore h2,
#about h2 {
  margin-bottom: 16px;
}

#built .tag,
#explore .tag,
#about .tag {
  margin-bottom: 14px;
}

/* inner pages: the first section is exactly one screen under the menu */
body.page-inner main > .wrap > section:first-child,
body.page-inner #statement {
  min-height: 100vh;
  min-height: 100svh;

  padding-top: calc(var(--nav-height, 68px) + 32px);
  padding-bottom: 32px;
}

body.page-inner .agency-row {
  padding-top: clamp(10px, 1.6vh, 20px);
  padding-bottom: clamp(10px, 1.6vh, 20px);
}

.work-page {
  min-height: 100vh;
  min-height: 100svh;

  padding-top: calc(var(--nav-height, 68px) + 32px) !important;
  padding-bottom: 32px;
}

/* MBA Notes and Work fit one screen */
@media (min-width: 1000px) {
  body.page-inner .nodes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

body.page-inner .nodes .subject {
  min-height: clamp(76px, 10vh, 112px);
  padding: clamp(10px, 1.4vh, 16px) 16px;
}

body.page-inner .map h1 {
  margin-bottom: 8px;
}

body.page-inner .growth-equation,
body.page-inner .mba-progress {
  margin-top: clamp(8px, 1.4vh, 18px);
}

.work-page h1 {
  font-size: clamp(32px, min(4vw, 6.5vh), 52px);
}

.work-page .work-lead {
  margin-bottom: clamp(16px, 2.6vh, 36px);
}

.work-page .work-row {
  padding-top: clamp(10px, 1.6vh, 22px);
  padding-bottom: clamp(10px, 1.6vh, 22px);
}

.work-page .tag {
  margin-bottom: 14px;
}

body.page-inner .nodes .subject {
  min-height: clamp(68px, 8.6vh, 104px);
}

body.page-inner #map,
.work-page {
  padding-bottom: 16px !important;
}

.work-page .see-more-row {
  margin-top: 12px;
}

body.page-inner .map-head p {
  line-height: 1.5;
}

/* round 9b fixes */
.block > .tag,
.work-page > .tag,
#nyc > .tag,
.page-inner section > .index {
  align-self: flex-start;
}

/* subject names that wrap: a lighter underline-style highlight */
.nodes .subject.is-done .subject-name {
  background: linear-gradient(transparent 74%, var(--highlight-orange) 74%, var(--highlight-orange) 96%, transparent 96%) !important;
}

/* numbered circles: one color */
.work-list li .work-num,
.work-list li:nth-child(n) .work-num {
  --num: var(--highlight-orange);
  background: var(--highlight-orange);
}


/* =========================================================
   ROUND 10: black number circles · a full About screen
   ========================================================= */

.work-list li .work-num,
.work-list li:nth-child(n) .work-num {
  background: var(--ink, #151515);
  color: #ffffff;
}

/* About: story on the left, the journey on the right */
#about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-content: center;
  column-gap: clamp(32px, 6vw, 96px);
}

#about > .tag {
  grid-column: 1 / -1;
  justify-self: start;
}

#about .prose {
  align-self: center;
}

.about-actions {
  margin-top: 24px;
}

.journey {
  align-self: center;

  margin: 0;
  padding: 0;

  list-style: none;

  border-left: 2px solid var(--ink, #151515);
}

.journey li {
  position: relative;

  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;

  padding: clamp(10px, 1.8vh, 18px) 0 clamp(10px, 1.8vh, 18px) 24px;
}

/* a dot on the line for each step; the last one is orange: now */
.journey li::before {
  content: "";

  position: absolute;
  left: -7px;
  top: calc(clamp(10px, 1.8vh, 18px) + 6px);

  width: 12px;
  height: 12px;

  border: 2px solid var(--ink, #151515);
  border-radius: 50%;

  background: #ffffff;
}

.journey li:last-child::before {
  background: var(--highlight-orange);
}

.j-year {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;

  color: var(--muted, #5f5b54);
}

.j-what {
  line-height: 1.45;
}

.j-what strong {
  display: block;

  font-family: var(--font-head, Georgia, serif);
  font-size: 20px;
  font-weight: 400;
}

@media (max-width: 900px) {
  #about {
    grid-template-columns: minmax(0, 1fr);
  }

  .journey {
    margin-top: 40px;
  }
}

/* the honest line under the intro */
.lead-aside {
  max-width: 640px;
  margin: -8px 0 24px;

  font-size: clamp(15px, 1.9vh, 17px);
  line-height: 1.55;

  color: var(--muted, #5f5b54);
}

.lead-aside mark {
  color: var(--ink, #151515);
}


/* email menu */
.email-menu {
  position: fixed;
  z-index: 3000;

  display: grid;
  gap: 2px;

  min-width: 240px;
  padding: 8px;

  border: 1px solid var(--ink, #151515);
  border-radius: 14px;

  background: #ffffff;

  box-shadow: 0 2px 6px rgba(21, 21, 21, 0.08), 0 16px 36px rgba(21, 21, 21, 0.16);
}

.email-menu[hidden] {
  display: none;
}

.email-address {
  margin: 4px 10px 8px;

  font-size: 13px;

  color: var(--muted, #5f5b54);
}

.email-item {
  display: flex;
  align-items: center;
  gap: 10px;

  width: 100%;
  padding: 10px;

  border: 0;
  border-radius: 10px;

  background: transparent;
  color: var(--ink, #151515);

  font: 600 14px/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-align: left;
  text-decoration: none;

  cursor: pointer;
}

.email-item .lucide {
  margin: 0;
}

.email-item:hover,
.email-item:focus-visible {
  background: var(--highlight-orange, #ffb48f);
  outline: none;
}

/* round 12: a bigger, better-proportioned VP mark */
.mark-svg {
  width: clamp(64px, 5vw, 80px);
  height: auto;
  aspect-ratio: 76 / 48;
}

.mark-svg text {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 36px;
  letter-spacing: -0.5px;

  fill: var(--ink, #151515);
}

.mark-arrow {
  stroke-width: 3;
}

/* round 12b: VP letters larger, arrow balanced */
.mark-svg {
  width: clamp(70px, 5.4vw, 88px);
  aspect-ratio: 72 / 52;
}

.mark-svg text {
  font-size: 46px;
}

/* round 13: the 3D city frame on pure white too */
.nyc-experience,
.nyc-experience.home-city {
  background: #ffffff !important;
}


/* =========================================================
   ROUND 14: a clear "What I've done" label · smaller cards
   ========================================================= */

.sc-label {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.1em;

  color: var(--ink, #151515);
}

/* campaign cards: a calmer, more precise size */
.s-card {
  width: 248px;
  height: 336px;
  padding: 14px 16px 12px;

  border-radius: 14px;
}

.s-pages {
  margin: 10px -16px 0;
}

.s-page {
  gap: 8px;
  padding: 0 16px;
}

.s-top {
  font-size: 12px;
}

.s-mark {
  height: 84px;
}

.s-logo {
  max-height: 48px;
}

.s-logo.is-wide {
  max-height: 30px;
}

.s-mark.is-word {
  font-size: 68px;
}

.s-label {
  font-size: 11px;
}

.s-text {
  font-size: 13.5px;
  line-height: 1.42;
}

.s-heading {
  font-size: 24px;
}

.s-stats {
  gap: 8px;
}

.s-stats li {
  padding-top: 7px;
}

.s-value {
  font-size: 26px;
}

.s-stat-label {
  font-size: 12px;
}

.s-read {
  font-size: 13px;
}

.s-next {
  width: 30px;
  height: 30px;
}

.s-nav {
  padding-top: 8px;
}

.rail-track {
  gap: 18px;
}

@media (max-width: 720px) {
  .s-card {
    width: 70vw;
    max-width: 260px;
  }
}

.s-value {
  font-size: 24px;
}

.s-stats {
  gap: 6px;
}

.s-stats li {
  padding-top: 6px;
}

.s-stat-label {
  font-size: 11.5px;
  line-height: 1.3;
}

/* the honest line: same normal, dark text as the intro above it */
.lead-aside {
  color: var(--ink, #151515);

  font-family: var(--font-head, Georgia, serif);
  font-size: clamp(16px, 2.1vh, 19px);
}


/* =========================================================
   PHONES & TABLETS (final word: these come last on purpose)
   ========================================================= */

/* tablets and small laptops: Email/LinkedIn live in the hero,
   so the menu keeps only the pages and the CV */
@media (max-width: 1100px) {
  .nav nav .nav-contact,
  .nav-divider {
    display: none;
  }
}

@media (max-width: 900px) {

  .first-screen {
    min-height: 0;
  }

  .first-screen .home-hero,
  .home-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 28px;

    padding: 28px 0 32px;
  }

  .first-screen .home-hero > :first-child {
    align-self: start;
  }

  .first-screen .home-hero h1 {
    font-size: clamp(40px, 10.5vw, 72px);
  }

  .first-screen .showcase {
    min-height: 0;
  }

  .first-screen .sc-panel {
    min-height: 0;
  }

  .first-screen .sc-outcomes {
    margin-top: 8px;
  }

  #built,
  .rail-section,
  #nyc,
  #explore,
  #about,
  .page-inner main > .wrap > section,
  body.page-inner #statement,
  body.page-inner main > .wrap > section:first-child,
  .work-page {
    min-height: 0;
  }

  #about {
    grid-template-columns: minmax(0, 1fr);
  }

  .nyc-experience.home-city {
    height: 62vh;
    height: 62svh;
    min-height: 360px;
  }
}

@media (max-width: 760px) {

  /* menu: logo + pages that scroll sideways, softly faded at the edge */
  .nav,
  .nav.wrap {
    gap: 10px;
  }

  .mark-svg {
    width: 58px;
  }

  .nav nav {
    gap: 6px;
    padding: 4px 24px 4px 2px;

    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    mask-image: linear-gradient(90deg, #000 85%, transparent);
  }

  .nav nav a {
    padding: 7px 11px;
    font-size: 13px;
  }

  /* type */
  .home-hero .lead,
  .first-screen .home-hero .lead,
  .lead-aside {
    font-size: 17px;
  }

  .block h2,
  .rail-head h2,
  #nyc h2,
  .work-page h1,
  .statement h1,
  .map h1,
  .nudge-head h1 {
    font-size: clamp(30px, 8.4vw, 40px) !important;
  }

  .block,
  .rail-section,
  #nyc {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }

  /* project card */
  .first-screen .showcase {
    padding: 20px 18px;
  }

  .sc-title {
    font-size: 30px;
  }

  .first-screen .sc-value,
  .sc-value {
    font-size: 28px;
  }

  .sc-outcomes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* campaign cards: a comfortable thumb-sized deck */
  .s-card {
    width: 74vw;
    max-width: 268px;
  }

  .rail-head {
    margin-bottom: 20px;
  }

  /* lists breathe less */
  #built .work-row,
  .work-page .work-row {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .journey {
    margin-top: 32px;
  }

  .about-actions .btn,
  .button-row .btn {
    padding: 11px 16px;
  }

  /* sound: a small round button that never covers the text */
  .music-toggle {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));

    width: 46px;
    height: 46px;
    padding: 0;

    justify-content: center;
    gap: 0;
  }

  .music-toggle span:not(.music-bars) {
    display: none;
  }

  .music-toggle .music-bars {
    position: absolute;
    right: 6px;
    bottom: 7px;

    height: 8px;
  }

  .music-toggle .music-bars i {
    width: 2px;
  }

  /* the email menu fits the phone */
  .email-menu {
    left: 16px !important;
    right: 16px;
    min-width: 0;
  }
}

@media (max-width: 380px) {
  .sc-outcomes {
    grid-template-columns: minmax(0, 1fr);
  }

  .first-screen .home-hero h1 {
    font-size: 38px;
  }
}

@media (max-width: 900px) {
  .first-screen .home-hero h1 { font-size: clamp(44px, 12vw, 72px); }
}
@media (max-width: 380px) {
  .first-screen .home-hero h1 { font-size: 42px; }
}

/* subject names: a highlighter that follows each line, at any width */
.nodes .subject.is-done .subject-name {
  background: none !important;

  text-decoration: underline;
  text-decoration-color: var(--highlight-orange);
  text-decoration-thickness: 0.38em;
  text-underline-offset: -0.18em;
  text-decoration-skip-ink: none;
}

@media (max-width: 760px) {
  .work-page,
  body.page-inner main > .wrap > section:first-child,
  body.page-inner #statement {
    padding-top: calc(var(--nav-height, 60px) + 28px) !important;
  }

  body.page-inner .map-head {
    gap: 12px;
  }

  body.page-inner .map-head p {
    margin-top: 0;
  }
}

/* old decorative margin shapes: gone (they poked past the screen on tablets) */
.section-shape,
.shape.section-shape {
  display: none !important;
}

/* belt and braces for iPhone/iPad Safari: never scroll sideways */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

/* card labels: full strength so they stay readable on every brand color */
.s-label,
.s-stat-label {
  opacity: 1;
}

/* readable in both modes: agency number circles and source lines */
.agency-num,
.agency-toggle {
  color: #151515 !important;
}

.agency-sources,
.agency-sources a,
.agency-sources span {
  color: #4a4741;
}

html[data-theme="dark"] .agency-sources,
html[data-theme="dark"] .agency-sources a,
html[data-theme="dark"] .agency-sources span {
  color: #c9c5bd !important;
}

/* the small arrows between the growth steps */
.growth-equation i {
  color: #6b6760;
}

.growth-equation i {
  opacity: 1;
}
