.subpage-main {
  padding-bottom: var(--space-8);
}

.page-hero {
  position: relative;
  padding: var(--space-8) 0 var(--space-6);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(46rem 28rem at 88% -20%, rgba(113, 80, 255, 0.28), rgba(113, 80, 255, 0) 68%),
    radial-gradient(40rem 24rem at 12% 20%, rgba(166, 114, 255, 0.16), rgba(166, 114, 255, 0) 70%);
  pointer-events: none;
}

.page-hero__content {
  position: relative;
  z-index: 1;
  max-width: 52rem;
}

.page-title {
  margin: 0;
  max-width: 18ch;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  font-weight: 400;
}

.page-intro {
  margin: var(--space-4) 0 0;
  max-width: 42rem;
  color: #4d4562;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.content-shell {
  border: 1px solid var(--line-purple);
  border-radius: 1rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(244, 239, 255, 0.92));
  box-shadow: 0 14px 30px rgba(71, 47, 147, 0.1);
  padding: clamp(1.2rem, 2vw, 2rem);
}

.content-shell + .content-shell {
  margin-top: var(--space-5);
}

.content-shell h2 {
  margin: 0 0 var(--space-3);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.12;
}

.content-shell h3 {
  margin: var(--space-4) 0 var(--space-2);
  font-size: 1.18rem;
  line-height: 1.2;
}

.content-shell p {
  margin: 0 0 var(--space-3);
  color: var(--ink-muted);
}

.content-shell ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink-muted);
}

.content-shell li + li {
  margin-top: 0.45rem;
}

.media-frame {
  margin: var(--space-4) 0;
  border: 1px solid var(--line-purple);
  border-radius: 0.9rem;
  overflow: hidden;
  background: var(--surface);
}

.media-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.media-frame--prototype {
  position: relative;
  aspect-ratio: 16 / 10;
}

.media-frame--narrow {
  max-width: 70%;
  margin-left: auto;
  margin-right: auto;
}

.media-frame__link {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
}

.media-frame__preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.24s ease;
}

.media-frame__embed {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}

.media-frame__label {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  padding: 0.35rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(8, 7, 16, 0.62);
  color: #fff;
  font-family: "IBM Plex Mono", "SF Mono", Menlo, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.media-frame__link:hover .media-frame__preview,
.media-frame__link:focus-visible .media-frame__preview {
  transform: scale(1.02);
}

.media-frame__link:hover .media-frame__label,
.media-frame__link:focus-visible .media-frame__label {
  background: rgba(20, 18, 36, 0.78);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-1px);
}

.inline-meta {
  margin: 0 0 var(--space-4);
  font-family: "IBM Plex Mono", "SF Mono", Menlo, monospace;
  color: var(--ink-muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.surface-card {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--surface);
  padding: var(--space-4);
}

.download-row {
  margin-top: var(--space-5);
}

.section-divider {
  border: 0;
  border-top: 1px solid rgba(157, 129, 248, 0.26);
  margin: var(--space-5) 0;
  width: 100%;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-3);
}

.gallery-item {
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid var(--line-purple);
  background: var(--surface);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
  cursor: pointer;
}

.gallery-item:hover,
.gallery-item:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(71, 47, 147, 0.2);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(11, 9, 20, 0.93);
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: min(94vw, 1100px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.footer-cta .page-actions .button {
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.itera-page .page-hero__content,
.itera-page .footer-cta__block {
  max-width: none;
}

.itera-page .footer-cta {
  margin-top: -1px;
  padding: 2.5rem 0 3rem;
  min-height: 0;
}

.itera-page .page-actions .button {
  border-radius: 0;
}

.itera-page .subpage-main {
  padding-bottom: 0;
}

.itera-page .itera-content-section {
  padding-bottom: var(--space-6);
}

.figma-page .page-hero__content,
.figma-page .footer-cta__block {
  max-width: none;
}

.figma-page .page-actions .button {
  border-radius: 0;
}

.figma-page .subpage-main {
  padding-bottom: 0;
}

.figma-page .figma-content-section {
  padding-bottom: var(--space-6);
}

.biochem-page .page-hero__content,
.biochem-page .footer-cta__block {
  max-width: none;
}

.biochem-page .page-actions .button {
  border-radius: 0;
}

.biochem-page .subpage-main {
  padding-bottom: 0;
}

.biochem-page .biochem-content-section {
  padding-bottom: var(--space-6);
}

.mise-en-lens-page .page-hero__content,
.mise-en-lens-page .footer-cta__block {
  max-width: none;
}

.mise-en-lens-page .page-actions .button {
  border-radius: 0;
}

.mise-en-lens-page .subpage-main {
  padding-bottom: 0;
}

.mise-en-lens-page .mise-en-lens-content-section {
  padding-bottom: var(--space-6);
}

@media (max-width: 62rem) {
  .page-hero {
    padding-top: var(--space-7);
  }

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

/* ─── Art page polish ─────────────────────────────────────────────────────── */

.art-page {
  background: linear-gradient(180deg, #efeaf9 0%, #e5dcf5 52%, #d6c9ef 100%);
  overflow-x: hidden;
}

.art-page .subpage-main {
  padding-bottom: 0;
}

.art-hero {
  padding: clamp(2.8rem, 5.2vw, 4.4rem) 0 clamp(1.9rem, 3.6vw, 3rem);
}

.art-hero::before {
  background:
    radial-gradient(52rem 30rem at 84% -18%, rgba(113, 80, 255, 0.22), rgba(113, 80, 255, 0) 70%),
    radial-gradient(42rem 24rem at 8% 18%, rgba(166, 114, 255, 0.12), rgba(166, 114, 255, 0) 72%);
}

.art-hero::after {
  content: "";
  position: absolute;
  width: min(34vw, 18rem);
  aspect-ratio: 1;
  right: clamp(1.2rem, 6vw, 6rem);
  top: clamp(3rem, 8vw, 6.6rem);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(130, 94, 238, 0.26) 0%, rgba(130, 94, 238, 0.06) 42%, transparent 74%);
  pointer-events: none;
}

.art-page .page-hero__content {
  max-width: none;
}

.art-page .page-title {
  max-width: 34ch;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.07;
}

.art-page .page-intro {
  margin-top: var(--space-4);
  max-width: 60ch;
}

.art-hero__stars {
  position: absolute !important;
  bottom: 0.5rem !important;
  right: -1.5rem !important;
  margin: 0 !important;
  font-family: monospace;
  font-size: 14px;
  line-height: 1.3;
  white-space: pre;
  pointer-events: none;
  z-index: 1;
}

.art-gallery-section {
  position: relative;
  overflow: hidden;
  margin-top: 0;
  padding: clamp(4.4rem, 7vw, 6rem) 0 clamp(4.8rem, 7.2vw, 6.4rem);
  background: transparent;
}

.art-gallery-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: -120px;
  width: 100%;
  height: clamp(280px, 38vw, 440px);
  background: linear-gradient(
    to bottom,
    rgba(176, 160, 224, 0.64) 0%,
    rgba(176, 160, 224, 0.46) 20%,
    rgba(176, 160, 224, 0.26) 44%,
    rgba(176, 160, 224, 0.1) 70%,
    rgba(176, 160, 224, 0) 100%
  );
  pointer-events: none;
}

.art-gallery-section .container {
  position: relative;
  z-index: 1;
}

.art-gallery-header {
  margin-bottom: var(--space-6);
}

.art-gallery-kicker {
  margin-bottom: 0.35rem;
}

.art-gallery-note {
  max-width: 30rem;
  margin: 0;
  color: #595072;
  font-size: 0.96rem;
  line-height: 1.65;
}

.art-marquee {
  overflow: hidden;
  padding: 1rem 0 1.1rem;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.4) 3%, rgba(0, 0, 0, 1) 12%, rgba(0, 0, 0, 1) 88%, rgba(0, 0, 0, 0.4) 97%, transparent 100%);
}

.art-marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 1.5vw, 1rem);
  width: max-content;
  will-change: transform;
  animation: artMarqueeScroll 96s linear infinite;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.art-marquee.is-paused .art-marquee__track {
  animation-play-state: paused;
}

.art-marquee__item {
  flex: 0 0 auto;
  width: clamp(150px, 17vw, 210px);
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 0;
  border-radius: 1rem;
  background: transparent;
  cursor: pointer;
  position: relative;
  transform: translateZ(0);
  transition: transform 0.32s ease, box-shadow 0.32s ease, opacity 0.32s ease, filter 0.32s ease;
}

.art-marquee__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
  border: 1px solid rgba(175, 156, 231, 0.24);
  box-shadow:
    0 12px 26px rgba(72, 50, 138, 0.11),
    0 1px 0 rgba(255, 255, 255, 0.35) inset;
  transition: transform 0.32s ease, box-shadow 0.32s ease, filter 0.32s ease, border-color 0.32s ease;
}

.art-marquee__item:hover img,
.art-marquee__item:focus-visible img {
  transform: scale(1.045);
  filter: brightness(1.03) contrast(1.03) saturate(1.02);
  box-shadow:
    0 14px 30px rgba(72, 50, 138, 0.14),
    0 0 0 1px rgba(186, 170, 236, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.4) inset;
}

.art-marquee__item.is-selected {
  z-index: 2;
  transform: scale(1.05);
}

.art-marquee__item.is-selected img {
  border-color: rgba(175, 156, 231, 0.26);
  filter: brightness(1.04) contrast(1.06);
  box-shadow:
    0 16px 32px rgba(72, 50, 138, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.4) inset;
}

.art-marquee.is-paused {
  cursor: default;
}



.art-page.art-gallery-paused .art-marquee__item:not(.is-selected) {
  opacity: 0.7;
  filter: saturate(0.94) brightness(0.97);
}

@keyframes artMarqueeScroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.art-footer {
  padding: clamp(3.2rem, 5vw, 4.2rem) 0 clamp(2.4rem, 4vw, 3rem);
  min-height: 0;
  background: linear-gradient(180deg, #b9a9e4 0%, #a28cd8 100%);
}

.art-footer .footer-cta__block {
  max-width: 72rem;
}

.art-footer h2 {
  max-width: 26ch;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.18;
}

.art-footer p:not(.kicker):not(.footer-meta) {
  max-width: 54ch;
  color: rgba(34, 26, 58, 0.86);
}

.art-footer .page-actions {
  margin-top: var(--space-4);
}

.art-footer .page-actions .button {
  border-radius: 0;
  letter-spacing: 0.12em;
}

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

@media (max-width: 62rem) {
  .art-hero::after {
    right: -1rem;
    top: 4.2rem;
    width: min(44vw, 16rem);
  }

  .art-gallery-section {
    padding-top: 2rem;
  }

  .art-marquee__item {
    width: clamp(140px, 36vw, 180px);
  }
}

/* ─── Resume page refresh ────────────────────────────────────────────────── */

.resume-page {
  background: linear-gradient(180deg, #f1ecfb 0%, #e4dcf6 42%, #d2c5ee 100%);
  overflow-x: hidden;
}

.resume-page .subpage-main {
  padding-bottom: 0;
}

.resume-hero {
  padding: clamp(2.75rem, 6vw, 5.5rem) 0 clamp(2rem, 4vw, 3.4rem);
  overflow: hidden;
}

.resume-hero::after {
  content: "";
  position: absolute;
  width: min(56vw, 42rem);
  aspect-ratio: 1;
  right: -14rem;
  top: -9rem;
  background: radial-gradient(circle, rgba(111, 79, 220, 0.2) 0%, rgba(111, 79, 220, 0) 70%);
  filter: blur(6px);
  pointer-events: none;
}

.resume-hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(14rem, 0.54fr);
  gap: clamp(0.9rem, 1.8vw, 1.6rem);
  align-items: stretch;
}

.resume-hero__content {
  max-width: none;
}

.resume-hero .page-title {
  max-width: 34ch;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.07;
}

.resume-hero .page-intro {
  max-width: 60ch;
}

.resume-hero .page-actions {
  margin-top: var(--space-5);
}

.resume-hero .page-actions .button {
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.75rem 2rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.resume-hero .page-actions .button--primary {
  background: var(--accent-purple-deep);
  color: #f9f7ff;
  border: 0;
}

.resume-hero .page-actions .button--primary:hover,
.resume-hero .page-actions .button--primary:focus-visible {
  background: #3a2b6a;
}

.resume-hero .page-actions .button:hover,
.resume-hero .page-actions .button:focus-visible {
  transform: none;
  box-shadow: none;
}

.resume-hero__aside {
  position: relative;
  min-height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: clamp(6rem, 8.2vw, 7.8rem);
  padding-left: clamp(0.25rem, 0.8vw, 0.7rem);
}

.resume-hero__aside::before {
  content: "";
  position: absolute;
  width: clamp(15rem, 35vw, 22rem);
  aspect-ratio: 1;
  left: 10%;
  top: 64%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(133, 95, 255, 0.2) 0%, rgba(133, 95, 255, 0.06) 52%, transparent 78%);
  filter: blur(18px);
  pointer-events: none;
}

.resume-hero__meta-card {
  position: relative;
  z-index: 1;
  width: min(100%, 17.1rem);
  min-height: 12.2rem;
  border: 1px solid rgba(124, 100, 194, 0.24);
  border-radius: 0.7rem;
  background: linear-gradient(160deg, rgba(245, 240, 255, 0.8), rgba(233, 223, 252, 0.74));
  box-shadow: 0 12px 26px rgba(61, 42, 130, 0.11);
  padding: 1.35rem 1.35rem 1.2rem;
  margin-top: 0;
}

.resume-hero__meta-kicker {
  margin: 0 0 0.7rem;
  font-family: "IBM Plex Mono", "SF Mono", Menlo, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #5f547f;
}

.resume-hero__meta-line {
  margin: 0.46rem 0 0;
  color: #3f365d;
  font-size: 0.96rem;
  line-height: 1.4;
}

.resume-hero__stars {
  position: absolute;
  bottom: 0.45rem;
  right: 0.75rem;
  margin: 0;
  font-family: monospace;
  font-size: 0.88rem;
  line-height: 1.2;
  color: rgba(77, 60, 125, 0.34);
  white-space: pre;
  pointer-events: none;
}

.resume-content {
  position: relative;
  padding: 0 0 5rem;
}

.resume-content::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(151, 130, 209, 0) 0%,
    rgba(151, 130, 209, 0.45) 22%,
    rgba(151, 130, 209, 0.45) 78%,
    rgba(151, 130, 209, 0) 100%
  );
}

.resume-content .container {
  position: relative;
  z-index: 1;
  padding-top: var(--space-6);
}

.resume-page .content-shell {
  border: 1px solid rgba(160, 136, 224, 0.48);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.84), rgba(236, 226, 255, 0.82));
  box-shadow: 0 14px 32px rgba(74, 48, 151, 0.15);
}

.resume-page .content-shell + .content-shell {
  margin-top: var(--space-6);
}

.resume-page .content-shell h2 {
  margin-bottom: var(--space-4);
  font-family: "Instrument Serif", Georgia, serif;
  color: #2f2355;
  letter-spacing: -0.01em;
}

.resume-page .content-shell h3 {
  color: #2f2355;
  font-size: 1.18rem;
  line-height: 1.2;
  letter-spacing: 0;
  margin: var(--space-4) 0 var(--space-2);
}

.resume-page .content-shell p,
.resume-page .content-shell li {
  color: #4a4461;
}

.resume-page .inline-meta {
  color: #5f5481;
}

.resume-page .section-divider {
  border-top-color: rgba(133, 95, 255, 0.32);
}

.resume-page .footer-cta .page-actions .button {
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.75rem 2rem;
  font-size: 0.9rem;
}

.resume-page .footer-cta .page-actions .button--primary {
  background: var(--accent-purple-deep);
  color: #f9f7ff;
  border: 0;
}

.resume-page .footer-cta .page-actions .button--primary:hover,
.resume-page .footer-cta .page-actions .button--primary:focus-visible {
  background: #3a2b6a;
}

.resume-page .footer-cta .page-actions .button--secondary {
  background: transparent;
  border: 1px solid #2f2a3c;
  color: #2f2a3c;
}

.resume-page .footer-cta .page-actions .button--secondary:hover,
.resume-page .footer-cta .page-actions .button--secondary:focus-visible {
  background: #efe8ff;
}

.resume-page .footer-cta .page-actions .button:hover,
.resume-page .footer-cta .page-actions .button:focus-visible {
  transform: none;
  box-shadow: none;
}

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

.resume-page .surface-card {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #e0d9f7 0%, #c9bfee 100%);
  padding: 2rem;
  box-shadow: none;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.resume-page .surface-card h3 {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 1.22rem;
  line-height: 1.2;
  letter-spacing: 0;
  color: #2f2355;
}

.resume-page .surface-card ul {
  margin-top: var(--space-3);
}

@media (max-width: 72rem) {
  .resume-page .split-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 62rem) {
  .resume-hero__layout {
    grid-template-columns: 1fr;
  }

  .resume-hero__aside {
    min-height: 12rem;
    justify-content: flex-start;
    padding-top: 0;
  }

  .resume-hero__stars {
    right: 0;
  }

  .about-hero {
    padding: 2.25rem 0 2.5rem;
    min-height: 0;
  }

  .about-hero__layout,
  .about-cards {
    grid-template-columns: 1fr;
  }

  .about-hero__photo-wrap {
    width: min(100%, 30rem);
    margin: 0 auto;
  }

  .about-hero__photo {
    max-height: none;
    margin-top: 0;
  }

  .about-hero__stars {
    position: relative;
    right: auto;
    bottom: auto;
    display: block;
    margin: var(--space-3) auto 0;
    text-align: center;
    color: rgba(45, 31, 88, 0.72);
  }

  .resume-page .split-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(15rem, 82vw);
    gap: var(--space-3);
    overflow-x: auto;
    padding-bottom: var(--space-2);
    scroll-snap-type: x proximity;
  }

  .resume-page .surface-card {
    padding: 1.2rem;
    min-height: 100%;
    scroll-snap-align: start;
  }

  .resume-page .surface-card h3 {
    font-size: 1.05rem;
  }

  .resume-page .surface-card ul {
    margin-top: var(--space-2);
    padding-left: 1rem;
    font-size: 0.93rem;
    line-height: 1.55;
  }
}

/* ─── About page redesign ─────────────────────────────────────────────────── */

.about-page {
  background: linear-gradient(180deg, #ede9f8 0%, #ddd6f3 100%);
  overflow-x: hidden;
}

.about-page .subpage-main {
  padding-bottom: 0;
}

.about-hero {
  position: relative;
  padding: 3rem 0;
  min-height: 500px;
  overflow: visible;
}

.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(85rem 46rem at 92% -16%, rgba(107, 77, 255, 0.2), transparent 56%),
    radial-gradient(70rem 40rem at -6% 12%, rgba(164, 124, 255, 0.16), transparent 58%);
  pointer-events: none;
  z-index: 0;
}

.about-hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 0.6fr;
  gap: var(--space-7);
  align-items: stretch;
  overflow: visible;
}

.about-hero__text {
  padding-top: 0;
}

.about-hero__sub {
  margin: var(--space-5) 0 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 36rem;
}

.about-hero__headline {
  margin: var(--space-3) 0 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 400;
}

.about-hero__photo-wrap {
  position: relative;
  height: 100%;
  overflow: visible;
}

.about-hero__photo-wrap::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(16rem, 60vw, 40rem);
  aspect-ratio: 1;
  background: radial-gradient(
    circle at center,
    rgba(147, 112, 219, 0.55) 0%,
    rgba(133, 95, 255, 0.38) 25%,
    rgba(113, 80, 255, 0.22) 50%,
    rgba(113, 80, 255, 0.08) 75%,
    transparent 90%
  );
  filter: blur(2.5rem);
  pointer-events: none;
  z-index: 0;
}

.about-hero__photo {
  width: 100%;
  max-height: 520px;
  margin-top: 1.5rem;
  object-fit: cover;
  object-position: center 40%;
  border-radius: 16px;
  display: block;
  position: relative;
  z-index: 1;
}

.about-hero__stars {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  margin: 0;
  font-family: monospace;
  font-size: 14px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.82);
  white-space: pre;
  pointer-events: none;
  z-index: 1;
}

.about-section {
  padding: 0 0 4rem;
  margin-top: 1.5rem;
  background: transparent;
  padding-top: 3rem;
}

.about-section--cards {
  position: relative;
  overflow: hidden;
  margin-top: 0;
  padding-top: 2.4rem;
  background: rgba(245, 241, 253, 0.94);
}

.about-section--cards::before {
  content: "";
  position: absolute;
  top: -88px;
  left: 0;
  width: 100%;
  height: clamp(240px, 34vw, 320px);
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(176, 160, 224, 0.74) 0%,
    rgba(176, 160, 224, 0.52) 30%,
    rgba(176, 160, 224, 0.26) 58%,
    rgba(176, 160, 224, 0.1) 78%,
    transparent 100%
  );
  z-index: 0;
}

.about-section--cards .container {
  position: relative;
  z-index: 1;
}

.about-page .about-section:not(.about-section--cards) {
  background: linear-gradient(180deg, #ddd6f3 0%, #c4b8e8 58%, #b0a0e0 100%);
}

.about-section__heading {
  margin: var(--space-3) 0 0;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.about-body {
  max-width: 780px;
  line-height: 1.8;
  color: var(--ink-muted);
  font-size: 18px;
  margin: var(--space-4) 0 0;
}

.about-section--beyond .about-body {
  max-width: 64ch;
  line-height: 1.72;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.about-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(224, 217, 247, 0.84) 0%, rgba(193, 177, 232, 0.8) 100%);
  padding: 2rem;
}

.about-card__stars {
  position: absolute;
  top: 1rem;
  right: 1rem;
  margin: 0;
  font-family: monospace;
  font-size: 12px;
  line-height: 1.1;
  color: rgba(45, 31, 88, 0.58);
  white-space: pre;
  pointer-events: none;
}

.about-card__label {
  margin: 0 0 var(--space-3);
  font-family: "IBM Plex Mono", "SF Mono", Menlo, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.about-card__body {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.68;
}

.about-page .page-actions .button {
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.75rem 2rem;
  font-size: 0.9rem;
}

.about-page .footer-cta {
  background:
    radial-gradient(ellipse at 100% 100%, rgba(120, 88, 211, 0.5) 0%, transparent 60%),
    linear-gradient(180deg, #b8a7e3 0%, #9c88d4 100%);
}

.about-page .section-divider {
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  line-height: 0;
  background: rgba(152, 158, 176, 0.72);
  opacity: 1;
}

.about-page .footer-cta h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

/* Hide JS-generated floating particles on the about CTA */
.about-page .cta-particle {
  display: none;
}

/* Hide the pre-formatted footer stars on about page */
.about-page .footer-cta__stars {
  display: none;
}

@media (max-width: 62rem) {
  .about-hero__layout,
  .about-cards {
    grid-template-columns: 1fr;
  }
}
