:root {
  --bg: #ececec;
  --text: #212121;
  --muted: #737373;
  --line: #dadada;
  --surface: #f4f4f4;
  --surface-strong: #ffffff;
  --surface-soft: #f2d2bf;
  --surface-tag: #c8dd70;
  --surface-icon: #a8d6ff;
  --surface-shadow: 0 12px 30px rgb(0 0 0 / 8%);
  --header-bg: color-mix(in srgb, var(--bg) 86%, white 14%);
  --cursor: #2d5a4e;
  --project-copy: #555555;
  --project-link: #393939;
  --project-link-border: #c5c5c5;
  --project-link-hover: #4b4b4b;
  --footer-bg:
    radial-gradient(circle at 15% 20%, rgb(47 57 24 / 22%), transparent 24%),
    radial-gradient(circle at 82% 16%, rgb(82 36 54 / 18%), transparent 26%),
    #161614;
  --footer-text: #d8d3ca;
  --footer-heading: #f2ede2;
  --footer-muted: #c9c2b7;
  --footer-link: #6f716f;
  --footer-link-hover: #d7d0c3;
  --garden-note: #908a80;
  --max-width: 1180px;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.25rem;
  --space-6: 3.5rem;
  --space-7: 5rem;
}

:root[data-theme="dark"] {
  --bg: #121212;
  --text: #f2ede3;
  --muted: #9e978f;
  --line: #2a2a2a;
  --surface: #1a1a1a;
  --surface-strong: #1f1f1f;
  --surface-soft: #3a2a24;
  --surface-tag: #61762f;
  --surface-icon: #223a56;
  --surface-shadow: 0 16px 32px rgb(0 0 0 / 28%);
  --header-bg: color-mix(in srgb, var(--bg) 88%, black 12%);
  --cursor: #f2ede3;
  --project-copy: #c2b9af;
  --project-link: #eee6d7;
  --project-link-border: #4d453f;
  --project-link-hover: #f8f4ed;
  --footer-bg:
    radial-gradient(circle at 15% 20%, rgb(70 92 38 / 28%), transparent 24%),
    radial-gradient(circle at 82% 16%, rgb(116 59 86 / 20%), transparent 26%),
    #0d0d0c;
  --footer-text: #ddd7cc;
  --footer-heading: #f4eee2;
  --footer-muted: #bdb4a7;
  --footer-link: #8f928b;
  --footer-link-hover: #f0eadf;
  --garden-note: #93897d;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  cursor: none !important;
  transition: background-color 220ms ease, color 220ms ease;
}
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--cursor);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 140ms ease, opacity 120ms ease;
}

.custom-cursor.is-visible {
  opacity: 1;
}

.custom-cursor.is-hovering {
  transform: translate(-50%, -50%) scale(1.3);
}

a,
button,
[role="button"] {
  cursor: none !important;
}

* {
  cursor: none !important;
}

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(6px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.brand {
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.site-nav {
  display: flex;
  gap: var(--space-4);
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  text-transform: lowercase;
  font-size: 0.95rem;
  transition: color 160ms ease, opacity 160ms ease;
  opacity: 0.8;
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--text);
  opacity: 1;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  position: relative;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px auto;
  transition: transform 220ms ease, opacity 180ms ease;
  transform-origin: center;
}

body.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body.nav-open {
  overflow: hidden;
}

.section {
  padding-block: var(--space-6);
}

.meta {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.7rem;
  margin: 0 0 var(--space-2);
}

h1,
h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.hero-collage {
  min-height: 76vh;
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  background:
    radial-gradient(circle at 20% 24%, rgb(255 255 255 / 0.72), transparent 36%),
    linear-gradient(180deg, #fcfbf8 0%, #f2eee9 100%);
  isolation: isolate;
  padding: var(--space-5);
}

.hero-sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-dark-glow {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 220ms ease;
  filter: blur(36px);
  mix-blend-mode: screen;
}

.glow-one {
  width: 32rem;
  height: 32rem;
  left: -8rem;
  top: -6rem;
  background: radial-gradient(circle, rgb(94 122 191 / 0.28) 0%, transparent 68%);
}

.glow-two {
  width: 28rem;
  height: 28rem;
  right: -6rem;
  bottom: -8rem;
  background: radial-gradient(circle, rgb(56 108 132 / 0.22) 0%, transparent 70%);
}

.hero-light-waves {
  position: absolute;
  inset: -10% -12%;
  opacity: 1;
  transition: opacity 220ms ease;
}

.wave-ribbon {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  overflow: visible;
}

.wave-ribbon path {
  fill: none;
  stroke: rgb(127 175 144 / 0.42);
  stroke-width: 1.9;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  shape-rendering: geometricPrecision;
}

.wave-ribbon-back {
  opacity: 0.7;
  filter: blur(0.1px);
  transform: translate3d(-6%, -2%, 0) scale(1.18);
  animation: ribbon-drift-back 7s ease-in-out infinite alternate;
  will-change: transform;
}

.wave-ribbon-front {
  opacity: 0.82;
  filter: none;
  transform: translate3d(0, 0, 0) scale(1.16);
  animation: ribbon-drift-front 5.5s ease-in-out infinite alternate;
  will-change: transform;
}

.wave-ribbon-back path:nth-child(odd) {
  stroke: rgb(110 158 128 / 0.34);
}

.wave-ribbon-front path:nth-child(odd) {
  stroke: rgb(95 145 115 / 0.44);
}

.wave-ribbon-front path:nth-child(3n) {
  stroke: rgb(160 200 175 / 0.36);
}

.stars {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--star-shadow, none);
  animation:
    star-drift var(--star-speed, 90s) linear infinite,
    star-twinkle var(--twinkle-speed, 6s) ease-in-out infinite alternate;
  will-change: transform, opacity;
}

.stars::after {
  content: "";
  position: absolute;
  top: 2000px;
  left: 0;
  width: inherit;
  height: inherit;
  border-radius: inherit;
  background: inherit;
  box-shadow: inherit;
}

.stars-small {
  width: 1px;
  height: 1px;
  opacity: 0.75;
  --twinkle-speed: 4.5s;
}

.stars-medium {
  width: 2px;
  height: 2px;
  opacity: 0.55;
  --twinkle-speed: 6.5s;
}

.stars-large {
  width: 3px;
  height: 3px;
  opacity: 0.4;
  --twinkle-speed: 8s;
}

:root[data-theme="dark"] .hero-collage {
  background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
}

:root[data-theme="dark"] .hero-dark-glow {
  opacity: 1;
}

:root[data-theme="dark"] .glow-one {
  animation: dark-glow-one 5.5s ease-in-out infinite alternate;
}

:root[data-theme="dark"] .glow-two {
  animation: dark-glow-two 7s ease-in-out infinite alternate;
}

:root[data-theme="dark"] .hero-light-waves {
  opacity: 0;
}

:root[data-theme="dark"] .stars-small {
  opacity: 0.75;
}

:root[data-theme="dark"] .stars-medium {
  opacity: 0.55;
}

:root[data-theme="dark"] .stars-large {
  opacity: 0.4;
}

:root:not([data-theme="dark"]) .stars-small,
:root:not([data-theme="dark"]) .stars-medium,
:root:not([data-theme="dark"]) .stars-large {
  opacity: 0;
}

@keyframes star-drift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-72px, -100%, 0);
  }
}

@keyframes star-twinkle {
  0% {
    opacity: 0.35;
  }

  100% {
    opacity: 1;
  }
}

@keyframes dark-glow-one {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    transform: translate3d(6rem, 3rem, 0) scale(1.18);
  }
}

@keyframes dark-glow-two {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    transform: translate3d(-5rem, -4rem, 0) scale(1.14);
  }
}

@keyframes ribbon-drift-back {
  0% {
    transform: translate3d(-8%, -3%, 0) scale(1.16) rotate(-2deg);
  }

  100% {
    transform: translate3d(-2%, 2%, 0) scale(1.22) rotate(1deg);
  }
}

@keyframes ribbon-drift-front {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1.12) rotate(2deg);
  }

  100% {
    transform: translate3d(3%, 2%, 0) scale(1.2) rotate(-1deg);
  }
}

.note {
  position: absolute;
  padding: var(--space-4);
  box-shadow: var(--surface-shadow);
  transform-style: preserve-3d;
  z-index: 1;
  --base-rotate: 0deg;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --shift-x: 0px;
  --shift-y: 0px;
  transform: perspective(900px) rotateZ(var(--base-rotate))
    rotateX(var(--tilt-x)) rotateY(var(--tilt-y))
    translate3d(var(--shift-x), var(--shift-y), 0);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.note p {
  margin: 0;
}

.note-main {
  top: 8%;
  left: 8%;
  width: min(460px, 72vw);
  background: #2d5a4e;
  color: #f0e6d6;
  --base-rotate: -9deg;
}

.note-main p {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.2rem, 1.9vw, 1.7rem);
  line-height: 1.28;
}

.note-side {
  top: 40%;
  left: 38%;
  width: min(420px, 70vw);
  background: #f5ead2;
  color: #5a3a2a;
  --base-rotate: 4deg;
}

.note-side p {
  font-family: "Courier New", ui-monospace, monospace;
  font-size: clamp(0.85rem, 1.2vw, 1.05rem);
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.note-tag {
  top: 9%;
  right: 10%;
  width: clamp(110px, 11vw, 140px);
  height: clamp(110px, 11vw, 140px);
  background: #c44b6e;
  color: #ffffff;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  --base-rotate: 8deg;
}

.note-tag p {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  line-height: 1.05;
}

.note-icon {
  left: 22%;
  bottom: 14%;
  width: clamp(110px, 12vw, 150px);
  height: clamp(100px, 11vw, 130px);
  background: #b4c89a;
  color: #2a3a1f;
  --base-rotate: 8deg;
  display: grid;
  place-items: center;
  padding: var(--space-2) var(--space-3);
  overflow: hidden;
}

.bloom {
  grid-area: 1 / 1;
  margin: 0;
  font-family: "Courier New", ui-monospace, monospace;
  font-size: clamp(0.8rem, 1vw, 1rem);
  line-height: 1.05;
  color: #2a3a1f;
  text-align: center;
  white-space: pre;
  animation: bloom-pulse 2.4s ease-in-out infinite;
}

.bloom-b {
  animation-delay: 1.2s;
}

.bloom-head {
  color: #c44b6e;
}

@keyframes bloom-pulse {
  0%, 45% {
    opacity: 1;
  }

  50%, 95% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.note.is-tilting {
  box-shadow: 0 18px 36px rgb(0 0 0 / 14%);
}

.note-icon p {
  font-family: "Courier New", ui-monospace, monospace;
  line-height: 1.2;
}

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

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: var(--space-5);
  align-items: end;
  margin-bottom: var(--space-5);
}

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

.section-copy {
  margin: 0;
  color: var(--muted);
  max-width: 54ch;
}

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

.stack-card,
.timeline-item {
  padding: var(--space-4);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, white 18%);
}

:root[data-theme="dark"] .stack-card,
:root[data-theme="dark"] .timeline-item {
  background: color-mix(in srgb, var(--bg) 88%, white 12%);
}

.stack-title,
.timeline-period {
  margin: 0 0 var(--space-2);
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stack-card p:last-child,
.timeline-item p:last-child {
  margin: 0;
}

.stack-rows {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.stack-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding: var(--space-3) var(--space-4);
  border-radius: 999px;
  background: color-mix(in srgb, #b4c89a 24%, var(--bg) 76%);
  border: 1px solid color-mix(in srgb, #b4c89a 40%, transparent);
}

:root[data-theme="dark"] .stack-row {
  background: color-mix(in srgb, #2d5a4e 32%, var(--bg) 68%);
  border-color: color-mix(in srgb, #b4c89a 28%, transparent);
}

.stack-row .stack-title {
  margin: 0;
  min-width: 180px;
  flex-shrink: 0;
}

.stack-pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.stack-pill {
  background: var(--surface-strong);
  color: var(--text);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid color-mix(in srgb, #2d5a4e 24%, transparent);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

:root[data-theme="dark"] .stack-pill {
  background: color-mix(in srgb, var(--bg) 80%, white 20%);
  border-color: color-mix(in srgb, #b4c89a 30%, transparent);
}

.stack-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgb(0 0 0 / 8%);
  border-color: color-mix(in srgb, #2d5a4e 50%, transparent);
}

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

.building-hint,
.path-hint {
  margin: 0 0 var(--space-4);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.career-path {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
}

.career-timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.timeline-tracks {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-4) var(--space-2) var(--space-3);
}

.timeline-track,
.timeline-dates {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  min-width: 100%;
}

.timeline-track {
  gap: var(--space-3);
}

.timeline-circle {
  width: clamp(76px, 9vw, 112px);
  height: clamp(76px, 9vw, 112px);
  border-radius: 50%;
  background: #b4c89a;
  color: #1a3025;
  border: 3px solid transparent;
  cursor: pointer;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(0.78rem, 1vw, 1rem);
  font-weight: 500;
  line-height: 1.15;
  display: grid;
  place-items: center;
  padding: var(--space-2);
  text-align: center;
  box-shadow: 0 10px 22px rgb(45 90 78 / 14%);
  transition:
    transform 220ms cubic-bezier(0.4, 0, 0.2, 1),
    background 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease;
  flex-shrink: 0;
}

.timeline-circle:hover {
  transform: translateY(-2px);
  background: #a3b985;
  box-shadow: 0 14px 28px rgb(45 90 78 / 22%);
}

.timeline-circle.active {
  background: #2d5a4e;
  color: #f0e6d6;
  border-color: #2d5a4e;
  transform: scale(1.05);
  box-shadow: 0 14px 28px rgb(45 90 78 / 28%);
}

.timeline-arrow {
  position: relative;
  height: 2px;
  background: #2d5a4e;
  min-width: 32px;
}

.timeline-arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid #2d5a4e;
}

.timeline-dates > span {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.timeline-panel {
  padding: var(--space-5);
  background: color-mix(in srgb, #b4c89a 16%, var(--bg) 84%);
  border: 1px solid color-mix(in srgb, #b4c89a 28%, transparent);
  border-radius: 16px;
  min-height: 180px;
}

:root[data-theme="dark"] .timeline-panel {
  background: color-mix(in srgb, #2d5a4e 22%, var(--bg) 78%);
  border-color: color-mix(in srgb, #b4c89a 18%, transparent);
}

.timeline-detail {
  display: none;
}

.timeline-detail.active {
  display: block;
  animation: timeline-fade 280ms ease;
}

.timeline-detail .step-role {
  margin: 0.25rem 0 0.5rem;
}

.timeline-detail .step-period {
  margin: 0;
}

.timeline-detail .step-place {
  margin: 0 0 var(--space-4);
}

.timeline-detail .step-body {
  padding: 0;
}

.timeline-detail ul {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.timeline-detail li {
  line-height: 1.55;
}

@keyframes timeline-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .timeline-circle {
    width: 78px;
    height: 78px;
    font-size: 0.7rem;
  }

  .timeline-arrow {
    min-width: 18px;
  }

  .timeline-track {
    gap: var(--space-2);
  }

  .timeline-dates > span {
    font-size: 0.65rem;
  }

  .timeline-panel {
    padding: var(--space-4);
  }
}

.path-connector {
  display: block;
  width: 100%;
  height: clamp(120px, 16vw, 180px);
  margin: calc(var(--space-2) * -1) 0;
}

.career-step {
  position: relative;
}

.step-summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

.step-summary::-webkit-details-marker {
  display: none;
}

.career-step-left .step-summary {
  grid-template-columns: auto 1fr;
}

.career-step-right .step-summary {
  grid-template-columns: 1fr auto;
}

.career-step-right .step-header {
  text-align: right;
}

.step-circle {
  width: clamp(120px, 16vw, 200px);
  height: clamp(120px, 16vw, 200px);
  border-radius: 50%;
  background: #2d5a4e;
  color: #f0e6d6;
  display: grid;
  place-items: center;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  box-shadow: 0 14px 28px rgb(45 90 78 / 28%);
  transition:
    transform 260ms cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 260ms ease,
    background 220ms ease;
}

.step-summary:hover .step-circle {
  transform: scale(1.05);
  background: #356c5d;
  box-shadow: 0 18px 36px rgb(45 90 78 / 38%);
}

.career-step[open] .step-circle {
  transform: scale(1.06);
  background: #356c5d;
  box-shadow: 0 18px 36px rgb(45 90 78 / 38%);
}

.step-number {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  letter-spacing: -0.02em;
}

.step-period {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.step-role {
  margin: 0.35rem 0 0.25rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  font-weight: 500;
  line-height: 1.15;
}

.step-place {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.step-body {
  padding-top: var(--space-4);
  animation: step-body-in 260ms ease;
}

.career-step-left .step-body {
  padding-left: clamp(140px, 17vw, 220px);
}

.career-step-right .step-body {
  padding-right: clamp(140px, 17vw, 220px);
}

.step-body ul {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.step-body li {
  line-height: 1.55;
  color: var(--text);
}

.step-body li strong {
  font-weight: 600;
}

.step-grade {
  margin: 0 0 var(--space-3);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  color: var(--text);
}

.step-subheading {
  margin: 0 0 var(--space-2);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

@keyframes step-body-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .career-path {
    gap: var(--space-5);
  }

  .path-connector {
    display: none;
  }

  .career-step-left .step-summary,
  .career-step-right .step-summary {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .career-step-right .step-header,
  .career-step-left .step-header {
    text-align: center;
  }

  .career-step-right .step-summary > .step-circle {
    order: -1;
  }

  .step-circle {
    width: 110px;
    height: 110px;
  }

  .career-step-left .step-body,
  .career-step-right .step-body {
    padding-left: 0;
    padding-right: 0;
  }
}

.building {
  display: flex;
  flex-direction: column;
  border: 2px solid #5a3a2a;
  border-radius: 8px;
  overflow: hidden;
  background: #f5ead2;
  box-shadow: 0 14px 32px rgb(0 0 0 / 12%);
}

.building-roof {
  height: 22px;
  background:
    repeating-linear-gradient(
      135deg,
      #2d5a4e 0 6px,
      #1f4036 6px 12px
    );
  border-bottom: 4px solid #1f4036;
}

.building-foundation {
  height: 10px;
  background: repeating-linear-gradient(
    90deg,
    #5a3a2a 0 14px,
    #3d2418 14px 28px
  );
  border-top: 2px solid #3d2418;
}

.floor {
  background: #f5ead2;
  border-top: 6px solid #8a5a3a;
}

.floor:first-of-type {
  border-top: none;
}

.floor-summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-4) var(--space-5);
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: var(--space-4);
  transition: background 220ms ease;
}

.floor-summary::-webkit-details-marker {
  display: none;
}

.floor-summary:hover {
  background: color-mix(in srgb, #f5ead2 60%, white 40%);
}

.floor[open] .floor-summary {
  background: color-mix(in srgb, #f5ead2 50%, white 50%);
  border-bottom: 1px dashed color-mix(in srgb, #8a5a3a 55%, transparent);
}

.floor-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.floor-period {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a3a2a;
}

.floor-role {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  font-weight: 500;
  color: #2a1f1a;
  line-height: 1.2;
}

.floor-place {
  color: #5a3a2a;
  opacity: 0.75;
  font-size: 0.9rem;
}

.floor-windows {
  display: grid;
  grid-template-columns: repeat(3, 16px);
  grid-template-rows: repeat(2, 14px);
  gap: 5px;
}

.floor-windows span {
  background: #a8d6ff;
  border: 1px solid #4a7a9a;
  border-radius: 2px;
}

.floor-toggle {
  width: 28px;
  height: 28px;
  border: 1.5px solid #5a3a2a;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
  position: relative;
}

.floor-toggle::before,
.floor-toggle::after {
  content: "";
  position: absolute;
  background: #5a3a2a;
  transition: opacity 200ms ease, background 200ms ease;
}

.floor-toggle::before {
  width: 12px;
  height: 1.5px;
}

.floor-toggle::after {
  width: 1.5px;
  height: 12px;
}

.floor[open] .floor-toggle {
  background: #2d5a4e;
  border-color: #2d5a4e;
  transform: rotate(180deg);
}

.floor[open] .floor-toggle::before {
  background: #f5ead2;
}

.floor[open] .floor-toggle::after {
  opacity: 0;
}

.floor-content {
  padding: var(--space-3) var(--space-5) var(--space-5);
}

.floor-content ul {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.floor-content li {
  line-height: 1.55;
  color: #4a2f20;
}

.floor-content li strong {
  color: #2a1f1a;
  font-weight: 600;
}

:root[data-theme="dark"] .building {
  background: #2a1f1a;
  border-color: #1a100a;
  box-shadow: 0 18px 36px rgb(0 0 0 / 36%);
}

:root[data-theme="dark"] .building-roof {
  background:
    repeating-linear-gradient(
      135deg,
      #2d5a4e 0 6px,
      #1a3a30 6px 12px
    );
  border-bottom-color: #1a3a30;
}

:root[data-theme="dark"] .building-foundation {
  background: repeating-linear-gradient(
    90deg,
    #3d2418 0 14px,
    #1f1209 14px 28px
  );
  border-top-color: #1f1209;
}

:root[data-theme="dark"] .floor {
  background: #2a1f1a;
  border-top-color: #5a3a2a;
}

:root[data-theme="dark"] .floor-summary:hover {
  background: color-mix(in srgb, #2a1f1a 80%, white 14%);
}

:root[data-theme="dark"] .floor[open] .floor-summary {
  background: color-mix(in srgb, #2a1f1a 75%, white 20%);
  border-bottom-color: color-mix(in srgb, #b4c89a 35%, transparent);
}

:root[data-theme="dark"] .floor-period,
:root[data-theme="dark"] .floor-place {
  color: #c8a989;
}

:root[data-theme="dark"] .floor-role {
  color: #f5ead2;
}

:root[data-theme="dark"] .floor-content li {
  color: #d4b896;
}

:root[data-theme="dark"] .floor-content li strong {
  color: #f5ead2;
}

:root[data-theme="dark"] .floor-toggle {
  border-color: #c8a989;
}

:root[data-theme="dark"] .floor-toggle::before,
:root[data-theme="dark"] .floor-toggle::after {
  background: #c8a989;
}

:root[data-theme="dark"] .floor-windows span {
  background: color-mix(in srgb, #a8d6ff 40%, #2a1f1a 60%);
  border-color: #4a7a9a;
}

.timeline-item h3 {
  margin: 0 0 var(--space-2);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 400;
}

.project-card {
  display: grid;
  gap: 0.2rem;
  transform-style: preserve-3d;
  --card-tilt-x: 0deg;
  --card-tilt-y: 0deg;
  --card-shift-x: 0px;
  --card-shift-y: 0px;
  transform: perspective(900px) rotateX(var(--card-tilt-x))
    rotateY(var(--card-tilt-y))
    translate3d(var(--card-shift-x), var(--card-shift-y), 0);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.project-card.is-tilting {
  box-shadow: 0 14px 28px rgb(0 0 0 / 10%);
}

.project-thumb {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  background: linear-gradient(140deg, #ddd 0%, #b5b5b5 100%);
  overflow: hidden;
  position: relative;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 320ms ease;
}

.project-card:hover .project-thumb img {
  transform: scale(1.04);
}

.project-thumb-slideshow img {
  position: absolute;
  inset: 0;
  animation: project-slide 8s ease-in-out infinite;
  animation-delay: calc(var(--slide-index, 0) * -4s);
}

.project-thumb-slideshow[data-slide-count="3"] img {
  animation: project-slide-3 12s ease-in-out infinite;
  animation-delay: calc(var(--slide-index, 0) * -4s);
}

.project-thumb-slideshow[data-slide-count="4"] img {
  animation: project-slide-4 16s ease-in-out infinite;
  animation-delay: calc(var(--slide-index, 0) * -4s);
}

@keyframes project-slide {
  0%,
  40% {
    opacity: 1;
  }
  50%,
  90% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes project-slide-3 {
  0%,
  29% {
    opacity: 1;
  }
  33%,
  96% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes project-slide-4 {
  0%,
  22% {
    opacity: 1;
  }
  25%,
  97% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-thumb-slideshow img {
    animation: none;
  }
  .project-thumb-slideshow img:first-child {
    opacity: 1;
  }
}

.thumb-orange {
  background: linear-gradient(135deg, #f3b046 0%, #fb8fa8 100%);
}

.thumb-teal {
  background: linear-gradient(155deg, #0f4e87 0%, #6caed8 100%);
}

.thumb-lilac {
  background: linear-gradient(130deg, #c8c2ff 0%, #a5a8f2 100%);
}

.thumb-violet {
  background: linear-gradient(150deg, #7a88ff 0%, #d162bb 100%);
}

.thumb-sky {
  background: linear-gradient(160deg, #8eb2d4 0%, #6c93b8 100%);
}

.thumb-emerald {
  background: linear-gradient(145deg, #9fc7a6 0%, #4a8266 100%);
}

.thumb-black {
  background: #000000;
}

.project-topline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  color: var(--muted);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.55rem;
}

.project-card h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.72rem;
  font-weight: 400;
}

.project-card p {
  margin: 0;
  color: var(--project-copy);
  font-size: 0.9rem;
  max-width: 56ch;
}

.project-link {
  margin-top: 0.3rem;
  width: fit-content;
  color: var(--project-link);
  text-decoration: none;
  font-size: 0.87rem;
  border-bottom: 1px solid var(--project-link-border);
}

.project-link:hover {
  border-color: var(--project-link-hover);
}

.about h2 {
  max-width: 14ch;
  margin-bottom: var(--space-3);
}

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

.links a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.links a:hover {
  border-color: var(--text);
}

.site-footer {
  margin-top: var(--space-7);
  padding-bottom: var(--space-7);
}

.garden-footer {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  padding: clamp(1.5rem, 3vw, 3rem);
  background:
    radial-gradient(circle at 14% 18%, rgb(62 88 44 / 0.18), transparent 26%),
    radial-gradient(circle at 84% 14%, rgb(108 52 78 / 0.14), transparent 24%),
    linear-gradient(180deg, #11120f 0%, #0a0b09 100%);
  color: #dde4ff;
  border: 1px solid rgb(255 255 255 / 0.08);
}

.garden-footer::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgb(255 255 255 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgb(0 0 0 / 0.8), transparent 92%);
  pointer-events: none;
}

.garden-header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: var(--space-6);
  align-items: start;
}

.garden-kicker {
  margin: 0 0 var(--space-3);
  color: #afb98c;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.garden-title {
  margin: 0;
  max-width: 12ch;
  color: #f0efe6;
  font-size: clamp(2.4rem, 4.8vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.garden-body {
  margin: var(--space-4) 0 0;
  max-width: 58ch;
  color: #c7c5b6;
  font-size: 1rem;
}

.garden-panel {
  position: relative;
  z-index: 1;
  padding: var(--space-4);
  border: 1px solid rgb(240 239 230 / 0.12);
  background: rgb(255 255 255 / 0.04);
  backdrop-filter: blur(8px);
}

.garden-panel-label {
  margin: 0 0 var(--space-3);
  color: #afb98c;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.garden-facts {
  display: grid;
  gap: var(--space-3);
}

.garden-fact {
  display: grid;
  gap: 0.25rem;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgb(240 239 230 / 0.1);
}

.garden-fact:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.garden-fact span {
  color: #9ca28f;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.garden-fact strong {
  color: #f0efe6;
  font-weight: 500;
}

.garden-field {
  position: relative;
  z-index: 1;
  min-height: 34rem;
  margin-top: var(--space-6);
  border-top: 1px solid rgb(240 239 230 / 0.08);
  border-bottom: 1px solid rgb(240 239 230 / 0.08);
  cursor:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='34' height='30' viewBox='0 0 34 30' fill='none' stroke='%23f2ede3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M4 14 L4 24 L18 24 L18 14 Z' fill='%23f2ede3'/><path d='M18 16 L28 11 L28 17 L18 22 Z' fill='%23f2ede3'/><path d='M5 14 Q5 8 11 8 Q14 8 14 12'/><line x1='28' y1='17' x2='30' y2='24'/><line x1='26' y1='18' x2='27' y2='26'/><line x1='24' y1='18' x2='24' y2='27'/></svg>") 28 14,
    crosshair !important;
}

.garden-field * {
  cursor: inherit !important;
}

.garden-instruction {
  position: absolute;
  top: 1rem;
  right: 1rem;
  margin: 0;
  color: var(--garden-note);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 2;
}

.garden-bed {
  position: absolute;
  inset: 0;
}

.garden-sprout {
  position: absolute;
  margin: 0;
  font-family: "Courier New", ui-monospace, monospace;
  font-size: clamp(0.8rem, 1vw, 1rem);
  line-height: 0.92;
  white-space: pre;
  transform: translate(-50%, -50%);
  opacity: 0.55;
  transition: opacity 220ms ease;
}

.garden-sprout.is-grown {
  opacity: 0.92;
  animation: garden-sway 4.8s ease-in-out infinite;
}

.garden-ripple {
  position: absolute;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgb(169 208 255 / 75%);
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0.4);
  pointer-events: none;
  animation: water-ripple 900ms ease-out forwards;
  box-shadow: 0 0 0 0.2rem rgb(140 177 214 / 12%);
}

.sprout-lime {
  color: #bccb56;
}

.sprout-pink {
  color: #df6293;
}

.sprout-orange {
  color: #ef6b23;
}

.sprout-sky {
  color: #9ad0ff;
}

.sprout-cream {
  color: #f3efda;
}

.garden-links {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.garden-status {
  margin: 0;
  color: #9ca28f;
  max-width: 44ch;
}

.footer-links {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-links a {
  color: #d6dcf5;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  border-bottom: 1px solid rgb(214 220 245 / 0.26);
}

.footer-links a:hover {
  border-color: #cddd61;
  color: #cddd61;
}

@keyframes garden-sway {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(-1deg) translateY(0);
  }

  50% {
    transform: translate(-50%, -50%) rotate(1.5deg) translateY(-4px);
  }
}

@keyframes water-ripple {
  0% {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(0.4);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(8);
  }
}

.mechanical-toggle {
  --bg-color: #e0e5ec;
  --accent-emerald: #2ecc71;
  --old-tech-blue: #3498db;
  --off-color: #94a3b8;
  --container-w: 56px;
  --container-h: 28px;
  --thumb-size: 22px;
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --shadow-out: 6px 6px 12px #b8bec9, -6px -6px 12px #ffffff;
  --shadow-in: inset 2px 2px 5px #b8bec9, inset -2px -2px 5px #ffffff;
  position: relative;
  display: inline-block;
  width: var(--container-w);
  height: var(--container-h);
  cursor: none !important;
  flex-shrink: 0;
}

:root[data-theme="dark"] .mechanical-toggle {
  --bg-color: #23272f;
  --off-color: #64748b;
  --shadow-out: 6px 6px 12px #111419, -6px -6px 12px #2c313b;
  --shadow-in: inset 2px 2px 5px #111419, inset -2px -2px 5px #2c313b;
}

.mechanical-toggle input {
  display: none;
}

.slider {
  position: absolute;
  inset: 0;
  background-color: var(--bg-color);
  border-radius: 50px;
  box-shadow: var(--shadow-in);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.5);
  overflow: hidden;
}

.slider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 10px;
  width: 36px;
  height: 1px;
  background: rgba(0, 0, 0, 0.05);
  box-shadow:
    0 3px 0 rgba(0, 0, 0, 0.05),
    0 -3px 0 rgba(0, 0, 0, 0.05);
  transform: translateY(-50%);
  transition: var(--transition);
  z-index: 0;
}

.thumb {
  position: absolute;
  height: var(--thumb-size);
  width: var(--thumb-size);
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--bg-color);
  border-radius: 50%;
  box-shadow: var(--shadow-out);
  transition: var(--transition);
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.thumb::after {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--off-color);
  border-radius: 50%;
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.thumb-details::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 0.5px dashed rgba(0, 0, 0, 0.1);
}

.glow {
  position: absolute;
  width: 28px;
  height: 28px;
  background: var(--accent-emerald);
  filter: blur(10px);
  opacity: 0;
  transition: var(--transition);
  left: 0;
  top: 0;
}

.mechanical-toggle input:checked + .slider::before {
  background: var(--old-tech-blue);
  box-shadow:
    0 4px 0 var(--old-tech-blue),
    0 -4px 0 var(--old-tech-blue);
  filter: drop-shadow(0 0 2px rgba(52, 152, 219, 0.5));
}

.mechanical-toggle input:checked + .slider .thumb {
  left: calc(var(--container-w) - var(--thumb-size) - 4px);
  border-color: rgba(46, 204, 113, 0.3);
}

.mechanical-toggle input:checked + .slider .thumb::after {
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.mechanical-toggle input:checked + .slider {
  box-shadow:
    inset 2px 2px 5px #b8bec9,
    inset -2px -2px 5px #ffffff,
    0 0 15px rgba(46, 204, 113, 0.2);
}

:root[data-theme="dark"] .mechanical-toggle input:checked + .slider {
  box-shadow:
    inset 2px 2px 5px #111419,
    inset -2px -2px 5px #2c313b,
    0 0 15px rgba(46, 204, 113, 0.2);
}

.mechanical-toggle input:checked + .slider .glow {
  opacity: 0.15;
  left: 28px;
}

.mechanical-toggle:hover .thumb {
  box-shadow:
    4px 4px 8px #b8bec9,
    -4px -4px 8px #ffffff;
}

:root[data-theme="dark"] .mechanical-toggle:hover .thumb {
  box-shadow:
    4px 4px 8px #111419,
    -4px -4px 8px #2c313b;
}

.mechanical-toggle:active .thumb {
  transform: translateY(-50%) scale(0.95);
  box-shadow: var(--shadow-in);
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 480ms ease, transform 480ms ease;
}

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

@media (max-width: 1024px) {
  .stack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .section-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: var(--space-3);
  }

  .hero-collage {
    min-height: 64vh;
  }

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

@media (max-width: 768px) {
  body {
    cursor: auto;
  }

  a,
  button,
  [role="button"] {
    cursor: pointer;
  }

  * {
    cursor: auto !important;
  }

  .custom-cursor {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 58px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
    padding: var(--space-4) max(1rem, calc((100vw - var(--max-width)) / 2));
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgb(0 0 0 / 8%);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 220ms ease,
      transform 220ms ease,
      visibility 0s linear 220ms;
    z-index: 9;
  }

  body.nav-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
      opacity 220ms ease,
      transform 220ms ease,
      visibility 0s linear 0s;
  }

  .site-nav a {
    font-size: 1.05rem;
    padding: var(--space-2) 0;
    opacity: 1;
  }

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

  .hero-collage {
    min-height: auto;
    display: grid;
    gap: var(--space-3);
    padding: var(--space-4);
  }

  .note {
    position: static;
    transform: none;
  }

  .project-card {
    transform: none;
    transition: none;
  }

  .garden-header,
  .garden-links {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .garden-title {
    max-width: 100%;
  }

  .garden-field {
    min-height: 30rem;
  }

  .garden-sprout {
    font-size: 0.6rem;
    line-height: 0.95;
  }

  .garden-sprout:nth-child(even) {
    display: none;
  }

  .garden-instruction {
    position: static;
    margin: 0 0 var(--space-3);
  }

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

  .section {
    padding-block: 2.75rem;
  }

  .header-actions {
    gap: var(--space-2);
  }

  .header-row {
    min-height: 58px;
  }

  .container {
    width: min(100% - 1.5rem, var(--max-width));
  }
}

@media (max-width: 480px) {
  .section {
    padding-block: 2rem;
  }

  .container {
    width: min(100% - 1rem, var(--max-width));
  }

  .hero-collage {
    padding: var(--space-3);
  }

  .note-tag,
  .note-icon {
    display: none;
  }

  .note-main p {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }

  .note-side p {
    font-size: clamp(1rem, 4vw, 1.4rem);
  }

  .section-heading h2 {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  .garden-title {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  .garden-facts {
    grid-template-columns: 1fr;
  }

  .floor-windows {
    display: none;
  }

  .floor-summary {
    grid-template-columns: 1fr auto;
    padding: var(--space-3) var(--space-4);
  }

  .floor-content {
    padding: var(--space-3) var(--space-4) var(--space-4);
  }

  .garden-sprout {
    font-size: 0.55rem;
  }

  .garden-sprout:nth-child(3n) {
    display: none;
  }

  .header-row {
    min-height: 52px;
  }

  .site-nav {
    top: 52px;
  }

  .brand {
    font-size: 0.95rem;
  }

  .intro-name {
    font-size: clamp(2.2rem, 14vw, 5rem);
  }

  .footer-links {
    flex-wrap: wrap;
    gap: var(--space-3);
  }
}

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

  body {
    cursor: auto;
  }

  a,
  button,
  [role="button"] {
    cursor: pointer;
  }

  * {
    cursor: auto !important;
  }

  .custom-cursor {
    display: none;
  }

  .mechanical-toggle {
    cursor: pointer !important;
  }

  .note {
    transition: none;
  }

  .project-card {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

body.intro-active {
  overflow: hidden;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: grid;
  place-items: center;
  pointer-events: none;
  animation: intro-exit 0.9s cubic-bezier(0.7, 0, 0.2, 1) 1.5s forwards;
}

.intro-name {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(2.8rem, 12vw, 9rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #2d5a4e;
  display: inline-flex;
  overflow: hidden;
  padding-block: 0.18em;
}

.intro-letter,
.intro-space {
  display: inline-block;
  transform: translateY(110%);
  animation: intro-letter 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.intro-letter:nth-child(1)  { animation-delay: 0.05s; }
.intro-letter:nth-child(2)  { animation-delay: 0.10s; }
.intro-letter:nth-child(3)  { animation-delay: 0.15s; }
.intro-letter:nth-child(4)  { animation-delay: 0.20s; }
.intro-letter:nth-child(5)  { animation-delay: 0.25s; }
.intro-letter:nth-child(6)  { animation-delay: 0.30s; }
.intro-letter:nth-child(7)  { animation-delay: 0.35s; }
.intro-letter:nth-child(8)  { animation-delay: 0.40s; }
.intro-letter:nth-child(9)  { animation-delay: 0.45s; }
.intro-space:nth-child(10)  { animation-delay: 0.50s; }
.intro-letter:nth-child(11) { animation-delay: 0.55s; }

@keyframes intro-letter {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}

@keyframes intro-exit {
  to {
    transform: translateY(-100%);
    visibility: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro {
    display: none;
  }
  body.intro-active {
    overflow: auto;
  }
}

.leaves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.leaf {
  position: absolute;
  display: block;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><path d='M5 28 Q3 5 28 4 Q26 24 5 28 Z' fill='black'/><path d='M5 28 Q15 17 27 5' stroke='black' stroke-width='0.8' fill='none' stroke-linecap='round'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><path d='M5 28 Q3 5 28 4 Q26 24 5 28 Z' fill='black'/><path d='M5 28 Q15 17 27 5' stroke='black' stroke-width='0.8' fill='none' stroke-linecap='round'/></svg>") center/contain no-repeat;
  color: #2d5a4e;
  opacity: 0.55;
  will-change: transform;
}

:root[data-theme="dark"] .leaf {
  color: #8aa590;
  opacity: 0.65;
}

@keyframes leaf-drift {
  0% {
    transform: translate3d(-15vw, -8vh, 0) rotate(0deg);
  }

  100% {
    transform: translate3d(115vw, 28vh, 0) rotate(540deg);
  }
}

@keyframes leaf-drift-back {
  0% {
    transform: translate3d(115vw, 8vh, 0) rotate(0deg);
  }

  100% {
    transform: translate3d(-15vw, -12vh, 0) rotate(-420deg);
  }
}

.leaf-1 {
  top: 8%;
  width: 130px;
  height: 130px;
  animation: leaf-drift 6s linear infinite;
  animation-delay: -1s;
}

.leaf-2 {
  top: 30%;
  width: 100px;
  height: 100px;
  animation: leaf-drift 5s linear infinite;
  animation-delay: -3s;
  opacity: 0.45;
}

.leaf-3 {
  top: 55%;
  width: 180px;
  height: 180px;
  animation: leaf-drift 7.5s linear infinite;
  animation-delay: -4s;
  opacity: 0.5;
}

.leaf-4 {
  top: 78%;
  width: 120px;
  height: 120px;
  animation: leaf-drift 5.5s linear infinite;
  animation-delay: -2s;
}

.leaf-5 {
  top: 18%;
  width: 80px;
  height: 80px;
  animation: leaf-drift-back 6.5s linear infinite;
  animation-delay: -3.5s;
  opacity: 0.4;
}

.leaf-6 {
  top: 48%;
  width: 150px;
  height: 150px;
  animation: leaf-drift-back 7s linear infinite;
  animation-delay: -5s;
  opacity: 0.5;
}

.leaf-7 {
  top: 85%;
  width: 110px;
  height: 110px;
  animation: leaf-drift 6s linear infinite;
  animation-delay: -4.5s;
  opacity: 0.5;
}

.leaf-8 {
  top: 38%;
  width: 140px;
  height: 140px;
  animation: leaf-drift-back 6.5s linear infinite;
  animation-delay: -2.5s;
  opacity: 0.5;
}

.leaf-9 {
  top: 68%;
  width: 95px;
  height: 95px;
  animation: leaf-drift 5.5s linear infinite;
  animation-delay: -4s;
  opacity: 0.45;
}

@media (prefers-reduced-motion: reduce) {
  .leaves {
    display: none;
  }
}
