/* ================= HERO ================= */
.hero {
  position: relative;
  padding-top: 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #f6efe2;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.55) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-6);
  padding: var(--space-9) 0 var(--space-8);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-hero-title);
  color: var(--color-brand-title);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero__tagline {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: var(--fs-hero-tagline);
  color: var(--color-brand-tagline);
  line-height: 1.4;
  letter-spacing: 0.02em;
  white-space: pre-line;
  margin-top: calc(var(--space-6) * -1 + var(--space-2));
}

/* Fixed "footprint" sized to the original 486px box (before the later
   150% bump to 729px) -- HARO/tagline above and .hero__cta-group beside
   it are laid out against THIS footprint, not the actual --box-width, so
   they stay put no matter how big the box itself gets. The box is
   absolutely centered inside and allowed to overflow visually (see
   .box-interaction below). */
.hero__visual-wrap {
  position: relative;
  width: 486px;
  aspect-ratio: 690 / 638;
  margin-top: -74px;
  overflow: visible;
}

@media (max-width: 1024px) {
  .hero__visual-wrap {
    width: 307px;
    margin-top: var(--space-4);
  }
}

/* Figma moved this from centered-below-the-box to beside it (right side,
   vertically centered on the box) -- desktop only; below the 1024px
   breakpoint it drops back to normal flow, stacked below the box, since
   there's no room to the side once the box shrinks to fit a narrow
   viewport. */
.hero__cta-group {
  display: grid;
  justify-items: center;
  align-items: center;
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: var(--space-7);
}

.hero__cta-group > * {
  grid-area: 1 / 1;
}

@media (max-width: 1024px) {
  .hero__cta-group {
    position: static;
    transform: none;
    margin-left: 0;
    margin-top: var(--space-4);
  }
}

@media (max-width: 599px) {
  .hero__inner {
    gap: var(--space-4);
    padding: var(--space-7) 0 var(--space-6);
  }

  .hero__visual-wrap {
    width: 243px;
  }
}

/* ================= ABOUT ================= */
.about .container {
  position: relative;
}

/* Decorative paw prints -- Figma now places 4 individually-rotated single
   paws (reusing 2 shapes) instead of one fixed cluster image. Each one's
   left/top below is its CENTER point, ported directly from Figma's node
   coordinates (162:313-316, relative to this 1200px-wide .container, with
   an 80px section padding-top already subtracted out). translate(-50%,-50%)
   centers on that point, then rotate() applies Figma's per-paw tilt. */
.about__paws {
  pointer-events: none;
}

.about__paws-item {
  position: absolute;
}

/* Base rules set the PERMANENT centered+rotated transform, so paws land
   correctly even without JS/reveal (prefers-reduced-motion skips arming
   html.reveal-armed entirely). The reveal-armed rules further down only
   override this transform temporarily, for the pre-reveal slide-up. */
/* Whole cluster nudged 100px right of Figma's raw coordinates -- Figma's
   own numbers have paw--4 dipping ~40px into the heading's first line;
   shifting the group right (instead of up) clears the text while keeping
   the cluster's relative arrangement intact. */
.about__paws-item--1 {
  left: 1223.08px;
  top: 34.69px;
  width: 72.816px;
  height: 62.475px;
  transform: translate(-50%, -50%) rotate(17.39deg);
}

.about__paws-item--2 {
  left: 1079.6px;
  top: 129.63px;
  width: 72.816px;
  height: 62.475px;
  transform: translate(-50%, -50%) rotate(-2.23deg);
}

.about__paws-item--3 {
  left: 1209.52px;
  top: 206.7px;
  width: 74.88px;
  height: 64.246px;
  transform: translate(-50%, -50%) rotate(24.36deg);
}

.about__paws-item--4 {
  left: 1107.08px;
  top: 293.05px;
  width: 74.88px;
  height: 64.246px;
  transform: translate(-50%, -50%) rotate(-3.02deg);
}

/* Pure fade-in, decoupled from the generic [data-reveal] system (see
   js/scroll-animations.js's dedicated pawObserver): triggers only once the
   whole About section is fully in view, then all 4 get [data-paw-visible]
   at once and this per-item transition-delay staggers them bottom-first
   (item--4 sits lowest, item--1 highest -- see the .about__paws-item--N
   position rules above). No transform/movement, just opacity. */
html.reveal-armed .about__paws-item {
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}
html.reveal-armed .about__paws-item[data-paw-visible] {
  opacity: 1;
}
html.reveal-armed .about__paws-item--4 {
  transition-delay: 0s;
}
html.reveal-armed .about__paws-item--3 {
  transition-delay: 0.15s;
}
html.reveal-armed .about__paws-item--2 {
  transition-delay: 0.3s;
}
html.reveal-armed .about__paws-item--1 {
  transition-delay: 0.45s;
}

.about__row {
  display: flex;
  align-items: center;
  /* Figma now lays out image/text as two 544px squares in a 1200px row
     with justify-between (1200-544-544=112px), replacing the old 168px
     gap token. */
  gap: 112px;
}

.about__media {
  position: relative;
  flex: 0 0 auto;
  width: 544px;
  height: 544px;
  background: var(--color-surface-soft);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about__media img {
  width: 74%;
  height: auto;
}

.about__copy {
  flex: 1;
  min-width: 0;
}

.about__heading {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: var(--fs-display);
  line-height: 1.25;
  color: var(--color-ink);
  white-space: pre-line;
  margin-bottom: var(--space-6);
}

.about__paragraph {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  white-space: pre-line;
}

@media (max-width: 1024px) {
  .about__row {
    flex-direction: column;
    gap: var(--space-6);
    text-align: center;
  }

  .about__media {
    width: 100%;
    max-width: 380px;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .about__paragraph {
    font-size: 18px;
  }

  /* Decorative-only, and the stacked layout leaves no clean margin for it. */
  .about__paws {
    display: none;
  }
}

/* ================= EMOTICON ================= */
.emoticon__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: 80px;
}

.emoticon__tile {
  aspect-ratio: 1 / 1;
  background: var(--color-white);
  overflow: hidden;
  position: relative;
}

/* Figma crops in tighter than a plain object-fit:cover would (source art
   sized 380px inside a 280px frame, i.e. ~1.357x), trimming the sticker
   sheet's outer margin for a closer view. */
.emoticon__tile img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 135.7%;
  height: 135.7%;
  object-fit: cover;
  transform: translate(-50%, -50%);
}

.emoticon__heading {
  text-align: center;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.5;
  color: var(--color-ink);
  white-space: pre-line;
  margin-bottom: 44px;
}

.emoticon__cta {
  display: flex;
  justify-content: center;
  gap: 64px;
}

/* Same size as the shared .btn-pill (190x68) except for a slightly smaller
   font, matching Figma's 22px spec for these two. */
.emoticon__cta-btn {
  font-size: 22px;
  /* Figma specifies no extra tracking for these two, unlike CLICK/
     Instagram/Goods which use .btn-pill's 0.96px default. */
  letter-spacing: normal;
}

@media (max-width: 1024px) {
  .emoticon__cta {
    gap: var(--space-5);
  }

  .emoticon__cta-btn {
    font-size: 17px;
  }
}

@media (max-width: 599px) {
  .emoticon__cta {
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
  }

  .emoticon__cta-btn {
    font-size: 14px;
  }
}

@media (max-width: 599px) {
  .emoticon__grid {
    /* 4 tiles at 1 column width each get too small on a phone; 2x2 keeps
       them a reasonable size. */
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
    margin-bottom: var(--space-6);
  }

  .emoticon__heading {
    font-size: 20px;
  }
}

/* ================= STORY ================= */
.story__card {
  display: flex;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-surface-story);
  /* Figma: aspect-[1440/700] on the whole card. Needed now that the photo
     column no longer has the old circle's aspect-ratio to drive the row's
     height via flex-stretch -- without this the row just falls back to
     the text column's (shorter) natural content height. */
  aspect-ratio: 1440 / 700;
}

.story__card-text {
  flex: 0 0 50%;
  min-width: 0;
  /* Figma: pl-100 pr-80 py-80 (asymmetric left padding) */
  padding: var(--space-9) var(--space-9) var(--space-9) 100px;
  display: flex;
  flex-direction: column;
  /* Title pinned to top, description pinned to bottom, Instagram button
     (in normal flow between them) landing near the vertical center --
     matches Figma's title-top/description-bottom/button-floating-center
     layout without needing absolute positioning. */
  justify-content: space-between;
  gap: var(--space-4);
}

.story__card-title {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 48px;
  line-height: 1.3;
  color: var(--color-ink);
  white-space: pre-line;
}

.story__card-desc {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  white-space: pre-line;
}

.story__card-text .btn-pill {
  align-self: flex-start;
}

.story__card-visual {
  flex: 0 0 50%;
  min-width: 0;
  position: relative;
  background: var(--color-surface-story);
  overflow: hidden;
}

/* Figma replaced the single circular autoplay photo with a static 2x2
   grid of 4 photos filling the column edge-to-edge (no gap/padding,
   no crossfade). */
.story__photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  width: 100%;
  height: 100%;
}

.story__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .story__card {
    flex-direction: column;
    aspect-ratio: auto;
  }

  .story__card-text,
  .story__card-visual {
    flex: none;
  }

  .story__card-text {
    padding: var(--space-7) var(--space-5);
    align-items: center;
    text-align: center;
  }

  .story__card-text .btn-pill {
    align-self: center;
  }

  .story__card-title {
    font-size: 32px;
  }

  .story__card-visual {
    /* No longer sized via flex-row stretch once stacked in a column, so
       the photo grid needs its own aspect-ratio to avoid collapsing. */
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 599px) {
  .story__card-title {
    font-size: 26px;
  }
}

/* ================= GOODS ================= */
/* Arrows sit OUTSIDE the 1200px container (in the page's side margin) so
   the track/cards keep their original full-width 4-up size -- same layout
   as the old plain grid. There's only room for that past ~1024px (page
   padding is 120px there, plenty for a 44px button); below that, the
   media query further down switches back to arrows flanking the track
   inline, same as a plain carousel. */
.goods__carousel {
  position: relative;
  margin-bottom: 80px;
}

.goods__track {
  display: flex;
  gap: var(--space-4);
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.goods__track::-webkit-scrollbar {
  display: none;
}

.goods-card {
  flex: 0 0 calc((100% - var(--space-4) * 3) / 4);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.goods-card__media {
  aspect-ratio: 1 / 1;
  padding: var(--space-4);
}

.goods-card__label {
  padding: 16px;
  text-align: center;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-ink-strong);
}

.goods__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-strong);
  background: var(--color-white);
  color: var(--color-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-micro) var(--ease-out), color var(--duration-micro) var(--ease-out),
    opacity var(--duration-micro) var(--ease-out);
}

.goods__arrow--prev {
  right: 100%;
  margin-right: var(--space-4);
}

.goods__arrow--next {
  left: 100%;
  margin-left: var(--space-4);
}

.goods__arrow svg {
  width: 20px;
  height: 20px;
}

.goods__arrow:hover,
.goods__arrow:focus-visible {
  background: var(--color-ink);
  color: var(--color-white);
}

.goods__arrow:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

.goods__cta {
  display: flex;
  justify-content: center;
}

/* Below this, page-padding is only 40px (tokens.css) -- not enough room
   to float a 44px arrow outside the container without clipping, so the
   arrows move back inline and the track shrinks to fit them instead. */
@media (max-width: 1024px) {
  .goods__carousel {
    display: flex;
    align-items: center;
    gap: var(--space-3);
  }

  .goods__track {
    min-width: 0;
    flex: 1;
  }

  .goods__arrow {
    position: static;
    transform: none;
    margin: 0;
  }
}

@media (max-width: 860px) {
  .goods-card {
    flex-basis: calc((100% - var(--space-4)) / 2);
  }
}

@media (max-width: 599px) {
  .goods-card {
    flex-basis: 80%;
  }

  .goods__arrow {
    width: 36px;
    height: 36px;
  }

  .goods__arrow svg {
    width: 16px;
    height: 16px;
  }
}

/* ================= FOOTER ================= */
.footer {
  background: var(--color-footer-bg);
  color: var(--color-white);
  padding: var(--space-9) 0 var(--space-6);
}

.footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-6);
}

.footer__col {
  max-width: 790px;
}

.footer__logo {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: var(--space-5);
}

.footer__desc {
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  white-space: pre-line;
  margin-bottom: var(--space-4);
}

.footer__email {
  display: inline-block;
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: 16px;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.footer__copyright {
  font-size: 12px;
  color: var(--color-footer-muted);
}

@media (max-width: 700px) {
  .footer__top {
    flex-direction: column;
    gap: var(--space-4);
  }

  .footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
