@font-face {
  font-family: "DM Sans";
  src: url("./assets/dm-sans-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "DM Sans";
  src: url("./assets/dm-sans-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
}

@font-face {
  font-family: "Codec Pro";
  src: url("./assets/codec-pro-extrabold.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
}

@font-face {
  font-family: "Roca Two";
  src: url("./assets/roca-two-heavy.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
}

:root {
  --cream: #f7f0e7;
  --cream-soft: #fffaf2;
  --ink: #11161b;
  --muted: #596473;
  --line: rgba(17, 22, 27, 0.1);
  --coral: #f0523a;
  --blue: #2f76ac;
  --teal: #58aeb5;
  --gold: #e7ad35;
  --green: #6f7d38;
  --navy: #243445;
  --shadow: 0 28px 90px rgba(29, 23, 18, 0.15);
  --shadow-strong: 0 36px 130px rgba(29, 23, 18, 0.24);
  --font-body: "Garet Extra Bold", "Codec Pro", "DM Sans", sans-serif;
  --font-brand: "Roca Two", "Codec Pro", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    linear-gradient(90deg, rgba(240, 82, 58, 0.1), transparent 28%),
    linear-gradient(130deg, transparent 42%, rgba(88, 174, 181, 0.14) 78%, transparent 100%),
    var(--cream);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 250, 242, 0.18), transparent 30%),
    repeating-linear-gradient(
      90deg,
      rgba(17, 22, 27, 0.022) 0,
      rgba(17, 22, 27, 0.022) 1px,
      transparent 1px,
      transparent 112px
    );
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1280px, calc(100% - 48px));
  min-height: 58px;
  margin: 0 auto;
  padding: 0 22px;
  background: rgba(255, 250, 242, 0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 35px rgba(29, 23, 18, 0.08);
  backdrop-filter: blur(16px);
}

.brand,
.nav {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 700;
}

.brand span {
  color: var(--coral);
  font-family: var(--font-brand);
  font-size: 29px;
  line-height: 1;
  letter-spacing: 0.01em;
}

.brand img {
  width: 52px;
}

.nav {
  gap: 24px;
  color: var(--muted);
}

.nav a {
  padding: 9px 0;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--coral);
}

.scene {
  position: relative;
  overflow: clip;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2 {
  margin-bottom: 24px;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 8ch;
  font-size: 96px;
  line-height: 0.93;
}

h2 {
  font-size: 72px;
  line-height: 0.95;
}

h3 {
  margin-bottom: 12px;
  font-size: 30px;
  line-height: 1.08;
}

p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.hero {
  min-height: clamp(700px, 88vh, 860px);
  margin-top: -72px;
  padding: 132px 6.5vw 56px;
}

.hero-copy {
  position: relative;
  z-index: 8;
  width: min(520px, 38vw);
  padding-top: 76px;
}

.hero-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  background: linear-gradient(90deg, var(--cream) 0%, rgba(247, 240, 231, 0.94) 27%, rgba(247, 240, 231, 0.16) 49%, transparent 68%);
}

.hero-card {
  position: absolute;
  margin: 0;
  overflow: visible;
  pointer-events: auto;
  border: 1px solid rgba(17, 22, 27, 0.1);
  border-radius: 32px;
  background: var(--cream-soft);
  box-shadow: var(--shadow);
}

.float-layer {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  animation: float-soft 5.8s ease-in-out infinite;
  transition:
    filter 260ms ease,
    transform 260ms ease;
}

.hero-card:nth-child(2) .float-layer {
  animation-duration: 6.4s;
  animation-delay: -1.6s;
}

.hero-card:nth-child(3) .float-layer {
  animation-duration: 5.3s;
  animation-delay: -0.8s;
}

.hero-card:nth-child(4) .float-layer {
  animation-duration: 7s;
  animation-delay: -2.4s;
}

.hero-card:nth-child(5) .float-layer {
  animation-duration: 5.6s;
  animation-delay: -3s;
}

.hero-card:hover .float-layer {
  filter: saturate(1.08) contrast(1.03);
  transform: translateY(-12px) rotate(2deg) scale(1.035);
}

.hero-card img,
.float-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card-main {
  z-index: 5;
  width: min(40vw, 540px);
  height: min(70vh, 680px);
  left: 48%;
  top: 11%;
  transform:
    translateX(calc(var(--hero-scroll, 0) * -78px))
    translateY(calc(var(--hero-scroll, 0) * -120px))
    scale(calc(1 - var(--hero-scroll, 0) * 0.08))
    rotate(calc(1deg - var(--hero-scroll, 0) * 6deg));
}

.hero-card-small {
  z-index: 3;
}

.hero-card-a {
  width: min(18vw, 230px);
  aspect-ratio: 1;
  left: 34%;
  top: 28%;
  transform:
    translateX(calc(var(--hero-scroll, 0) * -190px))
    translateY(calc(var(--hero-scroll, 0) * -92px))
    scale(calc(1 + var(--hero-scroll, 0) * 0.1))
    rotate(calc(-8deg - var(--hero-scroll, 0) * 18deg));
}

.hero-card-b {
  width: min(24vw, 330px);
  height: min(18vw, 238px);
  right: 2%;
  top: 58%;
  transform:
    translateX(calc(var(--hero-scroll, 0) * 180px))
    translateY(calc(var(--hero-scroll, 0) * -120px))
    scale(calc(1 + var(--hero-scroll, 0) * 0.05))
    rotate(calc(7deg + var(--hero-scroll, 0) * 12deg));
}

.hero-card-c {
  width: min(17vw, 220px);
  height: min(23vw, 300px);
  right: 6%;
  top: 8%;
  transform:
    translateX(calc(var(--hero-scroll, 0) * 110px))
    translateY(calc(var(--hero-scroll, 0) * -170px))
    rotate(calc(-5deg - var(--hero-scroll, 0) * 12deg));
}

.hero-card-d {
  width: min(22vw, 310px);
  height: min(15vw, 210px);
  left: 42%;
  bottom: 2%;
  transform:
    translateX(calc(var(--hero-scroll, 0) * -96px))
    translateY(calc(var(--hero-scroll, 0) * 118px))
    rotate(calc(-3deg + var(--hero-scroll, 0) * 16deg));
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 48px;
  align-items: center;
  min-height: clamp(600px, 72vh, 760px);
  padding: 72px 6.5vw;
  background: var(--cream-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-visual {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.box-canvas {
  display: block;
  width: min(980px, 118%);
  height: min(650px, 68vh);
  filter: drop-shadow(0 36px 70px rgba(29, 23, 18, 0.22));
}

.intro-copy {
  justify-self: end;
  max-width: 560px;
  text-align: right;
  opacity: calc(0.25 + var(--progress, 0) * 0.75);
  transform: translateX(calc((1 - var(--progress, 0)) * 130px));
}

.story,
.quality,
.collections,
.shop {
  padding: 76px 6.5vw;
}

.section-head {
  max-width: 820px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 32px;
}

.story-card {
  display: grid;
  gap: 22px;
  min-height: 500px;
  padding: 26px;
  overflow: hidden;
  background: rgba(255, 250, 242, 0.78);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
  opacity: calc(0.28 + var(--progress, 0) * 0.72);
  animation: card-float 6.5s ease-in-out infinite;
  transition:
    box-shadow 260ms ease,
    scale 260ms ease;
  transform:
    translateX(calc((1 - var(--progress, 0)) * var(--slide, 0px)))
    translateY(calc((1 - var(--progress, 0)) * var(--lift, 24px)))
    rotate(calc(var(--start-tilt, var(--tilt, 0deg)) + var(--progress, 0) * var(--tilt-end, 0deg)));
}

.story-card:hover {
  box-shadow: 0 36px 120px rgba(29, 23, 18, 0.24);
  scale: 1.025;
}

.story-card-one {
  --lift: 170px;
  --slide: -150px;
  --start-tilt: -10deg;
  --tilt-end: 8deg;
}

.story-card-two {
  --lift: 92px;
  --slide: 0px;
  --start-tilt: 6deg;
  --tilt-end: -5deg;
}

.story-card-three {
  --lift: 150px;
  --slide: 150px;
  --start-tilt: -7deg;
  --tilt-end: 7deg;
}

.story-index {
  color: var(--coral);
  font-weight: 700;
}

.story-card img {
  align-self: end;
  width: 100%;
  aspect-ratio: 1.05;
  object-fit: cover;
  border-radius: 22px;
}

.quality {
  display: grid;
  grid-template-columns: minmax(320px, 0.84fr) minmax(0, 1.16fr);
  gap: 44px;
  align-items: center;
  min-height: clamp(620px, 76vh, 780px);
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 250, 242, 0.16), transparent 26%),
    linear-gradient(135deg, #f25533 0%, #f04b2f 45%, #df442c 100%);
  border-top: 1px solid rgba(255, 250, 242, 0.18);
  border-bottom: 1px solid rgba(17, 22, 27, 0.08);
}

.quality .eyebrow,
.quality h2,
.quality p {
  color: #fff6eb;
}

.quality-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 24px;
  align-content: center;
  max-width: 560px;
  opacity: calc(0.28 + var(--progress, 0) * 0.72);
  transform:
    translateX(calc((1 - var(--progress, 0)) * -56px))
    translateY(calc((1 - var(--progress, 0)) * 18px));
}

.quality-copy .eyebrow {
  opacity: calc(0.22 + var(--progress, 0) * 0.78);
  transform: translateY(calc((1 - var(--progress, 0)) * 28px));
}

.quality-copy h2 {
  max-width: 8ch;
  margin-bottom: 0;
  font-size: clamp(60px, 7vw, 108px);
  line-height: 0.9;
  opacity: calc(0.2 + var(--progress, 0) * 0.8);
  transform:
    translateX(calc((1 - var(--progress, 0)) * -34px))
    translateY(calc((1 - var(--progress, 0)) * 22px))
    rotate(calc((1 - var(--progress, 0)) * -3deg));
}

.quality-list {
  display: grid;
  gap: 16px;
}

.quality-pill {
  --pill-x: -42px;
  --pill-y: 14px;
  --pill-rotate: -1.5deg;
  margin: 0;
  padding: 20px 28px;
  color: var(--ink) !important;
  font-family: inherit;
  font-size: clamp(22px, 2.3vw, 34px);
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  background: rgba(255, 250, 242, 0.96);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 22px 50px rgba(124, 31, 18, 0.16);
  cursor: pointer;
  opacity: calc(0.18 + var(--progress, 0) * 0.82);
  position: relative;
  overflow: hidden;
  transform:
    translateX(calc((1 - var(--progress, 0)) * var(--pill-x)))
    translateY(calc((1 - var(--progress, 0)) * var(--pill-y)))
    rotate(calc((1 - var(--progress, 0)) * var(--pill-rotate)));
  transition:
    background 220ms ease,
    box-shadow 220ms ease,
    color 220ms ease,
    scale 220ms ease,
    translate 220ms ease;
}

.quality-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.72) 46%, transparent 72%);
  opacity: 0;
  transform: translateX(-120%);
  transition:
    opacity 220ms ease,
    transform 520ms ease;
}

.quality-pill:hover,
.quality-pill:focus-visible,
.quality-pill.is-active {
  background: #fffaf2;
  box-shadow: 0 28px 62px rgba(124, 31, 18, 0.24);
  outline: none;
  scale: 1.035;
  translate: 14px -4px;
}

.quality-pill:hover::after,
.quality-pill:focus-visible::after {
  opacity: 0.65;
  transform: translateX(120%);
}

.quality-pill.is-active {
  color: #f04b2f !important;
}

.quality-pill:nth-child(2) {
  --pill-x: 42px;
  --pill-y: 18px;
  --pill-rotate: 1.6deg;
}

.quality-pill:nth-child(3) {
  --pill-x: -34px;
  --pill-y: 22px;
  --pill-rotate: -1deg;
}

.quality-pill:nth-child(4) {
  --pill-x: 48px;
  --pill-y: 26px;
  --pill-rotate: 1.9deg;
}

.quality-visual {
  position: relative;
  min-height: 500px;
  overflow: visible;
  perspective: 1400px;
  opacity: calc(0.22 + var(--progress, 0) * 0.78);
  transform:
    translateX(calc((1 - var(--progress, 0)) * 86px))
    translateY(calc((1 - var(--progress, 0)) * 24px));
}

.quality-visual::before,
.quality-visual::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.quality-visual::before {
  width: 170px;
  height: 170px;
  right: -42px;
  top: -38px;
  background: rgba(255, 250, 242, 0.16);
}

.quality-visual::after {
  width: 110px;
  height: 110px;
  left: -28px;
  bottom: 36px;
  background: rgba(233, 180, 76, 0.32);
}

.quality-showcase {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  min-height: 500px;
  cursor: pointer;
  transform-style: preserve-3d;
}

.quality-showcase.is-updating {
  animation: quality-card-pop 420ms ease;
}

.quality-card-face {
  position: absolute;
  inset: 0;
  display: grid;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 38px;
  box-shadow: 0 34px 90px rgba(121, 29, 14, 0.24);
  overflow: hidden;
  transition: transform 620ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.quality-card-front {
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.9), transparent 36%),
    linear-gradient(145deg, #fffaf2, #eadfce);
  border: 1px solid rgba(255, 250, 242, 0.22);
  transform: rotateY(0deg) translateZ(0.01px);
}

.quality-card-front img,
.quality-card-front video {
  width: 100%;
  height: 100%;
}

.quality-card-front img {
  padding: clamp(26px, 4vw, 58px);
  object-fit: contain;
  filter: drop-shadow(0 24px 38px rgba(121, 29, 14, 0.16));
}

.quality-card-front video {
  display: block;
  object-fit: cover;
}

.quality-card-caption {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  color: var(--ink);
  background: rgba(255, 250, 242, 0.88);
  border: 1px solid rgba(17, 22, 27, 0.08);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.quality-card-caption span {
  color: #f04b2f;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quality-card-caption strong {
  font-size: clamp(15px, 1.6vw, 21px);
  line-height: 1;
}

.quality-card-back {
  align-content: center;
  gap: 18px;
  padding: clamp(30px, 4.6vw, 62px);
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 14%, rgba(240, 82, 58, 0.2), transparent 26%),
    radial-gradient(circle at 12% 88%, rgba(233, 180, 76, 0.3), transparent 24%),
    linear-gradient(145deg, #fffaf2, #f2e3d1);
  border: 1px solid rgba(255, 250, 242, 0.28);
  transform: rotateY(180deg) translateZ(0.01px);
}

.quality-card-back h3 {
  max-width: 10ch;
  margin: 0;
  color: var(--ink);
  font-size: clamp(42px, 5.4vw, 76px);
  line-height: 0.94;
}

.quality-card-back p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: #3b414a;
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.35;
}

.quality-card-back .eyebrow {
  color: #f04b2f;
}

.quality-showcase.is-flipped .quality-card-front {
  transform: rotateY(-180deg) translateZ(0.01px);
}

.quality-showcase.is-flipped .quality-card-back {
  transform: rotateY(0deg) translateZ(0.02px);
}

.collections {
  overflow: hidden;
  background: #eef3ee;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.collection-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 28px;
  align-items: start;
  min-width: 0;
  margin-top: 32px;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  width: 100%;
  min-width: 0;
  padding: 34px 12px 20px;
}

.collection-cover {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1;
  min-height: 0;
  --avatar-size: 192px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  perspective: 1300px;
  text-align: center;
  z-index: var(--z, 1);
  transition: scale 240ms ease;
  transform:
    translateX(calc((1 - var(--progress, 0)) * var(--scatter-x, 0px)))
    translateY(calc((1 - var(--progress, 0)) * var(--scatter-y, 0px)))
    rotate(calc(var(--scatter-rotate, 0deg) * (1 - var(--progress, 0))))
    scale(calc(0.86 + var(--progress, 0) * 0.14));
}

.collection-cover:nth-child(1) {
  --scatter-x: -58px;
  --scatter-y: 30px;
  --scatter-rotate: -7deg;
  --z: 3;
  --avatar-x: -22px;
  --avatar-y: -44px;
  --avatar-rotate: -8deg;
}

.collection-cover:nth-child(2) {
  --scatter-x: 10px;
  --scatter-y: 68px;
  --scatter-rotate: 5deg;
  --z: 2;
  --avatar-x: 14px;
  --avatar-y: -58px;
  --avatar-rotate: 6deg;
}

.collection-cover:nth-child(3) {
  --scatter-x: 74px;
  --scatter-y: 18px;
  --scatter-rotate: -8deg;
  --z: 4;
  --avatar-x: 24px;
  --avatar-y: -38px;
  --avatar-rotate: -5deg;
}

.collection-cover:nth-child(4) {
  --scatter-x: -70px;
  --scatter-y: -10px;
  --scatter-rotate: 8deg;
  --z: 5;
  --avatar-x: -26px;
  --avatar-y: -46px;
  --avatar-rotate: 8deg;
}

.collection-cover:nth-child(5) {
  --scatter-x: 6px;
  --scatter-y: -64px;
  --scatter-rotate: -4deg;
  --z: 7;
  --avatar-x: 8px;
  --avatar-y: -54px;
  --avatar-rotate: -3deg;
}

.collection-cover:nth-child(6) {
  --scatter-x: 82px;
  --scatter-y: -20px;
  --scatter-rotate: 6deg;
  --z: 8;
  --avatar-x: 26px;
  --avatar-y: -40px;
  --avatar-rotate: 7deg;
}

.collection-cover:nth-child(7) {
  --scatter-x: -30px;
  --scatter-y: 22px;
  --scatter-rotate: -7deg;
  --z: 9;
  --avatar-x: -18px;
  --avatar-y: -50px;
  --avatar-rotate: -6deg;
}

.collection-cover:nth-child(8) {
  --scatter-x: 36px;
  --scatter-y: -6px;
  --scatter-rotate: 4deg;
  --z: 4;
  --avatar-x: 12px;
  --avatar-y: -42px;
  --avatar-rotate: 4deg;
}

.collection-inner {
  position: absolute;
  inset: 0;
  display: block;
  transform-style: preserve-3d;
  animation: card-float 6s ease-in-out infinite;
  transition:
    filter 240ms ease,
    translate 240ms ease;
}

.collection-cover:nth-child(2n) .collection-inner {
  animation-delay: -2s;
}

.collection-cover:nth-child(3n) .collection-inner {
  animation-delay: -3.4s;
}

.collection-cover:hover .collection-inner {
  filter: saturate(1.06);
}

.collection-cover:focus-visible,
.collection-cover.is-selected,
.collection-cover.is-flipped {
  z-index: 28;
}

.collection-cover:hover {
  z-index: 30;
  scale: 1.035;
}

.collection-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: visible;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: var(--shadow);
  opacity: 1;
  transform-origin: center;
  transform-style: preserve-3d;
  transition:
    transform 520ms cubic-bezier(0.2, 0.72, 0.2, 1),
    opacity 120ms linear;
  will-change: transform, opacity;
}

.collection-front {
  z-index: 2;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 40%),
    linear-gradient(145deg, rgba(255, 250, 242, 0.96), rgba(248, 239, 228, 0.88));
  transform: rotateY(0deg) translateZ(0.01px);
}

.collection-front::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 20%, rgba(17, 22, 27, 0.05) 100%);
}

.collection-cover.is-flipped .collection-front {
  opacity: 0;
  pointer-events: none;
  transform: rotateY(-180deg) translateZ(0.01px);
}

.collection-front img {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: var(--avatar-size, 156px);
  height: var(--avatar-size, 156px);
  object-fit: cover;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 12px 32px rgba(29, 23, 18, 0.14);
  transform:
    translate(calc(-50% + var(--avatar-x, 0px)), calc(-50% + var(--avatar-y, 0px)))
    rotate(var(--avatar-rotate, 0deg));
  transition: transform 260ms ease;
}

.collection-cover:hover .collection-front img {
  transform:
    translate(calc(-50% + var(--avatar-x, 0px)), calc(-50% + var(--avatar-y, 0px) - 8px))
    rotate(calc(var(--avatar-rotate, 0deg) + 4deg))
    scale(1.08);
}

.collection-front strong {
  position: absolute;
  right: 18px;
  bottom: 20px;
  left: 18px;
  z-index: 2;
  max-width: none;
  margin: 0;
  font-size: 21px;
  line-height: 1.04;
  overflow-wrap: anywhere;
  text-align: center;
  text-shadow: none;
}

.collection-back strong {
  font-size: 24px;
  line-height: 1.08;
}

.collection-back {
  z-index: 1;
  align-content: center;
  justify-items: center;
  text-align: center;
  color: #fffaf2;
  opacity: 0;
  pointer-events: none;
  transform: rotateY(180deg) translateZ(0.01px);
}

.collection-cover.is-flipped .collection-back {
  z-index: 3;
  opacity: 1;
  pointer-events: auto;
  transform: rotateY(0deg) translateZ(0.02px);
}

.collection-back span {
  color: rgba(255, 250, 242, 0.82);
  font-size: 16px;
  line-height: 1.35;
}

.collection-back .back-kicker,
.collection-back .back-meta {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.collection-back .back-kicker {
  min-height: 26px;
  padding: 0 10px;
  color: #fffaf2;
  background: rgba(255, 255, 255, 0.18);
}

.collection-back .back-meta {
  margin-top: auto;
  padding-top: 12px;
  color: rgba(255, 250, 242, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0;
}

.collection-cover.is-selected .collection-front {
  outline: 3px solid rgba(240, 82, 58, 0.52);
  outline-offset: -3px;
}

.collection-detail {
  position: sticky;
  top: 102px;
  display: grid;
  gap: 18px;
  min-height: 440px;
  max-height: calc(100vh - 112px);
  overflow: auto;
  padding: 24px;
  background: rgba(255, 250, 242, 0.92);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  opacity: calc(0.3 + var(--progress, 0) * 0.7);
  transform: translateX(calc((1 - var(--progress, 0)) * 120px));
  transition:
    box-shadow 260ms ease,
    scale 260ms ease;
}

.collection-detail:hover {
  box-shadow: 0 36px 110px rgba(29, 23, 18, 0.2);
  scale: 1.015;
}

.detail-top {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.detail-top .eyebrow {
  margin: 0;
}

.detail-close {
  display: none;
  min-height: 34px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.detail-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-count,
.detail-empty,
.detail-extra {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.detail-product {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.detail-product img {
  width: 100%;
  aspect-ratio: 1.2;
  object-fit: cover;
  border-radius: 15px;
}

.detail-product h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.meta {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.stock {
  color: var(--ink);
  font-weight: 700;
}

.buy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 40px;
  padding: 0 15px;
  color: var(--ink);
  background: #fffaf2;
  border-radius: 999px;
  font-weight: 700;
}

.theme-blue {
  background: linear-gradient(145deg, #1c5e95, #58aeb5);
}

.theme-dark {
  background: linear-gradient(145deg, #26384a, #11181f);
}

.theme-coral {
  background: linear-gradient(145deg, #eb4f38, #f38a5e);
}

.theme-gold {
  background: linear-gradient(145deg, #e2a332, #d7bd62);
}

.theme-green {
  background: linear-gradient(145deg, #6f7d38, #a9b762);
}

.theme-teal {
  background: linear-gradient(145deg, #328c94, #69c5bd);
}

.shop {
  color: #fffaf2;
  background: #121a22;
}

.shop .eyebrow,
.shop .section-head p {
  color: rgba(255, 250, 242, 0.78);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 16px;
  margin-top: 30px;
  padding-top: 22px;
  align-items: stretch;
}

.product-card {
  position: relative;
  min-height: 400px;
  cursor: pointer;
  perspective: 1400px;
  transition: scale 240ms ease;
  transform:
    translateX(calc((1 - var(--progress, 0)) * var(--slide, 0px)))
    translateY(calc((1 - var(--progress, 0)) * var(--lift, 22px)))
    rotate(calc(var(--tilt, 0deg) * (1 - var(--progress, 0))));
}

.product-card:nth-child(4n + 1) {
  --tilt: -1.5deg;
  --lift: 140px;
  --slide: -100px;
  margin-top: 34px;
}

.product-card:nth-child(4n + 2) {
  --tilt: 1.2deg;
  --lift: 82px;
  --slide: -32px;
  margin-top: -10px;
}

.product-card:nth-child(4n + 3) {
  --tilt: -0.8deg;
  --lift: 112px;
  --slide: 32px;
  margin-top: 48px;
}

.product-card:nth-child(4n + 4) {
  --tilt: 1.6deg;
  --lift: 68px;
  --slide: 100px;
  margin-top: 8px;
}

.product-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: card-float 6.4s ease-in-out infinite;
  transition:
    filter 240ms ease,
    translate 240ms ease;
}

.product-card:nth-child(2n) .product-inner {
  animation-delay: -1.7s;
}

.product-card:nth-child(3n) .product-inner {
  animation-delay: -3.1s;
}

.product-card:hover .product-inner {
  filter: saturate(1.06);
}

.product-card:hover {
  scale: 1.035;
}

.product-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 30px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: var(--shadow-strong);
  opacity: 1;
  transform-origin: center;
  transform-style: preserve-3d;
  transition:
    transform 560ms cubic-bezier(0.2, 0.72, 0.2, 1),
    opacity 120ms linear;
  will-change: transform, opacity;
}

.product-front {
  z-index: 2;
  color: #fffaf2;
  background: linear-gradient(145deg, #101820, #1c2a34);
  transform: rotateY(0deg) translateZ(0.01px);
}

.product-card.is-flipped .product-front {
  opacity: 0;
  pointer-events: none;
  transform: rotateY(-180deg) translateZ(0.01px);
}

.product-front img {
  width: 100%;
  height: 100%;
  padding: 18px 18px 96px;
  object-fit: contain;
}

.product-front::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(8, 12, 16, 0.9));
}

.product-caption {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: grid;
  gap: 9px;
  padding: 22px;
}

.product-caption span,
.pill {
  display: inline-flex;
  width: fit-content;
  min-height: 29px;
  align-items: center;
  padding: 0 11px;
  color: #fffaf2;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.product-caption strong {
  font-size: 24px;
  line-height: 1.12;
}

.product-back {
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 26px;
  color: #fffaf2;
  isolation: isolate;
  opacity: 0;
  pointer-events: none;
  transform: rotateY(180deg) translateZ(0.01px);
}

.product-back > :not(.product-back-art) {
  position: relative;
  z-index: 2;
}

.product-back-art {
  position: absolute;
  right: -30%;
  bottom: -12%;
  z-index: 1;
  width: 86%;
  max-width: none;
  height: auto;
  pointer-events: none;
  opacity: 0;
  object-fit: contain;
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.2));
  transform: translate(46px, 34px) rotate(10deg) scale(0.76);
  transition:
    opacity 340ms ease,
    transform 520ms cubic-bezier(0.17, 0.92, 0.24, 1.18);
}

.product-card.is-flipped .product-back {
  z-index: 3;
  opacity: 1;
  pointer-events: auto;
  transform: rotateY(0deg) translateZ(0.02px);
}

.product-card.is-flipped .product-back-art {
  opacity: 0.42;
  transform: translate(0, 0) rotate(-8deg) scale(1);
}

.product-back h3 {
  margin: 0;
  max-width: 12ch;
  color: #fffaf2;
  font-size: clamp(25px, 2.1vw, 34px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.product-back .meta,
.product-note {
  color: rgba(255, 250, 242, 0.78);
}

.product-back .meta {
  gap: 6px;
  font-size: 16px;
}

.product-back .stock {
  color: #fffaf2;
}

.product-back .buy-link {
  margin-top: 4px;
  color: var(--ink);
}

.product-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.footer {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 36px;
  align-items: start;
  padding: 48px 6.5vw 42px;
  background: var(--cream-soft);
  border-top: 1px solid var(--line);
}

.footer-mark {
  display: flex;
  align-items: center;
}

.footer-mark img {
  width: min(100%, 320px);
}

.footer-copy {
  display: grid;
  justify-items: end;
  gap: 22px;
  text-align: right;
}

.footer p {
  margin: 0;
  font-size: 15px;
}

.footer a {
  font-weight: 700;
  color: var(--coral);
}

.footer-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(100%, 760px);
}

.footer-info > div {
  display: grid;
  justify-items: end;
  gap: 6px;
  padding: 18px;
  background: rgba(255, 250, 242, 0.72);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.footer-location {
  position: relative;
  overflow: visible;
}

.footer-info span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-info strong {
  color: var(--ink);
  font-size: 19px;
  line-height: 1.1;
}

.footer-info p {
  max-width: 280px;
  font-size: 14px;
  line-height: 1.45;
}

.footer-map-card {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  z-index: 70;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100vw - 40px));
  padding: 12px;
  text-align: left;
  background: rgba(255, 250, 242, 0.98);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-strong);
  transform-origin: right bottom;
  animation: map-pop 220ms ease both;
}

.footer-map-card[hidden] {
  display: none;
}

.footer-map-top {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.footer-map-top strong {
  color: var(--ink);
  font-size: 16px;
}

.footer-map-top button {
  min-height: 30px;
  padding: 0 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.footer-map-card iframe {
  width: 100%;
  height: 230px;
  border: 0;
  border-radius: 16px;
}

.footer-map-card > a {
  justify-self: end;
}

@keyframes float-soft {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -14px;
  }
}

@keyframes float-box {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -22px;
  }
}

@keyframes card-float {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -10px;
  }
}

@keyframes quality-card-pop {
  0%,
  100% {
    scale: 1;
  }

  50% {
    scale: 1.025;
  }
}

@keyframes map-pop {
  from {
    opacity: 0;
    scale: 0.96;
    translate: 0 10px;
  }

  to {
    opacity: 1;
    scale: 1;
    translate: 0 0;
  }
}

@media (max-width: 1180px) {
  h1 {
    font-size: 78px;
  }

  h2 {
    font-size: 56px;
  }

  .hero-copy {
    width: min(440px, 43vw);
  }

  .hero-card-main {
    width: 430px;
    height: 610px;
    left: 48%;
  }

  .hero-card-a {
    left: 33%;
    width: 180px;
  }

  .hero-card-b {
    width: 260px;
    height: 198px;
  }

  .hero-card-c {
    width: 190px;
    height: 260px;
  }

  .intro,
  .quality,
  .collection-layout {
    grid-template-columns: 1fr;
  }

  .intro-copy {
    justify-self: start;
    text-align: left;
  }

  .quality {
    min-height: 0;
  }

  .quality-copy {
    max-width: none;
  }

  .quality-visual {
    min-height: 520px;
  }

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

  .collection-detail {
    position: relative;
    top: auto;
  }

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

  .footer-mark {
    justify-content: center;
  }

  .footer-copy,
  .footer-info > div {
    justify-items: start;
    text-align: left;
  }

  .footer-info {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .footer-map-card {
    right: auto;
    left: 0;
    width: min(100%, 420px);
    transform-origin: left bottom;
  }
}

@media (max-width: 760px) {
  .topbar {
    top: 10px;
    width: calc(100% - 24px);
    min-height: 56px;
    padding: 0 14px;
  }

  .nav {
    display: none;
  }

  .brand img {
    width: 44px;
  }

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

  .hero {
    min-height: 860px;
    margin-top: -66px;
    padding: 116px 20px 44px;
  }

  .hero-copy {
    width: auto;
    max-width: calc(100vw - 40px);
    padding-top: 0;
  }

  .hero-copy p {
    max-width: 330px;
  }

  h1 {
    font-size: 58px;
  }

  h2 {
    font-size: 42px;
    overflow-wrap: anywhere;
  }

  p {
    font-size: 16px;
  }

  .hero-art {
    position: relative;
    height: 470px;
    margin-top: 26px;
  }

  .hero-art::before {
    display: none;
  }

  .hero-card-main {
    width: 235px;
    height: 330px;
    left: 34%;
    top: 4%;
  }

  .hero-card-a {
    width: 112px;
    left: 1%;
    top: 24%;
  }

  .hero-card-b {
    width: 150px;
    height: 112px;
    right: -4px;
    top: 56%;
  }

  .hero-card-c {
    width: 112px;
    height: 150px;
    right: 2%;
    top: 1%;
  }

  .hero-card-d {
    width: 148px;
    height: 104px;
    left: 14%;
    bottom: 0;
  }

  .intro,
  .story,
  .quality,
  .collections,
  .shop {
    padding: 64px 20px;
  }

  .box-canvas {
    width: min(100%, 520px);
    height: 430px;
  }

  .story-grid,
  .detail-products,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .quality-copy h2 {
    font-size: 56px;
  }

  .quality-list {
    gap: 12px;
  }

  .quality-pill {
    padding: 18px 18px;
    font-size: 20px;
  }

  .quality-visual {
    min-height: 420px;
  }

  .quality-showcase {
    min-height: 420px;
  }

  .quality-card-front img {
    padding: 22px 18px 92px;
  }

  .quality-card-caption {
    right: 16px;
    bottom: 16px;
    left: 16px;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 22px;
  }

  .quality-card-back {
    padding: 24px;
  }

  .quality-card-back h3 {
    max-width: none;
    font-size: 38px;
  }

  .quality-card-back p:not(.eyebrow) {
    font-size: 18px;
  }

  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding: 34px 0 12px;
  }

  .story-card {
    min-height: auto;
    --slide: 0px;
    --lift: 80px;
  }

  .collection-cover {
    aspect-ratio: 1;
    min-height: 0;
    --avatar-size: 146px;
    --scatter-x: 0px;
    --scatter-y: 80px;
    --scatter-rotate: 0deg;
    transform: none;
  }

  .collection-cover:nth-child(1) {
    --scatter-x: 0px;
    --scatter-y: 34px;
    --scatter-rotate: 0deg;
    --avatar-x: -12px;
    --avatar-y: -34px;
  }

  .collection-cover:nth-child(2) {
    --scatter-x: 0px;
    --scatter-y: 40px;
    --scatter-rotate: 0deg;
    --avatar-x: 10px;
    --avatar-y: -40px;
  }

  .collection-cover:nth-child(3) {
    --scatter-x: 0px;
    --scatter-y: 30px;
    --scatter-rotate: 0deg;
    --avatar-x: 12px;
    --avatar-y: -28px;
  }

  .collection-cover:nth-child(4) {
    --scatter-x: 0px;
    --scatter-y: 36px;
    --scatter-rotate: 0deg;
    --avatar-x: -14px;
    --avatar-y: -32px;
  }

  .collection-cover:nth-child(5) {
    --scatter-x: 0px;
    --scatter-y: 32px;
    --scatter-rotate: 0deg;
    --avatar-x: 8px;
    --avatar-y: -38px;
  }

  .collection-cover:nth-child(6) {
    --scatter-x: 0px;
    --scatter-y: 38px;
    --scatter-rotate: 0deg;
    --avatar-x: 14px;
    --avatar-y: -30px;
  }

  .collection-cover:nth-child(7) {
    --avatar-x: -10px;
    --avatar-y: -36px;
  }

  .collection-cover:nth-child(8) {
    --avatar-x: 6px;
    --avatar-y: -28px;
  }

  .collection-front strong {
    font-size: 17px;
    bottom: 16px;
  }

  .collection-detail {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 80;
    display: grid;
    max-height: min(72vh, 560px);
    min-height: 0;
    overflow: auto;
    padding: 20px;
    border-radius: 24px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 24px));
    transition:
      opacity 180ms ease,
      transform 320ms cubic-bezier(0.2, 0.72, 0.2, 1),
      box-shadow 260ms ease;
  }

  .collection-detail.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .collection-detail:hover {
    scale: 1;
  }

  .detail-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .product-card {
    min-height: 340px;
    --slide: 0px;
    --lift: 90px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0ms !important;
    animation: none !important;
  }
}
