:root {
  --cream: #fffaf1;
  --porcelain: #ffffff;
  --sky: #86b5d7;
  --sky-deep: #4f86b3;
  --tan: #cda67b;
  --nest: #8f6e4e;
  --peach: #f4c8b9;
  --yellow: #f4df88;
  --ink: #24455d;
  --muted: #6d7c84;
  --line: #eadfce;
  --shadow: 0 24px 70px rgba(92, 73, 49, .16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(14px, 2.5vw, 26px) clamp(18px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(255, 250, 241, .72), rgba(255, 250, 241, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--sky-deep);
  text-shadow: 0 1px 12px rgba(255, 255, 255, .9);
  white-space: nowrap;
}

.brand img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 8px 24px rgba(79, 134, 179, .18);
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 26px);
  color: #385f76;
  font-size: 14px;
  font-weight: 900;
  text-shadow: 0 1px 14px rgba(255, 255, 255, .96);
}

nav a {
  position: relative;
  text-decoration: none;
  transition: color .2s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: right .25s ease;
}

nav a:hover {
  color: var(--sky-deep);
}

nav a:hover::after {
  right: 0;
}

.nav-order {
  color: var(--sky-deep);
}

.hero {
  position: relative;
  min-height: min(820px, calc(100svh - 32px));
  display: grid;
  align-items: center;
  padding: clamp(118px, 12vw, 148px) clamp(34px, 6vw, 72px) clamp(34px, 6vw, 72px);
  overflow: hidden;
  background: #fdf6eb;
}

.hero picture,
.hero picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero picture img {
  object-fit: cover;
  object-position: center;
  filter: saturate(1.02) brightness(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 250, 241, .95) 0%, rgba(255, 250, 241, .78) 34%, rgba(255, 250, 241, .18) 68%, rgba(255, 250, 241, .04) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(580px, 100%);
  padding-top: 24px;
}

.eyebrow,
.section-kicker,
.product-type {
  margin: 0 0 10px;
  color: var(--sky-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  color: var(--sky-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(56px, 9vw, 112px);
  font-weight: 500;
  line-height: .92;
}

.hero-title {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: clamp(14px, 2.1vw, 28px);
  width: min(1060px, calc(100vw - 72px));
  min-height: clamp(112px, 14vw, 166px);
  margin-bottom: 24px;
  color: var(--sky-deep);
  font-family: SignPainter, "Brush Script MT", Georgia, serif;
  font-size: clamp(56px, 8.4vw, 126px);
  font-weight: 600;
  line-height: .88;
  letter-spacing: 0;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, .72),
    0 14px 32px rgba(79, 134, 179, .14);
  white-space: nowrap;
}

.title-script {
  position: relative;
  display: inline-block;
  max-width: 100%;
  overflow: visible;
  padding: .04em .18em .12em .02em;
  clip-path: inset(0 100% 0 0);
  transform: rotate(-1.2deg);
  animation: writeTitle 2.35s cubic-bezier(.2, .72, .18, 1) both, titleBreath 6.8s ease-in-out 2.4s infinite;
}

.title-script::after {
  content: "";
  position: absolute;
  top: 8%;
  bottom: 10%;
  left: -16px;
  width: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(79, 134, 179, .38), rgba(255, 255, 255, .25));
  filter: blur(.2px);
  opacity: 0;
  animation: penGlide 2.35s cubic-bezier(.2, .72, .18, 1) both;
}

.egg-pop {
  position: relative;
  flex: 0 0 auto;
  width: clamp(96px, 10.8vw, 146px);
  aspect-ratio: 150 / 170;
  margin-bottom: .08em;
  transform-origin: bottom center;
  animation: eggPopIn .6s ease-out .05s both;
}

.egg-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.egg-ground {
  fill: rgba(143, 110, 78, .18);
  filter: blur(2px);
}

.egg-back {
  fill: url("#eggGlow");
  stroke: rgba(143, 110, 78, .36);
  stroke-width: 2.6;
  filter: url("#softEggShadow");
  transform-box: fill-box;
  transform-origin: 50% 100%;
  opacity: 1;
  animation: fullEggFade 2.8s ease-out both, eggWobble 2.8s ease-in-out both;
}

.egg-bottom,
.egg-top {
  fill: url("#eggGlow");
  stroke: url("#shellEdge");
  stroke-width: 3;
  stroke-linejoin: round;
  filter: url("#softEggShadow");
}

.egg-bottom {
  opacity: 0;
  animation: shellReveal 2.8s ease-out both;
}

.egg-top {
  opacity: 0;
  stroke: rgba(199, 150, 84, .72);
  stroke-width: 2.2;
  filter: none;
  transform-box: fill-box;
}

.egg-top-left {
  transform-origin: 88% 88%;
  animation: shellLeftOpen 2.8s ease-out both;
}

.egg-top-right {
  transform-origin: 12% 88%;
  animation: shellRightOpen 2.8s ease-out both;
}

.egg-speckles {
  fill: rgba(143, 110, 78, .25);
  opacity: 0;
  animation: shellReveal 2.8s ease-out both;
}

.egg-highlight {
  fill: none;
  stroke: rgba(255, 255, 255, .82);
  stroke-width: 5;
  stroke-linecap: round;
  opacity: 0;
  animation: shellReveal 2.8s ease-out both;
}

.egg-chick {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  opacity: 0;
  animation: chickPop 2.8s cubic-bezier(.22, 1.28, .32, 1) both, chickBob 4.2s ease-in-out 2.8s infinite;
}

.chick-body,
.chick-head {
  fill: url("#chickBlue");
  stroke: rgba(79, 134, 179, .18);
  stroke-width: 1.2;
}

.chick-wing {
  fill: rgba(238, 248, 252, .8);
  stroke: rgba(79, 134, 179, .12);
  transform-box: fill-box;
  transform-origin: 75% 25%;
  animation: wingFlutter 5.5s ease-in-out 2.8s infinite;
}

.chick-wing-right {
  transform-origin: 25% 25%;
  animation-delay: 3s;
}

.chick-tuft {
  fill: #6aa2c8;
  stroke: rgba(79, 134, 179, .12);
}

.chick-blush {
  fill: var(--peach);
  opacity: .55;
}

.chick-eye {
  fill: #24455d;
  stroke: none;
}

.chick-beak {
  fill: #e9b45f;
  stroke: rgba(143, 110, 78, .16);
  stroke-width: 1;
}

@keyframes writeTitle {
  0% { clip-path: inset(0 100% 0 0); opacity: .92; }
  100% { clip-path: inset(0 -20% 0 0); opacity: 1; }
}

@keyframes penGlide {
  0% { left: -18px; opacity: 0; }
  8%, 78% { opacity: .95; }
  100% { left: calc(100% + 6px); opacity: 0; }
}

@keyframes titleBreath {
  0%, 100% { transform: rotate(-1.2deg) translateY(0); }
  50% { transform: rotate(-.7deg) translateY(-3px); }
}

@keyframes eggPopIn {
  0% { opacity: 0; transform: scale(.85); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes eggWobble {
  0%, 22% { transform: rotate(0deg); }
  26% { transform: rotate(-4deg); }
  30% { transform: rotate(3deg); }
  34%, 100% { transform: rotate(0deg); }
}

@keyframes fullEggFade {
  0%, 32% { opacity: 1; }
  40%, 100% { opacity: 0; }
}

@keyframes shellReveal {
  0%, 30% { opacity: 0; }
  38%, 100% { opacity: 1; }
}

@keyframes shellLeftOpen {
  0%, 30% { opacity: 0; transform: translate(0, 0) rotate(0deg); }
  38% { opacity: 1; transform: translate(0, 0) rotate(0deg); }
  50% { opacity: 1; transform: translate(-4px, -2px) rotate(-6deg); }
  100% { opacity: 1; transform: translate(-26px, -16px) rotate(-40deg); }
}

@keyframes shellRightOpen {
  0%, 30% { opacity: 0; transform: translate(0, 0) rotate(0deg); }
  38% { opacity: 1; transform: translate(0, 0) rotate(0deg); }
  50% { opacity: 1; transform: translate(4px, -2px) rotate(6deg); }
  100% { opacity: 1; transform: translate(26px, -16px) rotate(40deg); }
}

@keyframes chickPop {
  0%, 36% { opacity: 0; transform: translateY(42px) scale(.55) rotate(0deg); }
  55% { opacity: 1; transform: translateY(-8px) scale(1.06) rotate(-3deg); }
  70% { opacity: 1; transform: translateY(2px) scale(.98) rotate(2deg); }
  82%, 100% { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
}

@keyframes chickBob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -4px; }
}

@keyframes wingFlutter {
  0%, 15%, 85%, 100% { rotate: 0deg; }
  30%, 60% { rotate: 8deg; }
  45% { rotate: -5deg; }
}

h2 {
  margin-bottom: 16px;
  color: #2b566f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 500;
  line-height: 1.02;
}

h3 {
  margin-bottom: 8px;
  color: #2f5364;
  font-size: 22px;
  line-height: 1.15;
}

.hero-text {
  max-width: 520px;
  margin-bottom: 28px;
  color: #415d67;
  font-size: clamp(18px, 2vw, 23px);
}

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

.button,
button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.button.primary,
button {
  color: #fff;
  background: var(--sky-deep);
  box-shadow: 0 12px 24px rgba(79, 134, 179, .22);
}

.button.primary:hover,
button:hover {
  background: #3d708f;
  box-shadow: 0 16px 30px rgba(79, 134, 179, .3);
  transform: translateY(-2px);
}

.button.secondary {
  color: var(--sky-deep);
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(79, 134, 179, .22);
}

.button.secondary:hover {
  background: #fff;
  border-color: rgba(79, 134, 179, .4);
  transform: translateY(-2px);
}

.button:active,
button:active {
  transform: translateY(0);
}

.band,
.collection,
.care,
.order {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.intro,
.custom {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #fff4e6 58%, #f0f7fb 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro p:last-child,
.custom-copy p {
  color: var(--muted);
  font-size: 18px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product {
  overflow: hidden;
  background: var(--porcelain);
  border: 1px solid rgba(205, 166, 123, .28);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}

.product:hover {
  box-shadow: 0 28px 60px rgba(92, 73, 49, .22);
  transform: translateY(-4px);
}

.product-art {
  min-height: 190px;
  background-image: url("/assets/hero-crochet.webp");
  background-size: 420%;
  background-repeat: no-repeat;
  transition: background-size .4s ease;
}

.product:hover .product-art {
  background-size: 450%;
}

.product-art.blanket {
  background-position: 18% 58%;
}

.product-art.socks {
  background-position: 45% 57%;
}

.product-art.hoodie {
  background-position: 68% 52%;
}

.product-art.set {
  background-position: 30% 38%;
}

.product-copy {
  padding: 22px;
}

.product-copy p:not(.product-type) {
  color: var(--muted);
}

.product-copy span {
  display: block;
  margin-top: 18px;
  color: var(--nest);
  font-size: 13px;
  font-weight: 900;
}

.swatches {
  display: grid;
  grid-template-columns: repeat(5, minmax(86px, 1fr));
  gap: 12px;
}

.swatches span {
  min-height: 120px;
  display: flex;
  align-items: end;
  justify-content: center;
  padding: 14px 10px;
  color: #365664;
  background: var(--swatch);
  border: 1px solid rgba(143, 110, 78, .16);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 14px 32px rgba(92, 73, 49, .1);
  transition: transform .2s ease, box-shadow .2s ease;
}

.swatches span:hover {
  box-shadow: 0 18px 36px rgba(92, 73, 49, .18);
  transform: translateY(-3px);
}

.care-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.care-grid div {
  padding: 26px;
  background: rgba(255, 255, 255, .7);
  border-top: 4px solid var(--sky);
  border-radius: 8px;
}

.care-grid p {
  color: var(--muted);
}

.order {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  background: #f6ead8;
}

.order form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #3d5c68;
  font-size: 13px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(143, 110, 78, .22);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, .82);
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--sky-deep);
  box-shadow: 0 0 0 3px rgba(79, 134, 179, .16);
}

textarea {
  resize: vertical;
}

.site-footer {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 28px clamp(18px, 5vw, 72px);
  color: #4b6874;
  background: #fffaf1;
  border-top: 1px solid var(--line);
}

.site-footer img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
}

.site-footer p {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }

  .hero {
    min-height: 760px;
    align-items: end;
  }

  .hero-title {
    width: min(760px, 100%);
    min-height: 138px;
    font-size: clamp(50px, 8.2vw, 92px);
  }

  .hero::after {
    background: linear-gradient(0deg, rgba(255, 250, 241, .97) 0%, rgba(255, 250, 241, .82) 42%, rgba(255, 250, 241, .1) 100%);
  }

  .intro,
  .custom,
  .order {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 640px) {
  .site-header {
    padding: 10px 14px;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  .brand span {
    font-size: 18px;
  }

  nav {
    gap: 16px;
    font-size: 13px;
  }

  .hero {
    min-height: 720px;
    padding: 128px 18px 42px;
  }

  .hero-title {
    width: 100%;
    min-height: 98px;
    gap: 8px;
    font-size: clamp(42px, 13vw, 52px);
  }

  .egg-pop {
    width: 62px;
    margin-bottom: .23em;
  }

  .hero picture img {
    object-position: 56% 25%;
  }

  .hero-actions {
    display: grid;
  }

  .button,
  button {
    width: 100%;
  }

  .band,
  .collection,
  .care,
  .order {
    padding: 46px 18px;
  }

  .product-grid,
  .swatches {
    grid-template-columns: 1fr;
  }

  .swatches span {
    min-height: 76px;
  }

  .site-footer {
    align-items: flex-start;
  }
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.product-grid .reveal:nth-child(2) { transition-delay: .08s; }
.product-grid .reveal:nth-child(3) { transition-delay: .16s; }
.product-grid .reveal:nth-child(4) { transition-delay: .24s; }
.care-grid .reveal:nth-child(2) { transition-delay: .08s; }
.care-grid .reveal:nth-child(3) { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .egg-chick,
  .egg-top,
  .egg-bottom,
  .egg-back,
  .egg-speckles,
  .egg-highlight {
    opacity: 1;
    transform: none;
  }

  .egg-back {
    display: none;
  }

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