:root {
  --hero-header-height: 76px;
  scroll-padding-block-start: calc(var(--hero-header-height) + 12px);
}

.site-intro { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .site-intro-active .site-intro {
    position: fixed;
    inset: 0;
    z-index: 1001;
    display: grid;
    place-items: center;
    background: #fffbf9;
    animation: site-intro-reveal 1.16s linear both;
  }
  .site-intro-lockup { display: grid; justify-items: center; gap: 14px; }
  .site-intro-emblem {
    position: relative;
    display: grid;
    width: clamp(88px, 10vw, 128px);
    aspect-ratio: 1;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(140deg, #ffe4d8, #fa876b);
    animation: site-intro-mark .68s cubic-bezier(.19,.78,.24,1) both;
  }
  .site-intro-emblem::before {
    position: absolute;
    inset: -5px;
    border: 1px solid #fa876b;
    border-radius: inherit;
    content: '';
    pointer-events: none;
    animation: site-intro-ring .63s .11s ease-out both;
  }
  .site-intro-emblem img { width: 64%; height: auto; }
  .site-intro-wordmark {
    color: #25201e;
    font-size: clamp(18px, 2.2vw, 23px);
    font-weight: 700;
    letter-spacing: -.025em;
    animation: site-intro-wordmark .38s .15s ease-out both;
  }
  .site-intro-wordmark span { font-weight: 450; }

  @keyframes site-intro-mark {
    0% { opacity: .35; transform: scale(.58) rotate(-16deg); }
    65% { opacity: 1; transform: scale(1.045) rotate(2deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
  }
  @keyframes site-intro-wordmark {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes site-intro-ring {
    from { opacity: .6; transform: scale(.9); }
    to { opacity: 0; transform: scale(1.24); }
  }
  @keyframes site-intro-reveal {
    0%, 60% { opacity: 1; visibility: visible; }
    100% { opacity: 0; visibility: hidden; }
  }
}

.header {
  --header-float-top: 7px;
  --header-float-bottom: clamp(11px, 1.2vw, 18px);
  --header-float-edge: max(10px, calc((100% - var(--container-max)) / 2 - 24px));
  position: sticky;
  inset-block-start: 0;
  z-index: 10;
  pointer-events: none;
}
.header::before {
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-bottom-color: #eeeae8;
  background: #fff;
  pointer-events: auto;
  content: '';
}
.header[data-scrolled]::before {
  inset: var(--header-float-top) var(--header-float-edge) var(--header-float-bottom);
  border-color: #eee3de;
  border-radius: 14px;
  background: #fffcfa;
  box-shadow: 0 10px 30px -13px #48281f66, 0 2px 5px #48281f0a;
}
.header-inner {
  position: relative;
  min-height: var(--hero-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header-inner a { pointer-events: auto; }
.header[data-scrolled] .header-inner {
  transform: translateY(calc((var(--header-float-top) - var(--header-float-bottom)) / 2));
}
@media (prefers-reduced-motion: no-preference) {
  .header { --header-ease: .32s cubic-bezier(.2,.72,.24,1); }
  .header::before {
    transition: inset var(--header-ease), border-radius var(--header-ease),
      border-color .24s ease, box-shadow .24s ease, background-color .24s ease;
  }
  .header-inner { transition: transform var(--header-ease); }
}
.brand {
  flex-shrink: 0;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -.4px;
}
.header .header-cta {
  min-height: 40px;
  min-width: 0;
  padding: 9px 19px;
  border-color: #d1cac7;
  color: #292524;
  font-size: 14px;
}
.header .header-cta:hover {
  background: #f9f3f0;
  border-color: #ac9c96;
}
.header .header-cta:active { background: #f4e8e3; }

.hero {
  container-type: inline-size;
  background: #fff;
}
.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: max(580px, calc(100svh - var(--hero-header-height)), min(51cqw, 1020px));
}
.hero-copy {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  min-width: 0;
  max-width: 540px;
  margin-inline-start: clamp(36px, 5.2cqw, 76px);
  margin-inline-end: max(var(--gutter), calc((100cqw - var(--container-max)) / 2));
  padding-block: clamp(40px, 6svh, 72px);
}
.hero-copy h1 {
  font-size: clamp(44px, 3.6cqw, 52px);
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: -.028em;
  text-wrap: pretty;
}
.hero-ai {
  white-space: nowrap;
  font-weight: 450;
}
.ai-badge {
  display: inline-block;
  width: 1.42em;
  height: auto;
  vertical-align: -.11em;
}
.hero-copy p {
  color: #4e4a48;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.58;
  margin-block: 28px 40px;
}
.hero .hero-cta {
  width: min(220px, 100%);
  min-width: 0;
  min-height: 56px;
  padding: 13px 20px;
}

.hero-art {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  position: relative;
  overflow: clip;
  background: #efefef;
  container-type: size;
}
.hero-art .hero-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-motion {
  position: absolute;
  inset: 50% auto auto 50%;
  /* Same centered 9:10 cover geometry as the background image. */
  width: max(100cqw, 90cqh);
  aspect-ratio: 9 / 10;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero-sprite { position: absolute; }
.hero-sprite svg { display: block; width: 100%; height: 100%; }
.hero-sprite--pin { transform: scale(0); }
.hero-art .hero-symbol {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44%;
  height: auto;
  aspect-ratio: 1;
}

@media (min-width: 768px) and (max-width: 1199px) {
  :root { --hero-header-height: 68px; }

  .hero-grid { min-height: clamp(420px, 57cqw, 645px); }
  .hero-copy {
    margin-inline-start: clamp(24px, 4cqw, 46px);
    margin-inline-end: var(--gutter);
    padding-block: 38px;
  }
  .hero-copy h1 { font-size: clamp(35px, 4.25cqw, 44px); }
  .hero-copy p { font-size: 16px; margin-block: 24px 36px; }
}
@media (max-width: 767px) {
  :root { --hero-header-height: 65px; --gutter: clamp(20px, 5.65vw, 24px); }

  .header-inner { gap: 12px; }
  .brand { font-size: 19px; }
  .header .header-cta { font-size: 13px; min-height: 38px; padding-inline: 13px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 30px;
    padding: 33px var(--gutter) 0;
  }
  .hero-copy {
    grid-column: 1;
    grid-row: 1;
    max-width: 540px;
    margin-inline: 0;
    padding-block: 0;
  }
  .hero-copy h1 { font-size: clamp(30px, 8.5cqw, 36px); }
  .hero-copy p { font-size: 16px; margin-block: 24px 36px; }
  .hero-art {
    grid-column: 1;
    grid-row: 2;
    aspect-ratio: 9 / 10;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-sprite { animation: var(--sprite-motion) 6s linear infinite paused; }
  .hero-motion[data-playing] .hero-sprite { animation-play-state: running; }
  .hero-sprite--bag { --sprite-motion: hero-bag; }
  .hero-sprite--heart { --sprite-motion: hero-heart; }
  .hero-sprite--pin { --sprite-motion: hero-pin; }
  .hero-sprite--upper-knob { --sprite-motion: hero-upper-knob; }
  .hero-sprite--lower-knob { --sprite-motion: hero-lower-knob; }

  /* Original SVG keyframes, expressed as transforms of individual layers. */
  @keyframes hero-bag {
    0%, 91.666667%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(0deg); animation-timing-function: cubic-bezier(.55,.085,.68,.53); }
    50% { transform: rotate(5deg); animation-timing-function: cubic-bezier(.55,.085,.68,.53); }
  }
  @keyframes hero-heart {
    0%, 61.666667%, 100% { transform: scale(1); }
    36.666667% { transform: scale(1); animation-timing-function: cubic-bezier(.55,.085,.68,.53); }
    46.666667% { transform: scale(1.2); animation-timing-function: cubic-bezier(.55,.085,.68,.53); }
  }
  @keyframes hero-pin {
    0%, 80%, 100% { transform: scale(0); }
    18.333333% { transform: scale(0); animation-timing-function: cubic-bezier(.55,.085,.68,.53); }
    26.666667% { transform: scale(1); animation-timing-function: cubic-bezier(.55,.085,.68,.53); }
    71.666667% { transform: scale(1); }
  }
  @keyframes hero-upper-knob {
    0%, 80%, 100% { transform: translateX(0); }
    16.666667% { transform: translateX(0); animation-timing-function: cubic-bezier(.645,.045,.355,1); }
    33.333333%, 65% { transform: translateX(283.2%); }
  }
  @keyframes hero-lower-knob {
    0%, 81.666667%, 100% { transform: translateX(0); }
    30% { transform: translateX(0); animation-timing-function: cubic-bezier(.645,.045,.355,1); }
    46.666667%, 65% { transform: translateX(-269.347059%); }
  }

  .hero-copy h1, .hero-copy p, .hero-copy .button {
    animation: hero-copy-in .48s cubic-bezier(.2,.7,.25,1) calc(var(--intro-delay, 0s) + var(--copy-stagger, 0s)) both;
  }
  .site-intro-active .hero-copy { --intro-delay: .67s; }
  .hero-copy p { --copy-stagger: .07s; }
  .hero-copy .button { --copy-stagger: .14s; }
  .hero-symbol { transition: scale .28s ease, rotate .28s ease; }
  @keyframes hero-copy-in {
    from { opacity: .62; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero-art:hover .hero-symbol { scale: 1.025; rotate: -2deg; }
}
