:root {
  --paper: #fff7ea;
  --ink: #472822;
  --muted: #73574e;
  --rose: 343 92% 58%;
  --blush: 352 94% 72%;
  --coral: 8 92% 58%;
  --apricot: 24 98% 62%;
  --gold: 45 98% 54%;
  --honey: 36 95% 50%;
  --peach: 20 98% 68%;
  --lavender: 266 62% 66%;
  --turquoise: 176 62% 48%;
  --sky: 202 90% 66%;
  --diffusion: cubic-bezier(0.16, 0.72, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  text-rendering: optimizeLegibility;
}

body::selection {
  color: #3f211c;
  background: hsl(var(--gold) / 0.42);
}

.hero {
  position: relative;
  display: grid;
  height: 100svh;
  min-height: 100svh;
  padding: clamp(1.5rem, 3vw, 3rem);
  overflow: hidden;
  isolation: isolate;
  place-items: center;
  background:
    radial-gradient(circle at 50% -16%, rgba(255, 244, 186, 0.72) 0 10%, transparent 42%),
    linear-gradient(145deg, #fffaf1 0%, #fff1d7 52%, #fff8ee 100%);
}

.hero::before {
  position: absolute;
  inset: -18%;
  z-index: 0;
  content: "";
  background:
    radial-gradient(ellipse at 48% 4%, rgba(255, 255, 224, 0.6), transparent 34%),
    conic-gradient(from 16deg at 50% 12%, transparent, rgba(255, 222, 121, 0.07), transparent 28%);
  animation: light-breathe 24s ease-in-out infinite alternate;
}

.paper-texture,
.paper-texture::before,
.paper-texture::after,
.sun-wash,
.bloom-field,
.glass-fragments {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.paper-texture {
  z-index: 1;
  opacity: 0.72;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(108, 75, 46, 0.08) 0 0.055rem, transparent 0.09rem),
    radial-gradient(circle at 63% 74%, rgba(153, 99, 62, 0.07) 0 0.045rem, transparent 0.09rem),
    repeating-linear-gradient(2deg, rgba(102, 76, 48, 0.034) 0 0.055rem, transparent 0.055rem 0.3rem),
    repeating-linear-gradient(91deg, rgba(255, 255, 255, 0.48) 0 0.06rem, transparent 0.06rem 0.34rem);
  background-size: 1rem 1rem, 1.45rem 1.45rem, 100% 100%, 100% 100%;
}

.paper-texture::before {
  content: "";
  opacity: 0.42;
  background:
    radial-gradient(circle at 12% 18%, rgba(122, 70, 42, 0.09) 0 0.035rem, transparent 0.08rem),
    radial-gradient(circle at 72% 44%, rgba(122, 70, 42, 0.07) 0 0.03rem, transparent 0.08rem),
    radial-gradient(circle at 36% 82%, rgba(255, 255, 255, 0.54) 0 0.05rem, transparent 0.09rem);
  background-size: 0.72rem 0.72rem, 1.1rem 1.1rem, 0.88rem 0.88rem;
}

.paper-texture::after {
  content: "";
  opacity: 0.35;
  background:
    linear-gradient(90deg, rgba(96, 70, 42, 0.045), transparent 18% 82%, rgba(96, 70, 42, 0.03)),
    repeating-linear-gradient(0deg, transparent 0 0.7rem, rgba(125, 91, 57, 0.028) 0.7rem 0.76rem);
}

.sun-wash {
  z-index: 2;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 254, 220, 0.84), rgba(255, 216, 120, 0.22) 25%, transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 48%);
  animation: shimmer 18s ease-in-out infinite alternate;
}

.bloom-field {
  z-index: 3;
  overflow: hidden;
}

.bloom {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  aspect-ratio: 1;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) rotate(var(--rotation)) scale(0.02);
  transform-origin: 50% 50%;
  mix-blend-mode: multiply;
  animation: bloom-diffuse var(--duration) var(--diffusion) infinite;
  animation-delay: var(--delay);
  animation-fill-mode: both;
  will-change: transform, opacity, border-radius;
}

.bloom,
.bloom__wash,
.bloom__edge,
.bloom__grain,
.bloom__lobe,
.bloom__core {
  border-radius: var(--shape-a);
}

.bloom__wash,
.bloom__edge,
.bloom__grain,
.bloom__core {
  position: absolute;
  inset: 0;
}

.bloom__wash {
  background:
    radial-gradient(ellipse at var(--cx) var(--cy), hsl(var(--hue) / 0.88) 0 4%, hsl(var(--hue) / 0.54) 12%, hsl(var(--edge) / 0.22) 42%, transparent 72%),
    radial-gradient(ellipse at calc(var(--cx) + 10%) calc(var(--cy) + 4%), hsl(var(--accent) / 0.32), transparent 45%),
    radial-gradient(ellipse at calc(var(--cx) - 13%) calc(var(--cy) + 14%), hsl(var(--hue) / 0.26), transparent 50%);
  animation: wash-feather var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
  animation-fill-mode: both;
}

.bloom__edge {
  inset: -4%;
  opacity: 0.74;
  background:
    radial-gradient(ellipse at 50% 48%, transparent 0 38%, hsl(var(--edge) / 0.24) 53%, transparent 76%),
    radial-gradient(ellipse at 34% 64%, hsl(var(--hue) / 0.24), transparent 42%),
    radial-gradient(ellipse at 72% 35%, hsl(var(--accent) / 0.2), transparent 44%);
  animation: edge-feather var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
  animation-fill-mode: both;
}

.bloom__grain {
  inset: 3%;
  opacity: 0;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(circle at 18% 30%, hsl(var(--hue) / 0.52) 0 0.05rem, transparent 0.11rem),
    radial-gradient(circle at 58% 46%, hsl(var(--edge) / 0.38) 0 0.045rem, transparent 0.1rem),
    radial-gradient(circle at 78% 66%, hsl(var(--hue) / 0.3) 0 0.05rem, transparent 0.1rem),
    radial-gradient(circle at 39% 76%, hsl(var(--accent) / 0.26) 0 0.04rem, transparent 0.09rem);
  background-size: 1rem 0.9rem, 1.2rem 1rem, 0.82rem 1rem, 1.1rem 0.95rem;
  animation: pigment-grain var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
  animation-fill-mode: both;
}

.bloom__lobe {
  position: absolute;
  left: var(--lobe-x);
  top: var(--lobe-y);
  width: var(--lobe-size);
  aspect-ratio: 1 / 0.72;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) rotate(var(--lobe-rot)) scale(0.08);
  background:
    radial-gradient(ellipse at 48% 48%, hsl(var(--hue) / 0.55), hsl(var(--edge) / 0.22) 42%, transparent 72%),
    radial-gradient(ellipse at 62% 38%, hsl(var(--accent) / 0.26), transparent 54%);
  animation: lobe-diffuse var(--duration) var(--diffusion) infinite;
  animation-delay: calc(var(--delay) + var(--lobe-delay));
  animation-fill-mode: both;
}

.bloom__core {
  left: var(--cx);
  top: var(--cy);
  width: 9.5%;
  height: 11%;
  inset: auto;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) rotate(var(--rotation)) scale(0.22);
  background:
    radial-gradient(circle, hsl(var(--hue) / 1) 0 18%, hsl(var(--hue) / 0.82) 30%, hsl(var(--edge) / 0.42) 56%, transparent 78%);
  box-shadow: 0 0 0.8rem hsl(var(--hue) / 0.28);
  filter: saturate(1.42);
  animation: pigment-heart var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
  animation-fill-mode: both;
}

.glass-fragments {
  z-index: 4;
  display: none;
}

.fragment {
  position: absolute;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.07)),
    linear-gradient(var(--tilt), hsl(var(--glass-a) / 0.48), hsl(var(--glass-b) / 0.24));
  box-shadow:
    inset 0 0 1.6rem rgba(255, 255, 255, 0.44),
    inset 0 0 0.16rem rgba(255, 255, 255, 0.66);
  opacity: 0.78;
}

.fragment-rose {
  --glass-a: var(--rose);
  --glass-b: var(--peach);
  --tilt: 148deg;
  width: min(30vw, 21rem);
  height: min(33vw, 24rem);
  left: 10%;
  top: 19%;
  border-radius: 44% 56% 67% 33% / 54% 37% 63% 46%;
  transform: rotate(-18deg);
}

.fragment-honey {
  --glass-a: var(--gold);
  --glass-b: var(--coral);
  --tilt: 32deg;
  width: min(24vw, 17rem);
  height: min(22vw, 15rem);
  right: 12%;
  top: 14%;
  border-radius: 70% 30% 48% 52% / 36% 61% 39% 64%;
  transform: rotate(16deg);
}

.fragment-sky {
  --glass-a: var(--sky);
  --glass-b: var(--turquoise);
  --tilt: 207deg;
  width: min(28vw, 19rem);
  height: min(30vw, 21rem);
  right: 6%;
  bottom: 12%;
  border-radius: 38% 62% 31% 69% / 59% 35% 65% 41%;
  transform: rotate(-9deg);
}

.fragment-lavender {
  --glass-a: var(--lavender);
  --glass-b: var(--rose);
  --tilt: 87deg;
  width: min(21vw, 15rem);
  height: min(18vw, 13rem);
  left: 16%;
  bottom: 14%;
  border-radius: 62% 38% 56% 44% / 34% 65% 35% 66%;
  transform: rotate(11deg);
}

.hero-content {
  position: relative;
  z-index: 6;
  display: grid;
  width: min(100%, 44rem);
  padding: clamp(1.8rem, 4.7vw, 4rem) clamp(1.35rem, 4.5vw, 3.8rem);
  text-align: center;
  place-items: center;
}

.hero-content::before {
  position: absolute;
  inset: clamp(0.3rem, 1vw, 0.7rem);
  z-index: -1;
  content: "";
  border-radius: 54% 46% 50% 50% / 43% 58% 42% 57%;
  background:
    radial-gradient(ellipse at 50% 24%, rgba(255, 253, 236, 0.97), rgba(255, 250, 239, 0.76) 42%, rgba(255, 242, 220, 0.5) 100%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(255, 225, 184, 0.26));
  box-shadow:
    inset 0 0 3rem rgba(255, 255, 255, 0.76),
    inset 0 0 0 1px rgba(255, 255, 255, 0.48);
}

.hero-content::after {
  position: absolute;
  inset: 1.05rem 0.55rem;
  z-index: -2;
  content: "";
  border-radius: 63% 37% 57% 43% / 38% 56% 44% 62%;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(255, 255, 238, 0.34), transparent 48%),
    radial-gradient(ellipse at 52% 72%, rgba(255, 218, 166, 0.16), transparent 56%);
}

.eyebrow {
  margin: 0 0 1rem;
  color: #855044;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: clamp(0.77rem, 1.8vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 11.5ch;
  margin: 0;
  color: #43231f;
  font-size: clamp(2.85rem, 7.4vw, 5.55rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
}

.intro {
  max-width: 37rem;
  margin: clamp(1.25rem, 3vw, 1.7rem) 0 0;
  color: var(--muted);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: clamp(1.02rem, 2.1vw, 1.22rem);
  line-height: 1.78;
}

.cta {
  position: relative;
  display: inline-grid;
  min-height: 3.35rem;
  margin-top: clamp(1.8rem, 3.8vw, 2.45rem);
  padding: 0 1.85rem;
  overflow: hidden;
  color: #482920;
  cursor: pointer;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  border: 1px solid rgba(132, 74, 42, 0.18);
  border-radius: 999rem;
  place-items: center;
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.9), transparent 32%),
    linear-gradient(135deg, rgba(255, 203, 108, 0.94), rgba(255, 135, 127, 0.74));
  box-shadow:
    inset 0 0 1.25rem rgba(255, 255, 255, 0.48),
    0 0.7rem 2rem rgba(187, 91, 54, 0.18);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    filter 220ms ease;
}

.cta::before {
  position: absolute;
  inset: -60% -30%;
  content: "";
  background: linear-gradient(105deg, transparent 34%, rgba(255, 255, 255, 0.56), transparent 66%);
  transform: translateX(-42%) rotate(12deg);
  animation: button-light 7.5s ease-in-out infinite;
}

.cta span {
  position: relative;
}

.cta:hover {
  transform: translateY(-0.12rem);
  filter: saturate(1.08);
  box-shadow:
    inset 0 0 1.25rem rgba(255, 255, 255, 0.54),
    0 0.8rem 2.25rem rgba(187, 91, 54, 0.22);
}

.cta:focus-visible {
  outline: 3px solid rgba(46, 138, 146, 0.48);
  outline-offset: 0.35rem;
}

@keyframes bloom-diffuse {
  0% {
    opacity: 0;
    border-radius: var(--shape-a);
    transform: translate3d(-50%, -50%, 0) rotate(var(--rotation)) scale(0.025);
  }

  6% {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) rotate(calc(var(--rotation) - 1deg)) scale(0.075);
  }

  21% {
    opacity: var(--opacity-rich);
    border-radius: var(--shape-b);
    transform: translate3d(-50%, -50%, 0) rotate(calc(var(--rotation) + 1deg)) scale(0.38);
  }

  52% {
    opacity: var(--opacity);
    border-radius: var(--shape-c);
    transform: translate3d(-50%, -50%, 0) rotate(calc(var(--rotation) - 2deg)) scale(0.92);
  }

  82% {
    opacity: var(--opacity-soft);
    border-radius: var(--shape-b);
    transform: translate3d(-50%, -50%, 0) rotate(calc(var(--rotation) + 2deg)) scale(1);
  }

  100% {
    opacity: 0;
    border-radius: var(--shape-c);
    transform: translate3d(-50%, -50%, 0) rotate(calc(var(--rotation) + 3deg)) scale(1.04);
  }
}

@keyframes wash-feather {
  0% {
    opacity: 0;
    transform: scale(0.24) rotate(-2deg);
  }

  14% {
    opacity: 0.98;
  }

  52% {
    opacity: 0.86;
    border-radius: var(--shape-b);
    transform: scale(0.98) rotate(2deg);
  }

  100% {
    opacity: 0;
    border-radius: var(--shape-c);
    transform: scale(1.03) rotate(4deg);
  }
}

@keyframes edge-feather {
  0% {
    opacity: 0;
    transform: scale(0.2) rotate(0deg);
  }

  24% {
    opacity: 0.64;
  }

  66% {
    opacity: 0.72;
    border-radius: var(--shape-c);
    transform: scale(1) rotate(4deg);
  }

  100% {
    opacity: 0;
    transform: scale(1.04) rotate(7deg);
  }
}

@keyframes pigment-grain {
  0%,
  12% {
    opacity: 0;
    transform: scale(0.38);
  }

  42% {
    opacity: 0.33;
  }

  78% {
    opacity: 0.18;
    transform: scale(1) rotate(3deg);
  }

  100% {
    opacity: 0;
    transform: scale(1.04) rotate(5deg);
  }
}

@keyframes lobe-diffuse {
  0%,
  8% {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) rotate(var(--lobe-rot)) scale(0.08);
  }

  28% {
    opacity: 0.62;
    transform: translate3d(-50%, -50%, 0) rotate(calc(var(--lobe-rot) + 3deg)) scale(0.44);
  }

  68% {
    opacity: 0.44;
    transform: translate3d(-50%, -50%, 0) rotate(calc(var(--lobe-rot) + 8deg)) scale(0.96);
  }

  100% {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) rotate(calc(var(--lobe-rot) + 12deg)) scale(1);
  }
}

@keyframes pigment-heart {
  0% {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) rotate(var(--rotation)) scale(0.15);
  }

  6% {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) rotate(var(--rotation)) scale(1);
  }

  42% {
    opacity: 0.86;
    transform: translate3d(-50%, -50%, 0) rotate(calc(var(--rotation) + 5deg)) scale(0.82);
  }

  78% {
    opacity: 0.44;
    transform: translate3d(-50%, -50%, 0) rotate(calc(var(--rotation) + 8deg)) scale(0.58);
  }

  100% {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) rotate(calc(var(--rotation) + 10deg)) scale(0.34);
  }
}

@keyframes light-breathe {
  from {
    opacity: 0.72;
    transform: translateY(-0.6rem) scale(1);
  }

  to {
    opacity: 0.98;
    transform: translateY(0.4rem) scale(1.02);
  }
}

@keyframes shimmer {
  from {
    opacity: 0.78;
    transform: translateY(-0.3rem);
  }

  to {
    opacity: 0.96;
    transform: translateY(0.35rem);
  }
}

@keyframes button-light {
  0%,
  58% {
    transform: translateX(-42%) rotate(12deg);
  }

  100% {
    transform: translateX(52%) rotate(12deg);
  }
}

@media (max-width: 760px) {
  .hero {
    align-items: center;
    height: auto;
    min-height: 100svh;
    padding: 1.1rem;
  }

  .hero-content {
    padding: clamp(2.4rem, 12vw, 4.4rem) 1.2rem;
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(3.15rem, 16vw, 4.7rem);
  }

  .intro {
    font-size: 1rem;
    line-height: 1.7;
  }

  .fragment-rose {
    left: -14%;
    top: 12%;
    width: 16rem;
    height: 19rem;
  }

  .fragment-honey {
    right: -12%;
    top: 8%;
    width: 13rem;
    height: 12rem;
  }

  .fragment-sky {
    right: -16%;
    bottom: 12%;
    width: 15rem;
    height: 16rem;
  }

  .fragment-lavender {
    left: -8%;
    bottom: 9%;
    width: 12rem;
    height: 10rem;
  }
}

@media (max-width: 430px) {
  .hero {
    padding: 0.9rem;
  }

  .eyebrow {
    font-size: 0.72rem;
  }

  h1 {
    font-size: clamp(2.65rem, 15vw, 3.65rem);
  }

  .hero-content::before {
    inset: 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .bloom {
    opacity: 0.52;
    border-radius: var(--shape-c);
    transform: translate3d(-50%, -50%, 0) rotate(var(--rotation)) scale(0.82);
  }

  .bloom__wash {
    opacity: 0.82;
    border-radius: var(--shape-c);
    transform: scale(0.92);
  }

  .bloom__edge,
  .bloom__grain,
  .bloom__lobe {
    opacity: 0.22;
    transform: scale(0.9);
  }

  .bloom__core {
    opacity: 0.82;
    transform: translate3d(-50%, -50%, 0) rotate(var(--rotation)) scale(0.76);
  }
}
