:root {
  --background: #faf9f7;
  --foreground: #1a1815;
  --font-display: "Cormorant", Georgia, serif;
  --font-ui: "Jost", system-ui, sans-serif;
  --type-display: clamp(2.8rem, 5.6vw, 5.25rem);
  --type-feature: clamp(2.55rem, 5vw, 5rem);
  --type-section: clamp(2.2rem, 4.4vw, 4rem);
  --type-card: clamp(1.65rem, 2.35vw, 2.2rem);
  --type-body: clamp(0.94rem, 0.35vw + 0.88rem, 1.02rem);
  --surface: #f2efeb;
  --surface-2: #e8e0d6;
  --taupe: #9c8b7a;
  --champagne: #d4c4b5;
  --rose: #b79e8c;
  --sage: #7f8b7a;
  --wine: #6f3434;
  --ink-soft: #59524a;
  --muted: #8a8279;
  --border: #e9e4dc;
  --shadow: 0 24px 70px rgba(67, 53, 39, 0.13);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: #fbfaf8;
  color: var(--foreground);
  font-family: var(--font-ui);
  font-weight: 300;
}

body.menu-open {
  overflow: hidden;
}

body.checkout-open {
  overflow: hidden;
}

body.product-detail-open {
  overflow: hidden;
}

body.profile-open {
  overflow: hidden;
}

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: 0.75rem;
  z-index: 120;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(250, 249, 247, 0.45);
  background: var(--foreground);
  color: var(--background);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform 260ms var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

button,
input {
  font: inherit;
}

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

.announcement {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--foreground);
  color: var(--background);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: transform 400ms var(--ease);
}

.announcement.is-hidden {
  transform: translateY(-100%);
}

.site-header {
  position: fixed;
  inset: 36px 0 auto;
  z-index: 60;
  height: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 2.6vw, 2.75rem);
  padding: 0 clamp(1.25rem, 4vw, 4rem);
  transition: inset 400ms var(--ease), background 400ms var(--ease), box-shadow 400ms var(--ease);
}

.site-header.is-scrolled {
  inset-block-start: 0;
  background: rgba(250, 249, 247, 0.91);
  box-shadow: 0 1px 0 var(--border);
  backdrop-filter: blur(18px);
}

.brand {
  position: relative;
  grid-column: 2;
  width: clamp(7.9rem, 10vw, 9.1rem);
  height: 56px;
  display: grid;
  place-items: center;
  font-family: "Cormorant", Georgia, serif;
  font-size: clamp(1.75rem, 2.25vw, 2.15rem);
  font-weight: 300;
  letter-spacing: 0.24em;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.brand-word {
  transform: translateX(0.12em);
  transition: opacity 300ms var(--ease), transform 440ms var(--ease), filter 440ms var(--ease);
}

.brand-cat-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(1px) scale(0.96);
  will-change: opacity, transform;
  transition: opacity 220ms var(--ease), transform 280ms var(--ease), filter 280ms var(--ease);
  pointer-events: none;
}

.brand-cat-gif {
  width: clamp(3.4rem, 5.1vw, 4.25rem);
  height: clamp(3.4rem, 5.1vw, 4.25rem);
  object-fit: contain;
  display: block;
  will-change: transform;
  filter: grayscale(1) sepia(0.12) saturate(0.58) brightness(0.66) contrast(1.02);
  opacity: 0.92;
}

.brand:hover .brand-word,
.brand:focus-visible .brand-word {
  opacity: 1;
  filter: none;
  transform: translateX(0.12em);
}

.brand.is-cat-active .brand-word,
.brand.is-cat-active:hover .brand-word,
.brand.is-cat-active:focus-visible .brand-word {
  opacity: 0;
  filter: blur(3px);
  transform: translateX(0.12em) translateY(-2px) scale(0.985);
  transition-duration: 280ms;
}

.brand.is-cat-active .brand-cat-stage {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.nav-left {
  grid-column: 1;
  justify-self: end;
}

.header-right {
  grid-column: 3;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  justify-self: start;
}

.nav-right {
  justify-content: flex-start;
}

.header-actions {
  position: fixed;
  right: clamp(1rem, 3vw, 2.6rem);
  top: calc(36px + 16px);
  margin-left: auto;
  transition: top 400ms var(--ease);
}

.site-header.is-scrolled .header-actions {
  top: 16px;
}

.desktop-nav,
.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(1.15rem, 2.25vw, 2.15rem);
}

.header-actions {
  gap: 0.45rem;
}

.desktop-nav {
  position: relative;
  isolation: isolate;
}

.desktop-nav a,
.text-link {
  position: relative;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.desktop-nav a {
  z-index: 1;
  padding: 0.85rem 0;
  transition: color 280ms var(--ease), transform 280ms var(--ease);
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--taupe);
  transform: translateY(-1px);
}

.nav-orbit {
  position: absolute;
  left: var(--nav-orbit-left, 0);
  top: calc(100% + 0.78rem);
  z-index: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, #fff, rgba(255, 255, 255, 0.2) 38%, transparent 40%),
    var(--taupe);
  opacity: var(--nav-orbit-opacity, 0);
  transform: translateX(-50%) scale(var(--nav-orbit-scale, 0.82));
  box-shadow:
    0 0 0 7px rgba(156, 139, 122, 0.08),
    0 10px 18px rgba(67, 53, 39, 0.16);
  transition:
    left 540ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 240ms ease,
    transform 420ms var(--ease);
}

.nav-orbit::after {
  position: absolute;
  content: "";
  left: 50%;
  top: 50%;
  width: 1px;
  height: 18px;
  background: linear-gradient(rgba(156, 139, 122, 0.35), transparent);
  transform: translate(-50%, -110%);
  opacity: 0.6;
}

.desktop-nav:hover,
.desktop-nav:focus-within {
  --nav-orbit-opacity: 1;
  --nav-orbit-scale: 1;
}

.desktop-nav a::after,
.text-link::after {
  position: absolute;
  content: "";
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 350ms var(--ease);
}

.desktop-nav a:hover::after,
.text-link:hover::after {
  transform: scaleX(1);
}

.icon-button,
.menu-toggle {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.icon-button {
  position: relative;
  width: 40px;
  height: 40px;
}

.bag-icon {
  position: absolute;
  inset: 12px 10px 8px;
  border: 1px solid currentColor;
  border-radius: 0 0 10px 10px;
}

.bag-icon::before {
  position: absolute;
  content: "";
  left: 5px;
  top: -7px;
  width: 8px;
  height: 8px;
  border: 1px solid currentColor;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.bag-count {
  position: absolute;
  right: 3px;
  top: 4px;
  min-width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--taupe);
  color: var(--background);
  font-size: 0.62rem;
}

.profile-icon {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: transform 320ms var(--ease), color 320ms var(--ease);
}

.profile-icon::before,
.profile-icon::after {
  position: absolute;
  left: 50%;
  content: "";
  transform: translateX(-50%);
}

.profile-icon::before {
  top: 3px;
  width: 4px;
  height: 4px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.profile-icon::after {
  bottom: 3px;
  width: 10px;
  height: 5px;
  border: 1px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.profile-button:hover .profile-icon,
.profile-button:focus-visible .profile-icon {
  color: var(--taupe);
  transform: translateY(-1px) scale(1.08);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
}

.menu-toggle span {
  display: block;
  height: 1px;
  margin: 8px 6px;
  background: currentColor;
  transition: transform 300ms var(--ease);
}

.menu-open .menu-toggle span:first-child {
  transform: translateY(4px) rotate(35deg);
}

.menu-open .menu-toggle span:last-child {
  transform: translateY(-5px) rotate(-35deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  align-content: center;
  gap: 1.2rem;
  padding: 7rem 2rem 2rem;
  background: rgba(250, 249, 247, 0.96);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-1rem);
  transition: opacity 350ms var(--ease), transform 350ms var(--ease);
  backdrop-filter: blur(20px);
}

.mobile-menu a {
  font-family: "Cormorant", Georgia, serif;
  font-size: clamp(2.2rem, 13vw, 4rem);
  font-weight: 300;
}

.menu-open .mobile-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.brand-hero {
  position: relative;
  min-height: min(88svh, 54rem);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 9rem clamp(1.25rem, 5vw, 5rem) 5rem;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(250, 249, 247, 0.96), rgba(242, 239, 235, 0.76)),
    var(--background);
}

.brand-hero::before,
.brand-hero::after {
  position: absolute;
  content: "";
  left: clamp(1.25rem, 5vw, 5rem);
  right: clamp(1.25rem, 5vw, 5rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(156, 139, 122, 0.28), transparent);
}

.brand-hero::before {
  top: 8rem;
}

.brand-hero::after {
  bottom: 3.4rem;
}

.hero-brand-stage {
  position: relative;
  width: min(100%, 72rem);
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 1.35rem;
}

.hero-brand-stage > .overline,
.hero-intro,
.hero-brand-stage .hero-actions {
  opacity: 0;
  transform: translateY(12px);
  animation: heroDetailReveal 850ms var(--ease) forwards;
}

.hero-brand-stage > .overline {
  animation-delay: 1040ms;
}

.hero-intro {
  animation-delay: 1040ms;
}

.hero-brand-stage .hero-actions {
  animation-delay: 1240ms;
}

.hero-logo-lockup {
  position: relative;
  width: min(100%, 42rem);
  min-height: clamp(9rem, 19vw, 12rem);
  display: grid;
  place-items: center;
}

.custom-wordmark {
  position: relative;
  width: min(82vw, 32rem);
  aspect-ratio: 944 / 320;
  overflow: hidden;
}

.wordmark-pull {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: wordmarkPullUp 760ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.wordmark-pull img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.92;
}

.wordmark-primary {
  animation-delay: 180ms;
}

.hero-intro {
  max-width: 38rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(0.98rem, 1.6vw, 1.14rem);
  line-height: 1.7;
}

.overline {
  margin: 0 0 1rem;
  color: var(--taupe);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 0.98;
}

h1 {
  font-size: var(--type-display);
  letter-spacing: 0;
}

h1 em,
.difference-intro em {
  color: var(--taupe);
  font-style: italic;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 0.4rem;
}

@keyframes wordmarkPullUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDetailReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.button,
.book-controls button,
.newsletter button,
.product-image button {
  min-height: 44px;
  border: 1px solid var(--foreground);
  padding: 0.9rem 1.35rem;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 300ms var(--ease), background 300ms var(--ease), color 300ms var(--ease);
}

.button:hover,
.book-controls button:hover,
.newsletter button:hover,
.product-image button:hover {
  transform: translateY(-2px);
}

.button.primary,
.newsletter button,
.product-image button {
  background: var(--foreground);
  color: var(--background);
}

.button.secondary,
.book-controls button {
  background: transparent;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  width: 22px;
  height: 34px;
  border: 1px solid var(--champagne);
  border-radius: 20px;
}

.scroll-cue span {
  display: block;
  width: 3px;
  height: 3px;
  margin: 8px auto;
  border-radius: 50%;
  background: var(--taupe);
  animation: scrollDot 1.8s infinite;
}

section {
  padding: clamp(4.5rem, 10vw, 8.5rem) clamp(1.25rem, 5vw, 5rem);
}

.motion-banner {
  height: clamp(18rem, 48vw, 43rem);
  max-height: 72svh;
  min-height: 16rem;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  background: #e9e4dc;
}

.motion-banner__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.section-heading,
.section-row {
  max-width: 78rem;
  margin: 0 auto clamp(2rem, 5vw, 4rem);
}

.section-heading {
  text-align: center;
}

.section-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

h2 {
  font-size: clamp(2.35rem, 5vw, 4.5rem);
}

.lookbook {
  scroll-margin-top: 5.5rem;
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
  background: #f8f5f1;
}

.opening-lookbook {
  min-height: auto;
}

.lookbook .section-heading {
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

.book-shell {
  max-width: 90rem;
  margin: 0 auto;
}

.magazine {
  position: relative;
  max-width: 86rem;
  min-height: clamp(25rem, 40vw, 35rem);
  margin: 0 auto;
  perspective: 2200px;
  perspective-origin: 50% 48%;
  contain: layout;
}

.magazine-bed {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: -2.2rem;
  height: 4.4rem;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(67, 53, 39, 0.24), transparent 68%);
  filter: blur(12px);
}

.flipbook-shell {
  display: grid;
  place-items: center;
  padding: clamp(0.35rem, 1vw, 0.8rem);
}

.flipbook {
  position: relative;
  z-index: 2;
  width: min(100%, 84rem);
  min-height: clamp(24rem, 39vw, 34rem);
  margin: 0 auto;
  filter: drop-shadow(0 26px 44px rgba(67, 53, 39, 0.16));
  backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-tap-highlight-color: transparent;
}

.magazine.is-pageflip-ready .flipbook {
  min-height: 0;
}

.flipbook::before {
  position: absolute;
  content: "";
  z-index: 5;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background:
    linear-gradient(180deg, transparent, rgba(67, 53, 39, 0.25) 12%, rgba(67, 53, 39, 0.32) 50%, rgba(67, 53, 39, 0.18) 88%, transparent);
  box-shadow:
    -12px 0 24px rgba(67, 53, 39, 0.1),
    12px 0 24px rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

/* PageFlip switches to one-page portrait mode before the site breakpoint. */
.flipbook:has(.stf__wrapper.--portrait)::before {
  display: none;
}

.flip-page {
  overflow: hidden;
  border: 1px solid rgba(233, 228, 220, 0.95);
  border-radius: 8px;
  background: var(--background);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.flip-page[data-density="hard"] {
  background:
    linear-gradient(135deg, rgba(250, 249, 247, 0.95), rgba(232, 224, 214, 0.7)),
    var(--surface);
}

.flip-page .page-content {
  height: 100%;
}

.flip-page .page-content img {
  user-select: none;
  -webkit-user-drag: none;
}

.flip-page .page-content--full-artwork {
  display: block;
  padding: 0;
  background: #f5f0e7;
}

.flip-page .page-content--full-artwork img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
}

.page-content--full-artwork {
  position: relative;
}

.lookbook-product-hotspot {
  position: absolute;
  left: var(--hotspot-x);
  top: var(--hotspot-y);
  width: var(--hotspot-width);
  height: var(--hotspot-height);
  z-index: 2;
  padding: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.01);
  cursor: pointer;
  transition: background 260ms var(--ease), border-color 260ms var(--ease), box-shadow 260ms var(--ease);
}

.lookbook-product-hotspot:hover,
.lookbook-product-hotspot:focus-visible {
  border-bottom-color: rgba(156, 139, 122, 0.6);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 0.35rem rgba(255, 255, 255, 0.08);
  outline: none;
}

.magazine.is-pageflip-ready .stf__parent {
  margin: 0 auto;
  isolation: isolate;
}

.magazine.is-pageflip-ready .stf__item {
  background: var(--background);
}

.magazine.is-pageflip-ready .stf__outerShadow,
.magazine.is-pageflip-ready .stf__innerShadow {
  pointer-events: none;
}

.magazine.is-busy .flipbook {
  cursor: grabbing;
}

.magazine.is-fallback .flipbook {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(31rem, 52vw, 42rem);
}

.magazine.is-fallback .flip-page {
  display: none;
  height: 100%;
}

.magazine.is-fallback .flip-page.is-visible {
  display: block;
}

.magazine.is-fallback .flip-page.is-left {
  border-radius: 8px 0 0 8px;
}

.magazine.is-fallback .flip-page.is-right {
  border-radius: 0 8px 8px 0;
}

.magazine-spread {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transform: translateZ(0) rotateX(1deg);
  transform-style: preserve-3d;
}

.magazine-side,
.page-face {
  position: relative;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(233, 228, 220, 0.9);
  background: var(--background);
  box-shadow: 0 16px 42px rgba(67, 53, 39, 0.11);
  backface-visibility: hidden;
  contain: paint;
}

.magazine-left {
  border-radius: 8px 0 0 8px;
  transform: rotateY(1.2deg);
  transform-origin: right center;
}

.magazine-right {
  border-radius: 0 8px 8px 0;
  transform: rotateY(-1.2deg);
  transform-origin: left center;
}

.magazine-side::before,
.page-face::before {
  position: absolute;
  content: "";
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.magazine-left::before {
  background: linear-gradient(90deg, transparent 70%, rgba(67, 53, 39, 0.14));
}

.magazine-right::before {
  background: linear-gradient(90deg, rgba(67, 53, 39, 0.12), transparent 26%);
}

.page-content {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(0.85rem, 1.8vw, 1.4rem);
  overflow: hidden;
  padding: clamp(1rem, 2.45vw, 2.35rem);
}

.page-content.is-dark {
  place-items: center;
  text-align: center;
  color: var(--background);
  background:
    linear-gradient(rgba(26, 24, 21, 0.5), rgba(26, 24, 21, 0.68)),
    var(--page-image) var(--page-position, center) / cover;
}

.page-content:not(.is-dark) {
  background:
    linear-gradient(135deg, rgba(250, 249, 247, 0.72), rgba(242, 239, 235, 0.34)),
    var(--surface);
}

.page-content img {
  width: 100%;
  height: 100%;
  min-height: 0;
  align-self: stretch;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(67, 53, 39, 0.1);
  transform: translateZ(0);
}

.page-copy {
  align-self: end;
  min-height: 0;
}

.page-copy h3 {
  font-size: clamp(2rem, 4.1vw, 4.15rem);
}

.page-copy p:not(.overline) {
  max-width: 22rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.page-content.is-dark .page-copy p:not(.overline),
.page-content.is-dark .overline {
  color: rgba(250, 249, 247, 0.74);
}

.page-content.is-dark .page-copy {
  align-self: center;
}

.page-turner {
  position: absolute;
  z-index: 8;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  pointer-events: none;
  transform-origin: left center;
  transform-style: preserve-3d;
  opacity: 0;
  will-change: opacity, transform;
  contain: layout paint;
  filter: drop-shadow(-22px 20px 30px rgba(67, 53, 39, 0.2));
}

.page-turner.is-turning-next {
  animation: pageTurnNext 1280ms cubic-bezier(0.16, 0.72, 0.14, 1) both;
}

.page-turner.is-turning-prev {
  left: 0;
  right: auto;
  transform-origin: right center;
  animation: pageTurnPrev 1280ms cubic-bezier(0.16, 0.72, 0.14, 1) both;
}

.page-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  backface-visibility: hidden;
  will-change: transform;
  transform-style: preserve-3d;
}

.page-turner .page-face {
  box-shadow: 0 10px 28px rgba(67, 53, 39, 0.1);
}

.page-turner .page-content img {
  box-shadow: none;
}

.page-front {
  border-radius: 0 8px 8px 0;
  border: 1px solid rgba(233, 228, 220, 0.76);
  background: var(--surface);
  box-shadow:
    -14px 16px 34px rgba(67, 53, 39, 0.18),
    inset -16px 0 24px rgba(67, 53, 39, 0.08),
    inset 10px 0 18px rgba(255, 255, 255, 0.36);
  transform: translateZ(2px);
  transform-origin: left center;
}

.page-front::before,
.page-front::after {
  position: absolute;
  content: "";
  inset: 0;
  z-index: 8;
  pointer-events: none;
  opacity: 0;
}

.page-front::before {
  background:
    linear-gradient(90deg, rgba(67, 53, 39, 0.28), transparent 16%, rgba(255, 255, 255, 0.5) 42%, transparent 68%),
    radial-gradient(ellipse at left center, rgba(255, 255, 255, 0.48), transparent 54%);
}

.page-front::after {
  background:
    linear-gradient(90deg, rgba(26, 24, 21, 0.28), transparent 26%),
    radial-gradient(ellipse at right center, rgba(67, 53, 39, 0.24), transparent 58%);
}

.page-back {
  border-radius: 8px 0 0 8px;
  opacity: 0;
  transform: none;
  pointer-events: none;
}

.page-turner.is-turning-next .page-front {
  animation: pageCurlSheetNext 1280ms cubic-bezier(0.16, 0.72, 0.14, 1) both;
}

.page-turner.is-turning-prev .page-front {
  transform-origin: right center;
  animation: pageCurlSheetPrev 1280ms cubic-bezier(0.16, 0.72, 0.14, 1) both;
}

.page-turner.is-turning-next .page-content {
  animation: pageBendNext 1280ms cubic-bezier(0.16, 0.72, 0.14, 1) both;
}

.page-turner.is-turning-prev .page-content {
  animation: pageBendPrev 1280ms cubic-bezier(0.16, 0.72, 0.14, 1) both;
}

.page-turner.is-turning-next .page-front::before,
.page-turner.is-turning-prev .page-front::before {
  animation: pageCurlLight 1280ms cubic-bezier(0.16, 0.72, 0.14, 1) both;
}

.page-turner.is-turning-next .page-front::after,
.page-turner.is-turning-prev .page-front::after {
  animation: pageFaceShadow 1280ms cubic-bezier(0.16, 0.72, 0.14, 1) both;
}

.page-turner::before {
  position: absolute;
  content: "";
  inset: 0;
  z-index: 9;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(67, 53, 39, 0.38), transparent 18%, rgba(255, 255, 255, 0.34) 43%, transparent 72%),
    radial-gradient(ellipse at left center, rgba(67, 53, 39, 0.3), transparent 60%);
  animation: pageTurnerCast 1280ms cubic-bezier(0.16, 0.72, 0.14, 1) both;
}

.page-turner::after {
  position: absolute;
  content: "";
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(90deg, rgba(26, 24, 21, 0.2), transparent 28%),
    radial-gradient(ellipse at center, rgba(67, 53, 39, 0.24), transparent 62%);
  animation: pageMovingShadow 1280ms cubic-bezier(0.16, 0.72, 0.14, 1) both;
}

.book-image-preload {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-9999px);
}

.book-spine {
  position: absolute;
  z-index: 12;
  top: 0;
  bottom: 0;
  left: calc(50% - 1px);
  width: 2px;
  background:
    linear-gradient(180deg, transparent, rgba(67, 53, 39, 0.22) 12%, rgba(67, 53, 39, 0.3) 50%, rgba(67, 53, 39, 0.18) 88%, transparent);
  box-shadow:
    -10px 0 22px rgba(67, 53, 39, 0.12),
    10px 0 22px rgba(255, 255, 255, 0.32);
  pointer-events: none;
}

.magazine.is-busy {
  cursor: wait;
}

.magazine:not(.is-busy) {
  cursor: pointer;
}

@keyframes pageTurnNext {
  0% {
    opacity: 1;
    transform: translateZ(22px);
  }
  88% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateZ(0);
  }
}

@keyframes pageTurnPrev {
  0% {
    opacity: 1;
    transform: translateZ(22px);
  }
  88% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateZ(0);
  }
}

@keyframes pageCurlSheetNext {
  0% {
    opacity: 1;
    transform: perspective(1400px) rotateY(0deg) translateX(0) translateZ(2px) scaleX(1);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    border-radius: 0 8px 8px 0;
  }
  18% {
    opacity: 1;
    transform: perspective(1400px) rotateY(-10deg) translateX(-0.6%) translateZ(18px) scaleX(0.995) skewY(-0.25deg);
    clip-path: polygon(0 0, 99% 0.5%, 100% 100%, 0 100%);
    border-radius: 0 14px 14px 0;
  }
  42% {
    opacity: 1;
    transform: perspective(1400px) rotateY(-34deg) translateX(-3.5%) translateZ(34px) scaleX(0.965) skewY(-0.9deg);
    clip-path: polygon(0 0, 96% 2%, 99% 98%, 0 100%);
    border-radius: 6px 22px 22px 6px;
  }
  62% {
    opacity: 0.96;
    transform: perspective(1400px) rotateY(-76deg) translateX(-10%) translateZ(52px) scaleX(0.86) skewY(-1.8deg);
    clip-path: polygon(0 0, 88% 5%, 94% 95%, 0 100%);
    border-radius: 14px 28px 28px 14px;
  }
  80% {
    opacity: 0.7;
    transform: perspective(1400px) rotateY(-112deg) translateX(-24%) translateZ(38px) scaleX(0.72) skewY(-1.1deg);
    clip-path: polygon(0 0, 74% 8%, 84% 92%, 0 100%);
    border-radius: 22px 12px 12px 22px;
  }
  100% {
    opacity: 0;
    transform: perspective(1400px) rotateY(-152deg) translateX(-50%) translateZ(0) scaleX(0.76);
    clip-path: polygon(0 0, 58% 10%, 72% 90%, 0 100%);
    border-radius: 18px 0 0 18px;
  }
}

@keyframes pageCurlSheetPrev {
  0% {
    opacity: 1;
    transform: perspective(1400px) rotateY(0deg) translateX(0) translateZ(2px) scaleX(1);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    border-radius: 8px 0 0 8px;
  }
  18% {
    opacity: 1;
    transform: perspective(1400px) rotateY(10deg) translateX(0.6%) translateZ(18px) scaleX(0.995) skewY(0.25deg);
    clip-path: polygon(1% 0.5%, 100% 0, 100% 100%, 0 100%);
    border-radius: 14px 0 0 14px;
  }
  42% {
    opacity: 1;
    transform: perspective(1400px) rotateY(34deg) translateX(3.5%) translateZ(34px) scaleX(0.965) skewY(0.9deg);
    clip-path: polygon(4% 2%, 100% 0, 100% 100%, 1% 98%);
    border-radius: 22px 6px 6px 22px;
  }
  62% {
    opacity: 0.96;
    transform: perspective(1400px) rotateY(76deg) translateX(10%) translateZ(52px) scaleX(0.86) skewY(1.8deg);
    clip-path: polygon(12% 5%, 100% 0, 100% 100%, 6% 95%);
    border-radius: 28px 14px 14px 28px;
  }
  80% {
    opacity: 0.7;
    transform: perspective(1400px) rotateY(112deg) translateX(24%) translateZ(38px) scaleX(0.72) skewY(1.1deg);
    clip-path: polygon(28% 8%, 100% 0, 100% 100%, 18% 92%);
    border-radius: 12px 22px 22px 12px;
  }
  100% {
    opacity: 0;
    transform: perspective(1400px) rotateY(152deg) translateX(50%) translateZ(0) scaleX(0.76);
    clip-path: polygon(42% 10%, 100% 0, 100% 100%, 28% 90%);
    border-radius: 0 18px 18px 0;
  }
}

@keyframes pageCurlLight {
  0%,
  100% {
    opacity: 0;
  }
  28%,
  68% {
    opacity: 1;
  }
}

@keyframes pageFaceShadow {
  0%,
  100% {
    opacity: 0;
    transform: translateX(0) scaleX(1);
  }
  24% {
    opacity: 0.3;
    transform: translateX(-2%) scaleX(0.98);
  }
  56% {
    opacity: 0.78;
    transform: translateX(-10%) scaleX(0.86);
  }
  82% {
    opacity: 0.34;
    transform: translateX(-18%) scaleX(0.74);
  }
}

@keyframes pageTurnerCast {
  0%,
  100% {
    opacity: 0;
  }
  32% {
    opacity: 0.34;
  }
  62% {
    opacity: 0.72;
  }
  82% {
    opacity: 0.26;
  }
}

@keyframes pageMovingShadow {
  0%,
  100% {
    opacity: 0;
    transform: translateX(0) scaleX(1);
  }
  24% {
    opacity: 0.55;
    transform: translateX(-2%) scaleX(0.96);
  }
  54% {
    opacity: 0.78;
    transform: translateX(-6%) scaleX(0.9);
  }
  78% {
    opacity: 0.36;
    transform: translateX(-2%) scaleX(0.98);
  }
}

@keyframes pageBendNext {
  0%,
  100% {
    transform: translateZ(0) scaleX(1) skewY(0deg);
  }
  38% {
    transform: translateZ(12px) scaleX(0.975) skewY(-0.8deg);
  }
  62% {
    transform: translateZ(18px) scaleX(0.945) skewY(-1.4deg);
  }
  82% {
    transform: translateZ(5px) scaleX(0.985) skewY(-0.3deg);
  }
}

@keyframes pageBendPrev {
  0%,
  100% {
    transform: translateZ(0) scaleX(1) skewY(0deg);
  }
  38% {
    transform: translateZ(12px) scaleX(0.975) skewY(0.8deg);
  }
  62% {
    transform: translateZ(18px) scaleX(0.945) skewY(1.4deg);
  }
  82% {
    transform: translateZ(5px) scaleX(0.985) skewY(0.3deg);
  }
}

.book {
  position: relative;
  min-height: clamp(30rem, 62vw, 47rem);
  perspective: 1800px;
}

.book-page {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(1.25rem, 4vw, 4rem);
  border: 1px solid rgba(233, 228, 220, 0.88);
  border-radius: 8px;
  background: var(--background);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.985) rotateY(-8deg);
  transform-origin: left center;
  transition: opacity 550ms var(--ease), transform 650ms var(--ease);
}

.book-page.is-active {
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) rotateY(0);
}

.book-page.cover {
  grid-template-columns: 1fr;
  place-items: center;
  text-align: center;
  background:
    linear-gradient(rgba(26, 24, 21, 0.82), rgba(26, 24, 21, 0.82)),
    url("/home/assets/collection-minimal.png") center / cover;
  color: var(--background);
}

.book-page h3 {
  font-size: clamp(2.2rem, 6vw, 6rem);
}

.book-page img {
  width: 100%;
  height: min(62vh, 34rem);
  object-fit: cover;
  border-radius: 6px;
}

.spread-copy p:not(.overline) {
  max-width: 23rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.corner-hint {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  border: 1px solid rgba(250, 249, 247, 0.55);
  background: rgba(250, 249, 247, 0.08);
  color: inherit;
  padding: 0.8rem 1rem;
  cursor: pointer;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.book-controls,
.progress-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.2rem;
}

.book-controls p {
  min-width: 5rem;
  text-align: center;
  color: var(--muted);
}

.book-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
  transform: none;
}

.progress-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--champagne);
  opacity: 0.45;
}

.progress-dots span.is-active {
  background: var(--taupe);
  opacity: 1;
  transform: scale(1.35);
}

.product-grid,
.collection-grid,
.footer-grid {
  max-width: 78rem;
  margin: 0 auto;
  display: grid;
  gap: 1.2rem;
}

.product-grid {
  position: relative;
  z-index: 1;
  display: block;
  max-width: none;
  overflow: hidden;
  padding-block: 1.25rem 2rem;
}

.fit-sort-status {
  margin: 0.65rem 0 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fit-sort-status::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: var(--champagne);
  display: inline-block;
  vertical-align: 0.05rem;
}

.product-rail-wrap {
  position: relative;
}

.product-rail-nav {
  position: absolute;
  z-index: 8;
  top: 42%;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(26, 24, 21, 0.22);
  border-radius: 50%;
  background: rgba(250, 249, 247, 0.88);
  color: var(--foreground);
  box-shadow: 0 12px 30px rgba(67, 53, 39, 0.12);
  cursor: pointer;
  opacity: 0.78;
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
  transition: opacity 260ms var(--ease), transform 320ms var(--ease), background 320ms var(--ease);
}

.product-rail-nav:hover,
.product-rail-nav:focus-visible {
  outline: none;
  background: var(--background);
  opacity: 1;
  transform: translateY(-50%) scale(1.08);
}

.product-rail-nav.is-prev {
  left: 0.65rem;
}

.product-rail-nav.is-next {
  right: 0.65rem;
}

.product-rail-nav span {
  font-size: 1.05rem;
  line-height: 1;
}

.products {
  --bestseller-wash: rgba(196, 161, 154, 0.26);
  --bestseller-ink: var(--foreground);
  --pointer-x: 50%;
  --pointer-y: 50%;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.products::before {
  position: absolute;
  content: "";
  z-index: 0;
  inset: 0;
  background: radial-gradient(
    circle 23rem at var(--pointer-x) var(--pointer-y),
    var(--bestseller-wash),
    transparent 66%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 520ms var(--ease), background 520ms var(--ease);
}

.products.has-product-focus::before {
  opacity: 1;
}

.products .section-row {
  position: relative;
  z-index: 1;
}

.products .section-row h2,
.products .section-row .text-link {
  color: var(--foreground);
}

.product-velocity-track,
.product-sequence {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
}

.product-velocity-track {
  will-change: transform;
}

.product-sequence {
  gap: 1.2rem;
  padding-right: 1.2rem;
}

.product-card {
  flex: 0 0 clamp(15rem, 22vw, 18rem);
  width: clamp(15rem, 22vw, 18rem);
  opacity: 1;
  filter: saturate(1) contrast(1);
  transform: translateY(0);
  transition:
    opacity 420ms var(--ease),
    filter 520ms var(--ease),
    transform 520ms var(--ease),
    color 520ms var(--ease);
}

.product-grid.has-product-focus .product-card {
  opacity: 0.5;
  filter: saturate(0.5) contrast(0.86);
}

.product-grid.has-product-focus .product-card.is-product-focus {
  z-index: 2;
  opacity: 1;
  filter: saturate(1.08) contrast(1.06);
  transform: translateY(-0.55rem);
}

.product-image {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 46px rgba(67, 53, 39, 0.11);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}

.product-card:hover .product-image img {
  transform: scale(1.055);
}

.product-card.is-recommended-focus {
  animation: recommendedFocus 1500ms var(--ease);
}

.product-image button {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  opacity: 0;
  transform: translateY(1rem);
}

.product-card:hover .product-image button,
.product-image:focus-within button {
  opacity: 1;
  transform: translateY(0);
}

.badge {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 1;
  border-radius: 999px;
  background: rgba(250, 249, 247, 0.8);
  padding: 0.35rem 0.6rem;
  color: var(--taupe);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.product-meta h3 {
  font-size: 1.25rem;
  line-height: 1.2;
}

.product-meta p,
.product-card > span {
  margin: 0;
  color: var(--muted);
}

.product-card > span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
}

.product-purchase {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.product-purchase label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-purchase select {
  min-width: 5.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(250, 249, 247, 0.72);
  color: var(--foreground);
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
}

.product-purchase p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.checkout-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(26, 24, 21, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms var(--ease);
  backdrop-filter: blur(5px);
}

.checkout-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  width: min(100vw, 31rem);
  height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: auto;
  padding: 1.4rem;
  background: rgba(250, 249, 247, 0.96);
  box-shadow: -24px 0 70px rgba(67, 53, 39, 0.18);
  transform: translateX(104%);
  transition: transform 420ms var(--ease);
  backdrop-filter: blur(18px);
}

.checkout-open .checkout-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.checkout-open .checkout-drawer {
  transform: translateX(0);
}

.checkout-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}

.checkout-header h2 {
  font-size: clamp(2.2rem, 6vw, 3.3rem);
}

.checkout-announcement {
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-bottom: 1px solid transparent;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(-0.35rem);
  transition: min-height 260ms var(--ease), margin 260ms var(--ease), padding 260ms var(--ease), opacity 220ms var(--ease), transform 260ms var(--ease), border-color 260ms var(--ease);
}

.checkout-announcement.is-visible {
  min-height: 2.65rem;
  margin-top: 0.2rem;
  padding: 0.7rem 0;
  border-color: rgba(156, 139, 122, 0.16);
  opacity: 1;
  transform: translateY(0);
}

.checkout-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.checkout-items {
  min-height: 0;
  padding: 0.8rem 0;
  flex: 0 0 auto;
}

.checkout-item {
  display: grid;
  grid-template-columns: 5.25rem minmax(0, 1fr);
  gap: 0.9rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.checkout-item img {
  width: 5.25rem;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
  background: var(--surface);
}

.checkout-item h3 {
  font-size: 1.35rem;
  line-height: 1.15;
}

.checkout-item p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.checkout-item-size {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.65rem;
  color: var(--taupe);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.checkout-item-size select {
  min-width: 5.2rem;
  min-height: 2.25rem;
  padding: 0.35rem 1.8rem 0.35rem 0.7rem;
  border: 1px solid rgba(156, 139, 122, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--foreground);
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.checkout-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-top: 0.75rem;
}

.quantity-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
}

.quantity-stepper button,
.checkout-remove {
  border: 0;
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
}

.quantity-stepper button {
  width: 2rem;
  height: 2rem;
}

.quantity-stepper span {
  min-width: 1.7rem;
  text-align: center;
  color: var(--ink-soft);
}

.checkout-remove {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.checkout-empty {
  display: none;
  align-self: center;
  padding: 2rem 0;
  text-align: center;
}

.checkout-empty.is-visible {
  display: block;
}

.checkout-empty h3 {
  font-size: 2rem;
}

.checkout-empty p {
  max-width: 19rem;
  margin: 0.8rem auto 1.25rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.checkout-summary {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
}

.checkout-summary.is-hidden {
  display: none;
}

.checkout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink-soft);
}

.checkout-row strong {
  color: var(--foreground);
  font-weight: 400;
}

.checkout-process {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.34);
}

.checkout-process div {
  display: grid;
  gap: 0.3rem;
  min-height: 5.6rem;
  align-content: center;
  padding: 0.9rem 1rem;
}

.checkout-process div + div {
  border-left: 1px solid var(--border);
}

.checkout-process span {
  color: var(--taupe);
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.checkout-process strong {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.4;
}

.checkout-handoff {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem;
  background: rgba(245, 243, 240, 0.52);
}

.checkout-handoff > div {
  display: grid;
  gap: 0.25rem;
}

.checkout-handoff strong {
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
}

.checkout-handoff p {
  max-width: 23rem;
}

.checkout-lock {
  position: relative;
  flex: 0 0 auto;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid rgba(156, 139, 122, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.checkout-lock::before {
  position: absolute;
  top: 0.55rem;
  left: 0.69rem;
  width: 0.58rem;
  height: 0.48rem;
  border: 1px solid var(--taupe);
  border-bottom: 0;
  border-radius: 0.45rem 0.45rem 0 0;
  content: "";
}

.checkout-lock::after {
  position: absolute;
  top: 1rem;
  left: 0.59rem;
  width: 0.78rem;
  height: 0.62rem;
  border-radius: 0.18rem;
  background: var(--taupe);
  content: "";
}

.checkout-assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.checkout-assurances span {
  border: 1px solid rgba(156, 139, 122, 0.24);
  border-radius: 999px;
  padding: 0.4rem 0.62rem;
  color: var(--ink-soft);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
}

.shopify-placeholder {
  position: relative;
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  overflow: hidden;
  border: 1px solid var(--foreground);
  background: var(--foreground);
  color: var(--background);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 260ms var(--ease), color 260ms var(--ease), border-color 260ms var(--ease), transform 260ms var(--ease);
}

.shopify-placeholder i {
  position: relative;
  width: 1rem;
  height: 1px;
  background: currentColor;
  transition: transform 260ms var(--ease);
}

.shopify-placeholder i::after {
  position: absolute;
  top: -0.2rem;
  right: 0;
  width: 0.42rem;
  height: 0.42rem;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.shopify-placeholder:hover,
.shopify-placeholder:focus-visible {
  border-color: var(--taupe);
  background: var(--taupe);
  transform: translateY(-1px);
}

.shopify-placeholder:hover i {
  transform: translateX(0.18rem);
}

.shopify-placeholder:active {
  transform: translateY(0);
}

.shopify-placeholder.has-error {
  border-color: rgba(139, 92, 74, 0.52);
  background: rgba(139, 92, 74, 0.08);
  color: #765343;
}

.shopify-placeholder.is-loading {
  cursor: wait;
  opacity: 0.72;
}

.shopify-placeholder.is-loading i {
  width: 0.8rem;
  height: 0.8rem;
  border: 1px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  background: transparent;
  animation: checkout-spin 760ms linear infinite;
}

.shopify-placeholder.is-loading i::after {
  display: none;
}

@keyframes checkout-spin {
  to {
    transform: rotate(360deg);
  }
}

.shopify-checkout-status {
  min-height: 2.4rem;
  padding-inline: 0.1rem;
}

.checkout-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.analyzer-section {
  padding-block: clamp(3.75rem, 6vw, 5.5rem);
  background: #f7f4ef;
}

.analyzer-layout {
  max-width: 78rem;
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(25rem, 1.28fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.analyzer-copy {
  max-width: 32rem;
}

.analyzer-copy > p:not(.overline) {
  margin: 1.25rem 0 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.75;
}

.analyzer-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.6rem;
}

.analyzer-points span {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(156, 139, 122, 0.28);
  border-radius: 999px;
  background: rgba(250, 249, 247, 0.58);
  padding: 0.55rem 0.8rem;
  color: var(--taupe);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: border-color 320ms var(--ease), color 320ms var(--ease), transform 320ms var(--ease);
}

.analyzer-points span::before {
  position: absolute;
  content: "";
  top: 50%;
  left: -1.1rem;
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, #fff 0 18%, rgba(255, 255, 255, 0.6) 19% 34%, rgba(192, 170, 132, 0.76) 70%);
  box-shadow: 0 0 0 5px rgba(192, 170, 132, 0.1), 0 8px 20px rgba(67, 53, 39, 0.12);
  transform: translateY(-50%);
  transition: left 520ms var(--ease), opacity 320ms var(--ease);
  opacity: 0;
}

.analyzer-points span:hover,
.analyzer-points span:focus-visible {
  border-color: rgba(156, 139, 122, 0.52);
  color: var(--foreground);
  transform: translateY(-1px);
}

.analyzer-points span:hover::before,
.analyzer-points span:focus-visible::before {
  left: calc(100% - 1rem);
  opacity: 1;
}

.analyzer-embed {
  min-height: clamp(27rem, 40vw, 34rem);
  overflow: hidden;
  border: 1px solid rgba(233, 228, 220, 0.95);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(250, 249, 247, 0.9), rgba(232, 224, 214, 0.62)),
    var(--surface);
  box-shadow: var(--shadow);
}

.analyzer-embed iframe {
  width: 100%;
  height: 100%;
  min-height: clamp(27rem, 40vw, 34rem);
  display: block;
  border: 0;
  background: var(--background);
}

.analyzer-placeholder {
  min-height: clamp(27rem, 40vw, 34rem);
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 1rem;
  padding: clamp(1.4rem, 4vw, 3rem);
  /* Clean ivory canvas for the scan preview — a light card on the analyzer panel. */
  background: #fbfaf8;
}

.analyzer-placeholder h3 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
}

.analyzer-placeholder p:not(.overline) {
  max-width: 31rem;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.analyzer-placeholder code {
  color: var(--foreground);
  font-size: 0.9em;
}

.analyzer-placeholder button {
  min-height: 44px;
  margin-top: 0.5rem;
  border: 1px solid var(--foreground);
  background: var(--foreground);
  color: var(--background);
  padding: 0.9rem 1.15rem;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 300ms var(--ease), background 300ms var(--ease);
}

.analyzer-placeholder button:hover {
  transform: translateY(-2px);
}

.analyzer-preview-card {
  position: relative;
  grid-template-columns: minmax(14rem, 0.72fr) minmax(0, 1.28fr);
  grid-template-rows: auto auto auto 1fr;
  align-content: stretch;
  justify-items: stretch;
  gap: 0;
  padding: clamp(0.8rem, 1.8vw, 1.2rem);
  background:
    linear-gradient(145deg, rgba(250, 249, 247, 0.72), rgba(232, 224, 214, 0.42)),
    var(--surface);
}

.analyzer-preview-card::before {
  position: absolute;
  content: "";
  inset: 1rem;
  z-index: 2;
  border: 1px solid rgba(156, 139, 122, 0.18);
  border-radius: 8px;
  pointer-events: none;
}

.analyzer-preview-media {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  min-height: 0;
  height: clamp(13rem, 17vw, 15rem);
  overflow: hidden;
  border-radius: 8px 0 0 0;
  background: #f1e1ca;
}

.analyzer-preview-media::after {
  position: absolute;
  content: "";
  inset: 0;
  background:
    linear-gradient(180deg, rgba(250, 249, 247, 0.08), transparent 54%, rgba(26, 24, 21, 0.18)),
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.28), transparent 15rem);
  pointer-events: none;
}

.analyzer-preview-media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
  transition: transform 900ms var(--ease), filter 700ms var(--ease);
}

.analyzer-preview-card:hover .analyzer-preview-media img {
  transform: scale(1.035);
  filter: saturate(1.03);
}

.analyzer-preview-copy {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-column: 2;
  grid-row: 1;
  gap: 0.8rem 1rem;
  align-items: end;
  padding: clamp(1rem, 2.2vw, 1.6rem);
  border-top: 1px solid rgba(156, 139, 122, 0.18);
  background: rgba(250, 249, 247, 0.78);
  backdrop-filter: blur(14px);
}

.analyzer-preview-copy .overline,
.analyzer-preview-copy h3,
.analyzer-preview-copy p {
  grid-column: 1;
}

.analyzer-preview-copy h3 {
  font-size: clamp(1.9rem, 3.4vw, 3.15rem);
}

.analyzer-preview-copy p:not(.overline) {
  max-width: 26rem;
  line-height: 1.6;
}

.analyzer-preview-copy button {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  min-width: 10rem;
  margin: 0;
}

.analyzer-onboarding {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-column: 1 / -1;
  grid-row: 2;
  gap: clamp(0.55rem, 1.8vw, 1.2rem);
  padding: clamp(1rem, 2.2vw, 1.35rem) clamp(1rem, 2.2vw, 1.6rem) 0;
  background: rgba(250, 249, 247, 0.78);
}

.analyzer-step-line {
  position: absolute;
  left: clamp(1.4rem, 3vw, 2rem);
  right: clamp(1.4rem, 3vw, 2rem);
  top: clamp(1.35rem, 2.7vw, 1.75rem);
  height: 1px;
  background: rgba(156, 139, 122, 0.2);
}

.analyzer-step-line span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(156, 139, 122, 0.28), rgba(192, 170, 132, 0.88));
  transition: width 760ms var(--ease);
}

.analyzer-onboarding button {
  position: relative;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  border: 0;
  background: transparent;
  color: rgba(67, 53, 39, 0.48);
  padding: 0;
  cursor: pointer;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 320ms var(--ease), transform 320ms var(--ease);
}

.analyzer-onboarding button i {
  width: 0.82rem;
  height: 0.82rem;
  border: 1px solid rgba(156, 139, 122, 0.42);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, #fff 0 18%, rgba(250, 249, 247, 0.74) 19% 38%, rgba(192, 170, 132, 0.22) 70%),
    var(--surface);
  box-shadow: 0 0 0 0 rgba(192, 170, 132, 0);
  transition: transform 420ms var(--ease), border-color 320ms var(--ease), box-shadow 420ms var(--ease);
}

.analyzer-onboarding button:hover,
.analyzer-onboarding button:focus-visible,
.analyzer-onboarding button.is-active {
  color: var(--foreground);
  transform: translateY(-1px);
}

.analyzer-onboarding button:hover i,
.analyzer-onboarding button:focus-visible i,
.analyzer-onboarding button.is-active i {
  border-color: rgba(192, 170, 132, 0.72);
  box-shadow: 0 0 0 7px rgba(192, 170, 132, 0.1), 0 12px 26px rgba(67, 53, 39, 0.12);
  transform: scale(1.08);
}

.analyzer-result-preview {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  grid-column: 1 / -1;
  grid-row: 3;
  gap: 0.9rem 1.2rem;
  align-items: end;
  padding: 1rem clamp(1rem, 2.2vw, 1.6rem);
  background: rgba(250, 249, 247, 0.78);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}

.analyzer-result-preview.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.analyzer-result-preview h4 {
  margin: 0;
  font-family: "Cormorant", Georgia, serif;
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  font-weight: 300;
}

.analyzer-result-preview p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.analyzer-recommendations {
  position: relative;
  z-index: 3;
  display: grid;
  grid-column: 1 / -1;
  grid-row: 4;
  gap: 0.85rem;
  padding: 0 clamp(1rem, 2.2vw, 1.6rem) clamp(1rem, 2.2vw, 1.4rem);
  background: rgba(250, 249, 247, 0.78);
}

.analyzer-rail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(156, 139, 122, 0.18);
  padding-top: 0.9rem;
}

.analyzer-rail-heading p {
  margin: 0;
}

.analyzer-rail-heading a {
  color: var(--foreground);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.analyzer-product-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(8.2rem, 1fr);
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scroll-snap-type: x proximity;
}

.analyzer-product-rail a {
  min-width: 0;
  display: grid;
  gap: 0.35rem;
  scroll-snap-align: start;
}

.analyzer-product-rail img {
  width: 100%;
  aspect-ratio: 1.05 / 1;
  object-fit: cover;
  border-radius: 8px;
  filter: saturate(0.95);
  transition: transform 520ms var(--ease), filter 420ms var(--ease), box-shadow 420ms var(--ease);
}

.analyzer-product-rail span {
  overflow: hidden;
  color: var(--foreground);
  font-family: "Cormorant", Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analyzer-product-rail small {
  color: var(--ink-soft);
}

.analyzer-product-rail a:hover img,
.analyzer-product-rail a:focus-visible img {
  filter: saturate(1.05);
  transform: translateY(-3px) scale(1.025);
  box-shadow: 0 18px 38px rgba(67, 53, 39, 0.16);
}

.analyzer-demo-card {
  width: 100%;
  min-height: clamp(34rem, 54vw, 46rem);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1.2rem;
  padding: clamp(1.4rem, 4vw, 2.4rem);
}

.analyzer-demo-preview {
  min-height: 16rem;
  border-radius: 8px;
  background:
    linear-gradient(rgba(26, 24, 21, 0.12), rgba(26, 24, 21, 0.08)),
    url("/home/assets/demo-cream-cafe.jpg") center / cover;
}

.analyzer-demo-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.analyzer-demo-results span {
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
  color: var(--ink-soft);
  font-size: 0.83rem;
  line-height: 1.45;
}

.analyzer-demo-results strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--foreground);
  font-family: "Cormorant", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 300;
}

.difference {
  padding-block: clamp(4rem, 7vw, 6rem);
  background: #f4f0ea;
}

.difference-intro {
  max-width: 78rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 0.5fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: end;
}

.difference-intro .overline {
  grid-column: 1 / -1;
  margin-bottom: -0.4rem;
}

.difference-intro h2 {
  max-width: 55rem;
  font-size: clamp(3rem, 6.8vw, 6.35rem);
}

.difference-intro > p:last-child {
  margin: 0 0 0.4rem;
  color: var(--ink-soft);
  line-height: 1.75;
}

.difference-slider {
  max-width: 78rem;
  margin: clamp(2.5rem, 5vw, 4.5rem) auto 0;
  display: grid;
  grid-template-columns: minmax(20rem, 0.85fr) minmax(24rem, 1.15fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.difference-slide-list {
  display: grid;
}

.difference-slide-trigger {
  min-height: 5.5rem;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
  border: 0;
  border-top: 1px solid var(--border);
  padding: 0.75rem 0;
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
  text-align: left;
}

.difference-slide-trigger:last-child {
  border-bottom: 1px solid var(--border);
}

.difference-slide-number {
  color: var(--taupe);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
}

.difference-stagger {
  display: inline-flex;
  flex-wrap: wrap;
  font-family: "Cormorant", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.7rem);
  font-weight: 300;
  line-height: 0.95;
}

.difference-char {
  position: relative;
  display: inline-block;
  overflow: hidden;
  white-space: pre;
}

.difference-char > span {
  display: inline-block;
  transition: transform 340ms cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 340ms var(--ease);
  transition-delay: calc(var(--char-index) * 24ms);
}

.difference-char .char-muted {
  opacity: 0.32;
}

.difference-char .char-active {
  position: absolute;
  inset: 0;
  transform: translateY(110%);
}

.difference-slide-trigger.is-active .char-muted {
  opacity: 0;
  transform: translateY(-110%);
}

.difference-slide-trigger.is-active .char-active {
  transform: translateY(0);
}

.difference-slide-visual {
  min-width: 0;
}

.difference-slide-images {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: #dfd9d0;
}

.difference-slide-images img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(0 0 100% 0);
  transform: scale(1.035);
  transition: clip-path 820ms cubic-bezier(0.33, 1, 0.68, 1), transform 1100ms cubic-bezier(0.16, 1, 0.3, 1);
}

.difference-slide-images img.is-active {
  z-index: 2;
  clip-path: inset(0);
  transform: scale(1);
}

.difference-slide-caption {
  min-height: 3rem;
  max-width: 36rem;
  margin: 1rem 0 0;
  color: var(--ink-soft);
  line-height: 1.7;
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}

.tutorial-fit-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.75rem;
  padding: 0.75rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--foreground);
  font-size: 0.76rem;
  text-decoration: none;
}

.tutorial-fit-link[hidden] { display: none; }

.difference-slide-caption.is-changing {
  opacity: 0;
  transform: translateY(0.35rem);
}

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

.collection-card {
  position: relative;
  min-height: 31rem;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  isolation: isolate;
  transition: transform 520ms var(--ease), box-shadow 520ms var(--ease);
}

.collection-card::after {
  position: absolute;
  content: "";
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(26, 24, 21, 0.72));
}

.collection-card img {
  width: 100%;
  height: 100%;
  min-height: 31rem;
  object-fit: cover;
  transition: transform 900ms var(--ease);
}

.collection-card:hover img {
  transform: scale(1.06);
}

.collection-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 82px rgba(67, 53, 39, 0.18);
}

.collection-card span {
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 2;
  color: var(--background);
}

.collection-card strong {
  display: block;
  font-family: "Cormorant", Georgia, serif;
  font-size: 2rem;
  font-weight: 300;
}

.collection-card small {
  display: block;
  margin-top: 0.35rem;
  color: rgba(250, 249, 247, 0.78);
}

.tutorial {
  padding-block: clamp(3.75rem, 7vw, 6.25rem);
  /* Near-base ivory — a light breath between the analyzer and Why AMIEL panels. */
  background: #faf8f4;
}

.tutorial .difference-intro h2 {
  max-width: 56rem;
}

.tutorial-slider {
  margin-top: clamp(2rem, 4.5vw, 3.5rem);
}

.tutorial-slider .difference-slide-images {
  aspect-ratio: 5 / 4;
}

.why-grid {
  max-width: 78rem;
  margin: clamp(2.3rem, 5vw, 4rem) auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(156, 139, 122, 0.18);
  border-bottom: 1px solid rgba(156, 139, 122, 0.18);
}

.why-grid article {
  min-height: 16rem;
  display: grid;
  align-content: start;
  gap: 0.85rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-right: 1px solid rgba(156, 139, 122, 0.16);
  transition: background 420ms var(--ease), transform 420ms var(--ease);
}

.why-grid article:last-child {
  border-right: 0;
}

.why-grid article:hover {
  background: rgba(250, 249, 247, 0.42);
  transform: translateY(-3px);
}

.why-grid span {
  color: var(--taupe);
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.why-grid h3 {
  max-width: 16rem;
  font-size: clamp(1.85rem, 3.1vw, 2.7rem);
  line-height: 1;
}

.why-grid p {
  max-width: 21rem;
  margin: 0;
  color: rgba(89, 82, 74, 0.9);
  line-height: 1.7;
}

.footer {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 10vw, 8rem) clamp(1.25rem, 5vw, 5rem) 2rem;
  background: var(--foreground);
  color: var(--background);
}

.footer::before {
  position: absolute;
  content: "";
  inset: 0;
  background: none;
  pointer-events: none;
}

.newsletter {
  position: relative;
  z-index: 1;
  max-width: 78rem;
  margin: 0 auto 2.2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.7fr);
  gap: 2rem;
  align-items: end;
}

.newsletter h2 {
  max-width: 48rem;
}

.newsletter form {
  position: relative;
  display: flex;
  gap: 0.5rem;
}

.newsletter-panel {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(250, 249, 247, 0.14);
  border-radius: 8px;
  background: rgba(250, 249, 247, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.newsletter-panel p {
  margin: 0;
  color: rgba(250, 249, 247, 0.62);
  font-size: 0.82rem;
  line-height: 1.6;
}

.newsletter input {
  min-width: 0;
  flex: 1;
  border: 1px solid rgba(250, 249, 247, 0.24);
  background: transparent;
  color: inherit;
  padding: 0.95rem 1rem;
  transition: border-color 280ms var(--ease), background 280ms var(--ease), box-shadow 280ms var(--ease);
}

.newsletter input:focus {
  outline: none;
  border-color: rgba(250, 249, 247, 0.72);
  background: rgba(250, 249, 247, 0.06);
  box-shadow: 0 0 0 4px rgba(156, 139, 122, 0.16);
}

.newsletter input::placeholder {
  color: rgba(250, 249, 247, 0.58);
}

.newsletter button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  overflow: hidden;
  border-color: var(--background);
}

.newsletter button span {
  position: relative;
  z-index: 1;
}

.newsletter button i {
  position: relative;
  z-index: 1;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 6px rgba(250, 249, 247, 0.12);
  transition: transform 360ms var(--ease), box-shadow 360ms var(--ease);
}

.newsletter button::before {
  position: absolute;
  content: "";
  inset: 0;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: translateX(-100%);
  transition: transform 680ms var(--ease);
}

.newsletter button:hover::before,
.newsletter button:focus-visible::before {
  transform: translateX(100%);
}

.newsletter button:hover i,
.newsletter button:focus-visible i {
  transform: translateX(4px) scale(1.12);
  box-shadow: 0 0 0 9px rgba(250, 249, 247, 0.14);
}

.footer-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  padding-top: 2rem;
  border-top: 1px solid rgba(250, 249, 247, 0.16);
}

.footer .brand {
  grid-column: auto;
  width: auto;
  height: auto;
  display: inline-grid;
  font-size: 1.6rem;
}

.footer-grid h3 {
  margin-bottom: 1rem;
  font-family: "Jost", system-ui, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-grid a,
.footer-grid p,
.copyright {
  display: block;
  color: rgba(250, 249, 247, 0.68);
  line-height: 1.9;
}

.copyright {
  max-width: 78rem;
  margin: 3rem auto 0;
  font-size: 0.82rem;
}

.reveal {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(18px) scale(0.992);
  transition: opacity 760ms var(--ease), filter 760ms var(--ease), transform 760ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes scrollDot {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  50% {
    transform: translateY(11px);
    opacity: 1;
  }
}

@keyframes recommendedFocus {
  0% {
    box-shadow: 0 0 0 0 rgba(192, 170, 132, 0);
    transform: translateY(0);
  }
  34% {
    box-shadow: 0 0 0 8px rgba(192, 170, 132, 0.13), 0 24px 58px rgba(67, 53, 39, 0.14);
    transform: translateY(-4px);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(192, 170, 132, 0);
    transform: translateY(0);
  }
}

/* Editorial polish layer: soften demo-like UI while preserving core interactions. */
body {
  /* Stable ivory base — no page-level radial mist. Gradients now serve
     only imagery, text legibility, and interactive states. */
  background: #fbfaf8;
}

::selection {
  background: rgba(156, 139, 122, 0.22);
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 1px solid rgba(67, 53, 39, 0.72);
  outline-offset: 4px;
}

.announcement {
  height: 34px;
  background: #26231f;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
}

.site-header {
  color: rgba(26, 24, 21, 0.92);
}

.site-header.is-scrolled {
  background: rgba(251, 250, 248, 0.86);
  box-shadow: 0 1px 0 rgba(156, 139, 122, 0.13), 0 18px 42px rgba(67, 53, 39, 0.045);
}

.brand-word {
  color: rgba(44, 39, 33, 0.88);
}

.desktop-nav a,
.text-link,
.checkout-close,
.checkout-remove {
  letter-spacing: 0.105em;
}

.desktop-nav a::after,
.text-link::after {
  bottom: -0.22rem;
  opacity: 0.68;
}

.overline {
  color: rgba(156, 139, 122, 0.86);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
}

.section-heading,
.section-row {
  margin-bottom: clamp(1.75rem, 4.2vw, 3.45rem);
}

.analyzer-section {
  border-block: 1px solid rgba(233, 228, 220, 0.7);
  /* Gentle recessed panel via a single flat tint — no diagonal color mist. */
  background: #f7f4ef;
}

.analyzer-copy > p:not(.overline) {
  max-width: 29rem;
  color: rgba(89, 82, 74, 0.9);
}

.analyzer-points {
  gap: 0.5rem;
}

.analyzer-points span {
  border-color: rgba(156, 139, 122, 0.22);
  background: rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(10px);
}

.analyzer-embed {
  border-color: rgba(220, 211, 201, 0.82);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.52), rgba(232, 224, 214, 0.34)),
    var(--surface);
  box-shadow: 0 24px 62px rgba(67, 53, 39, 0.09);
}

.analyzer-preview-card {
  background:
    linear-gradient(145deg, rgba(253, 251, 248, 0.78), rgba(232, 224, 214, 0.28)),
    var(--surface);
}

.analyzer-preview-card::before {
  inset: 0.85rem;
  border-color: rgba(156, 139, 122, 0.13);
}

.analyzer-preview-copy,
.analyzer-onboarding,
.analyzer-result-preview,
.analyzer-recommendations {
  background: rgba(252, 250, 247, 0.7);
}

.analyzer-preview-copy {
  border-top-color: rgba(156, 139, 122, 0.13);
}

.analyzer-preview-media::after {
  background:
    linear-gradient(180deg, rgba(250, 249, 247, 0.06), transparent 58%, rgba(26, 24, 21, 0.11)),
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.2), transparent 13rem);
}

.products::before {
  filter: blur(16px);
  opacity: 0;
}

.products.has-product-focus::before {
  opacity: 0.54;
}

.product-card {
  color: rgba(26, 24, 21, 0.92);
}

.product-image {
  border: 1px solid rgba(233, 228, 220, 0.86);
  box-shadow: 0 16px 38px rgba(67, 53, 39, 0.085);
}

.product-grid.has-product-focus .product-card {
  opacity: 0.58;
  filter: saturate(0.64) contrast(0.92);
}

.product-grid.has-product-focus .product-card.is-product-focus {
  filter: saturate(1.04) contrast(1.025);
  transform: translateY(-0.42rem);
}

.product-image button {
  border-color: rgba(250, 249, 247, 0.82);
  background: rgba(250, 249, 247, 0.88);
  color: var(--foreground);
  box-shadow: 0 14px 34px rgba(67, 53, 39, 0.14);
  backdrop-filter: blur(14px);
}

.badge {
  background: rgba(250, 249, 247, 0.72);
  box-shadow: 0 10px 28px rgba(67, 53, 39, 0.08);
}

.product-purchase select {
  transition: border-color 260ms var(--ease), background 260ms var(--ease), box-shadow 260ms var(--ease);
}

.product-purchase select:hover {
  border-color: rgba(156, 139, 122, 0.36);
  background: rgba(255, 255, 255, 0.72);
}

.collection-card {
  border: 1px solid rgba(233, 228, 220, 0.78);
  box-shadow: 0 18px 48px rgba(67, 53, 39, 0.09);
}

.collection-card::before {
  position: absolute;
  content: "";
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 50% 100%, rgba(250, 249, 247, 0.2), transparent 42%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 520ms var(--ease);
}

.collection-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(67, 53, 39, 0.13);
}

.collection-card:hover::before {
  opacity: 1;
}

@media (min-width: 1200px) {
  .collection-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.collection-card small {
  color: rgba(250, 249, 247, 0.82);
}

.difference {
  /* "Why AMIEL" panel — flat warm tint, one step deeper than the ivory base. */
  background: #f4f0ea;
}

.difference-slide-trigger {
  position: relative;
  border-color: rgba(156, 139, 122, 0.18);
  transition: color 320ms var(--ease), padding-left 420ms var(--ease), border-color 320ms var(--ease);
}

.difference-slide-trigger::after {
  position: absolute;
  content: "";
  inset: 0 auto 0 0;
  z-index: 0;
  width: 100%;
  background: linear-gradient(90deg, rgba(212, 196, 181, 0.16), transparent 70%);
  opacity: 0;
  transform: scaleX(0.88);
  transform-origin: left;
  transition: opacity 420ms var(--ease), transform 520ms var(--ease);
  pointer-events: none;
}

.difference-slide-number,
.difference-stagger {
  position: relative;
  z-index: 1;
}

.difference-slide-trigger:hover,
.difference-slide-trigger:focus-visible,
.difference-slide-trigger.is-active {
  border-color: rgba(156, 139, 122, 0.31);
}

.difference-slide-trigger:hover,
.difference-slide-trigger:focus-visible {
  padding-left: 0.45rem;
}

.difference-slide-trigger:hover::after,
.difference-slide-trigger:focus-visible::after,
.difference-slide-trigger.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.difference-slide-images {
  border: 1px solid rgba(233, 228, 220, 0.78);
  box-shadow: 0 18px 46px rgba(67, 53, 39, 0.095);
}

.footer {
  background: #24211d;
}

.footer::before {
  /* Decorative radial glow removed — footer reads as a flat ink panel. */
  background: none;
}

.newsletter-panel {
  background: rgba(250, 249, 247, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 22px 58px rgba(0, 0, 0, 0.12);
}

.footer-grid a {
  transition: color 260ms var(--ease), transform 260ms var(--ease);
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
  color: rgba(250, 249, 247, 0.94);
  transform: translateX(2px);
}

button,
a,
select,
input {
  touch-action: manipulation;
}

/* Shared editorial type scale. Keep display, content, and interface text on one rhythm. */
body {
  font-size: var(--type-body);
  line-height: 1.65;
}

h2,
.section-heading h2,
.section-row h2,
.analyzer-copy h2 {
  font-size: var(--type-section);
  line-height: 1.02;
  letter-spacing: 0;
}

.difference-intro h2 {
  max-width: 52rem;
  font-size: var(--type-feature);
  line-height: 0.98;
  letter-spacing: 0;
}

.overline {
  line-height: 1.3;
  letter-spacing: 0.16em;
}

.desktop-nav a,
.text-link,
.button,
.book-controls button,
.newsletter button,
.product-image button,
.analyzer-placeholder button,
.shopify-placeholder {
  font-size: 0.68rem;
  letter-spacing: 0.13em;
}

.analyzer-copy > p:not(.overline),
.analyzer-placeholder p:not(.overline),
.difference-intro > p:last-child,
.difference-slide-caption,
.why-grid p,
.collection-card small,
.product-card > span,
.newsletter-panel p {
  font-size: var(--type-body);
  line-height: 1.65;
}

.analyzer-placeholder h3,
.analyzer-preview-copy h3,
.analyzer-result-preview h4,
.product-meta h3,
.collection-card strong,
.why-grid h3,
.checkout-item h3 {
  font-size: var(--type-card);
  line-height: 1.04;
}

.analyzer-product-rail span {
  font-size: 1rem;
  line-height: 1.08;
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero,
  .book-page,
  .newsletter,
  .analyzer-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 2rem;
    padding-top: 7rem;
  }

  .scroll-cue {
    display: none;
  }

  .magazine {
    min-height: 0;
  }

  .flipbook::before {
    display: none;
  }

  .magazine.is-fallback .flipbook {
    grid-template-columns: 1fr;
  }

  .magazine.is-fallback .flip-page.is-left {
    display: none;
  }

  .magazine-spread {
    grid-template-columns: 1fr;
  }

  .magazine-left {
    display: none;
  }

  .magazine-right,
  .page-turner,
  .page-turner.is-turning-prev {
    left: 0;
    right: 0;
    width: 100%;
    transform-origin: left center;
  }

  .magazine-right {
    border-radius: 8px;
    transform: none;
  }

  .page-front,
  .page-back {
    border-radius: 8px;
  }

  .book-spine {
    display: none;
  }

  .page-content img {
    height: 100%;
  }

  .product-image button {
    opacity: 1;
    transform: none;
  }

  .product-card:hover .product-image img {
    transform: none;
  }

  .products::before {
    display: none;
  }

  .product-grid {
    max-width: none;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .product-grid::-webkit-scrollbar {
    display: none;
  }

  .product-velocity-track {
    transform: none;
  }

  .product-sequence {
    gap: 1rem;
    padding-right: 0;
  }

  .product-card {
    flex-basis: min(78vw, 18rem);
    width: min(78vw, 18rem);
    scroll-snap-align: start;
  }

  .product-grid.has-product-focus .product-card {
    opacity: 1;
    filter: none;
    transform: none;
  }

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

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

  .analyzer-preview-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .analyzer-preview-media {
    grid-column: 1;
    grid-row: auto;
    height: 16rem;
    border-radius: 8px 8px 0 0;
  }

  .analyzer-preview-copy,
  .analyzer-onboarding,
  .analyzer-result-preview,
  .analyzer-recommendations {
    grid-column: 1;
    grid-row: auto;
  }

  .difference-intro {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .difference-intro .overline {
    grid-column: 1;
  }

  .difference-slider {
    grid-template-columns: minmax(16rem, 0.8fr) minmax(20rem, 1.2fr);
    gap: 2rem;
  }

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

  .why-grid article {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(156, 139, 122, 0.16);
  }

  .why-grid article:last-child {
    border-bottom: 0;
  }
}

@media (min-width: 621px) and (max-width: 900px) and (hover: hover) and (pointer: fine) {
  .product-grid {
    overflow: hidden;
    overscroll-behavior-inline: auto;
    scroll-snap-type: none;
  }

  .product-sequence {
    gap: 1.2rem;
    padding-right: 1.2rem;
  }

  .product-sequence.is-duplicate {
    display: flex;
  }

  .product-card {
    flex-basis: clamp(15rem, 35vw, 18rem);
    width: clamp(15rem, 35vw, 18rem);
    scroll-snap-align: none;
  }
}

@media (hover: none), (pointer: coarse) {
  .product-card:hover .product-image img {
    transform: none;
  }

  .product-image button {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-brand-stage > .overline,
  .hero-intro,
  .hero-brand-stage .hero-actions,
  .wordmark-pull {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .brand.is-cat-active .brand-word,
  .brand.is-cat-active:hover .brand-word,
  .brand.is-cat-active:focus-visible .brand-word {
    opacity: 1;
    filter: none;
    transform: translateX(0.12em);
  }

  .brand-cat-stage {
    display: none;
  }

  .product-velocity-track {
    transform: none !important;
  }

  .product-grid {
    overflow-x: auto;
    scroll-snap-type: inline mandatory;
  }

  .product-sequence.is-duplicate {
    display: none;
  }

  .product-card {
    scroll-snap-align: start;
  }

  .difference-char > span,
  .difference-slide-images img,
  .difference-slide-caption {
    transition: none;
  }
}

@media (max-width: 620px) {
  .site-header {
    height: 64px;
  }

  .section-row {
    align-items: start;
    flex-direction: column;
  }

  .hero-actions,
  .newsletter form {
    flex-direction: column;
  }

  .brand-hero {
    min-height: 82svh;
    padding: 7.5rem 1.25rem 4rem;
  }

  .hero-logo-lockup {
    min-height: 9rem;
  }

  .custom-wordmark {
    width: min(82vw, 21rem);
  }

  .hero-brand-stage {
    width: 100%;
  }

  .hero-brand-stage .hero-actions {
    width: 100%;
  }

  .analyzer-section {
    padding-block: 3.5rem;
  }

  .analyzer-layout {
    gap: 2rem;
  }

  .analyzer-embed,
  .analyzer-placeholder {
    min-height: 0;
  }

  .analyzer-preview-media,
  .analyzer-preview-media img {
    min-height: 15rem;
  }

  .button,
  .newsletter button,
  .analyzer-placeholder button {
    width: 100%;
    text-align: center;
  }

  .magazine {
    min-height: 0;
  }

  .flipbook-shell {
    padding-inline: max(0.35rem, env(safe-area-inset-left));
  }

  .page-content {
    padding: 1rem;
  }

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

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

  .product-meta {
    display: block;
  }

  .product-meta h3 {
    font-size: 1.1rem;
  }

  .collection-card,
  .collection-card img {
    min-height: 24rem;
  }

  .analyzer-demo-results {
    grid-template-columns: 1fr;
  }

  .analyzer-preview-copy {
    grid-template-columns: 1fr;
  }

  .analyzer-preview-copy button {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }

  .analyzer-onboarding {
    gap: 0.4rem;
  }

  .analyzer-onboarding button {
    width: auto;
    font-size: 0.58rem;
  }

  .analyzer-result-preview {
    grid-template-columns: 1fr;
  }

  .analyzer-product-rail {
    grid-auto-columns: minmax(7.4rem, 43%);
  }

  .difference-slider {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .difference-slide-trigger {
    min-height: 4.5rem;
  }

  .difference-stagger {
    font-size: clamp(1.85rem, 10vw, 2.8rem);
  }

  .difference-slide-images {
    aspect-ratio: 4 / 5;
  }

  .checkout-drawer {
    padding: 1rem;
  }

  .checkout-item {
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 0.75rem;
  }

  .checkout-item img {
    width: 4.5rem;
  }

  .checkout-item-controls,
  .checkout-process {
    grid-template-columns: 1fr;
  }

  .checkout-process div + div {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .checkout-item-controls {
    display: grid;
    justify-items: start;
  }
}

/* Product browsing refinement: preserve the rail motion while keeping image detail calm. */
.product-card {
  filter: none;
}

.product-grid.has-product-focus .product-card {
  filter: saturate(0.86) contrast(0.97);
}

.product-grid.has-product-focus .product-card.is-product-focus {
  filter: none;
  transform: translateY(-0.32rem);
}

.product-card:hover .product-image img {
  transform: none;
}

.product-image img {
  backface-visibility: visible;
  image-rendering: auto;
  transform: none;
  will-change: auto;
}

.product-image {
  aspect-ratio: 4 / 5;
}

.product-image .product-detail-trigger {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  opacity: 1;
  overflow: hidden;
  transform: none;
  cursor: zoom-in;
}

.product-image .product-detail-trigger img {
  display: block;
  pointer-events: none;
}

.product-image .product-quick-add {
  z-index: 2;
}

.product-detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(47, 39, 32, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 360ms var(--ease);
  backdrop-filter: blur(14px) saturate(0.82);
  -webkit-backdrop-filter: blur(14px) saturate(0.82);
}

.product-detail-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 111;
  width: min(92vw, 60rem);
  max-height: min(88svh, 54rem);
  overflow: auto;
  padding: clamp(1rem, 2.2vw, 1.6rem);
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 10px;
  background: rgba(250, 249, 247, 0.91);
  box-shadow: 0 30px 90px rgba(51, 40, 30, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -47%) scale(0.975);
  transition: opacity 360ms var(--ease), transform 500ms var(--ease);
  backdrop-filter: blur(22px) saturate(0.88);
  -webkit-backdrop-filter: blur(22px) saturate(0.88);
}

.product-detail-open .product-detail-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.product-detail-open .product-detail-modal {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.product-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.2rem 0 1rem;
  border-bottom: 1px solid rgba(156, 139, 122, 0.18);
}

.product-detail-header .overline {
  margin: 0;
}

.product-detail-close {
  padding: 0.4rem 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.2rem, 3vw, 2.4rem) 0 clamp(0.3rem, 1vw, 0.8rem);
}

.product-detail-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 8px;
  background: #f1ece6;
  cursor: crosshair;
}

.product-detail-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
  transform: translateZ(0);
  transform-origin: var(--zoom-x, 50%) var(--zoom-y, 50%);
  transition: transform 520ms var(--ease);
}

.product-detail-media.is-zoomed img {
  transform: translateZ(0) scale(1.85);
}

.product-detail-lens {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: clamp(7.5rem, 15vw, 10.5rem);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background-repeat: no-repeat;
  box-shadow: 0 14px 30px rgba(51, 40, 30, 0.2), inset 0 0 0 1px rgba(67, 53, 39, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.84);
  transition: opacity 180ms var(--ease), transform 260ms var(--ease);
}

.product-detail-media.is-lens-visible .product-detail-lens {
  opacity: 1;
  transform: scale(1);
}

.product-detail-zoom {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  background: rgba(250, 249, 247, 0.78);
  color: var(--foreground);
  cursor: pointer;
  font: inherit;
  font-size: 0.64rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(67, 53, 39, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.product-detail-zoom-icon {
  position: relative;
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.product-detail-zoom-icon::after {
  position: absolute;
  right: -0.28rem;
  bottom: -0.18rem;
  width: 0.38rem;
  height: 1px;
  background: currentColor;
  content: "";
  transform: rotate(45deg);
  transform-origin: left center;
}

.product-detail-zoom:hover,
.product-detail-zoom:focus-visible {
  background: rgba(255, 255, 255, 0.96);
}

.product-detail-copy h2 {
  max-width: 17ch;
  margin: 0.45rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  font-weight: 400;
  line-height: 1.02;
}

.product-detail-kicker {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.product-detail-kicker .overline,
.product-detail-price {
  margin: 0;
}

.product-detail-price {
  color: var(--foreground);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.product-detail-description {
  max-width: 34rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--type-body);
  line-height: 1.75;
}

.product-detail-specs {
  display: grid;
  gap: 0;
  margin: 1.5rem 0;
  border-top: 1px solid rgba(156, 139, 122, 0.18);
}

.product-detail-specs div {
  display: grid;
  grid-template-columns: minmax(5rem, 0.45fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid rgba(156, 139, 122, 0.14);
}

.product-detail-specs dt {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-detail-specs dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

.product-detail-feel {
  display: grid;
  gap: 0.45rem;
  margin: -0.45rem 0 1.25rem;
  color: var(--muted);
}

/* Scale runs Airy (left, light and thin) to Firm (right, dark and thick). */
.product-detail-feel-track {
  position: relative;
  height: 7px;
  background: linear-gradient(90deg, rgba(156, 139, 122, 0.16), rgba(156, 139, 122, 0.52) 48%, rgba(93, 75, 58, 0.88));
  clip-path: polygon(0 42%, 100% 0, 100% 100%, 0 58%);
}

.product-detail-feel-track span {
  position: absolute;
  top: 50%;
  left: 22%;
  width: 0.62rem;
  aspect-ratio: 1;
  border: 1px solid var(--background);
  border-radius: 50%;
  background: var(--foreground);
  box-shadow: 0 0 0 1px rgba(67, 53, 39, 0.42);
  transform: translate(-50%, -50%);
}

/* A published set with nothing in stock leaves the carousel; it stays reachable from the Lookbook and bag. */
.product-card.is-sold-out {
  display: none;
}

.product-empty-note {
  margin: 1.5rem auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.product-empty-note[hidden] {
  display: none;
}

/* Marker position follows the product's texture: airy sits near the left (light) end, firm near the right (dark) end. */
.product-detail-feel[data-texture="airy"] .product-detail-feel-track span {
  left: 22%;
}

.product-detail-feel[data-texture="firm"] .product-detail-feel-track span {
  left: 86%;
}

.product-detail-feel-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.product-detail-size {
  min-width: 0;
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding: 0;
  border: 0;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-detail-size legend {
  margin-bottom: 0.65rem;
  padding: 0;
}

.product-detail-size-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
}

/* Products with a size x nail-shape choice have longer labels ("XS · Coffin"): two per row. */
.product-detail-size-options.has-shapes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-detail-size-options.has-shapes .product-detail-size-option span {
  padding: 0.35rem 0.75rem;
  text-align: center;
  line-height: 1.3;
}

.product-detail-size-option {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.product-detail-size-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.product-detail-size-option span {
  min-height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(156, 139, 122, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  color: var(--foreground);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  transition: background 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease), transform 160ms var(--ease);
}

.product-detail-size-option:hover span {
  border-color: rgba(67, 53, 39, 0.34);
  background: rgba(255, 255, 255, 0.68);
}

.product-detail-size-option input:checked + span {
  border-color: var(--foreground);
  background: var(--foreground);
  color: var(--background);
}

.product-detail-size-option input:focus-visible + span {
  outline: 2px solid rgba(156, 139, 122, 0.42);
  outline-offset: 2px;
}

.product-detail-size-option:active span {
  transform: scale(0.97);
}

.product-detail-size-meta {
  min-height: 1.6rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0;
  text-transform: none;
}

.product-size-guide {
  position: relative;
  margin-left: auto;
  text-align: right;
}

.product-size-guide summary {
  cursor: pointer;
  color: var(--taupe);
  list-style: none;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2rem;
}

.product-size-guide summary::-webkit-details-marker {
  display: none;
}

.product-size-guide > div {
  position: absolute;
  right: 0;
  z-index: 4;
  width: min(19rem, 74vw);
  margin-top: 0.6rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(156, 139, 122, 0.18);
  border-radius: 8px;
  background: rgba(250, 249, 247, 0.97);
  box-shadow: 0 16px 38px rgba(67, 53, 39, 0.13);
  color: var(--ink-soft);
  text-align: left;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.product-size-guide p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.55;
}

.product-size-guide p + p {
  margin-top: 0.5rem;
}

.product-size-guide a {
  display: inline-block;
  margin-top: 0.7rem;
  color: var(--foreground);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-detail-add {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: 1.15rem;
  border-radius: 999px;
  transition: background 180ms var(--ease), box-shadow 180ms var(--ease), transform 140ms var(--ease);
}

.product-detail-add strong {
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.product-detail-add:hover,
.product-detail-add:focus-visible {
  background: #3c3732;
  box-shadow: 0 12px 26px rgba(67, 53, 39, 0.16);
}

.product-detail-add:active {
  transform: scale(0.985);
}

.product-detail-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

@media (max-width: 700px) {
  .product-detail-modal {
    width: min(94vw, 34rem);
    max-height: 90svh;
  }

  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .product-detail-media {
    max-height: 48svh;
    cursor: default;
  }

  .product-detail-lens {
    display: none;
  }

  .product-detail-copy h2 {
    max-width: 22ch;
    font-size: clamp(1.85rem, 8vw, 2.35rem);
  }

  .product-detail-size-options {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .product-detail-size-option:last-child {
    grid-column: span 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-detail-backdrop,
  .product-detail-modal {
    transition: none;
  }

  .product-detail-size-option span,
  .product-detail-add,
  .checkout-announcement {
    transition: none;
  }
}

/* Let PageFlip's native shadows describe the fold; the decorative center rule caused a false seam. */
.lookbook {
  padding-inline: clamp(1rem, 3vw, 3rem);
}

.flipbook::before {
  display: none;
}

.magazine.is-pageflip-ready .flip-page {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Quiet, shared control language: the page controls should feel like the analyzer chips. */
.button,
.book-controls button,
.newsletter button,
.product-image button,
.analyzer-placeholder button,
.shopify-placeholder {
  border-radius: 999px;
}

.book-controls button {
  min-width: 7.2rem;
  min-height: 2.5rem;
  position: relative;
  overflow: hidden;
  border-color: rgba(156, 139, 122, 0.28);
  background: rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.46);
  color: var(--taupe);
  padding: 0.55rem 0.9rem;
  transition: border-color 320ms var(--ease), color 320ms var(--ease), transform 320ms var(--ease), background 320ms var(--ease);
}

.book-controls button::before {
  position: absolute;
  top: 50%;
  left: -1.1rem;
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, #fff 0 18%, rgba(255, 255, 255, 0.6) 19% 34%, rgba(192, 170, 132, 0.76) 70%);
  box-shadow: 0 0 0 5px rgba(192, 170, 132, 0.1), 0 8px 20px rgba(67, 53, 39, 0.12);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition: left 520ms var(--ease), opacity 320ms var(--ease);
}

.book-controls button:hover,
.book-controls button:focus-visible {
  border-color: rgba(156, 139, 122, 0.52);
  background: rgba(255, 255, 255, 0.62);
  color: var(--foreground);
  outline: none;
  transform: translateY(-1px);
}

.book-controls button:hover::before,
.book-controls button:focus-visible::before {
  left: calc(100% - 1rem);
  opacity: 1;
}

.book-controls button:disabled {
  border-color: rgba(156, 139, 122, 0.16);
  background: rgba(250, 249, 247, 0.24);
  color: var(--muted);
  opacity: 0.62;
}

.progress-dots {
  max-width: min(100%, 31rem);
  margin-inline: auto;
  gap: 0.2rem;
  flex-wrap: wrap;
}

.progress-dots button {
  position: relative;
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.progress-dots button::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--champagne);
  opacity: 0.45;
  content: "";
  transition: transform 300ms var(--ease), background 300ms var(--ease), opacity 300ms var(--ease);
}

.progress-dots button:hover::before,
.progress-dots button:focus-visible::before,
.progress-dots button.is-active::before {
  background: var(--taupe);
  opacity: 1;
  transform: scale(1.35);
}

.progress-dots button:focus-visible {
  outline: 1px solid var(--taupe);
  outline-offset: 2px;
}

.progress-dots span {
  display: none;
}

/* Give the first and last hard pages a calm paper field while PageFlip holds the cover. */
.magazine.is-cover-view .flipbook {
  filter: drop-shadow(0 30px 48px rgba(67, 53, 39, 0.2));
}

.magazine.is-cover-start .flipbook::before,
.magazine.is-cover-end .flipbook::after {
  position: absolute;
  display: block;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: -1;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.46), rgba(232, 224, 214, 0.3));
  box-shadow: inset 0 0 0 1px rgba(233, 228, 220, 0.55);
  content: "";
  pointer-events: none;
}

.magazine.is-cover-start .flipbook::before {
  left: 0;
  border-radius: 8px 0 0 8px;
  box-shadow: inset -18px 0 28px rgba(67, 53, 39, 0.08), inset 0 0 0 1px rgba(233, 228, 220, 0.55);
}

.magazine.is-cover-end .flipbook::after {
  right: 0;
  border-radius: 0 8px 8px 0;
  box-shadow: inset 18px 0 28px rgba(67, 53, 39, 0.08), inset 0 0 0 1px rgba(233, 228, 220, 0.55);
}

.product-detail-add {
  min-height: 50px;
}

/* Bestseller preview treatment: focus the moving rail on the set itself while
   keeping the full product-detail media untouched. */
.product-card .product-image {
  position: relative;
  width: min(100%, 20rem);
  aspect-ratio: 1;
  margin-inline: auto;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  isolation: auto;
  transition: transform 520ms var(--ease);
}

.product-card .product-image::before {
  display: none;
}

.product-card .product-detail-trigger {
  overflow: visible;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: none;
  transition: none;
}

.product-card .product-detail-trigger img {
  object-fit: contain;
  object-position: center !important;
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: center;
  filter: drop-shadow(0 0.75rem 0.7rem rgba(67, 53, 39, 0.12));
  transition: transform 520ms var(--ease), filter 520ms var(--ease);
  will-change: transform, filter;
}

.product-card.is-product-focus .product-image,
.product-card:hover .product-image {
  transform: none;
}

.product-card .product-detail-trigger:hover,
.product-card .product-detail-trigger:focus-visible {
  box-shadow: none;
  outline: none;
  transform: none;
}

.product-card.is-product-focus .product-detail-trigger img,
.product-card:hover .product-detail-trigger img,
.product-card .product-detail-trigger:focus-visible img {
  transform: translate3d(0, -0.38rem, 0) scale(1.035);
  filter: drop-shadow(0 1.15rem 1rem rgba(67, 53, 39, 0.19));
}

/* Crop the supplied original photography in-browser so the carousel and detail
   show the same, unaltered nail design. */
.product-card[data-original-photo="true"] .product-detail-trigger {
  inset: 10%;
  width: 80%;
  height: 80%;
  overflow: hidden;
  border-radius: 50%;
  filter: drop-shadow(0 0.75rem 0.7rem rgba(67, 53, 39, 0.12));
  transition: transform 520ms var(--ease), filter 520ms var(--ease);
}

.product-card[data-original-photo="true"] .product-detail-trigger img {
  position: absolute;
  top: -75%;
  left: -25%;
  width: 157%;
  max-width: none;
  height: auto;
  object-fit: unset;
  transform: none;
  filter: none;
}

.product-card[data-original-photo="true"].is-product-focus .product-detail-trigger,
.product-card[data-original-photo="true"] .product-detail-trigger:hover,
.product-card[data-original-photo="true"] .product-detail-trigger:focus-visible {
  transform: translateY(-0.38rem) scale(1.035);
  filter: drop-shadow(0 1.15rem 1rem rgba(67, 53, 39, 0.19));
}

.product-card[data-original-photo="true"].is-product-focus .product-detail-trigger img,
.product-card[data-original-photo="true"] .product-detail-trigger:hover img,
.product-card[data-original-photo="true"] .product-detail-trigger:focus-visible img {
  transform: none;
  filter: none;
}

.product-card .badge,
.product-card .product-quick-add {
  z-index: 3;
}

@media (max-width: 620px) {
  .product-card .product-image {
    width: min(100%, 16rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card .product-detail-trigger img {
    transition: none;
  }

  .product-card.is-product-focus .product-detail-trigger img,
  .product-card:hover .product-detail-trigger img,
  .product-card .product-detail-trigger:focus-visible img {
    transform: none;
  }
}

/* Profile entry: a quiet account placeholder ready for Shopify Customer Accounts. */
.profile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(47, 39, 32, 0.13);
  opacity: 0;
  pointer-events: none;
  transition: opacity 360ms var(--ease);
  backdrop-filter: blur(20px) saturate(0.72);
  -webkit-backdrop-filter: blur(20px) saturate(0.72);
}

.profile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 101;
  width: min(100vw, 29rem);
  height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: auto;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-left: 1px solid rgba(255, 255, 255, 0.64);
  background: rgba(250, 249, 247, 0.76);
  box-shadow: -24px 0 70px rgba(67, 53, 39, 0.18);
  transform: translateX(104%);
  transition: transform 480ms var(--ease);
  backdrop-filter: blur(30px) saturate(0.78);
  -webkit-backdrop-filter: blur(30px) saturate(0.78);
}

.profile-open .profile-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.profile-open .profile-drawer {
  transform: translateX(0);
}

.profile-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}

.profile-header h2 {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.65rem, 7vw, 3.7rem);
  font-weight: 300;
  line-height: 0.96;
}

.profile-close,
.profile-forgot {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.profile-content {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding-top: 2rem;
}

.profile-mark {
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(156, 139, 122, 0.34);
  border-radius: 50%;
  color: var(--taupe);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 14px 30px rgba(67, 53, 39, 0.08);
}

.profile-mark .profile-icon {
  width: 20px;
  height: 20px;
}

.profile-lead {
  max-width: 24rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.65;
}

.profile-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.55rem;
}

.profile-form label {
  display: grid;
  gap: 0.4rem;
  color: var(--taupe);
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-form input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--foreground);
  padding: 0.82rem 0.9rem;
  outline: none;
  transition: border-color 240ms var(--ease), box-shadow 240ms var(--ease), background 240ms var(--ease);
}

.profile-password-wrap {
  position: relative;
  display: block;
}

.profile-password-wrap input {
  padding-right: 3rem;
}

.profile-password-toggle {
  position: absolute;
  top: 50%;
  right: 0.85rem;
  width: 1.25rem;
  height: 1.25rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transform: translateY(-50%);
}

.profile-password-toggle span {
  position: absolute;
  inset: 0.23rem 0.05rem;
  border: 1px solid currentColor;
  border-radius: 80% 20%;
  transform: rotate(45deg);
}

.profile-password-toggle span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.28rem;
  height: 0.28rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.profile-password-toggle[aria-pressed="true"] span {
  opacity: 0.45;
}

.profile-form input:focus {
  border-color: rgba(156, 139, 122, 0.62);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(156, 139, 122, 0.12);
}

.profile-form-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.8rem;
  min-height: 1.35rem;
}

.profile-remember {
  display: inline-flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.55rem !important;
  color: var(--ink-soft) !important;
  font-size: 0.78rem !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.profile-remember input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  padding: 0;
  accent-color: var(--foreground);
}

.profile-status {
  min-height: 0;
  margin: 0;
  color: var(--taupe);
  font-size: 0.75rem;
  line-height: 1.35;
}

.profile-status.is-error {
  color: #93645d;
}

.profile-forgot {
  flex: 0 0 auto;
  padding: 0.1rem 0;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: none;
}

.profile-submit {
  min-height: 48px;
  border: 1px solid var(--foreground);
  border-radius: 999px;
  background: var(--foreground);
  color: var(--background);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 300ms var(--ease), background 300ms var(--ease), box-shadow 300ms var(--ease);
}

.profile-social {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  color: var(--foreground);
  cursor: pointer;
  font-size: 0.76rem;
  transition: background 260ms var(--ease), border-color 260ms var(--ease), transform 260ms var(--ease);
}

.profile-fit-summary {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.35);
}

.profile-fit-label { font-size: 0.65rem; letter-spacing: 0.14em; }
.profile-fit-value { margin-top: 0.4rem; font-family: var(--font-display); font-size: 1.35rem; }
.profile-fit-detail { margin-top: 0.4rem; color: var(--ink-soft); font-size: 0.75rem; line-height: 1.5; }

.profile-social:hover,
.profile-social:focus-visible {
  border-color: rgba(156, 139, 122, 0.48);
  background: rgba(255, 255, 255, 0.78);
  outline: none;
  transform: translateY(-1px);
}

.google-mark {
  display: inline-grid;
  width: 1.1rem;
  height: 1.1rem;
  place-items: center;
  color: #4285f4;
  font-size: 0.92rem;
  font-weight: 500;
}

.profile-create {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.profile-create button {
  border: 0;
  background: transparent;
  color: var(--taupe);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.profile-submit:hover,
.profile-submit:focus-visible {
  background: #3c3732;
  box-shadow: 0 12px 24px rgba(67, 53, 39, 0.16);
  outline: none;
  transform: translateY(-1px);
}

.profile-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-divider::before,
.profile-divider::after {
  flex: 1;
  height: 1px;
  background: var(--border);
  content: "";
}

.profile-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 620px) {
  .profile-drawer {
    width: 100vw;
  }

  .profile-form-row {
    align-items: center;
  }
}

/* Mobile refinement: preserve the editorial interactions while giving each
   control a stable, non-overlapping place on narrow screens. */
@media (max-width: 620px) {
  html {
    scroll-padding-top: 4.75rem;
  }

  .announcement {
    height: 34px;
    padding-inline: 0.75rem;
    font-size: 0.55rem;
    letter-spacing: 0.13em;
    text-align: center;
    white-space: nowrap;
  }

  .site-header {
    inset-block-start: 34px;
    height: 64px;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0.25rem;
    padding-inline: 0.65rem;
    background: rgba(251, 250, 248, 0.94);
    box-shadow: 0 1px 0 rgba(156, 139, 122, 0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .site-header.is-scrolled {
    inset-block-start: 0;
  }

  .brand {
    width: 6.65rem;
    height: 48px;
    font-size: 1.55rem;
    letter-spacing: 0.2em;
  }

  .brand-word {
    transform: translateX(0.1em);
  }

  .brand-cat-stage {
    display: none;
  }

  .header-right {
    min-width: 0;
    width: 100%;
    justify-self: stretch;
    justify-content: flex-end;
    gap: 0;
  }

  .header-actions {
    position: static;
    min-width: 0;
    margin: 0;
    gap: 0.1rem;
  }

  .icon-button,
  .menu-toggle {
    flex: 0 0 36px;
    width: 36px;
    height: 40px;
  }

  .menu-toggle {
    margin-left: 0.05rem;
  }

  .menu-toggle span {
    margin-inline: 5px;
  }

  .bag-icon {
    inset: 12px 8px 8px;
  }

  .bag-count {
    right: 0;
  }

  .mobile-menu {
    inset: 98px 0 0;
    z-index: 55;
    align-content: start;
    gap: 0.9rem;
    overflow-y: auto;
    padding: 1.75rem 1.5rem calc(2rem + env(safe-area-inset-bottom));
    background: rgba(251, 250, 248, 0.975);
  }

  .site-header.is-scrolled + .mobile-menu {
    inset-block-start: 64px;
  }

  .mobile-menu a {
    display: block;
    width: fit-content;
    max-width: 100%;
    font-size: clamp(2.15rem, 11vw, 3.15rem);
    line-height: 1;
    letter-spacing: 0;
  }

  .opening-lookbook {
    padding-top: 3.5rem;
  }

  .motion-banner {
    height: clamp(16rem, 68vw, 24rem);
    max-height: 62svh;
  }

  .lookbook .section-heading {
    padding-inline: 0.5rem;
  }

  .lookbook .section-heading h2 {
    max-width: 12ch;
    margin-inline: auto;
    font-size: clamp(2.35rem, 11.5vw, 3.15rem);
    line-height: 0.98;
  }

  .products {
    padding-inline: 1rem;
  }

  .products .section-row {
    margin-bottom: 1.4rem;
    padding-inline: 0.25rem;
  }

  .products .section-row h2 {
    font-size: clamp(2.5rem, 12vw, 3.3rem);
  }

  .product-grid {
    width: 100%;
    padding: 0.75rem 0 1.5rem;
    scroll-padding-inline: 0;
  }

  .product-sequence {
    gap: 1rem;
  }

  .product-card {
    flex-basis: min(calc(100vw - 3rem), 21rem);
    width: min(calc(100vw - 3rem), 21rem);
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .product-card .product-image {
    width: min(100%, 17.25rem);
  }

  .product-image .product-quick-add {
    left: 1rem;
    right: 1rem;
    bottom: 0.55rem;
    min-height: 44px;
    box-shadow: 0 12px 30px rgba(67, 53, 39, 0.12);
  }

  .product-meta {
    align-items: baseline;
    margin-top: 0.85rem;
  }

  .product-meta h3 {
    min-width: 0;
    font-size: 1.45rem;
    line-height: 1.05;
  }

  .product-purchase {
    margin-top: 0.65rem;
  }

  .product-rail-nav {
    top: 8.9rem;
    width: 2.75rem;
    height: 2.75rem;
    opacity: 0.92;
    box-shadow: 0 10px 24px rgba(67, 53, 39, 0.1);
  }

  .product-rail-nav.is-prev {
    left: 0.1rem;
  }

  .product-rail-nav.is-next {
    right: 0.1rem;
  }

  .product-detail-modal {
    top: auto;
    bottom: max(0.45rem, env(safe-area-inset-bottom));
    left: 50%;
    width: calc(100vw - 1rem);
    max-height: calc(100dvh - 1rem);
    padding: 0 1rem calc(1rem + env(safe-area-inset-bottom));
    border-radius: 18px;
    transform: translate(-50%, 1.25rem) scale(0.99);
    overscroll-behavior: contain;
  }

  .product-detail-open .product-detail-modal {
    transform: translate(-50%, 0) scale(1);
  }

  .product-detail-header {
    position: sticky;
    top: 0;
    z-index: 8;
    min-height: 3.5rem;
    padding: 0.75rem 0;
    background: rgba(250, 249, 247, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .product-detail-layout {
    gap: 1rem;
    padding: 0.9rem 0 0;
  }

  .product-detail-media {
    width: 100%;
    max-height: none;
    aspect-ratio: 16 / 8.6;
    border-radius: 12px;
  }

  .product-detail-media img {
    object-fit: cover;
  }

  .product-detail-zoom {
    right: 0.65rem;
    bottom: 0.65rem;
    min-height: 42px;
    padding: 0.55rem 0.8rem;
  }

  .product-detail-copy h2 {
    margin: 0.4rem 0 0.55rem;
    font-size: clamp(2.2rem, 10.5vw, 2.8rem);
    line-height: 0.94;
  }

  .product-detail-description {
    font-size: 0.92rem;
    line-height: 1.58;
  }

  .product-detail-specs {
    margin: 1rem 0;
  }

  .product-detail-feel {
    margin: -0.35rem 0 1rem;
  }

  .product-detail-specs div {
    grid-template-columns: 5.4rem minmax(0, 1fr);
    gap: 0.7rem;
    padding: 0.58rem 0;
  }

  .product-detail-specs dd {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .product-detail-size {
    gap: 0.55rem;
    margin-bottom: 0.8rem;
  }

  .product-detail-size-options {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .product-detail-size-option span {
    min-height: 2.6rem;
  }

  .product-detail-size-option:last-child {
    grid-column: 1 / -1;
  }

  .product-detail-size-meta {
    min-height: 2rem;
  }

  .product-detail-add {
    position: sticky;
    bottom: 0;
    z-index: 6;
    min-height: 52px;
    box-shadow: 0 12px 28px rgba(67, 53, 39, 0.16);
  }

  .product-detail-note {
    margin-bottom: 0.25rem;
    font-size: 0.72rem;
  }
}

/* Newsletter states (engineering, plan B1.14). The form reads
   data-state="unavailable" until the subscribe backend exists. */
.newsletter [data-newsletter-form][data-state="unavailable"] input,
.newsletter [data-newsletter-form][data-state="unavailable"] button {
  cursor: not-allowed;
  opacity: 0.6;
}

.newsletter-panel .newsletter-status:empty {
  display: none;
}

.newsletter-panel .newsletter-status {
  color: rgba(250, 249, 247, 0.82);
}

/* Footer legal links (engineering, plan B1.12). */
.copyright a {
  display: inline;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Compact cart-benefit summary; details remain available on hover, tap, or keyboard. */
.cart-benefits {
  position: relative;
  margin: 0.9rem 0 0.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
}

.cart-benefits[open] {
  z-index: 3;
}

.cart-benefits__summary {
  display: block;
  min-height: 4rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  list-style: none;
}

.cart-benefits__summary::-webkit-details-marker {
  display: none;
}

.cart-benefits__summary::after {
  content: "";
  display: block;
  clear: both;
}

.cart-benefits__heading {
  float: left;
  color: var(--foreground);
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1;
}

.cart-benefits__hint {
  margin-left: 0.45rem;
  color: var(--taupe);
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cart-benefits__status {
  float: right;
  color: var(--ink-soft);
  font-size: 0.7rem;
  line-height: 1.8;
  white-space: nowrap;
}

.cart-benefit__track {
  display: block;
  clear: both;
  height: 3px;
  margin-top: 0.6rem;
  background: rgba(156, 139, 122, 0.18);
  overflow: hidden;
}

.cart-benefit__bar {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--rose);
  transition: width 320ms var(--ease);
}

.cart-benefits[data-state="unlocked"] .cart-benefit__bar {
  background: var(--sage);
}

.cart-benefits[data-state="unlocked"] .cart-benefits__status {
  color: #526750;
}

.cart-benefits__details {
  position: absolute;
  top: 100%;
  right: -1px;
  left: -1px;
  padding: 0.35rem 1rem 0.25rem;
  border: 1px solid var(--border);
  background: var(--background);
  box-shadow: 0 18px 32px rgba(67, 53, 39, 0.15);
}

.cart-benefit {
  padding: 0.6rem 0;
}

.cart-benefit + .cart-benefit {
  border-top: 1px solid var(--border);
}

.cart-benefits__detail-label {
  color: var(--taupe);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cart-benefit__text {
  margin: 0.2rem 0 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.45;
}

.cart-benefits__footnote {
  margin: 0;
  padding: 0.6rem 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.4;
}

.cart-sign-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  background: var(--surface);
}

.cart-sign-in[hidden] {
  display: none;
}

.cart-sign-in p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.45;
}

.cart-sign-in strong {
  display: block;
  color: var(--foreground);
  font-weight: 400;
}

.cart-sign-in a {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 2.75rem;
  align-items: center;
  padding: 0 0.8rem;
  border: 1px solid var(--foreground);
  color: var(--foreground);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cart-sign-in a:hover {
  background: var(--foreground);
  color: var(--background);
}

.cart-credit-email {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 1rem;
}

@media (max-width: 620px), (hover: none), (pointer: coarse) {
  .cart-benefits__details {
    position: static;
    border: 0;
    border-top: 1px solid var(--border);
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cart-benefit__bar {
    transition: none;
  }
}

.cart-credit-email label {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cart-credit-email input {
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-ui);
  font-size: 0.88rem;
}

.cart-credit-email input:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 1px;
}

.cart-credit-email[data-state="invalid"] input {
  border-color: var(--wine);
}

.cart-credit-email[data-state="valid"] input,
.cart-credit-email[data-state="prefilled"] input {
  border-color: var(--sage);
}

.cart-credit-email__hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

/* A quieter printed-book layout; product photographs remain the source of truth. */
.editorial-page {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  height: 100%;
  overflow: hidden;
  padding: 4.2% 5.5% 3.2%;
  background: #f8f7f3;
  color: #241f1a;
}

.editorial-masthead,
.editorial-folio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #dcd5ca;
  padding-bottom: 0.55rem;
  color: #8a8175;
  font-family: var(--font-ui);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.editorial-masthead span:first-child {
  color: #29221d;
  font-family: "Cormorant", Georgia, serif;
  font-size: 0.95rem;
  letter-spacing: 0.24em;
}

.editorial-folio {
  align-self: end;
  border-top: 1px solid #dcd5ca;
  border-bottom: 0;
  padding: 0.55rem 0 0;
}

.editorial-cover {
  display: block;
  padding: 0;
  background: #302b28;
  color: white;
}

.editorial-cover::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 16, 15, 0.2), transparent 35%, transparent 65%, rgba(17, 16, 15, 0.45));
  content: "";
  pointer-events: none;
}

.editorial-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 46% center;
}

.editorial-cover-copy {
  position: absolute;
  z-index: 1;
  inset: auto 7% 6%;
  color: white;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

.editorial-cover-copy span,
.editorial-cover-copy p {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.editorial-cover-copy h3 {
  margin: 0.15em 0;
  font-family: "Cormorant", Georgia, serif;
  font-size: 5rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  line-height: 0.85;
}

.editorial-contents {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.editorial-contents-head {
  padding: 6% 0 4%;
}

.editorial-contents-head > span,
.editorial-end > div > span,
.editorial-product-number {
  color: #a18160;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.editorial-contents-head h3,
.editorial-end h3 {
  margin: 0.12em 0;
  font-family: "Cormorant", Georgia, serif;
  font-size: 3rem;
  font-weight: 300;
  line-height: 0.95;
}

.editorial-contents-head p,
.editorial-end p {
  margin: 0;
  color: #7c736b;
  font-size: 0.85rem;
}

.editorial-contents-list {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(8, minmax(0, 1fr));
  grid-auto-flow: row;
  align-content: stretch;
  column-gap: 1.4rem;
  overflow: hidden;
}

.editorial-contents-list button {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  min-width: 0;
  padding: 0.28rem 0;
  border: 0;
  border-bottom: 1px solid #e2ddd5;
  background: transparent;
  color: #3c352f;
  text-align: left;
  font-family: "Cormorant", Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.08;
  cursor: pointer;
}

.editorial-contents-list button:hover,
.editorial-contents-list button:focus-visible {
  color: #a18160;
  outline: none;
}

.editorial-contents-list button span:first-child {
  flex: none;
  color: #a18160;
  font-family: var(--font-ui);
  font-size: 0.58rem;
}

.editorial-product-image {
  position: relative;
  min-height: 0;
  margin-top: 4%;
  overflow: hidden;
  background: #ede8e0;
}

.editorial-product-image > button {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.editorial-product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}

.editorial-product--scene .editorial-scene {
  width: 100%;
  height: 100%;
  object-position: center 40%;
}

.editorial-product--scene .editorial-product-image > button {
  position: absolute;
  right: 3%;
  bottom: 3%;
  width: 34%;
  height: 45%;
  border: 5px solid #f8f7f3;
  box-shadow: 0 8px 24px rgba(36, 31, 26, 0.2);
}

.editorial-product-copy {
  padding: 4% 0 3%;
}

.editorial-product-copy h3 {
  margin: 0.1em 0 0.15em;
  font-family: "Cormorant", Georgia, serif;
  font-size: 2.35rem;
  font-weight: 400;
  line-height: 0.95;
}

.editorial-product-copy > p {
  max-width: 39ch;
  margin: 0;
  color: #716860;
  font-size: 0.78rem;
  line-height: 1.45;
}

.editorial-product-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid #dcd5ca;
  color: #8a8175;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  line-height: 1.25;
}

.editorial-product-caption span:last-child {
  max-width: 56%;
  text-align: right;
}

.editorial-product-copy > button {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.8rem;
  padding: 0 0 0.2rem;
  border: 0;
  border-bottom: 1px solid #b99d7e;
  background: transparent;
  color: #4c4035;
  font-family: var(--font-ui);
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.editorial-end {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.editorial-end > div:not(.editorial-masthead):not(.editorial-folio) {
  align-self: center;
  max-width: 20rem;
}

.editorial-end h3 {
  font-size: 4rem;
}

@media (max-width: 700px) {
  .editorial-page { padding: 5% 5.5% 4%; }
  .editorial-cover { padding: 0; }
  .editorial-cover-copy h3 { font-size: 2.9rem; }
  .editorial-contents-head { padding: 3% 0 2%; }
  .editorial-contents-head h3 { font-size: 2.2rem; }
  .editorial-contents-list button { padding: 0.1rem 0; font-size: 1.15rem; }
  /* Page height is fixed by the book's aspect ratio, so keep the copy block short and let the photograph take the rest. */
  .editorial-product-image { margin-top: 3%; }
  .editorial-product-copy { padding: 3% 0 2%; }
  .editorial-product-copy h3 { font-size: 1.7rem; }
  .editorial-product-copy > p { display: -webkit-box; overflow: hidden; font-size: 0.82rem; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .editorial-product-caption { display: none; }
  .editorial-product-copy > button { margin-top: 0.5rem; font-size: 0.78rem; }
  .editorial-end h3 { font-size: 2.6rem; }
}

/* Phone-width pages are only ~330px wide and ~430px tall: drop the blurb (it stays in the product detail) so the photograph keeps about half the page. */
@media (max-width: 480px) {
  .editorial-product-copy > p { display: none; }
}
