:root {
  --acid: #8fff00;
  --ultravio: #4c32ff;
  --ink: #121212;
  --mist: #f6f7f2;
  --line: rgba(18, 18, 18, 0.12);
  /* Align with writing layout: section breaks + prose rhythm */
  --page-section-gap: 2.25rem;
  --prose-stack-gap: 1.65rem;
  --stack-gap: 1.25rem;
  --content-prose-max: 74ch;
  --home-project-gap: clamp(3rem, 5.5vw, 4.75rem);
  --home-project-media-h: min(560px, 46vw);
  --card-padding: clamp(1.35rem, 3.2vw, 1.9rem);
  --card-padding-spacious: clamp(1.6rem, 4vw, 2.4rem);
  /* Heading scale (sitewide, light backgrounds) */
  --heading-1-size: clamp(2rem, 5.5vw, 4.5rem);
  --heading-1-weight: 700;
  --heading-1-leading: 1.08;
  --heading-1-tracking: -0.03em;
  --heading-2-size: clamp(1.35rem, 2.5vw, 1.8rem);
  --heading-2-weight: 600;
  --heading-2-leading: 1.2;
  --heading-2-tracking: -0.02em;
  --heading-3-size: clamp(1.02rem, 1.45vw, 1.12rem);
  --heading-3-weight: 600;
  --heading-3-leading: 1.35;
  --heading-3-tracking: -0.012em;
  /* Project figures, hero, split frames: one radius everywhere */
  --figure-radius: 1rem;
}

.page-title,
.hero h1 {
  font-size: var(--heading-1-size);
  font-weight: var(--heading-1-weight);
  line-height: var(--heading-1-leading);
  letter-spacing: var(--heading-1-tracking);
  margin: 0;
}

.project-story__h2,
.project-story__split-title,
.service-block__title,
.section-card h2,
.services-tubik-block__title,
.writing-body h2,
.project-card h2,
.post-card h2 {
  font-size: var(--heading-2-size);
  font-weight: var(--heading-2-weight);
  line-height: var(--heading-2-leading);
  letter-spacing: var(--heading-2-tracking);
  color: var(--ink);
}

.lanes-title {
  margin: 0.55rem 0 1rem;
  font-size: var(--heading-2-size);
  font-weight: var(--heading-2-weight);
  line-height: var(--heading-2-leading);
  letter-spacing: var(--heading-2-tracking);
  color: #fff;
}

.project-story__h3 {
  font-size: var(--heading-3-size);
  font-weight: var(--heading-3-weight);
  line-height: var(--heading-3-leading);
  letter-spacing: var(--heading-3-tracking);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: Circular, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.main-pad {
  padding-top: 3.5rem;
  padding-bottom: 5rem;
}

main.main-pad > section + section,
#project-detail > section + section,
#writing-detail > section + section {
  margin-top: var(--page-section-gap);
}

/* Classic project layout: keep intro → Service → summary tighter than generic section stack. */
#project-detail:not(.project-detail--story) > .project-detail__intro + .service-block,
#project-detail:not(.project-detail--story) > .service-block + .project-summary {
  margin-top: clamp(0.55rem, 1.2vw, 0.85rem);
}

#compare-content > section:first-child {
  margin-top: var(--stack-gap);
}

.narrow {
  width: min(860px, 92vw);
}

body[data-page="about"] main.main-pad.narrow,
body[data-page="services"] main.main-pad.narrow {
  padding-inline: clamp(1.2rem, 5vw, 2.35rem);
  box-sizing: border-box;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(246, 247, 242, 0.9);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.45rem 1.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 0;
  min-height: 2.5rem;
  padding: 0.45rem 0.55rem;
  margin: -0.45rem -0.55rem;
  border-radius: 0.7rem;
  transition: background-color 0.18s ease;
}

.brand-mark {
  display: block;
  height: clamp(1.15rem, 2vw, 1.4rem);
  width: auto;
}

.brand-logo {
  width: 2.6rem;
  height: 1.3rem;
  object-fit: contain;
}

.brand-text {
  font-size: 1.95rem;
  letter-spacing: 0.02em;
  font-weight: 800;
  line-height: 1;
}

.brand-badge {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--ultravio);
  color: #fff;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav a {
  font-size: 0.95rem;
  opacity: 0.7;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.35rem 0.55rem;
  border-radius: 0.62rem;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav a:hover,
.nav a.is-active {
  opacity: 0.92;
  color: rgba(18, 18, 18, 0.9);
}

.nav a.is-active {
  opacity: 1;
  color: #121212;
  font-weight: 600;
}

.time-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.62rem;
  white-space: nowrap;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.3rem;
  min-width: 2.3rem;
  padding: 0.35rem 0.62rem;
  border: 1px solid rgba(18, 18, 18, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.theme-toggle__icon {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
}

.theme-toggle:hover {
  background: #f2f2f2;
  border-color: rgba(18, 18, 18, 0.28);
}

.theme-toggle:focus-visible {
  outline: 2px solid rgba(76, 50, 255, 0.45);
  outline-offset: 2px;
}

.time-now {
  font-size: clamp(0.8rem, 1vw, 0.92rem);
  font-weight: 500;
  color: var(--ink);
}

.flash-colon {
  animation: colon-blink 1s steps(1) infinite;
}

.time-activity {
  border-radius: 999px;
  background: #dfdfdf;
  padding: 0.25rem 0.62rem;
  font-size: clamp(0.72rem, 0.9vw, 0.8rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.time-activity:hover {
  background: #f2f2f2;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--page-section-gap);
  margin-bottom: 0;
  align-items: end;
}

.hero h1 {
  align-self: end;
}

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  align-self: end;
}

.hero-locale {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  max-width: 100%;
  padding: 0.45rem 0.75rem 0.45rem 0.5rem;
  margin: -0.45rem -0.75rem -0.45rem -0.5rem;
  border-radius: 999px;
  cursor: default;
  transition:
    background-color 0.28s ease,
    box-shadow 0.28s ease,
    transform 0.28s ease;
}

.hero-locale:hover {
  background-color: rgba(18, 18, 18, 0.055);
  box-shadow: 0 0 0 1px rgba(18, 18, 18, 0.08);
  transform: translateY(-2px);
}

.hero-locale:hover .hero-locale__pin {
  animation-duration: 1.35s;
}

.hero-locale:hover .hero-locale__city {
  color: rgba(18, 18, 18, 0.92);
}

.hero-locale:hover .hero-locale__pin-dot {
  animation-duration: 0.9s;
}

.hero-locale__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(18, 18, 18, 0.55);
}

.hero-locale__pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.05rem;
  height: 1.05rem;
  color: #d52b1e;
  transform-origin: 50% 85%;
  animation: hero-locale-pin-nudge 2.8s ease-in-out infinite;
}

.hero-locale__pin-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-locale__pin-dot {
  transform-origin: center;
  transform-box: fill-box;
  animation: hero-locale-dot-pulse 2.8s ease-in-out infinite;
}

.hero-locale__city {
  color: rgba(18, 18, 18, 0.78);
  transition: color 0.28s ease;
}

.hero-lede {
  margin: 0;
  font-size: clamp(1.02rem, 1.55vw, 1.18rem);
  line-height: 1.72;
  color: rgba(18, 18, 18, 0.82);
}

@keyframes hero-locale-pin-nudge {
  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  20% {
    transform: translateY(-5px) rotate(-5deg) scale(1.06);
  }
  40% {
    transform: translateY(-2px) rotate(3deg) scale(1);
  }
  60% {
    transform: translateY(-6px) rotate(-2deg) scale(1.04);
  }
  80% {
    transform: translateY(-1px) rotate(0deg) scale(1);
  }
}

@keyframes hero-locale-dot-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.82);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-locale__pin {
    animation: none;
  }

  .hero-locale__pin-dot {
    animation: none;
  }

  .hero-locale:hover {
    transform: none;
  }
}

.home-work {
  padding-top: clamp(1.75rem, 3.5vw, 2.75rem);
  border-top: 1px solid var(--line);
}

body[data-page="home"] .main-pad {
  padding-bottom: clamp(1.25rem, 3vw, 2.25rem);
}

body[data-page="home"] .site-footer {
  margin-top: clamp(1.2rem, 2.5vw, 2rem);
}

.home-work-intro {
  margin-bottom: clamp(0.8rem, 1.8vw, 1.35rem);
  max-width: 28rem;
}

.home-work-intro .eyebrow {
  margin: 0;
}

.home-filter-toolbar {
  margin-bottom: clamp(1.35rem, 2.8vw, 2rem);
  max-width: 100%;
}

.home-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}

.home-filter-chip {
  margin: 0;
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(18, 18, 18, 0.2);
  border-radius: 999px;
  background: #f2f2f2;
  color: var(--ink);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.25;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.home-filter-chip:hover {
  background: #e8e8e8;
  border-color: rgba(18, 18, 18, 0.32);
}

.home-filter-chip:focus-visible {
  outline: 2px solid rgba(76, 50, 255, 0.45);
  outline-offset: 2px;
}

.home-filter-chip.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.home-filter-chip.is-active:hover {
  background: #2a2a2a;
  border-color: #2a2a2a;
}

.home-filter-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: clamp(2rem, 4vw, 3rem) 0;
  text-align: center;
  font-size: 0.95rem;
  color: rgba(18, 18, 18, 0.55);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.65rem, 3.2vw, 2.6rem);
  row-gap: clamp(3.5rem, 6.5vw, 5.25rem);
  margin-top: 0;
}

.project-card {
  display: block;
}

.project-media {
  position: relative;
  border-radius: 1.2rem;
  overflow: hidden;
  height: min(520px, 62vw);
  background: #e7e7e7;
}

.projects-grid .project-card {
  display: flex;
  flex-direction: column;
  gap: clamp(1.15rem, 2vw, 1.55rem);
}

.projects-grid .project-media {
  flex-shrink: 0;
  height: var(--home-project-media-h);
  min-height: 280px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.projects-grid .project-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-media img {
  transform: scale(1.04);
}

.projects-grid .project-card h2 {
  margin: 0.15rem 0 0;
}

.projects-grid .project-card p {
  margin-top: 0;
}

@media (min-width: 981px) {
  .projects-grid .project-card:nth-child(2n) {
    margin-top: clamp(1.75rem, 4vw, 3.25rem);
  }
}

.project-chip {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  max-width: 100%;
  margin: 0 0 0.45rem;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
  border: 1px solid transparent;
}

.project-chip--app {
  background: rgba(0, 138, 132, 0.14);
  color: #0a5c58;
  border-color: rgba(0, 138, 132, 0.32);
}

.project-chip--data {
  background: rgba(45, 79, 215, 0.12);
  color: #2a3d9e;
  border-color: rgba(45, 79, 215, 0.28);
}

.project-chip--motion {
  background: rgba(255, 90, 42, 0.12);
  color: #c43d18;
  border-color: rgba(255, 90, 42, 0.3);
}

.project-chip--illustration {
  background: rgba(177, 44, 168, 0.1);
  color: #7d2a77;
  border-color: rgba(177, 44, 168, 0.28);
}

.project-chip--ux {
  background: rgba(76, 50, 255, 0.1);
  color: #3d2db8;
  border-color: rgba(76, 50, 255, 0.28);
}

.project-chip--default {
  background: rgba(18, 18, 18, 0.06);
  color: rgba(18, 18, 18, 0.62);
  border-color: rgba(18, 18, 18, 0.12);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: rgba(18, 18, 18, 0.52);
  margin: 0;
}

/* Project hero category: home chip hues + stronger type; no extra pill. */
.eyebrow.eyebrow--project {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  margin: 0 0 0.42rem;
}

.eyebrow.eyebrow--project.project-tone--ux {
  color: #3d2db8;
}

.eyebrow.eyebrow--project.project-tone--app {
  color: #0a5c58;
}

.eyebrow.eyebrow--project.project-tone--data {
  color: #2a3d9e;
}

.eyebrow.eyebrow--project.project-tone--motion {
  color: #c43d18;
}

.eyebrow.eyebrow--project.project-tone--illustration {
  color: #7d2a77;
}

.eyebrow.eyebrow--project.project-tone--default {
  color: rgba(18, 18, 18, 0.62);
}

.service-block {
  margin-top: 0;
  margin-bottom: 0;
  padding-block: 0;
}

.service-block__title {
  margin: 0 0 0.4rem;
}

.service-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-pills li {
  margin: 0;
}

.service-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(18, 18, 18, 0.18);
  background: #f2f2f2;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  line-height: 1.25;
}

.services-page {
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.services-tubik-head .page-title {
  margin: 0;
}

.services-head-dek {
  max-width: min(40ch, 100%);
  text-wrap: balance;
}

.services-tubik-block--split .services-tubik-block__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.22fr);
  gap: clamp(1.35rem, 3vw, 2.35rem);
  align-items: start;
}

.services-tubik-art {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 1;
  background: #f4f4f1;
  position: relative;
  transform: translateZ(0);
  animation: services-tubik-art-float 6s ease-in-out infinite;
  box-shadow: 0 16px 42px rgba(18, 18, 18, 0.06);
}

.services-tubik-art:hover {
  animation-play-state: paused;
}

.services-tubik-art__inner {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.22s ease-out;
  transform-style: preserve-3d;
}

.services-tubik-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.services-tubik-art img[src$=".svg"] {
  object-fit: contain;
  background: #080808;
}

.services-tubik-block__content {
  min-width: 0;
}

@keyframes services-tubik-art-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.018);
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-tubik-art {
    animation: none;
  }

  .services-tubik-art:hover {
    animation: none;
  }
}

@media (max-width: 720px) {
  .services-tubik-block--split .services-tubik-block__grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .services-tubik-block--split .services-tubik-art {
    max-width: min(100%, 300px);
    margin-inline: auto;
  }
}

.services-tubik-block {
  margin-top: clamp(2.2rem, 4.2vw, 3.1rem);
  padding-top: clamp(1.65rem, 2.8vw, 2.1rem);
  border-top: 1px solid var(--line);
}

.services-tubik-block__title {
  margin: 0 0 clamp(0.75rem, 1.4vw, 1rem);
}

.services-tubik-block__body {
  max-width: var(--content-prose-max);
  display: grid;
  gap: var(--prose-stack-gap);
}

.services-tubik-block__body p {
  margin: 0;
  font-size: clamp(1rem, 1.45vw, 1.08rem);
  line-height: 1.78;
  color: rgba(18, 18, 18, 0.84);
  text-wrap: pretty;
}

.services-tubik-block__lede {
  margin: 0 0 0.15rem;
  font-size: clamp(1rem, 1.45vw, 1.08rem);
  line-height: 1.72;
  color: rgba(18, 18, 18, 0.82);
}

.services-tubik-lines {
  margin: clamp(0.95rem, 1.8vw, 1.25rem) 0 0;
  padding: 0;
  list-style: none;
}

.services-tubik-lines li {
  margin: 0;
  padding: 0.68rem 0;
  font-size: 0.94rem;
  line-height: 1.48;
  color: rgba(18, 18, 18, 0.88);
  border-bottom: 1px solid rgba(18, 18, 18, 0.1);
}

.services-tubik-lines li:first-child {
  border-top: 1px solid rgba(18, 18, 18, 0.1);
}

.project-card h2,
.post-card h2 {
  margin: 0.5rem 0 0;
}

.project-card p,
.post-card p {
  margin-top: 0.65rem;
  line-height: 1.72;
  color: rgba(18, 18, 18, 0.82);
}

.about-copy {
  margin-top: 0;
  display: grid;
  gap: var(--prose-stack-gap);
  max-width: var(--content-prose-max);
  margin-inline: auto;
}

.about-subtitle {
  margin: 0.55rem 0 0;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  color: rgba(18, 18, 18, 0.82);
}

.about-copy p {
  margin: 0;
  font-size: clamp(1.02rem, 1.55vw, 1.18rem);
  line-height: 1.82;
  color: rgba(18, 18, 18, 0.82);
}

.about-copy strong {
  font-weight: 600;
  color: rgba(18, 18, 18, 0.98);
  letter-spacing: -0.01em;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: clamp(1.1rem, 2.5vw, 1.65rem);
  margin-top: 0;
}

.about-photo {
  width: 100%;
  height: 620px;
  object-fit: cover;
  border-radius: 1.3rem;
  border: 1px solid var(--line);
}

.photo-wrap {
  position: relative;
  margin: 0;
}

.photo-tooltip {
  position: absolute;
  left: 50%;
  bottom: 0.9rem;
  transform: translateX(-50%) translateY(8px);
  background: rgba(18, 18, 18, 0.82);
  color: #fff;
  border-radius: 999px;
  padding: 0.34rem 0.78rem;
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.25s ease;
}

.photo-wrap:hover .photo-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.about-stack {
  display: grid;
  gap: var(--stack-gap);
  align-content: start;
}

.micro-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: clamp(1rem, 2.4vw, 1.2rem) clamp(1.05rem, 2.6vw, 1.35rem);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.micro-card:hover {
  border-color: rgba(18, 18, 18, 0.22);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.micro-card strong {
  font-weight: 600;
  color: rgba(18, 18, 18, 0.95);
}

.timeline {
  margin-top: 2rem;
  display: grid;
  gap: 0.8rem;
}

.timeline-item {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.8rem 1rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.timeline-item:hover {
  border-color: rgba(76, 50, 255, 0.5);
  transform: translateX(6px);
}

.tilt-card {
  transition: transform 0.2s ease;
}

.exp-list {
  margin-top: 1.3rem;
  display: grid;
  gap: 0.9rem;
}

.exp-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.exp-card:hover {
  border-color: rgba(18, 18, 18, 0.22);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.exp-head h3 {
  margin: 0.2rem 0 0;
  font-size: 1.28rem;
}

.story-visuals {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
}

.story-main img,
.story-side img {
  width: 100%;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid var(--line);
  display: block;
}

.story-main img {
  height: 360px;
}

.story-side {
  display: grid;
  gap: 1rem;
}

.story-side img {
  height: 172px;
}

.about-bottom-grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--stack-gap);
}

.workplace-links {
  margin-top: 1.9rem;
}

.block-card .workplace-links {
  margin-top: 0.35rem;
  margin-bottom: 1rem;
}

.workplace-list {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.workplace-list a {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.36rem 0.78rem;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.workplace-list a:hover {
  background: rgba(76, 50, 255, 0.06);
  color: var(--ultravio);
  border-color: rgba(76, 50, 255, 0.45);
  transform: translateY(-1px);
}

.block-title {
  margin: 0 0 1rem;
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.mt16 {
  margin-top: 1rem;
}

/* One divider after workplace chips; dividers only *between* jobs (no grid gap vs border fight). */
.exp-rows {
  display: grid;
  gap: 0;
  margin: 0;
  padding-top: 1.55rem;
  border-top: 1px solid var(--line);
}

.exp-row {
  margin: 0;
  padding: 0 0 1.5rem;
  border-top: none;
}

.exp-row:not(:first-child) {
  border-top: 1px solid var(--line);
  padding-top: 1.35rem;
}

.exp-row:last-child {
  padding-bottom: 0;
}

.exp-row h4 {
  margin: 0.55rem 0 1rem;
  font-size: 1.7rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

body.about-size-b .exp-row h4 {
  font-size: 1.9rem;
}

.exp-row p {
  margin: 0;
  max-width: none;
  font-size: 1.1rem;
  line-height: 1.45;
  color: rgba(18, 18, 18, 0.84);
}

.exp-bullets {
  margin: 0;
  padding-left: 1.35rem;
  max-width: none;
}

.exp-bullets li {
  margin: 0 0 0.45rem;
  font-size: 1.04rem;
  line-height: 1.52;
  color: rgba(18, 18, 18, 0.86);
}

.exp-bullets strong {
  font-weight: 600;
  color: rgba(18, 18, 18, 0.95);
}

.exp-bullets li:last-child {
  margin-bottom: 0;
}

.exp-row p .eyebrow a,
.exp-row .eyebrow a,
.card a {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.exp-row .eyebrow a:hover,
.card a:hover {
  color: var(--ultravio);
  text-decoration-thickness: 2px;
}

.exp-row .eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
}

.info-grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--stack-gap);
}

.card,
.post-card,
.section-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: var(--card-padding);
  background: #fff;
}

.card p:not(.eyebrow) {
  line-height: 1.72;
}

.card strong {
  font-weight: 600;
  color: rgba(18, 18, 18, 0.95);
}

.card.block-card {
  padding: var(--card-padding-spacious);
}

.list-stack {
  margin-top: 0;
  display: grid;
  gap: var(--stack-gap);
}

.writing-stream {
  display: grid;
  gap: 1rem;
}

.writing-row {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1rem;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  padding: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.writing-row:hover {
  border-color: rgba(18, 18, 18, 0.24);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}

.writing-thumb-wrap {
  min-height: 200px;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #e8e8e8;
  align-self: stretch;
}

.writing-thumb {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  object-position: center;
}

.writing-body h2 {
  margin: 0.45rem 0 0;
}

.writing-body p {
  margin: 0.6rem 0 0;
  line-height: 1.72;
  color: rgba(18, 18, 18, 0.82);
}

.writing-actions {
  margin-top: 0.9rem;
}

.writing-link {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.writing-row:hover .writing-link {
  color: var(--ultravio);
  border-color: rgba(76, 50, 255, 0.45);
  background: rgba(76, 50, 255, 0.06);
}

.writing-article-header {
  margin-bottom: 0;
}

.writing-flow {
  margin-top: 0;
  display: grid;
  gap: var(--prose-stack-gap);
  width: 100%;
  max-width: var(--content-prose-max);
  margin-inline: auto;
}

.writing-flow > p,
.writing-flow > h3 {
  margin: 0;
}

.writing-flow > p {
  font-size: clamp(1.02rem, 1.55vw, 1.18rem);
  line-height: 1.82;
  color: rgba(18, 18, 18, 0.82);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.writing-paragraph {
  margin-top: 0.15rem;
}

.writing-highlight {
  font-weight: 600;
  color: rgba(18, 18, 18, 0.98);
  letter-spacing: -0.01em;
}

.writing-section-title {
  margin: 1.75rem 0 0.15rem;
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.writing-section-title:first-of-type {
  margin-top: 0.5rem;
}

.writing-list-item {
  margin: 0;
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.76;
}

.writing-list-item::before {
  content: "-";
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(18, 18, 18, 0.65);
}

.writing-ref-item {
  margin: 0;
  padding-left: 0.2rem;
  line-height: 1.72;
  font-size: 0.98rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ref-link {
  text-decoration: none;
  color: var(--ultravio);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.writing-flow a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ref-link sup {
  font-size: 0.72em;
  font-weight: 600;
}

.writing-figure {
  margin: 0.35rem 0 1.15rem;
  text-align: center;
  display: grid;
  justify-items: center;
}

.writing-flow-image {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: transparent;
}

.writing-figure figcaption {
  margin-top: 0.42rem;
  font-size: 0.8rem;
  color: rgba(18, 18, 18, 0.58);
  text-align: center;
  max-width: 72ch;
}

.folder-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.folder-gallery img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 0.6rem;
}

.folder-actions {
  margin-top: 0.8rem;
}

.folder-link {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

body[data-page="project"] main.main-pad {
  max-width: min(880px, 94vw);
}

body[data-page="project"] main.main-pad.project-main--wide {
  max-width: min(1040px, 96vw);
}

.project-main--wide .project-hero {
  height: min(72vh, 760px);
  max-height: 760px;
}

/* Single primary hero (e.g. Table Booking): tall frame, show full artwork (no tiny crop). */
.project-main--wide .project-hero.project-hero--emphasis {
  height: min(88vh, 1040px);
  max-height: 1040px;
  width: 100%;
  object-fit: contain;
  background: linear-gradient(180deg, #f4f4f2 0%, #ececea 100%);
}

.project-summary {
  margin-top: 0;
  padding: clamp(1rem, 2.2vw, 1.35rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: clamp(1rem, 2vw, 1.4rem);
}

#project-detail.project-detail--story > .service-block + .project-summary {
  padding-top: clamp(0.65rem, 1.5vw, 0.9rem);
}

.project-summary__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 2.25rem;
  align-items: baseline;
}

.project-summary__row {
  font-size: 0.9375rem;
  line-height: 1.5;
}

.project-summary__label {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(18, 18, 18, 0.42);
  font-weight: 500;
  margin-right: 0.35rem;
}

.project-summary__triad .project-summary__label {
  display: block;
  margin: 0 0 0.4rem;
}

.project-summary__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.62;
  color: rgba(18, 18, 18, 0.82);
  font-weight: 400;
}

.project-summary__deliverables .project-summary__label {
  display: block;
  margin-bottom: 0.35rem;
}

.project-summary__deliverables {
  text-align: left;
}

.project-summary__intro {
  margin: 0 0 0.15rem;
  max-width: 58rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(18, 18, 18, 0.84);
}

.project-summary__dl {
  padding: 0;
  margin: 0;
}

.project-summary__dl--subtle {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-width: 40rem;
}

.project-summary__dl--subtle .project-summary__dl-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  padding: 0;
  margin: 0;
}

.project-summary__dl--subtle dt {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.35;
  color: rgba(18, 18, 18, 0.48);
  letter-spacing: 0.01em;
  text-transform: none;
}

.project-summary__dl--subtle dd {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  text-align: left;
}

.project-summary__triad {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem 1.5rem;
}

.project-summary__cell .project-summary__text {
  margin: 0;
}

@media (max-width: 720px) {
  .project-summary__triad {
    grid-template-columns: 1fr;
  }
}

#project-detail.project-detail--story {
  display: flex;
  flex-direction: column;
  /* Single rhythm: flex gap only (avoid stacking with section + section margins). */
  gap: clamp(1.2rem, 2.4vw, 1.65rem);
}

#project-detail.project-detail--story > section + section {
  margin-top: 0;
}

#project-detail.project-detail--story > .service-block {
  margin-block: -0.15rem;
}

.project-detail__intro .page-title {
  max-width: 20ch;
}

.project-story {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 2.75rem);
}

/* Balanced blocks: narrow measure, centered (takeaway, ordered lists, etc.). */
.project-story__block--balanced > .eyebrow,
.project-story__block--balanced > .project-story__takeaway-label,
.project-story__block--balanced > .project-story__h2,
.project-story__block--balanced > .project-story__h3,
.project-story__block--balanced > .project-story__p,
.project-story__block--balanced > .project-points,
.project-story__block--balanced > .project-story-steps,
.project-story__block--balanced > .project-story__ol,
.project-story__block--balanced > .project-story__sub,
.project-story__block--balanced > .project-story__lesson-head {
  max-width: 42rem;
  margin-inline: auto;
}

.project-story__block--balanced > .project-figure {
  margin-inline: auto;
}

/* Default story blocks: same width and left edge as splitLead / Ideation (58rem). */
.project-story__block:not(.project-story__block--balanced) {
  max-width: 58rem;
  width: 100%;
  margin-inline: auto;
}

.project-story__block:not(.project-story__block--balanced) > .eyebrow,
.project-story__block:not(.project-story__block--balanced) > .project-story__takeaway-label,
.project-story__block:not(.project-story__block--balanced) > .project-story__h2,
.project-story__block:not(.project-story__block--balanced) > .project-story__h3,
.project-story__block:not(.project-story__block--balanced) > .project-story__p,
.project-story__block:not(.project-story__block--balanced) > .project-points,
.project-story__block:not(.project-story__block--balanced) > .project-story-steps,
.project-story__block:not(.project-story__block--balanced) > .project-story__ol,
.project-story__block:not(.project-story__block--balanced) > .project-story__sub,
.project-story__block:not(.project-story__block--balanced) > .project-story__lesson-head {
  max-width: none;
  margin-inline: 0;
}

.project-story__block:not(.project-story__block--balanced) > .project-figure {
  margin-inline: 0;
  max-width: none;
}

.project-story__block--balanced {
  margin-inline: auto;
  max-width: 44rem;
}

.project-story__block--takeaway-split.project-story__block--balanced {
  max-width: min(56rem, 100%);
}

.project-story__takeaway-split {
  --takeaway-gap: clamp(1.15rem, 2.8vw, 1.75rem);
  display: grid;
  grid-template-columns: minmax(11rem, 0.34fr) minmax(0, 1fr);
  gap: var(--takeaway-gap);
  column-gap: clamp(1.35rem, 3.2vw, 2.25rem);
  align-items: start;
  width: 100%;
}

.project-story__takeaway-accent {
  margin: 0;
  padding-top: 0.12rem;
  line-height: 0;
}

.project-story__takeaway-accent img {
  display: block;
  width: 100%;
  max-width: min(100%, 18rem);
  height: auto;
  object-fit: contain;
}

.project-story__takeaway-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--takeaway-gap, 1.35rem);
}

.project-story__takeaway-main .project-story__takeaway-label {
  margin: 0;
  text-align: left;
  width: auto;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(18, 18, 18, 0.42);
  font-weight: 500;
}

.project-story__takeaway-main .project-story__h2 {
  margin: 0;
  text-align: left;
}

.project-story__block--takeaway-split .project-story__sub {
  margin: 0;
  margin-inline: 0;
  max-width: none;
  text-align: left;
}

.project-story__block--takeaway-split .project-story__sub .project-story__h3 {
  margin: 0 0 0.4rem;
  text-align: left;
}

.project-story__block--takeaway-split .project-story__sub .project-story__p {
  margin: 0;
  line-height: 1.74;
  color: rgba(18, 18, 18, 0.84);
}

@media (max-width: 720px) {
  .project-story__takeaway-split {
    grid-template-columns: 1fr;
    gap: clamp(1rem, 2.5vw, 1.35rem);
  }

  .project-story__takeaway-accent img {
    max-width: min(100%, 15rem);
    margin-inline: 0;
  }
}

.project-story__block--balanced > .project-story__h2 {
  text-align: center;
  margin-inline: auto;
}

.project-story__block--balanced > .project-story__lesson-head {
  margin-inline: auto;
}

.project-story__block--balanced > .project-story__p,
.project-story__block--balanced > .project-story__ol,
.project-story__block--balanced > .project-points {
  margin-inline: auto;
  text-align: left;
}

.project-story__block--balanced > .project-story__lesson-head + .project-story__p,
.project-story__block--balanced > .project-story__lesson-head ~ .project-story__p {
  text-align: left;
}

.project-story__block--balanced:not(.project-story__block--takeaway-split) .project-story__sub {
  margin-inline: auto;
  max-width: 40rem;
  text-align: left;
}

.project-story__block--balanced:not(.project-story__block--takeaway-split) .project-story__sub .project-story__h3 {
  text-align: center;
}

.project-story__block--takeaway-split.project-story__block--balanced .project-story__takeaway-main .project-story__sub {
  margin-inline: 0;
  max-width: none;
  text-align: left;
}

.project-story__block--takeaway-split.project-story__block--balanced .project-story__takeaway-main .project-story__sub .project-story__h3 {
  text-align: left;
}

.project-story__client-pro {
  padding: clamp(2.25rem, 4.5vw, 3.5rem) 0;
  margin-inline: auto;
  max-width: 56rem;
  border-top: 1px solid rgba(18, 18, 18, 0.06);
  border-bottom: 1px solid rgba(18, 18, 18, 0.06);
}

.project-story__client-eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(18, 18, 18, 0.42);
  font-weight: 500;
}

.project-story__client-display {
  margin: 0 0 0.4rem;
  font-size: clamp(1.65rem, 3.8vw, 2.65rem);
  font-weight: 600;
  letter-spacing: -0.038em;
  line-height: 1.05;
  color: #121212;
}

.project-story__client-tagline {
  margin: 0 0 1.35rem;
  font-size: 1.02rem;
  line-height: 1.45;
  color: rgba(18, 18, 18, 0.52);
  font-weight: 400;
}

.project-story__client-lede {
  margin: 0 0 1.5rem;
  max-width: 42rem;
  font-size: 1.035rem;
  line-height: 1.74;
  color: rgba(18, 18, 18, 0.84);
  font-weight: 400;
}

.project-story__client-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.project-story__client-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(18, 18, 18, 0.14);
  font-size: 0.8125rem;
  font-weight: 500;
  color: #121212;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.project-story__client-pill:hover {
  background: rgba(18, 18, 18, 0.04);
  border-color: rgba(18, 18, 18, 0.22);
}

.project-story__client-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 2rem;
  padding-top: 1.85rem;
  border-top: 1px solid rgba(18, 18, 18, 0.08);
}

.project-story__metric-label {
  margin: 0 0 0.4rem;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(18, 18, 18, 0.42);
  font-weight: 500;
}

.project-story__metric-body {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.62;
  color: rgba(18, 18, 18, 0.82);
  font-weight: 400;
}

.project-story__split {
  display: grid;
  grid-template-columns: minmax(11rem, 0.38fr) minmax(0, 1fr);
  column-gap: clamp(1.35rem, 3.5vw, 2.15rem);
  row-gap: clamp(1rem, 2vw, 1.35rem);
  align-items: start;
  max-width: 56rem;
  margin-inline: auto;
}

/* Wide diagrams (Ideation): give the figure column more room; image fills inner width. */
.project-story__split--figure-wide {
  grid-template-columns: minmax(12.5rem, 0.5fr) minmax(0, 1fr);
  max-width: 58rem;
}

/* Image above copy: full-width figure, readable diagrams (splitLead + splitLayout: stack). */
.project-story__split--stack {
  grid-template-columns: 1fr;
  max-width: 58rem;
  row-gap: clamp(1.15rem, 2.5vw, 1.65rem);
}

.project-story__split--stack .project-story__split-media {
  width: 100%;
  max-width: none;
}

.project-story__split--stack .project-story__split-frame--diagram-wide img {
  max-height: min(92vh, 1100px);
}

.project-story__split--stack .project-story__split-cap {
  max-width: min(42rem, 100%);
}

.project-story__split-media {
  margin: 0;
  text-align: center;
  align-self: start;
}

.project-story__split-frame {
  border-radius: var(--figure-radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e8e8e5;
  line-height: 0;
}

.project-story__split-frame img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: inherit;
}

.project-story__split-frame--diagram {
  aspect-ratio: auto;
  padding: clamp(1rem, 2.2vw, 1.35rem);
  background: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-story__split-frame--diagram img {
  width: 100%;
  max-width: 15.5rem;
  aspect-ratio: auto;
  object-fit: contain;
}

.project-story__split-frame--diagram-wide {
  padding: clamp(1rem, 2.2vw, 1.35rem);
}

.project-story__split-frame--diagram-wide img {
  max-width: none;
  width: 100%;
}

/* Desk booking split image: keep full content visible (no crop). */
#project-detail[data-project-slug="booking-system"].project-detail--story .project-story__split-frame--diagram-wide {
  width: 100%;
  height: auto;
  padding: clamp(1rem, 2.2vw, 1.35rem);
  background: #efe9e5;
}

#project-detail[data-project-slug="booking-system"].project-detail--story .project-story__split-frame--diagram-wide img {
  width: min(100%, 860px);
  max-width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center top;
  margin-inline: auto;
  display: block;
}

.project-story__split-copy {
  min-width: 0;
  text-align: left;
}

.project-story__split-copy .project-story__split-title {
  margin-bottom: clamp(0.65rem, 1.5vw, 0.85rem);
}

.project-story__split-copy .project-story__split-p {
  margin-bottom: clamp(0.65rem, 1.4vw, 0.85rem);
}

.project-story__split-copy .project-story__split-p:last-child {
  margin-bottom: 0;
}

.project-story__split-cap {
  margin: 0.55rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(18, 18, 18, 0.48);
  text-align: center;
  max-width: 16.5rem;
  margin-left: auto;
  margin-right: auto;
}

.project-story__split-title {
  margin: 0 0 0.85rem;
}

.project-story__split-p {
  margin: 0 0 0.85rem;
  font-size: 1.01rem;
  line-height: 1.72;
  color: rgba(18, 18, 18, 0.84);
}

.project-story__split-p:last-child {
  margin-bottom: 0;
}

.project-nav {
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
  padding-top: clamp(1.75rem, 3vw, 2.25rem);
  border-top: 1px solid var(--line);
}

.project-nav__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem 2rem;
  align-items: start;
}

.project-nav__cell {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  max-width: 28ch;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s ease;
}

.project-nav__cell:hover {
  opacity: 0.65;
}

.project-nav__cell--next {
  margin-left: auto;
  text-align: right;
  align-items: flex-end;
}

.project-nav__label {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(18, 18, 18, 0.45);
  font-weight: 500;
}

.project-nav__name {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.project-nav__spacer {
  display: block;
  pointer-events: none;
}

@media (max-width: 520px) {
  .project-nav__grid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .project-nav__cell--next {
    margin-left: 0;
    text-align: left;
    align-items: flex-start;
  }
}

.project-story__takeaway-label {
  margin: 0 0 0.4rem;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(18, 18, 18, 0.42);
  font-weight: 500;
  text-align: center;
  width: 100%;
}

.project-story__lesson-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1.15rem;
  margin: 0 auto 0.85rem;
  max-width: 100%;
}

.project-story__lesson-head .project-story__h2 {
  margin: 0;
  flex: 1 1 12rem;
  min-width: min(100%, 16rem);
  text-align: center;
}

.project-story__lesson-accent {
  flex: 0 0 auto;
  width: clamp(8rem, 18vw, 11.5rem);
  height: clamp(8rem, 18vw, 11.5rem);
  overflow: hidden;
  background: transparent;
  border: none;
  border-radius: 0;
}

.project-story__lesson-accent img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 720px) {
  .project-story__client-metrics {
    grid-template-columns: 1fr;
  }

  .project-story__split {
    grid-template-columns: 1fr;
  }
}

.project-story__h2 {
  margin: 0;
}

.project-story__h3 {
  margin: 0 0 0.35rem;
}

.project-story__p {
  margin: 0.65rem 0 0;
  line-height: 1.75;
  color: rgba(18, 18, 18, 0.84);
}

.project-story__p:first-of-type {
  margin-top: 0.45rem;
}

.project-story__ol {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  line-height: 1.65;
  color: rgba(18, 18, 18, 0.84);
}

.project-story__ol li {
  margin: 0 0 0.4rem;
}

.project-story__block--balanced > .project-story-timeline {
  max-width: min(48rem, 100%);
  margin-inline: auto;
}

.project-story__block:not(.project-story__block--balanced) > .project-story-timeline {
  max-width: min(58rem, 100%);
  margin-inline: 0;
}

.project-story-timeline {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
}

.project-story-timeline__step {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  column-gap: 0.95rem;
  position: relative;
  padding-bottom: 1.4rem;
}

.project-story-timeline__step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0.98rem;
  top: 2.15rem;
  bottom: 0.15rem;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.16), rgba(18, 18, 18, 0.05));
}

.project-story-timeline__num {
  justify-self: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: #121212;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.12rem;
  z-index: 1;
}

.project-story-timeline__body {
  min-width: 0;
}

.project-story-timeline__title {
  margin: 0;
  font-size: var(--heading-3-size);
  font-weight: var(--heading-3-weight);
  line-height: var(--heading-3-leading);
  letter-spacing: var(--heading-3-tracking);
  color: var(--ink);
}

.project-story-timeline__body .project-story-step-bullets {
  margin-top: 0.5rem;
}

.project-story-timeline__body .project-story__note {
  margin-top: 0.55rem;
}

.project-story__icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 0 0.15rem;
  margin-inline: 0;
  max-width: 14rem;
}

.project-story__icons-img {
  width: min(11.5rem, 100%);
  height: auto;
  display: block;
}

.project-story__icons-caption {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(18, 18, 18, 0.48);
  max-width: 30ch;
  text-align: center;
}

.project-story-steps {
  margin: 1rem 0 0;
  padding-left: 0;
  list-style: none;
  counter-reset: step;
}

.project-story-steps__item {
  counter-increment: step;
  margin: 0 0 1.35rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.project-story-steps__item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

.project-story-steps__title {
  margin: 0;
  font-size: var(--heading-3-size);
  font-weight: var(--heading-3-weight);
  line-height: var(--heading-3-leading);
  letter-spacing: var(--heading-3-tracking);
  color: var(--ink);
}

.project-story-step-bullets {
  margin: 0.55rem 0 0;
  padding-left: 1.1rem;
  line-height: 1.55;
  color: rgba(18, 18, 18, 0.82);
}

.project-story-step-bullets li {
  margin: 0 0 0.35rem;
}

.project-story__note {
  margin: 0.65rem 0 0;
  font-size: 0.92rem;
  line-height: 1.62;
  color: rgba(18, 18, 18, 0.78);
}

.project-story__note-label {
  font-weight: 600;
  font-style: italic;
  color: rgba(18, 18, 18, 0.55);
}

.project-story__sub {
  margin-top: 1rem;
}

.project-story__sub:first-of-type {
  margin-top: 1.2rem;
}

.project-story__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.1rem;
  margin: 0.5rem 0 0;
}

.project-story__gallery--stacked {
  grid-template-columns: 1fr;
  gap: clamp(1.85rem, 3.5vw, 2.65rem);
  margin-top: 0.65rem;
}

.project-story__gallery--dense.project-story__gallery--stacked {
  gap: clamp(1.25rem, 2.4vw, 1.75rem);
}

/* Match page canvas so artwork isn’t boxed in a different gray, visual reads as one field. */
.project-story__gallery--dense .project-figure--feature .project-figure__frame {
  background: var(--mist);
  border-color: transparent;
  max-width: 100%;
  /* Force a predictable viewport frame so tall visuals can cover it edge-to-edge. */
  height: min(92vh, 980px);
}

.project-story__gallery--dense .project-figure--feature .project-figure__frame img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center top;
}

.project-story__gallery--grid {
  align-items: start;
}

.project-story__gallery--compare .project-figure {
  min-width: 0;
}

.project-story__gallery--compare .project-figure__frame {
  max-width: 100%;
}

.project-story__gallery--compare .project-figure__frame img {
  max-height: min(72vh, 760px);
  object-fit: contain;
}

.project-gallery {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 3vw, 2.35rem);
  margin-top: 0;
}

.project-figure {
  margin: 0;
}

.project-figure__frame {
  border-radius: var(--figure-radius);
  border: 1px solid var(--line);
  background: #f0f0f0;
  overflow: hidden;
  line-height: 0;
}

.project-figure__frame img {
  width: 100%;
  height: auto;
  max-height: min(78vh, 640px);
  object-fit: contain;
  display: block;
  border-radius: inherit;
}

.project-figure--feature {
  width: 100%;
  margin-inline: auto;
  text-align: center;
}

.project-figure--feature .project-figure__frame {
  margin-inline: auto;
  max-width: min(960px, 100%);
  background: #e8e8e6;
}

#project-detail.project-detail--story .project-figure--feature .project-figure__frame {
  max-width: 100%;
}

.project-figure--feature .project-figure__frame img {
  width: 100%;
  max-width: 100%;
  max-height: min(90vh, 900px);
  height: auto;
  object-fit: contain;
  margin-inline: auto;
}

#project-detail.project-detail--story .project-figure--feature .project-figure__frame img {
  max-height: min(92vh, 1100px);
}

/* Desk booking feature image: keep full content visible (no crop). */
#project-detail[data-project-slug="booking-system"].project-detail--story .project-figure--feature .project-figure__frame {
  width: 100%;
  max-width: 100%;
  height: auto;
  background: #efe9e5;
}

#project-detail[data-project-slug="booking-system"].project-detail--story .project-figure--feature .project-figure__frame img {
  width: min(100%, 860px);
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center top;
  margin-inline: auto;
  display: block;
}

/* Desk booking sequence: stitch 8 panels into one continuous strip. */
#project-detail[data-project-slug="booking-system"].project-detail--story .project-story__gallery--stacked {
  gap: 0;
}

#project-detail[data-project-slug="booking-system"].project-detail--story .project-story__gallery--stacked .project-figure {
  margin: 0;
}

#project-detail[data-project-slug="booking-system"].project-detail--story .project-story__gallery--stacked .project-figure__frame {
  border: 0;
  border-radius: 0;
  background: transparent;
}

#project-detail[data-project-slug="booking-system"].project-detail--story .project-story__gallery--stacked .project-figure__frame img {
  width: 100%;
  height: auto;
  max-height: none;
  border-radius: 0;
  object-fit: contain;
  object-position: center top;
}

#project-detail[data-project-slug="booking-system"].project-detail--story .project-story__gallery--stacked .project-figure__caption {
  display: none;
}

.project-figure--feature .project-figure__caption {
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}

/* Wide diagrams (e.g. timelines): avoid clipping, show full canvas */
.project-figure--diagram {
  width: 100%;
  max-width: min(1040px, 100%);
  margin-inline: auto;
  text-align: center;
}

.project-figure--diagram .project-figure__frame {
  overflow: hidden;
  margin-inline: auto;
  max-width: 100%;
  background: #fff;
  border-color: rgba(18, 18, 18, 0.1);
  border-radius: var(--figure-radius);
}

.project-figure--diagram .project-figure__frame img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(92vh, 1600px);
  object-fit: contain;
  object-position: center top;
  margin-inline: auto;
  display: block;
  border-radius: var(--figure-radius);
}

.project-figure--diagram .project-figure__caption {
  max-width: 42rem;
  margin-inline: auto;
  margin-top: 0.65rem;
  text-align: center;
}

.project-figure--thumb .project-figure__frame {
  background: transparent;
  border: 0;
  max-width: 8rem;
  margin-inline: auto;
}

.project-figure--thumb .project-figure__frame img {
  max-height: 5rem;
  object-fit: contain;
}

.project-figure--tile .project-figure__frame img {
  max-height: min(52vh, 420px);
}

.project-figure__caption {
  margin: 0.6rem auto 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(18, 18, 18, 0.55);
  text-align: center;
  max-width: 44rem;
}

.project-hero {
  width: 100%;
  border-radius: var(--figure-radius);
  height: min(620px, 58vw);
  object-fit: cover;
  margin-top: 1.4rem;
}

/* Desk booking hero: keep full content visible (no crop). */
#project-detail[data-project-slug="booking-system"] .project-hero {
  width: min(100%, 860px);
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center top;
  margin-inline: auto;
}

.project-hero.writing-hero {
  margin-top: 1.4rem;
  margin-bottom: 0.35rem;
}

.hero-caption {
  margin: 1rem auto 0;
  max-width: 72ch;
  font-size: 0.88rem;
  color: rgba(18, 18, 18, 0.56);
  text-align: center;
  line-height: 1.55;
}

.writing-lead-quote {
  margin: 2.75rem 0 0;
  margin-inline: auto;
  max-width: 74ch;
  padding: 0.15rem 0 0.35rem 1.5rem;
  border: 0;
  border-left: 3px solid rgba(18, 18, 18, 0.22);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
  quotes: none;
}

.writing-lead-quote__text {
  margin: 0;
  font-size: clamp(1.34rem, 2.15vw, 1.72rem);
  line-height: 1.32;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #1d1d1f;
}

.writing-lead-quote__cite {
  display: block;
  margin-top: 1.45rem;
  font-size: 0.8125rem;
  font-style: normal;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(18, 18, 18, 0.45);
  font-weight: 400;
}

.writing-lead-quote__cite::before {
  content: "\2014\00a0";
  color: rgba(18, 18, 18, 0.35);
}

.lanes-shell {
  border-radius: 1.8rem;
  background: #101113;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.2rem 1.2rem 1.4rem;
  margin-bottom: 2.2rem;
}

.lanes-list {
  display: grid;
  gap: 0.45rem;
}

.lane-btn {
  border: 0;
  border-radius: 999px;
  background: var(--lane, #444);
  color: #fff;
  text-align: left;
  padding: 0.72rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.lane-btn.is-active {
  transform: translateX(8px);
  filter: brightness(1.08);
}

.lane-panel {
  margin-top: 0.9rem;
  border-radius: 1rem;
  background: #1b1d21;
  color: rgba(255, 255, 255, 0.88);
  padding: 0.95rem 1rem;
}

.lane-panel p {
  margin: 0;
  line-height: 1.5;
}

.meta-grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--stack-gap);
}

.narrative-grid,
.gallery-grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--stack-gap);
}

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

.gallery-item {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: #e7e7e7;
}

.section-stack {
  margin-top: 0;
  display: grid;
  gap: var(--stack-gap);
}

.section-card h2 {
  margin: 0;
}

.section-card p {
  margin: 0.6rem 0 0;
  line-height: 1.72;
  color: rgba(18, 18, 18, 0.82);
}

.project-points {
  margin: 0.7rem 0 0;
  padding-left: 1.05rem;
}

.project-points li {
  margin: 0 0 0.36rem;
  color: rgba(18, 18, 18, 0.84);
  line-height: 1.4;
}

.project-points li:last-child {
  margin-bottom: 0;
}

.compare-shell {
  margin-top: 0;
}

.compare-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.compare-controls {
  display: inline-flex;
  gap: 0.4rem;
}

.compare-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.72rem;
  font-size: 0.78rem;
  cursor: pointer;
}

.compare-btn.is-active {
  background: #121212;
  color: #fff;
  border-color: #121212;
}

.longform-stack {
  margin-top: 0;
  display: grid;
  gap: var(--stack-gap);
}

.longform-item {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 1.35rem);
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  padding: clamp(0.85rem, 2vw, 1.1rem);
}

.longform-media {
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid rgba(18, 18, 18, 0.08);
  background: #f2f2f2;
  line-height: 0;
}

.longform-media img {
  width: 100%;
  height: auto;
  max-height: min(420px, 55vh);
  object-fit: contain;
  display: block;
}

.longform-copy p {
  margin: 0.5rem 0 0;
  color: rgba(18, 18, 18, 0.82);
}

.related-links {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.related-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.related-links a:hover {
  transform: translateY(-1px);
  border-color: rgba(76, 50, 255, 0.45);
  background: rgba(76, 50, 255, 0.06);
  color: var(--ultravio);
}

.writing-related {
  margin-top: 2.75rem;
  width: 100%;
  max-width: 74ch;
  margin-inline: auto;
}

.related-posts-card {
  padding: 1.35rem 1.25rem 1.3rem;
  border-color: rgba(18, 18, 18, 0.16);
  box-shadow: 0 10px 28px rgba(18, 18, 18, 0.05);
}

.related-posts-label {
  margin: 0 0 0.15rem;
  letter-spacing: 0.22em;
  font-size: 0.68rem;
  color: rgba(18, 18, 18, 0.48);
}

.related-posts-card .related-links {
  margin-top: 1.05rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 0.85rem;
}

.related-posts-card .related-post-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.4rem;
  width: 100%;
  min-height: 3.85rem;
  padding: 1rem 1.1rem;
  border-radius: 0.9rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: rgba(15, 23, 42, 0.88);
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.06);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.related-post-link__title {
  font-size: 0.93rem;
  font-weight: 600;
}

.related-post-link__meta {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.48);
}

.related-post-link:hover {
  color: rgba(15, 23, 42, 0.96);
  border-color: rgba(15, 23, 42, 0.14);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 20px rgba(15, 23, 42, 0.08), 0 24px 48px -12px rgba(15, 23, 42, 0.14);
  transform: translateY(-1px);
}

.related-post-link:hover .related-post-link__meta {
  color: rgba(15, 23, 42, 0.55);
}

.related-post-link:focus-visible {
  outline: 2px solid rgba(15, 23, 42, 0.35);
  outline-offset: 2px;
}

.scroll-top-btn {
  position: fixed;
  right: clamp(0.85rem, 3vw, 1.65rem);
  bottom: clamp(0.85rem, 3vw, 1.65rem);
  z-index: 35;
  width: 2.85rem;
  height: 2.85rem;
  padding: 0;
  margin: 0;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(246, 247, 242, 0.94);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.scroll-top-btn svg {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: -0.1rem;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  border-color: rgba(18, 18, 18, 0.22);
  background: #fff;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.09);
}

.scroll-top-btn:focus-visible {
  outline: 2px solid rgba(76, 50, 255, 0.45);
  outline-offset: 3px;
}

body[data-page="404"] {
  min-height: 100vh;
}

body[data-page="404"] .not-found-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

body[data-page="404"] .not-found-card {
  width: min(100%, 44rem);
  text-align: center;
}

body[data-page="404"] .not-found-copy {
  margin-top: 1.1rem;
  font-size: 1.02rem;
  color: rgba(18, 18, 18, 0.78);
}

body[data-page="404"] .not-found-home-link {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.42rem 0.82rem;
  border-radius: 0.72rem;
  border: 1px solid rgba(18, 18, 18, 0.18);
  background: #fff;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

body[data-page="404"] .not-found-home-link:hover {
  background: #f6f7f2;
  border-color: rgba(18, 18, 18, 0.32);
  box-shadow: 0 6px 14px rgba(18, 18, 18, 0.08);
  transform: translateY(-1px);
}

body[data-page="404"] .not-found-home-link:focus-visible {
  outline: 2px solid rgba(18, 18, 18, 0.35);
  outline-offset: 2px;
}

html[data-theme="dark"] body {
  background: var(--mist);
  color: var(--ink);
}

html[data-theme="dark"] {
  /* Balanced cool-neutral dark: subtle blue-gray (not flat black, not heavy blue) */
  --mist: #151922;
  --ink: #e6edf3;
  --line: rgba(201, 209, 217, 0.16);
  --mist-elevated: #1c222b;
  --mist-hover: #252b36;
}

html[data-theme="dark"] .site-header {
  /* One step up from page bg (--mist), same family as cards — reads as a top bar */
  background: var(--mist-elevated);
}

html[data-theme="dark"] .brand-mark {
  filter: brightness(0) invert(1);
}

html[data-theme="dark"] .brand:hover,
html[data-theme="dark"] .nav a:hover,
html[data-theme="dark"] .nav a.is-active {
  color: rgba(255, 255, 255, 0.98);
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] p,
html[data-theme="dark"] li,
html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .hero-locale__city,
html[data-theme="dark"] .project-card h2,
html[data-theme="dark"] .project-card p,
html[data-theme="dark"] .writing-body h2,
html[data-theme="dark"] .writing-body p,
html[data-theme="dark"] .services-tubik-block__title,
html[data-theme="dark"] .services-tubik-block__lede,
html[data-theme="dark"] .services-tubik-lines li,
html[data-theme="dark"] .footer-mail__text {
  color: var(--ink);
}

html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .home-filter-chip,
html[data-theme="dark"] .copy-btn,
html[data-theme="dark"] .card,
html[data-theme="dark"] .section-card,
html[data-theme="dark"] .micro-card,
html[data-theme="dark"] .related-post-link,
html[data-theme="dark"] .not-found-home-link {
  background: var(--mist-elevated);
  color: var(--ink);
  border-color: rgba(201, 209, 217, 0.18);
}

/* Status chip: must read above header bar (--mist-elevated), not blend in */
html[data-theme="dark"] .time-activity {
  background: rgba(201, 209, 217, 0.14);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(201, 209, 217, 0.22);
}

html[data-theme="dark"] .home-filter-chip.is-active {
  background: #e6edf3;
  color: #151922;
  border-color: #c9d1d9;
}

/* Home project thumbnails: same as page bg so no “frame” around images */
html[data-theme="dark"] .project-media,
html[data-theme="dark"] .projects-grid .project-media,
html[data-theme="dark"] .services-tubik-art {
  background: transparent;
}

html[data-theme="dark"] .footer-copy,
html[data-theme="dark"] .footer-tagline,
html[data-theme="dark"] .project-card p,
html[data-theme="dark"] .hero-lede,
html[data-theme="dark"] .related-post-link__meta {
  color: rgba(201, 209, 217, 0.82);
}

html[data-theme="dark"] .site-footer {
  border-top-color: rgba(201, 209, 217, 0.14);
}

html[data-theme="dark"] strong,
html[data-theme="dark"] .about-copy strong,
html[data-theme="dark"] .micro-card strong,
html[data-theme="dark"] .card strong,
html[data-theme="dark"] .exp-bullets strong,
html[data-theme="dark"] .writing-highlight {
  color: #f0f3f6;
}

html[data-theme="dark"] .time-activity:hover {
  background: rgba(201, 209, 217, 0.22);
  box-shadow: inset 0 0 0 1px rgba(201, 209, 217, 0.3);
}

html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .home-filter-chip:hover,
html[data-theme="dark"] .copy-btn:hover,
html[data-theme="dark"] .not-found-home-link:hover {
  background: var(--mist-hover);
  border-color: rgba(201, 209, 217, 0.26);
}

/* Related posts: light-mode :hover / :hover .meta rules win on specificity without this */
html[data-theme="dark"] .related-posts-label {
  color: rgba(201, 209, 217, 0.7);
}

html[data-theme="dark"] .related-posts-card {
  border-color: rgba(201, 209, 217, 0.16);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .related-post-link:hover {
  background: var(--mist-hover);
  border-color: rgba(201, 209, 217, 0.26);
  color: var(--ink);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] .related-post-link:hover .related-post-link__meta {
  color: rgba(201, 209, 217, 0.82);
}

html[data-theme="dark"] .related-post-link:focus-visible {
  outline-color: rgba(201, 209, 217, 0.42);
}

html[data-theme="dark"] .project-nav__label {
  color: rgba(201, 209, 217, 0.68);
}

html[data-theme="dark"] .project-nav__name {
  color: var(--ink);
}

html[data-theme="dark"] .project-figure__caption,
html[data-theme="dark"] .project-story__icons-caption,
html[data-theme="dark"] .project-story__split-cap,
html[data-theme="dark"] .hero-caption {
  color: rgba(201, 209, 217, 0.76);
}

html[data-theme="dark"] .service-pill {
  background: var(--mist-elevated);
  border-color: rgba(201, 209, 217, 0.22);
  color: var(--ink);
}

html[data-theme="dark"] .project-summary__label {
  color: rgba(201, 209, 217, 0.62);
}

html[data-theme="dark"] .project-summary__text,
html[data-theme="dark"] .project-summary__intro {
  color: rgba(201, 209, 217, 0.9);
}

html[data-theme="dark"] .project-summary__dl--subtle dt {
  color: rgba(201, 209, 217, 0.68);
}

html[data-theme="dark"] .project-story__p,
html[data-theme="dark"] .project-story__ol,
html[data-theme="dark"] .project-points li,
html[data-theme="dark"] .project-story__split-p,
html[data-theme="dark"] .project-story-step-bullets {
  color: rgba(201, 209, 217, 0.88);
}

/* Takeaway + subsection body: base .project-story__block--takeaway-split … __p beats html[data-theme="dark"] p */
html[data-theme="dark"] .project-story__block--takeaway-split .project-story__sub .project-story__p,
html[data-theme="dark"] .project-story__block--takeaway-split .project-story__takeaway-main .project-story__sub .project-story__p,
html[data-theme="dark"] .project-story__takeaway-main .project-story__sub .project-story__p {
  color: rgba(201, 209, 217, 0.88);
}

html[data-theme="dark"] .project-story__takeaway-label,
html[data-theme="dark"] .project-story__takeaway-main .project-story__takeaway-label,
html[data-theme="dark"] .project-story__lesson-head .project-story__takeaway-label {
  color: rgba(201, 209, 217, 0.58);
}

html[data-theme="dark"] .eyebrow.eyebrow--project.project-tone--default {
  color: rgba(201, 209, 217, 0.75);
}

html[data-theme="dark"] .project-story__note,
html[data-theme="dark"] .project-story__note-label {
  color: rgba(201, 209, 217, 0.78);
}

html[data-theme="dark"] .project-story__client-eyebrow,
html[data-theme="dark"] .project-story__metric-label {
  color: rgba(201, 209, 217, 0.58);
}

html[data-theme="dark"] .project-story__client-display {
  color: var(--ink);
}

html[data-theme="dark"] .project-story__client-tagline,
html[data-theme="dark"] .project-story__client-lede,
html[data-theme="dark"] .project-story__metric-body {
  color: rgba(201, 209, 217, 0.86);
}

html[data-theme="dark"] .project-story__client-pro {
  border-top-color: rgba(201, 209, 217, 0.12);
  border-bottom-color: rgba(201, 209, 217, 0.12);
}

html[data-theme="dark"] .project-story__client-pill {
  background: var(--mist-elevated);
  border-color: rgba(201, 209, 217, 0.22);
  color: var(--ink);
}

html[data-theme="dark"] .project-story__client-pill:hover {
  background: var(--mist-hover);
  border-color: rgba(201, 209, 217, 0.3);
}

html[data-theme="dark"] .project-story__client-metrics {
  border-top-color: rgba(201, 209, 217, 0.12);
}

html[data-theme="dark"] .project-story-timeline__step:not(:last-child)::after {
  background: linear-gradient(180deg, rgba(201, 209, 217, 0.2), rgba(201, 209, 217, 0.06));
}

html[data-theme="dark"] .project-story-timeline__num {
  background: rgba(201, 209, 217, 0.2);
  color: var(--ink);
}

html[data-theme="dark"] .compare-btn {
  background: var(--mist-elevated);
  color: var(--ink);
  border-color: rgba(201, 209, 217, 0.22);
}

html[data-theme="dark"] .compare-btn.is-active {
  background: rgba(230, 237, 243, 0.92);
  color: #151922;
  border-color: rgba(201, 209, 217, 0.4);
}

html[data-theme="dark"] .longform-item {
  background: var(--mist-elevated);
  border-color: rgba(201, 209, 217, 0.16);
}

html[data-theme="dark"] .longform-copy p {
  color: rgba(201, 209, 217, 0.86);
}

html[data-theme="dark"] .longform-media {
  background: var(--mist-hover);
  border-color: rgba(201, 209, 217, 0.12);
}

html[data-theme="dark"] #project-detail .section-card p {
  color: rgba(201, 209, 217, 0.86);
}

html[data-theme="dark"] .writing-row {
  background: var(--mist-elevated);
  border-color: rgba(201, 209, 217, 0.14);
  box-shadow: none;
}

html[data-theme="dark"] .writing-row:hover {
  background: var(--mist-hover);
  border-color: rgba(201, 209, 217, 0.22);
  box-shadow: 0 12px 28px rgba(1, 4, 9, 0.35);
}

html[data-theme="dark"] .writing-body p,
html[data-theme="dark"] .writing-flow > p,
html[data-theme="dark"] .writing-figure figcaption,
html[data-theme="dark"] .writing-list-item::before {
  color: rgba(201, 209, 217, 0.88);
}

html[data-theme="dark"] .writing-link {
  border-color: rgba(201, 209, 217, 0.2);
  color: var(--ink);
  background: rgba(201, 209, 217, 0.06);
}

html[data-theme="dark"] .writing-row:hover .writing-link {
  color: #f0f3f6;
  border-color: rgba(201, 209, 217, 0.35);
  background: rgba(201, 209, 217, 0.1);
}

html[data-theme="dark"] .project-chip--app {
  background: rgba(45, 208, 197, 0.2);
  color: #9cf1eb;
  border-color: rgba(102, 231, 222, 0.42);
}

html[data-theme="dark"] .project-chip--data {
  background: rgba(110, 140, 255, 0.2);
  color: #cfdbff;
  border-color: rgba(152, 176, 255, 0.44);
}

html[data-theme="dark"] .project-chip--motion {
  background: rgba(255, 138, 98, 0.2);
  color: #ffd7ca;
  border-color: rgba(255, 171, 142, 0.42);
}

html[data-theme="dark"] .project-chip--illustration {
  background: rgba(212, 122, 225, 0.2);
  color: #f4dbff;
  border-color: rgba(224, 159, 235, 0.42);
}

html[data-theme="dark"] .project-chip--ux {
  background: rgba(132, 116, 255, 0.2);
  color: #e0d9ff;
  border-color: rgba(158, 145, 255, 0.42);
}

html[data-theme="dark"] .project-chip--default {
  background: rgba(201, 209, 217, 0.1);
  color: rgba(230, 237, 243, 0.92);
  border-color: rgba(201, 209, 217, 0.22);
}

html[data-theme="dark"] .footer-mail__icon {
  color: rgba(230, 237, 243, 0.9);
}

html[data-theme="dark"] .footer-icon-link {
  background: rgba(230, 237, 243, 0.78);
  border-color: rgba(201, 209, 217, 0.28);
  color: #151922;
}

html[data-theme="dark"] .footer-icon-link img {
  opacity: 1;
  filter: none;
}

html[data-theme="dark"] .footer-icon-link:hover {
  background: rgba(230, 237, 243, 0.95);
  border-color: rgba(201, 209, 217, 0.45);
  color: #151922;
}

html[data-theme="dark"] .scroll-top-btn {
  background: var(--mist-elevated);
  color: var(--ink);
  border-color: rgba(201, 209, 217, 0.22);
}

html[data-theme="dark"] .scroll-top-btn:hover {
  background: var(--mist-hover);
  border-color: rgba(201, 209, 217, 0.32);
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 3.4rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem 2.5rem;
  padding: 2rem 0 2.5rem;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.footer-contact__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

.footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(18, 18, 18, 0.78);
  cursor: default;
  user-select: text;
}

.footer-mail__icon {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  color: rgba(18, 18, 18, 0.45);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: rgba(18, 18, 18, 0.55);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.footer-icon-link:hover {
  color: var(--ultravio);
  border-color: rgba(76, 50, 255, 0.35);
  background: rgba(76, 50, 255, 0.06);
  transform: translateY(-1px);
}

.footer-icon-link:focus-visible {
  outline: 2px solid rgba(76, 50, 255, 0.45);
  outline-offset: 2px;
}

.footer-icon-link svg {
  width: 1.05rem;
  height: 1.05rem;
}

.footer-icon-link img {
  width: 1.12rem;
  height: 1.12rem;
  object-fit: contain;
  display: block;
}

.copy-btn {
  margin: 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(18, 18, 18, 0.78);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.copy-btn:hover {
  transform: translateY(-1px);
  background: #f2f2f2;
  border-color: rgba(18, 18, 18, 0.2);
}

.copy-btn:focus-visible {
  outline: 2px solid rgba(76, 50, 255, 0.45);
  outline-offset: 2px;
}

.copy-btn--copied {
  color: var(--ultravio);
  background: rgba(76, 50, 255, 0.1);
  border-color: rgba(76, 50, 255, 0.38);
}

.copy-btn--copied:hover {
  background: rgba(76, 50, 255, 0.14);
  border-color: rgba(76, 50, 255, 0.45);
}

.footer-aside {
  text-align: right;
  max-width: 22rem;
}

.footer-tagline {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  line-height: 1.5;
  font-weight: 500;
  color: rgba(18, 18, 18, 0.55);
}

.footer-copy {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(18, 18, 18, 0.42);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@keyframes colon-blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0.35;
  }
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 0.65rem 0;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: var(--stack-gap);
  }

  .projects-grid .project-media {
    height: min(580px, 70vw);
    min-height: 300px;
  }

  .projects-grid,
  .meta-grid,
  .info-grid,
  .narrative-grid,
  .gallery-grid,
  .about-bottom-grid,
  .story-visuals,
  .longform-item,
  .project-story__gallery {
    grid-template-columns: 1fr;
  }

  .about-hero-grid {
    grid-template-columns: 1fr;
  }

  .about-photo {
    height: 520px;
  }

  .gallery-item {
    height: 220px;
  }

  .folder-gallery {
    grid-template-columns: 1fr;
  }

  .folder-gallery img {
    height: 170px;
  }

  .writing-row {
    grid-template-columns: 1fr;
  }

  .writing-thumb-wrap {
    min-height: 0;
    aspect-ratio: 16 / 10;
    max-height: 320px;
  }

  .writing-thumb {
    min-height: 0;
    height: 100%;
  }

  .story-main img,
  .story-side img {
    height: 220px;
  }

  .writing-flow-image {
    max-height: none;
  }
}

@media (max-width: 640px) {
  .writing-lead-quote {
    padding-left: 1.15rem;
    margin-top: 2.35rem;
  }

  .writing-lead-quote__cite {
    margin-top: 1.2rem;
  }

  .header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .time-pill {
    width: 100%;
    justify-content: center;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-aside {
    text-align: left;
    max-width: none;
  }
}
