:root {
  --purple-hero: #2c1746;
  --purple-accent: #BC73CD;
  --charcoal: #262524;
  --lime-accent: #E5FF35;
  --gray-body: #6A6A6A;
  --gray-light: #CBCBCB;
  --white: #FFFFFF;
  --cream: #FAF8ED;

  --badge-curious: #BF803A;
  --badge-tenacious: #849800;
  --badge-collaborative: #6192CA;
  --badge-dynamic: #BC73CD;

  --nav-color-overview: #BC73CD;
  --nav-color-objectives: #6192CA;
  --nav-color-discovery: #849800;
  --nav-color-prototyping-testing: #BF803A;
  --nav-color-delivery: #6A6A6A;

  --accent-costco: #6192CA;
  --accent-breakfast-republic: #C31C3C;
  --accent-ceviche: #E00070;

  --font-heading: 'Libre Baskerville', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --font-footer: 'Inter', -apple-system, sans-serif;

  --nav-height: 84px;
  --nav-height-hero: 160px;
  --cursor-size: 18px;

  --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
  --reveal-distance: 24px;
  --reveal-duration: 600ms;

  --content-max-width: 1200px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--gray-body);
  background-color: var(--white);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.25)),
    url('assets/images/papertexture-tile.jpg');
  background-repeat: no-repeat, repeat;
  background-size: cover, 480px auto;
  background-attachment: fixed, fixed;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

/* Custom cursor is hidden by default (only enabled via JS on fine-pointer devices) */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--cursor-size);
  height: var(--cursor-size);
  border-radius: 50%;
  background: var(--charcoal);
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-50%, -50%, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  padding: 0;
  transition: width 250ms var(--ease-standard), height 250ms var(--ease-standard),
              padding 250ms var(--ease-standard), border-radius 250ms var(--ease-standard),
              background 250ms var(--ease-standard), opacity 200ms ease;
}

.custom-cursor.is-active { opacity: 1; }

.custom-cursor.is-light {
  background: var(--white);
}

.custom-cursor.is-hotspot {
  width: auto;
  height: var(--cursor-size);
  padding: 0 6px;
  border-radius: 999px;
  background: var(--lime-accent);
  white-space: nowrap;
}

.custom-cursor__label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
  color: var(--charcoal);
  opacity: 0;
  transition: opacity 150ms ease;
  white-space: nowrap;
}

.custom-cursor__icon {
  display: inline-block;
  height: 1em;
  width: 1em;
  flex-shrink: 0;
}

.custom-cursor.is-hotspot .custom-cursor__label { opacity: 1; }

/* Global cursor:none only applied via JS class, so touch devices keep native cursor */
body.custom-cursor-enabled,
body.custom-cursor-enabled * {
  cursor: none !important;
}

/* ============= SITE NAV ============= */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: height 400ms var(--ease-standard), background 400ms var(--ease-standard),
              backdrop-filter 400ms var(--ease-standard), padding 400ms var(--ease-standard);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  gap: 86px;
  transition: gap 400ms var(--ease-standard);
}

.site-nav__logo {
  width: 196px;
  height: auto;
  display: block;
  transition: width 400ms var(--ease-standard), opacity 300ms ease;
}

.site-nav__link {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--white);
  transition: opacity 200ms ease, color 200ms ease, font-size 400ms var(--ease-standard);
}

.site-nav--on-light:not(.scrolled) .site-nav__link {
  color: var(--charcoal);
}

.site-nav.scrolled .site-nav__link {
  font-size: 13px;
}

.site-nav__logo-link {
  position: relative;
  display: block;
}

.site-nav__logo--scrolled {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.site-nav.scrolled .site-nav__logo--default {
  opacity: 0;
}

.site-nav.scrolled .site-nav__logo--scrolled {
  opacity: 1;
}

.site-nav__link:hover { opacity: 0.7; }

.site-nav.scrolled {
  height: var(--nav-height);
  align-items: flex-start;
  justify-content: flex-end;
  padding: 20px 24px 0 0;
}

.site-nav.scrolled .site-nav__logo {
  width: 110px;
}

.site-nav.scrolled .site-nav__inner {
  gap: 16px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  background: rgba(20, 10, 30, 0.55);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  transition: gap 400ms var(--ease-standard), padding 400ms var(--ease-standard),
              background 400ms var(--ease-standard);
}

/* ============= HERO ============= */
.hero {
  position: relative;
  min-height: clamp(600px, 90vh, 811px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero--compact {
  min-height: 560px;
}

.hero--compact .hero__content {
  padding-top: 80px;
}

.hero__bg {
  position: absolute;
  inset: -10% 0 -10% 0;
  background-color: var(--purple-hero);
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1.15;
  color: var(--white);
  margin: 0;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 20px;
  color: var(--white);
  margin: 8px 0 0;
}

.hero__title .char,
.hero__subtitle .char,
.welcome-block__heading .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  animation: charIn 500ms var(--ease-standard) forwards;
}

.hero__title .char--space,
.hero__subtitle .char--space,
.welcome-block__heading .char--space { width: 0.3em; }

@keyframes charIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero__hotspot {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 130px;
  background: transparent;
  border: none;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 32px;
  cursor: pointer;
}

.hero__hotspot-chevron {
  color: var(--white);
  font-size: 24px;
  opacity: 0.85;
  animation: chevronBounce 2s ease-in-out infinite;
}

@keyframes chevronBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ============= MAIN CONTENT LAYOUT ============= */
/* Content column is centered on the page via two equal flexible margin
   tracks; the project nav floats in the left margin rather than taking a
   fixed track that would push the content off-center. */
.main-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 828px) minmax(0, 1fr);
  gap: 0;
  max-width: 1920px;
  margin: 0 auto;
  padding: 64px 32px 0;
}

.content-column { grid-column: 2; }

.project-nav {
  grid-column: 1;
  justify-self: center;
  width: 220px;
  max-width: 100%;
  align-self: start;
  position: sticky;
  top: var(--nav-height);
  padding-top: 8px;
  height: fit-content;
}

.project-nav__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-body);
  margin-bottom: 45px;
}

.project-nav__back:hover {
  font-weight: 700;
}

.project-nav__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-nav__list li {
  min-width: 0;
}

.project-nav__link {
  display: inline-block;
  max-width: 100%;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  white-space: normal;
  transition: background-color 150ms ease;
}

.project-nav__link--overview { color: var(--nav-color-overview); }
.project-nav__link--objectives { color: var(--nav-color-objectives); }
.project-nav__link--discovery { color: var(--nav-color-discovery); }
.project-nav__link--prototyping-testing { color: var(--nav-color-prototyping-testing); }
.project-nav__link--delivery { color: var(--nav-color-delivery); }

.project-nav__link--costco { color: var(--accent-costco); }
.project-nav__link--breakfast-republic { color: var(--accent-breakfast-republic); }
.project-nav__link--ceviche { color: var(--accent-ceviche); }

.project-nav__link:hover,
.project-nav__link.active {
  background-color: color-mix(in srgb, currentColor 18%, transparent);
}

.content-column {
  min-width: 0;
}

.section {
  padding-bottom: 96px;
}

.discovery-objective-wrap {
  background: rgba(132, 152, 0, 0.12);
  border-radius: 16px;
  padding: 48px;
}

.section__heading {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 40px;
  color: var(--purple-accent);
  margin: 0 0 44px;
}

.section__heading--overview { color: var(--nav-color-overview); }
.section__heading--objectives { color: var(--nav-color-objectives); }
.section__heading--discovery { color: var(--nav-color-discovery); }
.section__heading--prototyping-testing { color: var(--nav-color-prototyping-testing); }
.section__heading--delivery { color: var(--nav-color-delivery); }

.section__heading--costco { color: var(--accent-costco); }
.section__heading--breakfast-republic { color: var(--accent-breakfast-republic); }
.section__heading--ceviche { color: var(--accent-ceviche); }

.sub-block {
  margin-top: 64px;
}

.sub-block__heading {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 29px;
  color: var(--gray-body);
  margin: 0 0 24px;
}

/* 75% of each section's color mixed with 25% charcoal (darker, WCAG AA-compliant) */
#discovery .sub-block__heading { color: #6D7B09; }
#prototyping-testing .sub-block__heading { color: #996935; }

.sub-block__heading--costco { color: var(--accent-costco); }
.sub-block__heading--breakfast-republic { color: var(--accent-breakfast-republic); }
.sub-block__heading--ceviche { color: var(--accent-ceviche); }

p { color: var(--gray-body); font-size: 17px; margin: 0 0 20px; }

/* ============= REVEAL-ON-SCROLL ============= */
.reveal {
  opacity: 0;
  transform: translateY(var(--reveal-distance));
  transition: opacity var(--reveal-duration) var(--ease-standard),
              transform var(--reveal-duration) var(--ease-standard);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============= OVERVIEW EYEBROW + LEDE ============= */
.overview-eyebrow {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--charcoal);
}

.overview-eyebrow__line--muted { color: var(--gray-body); }

.overview-lede {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.2;
  color: var(--purple-accent);
  margin: 0 0 48px;
}

/* ============= META GRID (Overview) ============= */
.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 64px;
}

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

.meta-box__label {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  color: var(--gray-body);
  margin-bottom: 8px;
}

.meta-box__value {
  font-size: 15px;
  color: var(--gray-body);
  margin: 0;
  line-height: 1.7;
}

/* ============= WELCOME + BADGES ============= */
.welcome-block__heading {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 22px;
  color: var(--gray-body);
  margin: 0 0 12px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: none;
  border-radius: 999px;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-16px);
  transition: opacity var(--reveal-duration) var(--ease-standard),
              transform var(--reveal-duration) var(--ease-standard);
}

.badge.is-visible { opacity: 1; transform: translateY(0); }

.badge--curious { background: var(--badge-curious); }
.badge--tenacious { background: var(--badge-tenacious); }
.badge--collaborative { background: var(--badge-collaborative); }
.badge--dynamic { background: var(--badge-dynamic); }

/* ============= AI RENDERING + TOUCHPOINTS ============= */
.rendering-frame {
  margin: 64px 0 0;
  padding: 0;
}

.rendering-frame__panel {
  background: radial-gradient(circle at 50% 0%, #4a2d73 0%, #2c1746 70%);
  border-radius: 16px;
  padding: 40px 32px 24px;
}

.rendering-frame__wordmark {
  max-width: 320px;
  margin: 0 auto 24px;
}

.rendering-frame__image-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.rendering-frame__image { width: 100%; border-radius: 12px; }

.touchpoint-dot {
  position: absolute;
  left: var(--dot-x);
  top: var(--dot-y);
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--lime-accent);
  border: 2px solid var(--white);
  padding: 0;
  cursor: pointer;
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.touchpoint-dot--selected {
  transform: translate(-50%, -50%) scale(1.25);
  box-shadow: 0 0 0 4px rgba(229, 255, 53, 0.55);
}

.touchpoint-dot__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(229, 255, 53, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(229, 255, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 255, 53, 0); }
}

.rendering-frame__caption {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  text-align: left;
  margin-top: 16px;
}

.rendering-toggle__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  transition: color 200ms ease;
}

.rendering-toggle__cta:hover { color: var(--white); }

.rendering-toggle__cta--top { margin-top: 24px; }
.rendering-toggle__cta--bottom { margin-top: 20px; }

.rendering-toggle__caret { flex: 0 0 auto; }

.rendering-toggle__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 500ms var(--ease-standard);
}

[data-rendering-toggle].is-expanded .rendering-toggle__cta--top { display: none; }
[data-rendering-toggle].is-expanded .rendering-toggle__panel { max-height: 1400px; }

/* ============= CARD ROWS / IMAGES ============= */
.card-row {
  display: grid;
  gap: 24px;
  margin: 24px 0;
}

.card-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.method-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.method-card img {
  width: 100%;
  border-radius: 8px;
  background: var(--gray-light);
}

.method-card span {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--gray-body);
}

/* ============= EYEBROW LABEL (small uppercase caption) ============= */
.eyebrow-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-body);
  margin-bottom: 8px;
}

.eyebrow-label--pill {
  display: inline-block;
  background: var(--badge-tenacious);
  color: var(--cream);
  padding: 5px 14px;
  border-radius: 999px;
}

/* ============= INSIGHTS ============= */
.insight-row {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 32px;
}

.insight-row--reverse { flex-direction: row-reverse; }

.insight-row__text { flex: 1; min-width: 0; }

.insight-row__statement {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
  color: var(--gray-body);
  margin: 0;
}

/* ============= OBJECTIVE ============= */
.objective-statement {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  color: var(--gray-body);
  margin: 0;
}

.objective-statement .eyebrow-label--pill {
  margin-right: 10px;
  vertical-align: middle;
}

.objective-card {
  background: rgba(97, 146, 202, 0.3);
  border-radius: 12px;
  padding: 32px;
}

/* ============= FLOW PILLS ============= */
.flow-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 24px 0;
}

.flow-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--badge-curious);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
}

/* ============= KEY CONSIDERATIONS ============= */
.consideration-row {
  display: grid;
  grid-template-columns: minmax(200px, 320px) 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.consideration-row__image {
  width: 100%;
  aspect-ratio: 400 / 276;
  border-radius: 8px;
  object-fit: cover;
  background: var(--gray-light);
}

.consideration-row__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.consideration-card__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  color: var(--gray-body);
  margin: 0;
}

.consideration-card__title--pill {
  display: inline-block;
  background: var(--badge-curious);
  color: var(--cream);
  padding: 6px 16px;
  border-radius: 999px;
  width: fit-content;
}

.consideration-card__list { margin: 0; }

.consideration-card__list li {
  font-size: 14px;
  color: var(--gray-body);
  padding: 6px 0;
  border-bottom: 1px solid var(--gray-light);
}

/* ============= CAROUSEL ============= */
.carousel {
  position: relative;
  margin: 40px 0;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 0;
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar { display: none; }

.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  position: relative;
  aspect-ratio: 828 / 351;
}

#prototyping-carousel .carousel-slide {
  aspect-ratio: 1864 / 1020;
}

.carousel-slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 12px;
  background: var(--gray-light);
  object-fit: cover;
}

.carousel-slide--olive img { background: var(--nav-color-discovery); }
.carousel-slide--blue img { background: var(--nav-color-objectives); }
.carousel-slide--purple img { background: var(--purple-accent); }
.carousel-slide--tan img { background: var(--badge-curious); }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  color: var(--charcoal);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  opacity: 0.25;
  transition: background 200ms ease, opacity 200ms ease;
}

.carousel-arrow:hover { background: var(--white); opacity: 0.6; }
.carousel-arrow--prev { left: 12px; }
.carousel-arrow--next { right: 12px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(106, 106, 106, 0.35);
  cursor: pointer;
  padding: 0;
  transition: background 200ms ease, transform 200ms ease;
}

.carousel-dots button.is-active {
  background: var(--purple-accent);
  transform: scale(1.2);
}

#discovery-carousel .carousel-dots button.is-active {
  background: var(--nav-color-discovery);
}

#prototyping-carousel .carousel-dots button.is-active {
  background: var(--nav-color-prototyping-testing);
}

/* ============= MORE WORK / FOOTER ============= */
.more-work {
  border-top: 1px solid var(--gray-light);
  padding: 100px 64px;
}

.more-work__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.more-work__placeholder-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: var(--gray-body);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============= DELIVERY ============= */
.delivery-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.delivery-column__image {
  width: 100%;
  aspect-ratio: 824 / 444;
  border-radius: 8px;
  object-fit: cover;
  background: var(--gray-body);
}

.hifi-image-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.hifi-image-row__image {
  width: 100%;
  aspect-ratio: 808 / 572;
  border-radius: 8px;
  object-fit: cover;
  background: var(--gray-light);
}

.site-footer {
  background: var(--purple-accent);
  color: var(--cream);
  padding: 64px;
}

.site-footer__top {
  max-width: var(--content-max-width);
  margin: 0 auto;
  text-align: center;
}

.site-footer__image { margin: 0 auto 24px; max-width: 286px; }

.site-footer__tagline {
  font-family: var(--font-heading);
  font-size: 32px;
  color: var(--cream);
  max-width: 800px;
  margin: 0 auto;
}

.site-footer__bottom {
  max-width: var(--content-max-width);
  margin: 40px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-footer);
  font-size: 14px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

/* ============= BACK TO TOP ============= */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--lime-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 90;
  transition: opacity 300ms var(--ease-standard), transform 300ms var(--ease-standard);
  transform: translateY(8px);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top img { width: 14px; height: 18px; }

/* ============= TOOLTIP ============= */
.tooltip {
  position: fixed;
  max-width: 280px;
  background: var(--charcoal);
  color: var(--white);
  padding: 14px 16px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 200ms var(--ease-standard), transform 200ms var(--ease-standard);
  z-index: 300;
}

.tooltip.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.tooltip__text {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--white);
  margin: 0;
}

.tooltip__arrow {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--charcoal);
  transform: translate(-50%, -50%) rotate(45deg);
}

.tooltip--above .tooltip__arrow { bottom: -2px; top: auto; }
.tooltip--below .tooltip__arrow { top: -2px; }

/* ============= HOME: HERO ============= */
.home-hero__heading {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.3;
  color: var(--charcoal);
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.home-hero__heading [data-tw-line="2"] {
  color: var(--gray-body);
}

.home-hero__heading em {
  font-style: italic;
}

.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  margin-left: 2px;
  background: var(--charcoal);
  vertical-align: text-bottom;
  opacity: 0;
}

.typewriter-cursor.is-active {
  animation: twBlink 1000ms steps(1, end) infinite;
}

.typewriter-cursor.is-hidden {
  opacity: 0;
  animation: none;
}

@keyframes twBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.interaction-word {
  white-space: nowrap;
}

.interaction-letter {
  display: inline-block;
}

.interaction-letter.wave {
  animation: interactionWave 500ms var(--ease-standard);
}

@keyframes interactionWave {
  0%, 100% { transform: translateY(0); color: inherit; }
  50% { transform: translateY(-8px); color: var(--purple-accent); }
}

#work {
  scroll-margin-top: var(--nav-height);
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 64px 0;
}

/* ============= HOME: WORK GRID ============= */
.home-work__tile {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 600 / 350;
  border-radius: 8px;
  background: var(--gray-body);
  overflow: hidden;
}

.home-work__tile--link {
  cursor: pointer;
}

.home-work__tile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-work__tile-image--hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 300ms var(--ease-standard);
}

.home-work__tile-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 24px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 400;
  color: var(--cream);
  opacity: 0;
  transition: opacity 300ms var(--ease-standard);
  pointer-events: none;
}

.home-work__tile:hover .home-work__tile-image--hover,
.home-work__tile:hover .home-work__tile-label {
  opacity: 1;
}

/* ============= HOME: ELEMENTS OF DELIGHT ============= */
.delight {
  position: relative;
  overflow: hidden;
  background-color: var(--purple-hero);
  padding: 60px 64px 140px;
}

.delight__bg {
  position: absolute;
  left: 0;
  right: 0;
  top: -25%;
  bottom: -25%;
  background-image: url('assets/images/gridpaper-pattern.jpg');
  background-repeat: repeat;
  background-size: 400px auto;
  will-change: transform;
}

.delight__dog {
  position: absolute;
  bottom: 0;
  left: 79%;
  transform: translateX(-50%);
  width: 370px;
  height: auto;
}

.delight__vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.25), inset 0 -4px 10px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.delight__inner {
  position: relative;
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.delight__heading {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 32px;
  color: var(--cream);
  background: var(--purple-accent);
  padding: 10px 28px;
  border-radius: 0;
  margin: 0 0 40px;
  box-shadow: -4px 8px 4px rgba(0, 0, 0, 0.3);
}

.delight__tile {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(var(--tile-rotate, 0deg));
  transition: transform 300ms var(--ease-standard);
}

.delight__tile:hover {
  transform: rotate(0deg) scale(1.04);
}

.delight__tile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.delight__tile--text {
  background: var(--gray-body);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  text-align: center;
}

/* ============= HOME: ABOUT PREVIEW ============= */
.about-preview {
  scroll-margin-top: var(--nav-height);
  padding: 100px 64px;
}

.about-preview__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.about-preview__row {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 32px;
}

.about-preview__image {
  flex: 0 0 200px;
  width: 200px;
  height: 200px;
  border-radius: 8px;
  background: var(--gray-body);
  overflow: hidden;
}

.about-preview__image-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
}

.about-preview__cta {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--cream);
  background: var(--purple-accent);
  padding: 8px 20px;
  border-radius: 999px;
  transition: background-color 200ms ease;
}

.about-preview__cta:hover {
  background: var(--charcoal);
}

/* ============= ABOUT: INTRO ============= */
.about-intro {
  padding: 220px 64px 100px;
}

.about-intro__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: flex;
  gap: 64px;
  align-items: flex-start;
}

.about-intro__image {
  flex: 0 0 276px;
  width: 276px;
  height: 276px;
  border-radius: 8px;
  background: var(--gray-body);
  overflow: hidden;
}

.about-intro__image-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
}

.about-intro__text {
  flex: 1;
}

.about-intro__body {
  font-size: 20px;
  color: var(--gray-body);
  margin: 0 0 20px;
}

.about-intro__divider {
  border: none;
  border-top: 1px solid var(--gray-light);
  margin: 32px 0;
}

/* ============= ABOUT: SECTIONS + ACCORDION ============= */
.about-section {
  padding: 64px;
}

.about-section__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.about-section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section__heading--small {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 0;
}

.section__expand-all {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--gray-body);
  cursor: pointer;
}

.accordion-list {
  display: flex;
  flex-direction: column;
}

.accordion-row {
  border-bottom: 1px solid var(--gray-light);
  padding: 24px 0;
}

.accordion-row__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}

.accordion-row__static {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.accordion-row__heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.accordion-row__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  color: var(--charcoal);
  margin: 0;
}

.accordion-row__role {
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--gray-body);
}

.accordion-row__dates {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--gray-body);
  white-space: nowrap;
  margin-left: auto;
  margin-right: 24px;
}

.accordion-row__icon {
  font-size: 28px;
  line-height: 1;
  color: var(--gray-body);
  transition: transform 300ms var(--ease-standard);
  flex: 0 0 auto;
}

.accordion-row.is-open .accordion-row__icon {
  transform: rotate(45deg);
}

.accordion-row__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms var(--ease-standard);
}

.accordion-row.is-open .accordion-row__panel {
  max-height: 600px;
}

.accordion-row__panel-text {
  font-size: 17px;
  color: var(--gray-body);
  font-style: italic;
  padding-top: 16px;
  margin: 0;
}

.accordion-row__panel-list {
  padding-top: 16px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.accordion-row__panel-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--gray-body);
}

.accordion-row__panel-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gray-body);
}

/* ============= DISCOVERY: WORKSHOP ACCORDION ============= */
.workshop-accordion {
  margin-top: 32px;
  border-radius: 8px;
  overflow: hidden;
}

.workshop-accordion__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: var(--nav-color-discovery);
}

.workshop-accordion__header-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--white);
}

.workshop-accordion__expand-all {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 200ms ease;
}

.workshop-accordion__expand-all:hover { opacity: 1; }

.workshop-accordion__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: var(--nav-color-discovery);
  max-height: 0;
  padding: 0 20px;
  overflow: hidden;
  transition: max-height 300ms var(--ease-standard), padding 300ms var(--ease-standard);
}

.workshop-accordion__footer.is-visible {
  max-height: 60px;
  padding: 14px 20px;
}

.accordion-row--workshop {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0;
  background: var(--nav-color-discovery);
}

.accordion-row--workshop:last-of-type { border-bottom: none; }

.accordion-row--workshop .accordion-row__toggle {
  padding: 14px 20px;
  gap: 16px;
}

.workshop-accordion__part {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2px;
}

.accordion-row--workshop .accordion-row__title {
  font-size: 20px;
  color: var(--white);
}

.accordion-row--workshop .accordion-row__icon { color: var(--white); }

.accordion-row--workshop.is-open .accordion-row__panel { max-height: 2200px; }

.accordion-row--workshop .accordion-row__panel {
  background: var(--white);
  padding: 0 20px;
}

.accordion-row--workshop.is-open .accordion-row__panel { padding: 24px 40px; }

.workshop-figjam-embed {
  position: relative;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 800 / 450;
  margin: 24px 0;
}

.workshop-figjam-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.workshop-media-row {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 32px;
}

.workshop-media-row:last-child { margin-bottom: 0; }
.workshop-media-row--reverse { flex-direction: row-reverse; }

.workshop-media-row__image {
  flex: 0 0 auto;
  width: 194px;
  border-radius: 8px;
}

.workshop-media-row__image--wide { width: 320px; }
.workshop-media-row__image--small { width: 160px; }

.workshop-media-row__image--framed {
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.25);
  border: 1.25px solid var(--nav-color-discovery);
}

.workshop-media-row__image--wide.workshop-media-row__image--framed {
  border-color: var(--gray-body);
}

.workshop-media-row__text-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.workshop-media-row__duration {
  font-weight: 700;
  font-size: 16px;
  color: var(--gray-body);
}

.workshop-media-row__text {
  margin: 0;
  font-size: 16px;
  color: var(--gray-body);
}

.workshop-message-intro {
  font-size: 16px;
  color: var(--gray-body);
  margin: 0 0 24px;
}

.sticky-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sticky-card {
  position: relative;
  border-radius: 8px;
  padding: 20px 44px 32px 16px;
  min-height: 140px;
  display: flex;
  align-items: center;
}

.sticky-card--pink { background: #F9C6D9; }
.sticky-card--lavender { background: #D9C6F0; }
.sticky-card--blue { background: #AFC9EA; }
.sticky-card--mint { background: #B9EFE0; }
.sticky-card--green { background: #C3E6A8; }
.sticky-card--peach { background: #F5CFA0; }

.sticky-card__quote {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--charcoal);
}

.sticky-card__star {
  position: absolute;
  top: 12px;
  right: 14px;
  color: #F2B705;
  font-size: 15px;
}

.sticky-card__heart {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  color: #E0607E;
  font-size: 15px;
}

.sticky-card__badge {
  position: absolute;
  bottom: 10px;
  right: 14px;
  background: var(--purple-accent);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
}

.sticky-card__author {
  position: absolute;
  bottom: 10px;
  left: 14px;
  font-size: 11px;
  color: rgba(0, 0, 0, 0.5);
}

/* ============= ABOUT: LIFE GALLERY ============= */
.about-life__tile {
  width: 100%;
  aspect-ratio: 181 / 203;
  border-radius: 8px;
  background: var(--gray-body);
}

/* ============= PROJECT PAGES: META GRID 2-COL ============= */
.meta-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 460px; }

/* ============= PROJECT PAGES: BEFORE/AFTER SLIDER ============= */
.before-after { margin: 32px 0; }

.before-after__frame {
  position: relative;
  aspect-ratio: 828 / 400;
  border-radius: 12px;
  overflow: hidden;
  --split: 50%;
}

.before-after--tall .before-after__frame { aspect-ratio: 828 / 560; }

.before-after__layer { position: absolute; inset: 0; }
.before-after__layer--before { clip-path: inset(0 calc(100% - var(--split)) 0 0); }

.before-after__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before-after__fill {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.before-after__fill--after { background: var(--gray-body); }
.before-after__fill--before { background: var(--gray-light); color: rgba(38, 37, 36, 0.55); }

.before-after__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  transform: translateX(-50%);
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  cursor: ew-resize;
  touch-action: none;
}

.before-after__handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--white);
  transform: translateX(-50%);
}

.before-after__handle-grip {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  color: var(--charcoal);
}

/* ============= PROJECT PAGES: BENTO GALLERY ============= */
.project-gallery { margin: 32px 0; }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: 0.8fr 1.2fr;
  gap: 12px;
  height: 340px;
}

.bento-grid__tile { background: var(--gray-light); border-radius: 8px; overflow: hidden; }
.bento-grid__tile:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
.bento-grid__tile:nth-child(2) { grid-column: 3 / 5; grid-row: 1 / 2; }
.bento-grid__tile:nth-child(3) { grid-column: 3 / 4; grid-row: 2 / 3; }
.bento-grid__tile:nth-child(4) { grid-column: 4 / 5; grid-row: 2 / 3; }

.gallery-row-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
  height: 300px;
}

.gallery-row-3--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery-row-3--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.gallery-row-3__tile { background: var(--gray-light); border-radius: 8px; overflow: hidden; }

/* ============= LIGHTBOX ============= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 10, 15, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms var(--ease-standard);
}

.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox__image {
  max-width: min(88vw, 1200px);
  max-height: 86vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox__close,
.lightbox__arrow {
  position: absolute;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox__close:hover,
.lightbox__arrow:hover { background: var(--white); opacity: 0.8; }

.lightbox__close {
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  font-size: 24px;
  line-height: 1;
}

.lightbox__arrow {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 28px;
}

.lightbox__arrow--prev { left: 24px; }
.lightbox__arrow--next { right: 24px; }

body.lightbox-open { overflow: hidden; }

@media (max-width: 767px) {
  .lightbox__close { top: 12px; right: 12px; width: 36px; height: 36px; font-size: 20px; }
  .lightbox__arrow { width: 40px; height: 40px; font-size: 22px; }
  .lightbox__arrow--prev { left: 12px; }
  .lightbox__arrow--next { right: 12px; }
}

.bento-grid__tile img,
.gallery-row-3__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============= PROJECT PAGES: PLAIN PLACEHOLDERS ============= */
.image-placeholder {
  aspect-ratio: 828 / 400;
  border-radius: 12px;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--gray-body);
  margin: 24px 0;
  overflow: hidden;
}

.image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============= PROJECT PAGES: MORE WORK CROSS-LINKS ============= */
a.more-work__placeholder-box { text-decoration: none; }

.more-work__placeholder-box:hover .home-work__tile-image--hover,
.more-work__placeholder-box:hover .home-work__tile-label {
  opacity: 1;
}

/* ============================================================
   RESPONSIVE — Tablet (768–1023px)
   ============================================================ */
@media (max-width: 1023px) {
  .main-content {
    grid-template-columns: minmax(0, 1fr);
    padding: 48px 40px 0;
    gap: 0;
  }

  .content-column { grid-column: 1; }

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

  .project-nav {
    grid-column: 1;
    justify-self: stretch;
    width: auto;
    max-width: none;
    margin: 0 -40px 40px;
    position: sticky;
    top: var(--nav-height);
    z-index: 50;
    background: transparent;
    padding: 16px 40px;
  }

  .project-nav__back { display: none; }

  .project-nav__list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 21px;
    overflow-x: visible;
  }

  .project-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    padding: 0;
    margin-left: 0;
    border-radius: 999px;
    font-size: 0;
    white-space: nowrap;
    overflow: hidden;
    background: var(--dot-color);
    transition: width 300ms var(--ease-standard), height 300ms var(--ease-standard),
                padding 300ms var(--ease-standard), font-size 200ms var(--ease-standard);
  }

  .project-nav__link--overview { --dot-color: var(--nav-color-overview); }
  .project-nav__link--objectives { --dot-color: var(--nav-color-objectives); }
  .project-nav__link--discovery { --dot-color: var(--nav-color-discovery); }
  .project-nav__link--prototyping-testing { --dot-color: var(--nav-color-prototyping-testing); }
  .project-nav__link--delivery { --dot-color: var(--nav-color-delivery); }
  .project-nav__link--costco { --dot-color: var(--accent-costco); }
  .project-nav__link--breakfast-republic { --dot-color: var(--accent-breakfast-republic); }
  .project-nav__link--ceviche { --dot-color: var(--accent-ceviche); }

  .project-nav__link.active {
    width: auto;
    height: 21px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--cream);
    background: var(--dot-color);
  }

  .card-row--3,
  .card-row--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============================================================
   RESPONSIVE — Tablet only (768–1023px)
   Tuck the project nav under the main nav pill in the top right
   instead of spanning the full width.
   ============================================================ */
@media (min-width: 768px) and (max-width: 1023px) {
  .project-nav {
    grid-column: auto;
    justify-self: auto;
    position: fixed;
    top: var(--nav-height);
    right: 24px;
    left: auto;
    width: auto;
    margin: 0;
    padding: 8px 0 0;
  }

  .project-nav__list { justify-content: flex-end; }
}

/* ============================================================
   RESPONSIVE — Mobile (<768px)
   ============================================================ */
@media (max-width: 767px) {
  #discovery-carousel .carousel-slide { aspect-ratio: 1 / 1; }

  .delight__bg { background-size: 290px auto; }
  .delight__dog { width: 220px; }

  .site-nav__inner { gap: 32px; }
  .site-nav__logo { width: 130px; }
  .site-nav__link { font-size: 14px; }

  .site-nav.scrolled {
    justify-content: center;
    padding: 20px 0 0;
  }

  .site-nav.scrolled .site-nav__inner {
    gap: 24px;
    padding: 10px 24px;
  }

  .main-content { padding: 32px 20px 0; }

  .project-nav {
    margin: 0 -20px 32px;
    padding: 12px 20px;
  }

  .section { padding-bottom: 64px; }
  .section__heading { font-size: 30px; margin-bottom: 32px; }
  .sub-block__heading { font-size: 22px; }

  .meta-grid { gap: 16px; margin-bottom: 40px; }

  .card-row--2,
  .card-row--3,
  .card-row--4,
  .hifi-image-row,
  .consideration-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .badges { gap: 10px; }
  .badge { font-size: 13px; padding: 6px 12px; }

  .carousel-arrow { width: 32px; height: 32px; font-size: 16px; }

  .more-work,
  .site-footer { padding: 56px 20px; }

  .site-footer__tagline { font-size: 24px; }

  .site-footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .back-to-top { bottom: 20px; right: 20px; }

  .about-intro__inner { flex-direction: column; }
  .about-preview__row { flex-direction: column; text-align: center; }

  .overview-lede { font-size: 28px; margin-bottom: 32px; }
  .meta-grid--3 { grid-template-columns: minmax(0, 1fr); gap: 24px; }

  .workshop-media-row,
  .workshop-media-row--reverse {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .workshop-media-row__image,
  .workshop-media-row__image--wide,
  .workshop-media-row__image--small {
    width: 100%;
  }

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

  .meta-grid--2 { grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: none; }

  .before-after__handle { width: 32px; }
  .before-after__handle-grip { width: 28px; height: 28px; }

  .bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, 1fr);
    height: 360px;
  }
  .bento-grid__tile:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 2; }
  .bento-grid__tile:nth-child(2) { grid-column: 1 / 3; grid-row: 2 / 3; }
  .bento-grid__tile:nth-child(3) { grid-column: 1 / 2; grid-row: 3 / 4; }
  .bento-grid__tile:nth-child(4) { grid-column: 2 / 3; grid-row: 3 / 4; }

  .gallery-row-3 { grid-template-columns: minmax(0, 1fr); height: auto; gap: 12px; }
  .gallery-row-3__tile { aspect-ratio: 263 / 300; }
}
