:root {
  --bg: #f3ecff;
  --bg-soft: #f9f5ff;
  --surface: rgba(249, 245, 255, 0.82);
  --surface-soft: rgba(255, 255, 255, 0.72);
  --surface-olive: rgba(215, 199, 255, 0.42);
  --surface-rose: rgba(229, 214, 255, 0.5);
  --ink: #23153d;
  --muted: #5c4b85;
  --olive: #d7c7ff;
  --olive-deep: #b199f5;
  --rosewood: #a87cff;
  --rosewood-deep: #5f35bf;
  --tech: #c29dff;
  --tech-deep: #8f66f2;
  --tech-ink: #7341d7;
  --tech-soft: rgba(215, 199, 255, 0.58);
  --line: rgba(58, 38, 109, 0.14);
  --line-strong: rgba(115, 65, 215, 0.24);
  --shadow: 0 18px 60px rgba(59, 36, 110, 0.14);
  --shadow-soft: 0 12px 30px rgba(59, 36, 110, 0.1);
  --text-accent: #6841cb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Nunito", sans-serif;
  background: #f3ecff;
}

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

button {
  border: 0;
  background: none;
  font: inherit;
}

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

.page-shell {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  isolation: isolate;
}

.page-shell::before,
.page-shell::after {
  position: fixed;
  top: 0;
  bottom: 0;
  width: min(6vw, 72px);
  content: "";
  pointer-events: none;
  z-index: 0;
}

.bubble-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.bubble-canvas-front {
  z-index: 2;
}

.page-shell::before {
  left: 0;
  background: linear-gradient(90deg, rgba(243, 236, 255, 0.72), rgba(243, 236, 255, 0));
}

.page-shell::after {
  right: 0;
  background: linear-gradient(270deg, rgba(243, 236, 255, 0.72), rgba(243, 236, 255, 0));
}

.floral-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.floral-layer::before,
.floral-layer::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.floral-layer::before {
  background: none;
}

.floral-layer::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02) 14%, rgba(255, 255, 255, 0.02) 86%, rgba(255, 255, 255, 0.18));
}

.floral,
.floral::before,
.floral::after {
  position: absolute;
  display: block;
  content: "";
}

.floral {
  width: var(--cluster-size, 320px);
  height: calc(var(--cluster-size, 320px) * 1.02);
  opacity: var(--cluster-opacity, 0.7);
  transform: rotate(var(--cluster-rotate, 0deg));
  transform-origin: center;
  border-radius: 42% 58% 55% 45% / 45% 38% 62% 55%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  filter: drop-shadow(0 0 24px rgba(115, 65, 215, 0.14));
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.28) 18%, rgba(194, 157, 255, 0.3) 52%, rgba(115, 65, 215, 0.08) 100%);
  box-shadow:
    inset -18px -18px 30px rgba(115, 65, 215, 0.08),
    0 0 26px rgba(115, 65, 215, 0.12);
  animation: botanicalDrift var(--cluster-speed, 18s) ease-in-out infinite alternate;
}

.floral:nth-child(even) {
  animation-direction: alternate-reverse;
}

.floral::before {
  inset: 18% auto auto 18%;
  width: 28%;
  height: 28%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0));
}

.floral::after {
  left: 12%;
  bottom: 12%;
  width: 48%;
  height: 22%;
  border-radius: 999px;
  transform: rotate(-14deg);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 62% 40%, rgba(143, 102, 242, 0.1), transparent 36%);
}

.floral-top-left {
  --cluster-size: 278px;
  --cluster-rotate: -10deg;
  --cluster-opacity: 0.68;
  --cluster-speed: 23s;
  top: 40px;
  left: -18px;
}

.floral-top-right {
  --cluster-size: 360px;
  --cluster-rotate: 12deg;
  --cluster-opacity: 0.8;
  --cluster-speed: 19s;
  top: -8px;
  right: -22px;
}

.floral-mid-left {
  --cluster-size: 246px;
  --cluster-rotate: -8deg;
  --cluster-opacity: 0.64;
  --cluster-speed: 21s;
  top: 30%;
  left: -10px;
}

.floral-bottom-left {
  --cluster-size: 328px;
  --cluster-rotate: -18deg;
  --cluster-opacity: 0.68;
  --cluster-speed: 24s;
  bottom: 10px;
  left: -8px;
}

.floral-mid-right {
  --cluster-size: 250px;
  --cluster-rotate: 5deg;
  --cluster-opacity: 0.62;
  --cluster-speed: 20s;
  top: 38%;
  right: 6px;
}

.floral-center-left {
  --cluster-size: 224px;
  --cluster-rotate: -4deg;
  --cluster-opacity: 0.58;
  --cluster-speed: 22s;
  top: 46%;
  left: 14%;
}

.floral-center-right {
  --cluster-size: 238px;
  --cluster-rotate: 8deg;
  --cluster-opacity: 0.56;
  --cluster-speed: 24s;
  top: 58%;
  right: 12%;
}

.floral-top-center {
  --cluster-size: 188px;
  --cluster-rotate: 2deg;
  --cluster-opacity: 0.54;
  --cluster-speed: 21s;
  top: 14%;
  left: 48%;
}

.floral-bottom-center {
  --cluster-size: 198px;
  --cluster-rotate: -6deg;
  --cluster-opacity: 0.52;
  --cluster-speed: 22s;
  bottom: 10%;
  left: 50%;
}

.floral-center-vine-left,
.floral-center-vine-right {
  width: 214px;
  height: 440px;
  opacity: 0.44;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(215, 199, 255, 0.1)),
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.48), transparent 20%),
    radial-gradient(circle at 65% 44%, rgba(168, 124, 255, 0.12), transparent 24%);
  box-shadow:
    inset -20px -20px 36px rgba(115, 65, 215, 0.05),
    0 0 24px rgba(115, 65, 215, 0.08);
}

.floral-center-vine-left {
  top: 36%;
  left: 28%;
}

.floral-center-vine-right {
  top: 54%;
  right: 26%;
  transform: scaleX(-1);
}

.floral-bottom-right {
  --cluster-size: 286px;
  --cluster-rotate: 14deg;
  --cluster-opacity: 0.56;
  --cluster-speed: 23s;
  right: 12px;
  bottom: 84px;
}

.floral-mid-center-left {
  --cluster-size: 210px;
  --cluster-rotate: -12deg;
  --cluster-opacity: 0.62;
  --cluster-speed: 25s;
  top: 42%;
  left: 40%;
}

.floral-mid-center-right {
  --cluster-size: 216px;
  --cluster-rotate: 10deg;
  --cluster-opacity: 0.6;
  --cluster-speed: 23s;
  top: 64%;
  right: 38%;
}

.floral-vine-left,
.floral-vine-right {
  width: 278px;
  height: 580px;
  opacity: 0.5;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(168, 124, 255, 0.08)),
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.36), transparent 18%),
    radial-gradient(circle at 72% 42%, rgba(194, 157, 255, 0.18), transparent 22%);
  box-shadow:
    inset -22px -22px 38px rgba(115, 65, 215, 0.05),
    0 0 28px rgba(115, 65, 215, 0.08);
}

.floral-vine-left {
  --cluster-rotate: -14deg;
  --cluster-speed: 26s;
  left: -54px;
  top: 150px;
}

.floral-vine-right {
  --cluster-rotate: 18deg;
  --cluster-speed: 27s;
  right: -18px;
  top: 340px;
  transform: scaleX(-1) rotate(18deg);
}

.hero,
.content {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  max-width: 100%;
  margin-inline: auto;
}

.screen-section {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-content: center;
  gap: 22px;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 620ms cubic-bezier(0.2, 0.65, 0.2, 1),
    transform 620ms cubic-bezier(0.2, 0.65, 0.2, 1);
}

.screen-section > :not(.screen-anchor) {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 520ms cubic-bezier(0.2, 0.65, 0.2, 1),
    transform 520ms cubic-bezier(0.2, 0.65, 0.2, 1);
  animation: none;
}

.screen-section.is-visible > :not(.screen-anchor) {
  opacity: 1;
  transform: translateY(0);
}

.screen-section.is-visible > :nth-child(2) {
  transition-delay: 90ms;
}

.screen-section.is-visible > :nth-child(3) {
  transition-delay: 160ms;
}

.screen-section :is(.timeline-card, .stack-group-card, .work-card, .horse-note, .writing-feature, .resource-card) {
  animation: cardParallax linear both;
  animation-timeline: view();
  animation-range: cover 0% cover 100%;
}

.screen-section :is(.timeline-card, .stack-group-card, .work-card, .horse-note, .writing-feature, .resource-card):nth-child(2n) {
  animation-range: cover 10% cover 90%;
}

@keyframes cardParallax {
  from { translate: 0 42px; }
  to { translate: 0 -42px; }
}

.screen-anchor {
  position: absolute;
  inset: 0 auto auto 0;
  width: 1px;
  height: 1px;
}

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

.screen-hero {
  opacity: 1;
  transform: none;
}

.screen-journey,
.screen-work {
  grid-template-columns: minmax(0, 1fr);
}

.screen-contact {
  grid-template-rows: auto auto auto;
}

.hero {
  padding: 20px clamp(20px, 4vw, 52px) 28px;
}

.topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-menu-button,
.mobile-drawer-wrap {
  display: none;
}

.topbar-links a,
.button,
.project-tab {
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.topbar-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink);
  border: 1px solid transparent;
  animation: fadeSoft 1200ms cubic-bezier(0.2, 0.65, 0.2, 1) both;
}

.topbar-links a:nth-child(1) {
  animation-delay: 60ms;
}

.topbar-links a:nth-child(2) {
  animation-delay: 120ms;
}

.topbar-links a:nth-child(3) {
  animation-delay: 180ms;
}

.topbar-links a:nth-child(4) {
  animation-delay: 240ms;
}

.topbar-links a:nth-child(5) {
  animation-delay: 300ms;
}

.topbar-links a:nth-child(6) {
  animation-delay: 360ms;
}

.topbar-links a:nth-child(7) {
  animation-delay: 420ms;
}

.topbar-links a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(115, 65, 215, 0.12);
}

.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
  min-width: 0;
}

.hero-grid.editorial-hero {
  grid-template-columns: 1.2fr 0.9fr;
}

.hero-copy,
.section-heading,
.project-copy,
.horse-note,
.footer,
.article-inline-link,
.certification-copy,
.contact-copy-block {
  text-align: center;
}

.hero-copy,
.hero-visual,
.journey-group,
.project-copy,
.project-image-wrap,
.contact-copy-block {
  min-width: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
.footer-title,
.watch-title,
.hero-copy h1,
.section-heading h2,
.project-copy h3,
.horse-note h3,
.timeline-card h3,
.stack-card h3,
.empty-project-art span {
  font-family: "Caveat", cursive;
  line-height: 1.02;
}

.hero-copy-editorial {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0;
  padding: 0;
  animation: fadeUp 720ms cubic-bezier(0.2, 0.65, 0.2, 1) both;
}

.hero-copy-editorial::after {
  display: none;
}

.eyebrow,
.panel-label,
.insight-card span {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 10px auto 0;
  max-width: 11ch;
  font-size: clamp(2.2rem, 4.8vw, 4.55rem);
  letter-spacing: -0.03em;
  color: var(--ink);
  animation: fadeSoft 1320ms cubic-bezier(0.2, 0.65, 0.2, 1) both 140ms;
}

.hero-connection {
  margin: 26px 0 0;
  color: var(--ink);
  font-family: "Nunito", sans-serif;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.5;
  animation: fadeSoft 1360ms cubic-bezier(0.2, 0.65, 0.2, 1) both 340ms;
}

.hero-summary {
  max-width: 34rem;
  margin: 14px 0 0;
  color: var(--muted);
  font-family: "Nunito", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

.no-script-profile {
  max-width: 52rem;
  margin: 3rem auto;
  padding: 0 1.25rem;
  color: var(--ink);
  font-family: "Nunito", sans-serif;
  line-height: 1.65;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-actions {
  align-items: center;
  justify-content: flex-start;
  max-width: 34rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.hero-actions .button {
  animation: fadeSoft 1320ms cubic-bezier(0.2, 0.65, 0.2, 1) both;
}

.hero-actions .button:nth-child(1) {
  animation-delay: 360ms;
}

.hero-actions .button:nth-child(2) {
  animation-delay: 460ms;
}

.hero-actions .button:nth-child(3) {
  animation-delay: 560ms;
}

.button:hover,
.project-tab:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: linear-gradient(135deg, #8f66f2, #c29dff);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 24px rgba(115, 65, 215, 0.24);
}

.button.primary:hover {
  background: linear-gradient(135deg, var(--rosewood-deep), var(--tech-deep));
  box-shadow: 0 14px 28px rgba(115, 65, 215, 0.24);
}

.button.ghost:hover {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(47, 34, 53, 0.08);
  color: var(--rosewood-deep);
}

.company-line {
  margin: 16px 0 0;
  color: var(--rosewood-deep);
  font-weight: 600;
}

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

.hero-metrics.editorial-metrics {
  max-width: 640px;
  margin-top: 28px;
}

.stat-card,
.project-showcase,
.horse-note,
.footer,
.panel,
.portrait-card,
.cert-inline-card,
.cert-thumb-link,
.social-list-item {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.stat-card {
  padding: 18px;
  border-radius: 24px;
  background: rgba(249, 245, 255, 0.82);
}

.stat-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.55rem;
  color: var(--rosewood-deep);
}

.stat-card span {
  color: var(--muted);
  line-height: 1.45;
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
}

.hero-visual-editorial {
  padding-left: 0;
  animation: fadeUp 840ms cubic-bezier(0.2, 0.65, 0.2, 1) both 120ms;
}

.portrait-card {
  max-width: 560px;
  padding: 18px;
  border-radius: 32px;
}

.interactive-portrait {
  display: block;
  width: 100%;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

.interactive-portrait:focus-visible {
  outline: 2px solid rgba(95, 53, 191, 0.34);
  outline-offset: 8px;
}

.interactive-portrait.is-animating {
  animation: portraitPulse 680ms cubic-bezier(0.2, 0.65, 0.2, 1);
}

.hero-portrait-card {
  margin-top: 22px;
  background: var(--surface);
}

.portrait-card img {
  width: 100%;
  aspect-ratio: 1 / 1.08;
  border-radius: 24px;
  object-fit: cover;
}

.portrait-note {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.tilt-card {
  transform: none;
}

.tilt-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 46px rgba(59, 36, 110, 0.16);
}

.content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 0 clamp(20px, 4vw, 52px);
}

.panel {
  min-width: 0;
  border-radius: 34px;
  padding: clamp(18px, 3vw, 28px);
  animation: fadeUp 760ms cubic-bezier(0.2, 0.65, 0.2, 1) both;
}

.compact-panel {
  padding-block: clamp(18px, 3vw, 28px);
}

.journey-panel,
.stack-panel,
.horse-panel,
.resource-panel,
.footer {
  background: var(--surface);
}

.journey-panel,
.stack-panel,
.horse-panel,
.resource-panel,
.footer {
  border-color: rgba(255, 255, 255, 0.8);
}

.projects-panel {
  position: relative;
}

.horse-panel .section-heading,
.resource-panel .section-heading {
  margin-bottom: 10px;
}

.text-only {
  align-items: start;
}

.timeline-cards,
.stack-grid,
.projects-grid,
.horse-copy,
.resource-grid,
.media-list,
.cert-compact {
  display: grid;
  gap: 20px;
}

.section-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
  color: var(--ink);
  animation: fadeSoft 1260ms cubic-bezier(0.2, 0.65, 0.2, 1) both;
}

.project-copy p,
.horse-note p,
.footer p,
.timeline-card p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.timeline-cards-editorial {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline-card,
.stack-card {
  position: relative;
  padding: 16px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.timeline-card::before,
.stack-card::before {
  display: none;
}

.timeline-card-education {
  background: rgba(255, 255, 255, 0.72);
}

.timeline-card-work {
  background: rgba(255, 255, 255, 0.72);
}

.work-bubble-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 8px;
  justify-items: center;
}

.work-bubble-card {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  width: 100%;
  max-width: 240px;
  padding: 6px 0 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  text-align: center;
}

.work-bubble-card .timeline-year,
.work-bubble-card h3,
.work-bubble-card .timeline-place {
  transition: none;
}

.timeline-card h3,
.stack-card h3 {
  margin: 4px 0 6px;
  font-size: 1.2rem;
}

.timeline-year {
  color: var(--rosewood-deep);
  font-weight: 700;
}

.timeline-year {
  font-size: 1rem;
}

.timeline-place {
  margin-bottom: 0;
  font-size: 0.95rem;
  max-width: 16ch;
}

.city-chip {
  display: inline-flex;
  margin: 6px 0 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(168, 124, 255, 0.16);
  border: 1px solid rgba(115, 65, 215, 0.12);
  color: var(--rosewood-deep);
  font-size: 0.92rem;
}

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

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

.stack-group-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.stack-line {
  display: flex;
  justify-content: center;
  width: 100%;
}

.stack-group-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.stack-group-label {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.stack-track {
  position: static;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.stack-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(115, 65, 215, 0.12);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  white-space: nowrap;
}

.stack-grid-compact .stack-card {
  padding: 16px;
}

.project-tab,
.social-list-item {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.projects-grid {
  margin-top: 22px;
}

.projects-grid-editorial {
  grid-template-columns: 1fr;
  gap: 24px;
}

.project-explorer {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 22px;
  align-items: center;
}

.project-picker {
  display: grid;
  align-content: start;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(115, 65, 215, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .4);
}

.project-picker-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
  width: 100%;
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid rgba(115, 65, 215, .1);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.project-picker-item:last-child { border-bottom: 0; }
.project-picker-item:hover { background: rgba(255, 255, 255, .65); }
.project-picker-item[aria-pressed="true"] {
  background: linear-gradient(90deg, rgba(215,199,255,.48), rgba(255,255,255,.45));
  box-shadow: inset 3px 0 rgba(115, 65, 215, .65);
}

.project-picker-copy { display: grid; gap: 5px; min-width: 0; }
.project-picker-copy strong { font-size: .98rem; line-height: 1.2; }
.project-picker-copy > span { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: .82rem; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

.project-detail-card {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 18px;
  width: min(100%, 440px);
  min-height: 260px;
  justify-self: end;
  padding: clamp(22px, 3vw, 36px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,.88), rgba(255,255,255,.48) 52%, rgba(215,199,255,.48));
  box-shadow: 0 24px 48px rgba(59,36,110,.16), inset 0 2px 5px rgba(255,255,255,.95);
  backdrop-filter: blur(18px);
  animation: projectGlassFloat 5s ease-in-out infinite alternate;
}

.project-detail-card h3 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); }
.project-detail-card > p { max-width: 42ch; margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.project-detail-link { width: auto; margin-top: 8px; }
@keyframes projectGlassFloat { to { translate: 0 -8px; } }

.editorial-projects-panel {
  background:
    linear-gradient(180deg, rgba(249, 245, 255, 0.88), rgba(255, 255, 255, 0.7)),
    radial-gradient(circle at top right, rgba(168, 124, 255, 0.18), transparent 32%);
}

.project-rail,
.media-list {
  display: grid;
  gap: 12px;
  align-content: start;
}

.project-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 10px 10px;
  scroll-snap-type: x proximity;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.project-rail::-webkit-scrollbar {
  height: 8px;
}

.project-rail::-webkit-scrollbar-thumb {
  background: rgba(115, 65, 215, 0.2);
  border-radius: 999px;
}

.project-tab {
  position: relative;
  display: grid;
  gap: 10px;
  min-width: 220px;
  flex: 0 0 220px;
  padding: 12px;
  border-radius: 24px;
  cursor: pointer;
  text-align: left;
  scroll-snap-align: start;
  overflow: hidden;
  animation: fadeSoft 1320ms cubic-bezier(0.2, 0.65, 0.2, 1) both;
}

.project-tab::before {
  display: none;
}

.project-tab-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(168, 124, 255, 0.28), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(215, 199, 255, 0.58));
}

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

.project-tab-media-empty {
  display: grid;
  place-items: end start;
  padding: 16px;
}

.project-tab-media-empty span {
  font-family: "Caveat", cursive;
  font-size: 1.05rem;
}

.project-tab-copy {
  display: grid;
  gap: 2px;
  padding: 0 4px 2px;
}

.project-tab-copy strong {
  font-size: 1rem;
  color: var(--rosewood-deep);
}

.project-tab small {
  color: var(--muted);
  font-size: 0.82rem;
}

.project-tab.active {
  background: linear-gradient(135deg, rgba(168, 124, 255, 0.2), rgba(215, 199, 255, 0.4));
  border-color: rgba(115, 65, 215, 0.25);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.project-tab.active::before {
  display: none;
}

.project-showcase {
  width: 100%;
  max-width: 100%;
  border-radius: 28px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(249, 245, 255, 0.76)),
    radial-gradient(circle at top right, rgba(168, 124, 255, 0.18), transparent 30%);
  overflow: hidden;
  animation: fadeSoft 1260ms cubic-bezier(0.2, 0.65, 0.2, 1) both;
}

.project-showcase-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 28px;
  align-items: center;
  min-width: 0;
}

.project-image-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 360px);
  min-height: 100%;
  justify-self: center;
  order: 2;
}

.project-image-wrap img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  max-height: 320px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.4);
  object-fit: cover;
  object-position: center;
}

.project-image-wrap.empty {
  display: flex;
  min-height: 210px;
  align-items: stretch;
  justify-content: center;
}

.empty-project-art {
  width: 100%;
  min-height: 210px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(168, 124, 255, 0.28), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0.78), rgba(215, 199, 255, 0.58));
}

.project-copy {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 2px 0;
  width: 100%;
  max-width: none;
  order: 1;
}

.project-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-copy h3 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  color: var(--ink);
}

.project-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(215, 199, 255, 0.45);
  border: 1px solid rgba(115, 65, 215, 0.12);
}

.project-link-icon:hover {
  background: rgba(215, 199, 255, 0.72);
  border-color: rgba(115, 65, 215, 0.18);
  color: var(--rosewood-deep);
}

.project-link-icon svg {
  width: 17px;
  height: 17px;
}

.insight-card {
  margin-top: 8px;
  padding: 14px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(168, 124, 255, 0.2), rgba(215, 199, 255, 0.45));
  border: 1px solid rgba(115, 65, 215, 0.08);
}

.insight-card span {
  display: block;
}

.insight-card p {
  margin-top: 8px;
}

.horse-copy {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.horse-note,
.cert-thumb-link {
  border-radius: 28px;
  overflow: hidden;
}

.horse-note {
  position: relative;
  min-height: 0;
  padding: 0;
}

.horse-note-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.horse-note img {
  width: 100%;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
}

.horse-note-caption {
  position: absolute;
  inset: auto 12px 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(39, 29, 58, 0.18), rgba(39, 29, 58, 0.72)),
    linear-gradient(135deg, rgba(143, 102, 242, 0.2), rgba(115, 65, 215, 0.08));
  color: #fff;
  backdrop-filter: blur(8px);
}

.horse-note-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(199, 32, 32, 0.92);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.horse-note h3 {
  margin: 0;
  font-size: 1.15rem;
}

.horse-gallery-grid {
  gap: 12px;
}

.top-cert-panel {
  padding-block: clamp(22px, 4vw, 36px);
}

.cert-heading {
  margin-bottom: 0;
}

.cert-compact {
  display: grid;
  gap: 20px;
}

.cert-panel .cert-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.cert-panel .cert-heading {
  grid-column: 1 / -1;
}

.cert-inline-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.cert-inline-card-visual .detail-chip {
  margin-bottom: 0;
}

.cert-copy-compact {
  display: grid;
  align-items: start;
  justify-items: start;
}

.cert-thumb-link {
  position: relative;
  display: block;
  width: min(100%, 520px);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.cert-thumb-link img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: contain;
  background: #fff;
  border-radius: 20px;
}

.cert-pdf-preview object {
  display: none;
}

.cert-thumb-link:hover {
  transform: translateY(-1px);
  border-color: rgba(115, 65, 215, 0.18);
  box-shadow: 0 18px 36px rgba(59, 36, 110, 0.14);
}

.cert-link-icon,
.social-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(115, 65, 215, 0.12);
  color: var(--rosewood-deep);
  font-size: 0.95rem;
}

.cert-link-icon {
  position: absolute;
  top: 8px;
  right: 8px;
}

.cert-pdf-fallback {
  display: none;
  align-items: center;
  min-height: 360px;
  padding: 18px;
  color: var(--ink);
  font-weight: 600;
}

.cert-document-link {
  display: grid;
  gap: 10px;
  align-items: start;
  min-height: 220px;
  padding: 18px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(215, 199, 255, 0.68)),
    radial-gradient(circle at top right, rgba(168, 124, 255, 0.18), transparent 30%);
  border: 1px solid rgba(115, 65, 215, 0.12);
}

.cert-document-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(115, 65, 215, 0.12);
  color: var(--rosewood-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.cert-document-link strong {
  font-family: "Caveat", cursive;
  font-size: 1.35rem;
  line-height: 1.02;
}

.cert-document-link span:last-child {
  color: var(--muted);
}

.writing-grid {
  display: grid;
}

.writing-tabs {
  margin-top: 0;
  margin-bottom: 12px;
}

.writing-feature {
  display: grid;
  gap: 8px;
  position: relative;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.writing-feature strong {
  font-family: "Caveat", cursive;
  font-size: 1.28rem;
  line-height: 1.08;
  color: var(--ink);
}

.writing-author,
.writing-role {
  color: var(--ink);
  font-weight: 600;
}

.writing-role {
  font-weight: 500;
}

.writing-feature p {
  margin: 0;
  max-width: 78ch;
  color: var(--ink);
  line-height: 1.56;
}

.writing-readmore {
  color: var(--rosewood-deep);
  font-weight: 700;
}

.writing-feature .social-link-icon {
  position: absolute;
  top: 14px;
  right: 14px;
}

.writing-feature-compose {
  align-items: start;
}

.resource-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.resource-card {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 100%;
  padding: 16px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.resource-card strong {
  font-family: "Caveat", cursive;
  font-size: 1.24rem;
  line-height: 1.08;
  color: var(--ink);
}

.resource-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.56;
}

.resource-card .panel-label {
  margin-bottom: 0;
}

.resource-card-link,
.resource-card-copy {
  display: grid;
  gap: 10px;
  align-content: start;
}

.resource-card-link {
  position: relative;
  min-height: 100%;
}

.resource-card-article .resource-card-link,
.resource-card-cert .resource-card-link {
  padding-right: 42px;
}

.resource-card-video {
  grid-template-rows: auto 1fr;
}

.resource-certificate-preview,
.video-mini-frame {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(115, 65, 215, 0.12);
  box-shadow: var(--shadow-soft);
  background: rgba(255, 255, 255, 0.88);
}

.resource-certificate-preview img {
  width: 100%;
  aspect-ratio: 1.58 / 1;
  object-fit: cover;
  object-position: center top;
}

.video-mini-frame {
  aspect-ratio: 16 / 9;
  background: #111;
}

.video-mini-frame iframe,
.video-preview-link img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-preview-link {
  position: relative;
}

.video-preview-link img {
  object-fit: cover;
}

.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  color: var(--rosewood-deep);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(115, 65, 215, 0.12);
  box-shadow: var(--shadow-soft);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.social-icon-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(115, 65, 215, 0.2);
  box-shadow: var(--shadow);
}

.social-icon-link svg {
  width: 24px;
  height: 24px;
}

.footer {
  margin: 0;
  padding-block: clamp(18px, 3vw, 28px);
  border-radius: 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 18px;
  align-items: center;
}

.footer-copy {
  display: grid;
  gap: 8px;
}

.footer p {
  text-align: left;
}

.footer-title {
  color: var(--ink);
  font-size: 1.02rem;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

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

.bmc-link img {
  width: auto;
  height: 52px;
}

.footer .copyright {
  margin-top: 16px;
  padding-top: 14px;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  width: 100%;
}

.content {
  gap: 0;
}

.panel,
.footer,
.stat-card,
.timeline-card,
.project-showcase,
.project-tab,
.portrait-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.panel {
  padding-inline: 0;
  border-radius: 0;
}

.stat-card {
  padding: 8px 0 0;
  border-radius: 0;
}

.timeline-cards,
.article-list,
.certification-list {
  gap: 0 20px;
}

.timeline-card {
  padding: 10px 0 8px;
  border-radius: 0;
}

.journey-layout {
  gap: 24px;
}

.city-chip,
.detail-chip {
  margin-bottom: 0;
}

.portrait-card {
  padding: 0;
  max-width: 520px;
}

.portrait-note {
  margin-top: 12px;
}

.editorial-projects-panel {
  background: transparent;
}

.project-rail {
  padding: 0 0 10px;
  mask-image: none;
  -webkit-mask-image: none;
}

.project-tab {
  min-width: 176px;
  flex: 0 0 176px;
  padding: 0;
}

.project-tab-copy {
  padding: 10px 0 0;
}

.project-tab.active {
  background: transparent;
  color: var(--ink);
}

.project-tab.active .project-tab-media,
.project-tab.active .project-tab-media-empty {
  box-shadow: inset 0 0 0 2px rgba(115, 65, 215, 0.22);
}

.project-showcase {
  padding: 18px 0 0;
  border-radius: 0;
}

.project-image-wrap img,
.project-image-wrap.empty,
.empty-project-art {
  border-radius: 20px;
}

.resource-panel-hidden {
  display: none;
}

.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-inline-link,
.section-inline-note {
  color: var(--rosewood-deep);
  font-size: 0.95rem;
}

.article-list,
.certification-list {
  display: grid;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.article-highlight-card {
  justify-content: space-between;
}

.article-highlight-preview {
  display: grid;
  gap: 12px;
  min-height: 230px;
  padding: 18px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(236, 227, 255, 0.88)),
    radial-gradient(circle at top right, rgba(168, 124, 255, 0.18), transparent 42%);
  border: 1px solid rgba(115, 65, 215, 0.1);
  align-content: start;
}

.article-highlight-label {
  color: var(--rosewood-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-highlight-preview strong {
  font-family: "Caveat", cursive;
  font-size: 1.3rem;
  line-height: 1.08;
  color: var(--ink);
}

.article-highlight-copy {
  gap: 4px;
}
.article-inline-link {
  display: grid;
  gap: 8px;
  padding: 6px 0 0;
  animation: fadeSoft 1320ms cubic-bezier(0.2, 0.65, 0.2, 1) both;
}

.article-inline-label {
  color: var(--rosewood-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-inline-link strong,
.certification-copy strong {
  font-family: "Caveat", cursive;
  font-size: 1.2rem;
  line-height: 1.08;
  color: var(--ink);
}

.article-inline-link p,
.certification-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.certification-link {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 12px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(115, 65, 215, 0.14);
  box-shadow: var(--shadow-soft);
  animation: fadeSoft 1360ms cubic-bezier(0.2, 0.65, 0.2, 1) both;
}

.certification-link:hover {
  transform: translateY(-2px);
  border-color: rgba(115, 65, 215, 0.22);
  box-shadow: var(--shadow);
}

.certification-link.featured {
  transform: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(225, 213, 255, 0.88)),
    radial-gradient(circle at top right, rgba(168, 124, 255, 0.18), transparent 42%);
  border-color: rgba(95, 53, 191, 0.28);
  box-shadow: 0 22px 52px rgba(95, 53, 191, 0.16);
}

.certification-preview {
  overflow: hidden;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 230px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(115, 65, 215, 0.1);
}

.certification-preview img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1.5 / 1;
  object-fit: contain;
  object-position: center;
}

.certification-link.featured .certification-preview {
  min-height: 230px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 236, 255, 0.96));
}

.certification-copy {
  display: grid;
  gap: 6px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 420px);
  gap: 18px;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.watch-loop {
  display: block;
  width: min(100%, 320px);
  padding-top: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(115, 65, 215, 0.14);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
}

.contact-portrait {
  width: min(100%, 320px);
  margin: 0;
  justify-self: end;
}

.watch-loop video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: 24px;
}

.youtube-thumb-card {
  position: relative;
}

.youtube-thumb-card::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 58px;
  height: 40px;
  transform: translate(-50%, -50%);
  border-radius: 14px;
  background: rgba(199, 32, 32, 0.92);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.18);
}

.youtube-thumb-card::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  transform: translate(-38%, -50%);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #fff;
}

.watch-icons-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0;
}

.contact-copy-block {
  display: grid;
  gap: 16px;
  align-items: start;
  justify-items: center;
  width: 100%;
  max-width: 42rem;
}

.contact-copy-block h2 {
  margin: 0;
  font-family: "Caveat", cursive;
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  color: var(--ink);
  text-align: center;
}

.contact-copy-text {
  margin: 0;
  max-width: 32rem;
  color: var(--muted);
  line-height: 1.7;
  text-align: center;
}

.substack-embed {
  display: block;
  width: min(320px, 100%);
  max-width: 100%;
  border-radius: 8px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.social-icon-link {
  width: 44px;
  height: 44px;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  animation: fadeSoft 1360ms cubic-bezier(0.2, 0.65, 0.2, 1) both;
}

.social-icon-link:hover {
  box-shadow: none;
}

.horse-note {
  box-shadow: none;
}

.footer {
  padding-bottom: 8px;
}

.footer-grid {
  padding-top: 0;
}

@keyframes botanicalDrift {
  0% {
    transform: translate3d(0, 0, 0) rotate(var(--cluster-rotate, 0deg));
  }
  100% {
    transform: translate3d(0, -10px, 0) rotate(calc(var(--cluster-rotate, 0deg) + 2deg));
  }
}

@keyframes bubbleLift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(0, -6px, 0);
  }
}

@media (max-width: 1240px) {
  .hero-grid.editorial-hero,
  .project-showcase-stage {
    grid-template-columns: 1fr;
  }

  .project-showcase-stage.is-reverse .project-image-wrap,
  .project-showcase-stage.is-reverse .project-copy {
    order: initial;
  }

  .hero-visual,
  .hero-visual-editorial {
    justify-content: flex-start;
  }

  .watch-loop {
    width: min(100%, 360px);
  }
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSoft {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes portraitPulse {
  0% {
    transform: scale(1) rotate(0deg);
  }
  30% {
    transform: scale(0.985) rotate(-1.2deg);
  }
  65% {
    transform: scale(1.03) rotate(1.2deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

@keyframes contentFadeOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes contentFadeIn {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .hero-grid.editorial-hero,
  .project-showcase-stage,
  .cert-inline-card,
  .resource-card-video,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .stack-group-grid {
    grid-template-columns: 1fr;
  }

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

  .resource-card-video {
    grid-column: 1 / -1;
  }

  .footer-actions {
    justify-content: flex-start;
  }

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

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

  .work-bubble-card {
    max-width: 220px;
    padding-top: 4px;
  }

  .hero-copy-editorial {
    padding-right: 0;
  }

  .hero-copy-editorial::after {
    display: none;
  }

  .hero-visual-editorial {
    padding-left: 0;
    justify-content: flex-start;
  }

  .portrait-card {
    max-width: 620px;
  }

  .projects-grid-editorial {
    grid-template-columns: 1fr;
  }

  .project-image-wrap img {
    min-height: 240px;
  }

  .watch-loop {
    width: min(100%, 360px);
  }
}

@media (max-width: 720px) {
  .screen-section {
    min-height: auto;
  }

  .screen-journey,
  .screen-work,
  .screen-contact {
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 22px;
    padding-block: 18px;
  }

  .hero {
    padding-top: 16px;
  }

  .topbar {
    justify-content: flex-end;
    margin-bottom: 24px;
  }

  .topbar-links {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 9px 14px;
    border: 1px solid rgba(115, 65, 215, 0.2);
    border-radius: 999px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.64);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    font-weight: 700;
  }

  .mobile-menu-button span[aria-hidden="true"] {
    font-size: 1.2rem;
    line-height: 1;
  }

  .mobile-drawer-wrap {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: block;
  }

  .mobile-drawer-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(35, 21, 61, 0.34);
    cursor: pointer;
  }

  .mobile-navigation-drawer {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    align-content: start;
    gap: 26px;
    width: min(86vw, 360px);
    min-height: 100%;
    padding: 22px;
    background: #f9f5ff;
    box-shadow: -18px 0 48px rgba(35, 21, 61, 0.22);
  }

  .mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--ink);
    font-family: "Nunito", sans-serif;
    font-size: 1.2rem;
  }

  .mobile-drawer-close {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    color: var(--ink);
    background: var(--surface-soft);
    cursor: pointer;
    font-size: 1.8rem;
    line-height: 1;
  }

  .mobile-drawer-links {
    display: grid;
    gap: 6px;
  }

  .mobile-drawer-links a {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-weight: 700;
  }

  .hero-grid.editorial-hero,
  .timeline-cards-editorial,
  .stack-grid-editorial,
  .stack-group-grid,
  .projects-grid-editorial,
  .resource-grid,
  .media-list,
  .compact-profile-list {
    grid-template-columns: 1fr;
  }

  .project-showcase,
  .cert-inline-card,
  .project-rail,
  .stat-grid,
  .hero-metrics,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .split-heading {
    flex-direction: column;
    align-items: start;
  }

  .watch-title {
    white-space: normal;
  }

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

  .horse-note img {
    aspect-ratio: 4 / 5;
  }

  .horse-note-caption {
    inset: auto 8px 8px;
    padding: 10px;
  }

  .horse-note h3 {
    font-size: 0.95rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 14px;
    justify-items: center;
  }

  .contact-portrait {
    justify-self: center;
  }

  .contact-actions,
  .watch-icons-wrap {
    width: 100%;
  }

  .video-feature-card {
    min-height: 0;
  }

  .topbar-links a,
  .button {
    width: 100%;
  }

  .project-tab {
    width: 220px;
  }

  .cta-row {
    flex-direction: column;
  }

  .section-heading h2 {
    font-size: 1.85rem;
  }

  .work-bubble-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .work-bubble-card {
    display: block;
    max-width: 100%;
    padding-top: 2px;
    text-align: left;
  }

  .work-bubble-card .timeline-year,
  .work-bubble-card h3,
  .work-bubble-card .timeline-place {
    text-align: left;
  }

  .stack-group-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .stack-line {
    display: block;
    width: 100%;
  }

  .stack-track {
    justify-content: flex-start;
  }

  .stack-bubble {
    max-width: 100%;
    white-space: normal;
  }

  #journey,
  .stack-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  #journey .work-bubble-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    justify-items: stretch !important;
  }

  #journey .work-bubble-card {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    padding-top: 2px !important;
    text-align: left !important;
  }

  #journey .timeline-place {
    max-width: none !important;
  }

  .stack-panel .stack-lines.stack-group-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .stack-panel .stack-line,
  .stack-panel .stack-group-card,
  .stack-panel .stack-track {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .stack-panel .stack-track {
    justify-content: flex-start !important;
    overflow: hidden;
  }

  .stack-panel .stack-bubble {
    max-width: 100% !important;
    white-space: normal !important;
  }

  .hero-copy h1 {
    max-width: 10ch;
    margin-inline: auto;
    font-size: clamp(1.95rem, 8.8vw, 2.55rem);
    overflow-wrap: anywhere;
  }

  .panel,
  .footer {
    border-radius: 18px;
    padding: 18px;
  }

  .project-showcase {
    padding: 16px;
  }

  .project-tab {
    padding: 10px;
  }

  .project-image-wrap img,
  .project-image-wrap.empty,
  .empty-project-art {
    min-height: 190px;
  }

  .cert-panel .cert-compact {
    grid-template-columns: 1fr;
  }

  .contact-copy-block {
    gap: 14px;
  }

  .watch-loop {
    width: 100%;
  }

  .floral-top-right {
    top: -74px;
    right: -154px;
    opacity: 0.54;
    transform: scale(0.82) rotate(18deg);
  }

  .floral-bottom-left {
    bottom: 84px;
    left: -110px;
    opacity: 0.4;
    transform: scale(0.72) rotate(-18deg);
  }

  .floral-mid-right {
    right: -22px;
    opacity: 0.3;
    transform: scale(0.82) rotate(5deg);
  }

  .floral-center-left,
  .floral-center-right,
  .floral-center-vine-left,
  .floral-center-vine-right {
    opacity: 0.4;
    transform: scale(0.82);
  }

  .floral-top-left,
  .floral-bottom-right,
  .floral-vine-left,
  .floral-vine-right {
    opacity: 0.34;
  }
}

.watch-title {
  white-space: nowrap;
}

@media (max-width: 560px) {
  .topbar-links {
    gap: 6px;
  }

  .topbar-links a {
    padding-inline: 10px;
    font-size: 0.9rem;
  }

  .hero,
  .content {
    padding-inline: 16px;
  }

  .timeline-place {
    max-width: none;
  }

  .portrait-note {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .screen-section {
    opacity: 1;
    transform: none;
  }

  .screen-section > :not(.screen-anchor) {
    opacity: 1;
    transform: none;
  }
}


/* Floating bubbles stay behind readable, interactive page content. */
.floral-layer,
.page-shell::before,
.page-shell::after { display: none; }

/* Journey timeline and orbital technology clusters. */
#journey { row-gap: 64px; }
#journey > .journey-panel { background: transparent; border: 0; box-shadow: none; backdrop-filter: none; }
#journey .work-bubble-grid {
  --journey-card-top: 24px; --journey-card-height: 118px;
  position: relative; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch;
  gap: 48px 30px; margin-top: 42px; padding: var(--journey-card-top) 12px 132px; perspective: 1100px;
}
#journey .work-bubble-grid::before {
  position: absolute; top: calc(var(--journey-card-top) + var(--journey-card-height) + 55px); right: 1%; left: 1%; height: 6px; border: 1px solid rgba(255,255,255,.9); border-radius: 99px;
  background: linear-gradient(90deg,#a889ff,#7139df 55%,#ee70d7); box-shadow: 0 4px 12px rgba(112,57,223,.35),inset 0 2px 3px rgba(255,255,255,.9); content: "";
}
#journey .journey-milestone { position: relative; display: flex; justify-content: center; }
#journey .work-bubble-card {
  position: relative; z-index: 1; width: 100%; max-width: 230px; height: var(--journey-card-height); min-height: var(--journey-card-height); padding: 12px 10px;
  border: 1px solid rgba(255,255,255,.95); border-radius: 18px;
  background: linear-gradient(145deg,rgba(255,255,255,.92),rgba(255,255,255,.5) 55%,rgba(215,199,255,.38));
  box-shadow: 0 24px 36px rgba(59,36,110,.18),0 7px 0 rgba(145,111,218,.22),inset 0 2px 5px white;
  backdrop-filter: blur(14px); transform: none; animation: journeyCardFloat 4.8s ease-in-out infinite alternate;
  transition: transform 220ms ease,box-shadow 220ms ease;
}
#journey .work-bubble-card:nth-child(even) { transform: none; }
#journey .work-bubble-card h3 { width: 100%; overflow: hidden; font-size: clamp(.85rem,1.3vw,1.05rem); line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
#journey .work-bubble-card:hover { transform: translateY(-8px) scale(1.035); box-shadow: 0 28px 42px rgba(59,36,110,.22),0 7px 0 rgba(145,111,218,.22),inset 0 2px 5px white; }
#journey .work-bubble-card::after { display: none; }
#journey .journey-milestone::after {
  position: absolute; top: calc(100% + 52px); left: 50%; width: 12px; height: 12px; border: 2px solid white; border-radius: 50%;
  background: linear-gradient(135deg,#bb9aff,#7139df); box-shadow: 0 3px 8px rgba(95,53,191,.35); content: ""; transform: translateX(-50%);
}
#journey .journey-milestone .timeline-year { position: absolute; top: calc(100% + 108px); left: 50%; color: var(--muted); font-size: .82rem; white-space: nowrap; transform: translateX(-50%); }
#journey .stack-orbit { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); justify-items: center; gap: 0; max-width: 100%; margin: 0 auto; padding: 0; }
#journey .stack-orbit-cluster { position: relative; display: block; width: 260px; height: 230px; max-width: none; padding: 8px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
#journey .stack-orbit-category {
  position: absolute; top: 50%; left: 50%; z-index: 2; display: grid; place-items: center; width: 92px; height: 92px; padding: 10px;
  border: 1px solid rgba(255,255,255,.95); border-radius: 50%; background: linear-gradient(145deg,rgba(255,255,255,.94),rgba(210,192,255,.56));
  box-shadow: 0 14px 26px rgba(59,36,110,.2),inset 0 2px 5px white; color: var(--ink); font-size: .78rem; font-weight: 700; text-align: center; transform: translate(-50%,-50%);
}
#journey .stack-orbit-icon {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.9); border-radius: 50%;
  background: rgba(255,255,255,.68); box-shadow: 0 12px 24px rgba(59,36,110,.16),inset 0 2px 5px white; animation: coreIconDrift 5s ease-in-out infinite alternate;
}
#journey .stack-orbit-icon img { width: 34px; height: 34px; object-fit: contain; }
#journey .stack-orbit-icon:nth-child(2) { top: 18px; left: 106px; }
#journey .stack-orbit-icon:nth-child(3) { top: 48px; right: 28px; }
#journey .stack-orbit-icon:nth-child(4) { right: 28px; bottom: 48px; }
#journey .stack-orbit-icon:nth-child(5) { bottom: 18px; left: 106px; }
#journey .stack-orbit-icon:nth-child(6) { bottom: 48px; left: 28px; }
#journey .stack-orbit-icon:nth-child(7) { top: 48px; left: 28px; }
#journey .stack-orbit-icon:nth-child(3n) { animation-delay: -1.6s; }
#journey .stack-orbit-icon:nth-child(4n) { animation-delay: -3.1s; }
@keyframes journeyCardFloat { to { translate: 0 -8px; } }
@keyframes coreIconDrift { 0% { translate: 0 -8px; } 50% { translate: 6px 2px; } 100% { translate: 0 8px; } }

/* Horse Life Polaroids and photo styling. */
.horse-panel { position: relative; z-index: 1; isolation: isolate; overflow: hidden; }
.horse-panel .horse-gallery-grid { position: relative; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; padding: 24px 12px; overflow: hidden; }
.horse-panel .horse-gallery-grid::before,
.horse-panel .polaroid-clip,
.horse-panel .horse-note::before { display: none !important; }
.horse-panel .horse-note,
.horse-panel .horse-note:nth-child(even) {
  position: relative; z-index: 1; align-self: start; margin: 0; padding: 10px 10px 18px; overflow: visible; border: 0; border-radius: 2px;
  background: #fffdf9; box-shadow: 0 10px 22px rgba(38,27,56,.2); transform: rotate(-1deg) scale(.94);
  animation: polaroidFloat 4s ease-in-out infinite alternate; transition: transform 220ms ease,box-shadow 220ms ease;
}
.horse-panel .horse-note:nth-child(even) { transform: rotate(1deg) scale(.94); animation-delay: -2s; }
.horse-panel .horse-note:hover { z-index: 5; transform: translateY(-12px) rotate(0) scale(1.02); box-shadow: 0 26px 42px rgba(38,27,56,.3); }
.horse-panel .horse-note img { width: 100%; aspect-ratio: 1; border: 0; border-radius: 0; object-fit: cover; filter: none; }
.horse-panel .horse-note-caption { position: static; padding: 14px 6px 0; border-radius: 0; background: transparent; color: var(--ink); text-align: center; backdrop-filter: none; }
.horse-panel .horse-note h3 { font-family: "Caveat",cursive; font-size: 1.5rem; }
.horse-panel .youtube-thumb-card::before,
.horse-panel .youtube-thumb-card::after { display: none; }
@keyframes polaroidFloat { to { translate: 0 -10px; } }

/* Image polish, contact media, and social affordances. */
.hero-portrait-card { position: relative; overflow: hidden; }
.hero-portrait-card::after,
.watch-loop::after {
  position: absolute; inset: 0; border-radius: 24px;
  background: linear-gradient(135deg,rgba(255,255,255,.24),transparent 38%,rgba(207,190,255,.12)),radial-gradient(ellipse at 18% 20%,rgba(255,255,255,.3),transparent 48%);
  content: ""; pointer-events: none; mix-blend-mode: screen;
}
.hero-portrait-card img,
.watch-loop video { filter: saturate(.88) brightness(1.04) contrast(.96); }
.watch-loop { position: relative; overflow: hidden; border-radius: 24px; }
.watch-loop::after { display: none; }
.social-link-icon { animation: socialIconFloat 3.4s ease-in-out infinite alternate; }
.social-link-icon:nth-child(even) { animation-delay: -1.7s; }
@keyframes socialIconFloat { to { transform: translateY(-4px) rotate(3deg); } }
.contact-actions .button.primary { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.72); background: linear-gradient(145deg,#a981ff,#7139df 65%,#5e2eca); box-shadow: 0 12px 26px rgba(95,53,191,.28),inset 0 1px 0 rgba(255,255,255,.62); }
.contact-actions .button.primary::after { position: absolute; inset: 1px 1px 52%; border-radius: inherit; background: linear-gradient(180deg,rgba(255,255,255,.36),transparent); content: ""; pointer-events: none; }

@media (max-width: 900px) { #journey .stack-orbit { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 900px) { .highlights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .project-explorer { grid-template-columns: 1fr; }
  .project-picker { grid-template-columns: 1fr; }
  .project-picker-copy > span { display: none; }
  .project-detail-card { min-height: 220px; padding: 22px; }
  #journey .work-bubble-card h3 { font-family: "Caveat", cursive; text-align: center; white-space: normal; overflow: visible; text-overflow: clip; }
  #journey .work-bubble-grid { --journey-card-top: 24px; --journey-card-height: 128px; --journey-card-width: 220px; --journey-card-gap: 24px; }
  #journey .work-bubble-grid {
    grid-auto-flow: column; grid-auto-columns: var(--journey-card-width); grid-template-columns: none; justify-content: start; gap: var(--journey-card-gap);
    padding-inline: max(12px, calc((100% - var(--journey-card-width)) / 2)); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  }
  #journey .work-bubble-grid::before { display: none; }
  #journey .journey-milestone { width: var(--journey-card-width); min-width: var(--journey-card-width); scroll-snap-align: center; }
  #journey .work-bubble-card { width: 100%; max-width: none; min-width: 100%; height: var(--journey-card-height); min-height: var(--journey-card-height); }
  #journey .journey-milestone .timeline-year { font-size: .74rem; }
  #journey .stack-orbit { grid-template-columns: 1fr; }
  #journey .stack-orbit-cluster { transform: none !important; }
  .horse-panel .horse-gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  #journey .work-bubble-card, #journey .stack-orbit-icon, .horse-panel .horse-note, .social-link-icon, .project-detail-card { animation: none !important; }
}
@media (max-width: 480px) {
  .highlights-grid { grid-template-columns: 1fr; }
  .certification-link { gap: 8px; padding: 12px; border-radius: 18px; }
  .certification-preview,
  .certification-link.featured .certification-preview { height: 148px; min-height: 148px; padding: 10px; }
  .article-highlight-preview { min-height: 148px; padding: 14px; gap: 8px; }
}
