﻿:root {
  --background: oklch(0.986 0.004 286.3);
  --foreground: oklch(0.243 0.017 285.1);
  --card: oklch(0.959 0.01 299.2);
  --primary: oklch(0.581 0.189 289);
  --primary-foreground: oklch(0.986 0.004 286.3);
  --secondary: oklch(0.97 0.008 293.9);
  --muted: oklch(0.967 0.008 293.9);
  --muted-foreground: oklch(0.37 0.024 286);
  --accent: oklch(1 0 89.9);
  --signal: oklch(0.636 0.114 305.8);
  --border: oklch(0.932 0.012 296.3);
  --ring: oklch(0.743 0.123 298.5);
  --nav-active: var(--primary);
  --nav-active-soft: rgb(242 240 247 / 82%);
  --nav-active-border: rgb(182 154 239 / 42%);
  --nav-active-shadow: rgb(123 95 225 / 12%);
  --shadow: 0 18px 50px rgb(31 31 40 / 10%);
  --radius: 8px;
  --grid: minmax(24px, 1fr) minmax(0, 1180px) minmax(24px, 1fr);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  margin: 0;
  color: var(--foreground);
  background:
    radial-gradient(circle at 15% 8%, rgb(123 95 225 / 10%), transparent 28rem),
    linear-gradient(135deg, rgb(255 255 255 / 72%) 0 25%, transparent 25% 100%),
    var(--background);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(115deg, transparent 0 48%, rgb(123 95 225 / 7%) 48% 49%, transparent 49% 100%),
    radial-gradient(circle, rgb(31 31 40 / 5%) 1px, transparent 1px);
  background-size: 120px 120px, 18px 18px;
  opacity: 0.55;
  animation: mineral-shimmer 18s linear infinite;
}

.ambient-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.ambient-layer::after {
  position: absolute;
  inset: 0;
  content: "";
  background-image: url("assets/visuals/lilac-petal-texture.png");
  background-position: center top;
  background-size: cover;
  opacity: 0.11;
  mix-blend-mode: multiply;
}

.ambient-shard {
  position: absolute;
  display: block;
  width: clamp(90px, 12vw, 170px);
  aspect-ratio: 1;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 80%), rgb(182 154 239 / 26%)),
    linear-gradient(45deg, transparent 52%, rgb(123 95 225 / 20%) 52% 55%, transparent 55%);
  border: 1px solid rgb(182 154 239 / 28%);
  opacity: 0.58;
  filter: blur(0.2px);
  clip-path: polygon(50% 0, 94% 22%, 76% 100%, 16% 76%, 0 24%);
  animation: shard-drift 12s ease-in-out infinite;
}

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

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.lilac-sprig {
  position: absolute;
  right: clamp(-70px, -4vw, -20px);
  top: 118px;
  width: clamp(180px, 25vw, 420px);
  opacity: 0.2;
  filter: saturate(0.86) blur(0.1px);
  transform: rotate(-12deg);
  animation: sprig-sway 16s ease-in-out infinite;
}

.petal {
  position: absolute;
  display: block;
  width: 18px;
  height: 28px;
  background:
    radial-gradient(circle at 45% 18%, rgb(255 255 255 / 82%), transparent 28%),
    linear-gradient(145deg, rgb(255 255 255 / 78%), rgb(182 154 239 / 62%) 52%, rgb(123 95 225 / 42%));
  border: 1px solid rgb(182 154 239 / 38%);
  border-radius: 70% 30% 72% 28% / 62% 30% 70% 38%;
  opacity: 0.34;
  filter: blur(0.15px);
  transform-origin: 50% 80%;
  animation: petal-drift 22s linear infinite;
}

.petal-one {
  left: 8%;
  top: -8%;
  animation-delay: -2s;
}

.petal-two {
  left: 24%;
  top: -12%;
  width: 14px;
  height: 22px;
  opacity: 0.26;
  animation-duration: 28s;
  animation-delay: -12s;
}

.petal-three {
  left: 48%;
  top: -10%;
  width: 22px;
  height: 34px;
  animation-duration: 24s;
  animation-delay: -7s;
}

.petal-four {
  left: 70%;
  top: -14%;
  width: 13px;
  height: 21px;
  opacity: 0.23;
  animation-duration: 31s;
  animation-delay: -16s;
}

.petal-five {
  left: 88%;
  top: -9%;
  animation-duration: 26s;
  animation-delay: -4s;
}

.petal-six {
  left: 36%;
  top: -16%;
  width: 15px;
  height: 24px;
  opacity: 0.29;
  animation-duration: 34s;
  animation-delay: -20s;
}

.petal-seven {
  left: 58%;
  top: -11%;
  width: 17px;
  height: 27px;
  animation-duration: 29s;
  animation-delay: -10s;
}

.petal-eight {
  left: 14%;
  top: -18%;
  width: 12px;
  height: 20px;
  opacity: 0.22;
  animation-duration: 36s;
  animation-delay: -23s;
}

.petal-nine {
  left: 5%;
  top: 14%;
  width: 10px;
  height: 17px;
  opacity: 0.2;
  animation-duration: 42s;
  animation-delay: -31s;
}

.petal-ten {
  left: 82%;
  top: 18%;
  width: 16px;
  height: 25px;
  opacity: 0.25;
  animation-duration: 38s;
  animation-delay: -17s;
}

.petal-eleven {
  left: 44%;
  top: 10%;
  width: 11px;
  height: 18px;
  opacity: 0.18;
  animation-duration: 44s;
  animation-delay: -28s;
}

.petal-twelve {
  left: 94%;
  top: 36%;
  width: 13px;
  height: 21px;
  opacity: 0.2;
  animation-duration: 40s;
  animation-delay: -9s;
}

.music-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 46px;
  max-width: calc(100vw - 36px);
  padding: 10px 14px;
  color: var(--foreground);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  border: 1px solid rgb(182 154 239 / 48%);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 92%), rgb(242 240 247 / 82%)),
    var(--accent);
  box-shadow: 0 14px 34px rgb(31 31 40 / 12%);
  cursor: pointer;
  backdrop-filter: blur(16px);
}

.music-toggle:hover {
  border-color: var(--ring);
  transform: translateY(-2px);
}

.music-toggle.is-playing .music-icon {
  animation: music-pulse 1.6s ease-in-out infinite;
}

.music-toggle.is-missing {
  color: var(--muted-foreground);
  border-style: dashed;
}

.music-icon {
  position: relative;
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--primary-foreground);
  background: var(--primary);
  border-radius: 50%;
}

.music-icon::before {
  position: absolute;
  right: 8px;
  bottom: 6px;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--primary-foreground);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 22%);
}

.music-icon::after {
  position: absolute;
  right: 10px;
  bottom: 11px;
  width: 3px;
  height: 11px;
  content: "";
  background: var(--primary-foreground);
  border-radius: 999px;
  box-shadow: 5px -4px 0 -1px var(--primary-foreground);
  transform: rotate(-4deg);
}

.shard-one {
  top: 22%;
  left: -34px;
}

.shard-two {
  top: 12%;
  right: 7%;
  width: clamp(60px, 9vw, 110px);
  animation-duration: 15s;
  animation-delay: -4s;
}

.shard-three {
  right: -46px;
  bottom: 18%;
  width: clamp(120px, 15vw, 220px);
  animation-duration: 18s;
  animation-delay: -8s;
}

a {
  color: inherit;
}

img,
iframe,
object {
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 14px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(760px, calc(100% - 32px));
  min-height: 58px;
  margin: 14px auto 0;
  padding: 8px 10px;
  border: 1px solid rgb(218 215 227 / 72%);
  border-radius: 999px;
  background: rgb(250 250 253 / 76%);
  box-shadow: 0 18px 44px rgb(31 31 40 / 9%);
  backdrop-filter: blur(20px);
  transform-origin: center top;
  transition:
    width 520ms cubic-bezier(0.2, 0.9, 0.2, 1),
    min-height 520ms cubic-bezier(0.2, 0.9, 0.2, 1),
    padding 520ms cubic-bezier(0.2, 0.9, 0.2, 1),
    border-color 280ms ease,
    box-shadow 280ms ease,
    transform 520ms cubic-bezier(0.2, 0.9, 0.2, 1);
}
.site-header::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 4px;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, transparent, var(--nav-active), transparent);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scaleX(0.35);
  transition:
    opacity 280ms ease,
    transform 520ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.site-header[data-active-section="intro"] {
  --nav-active: var(--primary);
  --nav-active-soft: rgb(242 240 247 / 86%);
  --nav-active-border: rgb(182 154 239 / 48%);
  --nav-active-shadow: rgb(123 95 225 / 14%);
}

.site-header[data-active-section="projects"] {
  --nav-active: #9c78c2;
  --nav-active-soft: rgb(246 239 255 / 88%);
  --nav-active-border: rgb(156 120 194 / 42%);
  --nav-active-shadow: rgb(156 120 194 / 13%);
}

.site-header[data-active-section="documents"] {
  --nav-active: var(--foreground);
  --nav-active-soft: rgb(255 255 255 / 92%);
  --nav-active-border: rgb(31 31 40 / 14%);
  --nav-active-shadow: rgb(31 31 40 / 10%);
}

.site-header[data-active-section="summary"] {
  --nav-active: #5b43ad;
  --nav-active-soft: rgb(239 235 250 / 90%);
  --nav-active-border: rgb(91 67 173 / 36%);
  --nav-active-shadow: rgb(91 67 173 / 14%);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  transition:
    gap 520ms cubic-bezier(0.2, 0.9, 0.2, 1),
    transform 520ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.main-nav a {
  position: relative;
  padding: 10px 15px;
  color: var(--muted-foreground);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  transition:
    color 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    opacity 320ms ease,
    max-width 520ms cubic-bezier(0.2, 0.9, 0.2, 1),
    padding 520ms cubic-bezier(0.2, 0.9, 0.2, 1),
    transform 320ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--nav-active);
  background: var(--nav-active-soft);
  border-color: var(--nav-active-border);
  box-shadow: 0 8px 20px var(--nav-active-shadow);
  transform: translateY(-1px);
}

.site-header.is-idle {
  width: 112px;
  min-height: 34px;
  padding: 4px 10px;
  border-color: var(--nav-active-border);
  box-shadow: 0 16px 36px var(--nav-active-shadow);
}

.site-header.is-idle::after {
  opacity: 0.82;
  transform: translate(-50%, -50%) scaleX(1);
}

.site-header.is-idle .main-nav {
  gap: 0;
  transform: scaleX(0.42);
}

.site-header.is-idle .main-nav a,
.site-header.is-idle .main-nav a.active {
  max-width: 0;
  width: auto;
  height: auto;
  padding-right: 0;
  padding-left: 0;
  opacity: 0;
  color: transparent;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  pointer-events: none;
  transform: translateX(0) scale(0.7);
  white-space: nowrap;
}

.site-header.is-idle .main-nav a.active::after {
  content: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--accent);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--foreground);
}

.section-band {
  position: relative;
  display: grid;
  grid-template-columns: var(--grid);
  padding: clamp(56px, 8vw, 96px) 0;
}

.section-band:not(.hero)::before {
  position: absolute;
  top: 0;
  left: max(24px, calc((100vw - 1180px) / 2));
  width: min(260px, 42vw);
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--ring), transparent);
  clip-path: polygon(0 0, 96% 0, 100% 100%, 4% 100%);
  opacity: 0.55;
  animation: separator-glint 8s ease-in-out infinite;
}

.section-band > * {
  grid-column: 2;
}

.hero {
  min-height: calc(100svh - 88px);
  grid-template-columns: var(--grid);
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(96px, 12vh, 142px);
  padding-bottom: clamp(70px, 9vh, 112px);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, rgb(250 250 253 / 96%) 0 40%, rgb(250 250 253 / 76%) 62%, rgb(250 250 253 / 46%) 100%),
    url("assets/visuals/amethyst-hero-bg.png");
  background-position: 58% 56%;
  background-size: cover;
  opacity: 0.92;
  transform: scale(1.02);
}

.hero::after {
  position: relative;
  z-index: 1;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero::after {
  grid-column: 2;
  width: min(280px, 42vw);
  height: 4px;
  margin-top: -38px;
  content: "";
  background: linear-gradient(90deg, var(--primary), var(--ring), transparent);
  clip-path: polygon(0 0, 94% 0, 100% 100%, 0 100%);
}

.hero-copy {
  grid-column: 2;
  max-width: 720px;
  margin-left: clamp(0px, 4vw, 32px);
  transform: translateY(5px);
}

.hero {
  position: relative;
}

.profile-panel {
  position: relative;
  grid-column: 2;
  justify-self: end;
  width: min(390px, 100%);
  margin-top: 24px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgb(242 240 247 / 88%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.hero h1,
.hero-lede,
.hero-actions {
  opacity: 0;
  animation: hero-rise 780ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero .eyebrow {
  animation-delay: 120ms;
}

.hero h1 {
  animation-delay: 240ms;
}

.hero-lede {
  animation-delay: 420ms;
}

.hero-actions {
  animation-delay: 600ms;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3.2rem, 9vw, 7.2rem);
  line-height: 0.93;
}

.hero h1 {
  color: transparent;
  background:
    linear-gradient(110deg, var(--foreground) 0 38%, var(--primary) 48%, var(--foreground) 58% 100%);
  background-size: 240% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  animation:
    hero-rise 780ms cubic-bezier(0.2, 0.8, 0.2, 1) 240ms forwards,
    hero-sheen 6s ease-in-out 1.4s infinite;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.25;
}

h4 {
  margin: 22px 0 8px;
  font-size: 1rem;
}

.hero-lede,
.section-heading p {
  max-width: 760px;
  color: var(--muted-foreground);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  font-weight: 750;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgb(31 31 40 / 12%);
}

.button.primary {
  color: var(--primary-foreground);
  background: var(--primary);
  border-color: transparent;
}

.button.ghost {
  background: var(--accent);
}

.button.disabled {
  color: var(--muted-foreground);
  cursor: not-allowed;
  background: var(--muted);
}

.profile-photo {
  position: relative;
  width: 112px;
  height: 112px;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--ring));
}

.profile-photo img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo img.is-missing {
  display: none;
}

.profile-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--primary-foreground);
  font-weight: 900;
  font-size: 1.35rem;
}

.profile-label {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-panel h2 {
  margin-top: 2px;
  font-size: 1.45rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0 0;
}

.profile-grid div,
.about-grid article,
.summary-card,
.project-card,
.project-detail,
.document-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgb(255 255 255 / 72%);
  border-radius: var(--radius);
}

.profile-panel::before,
.about-grid article::before,
.summary-card::before,
.project-card::before,
.project-detail::before,
.document-item::before {
  position: absolute;
  top: -24px;
  right: -28px;
  z-index: 0;
  width: 150px;
  height: 150px;
  pointer-events: none;
  content: "";
  background: url("assets/visuals/lilac-vine-corner.png") no-repeat right top / contain;
  opacity: 0.18;
  transform: rotate(2deg);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
  animation: vine-breathe 8s ease-in-out infinite;
}

.profile-panel::after,
.about-grid article::after,
.summary-card::after,
.project-card::after,
.project-detail::after,
.document-item::after {
  position: absolute;
  right: 22px;
  bottom: -18px;
  z-index: 0;
  width: min(62%, 310px);
  height: 82px;
  pointer-events: none;
  content: "";
  background: url("assets/visuals/lilac-vine-edge.png") no-repeat right center / contain;
  opacity: 0.13;
  transform: rotate(-1deg);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
  animation: vine-edge-drift 10s ease-in-out infinite;
}

.profile-panel > *,
.about-grid article > *,
.summary-card > *,
.project-detail > *,
.document-item > * {
  position: relative;
  z-index: 1;
}

.profile-panel:hover::before,
.about-grid article:hover::before,
.summary-card:hover::before,
.project-card:hover::before,
.project-detail:hover::before,
.document-item:hover::before {
  opacity: 0.28;
  transform: rotate(-2deg) translate(-5px, 5px);
}

.profile-panel:hover::after,
.about-grid article:hover::after,
.summary-card:hover::after,
.project-card:hover::after,
.project-detail:hover::after,
.document-item:hover::after {
  opacity: 0.22;
  transform: rotate(1deg) translate(-4px, -3px);
}

.profile-grid div {
  padding: 10px;
}

dt {
  color: var(--muted-foreground);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 2px 0 0;
  font-weight: 750;
}

.section-heading {
  margin-bottom: 28px;
}

.about-grid,
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.about-grid article,
.summary-card {
  padding: 20px;
}

.chip-list,
.tag-list,
.step-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}

.chip-list li,
.tag-list li {
  padding: 6px 9px;
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 750;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.edit-note,
.url-placeholder {
  padding: 10px 12px;
  color: var(--muted-foreground);
  font-size: 0.9rem;
  background: var(--muted);
  border: 1px dashed var(--ring);
  border-radius: var(--radius);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 10px;
}

.project-card {
  position: relative;
  min-height: 320px;
  padding: 18px;
  overflow: visible;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 88%), rgb(242 240 247 / 74%)),
    var(--accent);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.project-card > * {
  position: relative;
  z-index: 1;
}

.project-card::before {
  position: absolute;
  inset: -20px -18px -22px -20px;
  z-index: 0;
  pointer-events: none;
  content: "";
  background: url("assets/visuals/lilac-card-vine-border.png") no-repeat center / 100% 100%;
  opacity: 0.26;
  transform: rotate(-0.8deg);
  transition:
    opacity 240ms ease,
    transform 240ms ease;
  animation: vine-breathe 9s ease-in-out infinite;
}

.project-card::after {
  position: absolute;
  right: -12px;
  bottom: -16px;
  z-index: 0;
  width: min(56%, 260px);
  height: 78px;
  pointer-events: none;
  content: "";
  background: url("assets/visuals/lilac-vine-edge.png") no-repeat right center / contain;
  opacity: 0.14;
  transform: rotate(0.6deg);
  transition:
    opacity 240ms ease,
    transform 240ms ease;
  animation: vine-edge-drift 12s ease-in-out infinite;
}

.project-card:hover {
  border-color: var(--ring);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.project-card:hover::before {
  opacity: 0.38;
  transform: rotate(0.6deg) translateY(-2px);
}

.project-card:hover::after {
  opacity: 0.24;
  transform: rotate(-0.4deg) translate(-5px, -2px);
}

.project-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.project-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 92%), rgb(182 154 239 / 26%)),
    var(--secondary);
  border: 1px solid rgb(182 154 239 / 50%);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 78%),
    0 12px 28px rgb(123 95 225 / 16%);
  transform-origin: 50% 60%;
  animation: icon-float 5.4s ease-in-out infinite;
}

.project-card:nth-child(2n) .project-icon {
  animation-delay: -1.4s;
}

.project-card:nth-child(3n) .project-icon {
  animation-delay: -2.6s;
}

.project-card:hover .project-icon {
  animation-play-state: paused;
  transform: translateY(-3px) rotate(-3deg) scale(1.04);
}

.project-icon svg {
  width: 38px;
  height: 38px;
  overflow: visible;
}

.icon-fill {
  fill: rgb(182 154 239 / 32%);
}

.icon-line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 80;
  stroke-dashoffset: 0;
  animation: icon-trace 6.5s ease-in-out infinite;
}

.icon-glint {
  fill: var(--accent);
  stroke: var(--signal);
  stroke-width: 1.8;
  animation: icon-pulse 2.8s ease-in-out infinite;
}

.project-index {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  place-items: center;
  color: var(--primary-foreground);
  font-weight: 900;
  background:
    linear-gradient(145deg, var(--primary), var(--signal));
  border-radius: var(--radius);
  box-shadow: 0 8px 18px rgb(123 95 225 / 20%);
}

.project-card p {
  color: var(--muted-foreground);
}

.project-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.project-details {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

.project-detail {
  padding: clamp(18px, 3vw, 28px);
  background: rgb(242 240 247 / 74%);
}

.detail-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 20px;
}

.process-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 10px 0 0;
  list-style: none;
  counter-reset: process;
}

.process-list li {
  position: relative;
  padding: 10px 10px 10px 42px;
  background: var(--accent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  counter-increment: process;
}

.process-list li::before {
  position: absolute;
  top: 9px;
  left: 10px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--primary-foreground);
  font-size: 0.72rem;
  font-weight: 900;
  content: counter(process);
  background: var(--signal);
  border-radius: 50%;
}

.reflection {
  padding: 14px;
  margin-top: 16px;
  background: var(--accent);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
}

.document-frame,
.docx-article {
  height: min(78vh, 820px);
  min-height: 520px;
  overflow: auto;
  background: var(--accent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 60%);
}

.document-frame iframe,
.document-frame object {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.docx-article {
  padding: clamp(16px, 3vw, 34px);
}

.docx-article p {
  margin: 0 0 13px;
}

.docx-article h3 {
  margin: 24px 0 12px;
  font-size: 1.35rem;
}

.docx-article h4 {
  margin: 20px 0 10px;
  color: var(--primary);
}

.docx-article figure {
  margin: 14px 0;
  padding: 10px;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.docx-article img {
  display: block;
  width: auto;
  max-height: 520px;
  margin: 0 auto;
  border-radius: calc(var(--radius) - 2px);
}

.docx-article figcaption {
  margin-top: 8px;
  color: var(--muted-foreground);
  font-size: 0.82rem;
  text-align: center;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  margin: 14px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: var(--accent);
}

td,
th {
  padding: 10px;
  vertical-align: top;
  border: 1px solid var(--border);
}

.featured-image {
  padding: 12px;
  margin-bottom: 16px;
  background: var(--accent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.featured-image img {
  display: block;
  width: 100%;
  border-radius: calc(var(--radius) - 2px);
}

.document-library {
  display: grid;
  gap: 16px;
}

.document-item {
  overflow: hidden;
}

.document-item summary {
  padding: 18px;
  font-weight: 850;
  cursor: pointer;
  background: var(--card);
}

.document-item .document-inner {
  padding: 18px;
}

.site-footer {
  display: grid;
  grid-template-columns: var(--grid);
  gap: 6px;
  padding: 32px 0;
  color: var(--muted-foreground);
  border-top: 1px solid var(--border);
}

.site-footer p {
  grid-column: 2;
  margin: 0;
}

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

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

#projects,
#projects.reveal,
#projects .reveal {
  opacity: 1;
  transform: none;
}

@keyframes mineral-shimmer {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 120px 120px, 36px 36px;
  }
}

@keyframes shard-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(14px, -18px, 0) rotate(5deg);
  }
}

@keyframes sprig-sway {
  0%,
  100% {
    transform: rotate(-12deg) translate3d(0, 0, 0);
  }
  50% {
    transform: rotate(-8deg) translate3d(-10px, 12px, 0);
  }
}

@keyframes petal-drift {
  0% {
    transform: translate3d(0, -12vh, 0) rotate(0deg);
  }
  35% {
    transform: translate3d(34px, 34vh, 0) rotate(118deg);
  }
  70% {
    transform: translate3d(-18px, 78vh, 0) rotate(236deg);
  }
  100% {
    transform: translate3d(30px, 116vh, 0) rotate(360deg);
  }
}

@keyframes card-petal-sway {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgb(123 95 225 / 0));
  }
  50% {
    filter: drop-shadow(0 8px 12px rgb(123 95 225 / 12%));
  }
}

@keyframes vine-breathe {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgb(123 95 225 / 0));
  }
  50% {
    filter: drop-shadow(0 8px 16px rgb(123 95 225 / 10%));
  }
}

@keyframes vine-edge-drift {
  0%,
  100% {
    background-position: right center;
  }
  50% {
    background-position: calc(100% - 10px) center;
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-sheen {
  0%,
  28%,
  100% {
    background-position: 0% 50%;
  }
  48% {
    background-position: 100% 50%;
  }
}

@keyframes music-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgb(123 95 225 / 24%);
  }
  50% {
    box-shadow: 0 0 0 8px rgb(123 95 225 / 0%);
  }
}

@keyframes separator-glint {
  0%,
  100% {
    opacity: 0.35;
    transform: translateX(0);
  }
  50% {
    opacity: 0.78;
    transform: translateX(18px);
  }
}

@keyframes icon-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-6px) rotate(2.5deg);
  }
}

@keyframes icon-trace {
  0%,
  100% {
    stroke-dashoffset: 0;
    filter: drop-shadow(0 0 0 rgb(123 95 225 / 0));
  }
  48% {
    stroke-dashoffset: 12;
    filter: drop-shadow(0 0 6px rgb(123 95 225 / 34%));
  }
}

@keyframes icon-pulse {
  0%,
  100% {
    opacity: 0.62;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@media (min-width: 900px) {
  .hero-copy {
    max-width: 690px;
  }

  .profile-panel {
    position: absolute;
    right: max(24px, calc((100vw - 1180px) / 2));
    top: 56%;
    transform: translateY(-67%);
  }
}

@media (max-width: 980px) {
  .project-grid,
  .about-grid,
  .summary-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .profile-panel {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  :root {
    --grid: minmax(16px, 1fr) minmax(0, 100%) minmax(16px, 1fr);
  }

  .site-header {
    justify-content: flex-end;
    width: min(420px, calc(100% - 32px));
    min-height: 54px;
    padding: 6px;
  }

  .site-header.is-idle {
    width: min(420px, calc(100% - 32px));
    min-height: 54px;
    padding: 6px;
  }

  .nav-toggle {
    display: block;
    margin-left: 0;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    padding: 10px;
    background: var(--accent);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    transform: none;
  }

  .site-header.is-idle .main-nav a,
  .site-header.is-idle .main-nav a.active {
    max-width: none;
    width: auto;
    height: auto;
    padding: 10px 15px;
    opacity: 1;
    color: var(--muted-foreground);
    pointer-events: auto;
    transform: none;
  }

  .site-header.is-idle .main-nav a.active {
    color: var(--nav-active);
    background: var(--nav-active-soft);
    border-color: var(--nav-active-border);
    box-shadow: 0 8px 20px var(--nav-active-shadow);
  }

  .site-header.is-idle .main-nav a.active::after {
    content: none;
  }

  .main-nav.is-open {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 56px;
    align-items: start;
  }

  .hero::before {
    background-position: 70% 45%;
  }

  .hero-copy {
    margin-left: 0;
    transform: none;
  }

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

  .document-frame,
  .docx-article {
    height: 72vh;
    min-height: 420px;
  }
}
.site-header::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 4px;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, transparent, var(--nav-active), transparent);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scaleX(0.35);
  transition:
    opacity 280ms ease,
    transform 520ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

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

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

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

  .ambient-shard,
  .ambient-layer::after,
  .lilac-sprig,
  .petal,
  .music-toggle,
  .project-icon,
  .project-card::before,
  .project-card::after,
  .profile-panel::before,
  .profile-panel::after,
  .about-grid article::before,
  .about-grid article::after,
  .summary-card::before,
  .summary-card::after,
  .project-detail::before,
  .project-detail::after,
  .document-item::before,
  .document-item::after,
  .icon-line,
  .icon-glint {
    animation: none !important;
  }

  .hero .eyebrow,
  .hero h1,
  .hero-lede,
  .hero-actions {
    opacity: 1;
    transform: none;
    animation: none !important;
  }

  .hero h1 {
    color: var(--foreground);
    background: none;
  }

  .site-header,
  .site-header.is-idle,
  .main-nav,
  .site-header.is-idle .main-nav,
  .site-header.is-idle .main-nav a,
  .site-header.is-idle .main-nav a.active {
    transform: none;
    transition-duration: 1ms !important;
  }
}
