/* ================= HOME ================= */
.page-home .hero {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding: 20px 0 70px;
  position: relative;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  max-width: 11ch;
}

.hero-copy .lede {
  margin: 22px 0 32px;
  max-width: 42ch;
  color: var(--silver);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.flake {
  position: absolute;
  color: rgba(230, 240, 255, 0.85);
  text-shadow: 0 0 12px rgba(159, 212, 234, 0.9);
  animation: flakeFloat 7s ease-in-out infinite;
  pointer-events: none;
  font-size: 1.1rem;
}

.flake.a { top: 8%; left: 46%; animation-delay: 0s; }
.flake.b { top: 28%; left: 38%; font-size: 0.7rem; animation-delay: 1.2s; }
.flake.c { bottom: 18%; left: 52%; font-size: 1.4rem; animation-delay: 2s; }
.flake.d { top: 12%; right: 8%; animation-delay: 0.6s; }
.flake.e { bottom: 30%; right: 18%; font-size: 0.85rem; animation-delay: 1.8s; }

@keyframes flakeFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.7; }
  50% { transform: translateY(-16px) rotate(18deg); opacity: 1; }
}

.hero-orbit {
  position: relative;
  min-height: 640px;
}

.orbit-ring {
  position: absolute;
  inset: 8% 10%;
  border: 1px dashed rgba(200, 180, 255, 0.22);
  border-radius: 50%;
  animation: spin 48s linear infinite;
}

.orbit-ring:nth-child(2) {
  inset: 18% 18%;
  animation-duration: 36s;
  animation-direction: reverse;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero-portrait {
  position: absolute;
  inset: 4% 10% 6%;
  border-radius: 36px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 80px rgba(140, 180, 255, 0.25), inset 0 0 40px rgba(20, 10, 40, 0.35);
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background:
    radial-gradient(circle at 50% 30%, rgba(80, 40, 140, 0.35), transparent 55%),
    #10081c;
  filter: saturate(1.05) contrast(1.05);
}

.float-chip {
  position: absolute;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 0.78rem;
  animation: floaty 6s ease-in-out infinite;
}

.float-chip:nth-child(4) { top: 8%; left: 4%; animation-delay: .2s; }
.float-chip:nth-child(5) { top: 18%; right: 0; animation-delay: 1s; }
.float-chip:nth-child(6) { bottom: 12%; left: 8%; animation-delay: 1.6s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.constellation {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.star-map {
  position: relative;
  height: 420px;
}

.star-node {
  position: absolute;
  width: 150px;
  text-align: center;
  transition: transform 0.3s;
}

.star-node:hover { transform: scale(1.06); }

.star-node img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 8px;
  border: 2px solid rgba(180, 220, 255, 0.45);
  box-shadow: 0 0 24px rgba(142, 201, 255, 0.35);
}

.star-node:nth-child(1) { top: 10%; left: 8%; }
.star-node:nth-child(2) { top: 0; right: 12%; }
.star-node:nth-child(3) { bottom: 8%; left: 18%; }
.star-node:nth-child(4) { bottom: 18%; right: 6%; }

.lookbook {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}

.look-card {
  scroll-snap-align: start;
  border-radius: 28px;
  overflow: hidden;
  min-height: 460px;
  position: relative;
}

.look-card img {
  width: 100%;
  height: 460px;
  object-fit: contain;
  object-position: center center;
}

.look-card span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(10, 8, 24, 0.55);
  backdrop-filter: blur(8px);
}

.quote-band {
  text-align: center;
  padding: 70px 20px;
}

.quote-band q {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-style: italic;
  display: block;
  max-width: 18em;
  margin: 0 auto;
}

/* ================= JACKETS ================= */
.page-jackets .banner {
  min-height: 58vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  border-radius: 36px;
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid var(--glass-border);
}

.banner-copy {
  padding: 56px 48px;
  background:
    linear-gradient(135deg, rgba(40, 20, 80, 0.55), rgba(10, 20, 50, 0.4));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.banner-copy h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

.banner-visual {
  position: relative;
}

.banner-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  min-height: 420px;
  background:
    radial-gradient(circle at 50% 30%, rgba(80, 40, 140, 0.35), transparent 55%),
    #10081c;
}

.jacket-stage {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  margin: 56px 0 40px;
}

.featured-jacket {
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  min-height: 720px;
}

.featured-jacket img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background:
    radial-gradient(circle at 50% 30%, rgba(80, 40, 140, 0.35), transparent 55%),
    #10081c;
  position: absolute;
  inset: 0;
  transition: transform 0.6s;
}

.featured-jacket:hover img {
  transform: scale(1.05);
}

.featured-jacket .info {
  position: absolute;
  inset: auto 20px 20px 20px;
  padding: 22px;
  border-radius: 22px;
}

.jacket-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.jacket-card {
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.jacket-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(80, 40, 160, 0.35);
}

.jacket-card img,
.fold-card img,
.yarn-frame img,
.glove-card img,
.globe-photo img,
.detail-photo img,
.look-card img,
.ribbon img {
  object-fit: contain;
  object-position: center center;
  background:
    radial-gradient(circle at 50% 30%, rgba(80, 40, 140, 0.35), transparent 55%),
    #10081c;
}

.jacket-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  min-height: 380px;
  object-fit: contain;
  object-position: center center;
}

.jacket-card .meta,
.pad {
  padding: 14px 16px 18px;
}

.jacket-card {
  position: relative;
}

.jacket-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(200, 230, 255, 0.12);
  border-radius: 16px;
  pointer-events: none;
}

/* ================= SWEATERS ================= */
.page-sweaters {
  --warm: #f3e7d8;
}

.knit-hero {
  text-align: center;
  padding: 70px 16px 40px;
  background:
    radial-gradient(600px 280px at 50% 0%, rgba(232, 180, 212, 0.2), transparent 70%);
}

.knit-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
}

.knit-pattern {
  height: 18px;
  margin: 24px auto 0;
  width: min(420px, 80%);
  background:
    repeating-linear-gradient(90deg,
      rgba(200, 170, 230, 0.0) 0 8px,
      rgba(200, 170, 230, 0.45) 8px 10px,
      rgba(160, 210, 240, 0.0) 10px 18px);
  border-radius: 999px;
}

.rail {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 10px 4px 30px;
}

.sweater-card {
  min-width: 260px;
  text-align: center;
}

.yarn-frame {
  width: 240px;
  height: 320px;
  margin: 0 auto 16px;
  border-radius: 28px;
  overflow: hidden;
  border: 8px solid rgba(255, 240, 250, 0.12);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 20px 40px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s, box-shadow 0.35s;
}

.sweater-card:hover .yarn-frame {
  transform: rotate(-2deg) scale(1.03);
  box-shadow: 0 0 40px rgba(232, 180, 212, 0.35);
}

.yarn-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.sweater-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 20px;
}

.fold-card {
  border-radius: 28px 28px 18px 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid var(--glass-border);
}

.fold-card img {
  height: auto;
  width: 100%;
  aspect-ratio: 3 / 4;
  min-height: 360px;
  object-fit: contain;
  object-position: center center;
}

/* ================= GLOVES ================= */
.page-gloves .split-story {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: start;
}

.sticky-note {
  position: sticky;
  top: 110px;
  padding: 36px;
  border-radius: 32px;
}

.glove-list {
  display: grid;
  gap: 18px;
}

.glove-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
  padding: 14px;
  border-radius: 28px;
  align-items: center;
  transition: transform 0.25s;
}

.glove-card:hover {
  transform: translateX(8px);
}

.glove-card img {
  height: 280px;
  width: 240px;
  object-fit: contain;
  object-position: center;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ================= CAPS ================= */
.caps-sky {
  text-align: center;
  padding: 60px 16px 10px;
}

.caps-sky h1 {
  font-size: clamp(2.5rem, 6vw, 4.6rem);
}

.hat-window {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  padding: 30px 0 20px;
}

.globe {
  width: min(300px, 100%);
  text-align: center;
}

.globe-photo {
  width: 260px;
  height: 320px;
  margin: 0 auto 14px;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  box-shadow:
    inset 0 -20px 30px rgba(180, 220, 255, 0.15),
    0 0 0 10px rgba(255, 255, 255, 0.06),
    0 20px 50px rgba(0, 0, 0, 0.3);
}

.globe-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transition: transform 0.5s;
}

.globe:hover img {
  transform: scale(1.1) rotate(4deg);
}

.globe:nth-child(even) {
  margin-top: 40px;
}

.globe:nth-child(3n) {
  margin-top: 70px;
}

/* ================= SCARVES ================= */
.page-scarves .flow-hero {
  padding: 50px 0 20px;
}

.page-scarves .flow-hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  background: linear-gradient(90deg, #fff, #cbb6ef, #9fd4ea);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ribbon {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  min-height: 280px;
  border-radius: 0 40px 40px 0;
  overflow: hidden;
  margin: 22px 0;
  border: 1px solid var(--glass-border);
}

.ribbon:nth-child(even) {
  grid-template-columns: 0.8fr 1.4fr;
  border-radius: 40px 0 0 40px;
}

.ribbon img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: contain;
  object-position: center center;
}

.ribbon .meta {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ================= ACCESSORIES ================= */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 16px;
}

.bento-item {
  border-radius: 26px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--glass-border);
}

.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #10081c;
  transition: transform 0.45s;
}

.bento-item:hover img {
  transform: scale(1.08);
}

.bento-item .overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 14px;
  background: linear-gradient(transparent, rgba(8, 6, 20, 0.88));
}

.bento-item .overlay h3 {
  font-size: 1.05rem;
}

.bento-item .overlay .product-actions .btn {
  padding: 8px 12px;
}

.bento-item:not(.lg):not(.md):not(.tall) .stars {
  display: none;
}

.bento-item:not(.lg):not(.md):not(.tall) .overlay h3 {
  font-size: 0.95rem;
}

.bento-item.lg { grid-column: span 2; grid-row: span 2; }
.bento-item.md { grid-column: span 2; }
.bento-item.tall { grid-row: span 2; }

.acc-intro {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin: 36px 0 28px;
}

/* ================= ABOUT ================= */
.about-open {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 16px;
}

.about-open h1 {
  font-size: clamp(3rem, 8vw, 6.2rem);
}

.chapters {
  display: grid;
  gap: 80px;
}

.chapter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.chapter:nth-child(even) {
  direction: rtl;
}

.chapter:nth-child(even) > * {
  direction: ltr;
}

.galaxy-art {
  height: 340px;
  border-radius: 50% 50% 40% 60%;
  background:
    radial-gradient(circle at 40% 40%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 70% 30%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 30% 70%, #cbb6ef 0 2px, transparent 3px),
    radial-gradient(circle at 60% 60%, #9fd4ea, transparent 42%),
    radial-gradient(circle at 35% 40%, #b48cff, transparent 38%),
    #120822;
  box-shadow: 0 0 80px rgba(140, 120, 255, 0.28);
  position: relative;
}

.galaxy-art.alt {
  border-radius: 40% 60% 50% 50%;
  background:
    radial-gradient(circle at 50% 80%, rgba(255,255,255,.7) 0 40px, transparent 41px),
    radial-gradient(circle at 50% 20%, #9fd4ea, transparent 40%),
    radial-gradient(circle at 70% 50%, #b48cff, transparent 45%),
    #0b1024;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.value-orb {
  text-align: center;
  padding: 32px 20px;
  border-radius: 50%;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
}

/* ================= CONTACT ================= */
.contact-shell {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  margin: 40px 0 20px;
}

.letter {
  padding: 36px;
  border-radius: 32px;
}

.letter h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 8px;
}

.form-grid {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lavender);
}

.field input,
.field textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 12px 14px;
  color: #fff;
  outline: none;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  box-shadow: 0 0 0 2px rgba(159, 212, 234, 0.3);
}

.store-card {
  padding: 32px;
  border-radius: 32px;
  display: grid;
  gap: 22px;
  align-content: start;
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--glass-border);
  transition: 0.2s;
}

.socials a:hover {
  background: rgba(159, 212, 234, 0.16);
  box-shadow: 0 0 18px rgba(159, 212, 234, 0.3);
}

/* Product detail + cart/wishlist pages */
.detail {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  padding: 40px 0 20px;
}

.detail-photo {
  border-radius: 32px;
  overflow: hidden;
  min-height: 520px;
}

.detail-photo {
  border-radius: 32px;
  overflow: hidden;
  min-height: 640px;
}

.detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  min-height: 640px;
}

.cart-page-list {
  display: grid;
  gap: 14px;
}

.cart-page-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  padding: 14px;
  border-radius: 22px;
  align-items: center;
}

.cart-page-row img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 16px;
}

.fold-card {
  transition: transform 0.3s, box-shadow 0.3s;
}

.fold-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(90, 50, 160, 0.32);
}

.page-sweaters .sky {
  background:
    radial-gradient(1000px 600px at 70% -10%, rgba(232, 180, 212, 0.22), transparent 55%),
    radial-gradient(800px 500px at 10% 40%, rgba(90, 40, 100, 0.3), transparent 50%),
    linear-gradient(180deg, #120818 0%, #1a1028 50%, #0e0c20 100%);
}

.page-gloves .sky {
  background:
    radial-gradient(900px 500px at 20% 0%, rgba(159, 212, 234, 0.22), transparent 50%),
    linear-gradient(180deg, #08101c 0%, #120824 100%);
}

.page-caps .sky {
  background:
    radial-gradient(circle at 50% 20%, rgba(180, 140, 255, 0.28), transparent 45%),
    linear-gradient(180deg, #0a0718, #140e2a);
}

.page-scarves .sky {
  background:
    linear-gradient(120deg, #10081c 0%, #1a1033 40%, #0c1428 100%);
}

.page-about .sky {
  background:
    radial-gradient(circle at 50% 30%, rgba(120, 80, 200, 0.28), transparent 50%),
    #070716;
}

.page-contact .sky {
  background:
    radial-gradient(800px 400px at 80% 10%, rgba(159, 212, 234, 0.2), transparent 50%),
    #08071a;
}

/* Responsive pages */
@media (max-width: 980px) {
  .page-home .hero,
  .page-jackets .banner,
  .jacket-stage,
  .constellation,
  .page-gloves .split-story,
  .chapter,
  .contact-shell,
  .detail,
  .ribbon,
  .ribbon:nth-child(even),
  .acc-intro,
  .sweater-stack {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .bento {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 160px;
  }

  .values {
    grid-template-columns: 1fr;
  }

  .value-orb {
    aspect-ratio: auto;
    border-radius: 28px;
  }

  .star-map {
    height: 340px;
  }

  .hero-orbit {
    min-height: 420px;
  }

  .glove-card {
    grid-template-columns: 1fr;
  }

  .glove-card img {
    width: 100%;
    height: 340px;
  }

  .globe:nth-child(even),
  .globe:nth-child(3n) {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .bento,
  .jacket-grid {
    grid-template-columns: 1fr;
  }

  .bento-item.lg,
  .bento-item.md,
  .bento-item.tall {
    grid-column: span 1;
    grid-row: span 1;
  }
}
