/* =====================================================
   Jason McAndrew — Portfolio
   Editorial Dark / Bold Sans
   ===================================================== */

:root {
  /* Palette — PALETTE 03 (Warm Minimal): parchment + warm black + rust + forest.
     To revert to original (Editorial Bold), swap each new hex for the value in /* was ... */ comments. */
  --bg: #EFEBE0;            /* parchment        was #F4F1E8 */
  --bg-alt: #E7E2D5;        /* deeper parchment  was #ECE7D9 */
  --bg-dark: #18130D;       /* warm black       was #0E0E0E */
  --bg-dark-2: #221C14;     /* slightly lighter was #1A1815 */
  --bg-dark-3: #2C2419;     /* card on dark     was #232120 */

  --ink: #18130D;           /* text on cream    was #0F0F0F */
  --ink-2: #2A2520;         /*                  was #2A2A2A */
  --ink-soft: #4D453A;      /*                  was #4A4843 */

  --inverse: #EFEBE0;       /* text on dark     was #F4F1E8 */
  --inverse-2: #CFC9B8;     /* secondary on dark was #D7D2C5 */
  --muted: #6E685A;         /* muted on cream   was #6B6760 */
  --muted-dark: #908A7C;    /* muted on dark    was #8E887E */

  --line: #D3CCB7;          /* hairline on cream was #D6CFBD */
  --line-dark: #322B22;     /* hairline on dark was #2A2725 */

  --accent: #E85F2C;        /* bold persimmon - primary  was #FF5A38 */
  --accent-hover: #EE7344;  /*                           was #FF7A5D */
  --accent-deep: #C24A1B;   /*                           was #D9421C */
  --accent-2: #0E9961;      /* jewel emerald - secondary was #3A1ABF */
  --accent-2-hover: #1AAE73; /*                          was #4D2DD9 */
  --accent-2-light: #7AD5A0; /* legible sage for dark bgs was #8C7BFF */

  --card-bg: #FFFFFF;

  /* Type */
  --display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif:   "Fraunces", Georgia, "Times New Roman", serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Sizing */
  --maxw: 1240px;
  --gap: clamp(1rem, 2vw, 1.75rem);
  --radius: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(15,15,15,0.04), 0 6px 18px rgba(15,15,15,0.05);
  --shadow-md: 0 4px 10px rgba(15,15,15,0.08), 0 24px 50px rgba(15,15,15,0.12);
  --shadow-dark: 0 4px 10px rgba(0,0,0,0.4), 0 24px 50px rgba(0,0,0,0.3);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }
button { font: inherit; cursor: pointer; }

/* LAYOUT */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
.section { padding: clamp(4rem, 9vw, 8rem) 0; }
.section--dark { background: var(--bg-dark); color: var(--inverse); }
.section__head { max-width: 820px; margin-bottom: clamp(1.25rem, 2.5vw, 2rem); }
.center { text-align: center; }

/* TYPE - Display sans, super confident */
.eyebrow {
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.4rem;
}
.eyebrow.center { text-align: center; }

h1, h2, h3, h4, h5 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.7rem;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.h2 {
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.h3 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.h4 {
  font-size: 0.78rem;
  font-family: var(--body);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.4rem;
}
.h5 {
  font-size: 1rem;
  font-family: var(--body);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* Italic em accent — the one place Fraunces shows up */
em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.02em;
}

p { margin: 0 0 1rem; color: var(--ink-2); }

.ul li {
  position: relative;
  padding: 0.5rem 0 0.8rem 1.6rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.98rem;
}
.ul li:last-child { border-bottom: 0; }
.ul li::before {
  content: "→";
  position: absolute;
  left: 0; top: 0.55rem;
  color: var(--accent);
  font-weight: 700;
  font-family: var(--display);
}

/* CONTRAST FIX — coral fails on cream (~2.8:1).
   Swap to indigo (~8.8:1) for accents inside cream-background sections. */
.about .eyebrow,
.cs .eyebrow,
.cs__gallery-eyebrow,
.artifact__tag {
  color: var(--accent-2);
}
/* Case study eyebrows (category labels above each case study title) get a
   heavier weight than the default to read as strong section labels. */
.cs__body .eyebrow {
  font-weight: 800;
}
.about em,
.cs em,
.cs .h5 {
  color: var(--accent-2);
}
.about em.no-accent { color: inherit; }
.cs .ul li::before {
  color: var(--accent-2);
}
.artifact:hover {
  border-color: var(--accent-2);
}

/* NAV - always dark, modern */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg-dark);
  color: var(--inverse);
  border-bottom: 1px solid var(--line-dark);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav__logo { display: flex; align-items: center; gap: 0.7rem; color: var(--inverse); }
.nav__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}
.nav__mark svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.nav__identity { display: flex; flex-direction: column; line-height: 1.15; }
.nav__name { font-family: var(--display); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.02em; color: var(--inverse); }
.nav__tagline {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--inverse-2);
  letter-spacing: 0.02em;
  margin-top: 3px;
}
.nav__links { display: flex; align-items: center; gap: 1.8rem; }
.nav__links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--inverse-2);
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--accent); }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); }
.nav__cta {
  background: var(--accent); color: #fff !important;
  padding: 0.6rem 1.1rem !important; border-radius: 999px;
  font-weight: 600;
}
.nav__cta:hover { background: var(--accent-hover); color: #fff !important; }

.nav__toggle {
  display: none; background: none; border: 0; width: 40px; height: 40px;
  position: relative;
}
.nav__toggle span {
  position: absolute; left: 8px; right: 8px; height: 2px; background: var(--inverse);
  border-radius: 2px; transition: transform 0.25s, opacity 0.25s, top 0.25s;
}
.nav__toggle span:nth-child(1) { top: 13px; }
.nav__toggle span:nth-child(2) { top: 19px; }
.nav__toggle span:nth-child(3) { top: 25px; }
.nav.is-open .nav__toggle span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* HERO - dark, oversized type */
.hero {
  background: var(--bg-dark);
  color: var(--inverse);
  padding: clamp(5rem, 10vw, 9rem) 0 clamp(5rem, 10vw, 9rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* Subtle radial accent glow - coral right */
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 60%; height: 100%;
  background: radial-gradient(circle, rgba(232,95,44,0.18) 0%, rgba(232,95,44,0) 60%); /* persimmon glow — was rgba(255,90,56,0.12) */
  pointer-events: none;
}
.hero::after {
  /* Indigo glow left for two-color atmosphere */
  content: "";
  position: absolute;
  bottom: -30%; left: -10%;
  width: 55%; height: 95%;
  background: radial-gradient(circle, rgba(14,153,97,0.26) 0%, rgba(14,153,97,0) 60%); /* emerald glow — was rgba(58,26,191,0.20) */
  pointer-events: none;
}
.hero::before, .hero::after { z-index: 1; }
.hero .container { position: relative; z-index: 2; }

/* ===== HERO REEL (image montage background) ===== */
.hero__reel {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__reel-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.6s ease-in-out;
  will-change: opacity, transform;
}
.hero__reel-slide.is-active {
  opacity: 0.55;
  animation: heroKenBurns 7s ease-out forwards;
}
@keyframes heroKenBurns {
  from { transform: scale(1.08); }
  to   { transform: scale(1.16); }
}
/* Left-weighted dark scrim keeps headline crisp; images breathe on the right */
.hero__reel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(24,19,13,0.94) 0%,  /* warm-black scrim — was rgba(14,14,14,...) */
    rgba(24,19,13,0.82) 42%,
    rgba(24,19,13,0.52) 100%);
}
@media (prefers-reduced-motion: reduce) {
  .hero__reel-slide.is-active { animation: none; transform: scale(1.08); }
}
.hero__title {
  font-family: var(--display);
  font-size: clamp(2.8rem, 8vw, 6.8rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.96;
  margin: 0 0 2rem;
  max-width: 14ch;
  color: var(--inverse);
}
.hero__subhead {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.3rem, 2.3vw, 1.85rem);
  color: var(--inverse-2);
  margin: 0.6rem 0 2.4rem;
  max-width: 48ch;
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.hero__lede {
  max-width: 62ch;
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  color: var(--inverse-2);
  margin-bottom: 2.5rem;
  line-height: 1.55;
}
.hero__lede strong { color: var(--inverse); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero .eyebrow { color: var(--accent-2-light); }

/* MARQUEE STRIP - bold modern capabilities tape */
.marquee {
  background: var(--accent);
  color: #fff;
  padding: 1.1rem 0;
  overflow: hidden;
  position: relative;
  border-top: 1px solid var(--accent-deep);
  border-bottom: 1px solid var(--accent-deep);
}
.marquee__track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.marquee__track span { flex-shrink: 0; display: inline-flex; align-items: center; gap: 3rem; }
.marquee__track span::after {
  content: "✺";
  font-weight: 400;
  opacity: 0.85;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  font-family: var(--body);
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--inverse); border-color: var(--inverse); }
.btn--ghost:hover { background: var(--inverse); color: var(--bg-dark); }
.btn--lg { padding: 1.1rem 1.8rem; font-size: 1.02rem; }

/* on cream backgrounds */
.section .btn--ghost { color: var(--ink); border-color: var(--ink); }
.section .btn--ghost:hover { background: var(--ink); color: var(--bg); }

/* ABOUT - compact, "personal close" before contact */
.about { background: var(--bg); border-top: 1px solid var(--line); padding-bottom: clamp(2rem, 4vw, 3.5rem); }
.about__grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}
.about__copy p { font-size: 1.04rem; max-width: 58ch; line-height: 1.6; }
.about__copy .h2 {
  margin-bottom: 1.4rem;
  max-width: 22ch;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}
.about__copy .h2:has(+ .about__subhead) { margin-bottom: 0.5rem; }
.about__copy .about__subhead {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  color: var(--accent-2);
  line-height: 1.3;
  margin: 0 0 1.6rem;
  max-width: 30ch;
}

/* Portrait — compact, single indigo offset block */
.about__portrait-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.about__portrait {
  position: relative;
  margin: 0;
  width: 220px;
  height: 220px;
  background: transparent;
  overflow: visible;
}
.about__portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-2);
  border-radius: 14px;
  transform: translate(14px, 14px);
  z-index: 0;
}
.about__portrait img {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  display: block;
}
.about__caption {
  margin: 2.2rem 0 0;
  font-family: var(--body);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  line-height: 1.45;
}
.about__caption em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: inline-block;
  margin-bottom: 0.15rem;
}
.about__caption a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.about__caption a:hover {
  color: var(--accent-2);
  border-color: var(--accent-2);
}

/* CAPABILITIES BAND - dark, bold horizontal */
.capabilities {
  background: var(--bg-dark);
  color: var(--inverse);
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.capabilities .eyebrow { color: var(--accent); }
.capabilities__head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.capabilities__title {
  color: var(--inverse);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1;
}
.capabilities__title em {
  /* Override coral em for indigo accent on dark */
  color: var(--accent-2-light);
}
.capabilities__kicker {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  color: var(--inverse-2);
  margin: 1.2rem 0 0;
  max-width: 52ch;
  line-height: 1.35;
  letter-spacing: -0.005em;
}
/* Capabilities grouped into buckets with hover-reveal descriptions.
   Auto-fits 4 wide on desktop, drops to 3, 2, then 1 on narrower viewports. */
.capabilities__groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.75rem, 3vw, 2.75rem);
  border-top: 1px solid var(--line-dark);
  padding-top: clamp(2rem, 4vw, 2.5rem);
}
.cap-group__title {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.25rem;
}
.cap-group__list {
  display: flex;
  flex-direction: column;
}
.cap-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  cursor: default;
  transition: padding 0.25s ease;
}
.cap-item:last-child { border-bottom: 0; }
.cap-item:hover { padding-left: 0.5rem; }
.cap-item__name {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.08rem;
  color: var(--inverse);
  letter-spacing: -0.02em;
  line-height: 1.2;
  transition: color 0.25s ease;
}
.cap-item:hover .cap-item__name { color: var(--accent); }
.cap-item__desc {
  font-family: var(--body);
  font-size: 0.88rem;
  color: var(--muted-dark);
  line-height: 1.45;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin-top 0.25s ease;
}
.cap-item:hover .cap-item__desc {
  max-height: 100px;
  opacity: 1;
  margin-top: 0.5rem;
}

/* Mobile: stack columns + always show descriptions */
@media (max-width: 800px) {
  .capabilities__groups { grid-template-columns: 1fr; gap: 2.5rem; }
  .cap-item__desc { max-height: none; opacity: 1; margin-top: 0.4rem; }
  .cap-item:hover { padding-left: 0; }
}

/* WORK GRID */
.work { background: var(--bg); }
.work__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: clamp(1.25rem, 2vw, 1.75rem);
}
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--line);
  color: var(--ink);
  position: relative;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s ease;
  z-index: 2;
}
.card:hover::before { transform: scaleX(1); }
.card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-alt);
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 1.4rem 1.5rem 1.7rem; }
.card__tag {
  display: inline-block; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 0.7rem;
}
.card__title {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.45rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.card__sub { font-size: 0.96rem; color: var(--muted); margin: 0; line-height: 1.5; }

/* CASE STUDIES */
.cs { background: var(--bg); border-top: 1px solid var(--line); }
.cs__item {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.cs__item:first-of-type { border-top: 0; padding-top: 0; }
.cs__item--reverse .cs__figure {
  order: 2;
  grid-column: 2;
  grid-row: 1;
}
.cs__item--reverse .cs__body {
  grid-row: 1;
}
/* In reverse video layouts, swap column widths so the figure stays the larger
   column (matching the non-reverse Podcast video size). Doesn't affect VMS
   because its carousel layout has its own grid-template-columns rule. */
.cs__item--reverse:not(.cs__item--with-carousel) {
  grid-template-columns: 0.85fr 1.15fr;
}
/* For the carousel layout, swap columns explicitly to avoid grid auto-placement
   conflicts with the full-width scope/results row below. */
.cs__item--with-carousel.cs__item--reverse .carousel {
  grid-column: 2 / 3;
  grid-row: 1;
}
.cs__item--with-carousel.cs__item--reverse .cs__body--intro {
  grid-column: 1 / 2;
  grid-row: 1;
}
/* Figure wrapper: groups image + caption together visually */
.cs__figure { margin: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.cs__caption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--muted);
  max-width: 52ch;
  letter-spacing: -0.005em;
}

.cs__media {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  position: relative;
}
.cs__media img { width: 100%; height: 100%; object-fit: cover; }
.cs__media--video { aspect-ratio: 16 / 9; background: #000; }
.cs__media--video iframe { width: 100%; height: 100%; border: 0; display: block; }
.cs__role {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 600;
  margin: 0 0 1rem;
  font-family: var(--body);
}
.cs__lede { font-size: 1.06rem; max-width: 60ch; margin-bottom: 1.25rem; line-height: 1.6; }
.cs__lede:last-of-type { margin-bottom: 0; }

/* Read-more expansion for long case study copy */
.cs__more {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease;
}
.cs__more.is-open {
  max-height: 800px;
  opacity: 1;
  margin-top: 1.25rem;
}
.cs__more .cs__lede:last-of-type { margin-bottom: 0; }
.cs__more-toggle {
  background: none;
  border: 0;
  color: var(--accent-2);
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.4rem 0;
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease;
}
.cs__more-toggle:hover { color: var(--accent); }
.cs__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 1.75rem;
}

/* "The Work" section subhead — italic Fraunces, smaller than H2 */
.cs__kicker {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 1.9vw, 1.55rem);
  color: var(--muted);
  margin: 0.6rem 0 0;
  letter-spacing: -0.005em;
  line-height: 1.3;
}

/* Case study variant with carousel: carousel + body intro side-by-side,
   scope/results breaks to full-width below. */
.cs__item--with-carousel {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
  gap: clamp(2rem, 4vw, 3.5rem);
}
.cs__body--intro { padding-top: 0.5rem; }
.cs__grid--full {
  grid-column: 1 / -1;
  margin-top: 0;
}

/* IMAGE LIGHTBOX — click-to-zoom for carousel images */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 8, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 4vw, 4rem);
  z-index: 100;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lightbox.is-open { display: flex; opacity: 1; }
.lightbox__img {
  max-width: 96vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  background: #fff;
}
.lightbox__close {
  position: absolute;
  top: clamp(1rem, 2vw, 1.5rem);
  right: clamp(1rem, 2vw, 1.5rem);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--inverse);
  color: var(--ink);
  border: 0;
  font-size: 1.5rem;
  font-family: var(--display);
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 101;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.lightbox__close:hover { background: var(--accent); color: #fff; transform: scale(1.05); }

/* Make carousel images clickable */
.carousel__media { cursor: zoom-in; }

/* Photo marquee — JS-driven auto-scroll with prev/next buttons.
   Used in VIA Chicago. Pauses on hover; arrows nudge by one image. */
.photo-marquee {
  grid-column: 1 / -1;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
  /* Soft fade at the edges */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.photo-marquee__track {
  display: flex;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  width: max-content;
  will-change: transform;
}
.photo-marquee__item {
  flex: 0 0 auto;
  margin: 0;
  width: clamp(280px, 32vw, 440px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--line);
}
.photo-marquee__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-marquee__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--inverse);
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 1.05rem;
  font-family: var(--display);
  font-weight: 600;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.photo-marquee__btn:hover { background: var(--accent); color: #fff; transform: translateY(-50%) scale(1.06); }
.photo-marquee__btn--prev { left: 1rem; }
.photo-marquee__btn--next { right: 1rem; }

/* Feature stat strip — bold numbers, dark cards, coral figures.
   Sits above scope/results as visual proof point. */
.cs__stats-wrap {
  grid-column: 1 / -1;
}
.cs__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(0.6rem, 1.2vw, 1rem);
}
.cs__stat {
  text-align: center;
  padding: clamp(1.4rem, 2.8vw, 2.2rem) 1rem;
  background: var(--bg-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}
.cs__stat-figure {
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
  display: block;
  margin-bottom: 0.6rem;
}
.cs__stat-label {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--inverse-2);
  line-height: 1.3;
}
.cs__stat-sub {
  display: block;
  font-family: var(--body);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-top: 0.35rem;
}
.cs__stats-sub {
  margin: 1.75rem auto 0;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 72ch;
}
.cs__stats-sub strong {
  font-style: normal;
  color: var(--ink);
  font-weight: 700;
  font-family: var(--body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
  color: var(--accent-2);
}

/* CAROUSEL */
.carousel {
  position: relative;
  background: var(--bg-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: clamp(1rem, 2vw, 1.4rem) clamp(0.75rem, 1.5vw, 1.1rem) clamp(2.6rem, 3.5vw, 3rem);
  min-width: 0;  /* prevent grid item from expanding to fit slide content */
  overflow: hidden;  /* belt-and-suspenders against horizontal overflow */
}
.carousel__eyebrow {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 0.9rem clamp(0.4rem, 0.8vw, 0.6rem);
}
.carousel__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: var(--radius);
}
.carousel__viewport::-webkit-scrollbar { display: none; }
.carousel__track {
  display: flex;
  width: 100%;
}
.carousel__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  padding: clamp(0.4rem, 0.8vw, 0.7rem);
}
.carousel__media {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  max-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}
.carousel__media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.carousel__context {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0 0.3rem 0.2rem;
}
.carousel__tag {
  font-family: var(--body);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2-light);
  font-weight: 700;
}
.carousel__title {
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--inverse);
}
.carousel__desc {
  font-size: 0.88rem;
  color: var(--inverse-2);
  line-height: 1.5;
  margin: 0;
  max-width: 42ch;
}

/* Controls */
.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--inverse);
  color: var(--ink);
  border: 0;
  font-size: 1.1rem;
  font-family: var(--display);
  font-weight: 600;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow-sm);
}
.carousel__btn:hover { background: var(--accent); color: #fff; transform: translateY(-50%) scale(1.06); }
.carousel__btn:disabled { opacity: 0.35; cursor: default; transform: translateY(-50%); }
.carousel__btn--prev { left: 0.6rem; }
.carousel__btn--next { right: 0.6rem; }

.carousel__counter {
  position: absolute;
  bottom: 0.9rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--inverse);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  z-index: 3;
}
.carousel__slash { color: var(--muted-dark); margin: 0 0.2rem; font-weight: 400; }

/* Carousel responsive */
@media (max-width: 760px) {
  .carousel__slide { grid-template-columns: 1fr; gap: 1rem; padding: 0.75rem; }
  .carousel__btn { width: 38px; height: 38px; font-size: 1rem; }
  .carousel__btn--prev { left: 0.4rem; }
  .carousel__btn--next { right: 0.4rem; }
  .carousel { padding-bottom: 3.5rem; }
}

/* ARTIFACT GALLERY (within a case study) */
.cs__gallery {
  grid-column: 1 / -1;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px dashed var(--line);
}
.cs__gallery-eyebrow {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.5rem;
}
.cs__gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(1rem, 1.8vw, 1.5rem);
}
.artifact {
  margin: 0;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.artifact:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--accent);
}
.artifact__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-alt);
}
.artifact__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.artifact:hover .artifact__media img { transform: scale(1.05); }
.artifact figcaption {
  padding: 0.95rem 1.1rem 1.2rem;
  display: flex; flex-direction: column; gap: 0.25rem;
}
.artifact__tag {
  font-family: var(--body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.artifact__title {
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}
.artifact__sub {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 0.2rem;
}

/* CAREER TIMELINE — vertical, alternating, click-to-expand */
.timeline {
  background: var(--bg);
  padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(4rem, 8vw, 7rem);
}
.timeline .section__head { margin-left: auto; margin-right: auto; }
.timeline .eyebrow { color: var(--accent-2); }

.timeline__list {
  position: relative;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1080px;
  counter-reset: tl;
}
/* Central spine */
.timeline__list::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, var(--line) 0%, var(--accent-2) 50%, var(--line) 100%);
  transform: translateX(-50%);
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.timeline__item:last-child { margin-bottom: 0; }

/* Card alignment per side */
.timeline__item--left .timeline__card {
  grid-column: 1;
  text-align: right;
  padding-right: clamp(2.5rem, 4vw, 4rem);
}
.timeline__item--right .timeline__card {
  grid-column: 2;
  text-align: left;
  padding-left: clamp(2.5rem, 4vw, 4rem);
}

/* Logo "node" centered on the spine */
.timeline__item::after {
  content: "";
  position: absolute;
  top: 1.6rem;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-2);
  border: 3px solid var(--bg);
  transform: translateX(-50%);
  z-index: 2;
  transition: transform 0.25s ease, background 0.25s ease;
}
.timeline__item:hover::after { transform: translateX(-50%) scale(1.2); background: var(--accent); }

/* The card itself */
.timeline__card {
  position: relative;
  background: transparent;
  border: 0;
  width: 100%;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  display: block;
  transition: transform 0.25s ease;
}
.timeline__card:hover { transform: translateY(-2px); }

/* Logo chip on each card */
.timeline__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 24px;
  width: 260px;
  height: 92px;
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow-sm);
}
.timeline__logo img {
  max-width: 100%;
  max-height: 46px;
  width: auto;
  height: auto;
  display: block;
}
/* Text-only variant for the "Independent Practice" entry (no logo file) */
.timeline__logo--text {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-align: center;
  background: var(--bg-alt);
  border-style: dashed;
}

/* Head info (company, dates, role) */
.timeline__head { display: flex; flex-direction: column; gap: 0.15rem; }
.timeline__company {
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}
.timeline__dates {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.timeline__role {
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-2);
  line-height: 1.3;
  margin-top: 0.25rem;
}

/* Expand toggle */
.timeline__toggle {
  position: absolute;
  top: 0.6rem;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-2);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: transform 0.25s ease, background 0.25s ease;
}
.timeline__item--left .timeline__toggle { right: clamp(0rem, 1vw, 0.5rem); }
.timeline__item--right .timeline__toggle { left: clamp(0rem, 1vw, 0.5rem); }
.timeline__card[aria-expanded="true"] .timeline__toggle {
  transform: rotate(45deg);
  background: var(--accent);
}

/* Collapsed/expanded detail */
.timeline__detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.25s ease;
}
.timeline__card[aria-expanded="true"] .timeline__detail {
  max-height: 500px;
  opacity: 1;
  margin-top: 1rem;
}
.timeline__detail p {
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0 0 0.7rem;
}
.timeline__detail ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.timeline__detail li {
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.5;
  padding: 0.35rem 0;
  border-top: 1px solid var(--line);
}
.timeline__item--left .timeline__detail li { padding-right: 0.5rem; }
.timeline__item--right .timeline__detail li { padding-left: 0.5rem; }
/* Inline numerical highlight inside timeline bullets */
.timeline__detail .hl {
  color: var(--accent-2);
  font-weight: 800;
  font-family: var(--display);
}

/* Right-aligned cards have logo flipped to the right */
.timeline__item--left .timeline__logo,
.timeline__item--left .timeline__head { margin-left: auto; }
.timeline__item--left .timeline__head { align-items: flex-end; }
.timeline__item--right .timeline__head { align-items: flex-start; }

/* Responsive — stack to single-column on small screens */
@media (max-width: 760px) {
  .timeline__list { max-width: 100%; }
  .timeline__list::before { left: 22px; }
  .timeline__item { grid-template-columns: 1fr; margin-bottom: 1.75rem; }
  .timeline__item--left .timeline__card,
  .timeline__item--right .timeline__card {
    grid-column: 1;
    text-align: left;
    padding-left: 56px;
    padding-right: 0;
  }
  .timeline__item::after { left: 22px; top: 1.2rem; }
  .timeline__item--left .timeline__logo,
  .timeline__item--left .timeline__head { margin-left: 0; }
  .timeline__item--left .timeline__head { align-items: flex-start; }
  .timeline__item--left .timeline__toggle,
  .timeline__item--right .timeline__toggle { right: 0; left: auto; }
}

/* COMPANIES / LOGOS STRIP */
.logos {
  background: var(--bg);
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.logos .eyebrow { color: var(--accent-2); margin-bottom: 2rem; }
.logos__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
/* Clean white tiles — each logo gets its own card.
   Bulletproof across browsers, looks like an intentional "press wall." */
.logos__item {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 22px;
  min-width: 160px;
  min-height: 76px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.logos__item:hover {
  border-color: var(--accent-2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.logos__item img {
  display: block;
  max-height: 38px;
  max-width: 140px;
  width: auto;
  height: auto;
}

/* PRESS STRIP - now dark for contrast */
.press {
  background: var(--bg-dark);
  color: var(--inverse);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding: clamp(4rem, 7vw, 5.5rem) 0;
}
.press .eyebrow { color: var(--accent); }
.press__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
  margin-top: 2.5rem;
}
.press__list li {
  display: flex; flex-direction: column; gap: 0.4rem;
  padding: 1.5rem 1.5rem 1.6rem;
  background: var(--bg-dark-3);
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.press__list li:hover { border-color: var(--accent-2-light); transform: translateY(-3px); }
.press__list strong {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--inverse);
  letter-spacing: -0.02em;
}
.press__list span { font-size: 0.9rem; color: var(--muted-dark); }

/* CONTACT */
.contact {
  background: var(--bg-dark);
  color: var(--inverse);
  padding: clamp(5rem, 10vw, 9rem) 0;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  bottom: -30%; left: -10%;
  width: 70%; height: 100%;
  background: radial-gradient(circle, rgba(232,95,44,0.24) 0%, rgba(232,95,44,0) 60%); /* persimmon glow — was rgba(255,90,56,0.18) */
  pointer-events: none;
}
.contact::after {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 60%; height: 80%;
  background: radial-gradient(circle, rgba(14,153,97,0.34) 0%, rgba(14,153,97,0) 60%); /* emerald glow — was rgba(58,26,191,0.32) */
  pointer-events: none;
}
.contact .container { position: relative; z-index: 1; }
.contact__inner { max-width: 880px; text-align: center; margin: 0 auto; }
.contact .eyebrow { color: var(--accent); }
.contact__title {
  color: var(--inverse);
  margin-bottom: 1.2rem;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.contact__title em {
  display: block;
  font-size: 0.72em;
  margin-top: 0.55em;
}
.contact__sub { color: var(--inverse-2); max-width: 90ch; margin: 0 auto 2.5rem; font-size: 1.08rem; line-height: 1.6; }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; }
.contact .btn--primary { background: var(--accent); color: #fff; }
.contact .btn--primary:hover { background: var(--accent-hover); color: #fff; }
.contact .btn--ghost { color: var(--inverse); border-color: var(--inverse); }
.contact .btn--ghost:hover { background: var(--inverse); color: var(--bg-dark); }

/* FOOTER */
.footer {
  background: var(--bg-dark);
  color: var(--muted-dark);
  padding: 1.8rem 0 2.4rem;
  border-top: 1px solid var(--line-dark);
}
.footer__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-size: 0.85rem;
}
.footer a { color: var(--inverse-2); transition: color 0.2s; font-weight: 500; }
.footer a:hover { color: var(--accent); }

/* REVEAL ON SCROLL */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 960px) {
  .about__grid { grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 3rem); justify-items: center; text-align: center; }
  .about__portrait-wrap { align-items: center; text-align: center; }
  .about__caption { text-align: center; }
  .about__copy .h2 { margin-inline: auto; }
  .about__copy p { margin-inline: auto; }
  .cs__item, .cs__item--reverse, .cs__item--with-carousel { grid-template-columns: 1fr; }
  .cs__item--reverse .cs__figure { order: 0; }
  .cs__grid { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; gap: 0.4rem; text-align: center; }
  .hero__title { max-width: 18ch; }
}
@media (max-width: 640px) {
  .nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 1rem 1.5rem 1.5rem;
    background: var(--bg-dark); border-bottom: 1px solid var(--line-dark);
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { padding: 0.9rem 0; border-bottom: 1px solid var(--line-dark); width: 100%; }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__cta { display: inline-block; text-align: center; margin-top: 0.5rem; }
  .nav__toggle { display: block; }
  .nav__name { display: none; }
  .nav__tagline { display: none; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .contact__actions .btn { width: 100%; justify-content: center; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}
