:root {
  color-scheme: light;
  --ink: #121314;
  --ink-soft: #5b5f63;
  --paper: #f5f5f7;
  --paper-strong: #ffffff;
  --line: #dedfe3;
  --lime: #9ee33b;
  --coral: #f2f2f2;
  --cobalt: #1d1d1f;
  --mint: #eef7e8;
  --violet: #f2f2f2;
  --shadow: 0 28px 70px rgba(18, 19, 20, 0.08);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 20;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(245, 245, 247, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--ink);
  color: white;
  border-radius: var(--radius);
  font-size: 0.8rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar,
.filter-bar::-webkit-scrollbar,
.detail-nav::-webkit-scrollbar {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.site-nav a {
  padding: 9px 12px;
  border-radius: var(--radius);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--ink);
  color: white;
}

.theme-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 11px 7px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  white-space: nowrap;
}

.theme-toggle:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(18, 19, 20, 0.12);
}

.theme-toggle-track {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: #dfe1e6;
}

.theme-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(18, 19, 20, 0.2);
  transition: transform 180ms ease, background 180ms ease;
}

.hero {
  position: relative;
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(42px, 5vw, 64px) 18px clamp(18px, 3vw, 28px);
  background: radial-gradient(circle at 50% 18%, #ffffff 0, #f7f7f8 44%, #f0f0f2 100%);
}

.hero-image {
  position: relative;
  width: 100%;
  max-height: 150px;
  height: auto;
  object-fit: contain;
}

.hero-scrim {
  display: none;
}

.hero-content {
  position: relative;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

.hero h1 {
  width: min(1040px, 100%);
  margin: 0 auto;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.06em;
  word-break: keep-all;
}

.hero-name {
  margin: 16px 0 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 920;
}

.hero-headline {
  width: min(680px, 100%);
  margin: 12px auto 0;
  font-size: clamp(1.02rem, 1.55vw, 1.24rem);
  font-weight: 720;
  color: var(--ink-soft);
}

.eyebrow {
  margin: 0 0 12px;
  color: #6d8f1f;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-actions,
.tag-row,
.project-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-actions {
  justify-content: center;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 850;
  text-decoration: none;
}

.button-primary {
  color: white;
  background: var(--ink);
}

.button-secondary {
  border-color: #d0d0d4;
  background: rgba(255, 255, 255, 0.72);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(18, 19, 20, 0.16);
}

.hero-visual {
  width: min(620px, 100%);
  margin: clamp(16px, 2.5vw, 24px) auto 0;
}

.section,
.page-intro,
.detail-page {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.section {
  padding: clamp(56px, 8vw, 110px) 0;
}

.signal-section {
  padding-top: clamp(32px, 4vw, 56px);
}

.section-tight {
  padding-top: 24px;
}

.section-contrast {
  width: 100%;
  max-width: none;
  padding-inline: max(18px, calc((100vw - var(--max)) / 2));
  background: #ffffff;
  color: var(--ink);
  border-block: 1px solid var(--line);
}

.section-heading {
  width: min(780px, 100%);
  margin-bottom: 28px;
}

.section-heading h2,
.page-intro h1,
.detail-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: 0.98;
  font-weight: 930;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.section-heading p,
.page-intro p,
.detail-hero p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.section-contrast .section-heading p {
  color: var(--ink-soft);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.bento-card,
.mini-card,
.project-card,
.profile-panel,
.matrix-column,
  .credential-card,
  .contact-card,
  .detail-status,
  .detail-section,
  .evidence-item,
  .media-card {
  border: 1px solid rgba(18, 19, 20, 0.08);
  border-radius: var(--radius);
  background: var(--paper-strong);
}

.bento-card {
  min-height: 220px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.bento-card:hover,
.project-card:hover,
.mini-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.bento-card-large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 454px;
}

.metric {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.9;
  font-weight: 950;
}

.bento-card h3,
.project-card h3,
.matrix-column h3,
.profile-panel h3,
.credential-card h2,
.contact-card h2 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  line-height: 1.15;
}

.bento-card p,
.project-card p,
.profile-panel p,
.credential-card p,
.contact-card p {
  margin: 0;
  color: var(--ink-soft);
}

.accent-lime {
  background: #ffffff;
}

.accent-coral {
  background: #ffffff;
}

.accent-cobalt {
  background: #ffffff;
}

.accent-mint {
  background: #ffffff;
}

.accent-lime .metric,
.accent-coral .metric,
.accent-cobalt .metric,
.accent-mint .metric {
  color: #6d8f1f;
}

.featured-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 14px;
}

.selected-works {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 14px;
  margin: 0 0 14px;
}

.selected-work-stack {
  display: grid;
  gap: 14px;
}

.selected-work-card {
  position: relative;
  min-height: 220px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(18, 19, 20, 0.08);
  border-radius: var(--radius);
  background: var(--paper-strong);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.selected-work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.selected-work-card-lead {
  min-height: 454px;
  color: white;
  background:
    radial-gradient(circle at 78% 12%, rgba(158, 227, 59, 0.22), transparent 28%),
    linear-gradient(135deg, #121314 0%, #191d22 100%);
}

.selected-work-card-lead::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(158, 227, 59, 0.38);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(158, 227, 59, 0.22), transparent 62%);
  pointer-events: none;
}

.selected-work-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.selected-work-card-top > span:first-child,
.selected-work-kicker,
.selected-work-brief dt,
.project-card-meta dt,
.case-brief-card span {
  color: #6d8f1f;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.selected-work-card-lead .selected-work-card-top > span:first-child,
.selected-work-card-lead .selected-work-kicker,
.selected-work-card-lead .selected-work-brief dt {
  color: var(--lime);
}

.selected-work-kicker {
  margin: 0 0 8px;
}

.selected-work-card h3 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 3vw, 3.2rem);
  line-height: 0.98;
}

.selected-work-card p {
  margin: 0;
  color: var(--ink-soft);
}

.selected-work-card-lead p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.72);
}

.selected-work-brief {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: auto 0 0;
}

.selected-work-brief div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.selected-work-brief dd {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  line-height: 1.45;
}

.selected-work-card-lead .tag {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.selected-work-card-lead .text-link {
  color: var(--lime);
}

.mini-card {
  min-height: 128px;
  padding: 18px;
  text-decoration: none;
}

.mini-card span,
.mini-card small,
.period,
.credential-card span,
.timeline-item span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 750;
}

.mini-card strong {
  display: block;
  margin: 8px 0;
  font-size: 1.25rem;
}

.matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.matrix-column {
  padding: 24px;
  color: var(--ink);
}

.matrix-column ul,
.detail-section ul,
.contact-card ul,
.clean-list {
  margin: 0;
  padding-left: 1.2rem;
}

.matrix-column li,
.detail-section li,
.contact-card li,
.clean-list li {
  margin: 0 0 10px;
}

.profile-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr 1fr;
  gap: 14px;
}

.profile-panel,
.contact-card,
.credential-card {
  padding: 22px;
}

.timeline-item + .timeline-item {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.page-intro {
  padding: clamp(62px, 10vw, 126px) 0 28px;
}

.page-intro p {
  width: min(760px, 100%);
}

.filter-bar {
  position: sticky;
  top: 67px;
  z-index: 8;
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  padding: 12px;
  overflow-x: auto;
  background: rgba(251, 251, 247, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
}

.filter-button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.filter-button.selected,
.filter-button:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.project-grid,
.credential-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.project-stack {
  display: grid;
  gap: clamp(28px, 5vw, 54px);
}

.projects-section-heading {
  width: 100%;
  margin: 0 0 16px;
}

.projects-section-heading h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2.35rem);
  line-height: 1.05;
}

.project-card {
  min-height: 360px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.project-card h3 {
  font-size: 1.6rem;
}

.project-card-featured {
  grid-column: span 2;
  min-height: 420px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 248, 239, 0.94)),
    radial-gradient(circle at 92% 14%, rgba(158, 227, 59, 0.34), transparent 28%);
}

.project-card-featured h3 {
  max-width: 680px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.98;
}

.project-subtitle {
  font-weight: 780;
}

.project-card > p:not(.project-subtitle) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.project-card-featured > p:not(.project-subtitle) {
  max-width: 720px;
  -webkit-line-clamp: 2;
}

.project-card-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: auto 0 0;
}

.project-card-meta div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.project-card-meta dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.42;
}

.status-badge,
.tag,
.evidence-visibility,
.evidence-type {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  font-size: 0.76rem;
  font-weight: 850;
}

.status-verified {
  background: #dafce9;
  border-color: #84e3ac;
}

.status-strong_but_needs_confirmation {
  background: #fff1c7;
  border-color: #ffc84c;
}

.status-needs_user_confirmation {
  background: #ffe0de;
  border-color: #ff9184;
}

.tag {
  background: white;
}

.tag-row-strong .tag {
  border-color: var(--ink);
  background: var(--lime);
}

.text-link,
.back-link {
  margin-top: auto;
  color: var(--cobalt);
  font-weight: 900;
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.text-link {
  display: inline-flex;
}

.detail-page {
  padding: clamp(42px, 8vw, 88px) 0;
}

.detail-hero {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: stretch;
  margin-top: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.detail-hero-copy {
  display: grid;
  align-content: start;
  gap: 14px;
}

.detail-hero-copy .eyebrow,
.detail-hero-copy p {
  margin: 0;
}

.detail-subtitle {
  max-width: 760px;
  font-size: clamp(1.1rem, 2vw, 1.35rem) !important;
  font-weight: 820;
  color: var(--ink) !important;
}

.detail-summary {
  max-width: 760px;
}

.detail-status {
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  background: #121314;
  color: white;
}

.detail-status strong {
  font-size: 1.35rem;
  line-height: 1.15;
}

.detail-status > span:first-child {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-status p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.detail-status .status-badge,
.contribution-summary .status-badge {
  color: #121314;
}

.case-brief-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
  scroll-margin-top: 92px;
}

.case-brief-card {
  min-height: 184px;
  padding: 18px;
  border: 1px solid rgba(18, 19, 20, 0.08);
  border-radius: var(--radius);
  background: var(--paper-strong);
}

.case-brief-card h2 {
  margin: 10px 0;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.12;
}

.case-brief-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.case-brief-card:nth-child(3) {
  border-top: 4px solid var(--lime);
}

.roi-section {
  margin-top: 24px;
  padding: clamp(22px, 4vw, 36px);
  border-radius: var(--radius);
  background: #121314;
  color: white;
  scroll-margin-top: 92px;
}

.detail-content .roi-section {
  margin-top: 0;
}

.detail-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.detail-section-heading .eyebrow {
  color: var(--lime);
}

.detail-section-heading h2,
.detail-section-heading p {
  margin: 0;
}

.detail-section-heading h2 {
  max-width: 680px;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  line-height: 1;
}

.detail-section-heading > p {
  max-width: 250px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  text-align: right;
}

.roi-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.roi-lane {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
}

.roi-lane-input {
  background: rgba(255, 255, 255, 0.04);
}

.roi-lane-output {
  border-color: rgba(158, 227, 59, 0.38);
  background: rgba(158, 227, 59, 0.08);
}

.roi-lane-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.roi-lane-heading span {
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.roi-lane-heading strong {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.86rem;
  text-align: right;
}

.roi-flow-arrow {
  align-self: center;
  display: grid;
  place-items: center;
  gap: 2px;
  color: var(--lime);
}

.roi-flow-arrow span {
  font-size: 1.8rem;
  font-weight: 950;
  line-height: 1;
}

.roi-flow-arrow small {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.68rem;
  font-weight: 900;
}

.roi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.roi-card {
  min-height: 180px;
  padding: 17px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top-width: 4px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.roi-input {
  border-top-color: #a9b0b8;
}

.roi-output {
  border-top-color: #ffffff;
}

.roi-impact {
  border-top-color: var(--lime);
  background: rgba(158, 227, 59, 0.13);
}

.roi-card .roi-card-badge {
  align-self: flex-start;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.roi-card strong {
  display: block;
  font-size: clamp(1.65rem, 2.6vw, 2.7rem);
  line-height: 0.95;
  overflow-wrap: anywhere;
}

.roi-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.45;
}

.detail-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 34px;
  margin-top: 28px;
}

.detail-nav {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  gap: 8px;
}

.detail-nav button {
  padding: 9px 10px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  font-weight: 800;
  text-align: left;
  white-space: nowrap;
}

.detail-nav button:hover,
.detail-nav button.active {
  background: var(--ink);
  color: white;
}

.detail-content {
  display: grid;
  gap: 14px;
}

.detail-section {
  padding: 24px;
  scroll-margin-top: 92px;
}

.detail-section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  line-height: 1.05;
}

.detail-section h3 {
  margin: 0 0 8px;
}

.detail-section p {
  margin: 0;
  color: var(--ink-soft);
}

.contribution-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.4fr);
  gap: 14px;
}

.contribution-summary,
.contribution-detail > div,
.story-step,
.highlight-board article,
.execution-grid > div,
.retrospective-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.contribution-summary {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: var(--paper-strong);
  color: var(--ink);
}

.contribution-summary > strong {
  font-size: clamp(1.65rem, 2.8vw, 2.6rem);
  line-height: 1;
}

.contribution-summary > span {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 750;
}

.contribution-kicker {
  color: #6d8f1f !important;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contribution-summary .contribution-kicker {
  color: #6d8f1f !important;
}

.contribution-meter {
  width: 100%;
  margin-top: 8px;
}

.contribution-meter-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.82rem;
}

.contribution-meter-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.contribution-meter-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--lime);
}

.contribution-meter small,
.contribution-unknown small {
  display: block;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.74rem;
  line-height: 1.4;
}

.contribution-unknown {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.contribution-unknown > span {
  display: block;
  color: #6d8f1f;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contribution-unknown > strong {
  display: block;
  margin-top: 3px;
  font-size: 0.92rem;
}

.contribution-verification {
  width: 100%;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.contribution-verification p {
  margin-top: 9px;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.contribution-detail {
  display: grid;
  gap: 12px;
}

.contribution-detail > div {
  padding: 18px;
}

.contribution-detail ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  padding: 0;
  list-style: none;
}

.contribution-detail li {
  margin: 0;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--paper-strong);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 760;
}

.story-flow {
  display: grid;
  gap: 10px;
}

.story-step {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  padding: 18px;
}

.story-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 44px;
  bottom: -11px;
  width: 2px;
  height: 12px;
  background: var(--line);
}

.story-index {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: #121314;
  color: white;
  font-weight: 950;
}

.story-step span,
.highlight-board span,
.technical-band > span,
.retrospective-grid article > span {
  color: #6d8f1f;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.story-step h3 {
  margin-top: 3px;
}

.highlight-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.highlight-board article {
  padding: 16px;
  border-top: 3px solid var(--lime);
  background: var(--mint);
}

.highlight-board p {
  margin-top: 8px;
  color: var(--ink);
  font-weight: 740;
}

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

.execution-grid > div,
.retrospective-grid article {
  padding: 18px;
}

.technical-band {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--paper);
}

.retrospective-grid article:first-child {
  border-top: 4px solid var(--lime);
}

.retrospective-grid article:last-child {
  border-top: 4px solid var(--ink);
}

.retrospective-grid h3 {
  margin-top: 6px;
}

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

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.media-card {
  margin: 0;
  overflow: hidden;
}

.media-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-card figcaption {
  padding: 10px 12px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 780;
}

.evidence-list {
  display: grid;
  gap: 10px;
}

.evidence-browser {
  display: grid;
  gap: 14px;
}

.evidence-browser-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.evidence-browser-head h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.15;
}

.evidence-count {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 900;
}

.evidence-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.evidence-tab {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.evidence-tab:hover,
.evidence-tab.selected {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(18, 19, 20, 0.1);
}

.evidence-tab.selected {
  background: linear-gradient(180deg, #ffffff 0%, #f5f8ef 100%);
}

.evidence-tab strong {
  line-height: 1.2;
}

.evidence-tab small {
  color: var(--ink-soft);
  font-weight: 850;
}

.evidence-preview-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
}

.evidence-preview-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.evidence-preview-heading h3 {
  margin: 8px 0 6px;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.15;
}

.evidence-preview-heading p {
  margin: 0;
  color: var(--ink-soft);
}

.evidence-preview-heading a {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.evidence-preview-heading a:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.evidence-item {
  display: grid;
  gap: 14px;
  padding: 16px;
  text-decoration: none;
}

.evidence-item:hover {
  border-color: var(--cobalt);
  box-shadow: 0 12px 28px rgba(36, 92, 255, 0.12);
}

.evidence-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.evidence-summary > div {
  display: grid;
  gap: 7px;
}

.evidence-item small {
  color: var(--ink-soft);
}

.evidence-type {
  color: var(--cobalt);
  border-color: #b8c7ff;
  background: #eef2ff;
}

.evidence-visibility {
  color: var(--ink);
  background: #f2f2ee;
}

.evidence-file-link,
.external-evidence a,
.markdown-body a {
  color: var(--cobalt);
  font-weight: 850;
  text-underline-offset: 4px;
}

.evidence-list-compact .evidence-item {
  gap: 10px;
}

.evidence-list-compact .evidence-item:hover {
  box-shadow: none;
}

.evidence-compact-preview {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.evidence-compact-preview summary {
  cursor: pointer;
  color: var(--cobalt);
  font-weight: 900;
}

.evidence-compact-preview[open] summary {
  margin-bottom: 10px;
}

.evidence-list-compact .pdf-frame-wrap {
  min-height: 420px;
}

.evidence-list-compact .markdown-body {
  max-height: 420px;
}

.markdown-viewer,
.pdf-viewer,
.evidence-image-viewer {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfbfc;
}

.markdown-toggle {
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.markdown-toggle summary {
  cursor: pointer;
  padding: 12px 14px;
  color: var(--ink);
  font-weight: 900;
}

.markdown-toggle p {
  margin: 0;
  padding: 0 14px 14px;
  color: var(--ink-soft);
}

.markdown-body {
  max-height: 620px;
  overflow: auto;
  padding: clamp(18px, 4vw, 36px);
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%);
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body p,
.markdown-body ul,
.markdown-body ol {
  max-width: 860px;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
  margin: 24px 0 10px;
  line-height: 1.15;
}

.markdown-body h1:first-child,
.markdown-body h2:first-child,
.markdown-body h3:first-child {
  margin-top: 0;
}

.markdown-body h1 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.markdown-body h2 {
  padding-top: 12px;
  border-top: 1px solid rgba(18, 19, 20, 0.08);
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
}

.markdown-body h3 {
  font-size: 1.12rem;
}

.markdown-body p,
.markdown-body li {
  color: var(--ink-soft);
}

.markdown-body p {
  margin: 0 0 14px;
}

.markdown-body ul,
.markdown-body ol {
  margin: 0 0 18px;
  padding-left: 1.25rem;
}

.markdown-body li + li {
  margin-top: 8px;
}

.markdown-body code:not(pre code) {
  padding: 2px 6px;
  border: 1px solid #dfe2e8;
  border-radius: 6px;
  background: #f4f5f7;
  color: var(--ink);
  font-size: 0.92em;
}

.markdown-body hr {
  height: 1px;
  margin: 28px 0;
  border: 0;
  background: var(--line);
}

.markdown-code-block {
  max-width: 920px;
  margin: 18px 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: #111418;
  box-shadow: 0 18px 42px rgba(18, 19, 20, 0.18);
}

.markdown-code-label {
  padding: 9px 12px;
  color: #aab3bd;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.markdown-code-block pre {
  margin: 0;
  padding: 16px;
  overflow: auto;
}

.markdown-code-block code {
  color: #e5edf5;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
  line-height: 1.6;
  white-space: pre;
}

.code-token-keyword {
  color: #9ee33b;
}

.code-token-string {
  color: #ffd166;
}

.code-token-comment {
  color: #7c8794;
}

.markdown-callout {
  max-width: 860px;
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid #cfe4ff;
  border-left: 4px solid #2f80ed;
  border-radius: var(--radius);
  background: #f2f8ff;
}

.markdown-callout strong {
  display: block;
  margin-bottom: 4px;
}

.markdown-checklist {
  list-style: none;
  padding-left: 0;
}

.markdown-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.markdown-checklist input {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  accent-color: var(--ink);
}

.viewer-skeleton,
.viewer-error,
.pdf-loader {
  padding: 22px;
  color: var(--ink-soft);
  font-weight: 800;
}

.viewer-skeleton,
.pdf-loader {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #f1f2f4 0%, #ffffff 50%, #f1f2f4 100%);
  background-size: 220% 100%;
  animation: viewerShimmer 1.4s ease-in-out infinite;
}

.pdf-viewer {
  background: #111418;
  color: white;
}

.pdf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pdf-toolbar > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pdf-actions {
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.pdf-actions button,
.pdf-actions a {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: none;
}

.pdf-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.pdf-actions button:not(:disabled):hover,
.pdf-actions a:hover {
  background: rgba(255, 255, 255, 0.18);
}

.pdf-frame-wrap {
  position: relative;
  min-height: 620px;
}

.pdf-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #252a31;
}

.pdf-loader {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  background: linear-gradient(90deg, #171b20 0%, #252a31 50%, #171b20 100%);
  color: #dce4ec;
}

.evidence-image-viewer {
  margin: 0;
}

.evidence-image-viewer img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  background: #111418;
}

.evidence-image-viewer figcaption {
  padding: 10px 12px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 780;
}

@keyframes viewerShimmer {
  0% {
    background-position: 120% 0;
  }

  100% {
    background-position: -120% 0;
  }
}

.credential-card {
  min-height: 260px;
}

.contact-band {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto clamp(42px, 7vw, 90px);
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--lime);
}

.contact-band h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1;
}

.contact-band p {
  width: min(740px, 100%);
  color: var(--ink-soft);
}

.contact-grid {
  grid-template-columns: 0.85fr 1.15fr;
}

.contact-card .button {
  width: fit-content;
  margin-top: 16px;
}

.contact-card a:not(.button) {
  font-weight: 850;
  text-underline-offset: 4px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 48px);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.site-footer p {
  margin: 6px 0 0;
}

.site-footer a {
  font-weight: 900;
}

.muted {
  color: var(--ink-soft);
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .hero-image {
    object-position: 68% center;
  }

  .bento-grid,
  .project-grid,
  .credential-grid,
  .profile-grid,
    .matrix,
    .selected-works,
    .featured-strip,
    .detail-hero,
    .case-brief-grid,
    .detail-layout,
    .media-grid {
    grid-template-columns: 1fr;
  }

  .bento-card-large {
    grid-column: span 1;
    min-height: 260px;
  }

  .project-card-featured {
    grid-column: span 1;
  }

  .detail-nav {
    position: static;
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .contribution-grid {
    grid-template-columns: 1fr;
  }

  .roi-flow {
    grid-template-columns: 1fr;
  }

  .roi-flow-arrow {
    min-height: 36px;
  }

  .roi-flow-arrow span {
    transform: rotate(90deg);
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: center;
    flex-direction: row;
    gap: 8px;
    padding: 8px 10px;
  }

  .brand {
    width: auto;
  }

  .brand > span:last-child,
  .theme-toggle > span:last-child {
    display: none;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .site-nav {
    width: auto;
    min-width: 0;
    flex: 1;
    gap: 1px;
  }

  .site-nav a {
    padding: 6px;
    font-size: 0.7rem;
  }

  .header-actions {
    width: auto;
    min-width: 0;
    flex: 1;
    align-items: center;
    flex-direction: row;
    gap: 4px;
  }

  .theme-toggle {
    align-self: center;
    min-height: 34px;
    padding: 5px;
  }

  .hero {
    padding: 28px 14px 12px;
  }

  .hero-content {
    width: min(calc(100% - 28px), var(--max));
  }

  .hero h1 {
    font-size: clamp(1.95rem, 9.5vw, 2.65rem);
    letter-spacing: -0.045em;
  }

  .hero-name {
    margin-top: 12px;
    font-size: 0.94rem;
  }

  .hero-headline {
    margin-top: 8px;
    font-size: 0.94rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    margin-top: 18px;
  }

  .button {
    width: 100%;
  }

  .section,
  .page-intro,
  .detail-page,
  .contact-band {
    width: min(calc(100% - 28px), var(--max));
  }

  .section-heading h2,
  .page-intro h1,
  .detail-hero h1 {
    font-size: clamp(1.85rem, 8.6vw, 2.35rem);
    line-height: 1.02;
    word-break: keep-all;
  }

  .detail-section h2 {
    font-size: clamp(1.35rem, 7vw, 1.9rem);
  }

  .detail-section,
  .roi-section {
    padding: 18px;
  }

  .selected-work-card {
    min-height: 0;
    padding: 20px;
  }

  .selected-work-card-lead {
    min-height: 0;
  }

  .selected-work-card-lead::after {
    width: 86px;
    height: 86px;
  }

  .selected-work-brief,
  .project-card-meta {
    grid-template-columns: 1fr;
  }

  .project-card {
    gap: 12px;
    padding: 16px;
  }

  .project-card-meta {
    gap: 7px;
  }

  .project-card-meta div {
    padding: 9px 10px;
  }

  .project-card-meta dd,
  .project-subtitle {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .detail-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .detail-section-heading > p {
    max-width: none;
    text-align: left;
  }

  .contribution-detail ul,
  .highlight-board,
  .execution-grid,
  .retrospective-grid {
    grid-template-columns: 1fr;
  }

  .roi-card {
    min-height: 150px;
  }

  .roi-lane-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .roi-lane-heading strong {
    text-align: left;
  }

  .story-step {
    grid-template-columns: 42px 1fr;
    gap: 12px;
    padding: 15px;
  }

  .story-index {
    width: 38px;
    height: 38px;
  }

  .story-step:not(:last-child)::after {
    left: 33px;
  }

  .hero-headline,
  .section-heading p,
  .page-intro p,
  .detail-hero p,
  .detail-section p,
  .project-card p,
  .contact-band p {
    overflow-wrap: anywhere;
    word-break: keep-all;
  }

  .detail-nav button,
  .filter-button {
    padding-inline: 10px;
  }

  .evidence-summary,
  .evidence-browser-head,
  .evidence-preview-heading,
  .pdf-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .evidence-preview-heading a {
    width: 100%;
    text-align: center;
  }

  .evidence-picker {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
  }

  .evidence-tab {
    flex: 0 0 min(76vw, 250px);
    min-height: 0;
    padding: 12px;
    scroll-snap-align: start;
  }

  .evidence-browser {
    gap: 12px;
  }

  .evidence-preview-panel {
    gap: 10px;
    padding: 12px;
  }

  .evidence-browser-head h3,
  .evidence-preview-heading h3 {
    font-size: 1.22rem;
  }

  .evidence-preview-heading p {
    margin: 0;
  }

  .pdf-toolbar > div,
  .pdf-actions {
    width: 100%;
  }

  .pdf-actions button,
  .pdf-actions a {
    flex: 1 1 78px;
    text-align: center;
  }

  .pdf-frame-wrap {
    min-height: 300px;
  }

  .markdown-body {
    max-height: 460px;
    padding: 16px;
  }

  .page-intro {
    padding: 54px 0 22px;
  }

  .project-card h3 {
    font-size: 1.45rem;
  }

  .filter-bar {
    top: 55px;
    padding: 10px;
  }

  .two-column,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    padding-inline: 14px;
  }

  .contact-card .button {
    width: 100%;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f4f6f8;
  --ink-soft: #b6bec8;
  --paper: #101214;
  --paper-strong: #171a1f;
  --line: #2a2f36;
  --lime: #9ee33b;
  --coral: #1b1e23;
  --cobalt: #9ab7ff;
  --mint: #162018;
  --violet: #1b1e23;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

:root[data-theme="dark"] .site-header {
  background: rgba(16, 18, 20, 0.82);
}

:root[data-theme="dark"] .hero {
  background: radial-gradient(circle at 50% 18%, #20242a 0, #14171b 48%, #101214 100%);
}

:root[data-theme="dark"] .brand-mark,
:root[data-theme="dark"] .button-primary,
:root[data-theme="dark"] .site-nav a:hover,
:root[data-theme="dark"] .site-nav a.active,
:root[data-theme="dark"] .filter-button.selected,
:root[data-theme="dark"] .filter-button:hover {
  background: #f4f6f8;
  color: #101214;
}

:root[data-theme="dark"] .button-secondary,
:root[data-theme="dark"] .filter-button,
:root[data-theme="dark"] .tag,
:root[data-theme="dark"] .evidence-tab,
:root[data-theme="dark"] .markdown-toggle,
:root[data-theme="dark"] .theme-toggle {
  background: #171a1f;
}

:root[data-theme="dark"] .theme-toggle-track {
  background: #2a2f36;
}

:root[data-theme="dark"] .theme-toggle-knob {
  transform: translateX(14px);
  background: var(--lime);
}

:root[data-theme="dark"] .section-contrast,
:root[data-theme="dark"] .accent-lime,
:root[data-theme="dark"] .accent-coral,
:root[data-theme="dark"] .accent-cobalt,
:root[data-theme="dark"] .accent-mint,
:root[data-theme="dark"] .selected-work-card:not(.selected-work-card-lead),
:root[data-theme="dark"] .case-brief-card,
:root[data-theme="dark"] .evidence-preview-panel,
:root[data-theme="dark"] .markdown-body {
  background: #171a1f;
}

:root[data-theme="dark"] .project-card-featured {
  background:
    linear-gradient(180deg, rgba(23, 26, 31, 0.96), rgba(20, 29, 18, 0.9)),
    radial-gradient(circle at 92% 14%, rgba(158, 227, 59, 0.22), transparent 28%);
}

:root[data-theme="dark"] .project-card-meta div {
  background: #20242a;
}

:root[data-theme="dark"] .project-card-meta dd {
  color: var(--ink);
}

:root[data-theme="dark"] .evidence-tab.selected {
  background: linear-gradient(180deg, #1c2026 0%, #171d14 100%);
}

:root[data-theme="dark"] .filter-bar {
  background: rgba(16, 18, 20, 0.9);
}

:root[data-theme="dark"] .status-verified {
  background: #163522;
  border-color: #2e8d55;
}

:root[data-theme="dark"] .status-strong_but_needs_confirmation {
  background: #3a2d10;
  border-color: #9c7620;
}

:root[data-theme="dark"] .status-needs_user_confirmation {
  background: #3a1715;
  border-color: #9c423a;
}

:root[data-theme="dark"] .evidence-type {
  background: #17213a;
  border-color: #334d8a;
}

:root[data-theme="dark"] .evidence-visibility,
:root[data-theme="dark"] .markdown-body code:not(pre code) {
  background: #20242a;
  color: var(--ink);
}

:root[data-theme="dark"] .markdown-viewer,
:root[data-theme="dark"] .evidence-image-viewer {
  background: #171a1f;
}

:root[data-theme="dark"] .markdown-body {
  background: linear-gradient(180deg, #171a1f 0%, #14171b 100%);
}

:root[data-theme="dark"] .markdown-callout {
  background: #142033;
  border-color: #28496d;
  border-left-color: #9ab7ff;
}

:root[data-theme="dark"] .viewer-skeleton {
  background: linear-gradient(90deg, #171a1f 0%, #252a31 50%, #171a1f 100%);
}

/* Baseframe-inspired editorial redesign */

:root {
  --paper: #f2f0e8;
  --paper-strong: #f8f7f2;
  --ink: #11120f;
  --ink-soft: #65665f;
  --line: rgba(17, 18, 15, 0.18);
  --radius: 2px;
  --max: 1380px;
  --font-display: Arial, "Helvetica Neue", sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
  min-height: 62px;
  padding: 10px clamp(16px, 3vw, 42px);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border-bottom-color: var(--line);
}

.brand {
  gap: 12px;
  font-size: 0.86rem;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--lime);
  color: #11120f;
  font-size: 0.68rem;
}

.site-nav a {
  padding: 7px 10px;
  border-radius: 0;
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a.active {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--ink);
}

.theme-toggle {
  min-height: 34px;
  border-radius: 0;
  background: transparent;
}

.hero {
  width: min(100%, 1680px);
  min-height: calc(100svh - 62px);
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  align-items: stretch;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  min-width: 0;
  padding: clamp(48px, 8vw, 120px) clamp(24px, 5vw, 84px) clamp(42px, 6vw, 88px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 60px;
}

.hero-intro,
.hero-bottom,
.editorial-meta,
.project-card-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.hero h1 {
  width: auto;
  margin: auto 0;
  max-width: 900px;
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 7.2vw, 8.6rem);
  line-height: 0.89;
  font-weight: 760;
  letter-spacing: -0.025em;
  text-align: left;
  text-wrap: balance;
}

.hero-name,
.hero-headline {
  margin: 0;
}

.hero-name {
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-headline {
  max-width: 450px;
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 520;
  line-height: 1.55;
}

.hero-bottom {
  align-items: end;
}

.hero-actions {
  margin: 0;
  justify-content: flex-end;
}

.button {
  border-radius: 0;
}

.button-primary {
  background: var(--lime);
  border-color: var(--lime);
  color: #11120f;
}

.text-link,
.back-link {
  color: var(--ink);
  font-weight: 720;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.hero-art {
  position: relative;
  min-height: 640px;
  margin: 0;
  padding: clamp(18px, 3vw, 44px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 18px;
  overflow: hidden;
  background: #ebe8df;
  color: var(--ink);
}

.hero-art img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-art figcaption {
  padding-top: 14px;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 18px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 24%, transparent);
}

.hero-art figcaption span {
  color: #6d8f1f;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-art figcaption p {
  max-width: 410px;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
}

.hero-art:hover img {
  transform: scale(1.012);
}

.section {
  padding: clamp(110px, 13vw, 210px) 0;
}

.signal-section {
  padding-top: clamp(110px, 13vw, 210px);
}

.section-heading-editorial {
  width: 100%;
  max-width: 1080px;
  margin-bottom: clamp(62px, 9vw, 128px);
}

.section-heading-editorial h2,
.about-editorial h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 8vw, 8.8rem);
  line-height: 1.08;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.eyebrow,
.editorial-meta,
.project-card-top,
.selected-work-copy dt,
.project-card-summary dt,
.proof-strip span,
.case-brief-card span {
  font-size: 0.68rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.selected-works {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(86px, 12vw, 170px);
  margin: 0;
}

.selected-work-card {
  min-height: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.5fr);
  gap: clamp(28px, 5vw, 78px);
  align-items: end;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.selected-work-card-reverse {
  grid-template-columns: minmax(300px, 0.5fr) minmax(0, 1.5fr);
}

.selected-work-card-reverse .selected-work-image {
  order: 2;
}

.selected-work-image,
.project-cover,
.detail-cover {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #d8d5cc;
}

.selected-work-image {
  aspect-ratio: 16 / 10;
}

.selected-work-image img,
.project-cover img,
.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: var(--cover-fit, cover);
  object-position: var(--cover-position, center);
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 760ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 760ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

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

.selected-work-card.scroll-reveal,
.project-card.scroll-reveal {
  transform: translateY(42px);
}

.selected-work-card.scroll-reveal.is-visible,
.project-card.scroll-reveal.is-visible {
  transform: translateY(0);
}

.selected-work-card.scroll-reveal .selected-work-image::after,
.project-card.scroll-reveal .project-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--paper);
  transform: translateY(0);
  transition: transform 860ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--reveal-delay, 0ms) + 80ms);
  pointer-events: none;
}

.selected-work-card.scroll-reveal.is-visible .selected-work-image::after,
.project-card.scroll-reveal.is-visible .project-cover::after {
  transform: translateY(-101%);
}

.selected-work-card.scroll-reveal .selected-work-image img,
.project-card.scroll-reveal .project-cover img {
  transform: scale(1.055);
}

.selected-work-card.scroll-reveal.is-visible .selected-work-image img,
.project-card.scroll-reveal.is-visible .project-cover img {
  transform: scale(1);
}

.selected-work-card:hover,
.project-card:hover {
  transform: none;
  box-shadow: none;
}

.selected-work-card:hover img,
.project-card:hover img {
  transform: scale(1.025);
}

.selected-work-copy {
  padding: 24px 0 4px;
  border-top: 1px solid var(--line);
}

.editorial-meta,
.project-card-top {
  color: var(--ink-soft);
}

.selected-work-copy h3 {
  margin: 28px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
}

.selected-work-copy > p {
  margin: 0 0 32px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.55;
}

.selected-work-copy dl,
.project-card-summary,
.about-editorial-body dl {
  margin: 0;
}

.selected-work-copy dl div,
.project-card-summary div,
.about-editorial-body dl div {
  padding: 11px 0;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  border-top: 1px solid var(--line);
}

.selected-work-copy dd,
.project-card-summary dd,
.about-editorial-body dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.45;
}

.selected-work-copy .text-link {
  display: inline-block;
  margin-top: 30px;
}

.proof-strip {
  margin-top: clamp(100px, 13vw, 190px);
  padding: 24px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.proof-strip div {
  min-height: 130px;
  padding: 12px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
}

.proof-strip div:last-child {
  border-right: 0;
}

.proof-strip strong {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 5.8rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.proof-strip span {
  color: var(--ink-soft);
}

.section-contrast {
  padding-inline: max(18px, calc((100vw - var(--max)) / 2));
  background: var(--ink);
  color: var(--paper-strong);
}

.section-contrast .eyebrow,
.section-contrast .section-heading p,
.section-contrast .capability-editorial p {
  color: rgba(255, 255, 255, 0.58);
}

.capability-editorial {
  border-top: 1px solid rgba(255, 255, 255, 0.32);
}

.capability-editorial article {
  padding: clamp(26px, 4vw, 54px) 0;
  display: grid;
  grid-template-columns: 110px minmax(220px, 0.7fr) minmax(0, 1fr);
  gap: 28px;
  align-items: baseline;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.capability-editorial span {
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 800;
}

.capability-editorial h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 5.4rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.capability-editorial p {
  max-width: 520px;
  margin: 0;
}

.about-editorial {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 0.65fr);
  gap: clamp(60px, 10vw, 160px);
  align-items: start;
}

.about-lead {
  margin: 0 0 54px;
  font-size: clamp(1.25rem, 2.1vw, 2rem);
  line-height: 1.35;
}

.about-experience {
  margin-top: 60px;
}

.about-experience article {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.about-experience span {
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 760;
}

.about-experience h3 {
  margin: 8px 0;
  font-size: 1rem;
}

.about-experience p {
  margin: 0;
  color: var(--ink-soft);
}

.page-intro {
  padding: clamp(90px, 13vw, 190px) 0 clamp(50px, 8vw, 100px);
  border-bottom: 1px solid var(--line);
}

.projects-intro {
  padding: clamp(48px, 6vw, 82px) 0 clamp(26px, 4vw, 48px);
}

.projects-intro h1 {
  max-width: 1180px;
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 0.94;
}

.projects-intro > p:last-child {
  margin-bottom: 0;
}

.projects-index-section {
  padding-top: clamp(24px, 4vw, 54px);
}

.page-intro h1,
.detail-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 10rem);
  line-height: 0.86;
  font-weight: 750;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.filter-bar {
  position: sticky;
  top: 62px;
  margin-bottom: 64px;
  padding: 12px 0;
  gap: 22px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  scrollbar-width: none;
}

.filter-button {
  min-height: 0;
  padding: 5px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.filter-button.selected,
.filter-button:hover {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--ink);
}

.project-stack {
  gap: clamp(100px, 14vw, 190px);
}

.projects-section-heading {
  margin-bottom: 46px;
}

.projects-section-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(50px, 8vw, 110px) 26px;
}

.project-card {
  min-height: 0;
  padding: 0;
  display: block;
  gap: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.project-card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(380px, 0.8fr);
  gap: clamp(30px, 6vw, 84px);
  align-items: end;
  background: transparent;
}

.project-card-featured.project-card-reverse {
  grid-template-columns: minmax(380px, 0.8fr) minmax(0, 1.2fr);
}

.project-card-featured.project-card-reverse .project-cover {
  order: 2;
}

.project-cover {
  aspect-ratio: 16 / 9;
}

.project-card-featured .project-cover {
  aspect-ratio: 16 / 9;
}

.project-card-copy {
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
}

.project-card h3,
.project-card-featured h3 {
  max-width: none;
  margin: 22px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.7vw, 4.8rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
}

.project-card:not(.project-card-featured) h3 {
  font-size: clamp(1.8rem, 3vw, 3.4rem);
}

.project-card-copy > p {
  margin: 0 0 26px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.project-card-summary {
  margin-bottom: 24px;
}

.project-card-copy .text-link {
  display: inline-block;
  margin-top: 10px;
}

.detail-page {
  width: min(1480px, calc(100% - 48px));
}

.detail-hero {
  padding: clamp(80px, 11vw, 170px) 0 clamp(50px, 7vw, 90px);
  display: block;
  border: 0;
  background: transparent;
}

.detail-hero-copy {
  max-width: 1240px;
}

.detail-summary {
  max-width: 720px;
  margin-top: 38px;
  font-size: clamp(1.15rem, 2vw, 1.8rem);
  line-height: 1.42;
}

.detail-cover {
  aspect-ratio: 16 / 9;
}

.detail-cover figcaption {
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink-soft);
  font-size: 0.74rem;
}

.detail-cover figcaption strong {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.case-brief-grid {
  margin: 50px 0 0;
  padding: 22px 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.case-brief-card {
  min-height: 0;
  padding: 8px 22px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.case-brief-card:nth-child(3) {
  border-top: 0;
}

.case-brief-card h2 {
  margin: 10px 0 0;
  font-size: 1rem;
  line-height: 1.35;
}

.case-brief-note {
  grid-column: 1 / -1;
  margin: 20px 22px 0;
  color: var(--ink-soft);
  font-size: 0.74rem;
}

.detail-evidence-cta {
  margin-top: 22px;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.detail-evidence-cta p {
  margin-bottom: 5px;
}

.detail-evidence-cta button {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 780;
}

.detail-evidence-cta button:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: #11120f;
}

.detail-deep-dive,
.detail-appendix {
  scroll-margin-top: 92px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.detail-deep-dive > button,
.detail-appendix > button {
  width: 100%;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.detail-deep-dive > button span,
.detail-appendix > button span {
  display: grid;
  gap: 5px;
}

.detail-deep-dive > button small,
.detail-appendix > button small {
  color: #6d8f1f;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-deep-dive > button strong,
.detail-appendix > button strong {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.detail-deep-dive > button b,
.detail-appendix > button b {
  flex: 0 0 auto;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.detail-deep-dive-content,
.detail-appendix-content {
  padding-bottom: clamp(40px, 8vw, 100px);
  display: grid;
  gap: clamp(60px, 9vw, 120px);
}

.detail-deep-dive-content {
  padding-bottom: clamp(36px, 7vw, 84px);
}

.media-grid {
  margin-top: 48px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.media-card {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.media-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.media-card figcaption {
  padding: 10px 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.detail-layout {
  grid-template-columns: 150px minmax(0, 1fr);
  gap: clamp(32px, 7vw, 100px);
  margin-top: clamp(80px, 11vw, 150px);
}

.detail-nav {
  gap: 2px;
}

.detail-nav button {
  padding: 7px 0;
  border-radius: 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-nav button:hover,
.detail-nav button.active {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--ink);
}

.detail-content {
  gap: clamp(80px, 11vw, 150px);
}

.detail-section,
.roi-section {
  padding: 30px 0 0;
  border: 0;
  border-top: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
}

.detail-section h2,
.detail-section-heading h2 {
  max-width: 800px;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.story-flow,
.highlight-board,
.contribution-grid,
.execution-grid,
.retrospective-grid,
.roi-flow {
  margin-top: 48px;
}

.story-step,
.highlight-board article,
.contribution-summary,
.contribution-detail,
.execution-grid > div,
.retrospective-grid article,
.roi-lane,
.roi-card {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.story-step {
  padding: 24px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.story-step:not(:last-child)::after {
  display: none;
}

.story-index {
  background: var(--lime);
  color: #11120f;
}

.highlight-board article,
.retrospective-grid article {
  border: 0;
  border-top: 1px solid var(--line);
}

.contribution-summary,
.contribution-detail,
.execution-grid > div {
  border: 0;
  border-top: 1px solid var(--line);
}

.contribution-meter,
.contribution-unknown {
  border-radius: 0;
}

.roi-flow {
  grid-template-columns: 1fr 1fr;
}

.roi-flow-arrow {
  display: none;
}

.roi-lane {
  padding: 22px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.roi-lane-heading span,
.roi-card .roi-card-badge,
.detail-section-heading .eyebrow {
  color: #6d8f1f;
}

.roi-lane-heading strong,
.roi-card p,
.detail-section-heading > p {
  color: var(--ink-soft);
}

.roi-card {
  min-height: 150px;
  padding: 16px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.roi-card strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 4.8rem);
  letter-spacing: -0.06em;
}

.technical-band {
  border-radius: 0;
}

.contact-band {
  width: 100%;
  max-width: none;
  margin-top: 0;
  padding: clamp(100px, 14vw, 210px) max(18px, calc((100vw - var(--max)) / 2));
  background: var(--ink);
  color: var(--paper-strong);
  border-radius: 0;
  text-align: left;
}

.contact-band h2 {
  max-width: 1120px;
  margin: 0 0 36px;
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 9vw, 9.5rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.contact-band p {
  margin-left: 0;
  color: rgba(255, 255, 255, 0.62);
}

:root[data-theme="dark"] {
  --paper: #11120f;
  --paper-strong: #181914;
  --ink: #f2f0e8;
  --ink-soft: #aaa99f;
  --line: rgba(242, 240, 232, 0.2);
}

:root[data-theme="dark"] .section-contrast,
:root[data-theme="dark"] .case-brief-card,
:root[data-theme="dark"] .project-card-featured,
:root[data-theme="dark"] .selected-work-card:not(.selected-work-card-lead) {
  background: transparent;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-reveal,
  .scroll-reveal.is-visible,
  .selected-work-card.scroll-reveal,
  .project-card.scroll-reveal,
  .selected-work-card.scroll-reveal.is-visible,
  .project-card.scroll-reveal.is-visible,
  .selected-work-card.scroll-reveal .selected-work-image img,
  .project-card.scroll-reveal .project-cover img,
  .selected-work-card.scroll-reveal.is-visible .selected-work-image img,
  .project-card.scroll-reveal.is-visible .project-cover img {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }

  .selected-work-card.scroll-reveal .selected-work-image::after,
  .project-card.scroll-reveal .project-cover::after {
    display: none;
  }
}

@media (min-width: 981px) and (max-height: 920px) {
  .hero {
    min-height: calc(100svh - var(--header-offset));
  }

  .hero-copy {
    padding: 30px clamp(24px, 4vw, 58px);
    gap: 24px;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 6vw, 5.4rem);
  }

  .hero-art {
    min-height: 0;
    padding: 18px;
  }
}

@media (max-width: 980px) {
  .hero,
  .selected-work-card,
  .selected-work-card-reverse,
  .project-card-featured,
  .project-card-featured.project-card-reverse,
  .about-editorial {
    grid-template-columns: 1fr;
  }

  .selected-work-card-reverse .selected-work-image,
  .project-card-featured.project-card-reverse .project-cover {
    order: 0;
  }

  .hero-art,
  .hero-art img {
    min-height: 520px;
  }

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

  .proof-strip div:nth-child(2) {
    border-right: 0;
  }

  .proof-strip div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .capability-editorial article {
    grid-template-columns: 50px minmax(0, 0.55fr) minmax(0, 1fr);
  }

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

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-nav {
    position: static;
    display: flex;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

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

@media (max-width: 640px) {
  .site-header {
    min-height: 51px;
    padding-block: 7px;
  }

  .site-nav {
    scrollbar-width: none;
  }

  .site-nav a {
    padding-inline: 5px;
    font-size: 0.62rem;
  }

  .theme-toggle {
    min-width: 34px;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    min-height: 600px;
    padding: 30px 16px 34px;
    gap: 32px;
  }

  .hero h1 {
    margin: auto 0;
    font-size: clamp(3rem, 15vw, 4.5rem);
    line-height: 0.9;
    letter-spacing: -0.025em;
  }

  .hero-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-actions {
    align-items: flex-start;
  }

  .hero-actions .button {
    width: auto;
  }

  .hero-art {
    min-height: 0;
    padding: 14px;
  }

  .hero-art img {
    min-height: 0;
    height: auto;
    aspect-ratio: auto;
  }

  .hero-art figcaption {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .section {
    padding: 100px 0;
  }

  .section-heading-editorial {
    margin-bottom: 54px;
  }

  .section-heading-editorial h2,
  .about-editorial h2 {
    font-size: clamp(3.2rem, 16vw, 5rem);
  }

  .selected-works {
    gap: 90px;
  }

  .selected-work-card,
  .project-card-featured,
  .project-card {
    display: block;
  }

  .selected-work-copy h3,
  .project-card h3,
  .project-card-featured h3 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .project-card-featured h3 {
    font-size: clamp(1.9rem, 8vw, 3.2rem);
  }

  .selected-work-copy dl div,
  .project-card-summary div {
    grid-template-columns: 58px 1fr;
  }

  .proof-strip {
    margin-top: 100px;
  }

  .proof-strip div {
    min-height: 105px;
    padding: 10px 12px;
  }

  .proof-strip strong {
    font-size: 2.7rem;
  }

  .capability-editorial article {
    grid-template-columns: 32px 1fr;
    gap: 14px;
  }

  .capability-editorial article p {
    grid-column: 2;
  }

  .page-intro {
    padding: 76px 0 46px;
  }

  .projects-intro {
    padding: 46px 0 28px;
  }

  .projects-intro h1 {
    font-size: clamp(2.8rem, 13vw, 4.5rem);
  }

  .projects-index-section {
    padding-top: 20px;
  }

  .page-intro h1,
  .detail-hero h1 {
    font-size: clamp(3.6rem, 17vw, 5.8rem);
  }

  .filter-bar {
    top: 51px;
    margin-bottom: 46px;
  }

  .project-grid {
    gap: 70px;
  }

  .project-cover,
  .project-card-featured .project-cover,
  .detail-cover {
    aspect-ratio: 16 / 9;
  }

  .selected-work-image img,
  .project-cover img,
  .detail-cover img {
    object-fit: var(--cover-fit-mobile, var(--cover-fit, cover));
    object-position: var(--cover-position-mobile, var(--cover-position, center));
  }

  .detail-cover figcaption,
  .detail-evidence-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-deep-dive > button,
  .detail-appendix > button {
    align-items: flex-start;
    flex-direction: column;
  }

  .media-grid {
    grid-template-columns: 1fr;
  }

  .detail-page {
    width: min(calc(100% - 28px), 1480px);
  }

  .detail-hero {
    padding: 72px 0 42px;
  }

  .case-brief-grid {
    grid-template-columns: 1fr;
  }

  .case-brief-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .case-brief-card:nth-child(2) {
    border-right: 0;
  }

  .case-brief-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .case-brief-card:nth-child(4) {
    border-bottom: 0;
  }

  .detail-layout {
    margin-top: 80px;
  }

  .detail-content {
    gap: 90px;
  }

  .detail-section h2,
  .detail-section-heading h2 {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .roi-flow {
    grid-template-columns: 1fr;
  }

  .contact-band h2 {
    font-size: clamp(3.4rem, 17vw, 5.8rem);
  }
}

/* Release hardening: sticky offsets, scan-friendly titles, and touch targets. */
:root {
  --header-offset: 62px;
}

.site-header {
  min-height: var(--header-offset);
}

.filter-bar {
  top: var(--header-offset);
}

.hero h1,
.page-intro h1,
.detail-hero h1 {
  line-height: 1.02;
}

.site-nav a,
.theme-toggle,
.filter-button,
.detail-nav button {
  min-height: 44px;
  min-width: 44px;
}

.site-nav a,
.filter-button,
.detail-nav button {
  display: inline-flex;
  align-items: center;
}

.site-nav,
.filter-bar,
.detail-nav {
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar,
.filter-bar::-webkit-scrollbar,
.detail-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a:hover,
.site-nav a.active,
.filter-button:hover,
.filter-button.selected,
.detail-nav button:hover,
.detail-nav button.active {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--ink);
}

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

:root[data-theme="dark"] .button-primary {
  background: var(--lime);
  border-color: var(--lime);
  color: #11120f;
}

:root[data-theme="dark"] .site-nav a:hover,
:root[data-theme="dark"] .site-nav a.active,
:root[data-theme="dark"] .filter-button:hover,
:root[data-theme="dark"] .filter-button.selected,
:root[data-theme="dark"] .detail-nav button:hover,
:root[data-theme="dark"] .detail-nav button.active {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--ink);
}

@media (max-width: 980px) {
  .site-header {
    align-items: center;
    flex-direction: row;
  }

  .site-nav,
  .filter-bar,
  .detail-nav {
    padding-right: 26px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent);
  }
}

@media (max-width: 640px) {
  :root {
    --header-offset: 51px;
  }

  .hero h1,
  .page-intro h1,
  .detail-hero h1 {
    line-height: 1.02;
  }

  .site-nav a {
    padding-inline: 10px;
  }

  .theme-toggle {
    min-width: 44px;
  }
}
