@font-face {
  font-family: 'Dancing Script';
  src: url('/fonts/dancing-script-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  background: #081c37;
  color: #f4f8ff;
}

body {
  margin: 0;
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100svh;
  padding: 2rem clamp(1.75rem, 5vw, 4rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 44%, #153e6a28 0%, #06152ee8 100%),
    linear-gradient(145deg, #123f74d9, #0d2f58bb 48%, #071c3de8),
    #081c37 url('/images/michelle-plant-hero.jpg') center 56% / cover no-repeat;
}

.hero::after {
  position: absolute;
  inset: clamp(0.8rem, 2vw, 1.7rem);
  border: 1px solid #adcfff42;
  pointer-events: none;
  content: '';
}

.particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

h1 {
  position: relative;
  display: grid;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  font: 600 clamp(1.75rem, 8.2vw, 5.75rem) / 1.15 'Dancing Script', 'Segoe Script', cursive;
  white-space: nowrap;
  text-shadow: 0 0.12em 0.44em #020b20bb;
  text-align: center;
}

h1::after {
  position: absolute;
  top: calc(100% + 0.32em);
  left: 50%;
  width: clamp(4rem, 11vw, 9rem);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, #b9dcff, transparent);
  content: '';
}

.title, .typed-title {
  grid-area: 1 / 1;
}

.is-typing .title {
  opacity: 0;
}

.typed-title { justify-self: start; }

.typed-title::after {
  position: absolute;
  width: 0.045em;
  height: 0.85em;
  margin: 0.13em 0 0 0.08em;
  background: #b9dcff;
  content: '';
}

@media (prefers-reduced-motion: reduce) {
  .is-typing .title { opacity: 1; }
  .typed-title, .particles { display: none; }
}


.hero-plants {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: min(33svh, 19rem);
  pointer-events: none;
}

.hero h1 {
  z-index: 2;
}

.plant {
  position: absolute;
  bottom: 0.65rem;
  width: 34%;
  max-width: 18rem;
  height: 100%;
  filter: drop-shadow(0 0.4rem 0.65rem #030f20b0);
}

.dracaena { left: clamp(0.4rem, 4vw, 5rem); }
.monstera { right: clamp(0.4rem, 4vw, 5rem); }

.planter {
  position: absolute;
  left: 33%;
  bottom: 0;
  width: 34%;
  height: 23%;
  border-radius: 10% 10% 29% 29% / 12% 12% 30% 30%;
  background:
    repeating-linear-gradient(90deg, transparent 0 7%, #0e25412b 8% 9%),
    linear-gradient(100deg, #263f59, #6a94a6 32%, #365a70 70%, #1a334b);
  box-shadow: inset 0 -0.25rem 0.7rem #0c192d72;
}

.planter::before {
  position: absolute;
  inset: -10% -5% auto;
  height: 19%;
  border: 2px solid #779bad;
  border-radius: 50%;
  background: #1b2630;
  content: '';
}

.monstera .planter {
  background:
    repeating-linear-gradient(90deg, transparent 0 7%, #391b2538 8% 9%),
    linear-gradient(100deg, #63363e, #b87964 35%, #8d4b43 74%, #57313b);
}

.monstera .planter::before { border-color: #bb826e; }

.plant-growth {
  position: absolute;
  inset: 0 0 22%;
  transform-origin: 50% 100%;
  animation: plant-grow 2.1s cubic-bezier(0.22, 0.8, 0.3, 1) 0.3s both;
}

.monstera .plant-growth { animation-delay: 0.65s; }

@keyframes plant-grow {
  0% { transform: scale(0.18, 0); opacity: 0; }
  24% { opacity: 1; }
  82% { transform: scale(1.02, 1.035); }
  100% { transform: scale(1); }
}

.cane {
  position: absolute;
  bottom: 0;
  left: 48%;
  width: 3%;
  height: 76%;
  border-radius: 50% 50% 12% 12%;
  background: repeating-linear-gradient(0deg, #675445 0 0.1rem, #ac9266 0.13rem 0.42rem);
  transform: rotate(-9deg);
  transform-origin: bottom;
}

.cane-short { left: 51%; height: 47%; transform: rotate(18deg); }

.dracaena-crown {
  position: absolute;
  inset: 0 9% 69%;
}

.crown-short { inset: 39% 0 40% 34%; }

.dracaena-crown i {
  position: absolute;
  bottom: 5%;
  left: 43%;
  width: 15%;
  height: var(--length, 85%);
  border-radius: 86% 6% 87% 4%;
  background: linear-gradient(90deg, #184c40 12%, #7eaf78 44%, #4e8657 53%, #23644a 78%);
  box-shadow: inset 1px 0 #a9867466;
  transform: rotate(var(--angle, 0deg));
  transform-origin: 40% 100%;
}

.dracaena-crown i:nth-child(1) { --angle: -80deg; --length: 119%; }
.dracaena-crown i:nth-child(2) { --angle: -57deg; --length: 107%; }
.dracaena-crown i:nth-child(3) { --angle: -33deg; --length: 95%; }
.dracaena-crown i:nth-child(4) { --angle: -9deg; --length: 95%; }
.dracaena-crown i:nth-child(5) { --angle: 18deg; --length: 103%; }
.dracaena-crown i:nth-child(6) { --angle: 48deg; --length: 115%; }
.dracaena-crown i:nth-child(7) { --angle: 69deg; --length: 116%; }

.frond {
  position: absolute;
  bottom: 0;
  left: 49%;
  width: 2%;
  height: var(--length);
  border-radius: 80% 20% 10% 10%;
  background: #74a577;
  transform-origin: bottom;
  transform: rotate(var(--angle));
}

.frond::before {
  position: absolute;
  bottom: 73%;
  left: 50%;
  width: clamp(1.8rem, 6.8vw, 6.4rem);
  aspect-ratio: 0.84;
  transform: translateX(-50%);
  border-radius: 44% 65% 40% 54%;
  background:
    linear-gradient(90deg, transparent 48%, #adca887d 50%, transparent 53%),
    radial-gradient(ellipse at 27% 24%, #6d9d63, #347855 50%, #154b42 88%);
  clip-path: polygon(50% 0, 70% 7%, 89% 20%, 97% 37%, 68% 35%, 96% 48%, 100% 59%, 70% 55%, 94% 70%, 86% 83%, 61% 71%, 72% 93%, 51% 100%, 25% 89%, 40% 72%, 14% 81%, 4% 69%, 34% 57%, 0 60%, 3% 48%, 35% 38%, 4% 40%, 14% 22%, 34% 8%);
  content: '';
}

.frond:nth-child(1) { --angle: -40deg; --length: 64%; }
.frond:nth-child(2) { --angle: -15deg; --length: 82%; }
.frond:nth-child(3) { --angle: 22deg; --length: 70%; }
.frond:nth-child(4) { --angle: 53deg; --length: 59%; }

@media (prefers-reduced-motion: reduce) {
  .plant-growth { animation: none; }
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 38rem);
  padding-bottom: min(16svh, 6rem);
  text-align: center;
}

.hero-intro {
  margin: clamp(2rem, 6vw, 4.5rem) auto 0;
  color: #e4efff;
  font: 400 clamp(1rem, 2vw, 1.2rem) / 1.55 system-ui, sans-serif;
  text-shadow: 0 1px 8px #081c37;
  text-wrap: pretty;
}

.hero-intro p {
  margin: 0.75em 0 0;
}

.hero-intro strong {
  color: #fff;
}

.michelle-greeting {
  position: absolute;
  z-index: 2;
  bottom: clamp(1.1rem, 3vw, 2.1rem);
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  width: clamp(5rem, 13vw, 8.5rem);
  transform: translateX(-50%);
  animation: greeting-rise 0.8s cubic-bezier(0.19, 1, 0.3, 1) 3.05s both;
}

.michelle-portrait {
  position: relative;
  width: 77%;
  aspect-ratio: 1;
  isolation: isolate;
}

.michelle-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  border: 1px solid #b4d8ff;
  border-radius: 50%;
  box-shadow: 0 0 1.5rem #74b9ff73;
}

.greeting-hand {
  position: absolute;
  right: -12%;
  bottom: -3%;
  font-size: clamp(1.35rem, 4vw, 2.25rem);
  transform-origin: 80% 85%;
  animation: hello-wave 0.75s ease-in-out 3.65s 2;
}

.wave-back {
  border: 1px solid #a3c9f57d;
  border-radius: 99px;
  padding: 0.28rem 0.75rem;
  background: #102c51;
  color: #f4f8ff;
  font: 600 0.875rem / 1.4 system-ui, sans-serif;
  cursor: pointer;
}

.wave-back:hover { background: #234977; }

@keyframes greeting-rise {
  from { translate: 0 110%; opacity: 0; }
  to { translate: 0 0; opacity: 1; }
}

@keyframes hello-wave {
  0%, 100% { rotate: 0deg; }
  25% { rotate: -24deg; }
  75% { rotate: 18deg; }
}

.dracaena .plant-growth { animation-delay: 1.55s; }
.monstera .plant-growth { animation-delay: 1.85s; }
.dracaena-crown i, .frond { animation: leaf-open 1.2s ease-out both; }
.dracaena-crown i { animation-delay: 2.05s; }
.dracaena-crown i:nth-child(even) { animation-delay: 2.3s; }
.frond { animation-delay: 2.3s; }
.frond:nth-child(even) { animation-delay: 2.55s; }

@keyframes leaf-open {
  from { scale: 0.45 0.2; opacity: 0; }
  to { scale: 1; opacity: 1; }
}

.makeup-magician {
  font-weight: 600;
  color: #f8dfb9;
}

@supports (background-clip: text) {
  .makeup-magician {
    background: linear-gradient(105deg, #f8dfb9 40%, #fff 50%, #f8dfb9 60%) 100% / 260% 100% no-repeat;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    animation: magician-shimmer 1.25s ease-out 2.4s both;
  }
}

@keyframes magician-shimmer {
  to { background-position: 0; }
}

/* Stack the greeting and introduction in normal flow so short screens can scroll. */
.hero {
  align-content: center;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 3vh, 1.8rem);
  padding-block: clamp(2.75rem, 7svh, 5rem) clamp(5.5rem, 14svh, 9rem);
}

.michelle-greeting {
  position: relative;
  inset: auto;
  width: clamp(6rem, 15svh, 9.5rem);
  transform: none;
  animation: cameo-arrive 650ms cubic-bezier(.2,.72,.2,1) both;
}

@keyframes cameo-arrive {
  from { opacity: 0; transform: translateY(1rem) scale(.94); }
  to { opacity: 1; transform: none; }
}

.michelle-portrait {
  width: 100%;
  border-radius: 50%;
  background: #d8e5eb;
  box-shadow: 0 0 0 3px #102841, 0 0 0 4px #bfac83, 0 0.7rem 2rem #03122580;
}

.michelle-portrait img {
  box-sizing: border-box;
  mix-blend-mode: multiply;
}

.wave-back {
  margin-top: .3rem;
  min-height: 2.5rem;
  padding-inline: 1rem;
}

.wave-back:focus-visible { outline: 2px solid #f8dfb9; outline-offset: 3px; }
.greeting-hand { animation-delay: .65s; }
.hero-copy { padding-bottom: 0; }
.hero-intro { margin-top: clamp(1.75rem, 5vh, 3.25rem); }
.hero-intro p:first-child { font-family: Georgia, serif; font-style: italic; font-size: 1.18em; }
.hero-intro strong { font-size: .88em; letter-spacing: .05em; }
.hero-plants { height: min(30svh, 17rem); }

@media (max-width: 40rem) {
  .hero-plants { height: min(18svh, 8rem); }
  .hero { padding-bottom: max(8.75rem, 20svh); }
}

@media (prefers-reduced-motion: reduce) {
  .michelle-greeting, .greeting-hand, .dracaena-crown i, .frond, .makeup-magician { animation: none; }
  .wave-back { display: none; }
}


.hero { display: flex; align-items: center; justify-content: center; min-height: 100svh; padding-bottom: clamp(12rem, 29svh, 17rem); }
.michelle-greeting {
  position: absolute;
  inset: auto auto 1.1rem 50%;
  width: clamp(7.3rem, 21svh, 12rem);
  gap: 0;
  translate: -50% 0;
  animation: arrive-bottom .75s cubic-bezier(.2,.75,.25,1) .45s backwards;
}
.michelle-character { width: 100%; height: auto; display: block; filter: drop-shadow(0 3px 8px #08182c80); }
.waving-arm { transform-box: view-box; transform-origin: 166px 171px; animation: character-wave .55s ease-in-out 1s 3; }
@keyframes character-wave { 0%,100% { transform: rotate(0); } 28% { transform: rotate(-17deg); } 70% { transform: rotate(14deg); } }
@keyframes arrive-bottom { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@media (max-height: 650px) { .hero { padding-bottom: 12rem; } .michelle-greeting { width: 7rem; } }
@media (prefers-reduced-motion: reduce) { .michelle-greeting, .waving-arm { animation: none; } }

.michelle-greeting {
  width: clamp(9rem, 29svh, 16rem);
}
.greeting-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.22;
  object-fit: cover;
  object-position: 50% 18%;
  border: 1px solid #cfb991;
  border-radius: 50% 50% .6rem .6rem / 38% 38% .6rem .6rem;
  box-shadow: 0 .6rem 1.8rem #05142980;
}

.michelle-greeting { width: clamp(7rem, 21svh, 12rem); }
.wave-stage { position: relative; width: 100%; }
.wave-stage img, .wave-stage canvas { display: block; width: 100%; height: auto; }
.wave-stage canvas { position: absolute; inset: 0; }
.wave-stage.ready img { opacity: 0; }

.scene-stage {
  width: 100%;
  bottom: .45rem;
  justify-items: center;
  animation: none;
  pointer-events: none;
}
.scene-stage canvas, .scene-stage img {
  width: clamp(8rem, 23svh, 15rem);
  height: auto;
  display: block;
}
.scene-stage noscript { position: absolute; bottom: 0; }
.scene-toggle {
  pointer-events: auto;
  padding: .35rem .85rem;
  border: 1px solid #a3c9f57d;
  border-radius: 2rem;
  background: #102c51;
  color: #f4f8ff;
  cursor: pointer;
}
.scene-toggle:focus-visible { outline: 2px solid #f8dfb9; }
@media (prefers-reduced-motion: reduce) { .scene-toggle { display: none; } }

.pothos-canopy {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: min(48svh, 26rem);
  pointer-events: none;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

.hero-intro {
  max-width: 32rem;
  margin: clamp(1.9rem, 4.5vh, 2.8rem) auto 0;
  font: 600 clamp(1.12rem, 1.8vw, 1.38rem)/1.4 'Cormorant Garamond', Georgia, serif;
  text-wrap: balance;
}
.hero-intro .identity-line {
  margin: 0;
  font-size: clamp(1.45rem, 3.1vw, 2.25rem);
  line-height: 1.18;
}
.plant-name { color: #c7dfbc; white-space: nowrap; }
.hero-intro .welcome-line { margin: .85em auto 0; max-width: 38ch; color: #f6f1e8; }
.hero-intro .stay-tuned { margin: .75em auto 0; font: inherit; color: #c9dae2; }
@media (prefers-reduced-motion: no-preference) {
  .plant-growth { animation-duration: 3.5s; }
  .dracaena-crown { transform-origin: 48% 96%; animation: crown-sway 6.5s 4s ease-in-out infinite alternate; }
  .crown-short { animation-delay: 5.6s; animation-direction: alternate-reverse; }
  .frond { animation: leaf-open 2s ease-out both, frond-sway 8s 5s ease-in-out infinite alternate; }
  .frond:nth-child(even) { animation-direction: normal, alternate-reverse; }
  @keyframes crown-sway { from { rotate: -2deg; } to { rotate: 3deg; } }
  @keyframes frond-sway { from { rotate: -1deg; } to { rotate: 2.5deg; } }
}
.makeup-magician { white-space: nowrap; }

.scene-stage .fetch-pup, .scene-stage .fetch-ball {
  position: absolute;
  bottom: 1.9rem;
  left: 50%;
  pointer-events: none;
}
.scene-stage .fetch-pup { width: clamp(2.2rem, 6svh, 4rem); margin-left: -1.4rem; }
.fetch-ball { width: .7rem; height: .7rem; border-radius: 50%; background: radial-gradient(at 32% 25%, #ff9e80, #cf4139 55%, #70282c); }
.corner-greeting { position: absolute; right: 0; bottom: 1.8rem; display: flex; align-items: center; max-width: 94vw; }
.corner-greeting p {
  box-sizing: border-box;
  width: clamp(9rem, 18vw, 11rem);
  margin: 0 -.15rem 0 0;
  padding: .45rem .7rem;
  border: 1px solid #c3b294;
  border-radius: .72rem .72rem .15rem .72rem;
  background: #fff4df;
  color: #19344a;
  font: 600 clamp(.94rem, 1.2vw, 1.02rem)/1.15 'Cormorant Garamond', Georgia, serif;
  text-wrap: pretty;
}
.scene-stage .corner-greeting img { width: clamp(5.5rem, 17svh, 10rem); }
.scene-stage [hidden] { display: none; }

/* A cream keyline keeps the blue script legible against the photograph. */
h1 .title, h1 .typed-title {
  color: #f4eee3;
  -webkit-text-stroke: .009em #f9e6c9;
  paint-order: stroke fill;
  text-shadow: 0 .035em .12em #071b33;
}

.scene-stage .fetch-pup, .scene-stage .fetch-ball { bottom: auto; margin-left: 0; }
