@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;700&display=swap");

:root {
  --bg: #f2f4f7;
  --panel: #fff8f8;
  --pill: rgba(227, 227, 227, 0.8);
  --text: #111111;
  --muted: #525355;
  --muted-soft: #8f9297;
  --accent: #003f84;
  --dark-start: #201e25;
  --dark-end: #323137;
  --border: rgba(17, 17, 17, 0.14);
  --border-soft: rgba(255, 255, 255, 0.75);
  --shadow-sm: 0 0 0 1px rgb(255, 255, 255), 0 10px 24px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius-xl: clamp(1.4rem, 2vw, 2rem);
  --radius-lg: 1rem;
  --content-max: 94rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 260ms var(--ease);
  --mobile-nav-duration: 380ms;
  --mobile-nav-scale: 0.935;
  --mobile-nav-shift: clamp(6.75rem, 24vw, 9.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: max(1rem, env(safe-area-inset-top)) clamp(0.95rem, 2.6vw, 2.15rem) 1.5rem;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  position: relative;
  overflow-x: clip;
}

.mobile-nav-wrapper {
  position: relative;
  isolation: isolate;
  flex: 1;
}

.main-site-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  width: 100%;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.sidebar-container,
.mobile-nav-overlay {
  display: none;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 30;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: #ffffff;
  color: var(--accent);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.skip-link:focus {
  top: 1rem;
}

.site-header,
main {
  width: min(100%, var(--content-max));
  margin-inline: auto;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 440ms var(--ease), transform 440ms var(--ease);
}

body.is-ready .site-header,
body.is-ready main {
  opacity: 1;
  transform: translateY(0);
}

body.is-transitioning .site-header,
body.is-transitioning main {
  opacity: 0;
  transform: translateY(12px);
}

.site-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  margin-top: 1.45rem;
}

.site-brand,
.site-nav {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 0.55rem;
  padding: 0.35rem 0.6rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(17, 17, 17, 0.16);
  background: var(--pill);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8), 0 10px 24px rgba(17, 24, 39, 0.05);
  backdrop-filter: blur(12px);
}

.site-brand {
  align-self: flex-start;
  max-width: none;
  width: fit-content;
  white-space: nowrap;
  text-decoration: none;
  color: inherit;
  padding: 0.35rem 0.8rem;
}

.site-brand__avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  object-fit: cover;
  flex: none;
}

.site-brand__name {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.site-nav {
  gap: 0.2rem;
  position: relative;
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 0.78rem;
  color: var(--text);
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  z-index: 1;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.38rem;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  display: none;
  transition: transform var(--transition), opacity var(--transition);
}

.site-nav__link:hover::after,
.site-nav__link:focus-visible::after {
  transform: scaleX(1);
  opacity: 0.55;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  background: transparent;
}

.site-nav__link.is-active {
  color: #ffffff;
  background: linear-gradient(180deg, var(--dark-end), var(--dark-start));
  box-shadow: 0 0 0 1px #0d0d0d, 0 6px 18px rgba(0, 0, 0, 0.12);
  z-index: 2;
}

.site-nav__link.is-active::after {
  opacity: 0;
  background: #ffffff;
  transform: scaleX(0);
  display: none;
}

.nav-pill {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  height: 2.4rem;
  border-radius: 0.78rem;
  background: rgba(255, 255, 255, 0.56);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: left var(--transition), width var(--transition), opacity var(--transition);
}

.site-header__spacer {
  display: none;
}

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

a.is-pressed,
button.is-pressed {
  transform: translateY(1px) scale(0.98);
}

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

main {
  margin-top: 1rem;
}

.page-main {
  display: grid;
  gap: 3rem;
  padding-top: 0.4rem;
}

.panel {
  border-radius: var(--radius-xl);
  padding: clamp(1.2rem, 3vw, 2.5rem);
  border: 1px solid var(--border-soft);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

body[data-page="about"] .panel,
body[data-page="projects"] .panel {
  border: none;
}

.panel--ghost {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.section-intro {
  display: grid;
  gap: 3rem;
}

.section-title,
.hero-title {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(2.1rem, 7vw, 4.5rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  color: var(--accent);
}

.hero-title {
  color: var(--text);
  max-width: 14ch;
}

.hero-title span {
  color: var(--accent);
}

.section-lead,
.hero-copy,
.story-copy,
.project-showcase__copy,
.focus-card__copy,
.trait-card__copy,
.beyond-copy {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.7vw, 1.35rem);
  line-height: 1.65;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 2.9rem;
  padding: 0.68rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(17, 17, 17, 0.16);
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.94rem;
  text-decoration: none;
  transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button--dark {
  color: #ffffff;
  background: linear-gradient(180deg, var(--dark-end), var(--dark-start));
  border-color: #4b4951;
  box-shadow: 0 0 0 1px #0d0d0d, 0 10px 20px rgba(0, 0, 0, 0.12);
}

.button--light {
  color: var(--text);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12), 0 10px 20px rgba(0, 0, 0, 0.04);
}

.button--small {
  min-height: 2.4rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
}

.icon {
  width: 1.1rem;
  height: 1.1rem;
}

.icon--invert {
  filter: brightness(0) invert(1);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 999px;
  
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8), 0 10px 22px rgba(17, 24, 39, 0.04);
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.icon-button:hover,
.icon-button:focus-visible {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9), 0 16px 24px rgba(17, 24, 39, 0.08);
}

.page-home {
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
}

.page-home main {
  flex: 1;
  min-height: 0;
  margin-top: 0.85rem;
}

.page-home .home-main {
  flex: 1 1 auto;
  height: auto;
}

.home-main,
.home-layout {
  height: 100%;
  min-height: 0;
}

.home-layout {
  display: grid;
  gap: 1rem;
}

.home-intro {
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 0.95rem;
  padding: 0;
  margin-top: clamp(0.8rem, 2.2vw, 1.6rem);
}

.home-intro.panel {
  padding: 0;
}

.home-intro__copy {
  display: grid;
  gap: 0.8rem;
}

.hero-copy {
  max-width: 38rem;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 24px;
}
.tool-strip {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  overflow: hidden;
  align-self: flex-start;
  max-width: 38rem;
}

.tool-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;

}

.tool-chip img {
  width: auto;
  max-height: 4rem;
  object-fit: contain;
}

.social-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.home-projects {
  min-height: 0;
  display: none;
}

.home-projects__viewport {
  min-height: 0;
  overflow: hidden;
  position: relative;
  padding: 0.1rem 0.2rem 0.4rem;
}

.home-projects__viewport::before,
.home-projects__viewport::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2rem;
  z-index: 2;
  pointer-events: none;
}

.home-projects__viewport::before {
  top: 0;
  background: linear-gradient(180deg, var(--bg), rgba(242, 244, 247, 0));
}

.home-projects__viewport::after {
  bottom: 0;
  background: linear-gradient(0deg, var(--bg), rgba(242, 244, 247, 0));
}

.home-projects__link {
  margin-top: 0.35rem;
  align-self: flex-start;
  color: var(--accent);
  font-family: "Space Grotesk", "Manrope", sans-serif;
  text-decoration: none;
}

.project-rail__cards {
  display: grid;
  gap: 0.75rem;
  transform: translateZ(0);
}

.project-card {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  width: 100%;
  gap: 0.8rem;
  align-items: center;
  padding: 0.72rem;
  border-radius: 1.55rem;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: none;
}

.project-card__media {
  min-height: 5.5rem;
  border-radius: 1.15rem;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #dce9fb, #f4f7fb);
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card__body {
  display: grid;
  gap: 0.45rem;
}

.project-card__head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.project-card__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.75rem;
  background: #ecf1f8;
  color: var(--accent);
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
}

.project-card__tag {
  display: none;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(96, 95, 95, 0.9);
  color: #ffffff;
  font-size: 0.77rem;
}

.project-card__title {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.1rem;
}

.project-card__summary {
  display: none;
}

.project-card .button {
  justify-self: flex-start;
}

.project-card--nexa .project-card__media {
  background: linear-gradient(135deg, #dde7f4, #f7f5ef);
}

.project-card--autopulse .project-card__media {
  background: linear-gradient(135deg, #edf1f3, #f6f4f3);
}

.project-card--wvlk .project-card__media {
  background: linear-gradient(135deg, #dff5ec, #f5fffb);
}

.project-card--fintech .project-card__media {
  background: linear-gradient(135deg, #e9e6ff, #f9f8ff);
}

.story-copy {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.reveal-opacity {
  opacity: 0.2;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.stats-panel,
.stack-panel,
.focus-panel,
.traits-panel,
.experience-panel,
.design-process-panel,
.beyond-panel {
  display: grid;
  gap: 1.25rem;
}

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

.stats-card {
  display: grid;
  gap: 0.45rem;
  align-items: start;
  padding: 1.15rem 1.2rem;
  border-radius: 1.5rem;
  box-shadow: 0 14px 28px rgba(148, 163, 184, 0.1);
}

.stats-card--blue {
  background: #dcebff;
}

.stats-card--mint {
  background: #dff5ec;
}

.stats-card--peach {
  background: #ffe8d9;
}

.counter {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.stats-card__label {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.1;
}

.stack-marquee {
  overflow: hidden;
  position: relative;
}

.stack-marquee::before,
.stack-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1.2rem;
  z-index: 1;
  pointer-events: none;
}

.stack-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--panel), rgba(255, 248, 248, 0));
}

.stack-marquee::after {
  right: 0;
  background: linear-gradient(-90deg, var(--panel), rgba(255, 248, 248, 0));
}

.stack-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: center;
}

.stack-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.stack-item img {
  width: auto;
  max-height: 6.4rem;
  object-fit: contain;
  display: block;
}

.stack-item span {
  display: none;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.focus-card {
  --tilt: -4deg;
  position: relative;
  min-height: 14rem;
  display: grid;
  gap: 0.8rem;
  align-content: start;
  padding: 1.2rem;
  border-radius: 1.6rem;
  box-shadow: 0 18px 30px rgba(148, 163, 184, 0.12);
  transform: rotate(var(--tilt));
  transform-origin: center bottom;
  transition: transform var(--transition), filter var(--transition), opacity var(--transition), box-shadow var(--transition);
}

.focus-card--blue {
  background: #dcebff;
  --tilt: -6deg;
}

.focus-card--mint {
  background: #dff5ec;
  --tilt: -2deg;
}

.focus-card--peach {
  background: #ffe8d9;
  --tilt: 5deg;
}

.focus-card--lilac {
  background: #eae6ff;
  --tilt: 7deg;
}

.focus-card__title,
.trait-card__title,
.project-showcase__title,
.link-columns__title,
.music-card__title {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  line-height: 1.05;
}

.focus-card__title {
  font-size: clamp(1.1rem, 3vw, 2rem);
}

.focus-grid.is-interacting .focus-card {
  filter: blur(4px) saturate(0.7);
  opacity: 0.42;
}

.focus-grid.is-interacting .focus-card.is-active {
  filter: none;
  opacity: 1;
  transform: translateY(-10px) rotate(var(--tilt));
  box-shadow: 0 24px 36px rgba(15, 23, 42, 0.14);
}

.trait-list {
  display: grid;
  gap: 1rem;
}

.trait-card {
  display: grid;
  gap: 0.65rem;
  align-items: start;
  padding: 1.05rem 1.15rem;
  border-radius: 1.45rem;
  box-shadow: 0 14px 28px rgba(148, 163, 184, 0.1);
}

.trait-card--blue {
  background: #dcebff;
  transform: rotate(-1deg);
}

.trait-card--mint {
  background: #dff5ec;
  transform: rotate(1deg);
}

.trait-card--peach {
  background: #ffe8d9;
  transform: rotate(-1deg);
}

.trait-card__number {
  color: rgba(17, 17, 17, 0.42);
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.95rem;
}

.trait-card__title {
  font-size: clamp(1.1rem, 3vw, 2rem);
}

.experience-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(17, 17, 17, 0.16), rgba(17, 17, 17, 0.04));
}

.experience-list {
  position: relative;
  display: grid;
  gap: 1rem;
  padding-left: 1.45rem;
}

.experience-list::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 1px;
  background: rgba(17, 17, 17, 0.12);
}

.experience-card {
  position: relative;
  gap: 0.85rem;
}

.experience-card::before {
  content: "";
  position: absolute;
  top: 1.45rem;
  left: -1.5rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  border: 1px solid rgba(17, 17, 17, 0.16);
  background: #ffffff;
  box-shadow: 0 0 0 0.28rem var(--panel);
}

.experience-card--blue {
  background: #dcebff;
}

.experience-card--mint {
  background: #dff5ec;
}

.experience-card--peach {
  background: #ffe8d9;
}

.experience-card__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem 1rem;
  align-items: start;
}

.experience-card__headline {
  display: grid;
  gap: 0.22rem;
}

.experience-card__title,
.experience-card__company,
.experience-card__date,
.experience-card__copy {
  margin: 0;
}

.experience-card__company {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.45;
}

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

.experience-card__date {
  color: rgba(17, 17, 17, 0.62);
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.92rem;
  line-height: 1.3;
  white-space: nowrap;
  text-align: right;
}

.experience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.experience-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.3rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
}

.design-process {
  position: relative;
  padding-top: 0.25rem;
}

.design-process__path {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3rem;
  pointer-events: none;
}

.design-process__path-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.design-process__path-svg--mobile {
  display: none;
}

.design-process__path-base,
.design-process__path-flow {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
}

.design-process__path-base {
  stroke: rgba(17, 17, 17, 0.24);
  stroke-width: 2.4;
  stroke-dasharray: 1.5 11;
}

.design-process__path-flow {
  stroke: rgba(0, 63, 132, 0.46);
  stroke-width: 3;
  stroke-dasharray: 12 26;
  stroke-dashoffset: 0;
  opacity: 0.75;
  animation: process-path-flow 15s linear infinite;
  animation-play-state: paused;
}

.design-process-panel.is-visible .design-process__path-flow {
  animation-play-state: running;
}

.design-process__steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.95rem;
  margin: 0;
  padding: 0.15rem 0 0;
  list-style: none;
}

.process-step {
  position: relative;
  min-width: 0;
  padding-top: 1.55rem;
  text-align: center;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 620ms var(--ease),
    transform 620ms var(--ease);
  transition-delay: var(--process-step-delay, 0ms);
}

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

.process-step__node {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  border: 1px solid rgba(17, 17, 17, 0.16);
  background: #ffffff;
  box-shadow: 0 0 0 0.32rem var(--panel), 0 10px 24px rgba(17, 24, 39, 0.08);
  transform: translateX(-50%);
  transition: transform var(--transition), box-shadow var(--transition);
}

.process-step__title {
  margin: 0 auto;
  display: inline-block;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.08;
  transition: transform var(--transition), color var(--transition);
}

.process-step:hover .process-step__node,
.process-step:focus-within .process-step__node {
  transform: translateX(-50%) scale(1.08);
  box-shadow: 0 0 0 0.34rem var(--panel), 0 16px 28px rgba(17, 24, 39, 0.12);
}

.process-step:hover .process-step__title,
.process-step:focus-within .process-step__title {
  transform: translateY(-4px);
  color: var(--accent);
}

@keyframes process-path-flow {
  from {
    stroke-dashoffset: 0;
  }

  to {
    stroke-dashoffset: -114;
  }
}

.beyond-copy {
  max-width: 48rem;
}

.media-grid {
  display: grid;
  gap: 1rem;
}

.media-card {
  position: relative;
  min-height: 15rem;
  border-radius: 1.4rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.72)),
    radial-gradient(circle at top right, rgba(0, 63, 132, 0.4), transparent 42%),
    linear-gradient(135deg, #141414, #020202);
  box-shadow: var(--shadow-md);
}

.media-card--video {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.62)),
    url("../assets/images/editing.jpeg"),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.72)),
    radial-gradient(circle at top right, rgba(0, 63, 132, 0.4), transparent 42%),
    linear-gradient(135deg, #141414, #020202);
  background-position: center;
  background-size: cover;
}

.media-card--photo {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.6)),
    url("../assets/images/scenery.jpeg"),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72)),
    radial-gradient(circle at top left, rgba(255, 204, 0, 0.22), transparent 44%),
    linear-gradient(135deg, #121212, #020202);
  background-position: center;
  background-size: cover;
}

.media-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 1.1rem 1.1rem;
}

.media-card__label {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  color: #ffffff;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1rem;
}

.collaboration-panel {
  display: grid;
  gap: 6rem;
}

.collaboration-panel__body {
  display: grid;
  gap: 1rem;
}

.icon-attribution {
  margin: 0;
  color: var(--muted-soft);
  font-size: 0.76rem;
  line-height: 1.55;
}

.icon-attribution a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.icon-attribution a:hover,
.icon-attribution a:focus-visible {
  color: var(--muted);
}

.music-card {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  width: 470px;
  height: 200px;
  gap: 0.95rem;
  padding: 0.7rem;
  border-radius: 1.55rem;
  background: linear-gradient(180deg, #bf2516, #6b0201);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.music-card__cover {
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.music-card__play-button {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 2;
  transition: transform var(--transition), filter var(--transition);
  bottom: 1rem;
  right: 1rem;
}

.music-card__play-button img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

.music-card__play-button:hover,
.music-card__play-button:focus-visible {
  transform: scale(1.15);
  filter: brightness(1.1);
}

.music-card__play-button.is-playing {
  animation: playPulse 0.6s ease-out;
}

@keyframes playPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.music-card__meta {
  display: grid;
  align-content: start;
  gap: 0rem;
}

.music-card__eyebrow,
.music-card__artist,
.music-card__link {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.music-card__title {
  font-size: clamp(1.45rem, 4vw, 3.25rem);
}

.music-card__link {
  color: #ffffff;
  text-decoration: none;
}

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

.link-columns__title {
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.link-list a {
  color: var(--muted);
  text-decoration: none;
}

.link-list a:hover,
.link-list a:focus-visible,
.home-projects__link:hover,
.home-projects__link:focus-visible,
.music-card__link:hover,
.music-card__link:focus-visible {
  color: var(--accent);
}

.projects-hero {
  padding-top: 0.25rem;
}

.projects-filters__scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.projects-filters__scroll::-webkit-scrollbar {
  display: none;
}

.project-filters {
  display: inline-flex;
  align-items: center;
  position: relative;
  gap: 0.2rem;
  min-width: max-content;
  padding: 0.35rem 0.6rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(17, 17, 17, 0.16);
  background: var(--pill);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8), 0 10px 24px rgba(17, 24, 39, 0.05);
  backdrop-filter: blur(12px);
}

.project-filter {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.45rem 0.8rem;
  border: 0;
  border-radius: 0.78rem;
  background: transparent;
  color: var(--text);
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition), opacity 220ms var(--ease);
  z-index: 1;
}

.project-filter:hover,
.project-filter:focus-visible {
  background: transparent;
}

.project-filter.is-active {
  color: #ffffff;
  background: linear-gradient(180deg, var(--dark-end), var(--dark-start));
  box-shadow: 0 0 0 1px #0d0d0d, 0 6px 18px rgba(0, 0, 0, 0.12);
  z-index: 2;
}

.projects-collection {
  display: grid;
  gap: 3rem;
}

.project-section {
  display: grid;
  gap: 0.55rem;
  transition: opacity 260ms var(--ease), transform 260ms var(--ease);
}

.project-category {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #bab9b9;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.84rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.project-category::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: currentColor;
}

.project-showcase {
  display: grid;
  gap: 1rem;
}

.project-showcase__content {
  display: grid;
  gap: 0.75rem;
}

.project-showcase__title {
  font-size: clamp(1.5rem, 4vw, 3rem);
  color: var(--accent);
}

.project-showcase__mockup {
  display: grid;
  justify-items: center;
}

.project-showcase__placeholder {
  width: min(15rem, 100%);
  aspect-ratio: 258 / 533;
  display: grid;
  place-items: center;
  padding: 1rem;
  border-radius: 1.35rem;
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-sm);
  color: var(--muted-soft);
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-align: center;
}

.project-showcase__mockup img {
  width: min(15rem, 100%);
  height: auto;
  object-fit: contain;
}

.project-showcase__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.projects-empty-state {
  min-height: 18rem;
  display: grid;
  place-items: center;
  text-align: center;
  transition: opacity 260ms var(--ease), transform 260ms var(--ease);
}

.projects-empty-state__copy {
  max-width: 26rem;
}

.projects-collection--live {
  min-height: clamp(22rem, 50vh, 34rem);
}

.projects-empty-state--page {
  min-height: 100%;
}

.project-section.is-filter-hidden,
.projects-empty-state.is-filter-hidden {
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

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

.project-rail__cards.is-animated {
  animation: marquee-vertical var(--marquee-duration, 26s) linear infinite;
}

.stack-strip.is-animated {
  animation: marquee-horizontal var(--marquee-duration, 22s) linear infinite;
}

.home-projects__viewport:hover .project-rail__cards.is-animated,
.home-projects__viewport:focus-within .project-rail__cards.is-animated {
  animation-play-state: paused;
}

@keyframes marquee-vertical {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(calc(-1 * var(--marquee-distance, 0px)));
  }
}

@keyframes marquee-horizontal {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-1 * var(--marquee-distance, 0px)));
  }
}

@media (min-width: 48rem) {
  body {
    padding-bottom: 2rem;
  }

  .site-header {
    gap: 1rem;
  }

  .home-layout {
    gap: 1.15rem;
  }

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

  .trait-card {
    grid-template-columns: 4rem minmax(0, 22rem) minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
  }

  .experience-card {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0.85rem;
  }

  .design-process__steps {
    gap: 0.85rem;
  }

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

  .music-card {
    grid-template-columns: 13rem minmax(0, 1fr);
  }

  .project-showcase {
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 18rem);
    align-items: center;
  }

  .project-showcase__actions {
    grid-column: 1 / -1;
  }
}

@media (min-width: 64rem) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
  }

  .site-nav {
    justify-self: center;
  }

  .site-header__spacer {
    display: block;
  }

  .page-home .site-header {
    margin-top: 1.7rem;
  }

  .home-layout {
    grid-template-columns: minmax(0, 1.12fr) minmax(20rem, 0.68fr);
    align-items: stretch;
    gap: clamp(1.1rem, 1.8vw, 1.5rem);
  }

  .home-intro {
    justify-content: center;
    padding-left: calc(2.25rem + 0.55rem + 0.35rem);
    padding-right: clamp(1rem, 2vw, 2rem);
    margin-top: clamp(1.2rem, 2.5vw, 2.4rem);
  }

  .home-projects {
    display: flex;
    flex-direction: column;
    padding-block: 1rem;
    width: 100%;
    max-width: 23rem;
    justify-self: end;
  }

  .home-projects__viewport {
    height: 100%;
    min-height: 0;
  }

  .page-home .hero-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.75rem;
  }

  .page-home .hero-actions .button {
    width: auto;
    flex: 0 0 auto;
  }

  .project-rail__cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .project-card {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0.95rem;
    padding: 0.9rem;
    border-radius: 1.9rem;
  }

  .project-card__media {
    min-height: 18rem;
    border-radius: 1.35rem;
  }

  .project-card__head {
    justify-content: space-between;
  }

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

  .project-card__title {
    font-size: 1.7rem;
  }

  .project-card__summary {
    display: block;
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
  }

  .hero-copy {
    font-size: 1.2rem;
    max-width: 32rem;
  }

  .social-row {
    margin-top: auto;
  }

  .tool-strip {
    gap: 0.7rem;
  }

  .tool-chip {
    min-height: 3.2rem;
    gap: 1rem;
  }

  .tool-chip img {
    max-height: 5rem;
  }

  .stack-strip {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1.25rem;
    width: max-content;
    padding-block: 0.2rem;
  }

  .stack-item {
    flex: none;
    min-width: auto;
    min-height: auto;
    padding: 0;
  }

  .focus-grid:hover .focus-card {
    filter: blur(4px) saturate(0.72);
    opacity: 0.42;
  }

  .focus-grid:hover .focus-card:hover,
  .focus-grid:hover .focus-card:focus-within {
    filter: none;
    opacity: 1;
    transform: translateY(-10px) rotate(var(--tilt));
    box-shadow: 0 24px 36px rgba(15, 23, 42, 0.14);
  }

  .collaboration-panel__body {
    grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.9fr);
    align-items: start;
  }

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

  .project-category {
    padding-top: 1.2rem;
  }

  .project-showcase {
    grid-template-columns: minmax(0, 1fr) minmax(12rem, 16rem);
    min-height: 24rem;
  }

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

@media (min-width: 90rem) {
  .hero-title,
  .section-title {
    letter-spacing: -0.055em;
  }

  .home-layout {
    gap: 2rem;
  }

  .panel {
    padding: 2.3rem 2.5rem;
  }

  .project-showcase__mockup img {
    width: 16rem;
  }
}

.site-header__hamburger {
  display: none;
  position: relative;
  z-index: 3;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.75), 0 12px 28px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  transition: transform var(--mobile-nav-duration) var(--ease), box-shadow 220ms var(--ease), background 220ms var(--ease);
  will-change: transform;
}

.site-header__hamburger span {
  position: absolute;
  left: 50%;
  width: 1.15rem;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transform: translate3d(-50%, 0, 0);
  transition: transform var(--mobile-nav-duration) var(--ease), opacity 220ms var(--ease), background 220ms var(--ease);
  will-change: transform, opacity;
}

.site-header__hamburger span:nth-child(1) {
  top: 0.93rem;
}

.site-header__hamburger span:nth-child(2) {
  top: calc(50% - 1px);
}

.site-header__hamburger span:nth-child(3) {
  bottom: 0.93rem;
}

.site-header__hamburger.is-active span:nth-child(1) {
  transform: translate3d(-50%, 0.47rem, 0) rotate(45deg);
}

.site-header__hamburger.is-active span:nth-child(2) {
  opacity: 0;
  transform: translate3d(-50%, 0, 0) scaleX(0.4);
}

.site-header__hamburger.is-active span:nth-child(3) {
  transform: translate3d(-50%, -0.47rem, 0) rotate(-45deg);
}

.site-header__hamburger:hover,
.site-header__hamburger:focus-visible {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.82), 0 16px 32px rgba(17, 24, 39, 0.12);
}

.sidebar-container__inner {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.sidebar-container__eyebrow,
.sidebar-container__title,
.sidebar-container__subtitle,
.sidebar-nav__label,
.sidebar-nav__meta,
.sidebar-utility {
  margin: 0;
}

.sidebar-container__eyebrow {
  color: var(--muted-soft);
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sidebar-container__intro {
  display: grid;
  gap: 0.4rem;
}

.sidebar-container__title {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text);
}

.sidebar-container__subtitle {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.sidebar-nav {
  display: grid;
  gap: 0.7rem;
}

.sidebar-nav__link {
  display: grid;
  gap: 0.18rem;
  padding: 0.9rem 1rem;
  border-radius: 1.12rem;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(17, 17, 17, 0.1);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.76), 0 12px 28px rgba(17, 24, 39, 0.06);
  color: var(--text);
  text-decoration: none;
  transform: translate3d(1rem, 0, 0);
  opacity: 0;
  transition: transform 280ms var(--ease), opacity 240ms var(--ease), box-shadow 220ms var(--ease), background 220ms var(--ease), color 220ms var(--ease);
  will-change: transform, opacity;
}

.sidebar-nav__label {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1rem;
}

.sidebar-nav__meta {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
  transition: color 220ms var(--ease);
}

.sidebar-nav__link.is-active {
  color: #ffffff;
  background: linear-gradient(180deg, var(--dark-end), var(--dark-start));
  border-color: #4b4951;
  box-shadow: 0 0 0 1px #0d0d0d, 0 16px 34px rgba(0, 0, 0, 0.14);
}

.sidebar-nav__link.is-active .sidebar-nav__meta {
  color: rgba(255, 255, 255, 0.72);
}

.sidebar-nav__link:hover,
.sidebar-nav__link:focus-visible {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.82), 0 16px 34px rgba(17, 24, 39, 0.1);
}

.sidebar-container__footer {
  margin-top: auto;
  padding-top: 0.2rem;
}

.sidebar-utility {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.7rem 0.95rem;
  border-radius: 1rem;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.72), 0 12px 26px rgba(17, 24, 39, 0.06);
  color: var(--text);
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.88rem;
  text-decoration: none;
  transform: translate3d(1rem, 0, 0);
  opacity: 0;
  transition: transform 280ms var(--ease), opacity 240ms var(--ease), box-shadow 220ms var(--ease), background 220ms var(--ease), color 220ms var(--ease);
  will-change: transform, opacity;
}

.sidebar-utility:hover,
.sidebar-utility:focus-visible {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.82), 0 16px 34px rgba(17, 24, 39, 0.1);
}

@media (min-width: 48.01rem) {
  .mobile-nav-wrapper,
  .main-site-container {
    display: contents;
  }
}

@media (max-width: 48rem) {
  .mobile-nav-wrapper {
    min-height: 100%;
  }

  .main-site-container {
    z-index: 16;
    min-height: 100%;
    transform-origin: center center;
    transition: transform var(--mobile-nav-duration) var(--ease);
    will-change: transform;
  }

  body.is-mobile-nav-open .main-site-container {
    transform: translate3d(calc(-1 * var(--mobile-nav-shift)), 0, 0) scale(var(--mobile-nav-scale));
    border-radius: 1.8rem;
    overflow: clip;
    box-shadow: 0 28px 72px rgba(15, 23, 42, 0.18);
  }

  .sidebar-container,
  .mobile-nav-overlay {
    display: block;
  }

  .sidebar-container {
    position: fixed;
    top: max(0.85rem, env(safe-area-inset-top));
    right: max(0.85rem, env(safe-area-inset-right));
    bottom: max(0.85rem, env(safe-area-inset-bottom));
    z-index: 24;
    pointer-events: none;
  }

  .sidebar-container__inner {
    width: min(19rem, calc(100vw - 1.7rem));
    height: 100%;
    padding: 1.15rem 1rem calc(1.15rem + env(safe-area-inset-bottom));
    border-radius: 1.8rem;
    border: 1px solid var(--border-soft);
    background: var(--panel);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
    opacity: 0;
    transform: translate3d(calc(100% + 1.5rem), 0, 0);
    transition: transform var(--mobile-nav-duration) var(--ease), opacity 280ms var(--ease);
    will-change: transform, opacity;
    overflow: auto;
  }

  body.is-mobile-nav-open .sidebar-container {
    pointer-events: auto;
  }

  body.is-mobile-nav-open .sidebar-container__inner {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  .mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 12;
    padding: 0;
    border: 0;
    background: rgba(17, 17, 17, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--mobile-nav-duration) var(--ease);
    will-change: opacity;
  }

  body.is-mobile-nav-open .mobile-nav-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  body.is-mobile-nav-open .sidebar-nav__link,
  body.is-mobile-nav-open .sidebar-utility {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }

  body.is-mobile-nav-open .sidebar-nav__link:nth-child(1) {
    transition-delay: 80ms;
  }

  body.is-mobile-nav-open .sidebar-nav__link:nth-child(2) {
    transition-delay: 120ms;
  }

  body.is-mobile-nav-open .sidebar-nav__link:nth-child(3) {
    transition-delay: 160ms;
  }

  body.is-mobile-nav-open .sidebar-utility {
    transition-delay: 200ms;
  }

  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .site-header__hamburger {
    display: block;
  }

  .site-nav {
    display: none;
  }

  .site-header__spacer {
    display: none;
  }
}

@media (max-width: 63.99rem) {
  body[data-page="about"] main,
  body[data-page="projects"] main {
    margin-top: 0.75rem;
  }

  body[data-page="about"] .page-main,
  body[data-page="projects"] .page-main {
    gap: 2rem;
  }

  body[data-page="about"] .panel,
  body[data-page="projects"] .panel {
    padding: 1rem;
    border-radius: 1.2rem;
  }

  body[data-page="about"] .section-intro,
  body[data-page="projects"] .section-intro {
    gap: 0.45rem;
  }

  body[data-page="about"] .section-title,
  body[data-page="projects"] .section-title {
    font-size: clamp(1.7rem, 8vw, 2.35rem);
    line-height: 1.02;
  }

  body[data-page="about"] .section-lead,
  body[data-page="about"] .story-copy,
  body[data-page="about"] .focus-card__copy,
  body[data-page="about"] .trait-card__copy,
  body[data-page="about"] .beyond-copy,
  body[data-page="projects"] .section-lead,
  body[data-page="projects"] .project-showcase__copy {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  body[data-page="about"] .story-copy {
    gap: 0.8rem;
    margin-top: 0.8rem;
  }

  body[data-page="about"] .stats-panel,
  body[data-page="about"] .stack-panel,
  body[data-page="about"] .focus-panel,
  body[data-page="about"] .traits-panel,
  body[data-page="about"] .experience-panel,
  body[data-page="about"] .design-process-panel,
  body[data-page="about"] .beyond-panel,
  body[data-page="about"] .collaboration-panel,
  body[data-page="projects"] .collaboration-panel {
    gap: 1rem;
  }

  body[data-page="about"] .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  body[data-page="about"] .stats-card {
    padding: 1rem;
    border-radius: 1.25rem;
  }

  body[data-page="about"] .counter {
    font-size: clamp(1.8rem, 10vw, 2.8rem);
  }

  body[data-page="about"] .stats-card__label {
    font-size: 1.05rem;
  }

  body[data-page="about"] .stack-strip {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    width: max-content;
    gap: 0.7rem;
    padding-block: 0.15rem;
  }

  body[data-page="about"] .stack-item {
    flex: none;
  }

  body[data-page="about"] .stack-item img {
    max-height: 2.15rem;
  }

  body[data-page="about"] .focus-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  body[data-page="about"] .focus-card {
    --tilt: 0deg;
    min-height: auto;
    gap: 0.65rem;
    padding: 1rem;
    border-radius: 1.25rem;
    transform: none;
  }

  body[data-page="about"] .focus-card__title {
    font-size: 1.25rem;
  }

  body[data-page="about"] .focus-grid.is-interacting .focus-card.is-active {
    transform: translateY(-4px);
  }

  body[data-page="about"] .trait-card {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0.9rem 1rem;
  }

  body[data-page="about"] .experience-list {
    padding-left: 1.1rem;
    gap: 0.85rem;
  }

  body[data-page="about"] .experience-list::before {
    left: 0.35rem;
  }

  body[data-page="about"] .experience-card {
    gap: 0.7rem;
  }

  body[data-page="about"] .experience-card::before {
    top: 1.2rem;
    left: -1.18rem;
    width: 0.78rem;
    height: 0.78rem;
  }

  body[data-page="about"] .experience-card__header {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  body[data-page="about"] .experience-card__company,
  body[data-page="about"] .experience-card__date {
    font-size: 0.9rem;
  }

  body[data-page="about"] .experience-card__date {
    white-space: normal;
    text-align: left;
  }

  body[data-page="about"] .experience-tags {
    gap: 0.4rem;
  }

  body[data-page="about"] .experience-tag {
    min-height: 1.9rem;
    padding-inline: 0.7rem;
    font-size: 0.78rem;
  }

  body[data-page="about"] .design-process {
    padding-top: 0.05rem;
  }

  body[data-page="about"] .design-process__path {
    top: 0.2rem;
    bottom: 0.2rem;
    left: 0.1rem;
    right: auto;
    width: 3rem;
    height: auto;
  }

  body[data-page="about"] .design-process__path-svg--desktop {
    display: none;
  }

  body[data-page="about"] .design-process__path-svg--mobile {
    display: block;
  }

  body[data-page="about"] .design-process__steps {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    padding: 0 0 0 2.1rem;
  }

  body[data-page="about"] .process-step {
    min-height: 3.1rem;
    padding-top: 0;
    text-align: left;
    transform: translateY(14px);
  }

  body[data-page="about"] .process-step__node {
    top: 0.2rem;
    left: -1.85rem;
    transform: none;
  }

  body[data-page="about"] .process-step:hover .process-step__node,
  body[data-page="about"] .process-step:focus-within .process-step__node {
    transform: scale(1.08);
  }

  body[data-page="about"] .process-step__title {
    font-size: 1.15rem;
    margin: 0;
  }

  body[data-page="about"] .trait-card--blue {
    transform: rotate(-1deg);
  }

  body[data-page="about"] .trait-card--mint {
    transform: rotate(1deg);
  }

  body[data-page="about"] .trait-card--peach {
    transform: rotate(-1deg);
  }

  body[data-page="about"] .trait-card__number {
    font-size: 0.82rem;
  }

  body[data-page="about"] .trait-card__title {
    font-size: 1.15rem;
  }

  body[data-page="about"] .media-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="about"] .media-card {
    min-height: 10rem;
  }

  body[data-page="projects"] .projects-hero {
    padding-top: 0;
  }

  body[data-page="projects"] .projects-collection {
    gap: 2rem;
  }

  body[data-page="projects"] .project-filters {
    gap: 0.15rem;
    padding: 0.22rem 0.32rem;
  }

  body[data-page="projects"] .project-filter {
    min-height: 2.3rem;
    font-size: 0.78rem;
    padding-inline: 0.58rem;
  }

  body[data-page="projects"] .project-section {
    gap: 0.45rem;
  }

  body[data-page="projects"] .project-category {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
  }

  body[data-page="projects"] .project-showcase {
    gap: 0.85rem;
  }

  body[data-page="projects"] .project-showcase__content {
    gap: 0.55rem;
  }

  body[data-page="projects"] .project-showcase__title {
    font-size: clamp(1.25rem, 6vw, 1.8rem);
  }

  body[data-page="projects"] .project-showcase__mockup img {
    width: min(11rem, 72vw);
  }

  body[data-page="projects"] .project-showcase__placeholder {
    width: min(11rem, 72vw);
  }

  body[data-page="projects"] .project-showcase__actions {
    justify-content: stretch;
  }

  body[data-page="projects"] .project-showcase__actions .button {
    width: 100%;
    justify-content: center;
  }

  body[data-page="projects"] .project-showcase__actions--dual {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  body[data-page="projects"] .project-showcase__actions--dual .button {
    min-width: 0;
  }

  body[data-page="about"] .collaboration-panel__body,
  body[data-page="projects"] .collaboration-panel__body {
    gap: 0.9rem;
  }

  body[data-page="about"] .music-card,
  body[data-page="projects"] .music-card {
    width: 100%;
    min-height: 10.25rem;
    height: auto;
    grid-template-columns: 6.25rem minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.65rem;
  }

  body[data-page="about"] .music-card__title,
  body[data-page="projects"] .music-card__title {
    font-size: clamp(1.25rem, 7.2vw, 1.9rem);
  }

  body[data-page="about"] .music-card__play-button img,
  body[data-page="projects"] .music-card__play-button img {
    width: 2.35rem;
    height: 2.35rem;
  }

  body[data-page="about"] .link-columns,
  body[data-page="projects"] .link-columns {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  body[data-page="about"] .link-columns__title,
  body[data-page="projects"] .link-columns__title {
    font-size: 1rem;
    margin-bottom: 0.35rem;
  }

  body[data-page="about"] .link-list,
  body[data-page="projects"] .link-list {
    gap: 0.3rem;
  }

  body[data-page="about"] .link-list a,
  body[data-page="projects"] .link-list a {
    font-size: 0.92rem;
  }

  .home-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    gap: 0;
  }

  .home-intro {
    grid-row: 1;
    height: 100%;
    margin-top: clamp(1.15rem, 3.8vh, 1.85rem);
    gap: clamp(0.95rem, 2.9vh, 1.35rem);
  }

  .home-projects {
    grid-row: 2;
    display: none;
  }

  .page-home {
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .page-home .site-header {
    gap: 0.5rem;
    margin-top: 0.95rem;
  }

  .page-home main {
    margin-top: 0.9rem;
  }

  .page-home .home-intro__copy {
    gap: clamp(0.75rem, 2.2vh, 1rem);
  }

  .page-home .hero-title {
    font-size: clamp(2.1rem, 10.2vw, 3.25rem);
    max-width: 11.5ch;
  }

  .page-home .hero-copy {
    max-width: 32rem;
    font-size: clamp(0.95rem, 3.7vw, 1.08rem);
    line-height: 1.45;
  }

  .page-home .tool-strip {
    gap: 0.55rem;
    max-width: 100%;
  }

  .page-home .tool-chip img {
    max-height: 2rem;
  }

  .page-home .social-row {
    margin-top: auto;
    gap: 0.55rem;
    padding-top: 0.15rem;
  }

  .page-home .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    align-items: stretch;
  }

  .page-home .hero-actions .button {
    width: 100%;
    min-height: 2.7rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.84rem;
  }

  .project-rail__cards > :nth-child(n + 3) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .design-process__path-flow {
    animation: none;
  }

  .process-step,
  .process-step__card,
  .process-step__node {
    transition: none;
  }
}

@media (max-width: 63.99rem) and (max-height: 46rem) {
  .page-home {
    padding-bottom: 1rem;
  }

  .page-home .site-header {
    gap: 0.55rem;
    margin-top: 1rem;
  }

  .page-home main {
    margin-top: 0.65rem;
  }

  .page-home .home-layout {
    gap: 0;
  }

  .page-home .home-intro {
    margin-top: 0.75rem;
    gap: 0.7rem;
  }

  .page-home .home-intro__copy {
    gap: 1.5rem;
  }

  .page-home .hero-title {
    font-size: clamp(1.9rem, 10.5vw, 2.7rem);
  }

  .page-home .hero-copy {
    font-size: 0.96rem;
    line-height: 1.45;
  }

  .page-home .icon-button {
    width: 2.45rem;
    height: 2.45rem;
  }

  .page-home .tool-chip img {
    max-height: 1.6rem;
  }

  .page-home .tool-strip {
    gap: 0.4rem;
  }

  .page-home .social-row {
    gap: 0.45rem;
  }

  .page-home .hero-actions {
    gap: 0.5rem;
  }

  .page-home .button {
    min-height: 2.55rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.83rem;
  }

  .page-home .project-card {
    grid-template-columns: 4.8rem minmax(0, 1fr);
    gap: 0.65rem;
    padding: 0.6rem;
  }

  .page-home .project-card__media {
    min-height: 4.8rem;
  }

  .page-home .project-rail__cards > :nth-child(n + 2) {
    display: none;
  }
}

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

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