:root {
  color-scheme: light;
  --white: #ffffff;
  --soft-white: #f7f8fa;
  --warm-white: #faf9f7;
  --cool-white: #f3f6f8;
  --glass-white: rgba(255, 255, 255, 0.76);
  --ink: #121418;
  --graphite: #31363e;
  --muted: #707782;
  --faint: #9aa1aa;
  --line: rgba(23, 29, 38, 0.11);
  --line-strong: rgba(23, 29, 38, 0.18);
  --accent: #5d718c;
  --accent-strong: #415a79;
  --accent-soft: #e9eef4;
  --signal: #667c6f;
  --shadow-sm: 0 1px 2px rgba(20, 27, 36, 0.04), 0 8px 24px rgba(20, 27, 36, 0.05);
  --shadow-md: 0 2px 4px rgba(20, 27, 36, 0.04), 0 20px 56px rgba(20, 27, 36, 0.08);
  --page: min(1280px, calc(100% - 64px));
  --reading: 760px;
  --header-height: 64px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 118px;
  background: var(--soft-white);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--soft-white);
  color: var(--ink);
  font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, #ffffff 0, #f8f9fa 42%, #f5f7f9 100%);
  content: "";
  pointer-events: none;
}

body.menu-open,
body.contact-modal-open {
  overflow: hidden;
}

::selection {
  background: #cfd9e5;
  color: var(--ink);
}

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

button,
input {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

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

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:where(a, button, input):focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 120;
  width: 100%;
  height: 2px;
  background: var(--accent-strong);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.cursor-light,
.project-cursor-preview,
.agent-shell {
  display: none !important;
}

.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: var(--header-height);
  padding: 8px 10px;
  border: 1px solid rgba(29, 35, 44, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 40px rgba(24, 31, 41, 0.07);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transform: translateX(-50%);
  transition: background-color 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(29, 35, 44, 0.15);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 36px rgba(24, 31, 41, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 44px;
  gap: 10px;
  padding: 0 8px 0 4px;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 7px;
  background: var(--ink);
  color: var(--white);
  font-size: 11px;
  font-weight: 750;
}

.site-nav {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 2px;
  min-height: 50px;
  padding: 2px;
  border: 1px solid rgba(26, 32, 40, 0.08);
  border-radius: 999px;
  background: rgba(242, 244, 247, 0.74);
}

.nav-indicator {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  display: block;
  width: var(--nav-indicator-width, 60px);
  height: var(--nav-indicator-height, 44px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow:
    0 1px 2px rgba(18, 23, 30, 0.08),
    0 6px 18px rgba(18, 23, 30, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(
      var(--nav-indicator-x, 0),
      var(--nav-indicator-y, 0),
      0
    )
    scale(0.94);
  transform-origin: center;
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  transition:
    width 320ms var(--ease-out),
    height 320ms var(--ease-out),
    opacity 150ms ease,
    transform 320ms var(--ease-out),
    border-color 180ms ease,
    box-shadow 180ms ease;
  will-change: width, transform;
}

.site-nav.nav-indicator-ready .nav-indicator.is-visible {
  opacity: 1;
  transform: translate3d(
      var(--nav-indicator-x, 0),
      var(--nav-indicator-y, 0),
      0
    )
    scale(1);
}

.site-nav.is-hovering .nav-indicator {
  border-color: rgba(255, 255, 255, 1);
  box-shadow:
    0 2px 4px rgba(18, 23, 30, 0.08),
    0 9px 22px rgba(18, 23, 30, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.site-nav.nav-indicator-instant .nav-indicator {
  transition: none;
}

.site-nav a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 44px;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
  transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a:focus-visible {
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  background: var(--white);
  box-shadow: 0 1px 2px rgba(18, 23, 30, 0.08), 0 5px 16px rgba(18, 23, 30, 0.06);
  color: var(--ink);
}

.site-nav.nav-indicator-ready a[aria-current="page"] {
  background: transparent;
  box-shadow: none;
}

.site-utilities {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 4px;
}

.utility-action,
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 13px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--graphite);
  font-size: 13px;
  font-weight: 600;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.utility-action:hover {
  background: var(--ink);
  color: var(--white);
}

.mobile-menu-toggle {
  display: none;
  width: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--white);
}

.mobile-menu-toggle__icon {
  position: relative;
  width: 18px;
  height: 12px;
}

.mobile-menu-toggle__icon::before,
.mobile-menu-toggle__icon::after {
  position: absolute;
  left: 0;
  width: 18px;
  height: 1px;
  background: currentColor;
  content: "";
  transition: top 180ms ease, transform 180ms ease;
}

.mobile-menu-toggle__icon::before {
  top: 2px;
}

.mobile-menu-toggle__icon::after {
  top: 9px;
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__icon::before {
  top: 6px;
  transform: rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__icon::after {
  top: 6px;
  transform: rotate(-45deg);
}

.mobile-menu-panel {
  position: fixed;
  top: 88px;
  right: 16px;
  left: 16px;
  z-index: 99;
  display: none;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(-8px);
  visibility: hidden;
  transition: opacity 180ms ease, transform 220ms var(--ease-out), visibility 180ms ease;
}

.mobile-menu-panel a,
.mobile-menu-panel button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
}

.mobile-menu-panel a:last-child,
.mobile-menu-panel button:last-child {
  border-bottom: 0;
}

.menu-open .mobile-menu-panel {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

main {
  display: block;
}

body[data-page-view="home"] main {
  display: flex;
  flex-direction: column;
}

body[data-page-view="home"] .portfolio-hero { order: 1; }
body[data-page-view="home"] .home-work-preview { order: 2; }
body[data-page-view="home"] .portfolio-thesis { order: 3; }
body[data-page-view="home"] .home-playground-preview { order: 4; }
body[data-page-view="home"] .home-closing-cta { order: 5; }

.eyebrow,
.work-index,
.portfolio-section-heading > span,
.portfolio-hero__meta,
.case-card > span,
.case-system-grid article > span,
.case-detail-strip article > span,
.lab-card > span,
.about-experience-card > span {
  margin: 0;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
}

.portfolio-hero,
.home-work-preview,
.portfolio-thesis,
.home-playground-preview,
.portfolio-work,
.portfolio-lab,
.about-page > section {
  width: var(--page);
  margin: 0 auto;
}

.portfolio-hero {
  display: flex;
  min-height: min(680px, calc(100svh - 24px));
  padding: 112px 0 34px;
  flex-direction: column;
  justify-content: space-between;
}

.portfolio-hero__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.portfolio-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  align-items: center;
  gap: 54px;
  padding: 42px 0 18px;
}

.portfolio-hero__copy {
  max-width: 720px;
}

.portfolio-hero h1 {
  margin: 16px 0 22px;
  font-size: 64px;
  font-weight: 620;
  line-height: 1;
}

.portfolio-hero h1 .hero-name {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 560;
  line-height: 1.25;
}

.portfolio-hero h1 .hero-role {
  display: block;
}

.portfolio-hero__lede {
  max-width: 660px;
  margin: 0;
  color: var(--graphite);
  font-size: 19px;
  line-height: 1.48;
}

.portfolio-hero__note {
  max-width: 600px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.ia-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.ia-action,
.case-return {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
}

.ia-action:hover,
.case-return:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.ia-action--primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.portfolio-hero__showcase {
  position: relative;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-md);
  transform: translate3d(var(--card-x, 0), var(--card-y, 0), 0);
  transition: transform 260ms var(--ease-out), border-color 200ms ease, box-shadow 260ms ease;
  will-change: transform;
}

.portfolio-hero__showcase:hover {
  border-color: var(--line-strong);
  box-shadow: 0 4px 10px rgba(20, 27, 36, 0.04), 0 28px 70px rgba(20, 27, 36, 0.12);
}

.portfolio-showcase__frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--cool-white);
}

.portfolio-showcase__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  text-transform: uppercase;
}

.portfolio-showcase__frame figure {
  position: relative;
  height: 250px;
  min-height: 0;
  margin: 0;
  overflow: hidden;
}

.portfolio-showcase__frame img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}

.portfolio-hero__showcase:hover img {
  transform: scale(1.025);
}

.portfolio-showcase__caption {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 18px;
  padding: 16px 6px 6px;
}

.portfolio-showcase__caption span,
.portfolio-showcase__caption em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.portfolio-showcase__caption strong {
  font-size: 14px;
}

.portfolio-showcase__caption em {
  grid-column: 2;
}

.portfolio-hero__evidence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.portfolio-hero__evidence article {
  min-width: 0;
  padding: 20px 24px 22px 0;
}

.portfolio-hero__evidence article + article {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.portfolio-hero__evidence span {
  color: var(--faint);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.portfolio-hero__evidence strong {
  display: block;
  margin-top: 8px;
  font-size: 15px;
}

.portfolio-hero__evidence p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.portfolio-section-heading {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 16px 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.portfolio-section-heading h1,
.portfolio-section-heading h2 {
  max-width: 920px;
  margin: 0;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.12;
}

.portfolio-section-heading p {
  grid-column: 2;
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.portfolio-thesis {
  padding: 104px 0;
}

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

.thesis-list article {
  padding: 32px 34px 12px 0;
}

.thesis-list article + article {
  padding-left: 34px;
  border-left: 1px solid var(--line);
}

.thesis-list span {
  color: var(--accent);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.thesis-list h3 {
  margin: 34px 0 12px;
  font-size: 22px;
  font-weight: 620;
}

.thesis-list p {
  max-width: 340px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.home-about-preview__body {
  display: grid;
  padding-top: 44px;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 76px;
}

.home-about-preview__intro {
  max-width: 420px;
}

.home-about-preview__intro p {
  margin: 0;
  color: var(--graphite);
  font-size: 18px;
  line-height: 1.65;
}

.home-about-preview__intro a {
  display: inline-flex;
  min-height: 44px;
  margin-top: 28px;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 650;
}

.home-about-preview__intro a span {
  transition: transform 180ms ease;
}

.home-about-preview__intro a:hover span {
  transform: translateX(3px);
}

.home-about-preview .thesis-list {
  display: block;
  border-top: 1px solid var(--line);
}

.home-about-preview .thesis-list article,
.home-about-preview .thesis-list article + article {
  display: grid;
  min-height: 108px;
  padding: 24px 0;
  grid-template-columns: 50px minmax(150px, 0.62fr) minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  border-right: 0;
  border-bottom: 1px solid var(--line);
  border-left: 0;
}

.home-about-preview .thesis-list h3 {
  margin: 0;
  font-size: 18px;
}

.home-about-preview .thesis-list p {
  max-width: 420px;
  font-size: 14px;
}

.home-work-preview,
.home-playground-preview {
  padding: 104px 0;
}

.home-work-preview {
  border-top: 1px solid var(--line);
}

.project-index {
  margin-top: 10px;
  border-bottom: 1px solid var(--line);
}

.project-index__row {
  position: relative;
  display: block;
  padding: 34px 0 30px;
  border-top: 1px solid var(--line);
  transition: border-color 180ms ease, color 180ms ease;
}

.project-index__row:hover {
  border-top-color: var(--line-strong);
}

.project-index__meta {
  display: grid;
  grid-template-columns: 56px 100px minmax(140px, 1fr) auto;
  gap: 18px;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
}

.project-index--home .project-index__meta {
  grid-template-columns: 56px 100px minmax(0, 1fr);
}

.project-index__meta span:last-child {
  text-align: right;
}

.project-index--home .project-index__meta span:last-child {
  text-align: left;
}

.project-index__body {
  display: grid;
  min-height: 320px;
  padding: 32px 0 34px;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  align-items: center;
  gap: 76px;
}

.project-index--home .project-index__body {
  min-height: 286px;
}

.project-index__copy {
  max-width: 570px;
}

.project-index__type {
  margin: 0 0 18px;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.project-index__copy h2,
.project-index__copy h3 {
  margin: 0;
  font-size: 44px;
  font-weight: 610;
  line-height: 1.04;
}

.project-index--home .project-index__copy h3 {
  font-size: 38px;
}

.project-index__value {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--graphite);
  font-size: 17px;
  line-height: 1.58;
}

.project-index--home .project-index__value {
  font-size: 15px;
}

.project-index__methods {
  display: flex;
  margin-top: 30px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  flex-wrap: wrap;
}

.project-index__methods span {
  display: inline-flex;
  align-items: center;
}

.project-index__methods span + span::before {
  margin: 0 9px;
  color: var(--faint);
  content: "/";
}

.project-index__media {
  position: relative;
  min-width: 0;
  height: 300px;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 36px rgba(30, 39, 50, 0.06);
  transform: translate3d(0, 0, 0);
  transition: border-color 220ms ease, box-shadow 260ms ease, transform 260ms var(--ease-out);
}

.project-index--home .project-index__media {
  height: 270px;
  min-height: 0;
}

.project-index__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  transition: transform 520ms var(--ease-out);
}

.project-index__row:hover .project-index__media {
  border-color: var(--line-strong);
  box-shadow: 0 18px 48px rgba(30, 39, 50, 0.1);
  transform: translateY(-3px);
}

.project-index__row:hover .project-index__media img {
  transform: scale(1.018);
}

.project-index__media--signal {
  display: grid;
  padding: 48px 34px 40px;
  grid-template-columns: auto minmax(28px, 1fr) auto minmax(28px, 1fr) auto;
  align-items: center;
  gap: 12px;
  background:
    linear-gradient(rgba(65, 90, 121, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(65, 90, 121, 0.055) 1px, transparent 1px),
    #f7f9fb;
  background-size: 32px 32px;
}

.project-index__media--signal > span,
.project-index__media--signal > em {
  position: absolute;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-style: normal;
  text-transform: uppercase;
}

.project-index__media--signal > span {
  top: 18px;
  left: 20px;
}

.project-index__media--signal > em {
  right: 20px;
  bottom: 18px;
}

.project-index__media--signal strong {
  display: grid;
  min-height: 70px;
  padding: 0 14px;
  place-items: center;
  border: 1px solid rgba(65, 90, 121, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  text-align: center;
}

.project-index__media--signal i {
  height: 1px;
  background: rgba(65, 90, 121, 0.34);
  transform: scaleX(0.76);
  transition: transform 360ms var(--ease-out);
}

.project-index__row:hover .project-index__media--signal i {
  transform: scaleX(1);
}

.project-index__media--health {
  background-color: #f6f8f7;
  background-image:
    linear-gradient(rgba(76, 100, 85, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 100, 85, 0.05) 1px, transparent 1px);
}

.project-index__footer {
  display: flex;
  min-height: 46px;
  padding-top: 18px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.project-index__footer strong {
  color: var(--ink);
  font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 12px;
  text-transform: none;
}

.project-index__footer strong span {
  display: inline-block;
  margin-left: 5px;
  transition: transform 180ms ease;
}

.project-index__row:hover .project-index__footer strong span {
  transform: translate(2px, -2px);
}

.home-work-preview__list {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.home-work-preview__primary,
.home-work-preview__item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  transition: transform 240ms var(--ease-out), box-shadow 240ms ease, border-color 200ms ease;
}

.home-work-preview__primary:hover,
.home-work-preview__item:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.home-work-preview__primary {
  display: grid;
  min-height: 430px;
  padding: 34px;
  align-content: space-between;
  isolation: isolate;
}

.home-work-preview__primary::after {
  position: absolute;
  inset: 18px 18px 18px 50%;
  z-index: -1;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--cool-white) url("assets/axel-cover.svg") center / cover no-repeat;
  content: "";
  transition: transform 500ms var(--ease-out);
}

.home-work-preview__primary:hover::after {
  transform: scale(1.015);
}

.home-work-preview__primary > div {
  align-self: end;
  max-width: 46%;
}

.home-work-preview__primary h3,
.home-work-preview__item h3 {
  margin: 0;
  font-size: 36px;
  font-weight: 610;
}

.home-work-preview__primary p,
.home-work-preview__item p {
  margin: 8px 0;
  color: var(--graphite);
  font-size: 15px;
}

.home-work-preview__primary em,
.home-work-preview__item em {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
}

.home-work-preview__primary > strong {
  align-self: end;
  justify-self: start;
  position: relative;
  z-index: 1;
  font-size: 13px;
}

.home-work-preview__supporting {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-work-preview__item {
  display: grid;
  min-height: 270px;
  padding: 28px;
  align-content: space-between;
}

.home-work-preview__item::after {
  position: absolute;
  right: 26px;
  bottom: 26px;
  width: 92px;
  height: 60px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--cool-white);
  box-shadow: -12px -12px 0 rgba(233, 238, 244, 0.8);
  content: "";
}

.home-work-preview__item:nth-child(2)::after {
  border-radius: 50% 50% 6px 6px;
  box-shadow: -12px -12px 0 rgba(235, 239, 236, 0.9);
}

.home-work-preview__item > div {
  max-width: calc(100% - 112px);
}

.home-work-preview__item h3 {
  font-size: 27px;
}

.home-playground-preview {
  border-top: 1px solid var(--line);
}

.home-playground-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.home-playground-grid > * {
  position: relative;
  display: flex;
  min-height: 250px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 220ms var(--ease-out), border-color 180ms ease, box-shadow 220ms ease;
}

.home-playground-grid > *:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-4px);
}

.home-playground-grid > *::before,
.home-playground-grid > *::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.home-playground-grid > :nth-child(1)::before {
  top: 34px;
  left: 50%;
  width: 98px;
  height: 98px;
  border: 1px solid rgba(93, 113, 140, 0.3);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(93, 113, 140, 0.08), 0 0 0 44px rgba(93, 113, 140, 0.04);
  transform: translateX(-50%);
  animation: quietPulse 4s var(--ease-soft) infinite;
}

.home-playground-grid > :nth-child(2)::before {
  top: 34px;
  right: 28px;
  left: 28px;
  height: 92px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: repeating-linear-gradient(90deg, transparent 0 39px, rgba(93, 113, 140, 0.09) 40px), repeating-linear-gradient(0deg, transparent 0 27px, rgba(93, 113, 140, 0.09) 28px);
}

.home-playground-grid > :nth-child(3)::before {
  top: 36px;
  left: 28px;
  width: 70%;
  height: 10px;
  border-radius: 2px;
  background: var(--ink);
  box-shadow: 0 22px 0 rgba(18, 20, 24, 0.2), 0 44px 0 rgba(18, 20, 24, 0.1);
}

.home-playground-grid span {
  position: relative;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.home-playground-grid strong {
  position: relative;
  margin-top: 8px;
  font-size: 20px;
}

.home-playground-grid p {
  position: relative;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.home-closing-cta {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 92px max(32px, calc((100% - 1280px) / 2));
  background: var(--ink);
  color: var(--white);
}

.home-closing-cta .eyebrow {
  color: #aeb9c7;
}

.home-closing-cta h2 {
  max-width: 840px;
  margin: 18px 0 0;
  font-size: 48px;
  font-weight: 570;
  line-height: 1.1;
}

.home-closing-cta .ia-action {
  border-color: rgba(255, 255, 255, 0.24);
  background: transparent;
  color: var(--white);
}

.home-closing-cta .ia-action--primary {
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
}

.portfolio-work,
.portfolio-lab {
  padding: 154px 0 116px;
}

.work-featured {
  display: grid;
  min-height: 550px;
  margin-top: 28px;
  overflow: hidden;
  grid-template-columns: 0.82fr 1.18fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  transition: transform 260ms var(--ease-out), border-color 180ms ease, box-shadow 260ms ease;
}

.work-featured:hover,
.work-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.work-featured__copy {
  display: flex;
  min-width: 0;
  padding: 42px;
  flex-direction: column;
}

.work-featured__copy h2,
.work-card h2 {
  margin: auto 0 0;
  font-size: 48px;
  font-weight: 610;
  line-height: 1.05;
}

.work-featured__copy p,
.work-card p {
  margin: 12px 0 4px;
  color: var(--graphite);
  font-size: 16px;
}

.work-featured__copy em,
.work-card em {
  max-width: 520px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.work-featured__copy > strong,
.work-card > strong {
  margin-top: 28px;
  font-size: 13px;
}

.work-tags {
  display: flex;
  gap: 6px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.work-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
  font-size: 11px;
}

.work-featured__media {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background: var(--cool-white);
}

.work-featured__cover {
  position: absolute;
  inset: 8% auto auto 7%;
  width: 74%;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  transform: translate3d(var(--media-x, 0), var(--media-y, 0), 0) rotate(-1.5deg);
  transition: transform 500ms var(--ease-out);
}

.work-featured__panel {
  position: absolute;
  right: 8%;
  bottom: -24%;
  width: 34%;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  transform: translate3d(var(--media-x-inverse, 0), var(--media-y-inverse, 0), 0) rotate(2deg);
  transition: transform 500ms var(--ease-out);
}

.work-supporting {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.work-card {
  position: relative;
  display: flex;
  min-height: 510px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  flex-direction: column;
  transition: transform 260ms var(--ease-out), border-color 180ms ease, box-shadow 260ms ease;
}

.work-card__visual {
  position: relative;
  height: 220px;
  margin: 18px 0 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--cool-white);
}

.work-card__visual span {
  position: absolute;
  display: block;
  border: 1px solid rgba(65, 90, 121, 0.18);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm);
  transition: transform 500ms var(--ease-out);
}

.work-card__visual span:nth-child(1) {
  top: 22px;
  left: 22px;
  width: 62%;
  height: 48px;
}

.work-card__visual span:nth-child(2) {
  top: 86px;
  left: 22px;
  width: calc(100% - 44px);
  height: 94px;
}

.work-card__visual span:nth-child(3) {
  right: 36px;
  bottom: 20px;
  width: 38%;
  height: 34px;
  background: var(--accent-soft);
}

.work-card:hover .work-card__visual span:nth-child(1) {
  transform: translateX(7px);
}

.work-card:hover .work-card__visual span:nth-child(2) {
  transform: translateY(-5px);
}

.work-card:hover .work-card__visual span:nth-child(3) {
  transform: translate(-5px, -4px);
}

.work-card--deloitte .work-card__visual {
  background: #f3f6f4;
}

.work-card--deloitte .work-card__visual span:nth-child(3) {
  background: #e7eee9;
}

@keyframes quietPulse {
  0%, 100% { transform: translateX(-50%) scale(0.94); opacity: 0.7; }
  50% { transform: translateX(-50%) scale(1.04); opacity: 1; }
}

.lab-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.lab-card {
  position: relative;
  min-width: 0;
  min-height: 510px;
  overflow: hidden;
  padding: 20px 20px 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  transition: transform 240ms var(--ease-out), border-color 180ms ease, box-shadow 240ms ease;
}

.lab-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.lab-card__visual {
  position: relative;
  height: 270px;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--cool-white);
}

.lab-card h2 {
  margin: 10px 0 8px;
  font-size: 28px;
  font-weight: 610;
}

.lab-card > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.lab-card__visual::before,
.lab-card__visual::after {
  position: absolute;
  content: "";
}

.lab-card__visual--loop::before {
  top: 50%;
  left: 50%;
  width: 106px;
  height: 106px;
  border: 1px solid rgba(65, 90, 121, 0.28);
  border-radius: 50%;
  box-shadow: 0 0 0 32px rgba(93, 113, 140, 0.08), 0 0 0 66px rgba(93, 113, 140, 0.04);
  transform: translate(-50%, -50%);
  animation: labOrbit 7s linear infinite;
}

.lab-card__visual--loop::after {
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 0 10px rgba(65, 90, 121, 0.09);
  transform: translate(-50%, -50%);
}

.lab-card__visual--system {
  background-color: #f4f6f7;
  background-image: linear-gradient(rgba(31, 39, 49, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 39, 49, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

.lab-card__visual--system::before {
  top: 52px;
  left: 54px;
  width: 36%;
  height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 118px 84px 0 -1px var(--white), 118px 84px 0 0 var(--line-strong), 246px 10px 0 -1px var(--white), 246px 10px 0 0 var(--line-strong);
}

.lab-card__visual--system::after {
  top: 103px;
  left: 122px;
  width: 250px;
  height: 84px;
  border-top: 1px solid rgba(65, 90, 121, 0.4);
  border-right: 1px solid rgba(65, 90, 121, 0.4);
  transform: skewY(17deg);
}

.lab-card__visual--code {
  background: #181b20;
}

.lab-card__visual--code::before {
  top: 32px;
  right: 32px;
  left: 32px;
  height: 8px;
  border-radius: 2px;
  background: #d8dee7;
  box-shadow: 0 26px 0 #6f86a3, 0 52px 0 #9199a4, 0 78px 0 #d8dee7, 0 104px 0 #667c6f, 0 130px 0 #9199a4;
  opacity: 0.82;
  animation: codeBreathe 3.4s var(--ease-soft) infinite;
}

.lab-card__visual--code::after {
  right: 32px;
  bottom: 28px;
  width: 52px;
  height: 2px;
  background: #d8dee7;
  animation: caretBlink 1s steps(2, end) infinite;
}

.lab-card__visual--pumpkin {
  background: #f4f5f7;
}

.lab-card__visual--pumpkin::before {
  top: 50%;
  left: 50%;
  width: 180px;
  height: 180px;
  background: url("assets/pixel-pumpkin-sprite-transparent.png") 0 0 / 1440px 180px no-repeat;
  image-rendering: pixelated;
  transform: translate(-50%, -50%);
  animation: pumpkinFrames 1.2s steps(8) infinite;
}

.lab-card__visual--pumpkin::after {
  right: 25%;
  bottom: 36px;
  left: 25%;
  height: 1px;
  background: rgba(18, 20, 24, 0.14);
  box-shadow: 0 6px 18px rgba(18, 20, 24, 0.14);
}

@keyframes labOrbit {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes codeBreathe {
  0%, 100% { opacity: 0.55; transform: scaleX(0.92); transform-origin: left; }
  50% { opacity: 0.9; transform: scaleX(1); transform-origin: left; }
}

@keyframes caretBlink {
  50% { opacity: 0; }
}

@keyframes pumpkinFrames {
  to { background-position: -1440px 0; }
}

.about-page {
  padding-top: 1px;
}

.about-hero-profile {
  display: grid;
  min-height: min(760px, calc(100svh - 38px));
  padding: 144px 0 92px;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 90px;
}

.about-hero-profile__copy h1 {
  margin: 18px 0 24px;
  font-size: 58px;
  font-weight: 610;
  line-height: 1.02;
}

.about-hero-profile__copy h1 span {
  display: block;
}

.about-hero-profile__copy h1 span:first-child {
  color: var(--muted);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
}

.about-hero-profile__copy h1 span:last-child {
  max-width: 780px;
  margin-top: 14px;
  color: var(--graphite);
  font-size: 30px;
  font-weight: 480;
  line-height: 1.25;
}

.about-hero-profile__role {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.about-hero-profile__portrait {
  position: relative;
  margin: 0;
}

.about-hero-profile__portrait::before {
  position: absolute;
  inset: 14px -14px -14px 14px;
  z-index: -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--accent-soft);
  content: "";
}

.about-hero-profile__portrait > span {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 6px rgba(102, 124, 111, 0.14);
}

.about-hero-profile__portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  object-position: center 28%;
  box-shadow: var(--shadow-md);
}

.about-narrative-section,
.about-resume-section,
.about-play-section {
  display: grid;
  padding: 104px 0;
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 88px;
}

.about-narrative-copy h2,
.about-experience-column > h2,
.about-skill-panel > h2,
.about-education-card > h2,
.about-play-section h2 {
  margin: 0 0 30px;
  font-size: 30px;
  font-weight: 610;
}

.about-narrative-copy {
  max-width: 720px;
}

.about-narrative-copy p {
  margin: 0 0 20px;
  color: var(--graphite);
  font-size: 18px;
  line-height: 1.68;
}

.about-philosophy-card,
.about-skill-panel,
.about-education-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-sm);
}

.about-philosophy-card h2 {
  margin: 0 0 20px;
  font-size: 18px;
}

.about-philosophy-card article {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.about-philosophy-card h3,
.about-experience-card h3,
.about-skill-group h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
}

.about-philosophy-card p,
.about-experience-card p,
.about-education-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.about-resume-section {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
}

.about-experience-card {
  display: grid;
  padding: 26px 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 24px;
  border-top: 1px solid var(--line);
}

.about-experience-card > div strong {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.about-experience-card > p {
  grid-column: 1 / -1;
  max-width: 720px;
  font-size: 14px;
  line-height: 1.55;
}

.about-skills-column {
  display: grid;
  gap: 14px;
  align-content: start;
}

.about-skill-group {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.about-skill-group > div {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.about-skill-group span {
  display: inline-flex;
  min-height: 30px;
  padding: 6px 9px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
}

.about-education-card strong {
  font-size: 15px;
}

.about-education-card span,
.about-education-card em {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.about-play-section {
  grid-template-columns: 0.65fr 1.35fr;
}

.about-play-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.about-play-grid article {
  min-height: 170px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-play-grid span {
  font-size: 15px;
  font-weight: 650;
}

.about-play-grid p {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.about-return-section {
  padding: 50px 0 100px;
  border-top: 1px solid var(--line);
}

.about-return-section a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 650;
}

/* Editorial about layout: continuous reading, ruled credentials, minimal containers. */
.about-hero-profile {
  min-height: min(690px, calc(100svh - 32px));
  padding: 132px 0 78px;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 82px;
}

.about-hero-profile__copy h1,
.about-hero-profile__copy h1 span:first-child {
  margin: 18px 0 0;
  color: var(--ink);
  font-size: 54px;
  font-weight: 610;
  line-height: 1.04;
}

.about-hero-profile__copy h1 span:last-child {
  max-width: 760px;
  margin-top: 20px;
  color: var(--graphite);
  font-size: 29px;
  font-weight: 470;
  line-height: 1.28;
}

.about-hero-profile__role {
  max-width: 700px;
  margin-top: 28px;
  font-size: 16px;
  line-height: 1.6;
}

.about-hero-profile__portrait::before {
  inset: 10px -10px -10px 10px;
  background: #edf1f4;
}

.about-hero-profile__portrait img {
  box-shadow: 0 16px 42px rgba(25, 33, 43, 0.1);
}

.about-narrative-section,
.about-resume-section,
.about-play-section {
  padding: 96px 0;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: start;
  gap: 80px;
}

.about-section-intro h2,
.about-narrative-copy h2,
.about-experience-column > h2,
.about-play-section h2 {
  max-width: 340px;
  margin: 16px 0 0;
  font-size: 27px;
  font-weight: 590;
  line-height: 1.24;
}

.about-narrative-copy {
  max-width: 820px;
}

.about-narrative-copy p {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: 17px;
  line-height: 1.7;
}

.about-principles {
  margin-top: 42px;
  border-top: 1px solid var(--line);
}

.about-principles article {
  display: grid;
  min-height: 92px;
  padding: 22px 0;
  grid-template-columns: 44px 190px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.about-principles span {
  color: var(--accent);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.about-principles h3 {
  margin: 0;
  font-size: 15px;
}

.about-principles p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.about-experience-table {
  border-top: 1px solid var(--line);
}

.about-experience-card {
  min-height: 118px;
  padding: 24px 0;
  grid-template-columns: 120px minmax(250px, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 22px;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}

.about-experience-card > span {
  padding-top: 2px;
}

.about-experience-card > div strong {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.about-experience-card h3 {
  color: var(--muted);
  font-size: 13px;
  font-weight: 520;
}

.about-experience-card > p {
  grid-column: auto;
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.about-credentials-section {
  padding: 0 0 96px;
  border-top: 1px solid var(--line);
}

.about-education-block,
.about-skills-block {
  display: grid;
  padding: 96px 0 0;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: start;
  gap: 80px;
}

.about-skills-block {
  margin-top: 76px;
  padding-top: 76px;
  border-top: 1px solid var(--line);
}

.about-education-row {
  display: grid;
  min-height: 118px;
  padding: 24px 0;
  grid-template-columns: 120px minmax(280px, 1fr) auto;
  align-items: start;
  gap: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-education-row > span,
.about-education-row > p {
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.about-education-row strong {
  font-size: 15px;
}

.about-education-row p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.about-skill-panel {
  padding: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.about-skill-group {
  display: grid;
  min-height: 86px;
  padding: 22px 0;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}

.about-skill-group p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.about-play-grid {
  border-top: 1px solid var(--line);
  border-left: 0;
}

.about-play-grid article {
  min-height: 156px;
  padding: 22px 24px 22px 0;
}

.about-play-grid article:nth-child(even) {
  padding-right: 0;
  padding-left: 24px;
}

.case-page {
  overflow: clip;
}

.case-page > :where(.case-hero, .case-detail-strip, .case-chapter-nav, .case-section, .case-prototype-cta, .case-footer) {
  width: min(1180px, calc(100% - 64px));
  margin-right: auto;
  margin-left: auto;
}

.case-hero {
  display: grid;
  min-height: min(790px, calc(100svh - 24px));
  padding: 150px 0 94px;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  align-items: center;
  gap: 82px;
}

.case-hero h1 {
  margin: 20px 0 26px;
  font-size: 62px;
  font-weight: 610;
  line-height: 1.02;
}

.hero-title-line {
  display: block;
}

.hero-title-line-light {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 19px;
  font-weight: 520;
  line-height: 1.3;
}

.case-lede {
  max-width: 720px;
  margin: 0;
  color: var(--graphite);
  font-size: 19px;
  line-height: 1.55;
}

.case-brief {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--glass-white);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
}

.case-brief dl {
  margin: 0;
}

.case-brief dl > div {
  display: grid;
  padding: 16px 0;
  grid-template-columns: 98px 1fr;
  gap: 16px;
  border-top: 1px solid var(--line);
}

.case-brief dl > div:first-child {
  padding-top: 0;
  border-top: 0;
}

.case-brief dt {
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.case-brief dd {
  margin: 0;
  color: var(--graphite);
  font-size: 13px;
}

.case-figma-cover {
  margin: 22px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--cool-white);
}

.case-figma-cover img {
  width: 100%;
}

.case-figma-cover figcaption {
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.case-tldr {
  display: grid;
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 70px 0;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 72px;
  background: var(--accent-soft);
  box-shadow: 0 0 0 100vmax var(--accent-soft);
  clip-path: inset(0 -100vmax);
}

.case-tldr h2 {
  margin: 16px 0 0;
  font-size: 38px;
  font-weight: 590;
  line-height: 1.12;
}

.case-tldr > p {
  align-self: end;
  margin: 0;
  color: var(--graphite);
  font-size: 16px;
  line-height: 1.65;
}

.case-detail-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.case-detail-strip article {
  min-width: 0;
  padding: 30px 24px 30px 0;
}

.case-detail-strip article + article {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.case-detail-strip p {
  margin: 10px 0 0;
  color: var(--graphite);
  font-size: 12px;
  line-height: 1.55;
}

.case-detail-strip article:nth-last-child(4):first-child,
.case-detail-strip article:nth-last-child(4):first-child ~ article {
  width: auto;
}

.case-snapshot:has(> article:nth-child(4):last-child) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.case-chapter-nav {
  --chapter-pill-x: 0px;
  --chapter-pill-width: 0px;
  position: sticky;
  top: 92px;
  z-index: 40;
  isolation: isolate;
  display: flex;
  min-height: 54px;
  margin-top: 20px !important;
  padding: 5px;
  align-items: center;
  gap: 3px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(240, 245, 250, 0.46)),
    rgba(255, 255, 255, 0.38);
  box-shadow:
    0 18px 42px rgba(52, 66, 82, 0.11),
    0 2px 8px rgba(52, 66, 82, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(78, 96, 116, 0.1);
  backdrop-filter: blur(28px) saturate(175%) contrast(104%);
  -webkit-backdrop-filter: blur(28px) saturate(175%) contrast(104%);
  scrollbar-width: none;
}

.case-chapter-nav::before {
  position: absolute;
  inset: 1px;
  z-index: 0;
  border-radius: 7px;
  background: linear-gradient(
    108deg,
    rgba(255, 255, 255, 0.52) 0%,
    rgba(255, 255, 255, 0.08) 32%,
    rgba(185, 204, 224, 0.12) 68%,
    rgba(255, 255, 255, 0.38) 100%
  );
  content: "";
  pointer-events: none;
}

.case-chapter-nav::after {
  position: absolute;
  top: 5px;
  left: 0;
  z-index: 1;
  width: var(--chapter-pill-width);
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 7px;
  background:
    radial-gradient(90% 130% at 14% 0%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.16) 66%, transparent 76%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(221, 232, 243, 0.64));
  box-shadow:
    0 9px 22px rgba(55, 73, 94, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(86, 108, 132, 0.13),
    inset 10px 0 20px rgba(255, 255, 255, 0.24);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translate3d(var(--chapter-pill-x), 0, 0);
  transition:
    width 360ms var(--ease-out),
    transform 360ms var(--ease-out),
    opacity 180ms ease;
  will-change: width, transform;
}

.case-chapter-nav.has-active-chapter::after {
  opacity: 1;
}

.case-chapter-nav::-webkit-scrollbar {
  display: none;
}

.case-chapter-nav a {
  position: relative;
  z-index: 2;
  display: inline-flex;
  min-width: max-content;
  min-height: 44px;
  padding: 0 13px;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  transition: background-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.case-chapter-nav a span {
  color: var(--faint);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  transition: color 180ms ease;
}

.case-chapter-nav a:hover {
  background: rgba(255, 255, 255, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.case-chapter-nav a.is-active {
  background: transparent;
  color: #1d2732;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

.case-chapter-nav a.is-active span {
  color: #687f98;
}

.case-section,
.case-prototype-cta {
  padding: 106px 0;
  border-bottom: 1px solid var(--line);
}

.case-section-heading {
  display: grid;
  margin-bottom: 52px;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 30px;
}

.case-section-heading h2 {
  max-width: 850px;
  margin: 0;
  font-size: 44px;
  font-weight: 590;
  line-height: 1.12;
}

.case-copy,
.case-grid,
.case-grid-wide,
.case-two-column,
.case-system-grid,
.case-hmw-grid,
.case-stat-grid {
  display: grid;
  gap: 14px;
}

.case-overview-logic,
.case-system-grid,
.case-flow,
.case-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.case-two-column,
.case-grid-wide,
.case-board-layout,
.case-architecture-body,
.case-solution-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.case-architecture-body {
  grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1.45fr);
}

.case-architecture-body .case-system-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-validation-notes {
  margin-top: 18px;
}

.case-overview-logic article,
.case-card,
.case-system-grid article,
.case-hmw-grid article,
.case-stat-grid article,
.case-flow > div,
.case-board-notes article {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.case-overview-logic article {
  min-height: 230px;
}

.case-overview-logic article > span,
.case-hmw-grid article > span,
.case-stat-grid article > span,
.case-board-notes article > span,
.case-flow span {
  color: var(--accent);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.case-overview-logic p,
.case-card p,
.case-system-grid p,
.case-hmw-grid p,
.case-stat-grid p,
.case-board-notes p,
.case-flow p {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.case-card h3,
.case-hmw-grid h3,
.case-board-notes h3 {
  margin: 14px 0 0;
  font-size: 20px;
  font-weight: 620;
  line-height: 1.25;
}

.case-system-grid article {
  min-height: 260px;
}

.case-system-grid strong,
.case-flow strong,
.case-stat-grid strong {
  display: block;
  margin-top: 24px;
  font-size: 19px;
}

.case-flow {
  position: relative;
  display: grid;
  gap: 0;
}

.case-flow::before {
  position: absolute;
  top: 45px;
  right: 12.5%;
  left: 12.5%;
  z-index: -1;
  height: 1px;
  background: var(--line-strong);
  content: "";
}

.case-flow > div {
  min-height: 230px;
  border-radius: 0;
}

.case-flow > div + div {
  border-left: 0;
}

.case-board-image,
.case-evidence-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.case-board-image img,
.case-evidence-figure img {
  width: 100%;
}

.case-board-image figcaption,
.case-evidence-figure figcaption {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.case-board-notes {
  display: grid;
  gap: 14px;
}

.case-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}

.case-list li + li {
  margin-top: 8px;
}

.case-solution-lead {
  display: grid;
  gap: 14px;
}

.case-prototype-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
}

.case-prototype-cta h2,
.case-footer h2 {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: 44px;
  font-weight: 590;
  line-height: 1.12;
}

.case-prototype-cta p:not(.eyebrow) {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
}

.case-footer {
  width: min(1180px, calc(100% - 64px));
  max-width: none !important;
  margin-top: 0 !important;
  padding: 100px 0;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 0 0 100vmax var(--ink);
  clip-path: inset(0 -100vmax);
}

.case-footer .eyebrow {
  color: #aeb9c7;
}

.case-footer .case-return {
  margin-top: 34px;
  border-color: rgba(255, 255, 255, 0.28);
  background: var(--white);
  color: var(--ink);
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  padding: 24px;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
}

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

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(16, 20, 26, 0.36);
  backdrop-filter: blur(8px);
}

.contact-modal__card {
  position: relative;
  z-index: 1;
  width: min(600px, 100%);
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 32px 100px rgba(15, 20, 28, 0.22);
  backdrop-filter: blur(24px);
  transform: translateY(14px) scale(0.985);
  transition: transform 260ms var(--ease-out);
}

.contact-modal.is-open .contact-modal__card {
  transform: translateY(0) scale(1);
}

.contact-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  font-size: 24px;
}

.contact-modal__card h2 {
  max-width: 480px;
  margin: 18px 0;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.12;
}

.contact-modal__card > p:not(.eyebrow) {
  max-width: 500px;
  color: var(--muted);
}

.contact-modal__links {
  display: grid;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.contact-modal__links a {
  display: flex;
  min-height: 54px;
  padding: 0 4px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 620;
}

.contact-modal__links em {
  color: var(--muted);
  font-style: normal;
}

.site-footer {
  width: 100%;
  padding: 42px max(32px, calc((100% - 1280px) / 2));
  border-top: 1px solid var(--line);
  background: var(--warm-white);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
}

.site-footer strong {
  display: block;
  font-size: 15px;
}

.site-footer p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.site-footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer a {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.motion-ready .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(18px);
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out);
}

body.page-entering main {
  animation: pageEnter 420ms var(--ease-out) both;
}

body.page-leaving main {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 220ms ease, transform 240ms var(--ease-soft);
}

@keyframes pageEnter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1050px) {
  :root {
    --page: min(calc(100% - 48px), 980px);
  }

  .portfolio-hero__layout,
  .case-hero {
    gap: 42px;
  }

  .portfolio-hero h1 {
    font-size: 58px;
  }

  .portfolio-section-heading h1,
  .portfolio-section-heading h2,
  .home-closing-cta h2,
  .work-featured__copy h2 {
    font-size: 40px;
  }

  .site-nav a {
    min-width: 52px;
    padding: 0 10px;
  }

  .case-page > :where(.case-hero, .case-detail-strip, .case-chapter-nav, .case-section, .case-prototype-cta, .case-footer),
  .case-tldr {
    width: min(calc(100% - 48px), 980px);
  }

  .case-hero h1 {
    font-size: 52px;
  }

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

  .case-detail-strip article:nth-child(4) {
    padding-left: 0;
    border-left: 0;
  }

  .case-snapshot:has(> article:nth-child(4):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-snapshot:has(> article:nth-child(4):last-child) article:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .case-system-grid,
  .case-overview-logic,
  .case-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-hero-profile {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 52px;
  }
}

@media (max-width: 820px) {
  :root {
    --page: calc(100% - 36px);
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header > .site-nav,
  .site-header > .site-utilities {
    display: none;
  }

  .mobile-menu-toggle,
  .mobile-menu-panel {
    display: inline-flex;
  }

  .mobile-menu-panel {
    display: block;
  }

  .portfolio-hero {
    min-height: auto;
    padding-top: 112px;
  }

  .portfolio-hero__layout,
  .case-hero,
  .case-tldr,
  .about-hero-profile,
  .about-narrative-section,
  .about-resume-section,
  .about-play-section {
    grid-template-columns: 1fr;
  }

  .portfolio-hero__layout {
    padding-top: 44px;
  }

  .portfolio-hero__showcase {
    max-width: 620px;
  }

  .portfolio-hero__evidence,
  .thesis-list,
  .home-playground-grid,
  .work-supporting,
  .lab-index {
    grid-template-columns: 1fr;
  }

  .portfolio-hero__evidence article + article,
  .thesis-list article + article {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .portfolio-section-heading,
  .case-section-heading {
    grid-template-columns: 1fr;
  }

  .portfolio-section-heading p {
    grid-column: 1;
  }

  .portfolio-section-heading h1,
  .portfolio-section-heading h2,
  .case-section-heading h2 {
    font-size: 38px;
  }

  .home-work-preview__primary::after {
    inset: 18px 18px 170px 42%;
  }

  .work-featured {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .work-featured__copy {
    min-height: 420px;
  }

  .work-featured__media {
    min-height: 440px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .about-hero-profile {
    padding-top: 126px;
  }

  .about-hero-profile__portrait {
    width: min(390px, calc(100% - 16px));
  }

  .about-narrative-section,
  .about-resume-section,
  .about-play-section {
    gap: 48px;
  }

  .case-page > :where(.case-hero, .case-detail-strip, .case-chapter-nav, .case-section, .case-prototype-cta, .case-footer),
  .case-tldr {
    width: calc(100% - 36px);
  }

  .case-hero {
    min-height: auto;
    padding: 128px 0 72px;
  }

  .case-tldr {
    gap: 28px;
  }

  .case-tldr > p {
    align-self: auto;
  }

  .case-chapter-nav {
    top: 88px;
  }

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

  .case-board-layout,
  .case-architecture-body,
  .case-solution-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  :root {
    --page: calc(100% - 28px);
  }

  html {
    scroll-padding-top: 106px;
  }

  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 58px;
  }

  .brand {
    font-size: 13px;
  }

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

  .mobile-menu-panel {
    top: 78px;
    right: 10px;
    left: 10px;
  }

  .portfolio-hero__meta {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 18px;
  }

  .portfolio-hero__meta span:nth-child(2) {
    display: none;
  }

  .portfolio-hero h1,
  .about-hero-profile__copy h1,
  .case-hero h1 {
    font-size: 42px;
    line-height: 1.04;
  }

  .portfolio-hero h1 .hero-name,
  .hero-title-line-light,
  .about-hero-profile__copy h1 span:first-child {
    font-size: 16px;
  }

  .portfolio-hero__lede,
  .case-lede,
  .about-hero-profile__role {
    font-size: 17px;
  }

  .portfolio-hero__showcase {
    padding: 7px;
  }

  .portfolio-showcase__frame figure,
  .portfolio-showcase__frame img {
    min-height: 220px;
  }

  .portfolio-showcase__caption {
    grid-template-columns: 1fr;
  }

  .portfolio-showcase__caption em {
    grid-column: 1;
  }

  .portfolio-thesis,
  .home-work-preview,
  .home-playground-preview,
  .about-narrative-section,
  .about-resume-section,
  .about-play-section {
    padding-top: 82px;
    padding-bottom: 82px;
  }

  .portfolio-section-heading h1,
  .portfolio-section-heading h2,
  .case-section-heading h2,
  .case-tldr h2,
  .case-prototype-cta h2,
  .case-footer h2,
  .home-closing-cta h2 {
    font-size: 32px;
  }

  .home-work-preview__primary {
    min-height: 520px;
    padding: 22px;
  }

  .home-work-preview__primary::after {
    inset: 74px 14px 170px;
  }

  .home-work-preview__primary > div {
    max-width: 100%;
  }

  .home-work-preview__primary h3,
  .work-featured__copy h2,
  .work-card h2 {
    font-size: 32px;
  }

  .home-work-preview__primary > strong {
    justify-self: start;
  }

  .home-work-preview__supporting {
    grid-template-columns: 1fr;
  }

  .home-work-preview__item {
    min-height: 300px;
    padding: 22px;
  }

  .home-closing-cta {
    padding: 72px 20px;
  }

  .portfolio-work,
  .portfolio-lab {
    padding: 126px 0 82px;
  }

  .work-featured__copy,
  .work-card {
    padding: 22px;
  }

  .work-featured__copy {
    min-height: 390px;
  }

  .work-featured__media {
    min-height: 320px;
  }

  .work-featured__cover {
    width: 84%;
  }

  .work-featured__panel {
    width: 42%;
  }

  .work-card {
    min-height: 480px;
  }

  .lab-card {
    min-height: 490px;
    padding: 14px 14px 22px;
  }

  .lab-card__visual {
    height: 250px;
  }

  .about-hero-profile {
    min-height: auto;
    padding: 118px 0 76px;
  }

  .about-hero-profile__copy h1 span:last-child {
    font-size: 24px;
  }

  .about-narrative-copy p {
    font-size: 16px;
  }

  .about-philosophy-card,
  .about-skill-panel,
  .about-education-card {
    padding: 22px;
  }

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

  .case-page > :where(.case-hero, .case-detail-strip, .case-chapter-nav, .case-section, .case-prototype-cta, .case-footer),
  .case-tldr {
    width: calc(100% - 28px);
  }

  .case-brief {
    padding: 20px;
  }

  .case-brief dl > div {
    grid-template-columns: 82px 1fr;
  }

  .case-tldr {
    padding: 58px 0;
  }

  .case-detail-strip,
  .case-snapshot:has(> article:nth-child(4):last-child),
  .case-system-grid,
  .case-architecture-body .case-system-grid,
  .case-overview-logic,
  .case-stat-grid,
  .case-two-column,
  .case-flow,
  .case-prototype-cta {
    grid-template-columns: 1fr;
  }

  .case-detail-strip article,
  .case-detail-strip article + article,
  .case-detail-strip article:nth-child(4),
  .case-snapshot:has(> article:nth-child(4):last-child) article:nth-child(3) {
    padding: 22px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .case-section,
  .case-prototype-cta {
    padding: 78px 0;
  }

  .case-section-heading {
    margin-bottom: 34px;
  }

  .case-overview-logic article,
  .case-card,
  .case-system-grid article,
  .case-hmw-grid article,
  .case-stat-grid article,
  .case-flow > div,
  .case-board-notes article {
    min-height: 0;
    padding: 20px;
  }

  .case-flow::before {
    display: none;
  }

  .case-flow > div + div {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .contact-modal {
    padding: 12px;
  }

  .contact-modal__card {
    padding: 28px 22px 22px;
  }

  .contact-modal__card h2 {
    padding-right: 36px;
    font-size: 30px;
  }

  .site-footer {
    padding: 36px 20px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1050px) {
  .project-index__body {
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
    gap: 44px;
  }

  .home-about-preview__body,
  .about-narrative-section,
  .about-resume-section,
  .about-play-section,
  .about-education-block,
  .about-skills-block {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 48px;
  }

  .about-experience-card {
    grid-template-columns: 100px minmax(210px, 0.82fr) minmax(0, 1.18fr);
  }
}

@media (max-width: 820px) {
  .portfolio-hero__showcase {
    display: none;
  }

  .portfolio-hero__layout {
    padding-bottom: 28px;
  }

  .project-index__body,
  .home-about-preview__body,
  .about-narrative-section,
  .about-resume-section,
  .about-play-section,
  .about-education-block,
  .about-skills-block {
    grid-template-columns: 1fr;
  }

  .project-index__body {
    gap: 34px;
  }

  .project-index__copy {
    max-width: 680px;
  }

  .home-about-preview .thesis-list article,
  .home-about-preview .thesis-list article + article {
    grid-template-columns: 44px minmax(150px, 0.5fr) minmax(0, 1fr);
  }

  .about-narrative-section,
  .about-resume-section,
  .about-play-section,
  .about-education-block,
  .about-skills-block {
    gap: 38px;
  }

  .about-section-intro h2 {
    max-width: 620px;
  }

  .about-credentials-section {
    padding-bottom: 82px;
  }
}

@media (min-width: 561px) and (max-width: 820px) {
  .about-hero-profile {
    min-height: 670px;
    padding: 118px 0 70px;
    grid-template-columns: minmax(0, 1fr) 250px;
    align-items: center;
    gap: 38px;
  }

  .about-hero-profile__copy h1,
  .about-hero-profile__copy h1 span:first-child {
    font-size: 48px;
  }

  .about-hero-profile__copy h1 span:last-child {
    font-size: 25px;
  }

  .about-hero-profile__portrait {
    width: 250px;
  }
}

@media (max-width: 560px) {
  .portfolio-hero__showcase {
    display: none;
  }

  .portfolio-hero__layout {
    padding-bottom: 26px;
  }

  .project-index__row {
    padding: 26px 0 24px;
  }

  .project-index__meta,
  .project-index--home .project-index__meta {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 7px 16px;
  }

  .project-index__meta span:last-child,
  .project-index--home .project-index__meta span:last-child {
    text-align: left;
  }

  .project-index__body,
  .project-index--home .project-index__body {
    min-height: 0;
    padding: 26px 0;
    gap: 28px;
  }

  .project-index__copy h2,
  .project-index__copy h3,
  .project-index--home .project-index__copy h3 {
    font-size: 32px;
  }

  .project-index__value,
  .project-index--home .project-index__value {
    font-size: 15px;
  }

  .project-index__methods {
    margin-top: 22px;
  }

  .project-index__media,
  .project-index--home .project-index__media {
    height: 210px;
    min-height: 0;
  }

  .project-index__media--signal {
    min-height: 210px;
    padding: 44px 16px 38px;
    gap: 6px;
  }

  .project-index__media--signal strong {
    min-height: 58px;
    padding: 0 7px;
    font-size: 10px;
  }

  .project-index__footer {
    padding-top: 16px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
  }

  .home-about-preview__body {
    padding-top: 34px;
    gap: 42px;
  }

  .home-about-preview__intro p {
    font-size: 16px;
  }

  .home-about-preview .thesis-list article,
  .home-about-preview .thesis-list article + article {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px 14px;
  }

  .home-about-preview .thesis-list p {
    grid-column: 2;
  }

  .about-hero-profile__copy h1 span:first-child {
    font-size: 42px;
  }

  .about-hero-profile__copy h1 span:last-child {
    font-size: 24px;
  }

  .about-narrative-section,
  .about-resume-section,
  .about-play-section,
  .about-education-block,
  .about-skills-block {
    gap: 32px;
  }

  .about-principles article {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px 12px;
  }

  .about-principles p {
    grid-column: 2;
  }

  .about-experience-card,
  .about-education-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .about-experience-card > p {
    margin-top: 6px;
  }

  .about-skills-block {
    margin-top: 60px;
    padding-top: 60px;
  }

  .about-skill-group {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .about-play-grid article,
  .about-play-grid article:nth-child(even) {
    padding: 22px 0;
    border-right: 0;
  }
}

/* Editorial case-study rhythm */
.case-hero {
  min-height: min(700px, calc(100svh - 54px));
  padding: 132px 0 80px;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 72px;
}

.case-hero h1 {
  margin: 18px 0 24px;
  font-size: 54px;
  line-height: 1.04;
}

.hero-title-line-light {
  margin-bottom: 10px;
  font-size: 16px;
}

.case-lede {
  max-width: 680px;
  font-size: 18px;
  line-height: 1.58;
}

.case-brief {
  padding: 0 0 0 28px;
  border: 0;
  border-left: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.case-brief dl > div {
  padding: 17px 0;
  grid-template-columns: 88px 1fr;
}

.case-brief dl > div:first-child {
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.case-brief dl > div:last-child {
  border-bottom: 1px solid var(--line);
}

.case-tldr {
  padding: 64px 0;
  gap: 64px;
}

.case-tldr h2 {
  font-size: 34px;
  line-height: 1.16;
}

.case-detail-strip article {
  padding-top: 28px;
  padding-bottom: 28px;
}

.case-chapter-nav {
  top: 90px;
  min-height: 52px;
}

.case-chapter-nav::after {
  height: 44px;
}

.case-chapter-nav a {
  min-height: 44px;
  padding: 0 11px;
  gap: 6px;
  font-size: 11px;
}

.case-section,
.case-prototype-cta {
  padding: 96px 0;
}

.case-section[id] {
  scroll-margin-top: 168px;
}

.case-section-heading {
  margin-bottom: 48px;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 30px;
}

.case-section-heading h2 {
  max-width: 800px;
  font-size: 39px;
  line-height: 1.16;
}

.case-copy,
.case-grid,
.case-grid-wide,
.case-two-column,
.case-system-grid,
.case-hmw-grid,
.case-stat-grid {
  gap: 24px;
}

.case-overview-logic {
  gap: 22px;
}

.case-overview-logic article,
.case-card,
.case-system-grid article,
.case-hmw-grid article,
.case-stat-grid article,
.case-board-notes article {
  min-height: 0;
  padding: 24px 0 28px;
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
}

.case-overview-logic article {
  min-height: 190px;
}

.case-overview-logic p,
.case-card p,
.case-system-grid p,
.case-hmw-grid p,
.case-stat-grid p,
.case-board-notes p,
.case-flow p {
  margin-top: 18px;
}

.case-card h3,
.case-hmw-grid h3,
.case-board-notes h3 {
  margin-top: 13px;
  font-size: 19px;
}

.case-system-grid article {
  min-height: 220px;
}

.case-system-grid strong,
.case-flow strong,
.case-stat-grid strong {
  margin-top: 20px;
  font-size: 18px;
}

.case-stat-grid {
  margin: 34px 0 38px;
}

.case-flow {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
}

.case-flow > div {
  min-height: 205px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.case-flow > div + div {
  border-left: 1px solid var(--line);
}

.case-flow--compact > div {
  min-height: 188px;
}

.case-evidence-figure {
  max-width: 780px;
  margin: 24px auto 0;
}

.case-board-image img {
  height: 680px;
  object-fit: cover;
  object-position: top;
}

.case-solution-lead article {
  padding: 24px 0 28px;
  border-top: 1px solid var(--line-strong);
}

.case-solution-lead article span,
.case-editorial-copy article > span,
.case-method-list article > span,
.case-decision-list article > span {
  color: var(--accent);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.case-solution-lead h3 {
  margin: 13px 0 0;
  font-size: 21px;
  font-weight: 620;
  line-height: 1.3;
}

.case-solution-lead p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.case-editorial-copy {
  max-width: 930px;
  margin-left: 230px;
  border-bottom: 1px solid var(--line-strong);
}

.case-editorial-copy article {
  display: grid;
  padding: 28px 0;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line-strong);
}

.case-editorial-copy h3 {
  max-width: 680px;
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

.case-editorial-copy p {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.67;
}

.case-method-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.case-method-list article {
  min-width: 0;
  min-height: 205px;
  padding: 27px 24px 30px 0;
}

.case-method-list article + article {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.case-method-list strong {
  display: block;
  margin-top: 28px;
  font-size: 19px;
  font-weight: 620;
}

.case-method-list p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.case-decision-list {
  border-bottom: 1px solid var(--line-strong);
}

.case-decision-list article {
  display: grid;
  padding: 28px 0;
  grid-template-columns: 150px minmax(0, 1fr) 190px;
  align-items: start;
  gap: 28px;
  border-top: 1px solid var(--line-strong);
}

.case-decision-list h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 620;
  line-height: 1.32;
}

.case-decision-list p {
  max-width: 630px;
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.case-decision-list article > strong {
  color: var(--graphite);
  font-size: 12px;
  font-weight: 560;
  line-height: 1.5;
}

.case-outcome-statement {
  display: grid;
  padding: 38px 0;
  grid-template-columns: minmax(0, 1.15fr) minmax(310px, 0.85fr);
  align-items: start;
  gap: 70px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.case-outcome-statement > p {
  max-width: 700px;
  margin: 0;
  color: var(--graphite);
  font-size: 22px;
  line-height: 1.5;
}

.case-outcome-statement dl {
  margin: 0;
}

.case-outcome-statement dl > div {
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.case-outcome-statement dl > div:first-child {
  padding-top: 0;
  border-top: 0;
}

.case-outcome-statement dt {
  color: var(--accent);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.case-outcome-statement dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 1050px) {
  .case-hero {
    grid-template-columns: minmax(0, 1fr) minmax(290px, 0.62fr);
    gap: 50px;
  }

  .case-hero h1 {
    font-size: 49px;
  }

  .case-editorial-copy {
    margin-left: 0;
  }

  .case-decision-list article {
    grid-template-columns: 125px minmax(0, 1fr) 160px;
    gap: 22px;
  }
}

@media (max-width: 820px) {
  .case-hero {
    padding: 120px 0 66px;
    grid-template-columns: 1fr;
  }

  .case-section-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .case-brief {
    padding: 20px 0 0;
    border-top: 1px solid var(--line-strong);
    border-left: 0;
  }

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

  .case-method-list article,
  .case-method-list article + article {
    min-height: 0;
    padding: 24px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .case-method-list article:first-child {
    border-top: 0;
  }

  .case-decision-list article {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .case-decision-list article > strong {
    grid-column: 2;
  }

  .case-outcome-statement {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 560px) {
  .about-hero-profile {
    padding: 110px 0 56px;
    gap: 28px;
  }

  .about-hero-profile__portrait img {
    aspect-ratio: 3 / 2;
    object-position: center 27%;
  }

  .case-hero {
    padding: 108px 0 50px;
    gap: 28px;
  }

  .case-brief {
    padding-top: 14px;
  }

  .case-brief dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .case-brief dl > div,
  .case-brief dl > div:first-child,
  .case-brief dl > div:last-child {
    display: block;
    min-width: 0;
    padding: 16px 12px 17px 0;
    border-top: 0;
    border-bottom: 0;
  }

  .case-brief dl > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .case-brief dl > div:nth-child(even) {
    padding-right: 0;
    padding-left: 12px;
    border-left: 1px solid var(--line);
  }

  .case-brief dd {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.45;
  }

  .case-hero h1 {
    font-size: 40px;
  }

  .hero-title-line-light {
    font-size: 15px;
  }

  .case-chapter-nav {
    top: 78px;
  }

  .case-section[id] {
    scroll-margin-top: 150px;
  }

  .case-section,
  .case-prototype-cta {
    padding: 72px 0;
  }

  .case-section-heading h2 {
    font-size: 31px;
  }

  .case-editorial-copy article,
  .case-decision-list article {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .case-decision-list article > strong {
    grid-column: 1;
  }

  .case-overview-logic {
    gap: 8px;
  }

  .case-overview-logic article,
  .case-card,
  .case-system-grid article,
  .case-hmw-grid article,
  .case-stat-grid article,
  .case-board-notes article {
    padding: 22px 0 24px;
  }

  .case-flow > div,
  .case-flow--compact > div {
    min-height: 0;
    padding: 22px;
  }

  .case-flow > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .case-board-image img {
    height: 480px;
  }

  .case-outcome-statement > p {
    font-size: 19px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .motion-ready .reveal:not(.is-visible) {
    opacity: 1;
    transform: none;
  }
}

/* Ashley-inspired IA skeleton: shared rail, media-first index, and case reading shell */
:root {
  --portfolio-rail-open: 200px;
  --portfolio-rail-closed: 72px;
  --portfolio-rail-width: var(--portfolio-rail-open);
  --portfolio-shell-background: var(--soft-white);
  --portfolio-shell-foreground: var(--ink);
  --portfolio-shell-line: rgba(33, 37, 41, 0.14);
  --portfolio-shell-hover: rgba(33, 37, 41, 0.07);
}

:root[data-rail-collapsed="true"] {
  --portfolio-rail-width: var(--portfolio-rail-closed);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: calc(var(--portfolio-rail-width) + 12px);
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  font-weight: 650;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
}

.skip-link:focus {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.portfolio-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 140;
  display: flex;
  width: var(--portfolio-rail-width);
  min-width: var(--portfolio-rail-width);
  height: 100dvh;
  padding: 8px 16px 16px;
  flex-direction: column;
  border-right: 1px solid var(--portfolio-shell-line);
  background: rgba(241, 241, 238, 0.9);
  color: var(--portfolio-shell-foreground);
  backdrop-filter: blur(20px) saturate(125%);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
  overflow: visible;
  transition: width 220ms var(--ease-out), min-width 220ms var(--ease-out);
}

.portfolio-rail__header {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.portfolio-rail__brand,
.portfolio-rail__toggle {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  transition: background-color 180ms ease, color 180ms ease;
}

.portfolio-rail__brand {
  min-width: 0;
  justify-content: flex-start;
  gap: 9px;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.portfolio-rail__brand:hover,
.portfolio-rail__toggle:hover,
.portfolio-rail__link:hover,
.portfolio-rail__link:focus-visible {
  background: var(--portfolio-shell-hover);
}

.portfolio-rail__mark {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 8px;
  background: var(--portfolio-shell-foreground);
  color: var(--portfolio-shell-background);
  font-size: 10px;
  font-weight: 760;
}

.portfolio-rail__back {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border: 1px solid var(--portfolio-shell-line);
  border-radius: 999px;
  font-size: 18px;
}

.portfolio-rail__toggle {
  position: relative;
  flex: 0 0 44px;
  border-radius: 12px;
  color: rgba(18, 20, 24, 0.72);
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 160ms var(--ease-out), box-shadow 180ms ease;
}

.portfolio-rail__toggle::before {
  position: absolute;
  inset: 6px;
  border: 1px solid var(--portfolio-shell-line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.38);
  content: "";
  transition: background-color 180ms ease, border-color 180ms ease;
}

.portfolio-rail__toggle svg {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portfolio-rail__toggle:hover {
  background: transparent;
  color: var(--portfolio-shell-foreground);
}

.portfolio-rail__toggle:hover::before {
  border-color: rgba(18, 20, 24, 0.22);
  background: rgba(18, 20, 24, 0.055);
}

.portfolio-rail__toggle:active {
  transform: scale(0.94);
}

.portfolio-rail__toggle:focus-visible {
  outline: 0;
  background: transparent;
  box-shadow: none;
}

.portfolio-rail__toggle:focus-visible::before {
  border-color: var(--accent-strong);
  background: rgba(65, 90, 121, 0.07);
  box-shadow: 0 0 0 2px rgba(65, 90, 121, 0.16);
}

.portfolio-rail__toggle-divider {
  opacity: 0.48;
}

.portfolio-rail__toggle-arrow {
  transform-origin: center;
  transition: transform 220ms var(--ease-out);
}

.portfolio-rail.is-collapsed .portfolio-rail__toggle-arrow {
  transform: rotate(180deg);
}

.portfolio-rail__section {
  margin-top: 26px;
}

.portfolio-rail__section--primary {
  margin-top: 18px;
}

.portfolio-rail__section--projects {
  margin-top: 30px;
}

.portfolio-rail__section--social {
  margin-top: auto;
}

.portfolio-rail__section--case {
  min-height: 0;
  margin-top: 18px;
  overflow-y: auto;
  scrollbar-width: none;
}

.portfolio-rail__section--case::-webkit-scrollbar {
  display: none;
}

.portfolio-rail__section-title {
  display: flex;
  min-height: 32px;
  margin: 0;
  padding: 0 8px;
  align-items: center;
  color: rgba(33, 37, 41, 0.5);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
}

.portfolio-rail__nav {
  display: grid;
  gap: 2px;
}

.portfolio-rail__link {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 44px;
  padding: 0 8px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 13px;
  font-weight: 580;
  line-height: 1.2;
  text-align: left;
  transition: background-color 180ms ease, color 180ms ease;
}

.portfolio-rail__link.is-current,
.portfolio-rail__link[aria-current] {
  background: rgba(33, 37, 41, 0.09);
  color: var(--portfolio-shell-foreground);
}

.portfolio-rail__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-rail__index {
  flex: 0 0 auto;
  color: rgba(33, 37, 41, 0.42);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.portfolio-rail.is-collapsed {
  padding-right: 12px;
  padding-left: 12px;
}

.portfolio-rail.is-collapsed .portfolio-rail__brand-name,
.portfolio-rail.is-collapsed .portfolio-rail__section-title,
.portfolio-rail.is-collapsed .portfolio-rail__label {
  display: none;
}

.portfolio-rail.is-collapsed .portfolio-rail__header {
  flex-direction: column;
  justify-content: flex-start;
}

.portfolio-rail.is-collapsed .portfolio-rail__brand,
.portfolio-rail.is-collapsed .portfolio-rail__link {
  justify-content: center;
}

.portfolio-rail.is-collapsed .portfolio-rail__section {
  margin-top: 18px;
}

.portfolio-rail.is-collapsed .portfolio-rail__link::after {
  position: absolute;
  top: 50%;
  left: 52px;
  z-index: 10;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--portfolio-shell-foreground);
  color: var(--portfolio-shell-background);
  content: attr(data-label);
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translate(6px, -50%);
  transition: opacity 150ms ease, transform 180ms var(--ease-out);
  white-space: nowrap;
}

.portfolio-rail.is-collapsed .portfolio-rail__link:hover::after,
.portfolio-rail.is-collapsed .portfolio-rail__link:focus-visible::after {
  opacity: 1;
  transform: translate(0, -50%);
}

@media (min-width: 821px) {
  body {
    padding-left: var(--portfolio-rail-width);
    transition: padding-left 220ms var(--ease-out);
  }

  .site-header,
  .mobile-menu-panel {
    display: none !important;
  }

  .portfolio-redesign .site-footer,
  .case-study-page .site-footer {
    width: auto;
  }
}

/* Audience-aware home introduction */
.portfolio-hero {
  min-height: 0;
  padding-top: 64px;
  padding-bottom: 72px;
}

.portfolio-hero__layout {
  display: block;
  min-height: 0;
  padding-top: 0;
}

.portfolio-hero__copy {
  max-width: 840px;
}

.audience-switcher {
  display: flex;
  max-width: 100%;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.audience-switcher::-webkit-scrollbar {
  display: none;
}

.audience-switcher button {
  min-height: 44px;
  padding: 0 11px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(18, 20, 24, 0.54);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.audience-switcher button:hover {
  background: rgba(18, 20, 24, 0.06);
  color: var(--ink);
}

.audience-switcher button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--white);
}

.audience-switcher button:active {
  transform: scale(0.97);
}

.portfolio-hero__copy h1 {
  max-width: 840px;
  margin: 30px 0 0;
  font-size: clamp(42px, 4.8vw, 72px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.portfolio-hero__copy h1 span {
  display: inline;
}

/* Media-first two-column work index */
.home-work-preview {
  padding-top: 48px;
}

.home-work-preview .portfolio-section-heading {
  display: flex;
  padding-bottom: 26px;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 0;
}

.home-work-preview .portfolio-section-heading > span {
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.home-work-preview .portfolio-section-heading h2,
.home-work-preview .portfolio-section-heading p {
  display: none;
}

.home-work-preview .portfolio-section-heading::after {
  color: var(--faint);
  content: "03";
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.project-index,
.project-index--home,
.project-index--work {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 52px 24px;
  border: 0;
}

.project-index__row,
.project-index--home .project-index__row {
  display: flex;
  min-width: 0;
  min-height: 0;
  padding: 0;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  transition: transform 300ms var(--ease-out);
}

.project-index__row:hover,
.project-index--home .project-index__row:hover {
  transform: scale(1.018);
}

.project-index__body,
.project-index--home .project-index__body {
  display: contents;
}

.project-index__media,
.project-index--home .project-index__media {
  order: 1;
  width: 100%;
  min-height: 0;
  height: auto;
  aspect-ratio: 4 / 3;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cool-white);
  overflow: hidden;
}

.project-index__media img,
.project-index--home .project-index__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 500ms var(--ease-out);
}

.project-index__row:hover .project-index__media img {
  transform: scale(1.025);
}

.project-index__media--signal,
.project-index--home .project-index__media--signal {
  display: flex;
  min-height: 0;
  padding: 36px 24px;
  gap: 12px;
}

.project-index__meta,
.project-index--home .project-index__meta {
  order: 2;
  display: flex;
  min-height: 0;
  margin-top: 16px;
  padding: 0;
  justify-content: flex-start;
  gap: 8px 14px;
  border: 0;
  color: var(--faint);
  font-size: 10px;
}

.project-index__copy,
.project-index--home .project-index__copy {
  order: 3;
  padding: 0;
}

.project-index__type,
.project-index--home .project-index__type {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.project-index__copy h2,
.project-index__copy h3,
.project-index--home .project-index__copy h3 {
  margin-top: 14px;
  font-size: clamp(26px, 2.5vw, 30px);
  font-weight: 620;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.project-index__value,
.project-index--home .project-index__value {
  max-width: 560px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.48;
}

.project-index__methods {
  display: flex;
  margin-top: 16px;
  flex-wrap: wrap;
  gap: 6px;
}

.project-index__methods span {
  padding: 6px 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(18, 20, 24, 0.055);
  color: rgba(18, 20, 24, 0.62);
  font-size: 11px;
  line-height: 1;
}

.project-index__footer,
.project-index--home .project-index__footer {
  order: 4;
  display: flex;
  min-height: 0;
  margin-top: 18px;
  padding: 0;
  align-items: center;
  justify-content: space-between;
  border: 0;
}

.project-index__footer > span {
  display: none;
}

.project-index__footer strong {
  font-size: 13px;
  font-weight: 650;
}

/* Case-study shell */
.case-study-page .scroll-progress {
  z-index: 200;
  height: 3px;
}

.case-shell-hero {
  width: min(1280px, calc(100% - 96px));
  margin: 64px auto 0;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cool-white);
  overflow: hidden;
}

.case-shell-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Axel uses the original 1146 × 498 Figma cover composition. */
.case-shell-hero--axel {
  aspect-ratio: 1146 / 498;
  background: #eef1f4;
}

.case-shell-hero--axel img {
  object-fit: contain;
  object-position: center;
}

.case-shell-hero__placeholder {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  padding: 8%;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background:
    linear-gradient(rgba(65, 90, 121, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(65, 90, 121, 0.08) 1px, transparent 1px),
    #eef2f5;
  background-size: 34px 34px;
}

.case-shell-hero__placeholder > span {
  position: absolute;
  align-self: flex-start;
  justify-self: flex-start;
  color: var(--accent);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-shell-hero__placeholder strong {
  display: grid;
  min-width: 132px;
  min-height: 84px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  font-size: 16px;
}

.case-shell-hero__placeholder i {
  width: min(10vw, 120px);
  height: 1px;
  background: var(--line-strong);
}

.case-hero {
  display: block;
  min-height: 0;
  padding: 50px 0 64px;
}

.case-hero > div:first-child {
  max-width: 920px;
}

.case-hero h1 {
  max-width: 900px;
  margin-top: 20px;
  font-size: clamp(38px, 4.5vw, 48px);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.case-lede {
  max-width: 760px;
  margin-top: 28px;
  font-size: 16px;
  line-height: 1.6;
}

.case-brief {
  margin-top: 48px;
  padding: 0;
  border: 0;
}

.case-brief dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.case-brief dl > div,
.case-brief dl > div:first-child,
.case-brief dl > div:last-child {
  display: block;
  min-width: 0;
  padding: 22px 24px 24px 0;
  border: 0;
}

.case-brief dl > div + div {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.case-brief dd {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.case-brief .case-figma-cover,
.case-detail-strip {
  display: none;
}

.case-tldr {
  padding: 72px 0;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1fr);
  gap: 64px;
  border-top: 0;
}

@media (min-width: 821px) {
  .case-chapter-nav {
    display: none;
  }

  .case-section[id] {
    scroll-margin-top: 24px;
  }
}

@media (max-width: 820px) {
  :root {
    --portfolio-rail-width: 0px;
  }

  body {
    padding-left: 0;
  }

  .portfolio-rail {
    display: none;
  }

  .skip-link {
    left: 10px;
  }

  .site-header {
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    min-height: 64px;
    padding: 8px 14px;
    align-items: center;
    justify-content: space-between;
    border-width: 0 0 1px;
    border-radius: 0;
    background: rgba(247, 248, 250, 0.9);
    box-shadow: none;
    transform: none;
  }

  .mobile-menu-panel {
    top: 64px;
    right: 0;
    left: 0;
    max-height: calc(100dvh - 64px);
    padding: 10px 14px 20px;
    border-width: 0 0 1px;
    border-radius: 0;
    overflow-y: auto;
    box-shadow: 0 18px 50px rgba(18, 20, 24, 0.1);
  }

  .mobile-menu-panel a,
  .mobile-menu-panel button {
    min-height: 52px;
    font-size: 15px;
  }

  .portfolio-hero {
    padding-top: 104px;
    padding-bottom: 60px;
  }

  .portfolio-hero__layout {
    width: 100%;
    padding-top: 0;
  }

  .audience-switcher {
    margin-right: -14px;
    padding-right: 14px;
  }

  .audience-switcher button {
    min-height: 44px;
  }

  .portfolio-hero__copy h1 {
    margin-top: 26px;
    font-size: clamp(40px, 12vw, 54px);
    letter-spacing: -0.04em;
  }

  .project-index,
  .project-index--home,
  .project-index--work {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .project-index__media,
  .project-index--home .project-index__media {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .case-shell-hero {
    width: calc(100% - 28px);
    margin-top: 88px;
  }

  .case-hero {
    padding-top: 40px;
  }

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

  .case-brief dl > div,
  .case-brief dl > div:first-child,
  .case-brief dl > div:last-child {
    padding: 18px 14px 20px 0;
  }

  .case-brief dl > div + div {
    padding-left: 14px;
  }

  .case-brief dl > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .case-brief dl > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .case-shell-hero__placeholder {
    gap: 7px;
  }

  .case-shell-hero__placeholder strong {
    min-width: 74px;
    min-height: 54px;
    font-size: 11px;
  }

  .case-shell-hero__placeholder i {
    width: 18px;
  }

  .case-tldr {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 560px) {
  .home-work-preview {
    padding-top: 28px;
  }

  .project-index__meta,
  .project-index--home .project-index__meta {
    flex-wrap: wrap;
  }

  .project-index__media--signal,
  .project-index--home .project-index__media--signal {
    padding: 28px 14px;
  }

  .case-shell-hero {
    aspect-ratio: 4 / 3;
  }

  .case-shell-hero--axel {
    aspect-ratio: 1146 / 498;
  }
}

/* Axel — Define Action narrative: challenge → reframe → AI Process 01 */
.case-feature-story {
  margin-top: 88px;
  padding-top: 32px;
  border-top: 1px solid var(--line-strong);
}

.case-feature-story__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.72fr);
  align-items: end;
  gap: clamp(40px, 7vw, 112px);
}

.case-feature-story__intro h3 {
  max-width: 820px;
  margin: 16px 0 0;
  font-size: clamp(36px, 4.2vw, 62px);
  font-weight: 640;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.case-feature-story__intro > p {
  max-width: 570px;
  margin: 0;
  color: var(--graphite);
  font-size: 17px;
  line-height: 1.72;
}

.case-feature-story__gaps {
  display: grid;
  margin-top: clamp(72px, 10vw, 144px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.case-feature-story__gaps article {
  padding: 24px 0 0;
  border-top: 1px solid var(--line-strong);
}

.case-feature-story__gaps span,
.case-action-process__heading > span,
.case-action-process li > span {
  color: var(--faint);
  font-size: 11px;
  font-weight: 680;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.case-feature-story__gaps h4 {
  margin: 24px 0 0;
  font-size: clamp(24px, 2.3vw, 34px);
  font-weight: 620;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.case-feature-story__gaps p {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.68;
}

.case-feature-story__reframe {
  max-width: 1040px;
  margin: clamp(104px, 14vw, 196px) 0;
  padding: 0;
  border: 0;
}

.case-feature-story__reframe p {
  margin: 0;
  font-size: clamp(42px, 5.4vw, 78px);
  font-weight: 620;
  letter-spacing: -0.052em;
  line-height: 0.98;
}

.case-action-process {
  padding: clamp(28px, 4vw, 52px);
  border-radius: 24px;
  background: var(--ink);
  color: var(--white);
}

.case-action-process__heading {
  display: grid;
  padding-bottom: 32px;
  grid-template-columns: minmax(0, 0.75fr) minmax(280px, 1fr);
  gap: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.case-action-process__heading > span,
.case-action-process li > span {
  color: rgba(255, 255, 255, 0.58);
}

.case-action-process__heading p {
  max-width: 520px;
  margin: 0;
  font-size: clamp(20px, 2.1vw, 30px);
  font-weight: 520;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.case-action-process ol {
  display: grid;
  margin: 0;
  padding: 36px 0 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
}

.case-action-process li {
  min-width: 0;
  padding: 0 28px;
}

.case-action-process li:first-child {
  padding-left: 0;
}

.case-action-process li:last-child {
  padding-right: 0;
}

.case-action-process li + li {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.case-action-process strong {
  display: block;
  margin-top: 52px;
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 610;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.case-action-process li p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  line-height: 1.62;
}

@media (max-width: 820px) {
  .case-feature-story {
    margin-top: 64px;
    padding-top: 24px;
  }

  .case-feature-story__intro,
  .case-feature-story__gaps,
  .case-action-process__heading,
  .case-action-process ol {
    grid-template-columns: 1fr;
  }

  .case-feature-story__intro {
    gap: 30px;
  }

  .case-feature-story__intro h3 {
    font-size: clamp(34px, 10.5vw, 48px);
    line-height: 1.02;
  }

  .case-feature-story__gaps {
    margin-top: 72px;
    gap: 48px;
  }

  .case-feature-story__reframe {
    margin: 104px 0;
  }

  .case-feature-story__reframe p {
    font-size: clamp(38px, 11.4vw, 56px);
    line-height: 1;
  }

  .case-action-process {
    border-radius: 20px;
  }

  .case-action-process__heading {
    gap: 18px;
  }

  .case-action-process ol {
    padding-top: 8px;
  }

  .case-action-process li,
  .case-action-process li:first-child,
  .case-action-process li:last-child {
    padding: 28px 0;
  }

  .case-action-process li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 0;
  }

  .case-action-process strong {
    margin-top: 28px;
  }
}

/* Home — restrained audience intro, proof-first cards, and contextual cursor */
body[data-page-view="home"] {
  --page: min(1180px, calc(100% - 96px));
  background: #f1f1ee;
}

body[data-page-view="home"]::before {
  background: #f1f1ee;
}

body[data-page-view="home"] .portfolio-hero {
  padding-top: 64px;
  padding-bottom: 64px;
}

body[data-page-view="home"] .portfolio-hero__copy {
  max-width: 820px;
}

body[data-page-view="home"] .audience-switcher {
  gap: 2px;
  padding-bottom: 0;
}

body[data-page-view="home"] .audience-switcher button {
  position: relative;
  z-index: 0;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 10px;
  background: transparent;
  color: rgba(33, 37, 41, 0.48);
  font-size: 14px;
  font-weight: 540;
}

body[data-page-view="home"] .audience-switcher button::before {
  position: absolute;
  inset: 6px 2px;
  z-index: -1;
  border-radius: 10px;
  background: transparent;
  content: "";
  transition: background-color 180ms ease;
}

body[data-page-view="home"] .audience-switcher button:hover {
  background: transparent;
  color: var(--ink);
}

body[data-page-view="home"] .audience-switcher button:hover::before {
  background: rgba(33, 37, 41, 0.065);
}

body[data-page-view="home"] .audience-switcher button[aria-pressed="true"] {
  background: transparent;
  color: #f8f7f2;
}

body[data-page-view="home"] .audience-switcher button[aria-pressed="true"]::before {
  background: #212529;
}

body[data-page-view="home"] .audience-switcher button:focus-visible {
  outline-offset: -3px;
}

body[data-page-view="home"] .portfolio-hero__copy h1 {
  max-width: 820px;
  margin-top: 26px;
  font-size: clamp(38px, 4.5vw, 48px);
  font-weight: 610;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}

body[data-page-view="home"] [data-audience-copy] {
  transform-origin: left center;
}

body[data-page-view="home"] .home-work-preview {
  padding-top: 40px;
  padding-bottom: 96px;
  border-top: 0;
}

body[data-page-view="home"] .home-work-preview .portfolio-section-heading {
  padding-bottom: 24px;
}

body[data-page-view="home"] .project-index--home .project-index__row {
  border-radius: 12px;
  outline-offset: 8px;
}

body[data-page-view="home"] .project-index--home .project-index__media {
  border: 0;
  background: #e8e8e4;
}

body[data-page-view="home"] .project-index__row--axel .project-index__media {
  background: #edf2f8;
}

body[data-page-view="home"] .project-index__row--axel .project-index__media img {
  object-fit: contain;
}

body[data-page-view="home"] .project-index--home .project-index__meta {
  margin-top: 15px;
  gap: 0;
  color: rgba(33, 37, 41, 0.48);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
}

body[data-page-view="home"] .project-index--home .project-index__meta span + span::before {
  margin: 0 8px;
  content: "·";
}

body[data-page-view="home"] .project-index--home .project-index__copy h3 {
  margin-top: 10px;
  font-size: clamp(25px, 2.35vw, 29px);
  font-weight: 580;
  letter-spacing: -0.028em;
}

body[data-page-view="home"] .project-index--home .project-index__value {
  margin-top: 8px;
  color: rgba(33, 37, 41, 0.62);
  line-height: 1.5;
}

.project-index__media--chance {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 28%, rgba(111, 135, 255, 0.24), transparent 35%),
    linear-gradient(145deg, #17181c, #08090b 72%);
}

.project-index__media--chance::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.06), transparent 38%, rgba(98, 130, 255, 0.08));
  content: "";
}

.project-index__media--chance img {
  position: absolute;
  width: 29%;
  height: 82%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.38);
  object-fit: cover;
  object-position: top center;
  transition: transform 500ms var(--ease-out);
}

.project-index__media--chance img:nth-child(1) {
  top: 13%;
  left: 8%;
  transform: rotate(-7deg) translateY(5%);
}

.project-index__media--chance img:nth-child(2) {
  top: 8%;
  left: 35.5%;
  z-index: 2;
  width: 30%;
  height: 86%;
}

.project-index__media--chance img:nth-child(3) {
  top: 13%;
  right: 8%;
  transform: rotate(7deg) translateY(5%);
}

.portfolio-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20001;
  display: none;
  width: 12px;
  height: 12px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  background: #202226;
  box-shadow: 0 1px 2px rgba(5, 5, 5, 0.1);
  color: #fffaf3;
  overflow: hidden;
  pointer-events: none;
  transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
  transition:
    width 260ms cubic-bezier(0.16, 1, 0.3, 1),
    height 260ms cubic-bezier(0.16, 1, 0.3, 1),
    padding 260ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 180ms ease;
  will-change: transform, width, height;
}

.portfolio-cursor span {
  opacity: 0;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 590;
  line-height: 1;
  transform: translateY(1px) scale(0.96);
  transition: opacity 150ms 70ms ease, transform 180ms 60ms var(--ease-out);
}

.portfolio-cursor[data-interactive="true"] {
  box-shadow: 0 5px 14px rgba(20, 22, 26, 0.16);
}

.portfolio-cursor[data-has-label="true"] {
  height: 34px;
  padding: 0 14px;
}

.portfolio-cursor[data-has-label="true"] span {
  opacity: 1;
  transform: translateY(1px) scale(1);
}

@media (hover: hover) and (pointer: fine) {
  html.portfolio-cursor-active,
  html.portfolio-cursor-active body,
  html.portfolio-cursor-active a,
  html.portfolio-cursor-active button,
  html.portfolio-cursor-active input {
    cursor: none;
  }

  html.portfolio-cursor-active .portfolio-cursor {
    display: flex;
  }

  body[data-page-view="home"] .project-index--home .project-index__row:hover {
    transform: scale(1.018);
  }

  body[data-page-view="home"] .project-index__row:hover .project-index__media--chance img:nth-child(1) {
    transform: rotate(-5deg) translate(-2%, 1%);
  }

  body[data-page-view="home"] .project-index__row:hover .project-index__media--chance img:nth-child(2) {
    transform: translateY(-2%);
  }

  body[data-page-view="home"] .project-index__row:hover .project-index__media--chance img:nth-child(3) {
    transform: rotate(5deg) translate(2%, 1%);
  }
}

@media (max-width: 820px) {
  body[data-page-view="home"] {
    --page: calc(100% - 40px);
  }

  body[data-page-view="home"] .portfolio-hero {
    padding-top: 96px;
    padding-bottom: 48px;
  }

  body[data-page-view="home"] .portfolio-hero__copy h1 {
    margin-top: 22px;
    font-size: clamp(36px, 10.2vw, 46px);
  }

  body[data-page-view="home"] .home-work-preview {
    padding-top: 32px;
    padding-bottom: 72px;
  }
}

@media (max-width: 560px) {
  body[data-page-view="home"] {
    --page: calc(100% - 28px);
  }

  body[data-page-view="home"] .audience-switcher {
    margin-right: -14px;
    padding-right: 14px;
  }

  body[data-page-view="home"] .portfolio-hero__copy h1 {
    font-size: clamp(35px, 10.7vw, 43px);
  }

  .project-index__media--chance img {
    border-radius: 12px;
  }
}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .portfolio-cursor {
    display: none !important;
  }
}

/* Contextual case cursor: compact idle dot, clear action on real case links. */
.portfolio-cursor{background:#202226;color:#fafaf8;height:16px;box-shadow:0 2px 4px #14161a18;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang SC",sans-serif;transition:width 280ms cubic-bezier(.2,.8,.2,1),height 280ms cubic-bezier(.2,.8,.2,1),box-shadow 180ms,scale 150ms;}
.portfolio-cursor[data-has-label="true"]{height:58px;padding:0 22px;box-shadow:0 5px 15px #14161a28;}
.portfolio-cursor span{font-size:22px;font-weight:600;letter-spacing:-.025em;}
.portfolio-cursor[data-interactive="true"][data-has-label="false"]{height:26px;}
.portfolio-cursor[data-pressed="true"]{scale:.93;}
html.portfolio-cursor-active :is(input,textarea,select,[contenteditable="true"]){cursor:auto;}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){.hp-cover{transition:box-shadow .3s ease,filter .3s ease;}.hp-cover:hover{box-shadow:0 18px 45px #21304718;filter:brightness(1.025);}}

/* Sidebar header: bounded brand text and a stable, independently mirrored chevron. */
.portfolio-rail__header{gap:8px;}
.portfolio-rail__brand{flex:1 1 auto;min-width:0;gap:8px;}
.portfolio-rail__brand-name{min-width:0;white-space:normal;line-height:1.25;}
.portfolio-rail__toggle{flex:0 0 44px;color:var(--portfolio-shell-foreground);}
.portfolio-rail__toggle svg{width:22px;height:22px;stroke-width:1.65;}
.portfolio-rail__toggle-divider{opacity:.65;}
.portfolio-rail__toggle-arrow{transform-box:fill-box;transform-origin:center;}
.portfolio-rail.is-collapsed .portfolio-rail__toggle-arrow{transform:rotate(180deg);}
.portfolio-rail.is-collapsed .portfolio-rail__brand{flex:0 0 44px;}

/* Approved R2 identity — retain existing navigation geometry. */
.brand-mark,.portfolio-rail__mark{background:transparent;color:inherit;border-radius:0;}
.brand-mark img,.portfolio-rail__mark img,.case-brand__mark img{display:block;width:100%;height:100%;object-fit:contain;}
.chance-case .brand-mark img{content:url("assets/identity/r2-light.svg");}

/* September QA: keyboard, dark surfaces, and readable project media. */
main:focus{outline:none}
body.menu-open{overflow:hidden}
.mobile-menu-panel[aria-hidden="true"]{visibility:hidden;pointer-events:none}
.chance-case .mobile-menu-panel{background:#101216;color:#f5f5f7;border-color:#30343b}
.chance-case .mobile-menu-toggle{color:#f5f5f7;border-color:#42464e}
.chance-case .contact-modal__card{background:#15171b;color:#f5f5f7}
.chance-case .contact-modal__card p{color:#bbc1cb}
.chance-case .contact-modal__links a{color:#f5f5f7}
.project-media-video{display:block!important;background:#9eafff!important;padding:0!important}
.project-media-video video{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.project-index--work .project-index__row--axel .project-index__media img{object-fit:contain;object-position:center;transform:none;width:100%;height:100%}
.project-index--work .project-index__row--axel .project-index__media{background:#e8edf3;padding:18px}
@media(prefers-reduced-motion:reduce){.project-media-video{background:#9eafff url("assets/chance/cover/poster.png") center/contain no-repeat!important}.project-media-video video{visibility:hidden}*,*::before,*::after{scroll-behavior:auto!important}}

.cover-motion-toggle{min-height:44px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:99px;padding:0 16px;font:500 12px -apple-system,"SF Pro Text","PingFang SC",sans-serif;color:var(--graphite);background:transparent;cursor:pointer}.cover-motion-toggle:hover{background:var(--accent-soft)}.cover-motion-toggle[hidden]{display:none}.hp-heading{gap:16px;flex-wrap:wrap}.hp-heading>span{margin-left:auto}.portfolio-section-heading>.cover-motion-toggle{margin-top:20px}

.portfolio-section-heading>.cover-motion-toggle{width:max-content;justify-self:start;grid-column:2}@media(max-width:820px){.portfolio-section-heading>.cover-motion-toggle{grid-column:1}}
