﻿/* ========================================
   AURA — Fashion Style Discovery Platform
   Shared stylesheet
   ======================================== */

:root {
  --bg: #fbf8f4;
  --bg-soft: #f5f0e8;
  --cream: #efe7d8;
  --beige: #d8c8b0;
  --beige-dark: #b89d7c;
  --blush: #efd9d2;
  --blush-deep: #d9a8a0;
  --rose: #c98b86;
  --gray-soft: #e8e4df;
  --gray: #9b9389;
  --ink: #2a2520;
  --ink-soft: #5b524a;
  --accent: #7a5c4e;
  --white: #ffffff;
  --border: #e8e4df;
  --shadow-sm: 0 2px 12px rgba(60, 45, 35, 0.06);
  --shadow-md: 0 8px 32px rgba(60, 45, 35, 0.08);
  --shadow-lg: 0 24px 60px rgba(60, 45, 35, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-xl: 48px;
  --font-display: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', 'Helvetica Neue', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  /* scroll-behavior: smooth is managed by JS for scroll-driven sections.
     Keeping auto here prevents smooth-scroll from fighting the preroll lock
     and scroll-driven intro animations. In-page anchors use JS smooth scroll. */
  scroll-behavior: auto;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 15px;
  letter-spacing: 0.01em;
  overflow-x: clip;   /* clip = visual cut only, no scroll container — window.scrollY stays accurate */
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ====== Typography ====== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 16px;
  display: inline-block;
}

.serif-italic {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--rose);
}

/* ====== Navigation ====== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(251, 248, 244, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(184, 157, 124, 0.12);
  transition: padding 0.4s var(--ease);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.nav-logo span {
  color: var(--rose);
  font-style: italic;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.3s var(--ease);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--rose);
  transition: width 0.4s var(--ease);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--ink);
}

.nav-cta {
  padding: 10px 22px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.nav-cta:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.nav-auth-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid rgba(10,10,10,0.35);
  color: var(--ink);
  padding: 7px 16px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-auth-btn:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-burger span {
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* Hamburger → X animation when open */
.nav.nav-open .nav-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.nav-open .nav-burger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav.nav-open .nav-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu open state */
@media (max-width: 768px) {
  .nav.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    z-index: 999;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  }
  .nav.nav-open .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }
  .nav.nav-open .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 15px;
  }
}

/* ====== Buttons ====== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 100px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--bg);
}

.btn-soft {
  background: var(--blush);
  color: var(--ink);
}

.btn-soft:hover {
  background: var(--blush-deep);
  color: var(--white);
}

.btn-arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ====== Layout ====== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

.section {
  padding: 120px 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 80px;
}

.section-title {
  font-size: clamp(36px, 4.5vw, 56px);
  margin-bottom: 24px;
}

.section-subtitle {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ====== Hero ====== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 48px 80px;
  background:
    radial-gradient(ellipse at top right, var(--blush) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, var(--cream) 0%, transparent 50%),
    var(--bg);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  align-items: center;
}

.hero-content .eyebrow {
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: italic;
  color: var(--rose);
  font-weight: 400;
}

.hero-description {
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 40px;
  max-width: 480px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(184, 157, 124, 0.25);
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Hero collage */
.hero-visual {
  position: relative;
  height: 700px;
}

.hero-img {
  position: absolute;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--gray-soft);
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-img-1 {
  width: 250px;
  height: 330px;
  top: 0;
  left: -120px;
  z-index: 2;
}

.hero-img-2 {
  width: 250px;
  height: 330px;
  top: 30px;
  right: -120px;
  z-index: 2;
}

.hero-img-3 {
  width: 420px;
  height: 550px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.22);
}

.hero-tag {
  position: absolute;
  background: var(--bg);
  padding: 12px 20px;
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: var(--shadow-md);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose);
}

.hero-tag-1 {
  top: 40%;
  left: -20px;
}

.hero-tag-2 {
  bottom: 80px;
  right: 40px;
  background: var(--ink);
  color: var(--bg);
}

.hero-tag-2::before {
  background: var(--blush);
}

/* ====== Marquee ====== */
.marquee {
  background: var(--ink);
  color: var(--bg);
  padding: 24px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.marquee-track {
  display: inline-flex;
  gap: 60px;
  animation: marquee 40s linear infinite;
  align-items: center;
}

.marquee-item {
  font-family: var(--font-display);
  font-size: 24px;
  font-style: italic;
  display: inline-flex;
  align-items: center;
  gap: 60px;
}

.marquee-item::after {
  content: '✦';
  color: var(--rose);
  font-size: 14px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ====== Style Cards Grid ====== */
.styles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.style-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  background: var(--gray-soft);
  transition: transform 0.5s var(--ease);
}

.style-card:hover {
  transform: translateY(-6px);
}

.style-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

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

.style-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    transparent 0%,
    transparent 40%,
    rgba(42, 37, 32, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: var(--bg);
}

.style-card-num {
  position: absolute;
  top: 24px;
  left: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--bg);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 100px;
}

.style-card-tag {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--bg);
  padding: 6px 12px;
  border-radius: 100px;
}

.style-card-name {
  font-family: var(--font-display);
  font-size: 30px;
  margin-bottom: 6px;
  color: var(--bg);
}

.style-card-desc {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 16px;
  line-height: 1.5;
}

.style-card-link {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.9;
  transition: gap 0.3s var(--ease);
}

.style-card:hover .style-card-link {
  gap: 14px;
}

/* ====== Features / How it works ====== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature {
  background: var(--white);
  padding: 40px 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--blush);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--accent);
  font-style: italic;
}

.feature-title {
  font-size: 22px;
  margin-bottom: 12px;
}

.feature-desc {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

/* ====== AI Stylist Preview ====== */
.stylist-preview {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-lg);
  padding: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.stylist-preview::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--blush-deep) 0%, transparent 60%);
  opacity: 0.2;
  border-radius: 50%;
}

.stylist-preview h2 {
  color: var(--bg);
  font-size: clamp(36px, 4vw, 52px);
  margin-bottom: 24px;
}

.stylist-preview p {
  color: rgba(251, 248, 244, 0.7);
  margin-bottom: 36px;
  font-size: 16px;
  line-height: 1.7;
}

.chat-mock {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
}

.chat-bubble {
  padding: 14px 18px;
  border-radius: 18px;
  margin-bottom: 12px;
  max-width: 85%;
  font-size: 14px;
  line-height: 1.5;
  animation: fadeUp 0.6s var(--ease) backwards;
}

.chat-bubble.user {
  background: var(--blush);
  color: var(--ink);
  border-bottom-right-radius: 4px;
  margin-left: auto;
  animation-delay: 0.2s;
}

.chat-bubble.ai {
  background: rgba(255, 255, 255, 0.1);
  color: var(--bg);
  border-bottom-left-radius: 4px;
  animation-delay: 0.5s;
}

.chat-bubble.ai::before {
  content: 'AURA';
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--blush);
  margin-bottom: 6px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.inspiration-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--gray-soft);
}

.inspiration-item img {
  width: 100%;
  height: auto;
  transition: transform 0.6s var(--ease);
}

.inspiration-item:hover img {
  transform: scale(1.04);
}

.inspiration-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.5));
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: var(--bg);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: opacity 0.3s var(--ease);
}

.inspiration-item:hover .inspiration-item-overlay {
  opacity: 1;
}

.save-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  z-index: 2;
}

.inspiration-item:hover .save-btn {
  opacity: 1;
}

.save-btn:hover {
  transform: scale(1.1);
}

.save-btn.saved {
  opacity: 1;
  background: var(--rose);
  color: var(--bg);
}

.save-btn svg {
  width: 16px;
  height: 16px;
}

/* ====== Footer ====== */
.footer {
  background: var(--ink);
  color: var(--bg);
  padding: 80px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 32px;
  margin-bottom: 20px;
  letter-spacing: 0.1em;
}

.footer-brand span {
  font-style: italic;
  color: var(--rose);
}

.footer-tagline {
  color: rgba(251, 248, 244, 0.6);
  max-width: 320px;
  font-size: 14px;
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--bg);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-family: var(--font-sans);
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul a {
  color: rgba(251, 248, 244, 0.6);
  font-size: 13px;
  transition: color 0.3s var(--ease);
}

.footer-col ul a:hover {
  color: var(--blush);
}

.footer-bottom {
  border-top: 1px solid rgba(251, 248, 244, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(251, 248, 244, 0.4);
  font-size: 12px;
  letter-spacing: 0.1em;
}

/* ========================================
   QUIZ PAGE
   ======================================== */
.quiz-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  background:
    radial-gradient(ellipse at top, var(--blush) 0%, transparent 50%),
    var(--bg);
}

.quiz-container {
  max-width: 720px;
  width: 100%;
}

.quiz-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.quiz-progress-bar {
  flex: 1;
  height: 3px;
  background: rgba(184, 157, 124, 0.2);
  border-radius: 100px;
  overflow: hidden;
  margin-right: 24px;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--rose);
  border-radius: 100px;
  width: 0;
  transition: width 0.6s var(--ease);
}

.quiz-progress-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
}

.quiz-step {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  box-shadow: var(--shadow-md);
  animation: stepIn 0.5s var(--ease);
}

@keyframes stepIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz-step.exiting {
  animation: stepOut 0.4s var(--ease) forwards;
}

@keyframes stepOut {
  to { opacity: 0; transform: translateY(-20px); }
}

.quiz-question-num {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 16px;
}

.quiz-question {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.2;
  margin-bottom: 36px;
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.quiz-option {
  padding: 22px 20px;
  background: var(--bg-soft);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  font-size: 15px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 14px;
}

.quiz-option-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.quiz-option:hover {
  background: var(--cream);
  transform: translateY(-2px);
}

.quiz-option.selected {
  background: var(--blush);
  border-color: var(--rose);
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

.quiz-nav button {
  padding: 12px 24px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease);
}

.quiz-nav button:hover {
  color: var(--ink);
}

.quiz-nav button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Quiz result */
.quiz-result {
  text-align: center;
  animation: stepIn 0.8s var(--ease);
}

.quiz-result-eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 16px;
}

.quiz-result-name {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 72px);
  margin-bottom: 8px;
}

.quiz-result-tagline {
  font-style: italic;
  color: var(--rose);
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 32px;
}

.quiz-result-image {
  width: 240px;
  height: 320px;
  margin: 0 auto 32px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--gray-soft);
}

.quiz-result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quiz-result-desc {
  color: var(--ink-soft);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.quiz-result-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ========================================
   STYLE PAGE
   ======================================== */
.style-hero {
  min-height: 90vh;
  padding: 140px 48px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

.style-hero::before {
  content: attr(data-bg-letter);
  position: absolute;
  font-family: var(--font-display);
  font-size: 28vw;
  font-weight: 400;
  color: var(--cream);
  opacity: 0.5;
  top: 30%;
  right: -5%;
  line-height: 0.8;
  pointer-events: none;
  z-index: 0;
  font-style: italic;
}

.style-hero-content {
  position: relative;
  z-index: 1;
}

.style-hero-tag {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 20px;
  display: inline-block;
}

.style-hero h1 {
  font-size: clamp(60px, 8vw, 120px);
  line-height: 0.9;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.style-hero h1 em {
  font-style: italic;
  color: var(--rose);
}

.style-hero-subtitle {
  font-size: 18px;
  color: var(--ink-soft);
  margin-bottom: 32px;
  font-family: var(--font-display);
  font-style: italic;
}

.style-hero-desc {
  color: var(--ink-soft);
  margin-bottom: 36px;
  line-height: 1.8;
  max-width: 480px;
}

.style-hero-meta {
  display: flex;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-soft);
}

.style-hero-meta-item h5 {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 4px;
}

.style-hero-meta-item p {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.style-hero-visual {
  position: relative;
  height: 600px;
  z-index: 1;
}

.style-hero-img-main {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.style-hero-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.style-hero-img-accent {
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 200px;
  height: 260px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--bg);
}

.style-hero-img-accent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Style sections */
.style-section {
  padding: 100px 48px;
  max-width: 1280px;
  margin: 0 auto;
}

.style-section-alt {
  background: var(--bg-soft);
  max-width: none;
  padding: 100px 48px;
}

.style-section-alt-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.style-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  flex-wrap: wrap;
  gap: 24px;
}

.style-section-header h2 {
  font-size: clamp(32px, 4vw, 48px);
  max-width: 600px;
}

.style-section-header p {
  color: var(--ink-soft);
  max-width: 380px;
  font-size: 14px;
}

.outfit-card-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bg);
  background: rgba(42, 37, 32, 0.85);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 100px;
}

.palette-swatch-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  color: var(--white);
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  display: flex;
  justify-content: space-between;
}

/* Makeup / accessories grid */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.detail-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-md);
  transition: transform 0.4s var(--ease);
}

.detail-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.detail-card-icon {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 36px;
  color: var(--rose);
  margin-bottom: 16px;
}

.detail-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.detail-card ul {
  list-style: none;
}

.detail-card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-soft);
  color: var(--ink-soft);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-card li:last-child {
  border-bottom: none;
}

.detail-card li::before {
  content: '◆';
  color: var(--rose);
  font-size: 8px;
}

/* Shopping */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.shop-card-img {
  aspect-ratio: 1;
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}

.shop-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-card-body {
  padding: 20px;
}

.shop-card-store {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 6px;
}

.shop-card-name {
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 500;
}

.shop-card-price {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink);
}

/* ========================================
   AI STYLIST PAGE
   ======================================== */
.stylist-page {
  min-height: 100vh;
  padding: 100px 24px 24px;
  background:
    radial-gradient(ellipse at top right, var(--blush) 0%, transparent 60%),
    var(--bg);
}

.stylist-layout {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  height: calc(100vh - 124px);
}

.stylist-sidebar {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  overflow-y: auto;
}

.stylist-sidebar h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 16px;
}

.suggestion-chip {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  background: var(--bg-soft);
  border-radius: 12px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--ink);
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
  line-height: 1.4;
}

.suggestion-chip:hover {
  background: var(--blush);
  transform: translateX(4px);
}

.stylist-main {
  background: var(--white);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.stylist-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--gray-soft);
  display: flex;
  align-items: center;
  gap: 16px;
}

.stylist-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blush) 0%, var(--rose) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  color: var(--white);
}

.stylist-header-info h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 2px;
}

.stylist-header-info p {
  font-size: 12px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 6px;
}

.stylist-header-info p::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #4caf50;
  border-radius: 50%;
}

.stylist-messages {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message {
  max-width: 75%;
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.6;
  animation: fadeUp 0.4s var(--ease);
}

.message.user {
  align-self: flex-end;
  background: var(--ink);
  color: var(--bg);
  border-bottom-right-radius: 4px;
}

.message.ai {
  align-self: flex-start;
  background: var(--bg-soft);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}

.message.ai-typing {
  background: var(--bg-soft);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  display: flex;
  gap: 4px;
  padding: 18px;
}

.message.ai-typing span {
  width: 6px;
  height: 6px;
  background: var(--ink-soft);
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out;
}

.message.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.message.ai-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

.stylist-input {
  padding: 20px 32px 24px;
  border-top: 1px solid var(--gray-soft);
  display: flex;
  gap: 12px;
}

.stylist-input input {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid var(--gray-soft);
  border-radius: 100px;
  font-family: inherit;
  font-size: 14px;
  background: var(--bg-soft);
  outline: none;
  transition: border 0.3s var(--ease);
}

.stylist-input input:focus {
  border-color: var(--rose);
}

.stylist-input button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.stylist-input button:hover {
  background: var(--accent);
  transform: scale(1.05);
}

/* ========================================
   MOODBOARD PAGE
   ======================================== */
.moodboard-page {
  min-height: 100vh;
  padding: 140px 48px 80px;
  background: var(--bg);
}

.moodboard-header {
  max-width: 1280px;
  margin: 0 auto 56px;
  text-align: center;
}

.moodboard-header h1 {
  font-size: clamp(48px, 6vw, 80px);
  margin-bottom: 16px;
}

.moodboard-header h1 em {
  font-style: italic;
  color: var(--rose);
}

.moodboard-empty {
  max-width: 480px;
  margin: 80px auto;
  text-align: center;
  padding: 56px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.moodboard-empty .icon {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 56px;
  color: var(--blush-deep);
  margin-bottom: 16px;
}

.moodboard-empty h3 {
  font-size: 28px;
  margin-bottom: 12px;
}

.moodboard-empty p {
  color: var(--ink-soft);
  margin-bottom: 32px;
}

.moodboard-grid {
  max-width: 1400px;
  margin: 0 auto;
  columns: 4;
  column-gap: 16px;
}

.moodboard-grid .inspiration-item {
  margin-bottom: 16px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .hero-grid,
  .stylist-preview,
  .style-hero {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-visual,
  .style-hero-visual {
    height: 500px;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .outfit-grid,
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .palette-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .inspiration-wall,
  .moodboard-grid {
    columns: 2;
  }
  .stylist-preview {
    padding: 48px 32px;
  }
  .stylist-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  .stylist-sidebar {
    display: none;
  }
  .stylist-main {
    height: 75vh;
  }
}

@media (max-width: 720px) {
  .nav {
    padding: 16px 24px;
  }
  .nav-links {
    display: none;
  }
  .nav-burger {
    display: flex;
  }
  .container,
  .style-hero,
  .moodboard-page,
  .style-section {
    padding-left: 24px;
    padding-right: 24px;
  }
  .section {
    padding: 80px 0;
  }
  .quiz-options {
    grid-template-columns: 1fr;
  }
  .quiz-step {
    padding: 32px 24px;
  }
  .styles-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 24px;
  }
  .hero {
    padding: 100px 24px 60px;
  }
  .style-hero-img-accent {
    display: none;
  }
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--ink);
  color: var(--bg);
  padding: 14px 24px;
  border-radius: 100px;
  font-size: 13px;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ========================================
   v2 UPGRADES — filters, shop tabs, complete-look, etc.
   ======================================== */

/* ----- Filter chips ----- */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto 48px;
  max-width: 720px;
  padding: 0 24px;
}
.filter-chip {
  padding: 10px 20px;
  border-radius: 100px;
  background: var(--white);
  border: 1px solid var(--gray-soft);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.filter-chip:hover { border-color: var(--rose); color: var(--ink); }
.filter-chip.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.complete-look-img {
  height: 100%;
  min-height: 460px;
  background: var(--gray-soft);
  position: relative;
}
.complete-look-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
}
.complete-look-img::after {
  content: 'COMPLETE THE LOOK';
  position: absolute;
  top: 24px; left: 24px;
  background: var(--bg);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 10px;
  letter-spacing: 0.24em;
  z-index: 2;
}
.complete-look-body {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
}
.complete-look-body h2 {
  font-size: 34px;
  margin-bottom: 12px;
  line-height: 1.2;
}
.complete-look-body > p {
  color: var(--ink-soft);
  margin-bottom: 28px;
  line-height: 1.7;
}
.complete-look-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.complete-look-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  text-decoration: none;
  color: var(--ink);
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.complete-look-item:hover {
  background: var(--blush);
  transform: translateX(4px);
}
.complete-look-item-img {
  width: 64px; height: 64px;
  border-radius: 12px;
  background: var(--gray-soft);
  overflow: hidden;
  flex-shrink: 0;
}
.complete-look-item-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.complete-look-item-body { flex: 1; min-width: 0; }
.complete-look-item-cat {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 2px;
}
.complete-look-item-name {
  font-size: 14px;
  margin-bottom: 2px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.complete-look-item-meta {
  font-size: 11px;
  color: var(--ink-soft);
  display: flex;
  gap: 8px;
}
.complete-look-item-arrow {
  color: var(--ink-soft);
  font-size: 18px;
  flex-shrink: 0;
}

/* ----- Shop category tabs ----- */
.shop-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin-bottom: 32px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gray-soft);
  scrollbar-width: none;
}
.shop-tabs::-webkit-scrollbar { display: none; }

.shop-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.shop-card-tier {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 10px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--bg);
  color: var(--ink);
  border-radius: 100px;
  z-index: 2;
}
.shop-card-tier.lux { background: var(--ink); color: var(--bg); }
.shop-card-tier.mid { background: var(--cream); color: var(--ink); }
.shop-card-tier.aff { background: var(--blush); color: var(--ink); }

.shop-card-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}
.shop-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 100px;
  background: var(--bg-soft);
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}

/* ----- Featured looks rail (homepage) ----- */
.featured-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.featured-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--gray-soft);
  cursor: pointer;
  transition: transform 0.5s var(--ease);
}
.featured-card:hover { transform: translateY(-4px); }
.featured-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.featured-card:hover img { transform: scale(1.04); }
.featured-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(42,37,32,0.85));
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--bg);
}
.featured-card-tag {
  align-self: flex-start;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--bg);
  color: var(--ink);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.featured-card-title {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.15;
  color: var(--bg);
  margin-bottom: 6px;
}
.featured-card-style {
  font-size: 12px;
  letter-spacing: 0.14em;
  opacity: 0.85;
}

/* ----- Empty state for filtered grids ----- */
.empty-result {
  text-align: center;
  padding: 60px 24px;
  color: var(--ink-soft);
  font-style: italic;
  font-family: var(--font-display);
  font-size: 22px;
}

/* ----- AI stylist product chips ----- */
.ai-products {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 12px;
}
.ai-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--white);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
  border: 1px solid transparent;
}
.ai-product:hover {
  border-color: var(--rose);
  transform: translateX(2px);
}
.ai-product-img {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: var(--gray-soft);
  overflow: hidden;
  flex-shrink: 0;
}
.ai-product-img img { width: 100%; height: 100%; object-fit: cover; }
.ai-product-body { flex: 1; min-width: 0; }
.ai-product-name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ai-product-meta {
  font-size: 11px;
  color: var(--ink-soft);
  display: flex;
  gap: 8px;
}
.ai-product-meta .tier-aff { color: #2a8a4a; }
.ai-product-meta .tier-mid { color: #b88030; }
.ai-product-meta .tier-lux { color: #7a5c4e; }

/* ----- Refined responsive ----- */
@media (max-width: 1024px) {
  .complete-look { grid-template-columns: 1fr; }
  .complete-look-img { min-height: 320px; }
  .complete-look-body { padding: 32px 28px; }
  .featured-rail { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .featured-rail { grid-template-columns: 1fr; }
  .complete-look-body { padding: 28px 22px; }
  .shop-controls { flex-direction: column; align-items: flex-start; }
}
.trend-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.75));
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px;
  color: var(--bg);
}
.trend-card-views {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  color: var(--bg);
  font-size: 10px;
  letter-spacing: 0.14em;
  padding: 5px 10px;
  border-radius: 100px;
  display: flex; align-items: center; gap: 5px;
}
.trend-card-views::before {
  content: '▶';
  font-size: 8px;
}
.trend-card-tag {
  font-size: 9px;
  letter-spacing: 0.22em;
  opacity: 0.85;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.trend-card-title {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.2;
  color: var(--bg);
}
.editorial-cell {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--gray-soft);
}
.editorial-cell img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.editorial-cell:hover img { transform: scale(1.05); }
.editorial-cell-tag {
  position: absolute;
  bottom: 14px; left: 14px;
  background: var(--bg);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.editorial-cell.tall { grid-row: span 2; }
.editorial-cell.wide { grid-column: span 2; }
@media (max-width: 720px) {
  .editorial-cell.wide { grid-column: span 2; }
  .editorial-cell.tall { grid-row: span 2; }
}
.lookbook-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(42,37,32,0.6) 0%, rgba(42,37,32,0) 60%);
  display: flex; align-items: center;
  padding: 0 64px;
}
.lookbook-hero-content {
  max-width: 480px;
  color: var(--bg);
}
.lookbook-hero-content .eyebrow { color: var(--blush); }
.lookbook-hero-content h2 {
  font-size: clamp(36px, 5vw, 64px);
  color: var(--bg);
  line-height: 1.05;
  margin-bottom: 18px;
}
.lookbook-hero-content p {
  color: rgba(251,248,244,0.85);
  font-size: 16px;
  line-height: 1.7;
}
@media (max-width: 720px) {
  .lookbook-hero-overlay { padding: 0 28px; }
}
.mood-cell {
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: var(--gray-soft);
  cursor: pointer;
  transition: transform 0.4s var(--ease);
}
.mood-cell:hover { transform: translateY(-3px); }
.mood-cell img {
  width: 100%;
  display: block;
  transition: transform 0.6s var(--ease);
}
.mood-cell:hover img { transform: scale(1.04); }
.mood-cell-label {
  position: absolute;
  bottom: 10px; left: 10px;
  background: rgba(255,255,255,0.95);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.mood-cell:hover .mood-cell-label { opacity: 1; }

/* ----- Image-rich detail cards (makeup/hair/scent) ----- */
.detail-card-rich {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}
.detail-card-rich:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.detail-card-rich-img {
  aspect-ratio: 4/3;
  background: var(--gray-soft);
  position: relative;
  overflow: hidden;
}
.detail-card-rich-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.detail-card-rich:hover .detail-card-rich-img img { transform: scale(1.05); }
.detail-card-rich-img-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--bg);
  color: var(--ink);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.detail-card-rich-body { padding: 24px 28px 28px; }
.detail-card-rich-body h3 {
  font-size: 22px;
  margin-bottom: 14px;
}
.detail-card-rich-body ul { list-style: none; }
.detail-card-rich-body li {
  padding: 7px 0;
  border-bottom: 1px solid var(--gray-soft);
  color: var(--ink-soft);
  font-size: 13px;
  display: flex; align-items: center; gap: 10px;
}
.detail-card-rich-body li:last-child { border-bottom: none; }
.detail-card-rich-body li::before {
  content: '◆';
  color: var(--rose);
  font-size: 7px;
}

/* ----- Quiz option with preview thumbnail ----- */
.quiz-option-thumb {
  width: 56px; height: 56px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gray-soft);
}
.quiz-option-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ----- AI stylist mood image ----- */
.ai-mood-image {
  margin-top: 14px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--gray-soft);
  aspect-ratio: 16/10;
  position: relative;
}
.ai-mood-image img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.ai-mood-tag {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(255,255,255,0.95);
  color: var(--ink);
  padding: 4px 10px;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 100px;
}

/* ----- Moodboard empty-state collage ----- */
.moodboard-teaser {
  max-width: 1100px;
  margin: 40px auto 0;
}
.moodboard-teaser h4 {
  text-align: center;
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 22px;
  color: var(--ink-soft);
  font-style: italic;
  font-weight: 400;
}
.moodboard-teaser-grid {
  columns: 5;
  column-gap: 12px;
  opacity: 0.85;
}
.moodboard-teaser-grid .mood-cell { margin-bottom: 12px; }
@media (max-width: 1024px) { .moodboard-teaser-grid { columns: 3; } }
@media (max-width: 720px)  { .moodboard-teaser-grid { columns: 2; } }

/* ========================================
   v4 — Editorial polish (Pinterest/Vogue feel)
   ======================================== */

:root {
  --ease-slow: cubic-bezier(0.22, 0.61, 0.36, 1);
  --cinematic-grad: linear-gradient(135deg, rgba(42,37,32,0.0) 30%, rgba(42,37,32,0.55) 100%);
}

/* ----- Editorial spread (Vogue-style asymmetrical 3-image+text layout) ----- */
.editorial-spread {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 48px;
}
.editorial-spread-img {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--gray-soft);
}
.editorial-spread-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.editorial-spread-img:hover img { transform: scale(1.05); }
.editorial-spread-img-1 { grid-row: 1 / span 2; }
.editorial-spread-img-2 { aspect-ratio: 4/5; }
.editorial-spread-img-3 { aspect-ratio: 4/5; }
.editorial-spread-text {
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 8px 24px 24px;
}
.editorial-spread-text .eyebrow { margin-bottom: 22px; }
.editorial-spread-text h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 1.02;
  margin-bottom: 28px;
  letter-spacing: -0.015em;
}
.editorial-spread-text h2 em { font-style: italic; color: var(--rose); }
.editorial-spread-text p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 24px;
  max-width: 380px;
}
.editorial-spread-pull {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--accent);
  padding: 22px 0 22px 22px;
  border-left: 2px solid var(--rose);
  max-width: 380px;
}
@media (max-width: 1024px) {
  .editorial-spread {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
  }
  .editorial-spread-text { grid-row: auto; grid-column: 1 / -1; padding: 0; }
  .editorial-spread-img-1 { grid-row: auto; aspect-ratio: 4/5; }
}
@media (max-width: 720px) {
  .editorial-spread { grid-template-columns: 1fr; padding: 40px 24px; }
  .editorial-spread-img-2, .editorial-spread-img-3 { aspect-ratio: 4/5; }
}
.story-block-img {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 620px;
  box-shadow: var(--shadow-lg);
}
.story-block-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.story-block-img:hover img { transform: scale(1.05); }
.story-block-img-tag {
  position: absolute;
  top: 24px; left: 24px;
  background: var(--bg);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  z-index: 2;
}
.story-block-text { padding: 20px; }
.story-block-text .eyebrow { margin-bottom: 18px; }
.story-block-text h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  margin-bottom: 24px;
}
.story-block-text h2 em { font-style: italic; color: var(--rose); }
.story-block-text p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
@media (max-width: 1024px) {
  .story-block-img { height: 460px; }
}
.detail-strip-cell {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--gray-soft);
}
.detail-strip-cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.detail-strip-cell:hover img { transform: scale(1.08); }
.detail-strip-cell-label {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(42,37,32,0.7));
  color: var(--bg);
  display: flex;
  align-items: flex-end;
  padding: 14px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.6s var(--ease-slow);
}
.detail-strip-cell:hover .detail-strip-cell-label { opacity: 1; }

/* ----- Collage stack (3 overlapping images, asymmetric) ----- */
.collage-stack {
  position: relative;
  height: 580px;
  max-width: 720px;
  margin: 0 auto;
}
.collage-stack-img {
  position: absolute;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--bg);
  background: var(--gray-soft);
}
.collage-stack-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.collage-stack-img:hover img { transform: scale(1.04); }
.collage-stack-img-1 {
  width: 320px; height: 420px;
  top: 0; left: 0;
  z-index: 2;
}
.collage-stack-img-2 {
  width: 280px; height: 360px;
  top: 80px; right: 0;
  z-index: 3;
  transform: rotate(2deg);
}
.collage-stack-img-3 {
  width: 240px; height: 300px;
  bottom: 0; left: 120px;
  z-index: 1;
  transform: rotate(-3deg);
}
@media (max-width: 720px) {
  .collage-stack { height: 480px; max-width: 100%; }
  .collage-stack-img-1 { width: 240px; height: 320px; }
  .collage-stack-img-2 { width: 220px; height: 280px; }
  .collage-stack-img-3 { width: 200px; height: 240px; }
}

/* ----- Layered typography (huge text overlapping image) ----- */
.layered-type {
  position: relative;
  margin: 80px 0;
  text-align: center;
}
.layered-type-bg {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(120px, 18vw, 240px);
  color: var(--cream);
  line-height: 0.85;
  letter-spacing: -0.04em;
  position: relative;
  z-index: 0;
  opacity: 0.65;
}
.layered-type-img {
  position: absolute;
  top: 50%; left: 50%;
  width: 320px; height: 420px;
  transform: translate(-50%, -50%);
  border-radius: var(--radius-md);
  overflow: hidden;
  z-index: 1;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--bg);
}
.layered-type-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px) {
  .layered-type-img { width: 220px; height: 280px; }
}

/* ----- Enhanced style-card (taller, cinematic gradient) ----- */
.styles-grid {
  gap: 18px;
}
.style-card {
  aspect-ratio: 3 / 4.2;
}
.style-card-overlay {
  background: linear-gradient(180deg,
    transparent 0%,
    transparent 35%,
    rgba(42, 37, 32, 0.45) 70%,
    rgba(42, 37, 32, 0.92) 100%);
}
.lookbook-hero-overlay {
  background: linear-gradient(90deg,
    rgba(42,37,32,0.7) 0%,
    rgba(42,37,32,0.3) 45%,
    rgba(42,37,32,0) 75%);
}
@media (max-width: 720px) {
  .lookbook-hero-overlay {
    background: linear-gradient(180deg, rgba(42,37,32,0) 30%, rgba(42,37,32,0.85));
  }
}

/* Warm editorial overlay — blends all three images into the cream palette */
.hero-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    160deg,
    rgba(239, 215, 195, 0.08) 0%,
    rgba(201, 139, 134, 0.10) 60%,
    rgba(42, 37, 32, 0.18) 100%
  );
  pointer-events: none;
  z-index: 2;
}
/* Cinematic color grade — warm, desaturated editorial feel */
.hero-img img {
  filter: saturate(0.88) brightness(0.96) contrast(1.03);
}
/* Large center piece: slightly richer */
.hero-img-3 img {
  filter: saturate(0.85) brightness(0.93) contrast(1.06);
}
.editorial-cell { box-shadow: var(--shadow-sm); transition: box-shadow 0.8s var(--ease-slow); }
.editorial-cell:hover { box-shadow: var(--shadow-lg); }
.editorial-cell-tag {
  font-family: var(--font-display);
  font-style: italic;
  text-transform: none;
  font-size: 14px;
  letter-spacing: 0.05em;
  padding: 7px 14px;
}

/* Tall featured-rail cards */
.featured-card { aspect-ratio: 3 / 4.5; }
.featured-card-overlay {
  background: linear-gradient(180deg, transparent 40%, rgba(42,37,32,0.92));
}
.featured-card-title { font-size: 30px; line-height: 1.05; }
.mood-cell { margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.mood-cell:hover { box-shadow: var(--shadow-md); }

/* Soft section spacing across editorial sections */
.section { padding: 100px 0; }
@media (max-width: 720px) { .section { padding: 64px 0; } }

/* Scattered, Pinterest-like hero collage with subtle rotations */
.hero-img-1 { transform: rotate(-2deg); }
.hero-img-2 { transform: rotate(2deg); }
.hero-img-3 { transform: translateX(-50%) rotate(0deg); }
.hero-img-1:hover { transform: rotate(-2deg) translateY(-6px); }
.hero-img-2:hover { transform: rotate(2deg) translateY(-6px); }
.hero-img-3:hover { transform: translateX(-50%) translateY(-6px); }
.hero-img { transition: transform 0.8s var(--ease-slow); }

/* Magazine-style first-letter drop cap for intros */
.story-block-text p:first-of-type::first-letter,
.editorial-spread-text p::first-letter {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.6em;
  float: left;
  line-height: 0.85;
  padding: 6px 8px 0 0;
  color: var(--rose);
}

/* Softer, more refined heading font weights */
.hero-title,
.section-title,
.style-card-name,
.featured-card-title,
.story-block-text h2,
.editorial-spread-text h2,
.lookbook-hero-content h2,
.style-hero h1 {
  font-weight: 400;
}

/* Aesthetic small-caps eyebrow accent */
.eyebrow::before {
  content: '— ';
  letter-spacing: 0;
  color: var(--rose);
}

/* More breathing room around sections */
.section { padding: 120px 0; }
.style-section { padding: 110px 48px; }
.style-section-alt { padding: 110px 48px; }

/* Hero — slightly taller, more cinematic */
.hero { min-height: 105vh; }
.hero-visual { height: 680px; }

/* Style-grid breathing */
.styles-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* Refined caption typography on overlays */
.style-card-name { letter-spacing: -0.01em; }
.featured-card-title { letter-spacing: -0.01em; }

/* Soft warm vignette over the whole page */
body::before {
  content: '';
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(184, 157, 124, 0.06) 100%);
  pointer-events: none;
  z-index: 999;
  mix-blend-mode: multiply;
}
.inspiration-item { margin-bottom: 18px; }

/* Story block — soft frame around image */
.story-block-img {
  border: 8px solid var(--bg);
  outline: 1px solid var(--gray-soft);
}

/* Smoother button transitions */
.btn { transition: background-color 0.6s var(--ease-slow), transform 0.6s var(--ease-slow), box-shadow 0.6s var(--ease-slow), border-color 0.6s var(--ease-slow); }
.btn:hover { transform: translateY(-2px); }

/* Subtle motion on layered text */
@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.layered-type-img { animation: drift 8s ease-in-out infinite; }

/* Refined chat-mock for stylist preview */
.chat-bubble { backdrop-filter: blur(8px); }

/* Polished save button — softer, smaller, more elegant */
.save-btn {
  width: 38px; height: 38px;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.88);
}
.save-btn:hover { background: var(--white); }
.save-btn.saved {
  background: rgba(201, 139, 134, 0.92);
}
.campaign-section-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.campaign-section-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 8s var(--ease-slow);
}
.campaign-section-veil {
  position: absolute; inset: 0;
  background: linear-gradient(105deg,
    rgba(42,37,32,0.55) 0%,
    rgba(42,37,32,0.25) 35%,
    rgba(42,37,32,0) 65%);
  z-index: 1;
}
.campaign-section-content {
  position: relative;
  z-index: 2;
  color: var(--bg);
  max-width: 640px;
  padding: 0 64px;
}
.campaign-section-content .eyebrow {
  color: var(--blush);
  letter-spacing: 0.4em;
}
.campaign-section-content h2 {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 120px);
  line-height: 0.92;
  color: var(--bg);
  margin: 24px 0 28px;
  letter-spacing: -0.02em;
}
.campaign-section-content h2 em {
  font-style: italic;
  color: var(--blush);
  display: block;
}
.campaign-section-content p {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(251,248,244,0.9);
  margin-bottom: 32px;
  max-width: 460px;
}
.campaign-section-byline {
  position: absolute;
  bottom: 48px; right: 64px;
  z-index: 2;
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.7;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
@media (max-width: 720px) {
  .campaign-section-content { padding: 0 28px; }
  .campaign-section-byline { display: none; }
}

/* ----- Magazine masthead (huge italic display) ----- */
.magazine-masthead {
  text-align: center;
  padding: 100px 24px 60px;
}
.magazine-masthead-pretitle {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  display: block;
}
.magazine-masthead h1 {
  font-family: var(--font-display);
  font-size: clamp(80px, 14vw, 200px);
  font-style: italic;
  line-height: 0.88;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
}
.magazine-masthead-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 32px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--rose);
}
.magazine-masthead-divider::before,
.magazine-masthead-divider::after {
  content: '';
  display: inline-block;
  width: 80px;
  height: 1px;
  background: var(--rose);
  opacity: 0.5;
}
.polaroid {
  position: absolute;
  background: var(--bg);
  padding: 12px 12px 40px;
  box-shadow: 0 18px 48px -8px rgba(60, 45, 35, 0.18),
              0 6px 16px -2px rgba(60, 45, 35, 0.08);
  transition: transform 0.7s var(--ease-slow), box-shadow 0.7s var(--ease-slow);
  cursor: pointer;
}
.polaroid img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.9) brightness(1.02);
}
.polaroid-caption {
  position: absolute;
  bottom: 12px; left: 12px; right: 12px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
  letter-spacing: 0.05em;
}
.polaroid:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.04) !important;
  z-index: 10;
  box-shadow: 0 28px 60px -10px rgba(60, 45, 35, 0.25),
              0 8px 20px -4px rgba(60, 45, 35, 0.12);
}
.polaroid-1 { width: 260px; height: 320px; top: 0; left: 4%; transform: rotate(-4deg); }
.polaroid-2 { width: 280px; height: 360px; top: 60px; left: 28%; transform: rotate(3deg); z-index: 3; }
.polaroid-3 { width: 240px; height: 300px; top: 150px; left: 54%; transform: rotate(-2deg); }
.polaroid-4 { width: 260px; height: 340px; top: 80px; right: 4%; transform: rotate(5deg); }
.polaroid-5 { width: 220px; height: 280px; bottom: 0; left: 18%; transform: rotate(-3deg); z-index: 2; }
.polaroid-6 { width: 240px; height: 320px; bottom: 40px; right: 18%; transform: rotate(2deg); }
@media (max-width: 1024px) {
  .polaroid-1, .polaroid-3, .polaroid-5 { width: 200px; height: 260px; }
  .polaroid-2, .polaroid-4, .polaroid-6 { width: 220px; height: 280px; }
}
@media (max-width: 720px) {
  .polaroid { position: relative; margin: 0 auto 20px; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important; }
  .polaroid-1 { transform: rotate(-3deg); }
  .polaroid-2 { transform: rotate(2deg); }
  .polaroid-3 { transform: rotate(-2deg); }
  .polaroid-4 { transform: rotate(4deg); }
  .polaroid-5, .polaroid-6 { display: none; }
}

/* ----- Index column (magazine table-of-contents style) ----- */
.index-column {
  max-width: 1080px;
  margin: 60px auto;
  padding: 60px 48px;
  display: grid;
  grid-template-columns: 0.6fr 1fr;
  gap: 60px;
}
.index-column-header {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  color: var(--ink);
}
.index-column-list {
  list-style: none;
  border-top: 1px solid var(--gray-soft);
}
.index-column-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-soft);
  transition: padding 0.4s var(--ease-slow);
}
.index-column-list li:hover {
  padding-left: 16px;
}
.index-column-list li a {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
}
.index-column-list li a em { font-style: italic; color: var(--rose); }
.index-column-list li .index-page {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.2em;
}
@media (max-width: 720px) {
  .index-column { grid-template-columns: 1fr; padding: 40px 24px; gap: 24px; }
}

/* ----- Bigger campaign-style imagery in featured rail ----- */
.featured-card { aspect-ratio: 2 / 3; }

/* ----- Refine all overlays toward Vogue tonal palette ----- */
.style-card-overlay,
.featured-card-overlay,
.editorial-cell-tag,
.lookbook-hero-overlay {
  font-feature-settings: 'ss01' on;
}

/* ----- Smoother letter-spacing on long titles ----- */
.section-title,
.hero-title,
.story-block-text h2,
.editorial-spread-text h2,
.style-hero h1 {
  letter-spacing: -0.02em;
  font-feature-settings: 'ss01' on, 'liga' on;
}

/* ----- Page-edge ornaments ----- */
.section { position: relative; }
.section:not(:first-of-type)::before {
  content: '✦';
  position: absolute;
  top: -8px; left: 50%;
  transform: translateX(-50%);
  color: var(--rose);
  font-size: 10px;
  opacity: 0.4;
}

/* Mood gallery — deeper masonry feel (taller items every Nth) */
.mood-cell:nth-child(3n) img { aspect-ratio: 3/4.4; object-fit: cover; }
.mood-cell:nth-child(5n) img { aspect-ratio: 3/3.4; object-fit: cover; }

/* Detail close-ups & square crops — center */
.detail-strip-cell img,
.shop-card-img img,
.complete-look-item-img img,
.ai-product-img img {
  object-position: center center;
}

/* Editorial gallery — keep grid rhythm but show more of each photo */
.editorial-cell img { object-position: center 30%; }

/* Polaroid scatter — preserve full subject (top of frame) */
.polaroid img { object-position: center top; }

/* Story-block image — taller container with safe framing */
.story-block-img { height: 680px; }
.story-block-img img { object-position: center 20%; }

/* Editorial-spread main hero — tall and uncropped */
.editorial-spread-img-1 img { object-position: center 20%; }
.editorial-spread-img-2 img,
.editorial-spread-img-3 img { object-position: center 25%; }

/* Campaign full-bleed — never crop subject from top */
.campaign-section-img img { object-position: 70% center; }

/* Layered-type image — center subject */
.layered-type-img img { object-position: center 30%; }

/* Hero collage — object-position tuned per image content
   hero-1: Louboutin heel in car — show heel top + face below  */
.hero-img-1 img { object-position: center 38%; }
/* hero-2: shopping bags scene — landscape crop, focus on face above bags */
.hero-img-2 img { object-position: center 22%; }
/* hero-3: Vogue-reading girl — portrait, face upper-right, magazine lower-left */
.hero-img-3 img { object-position: 60% 28%; }

/* Style cards: keep faces visible */
.style-card-img { object-position: center 22%; }

/* Optional "natural" class — for images we want to show fully w/o crop */
.img-natural,
.img-natural img {
  object-fit: contain !important;
  background: var(--bg-soft);
}

/* Optional "fit-faces" class — for portraits with face composition */
.fit-faces img { object-position: center 15% !important; }

/* When using local images that may load slowly, keep gentle background */
img[src^="images/"] {
  background: linear-gradient(135deg, var(--cream) 0%, var(--blush) 100%);
}

/* Higher quality rendering hint */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* ========================================
   v8 — Broken image graceful fallback
   ======================================== */

/* When an image fails to load, the JS removes its src — but the IMG element
   still occupies space. Hide it entirely so only the gradient placeholder shows. */
img.broken-image,
img:not([src]),
img[src=""] {
  visibility: hidden;
  background: linear-gradient(135deg, var(--cream) 0%, var(--blush) 100%);
  display: block;
}
img.broken-image::after,
img:not([src])::after {
  content: '';
}

/* ========================================
   v9 — Visual-first homepage + stronger CTAs
   ======================================== */

/* Minimal hero: shorter, less text */
.hero.hero-minimal {
  min-height: 78vh;
  padding: 100px 48px 40px;
}
.hero.hero-minimal .hero-title {
  font-size: clamp(56px, 8vw, 110px);
  margin-bottom: 36px;
}
.hero.hero-minimal .hero-description { display: none; }
.hero.hero-minimal .hero-stats { display: none; }
.hero.hero-minimal .hero-visual { height: 700px; }
@media (max-width: 720px) {
  .hero.hero-minimal { min-height: auto; padding: 80px 24px 24px; }
  /* height matched to the 768px pyramid layout */
  .hero.hero-minimal .hero-visual { height: 400px; }
  /* pixel overrides removed — percentages in the 768px block handle sizing */
}

/* ----- Style navigation chips bar (under hero) ----- */
.style-nav {
  padding: 24px 48px 48px;
  border-bottom: 1px solid rgba(184, 157, 124, 0.15);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(251, 248, 244, 0.92);
}
.style-nav-inner {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1280px;
  margin: 0 auto;
}
.style-nav-chip {
  display: inline-block;
  padding: 12px 22px;
  background: var(--white);
  border: 1px solid var(--gray-soft);
  border-radius: 100px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.4s var(--ease-slow), color 0.4s var(--ease-slow), border-color 0.4s var(--ease-slow), transform 0.4s var(--ease-slow), box-shadow 0.4s var(--ease-slow);
  position: relative;
}
.style-nav-chip::after {
  content: '→';
  margin-left: 8px;
  opacity: 0;
  transform: translateX(-6px);
  display: inline-block;
  transition: opacity 0.4s var(--ease-slow), transform 0.4s var(--ease-slow);
  color: var(--rose);
}
.style-nav-chip:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -6px rgba(60,45,35,0.18);
}
.style-nav-chip:hover::after {
  opacity: 1;
  transform: translateX(0);
  color: var(--blush);
}
@media (max-width: 720px) {
  .style-nav { padding: 16px 16px 32px; position: relative; }
  .style-nav-chip { padding: 10px 16px; font-size: 12px; }
  .style-nav-chip::after { display: none; }
}

/* ----- Larger, more luxurious CTAs ----- */
.btn.btn-large {
  padding: 20px 40px;
  font-size: 13px;
  letter-spacing: 0.18em;
  border-radius: 100px;
  font-weight: 500;
  box-shadow: 0 8px 24px -6px rgba(60, 45, 35, 0.15);
}
.btn.btn-large:hover {
  box-shadow: 0 14px 36px -8px rgba(60, 45, 35, 0.25);
  transform: translateY(-3px);
}
.btn.btn-outline.btn-large:hover {
  background: var(--ink);
  color: var(--bg);
}
.btn .btn-arrow {
  width: 16px; height: 16px;
}

/* Better visual hierarchy on style cards: bigger title, clearer link */
.style-card-name { font-size: 28px; margin-bottom: 4px; }
.style-card-desc { display: none; } /* hide longer description on card — keep it visual */
.style-card-link {
  font-size: 12px;
  letter-spacing: 0.2em;
  padding: 10px 16px;
  background: rgba(255,255,255,0.95);
  color: var(--ink);
  border-radius: 100px;
  align-self: flex-start;
  margin-top: 8px;
  display: inline-block;
  font-weight: 500;
}

/* Hide the broken-image fallback gradient — keep clean if file 404s */
img.broken-image,
img:not([src]),
img[src=""] {
  visibility: hidden;
  display: block;
  background: linear-gradient(135deg, var(--cream) 0%, var(--blush) 100%);
}

/* "Shop similar" style link — replaces heavy product grids */
.shop-link-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 32px 0;
}
.shop-link-row a {
  padding: 14px 24px;
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.4s var(--ease-slow), color 0.4s var(--ease-slow), transform 0.4s var(--ease-slow);
}
.shop-link-row a:hover {
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-2px);
}

/* Tighter homepage section spacing */
.section { padding: 80px 0; }

/* Remove the magazine ✦ markers from minimal homepage (less noise) */
body:not(.full-edit) .section:not(:first-of-type)::before { content: none; }

/* ========================================
   v10 — Minimal homepage: hero + grid + moments rail
   ======================================== */

/* Hide sticky style-nav on the minimal homepage */
.style-nav { display: none; }
.moment-card-img {
  aspect-ratio: 4/3;
  background: var(--gray-soft);
  overflow: hidden;
}
.moment-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.moment-card-body {
  padding: 16px 18px 20px;
}
.moment-card-era {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose);
  display: block;
  margin-bottom: 8px;
}
.moment-card-title {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.005em;
  font-weight: 400;
  color: var(--ink);
  margin: 0;
}

/* Roomier minimal hero */
.hero.hero-minimal { min-height: 88vh; padding: 100px 48px 40px; }

/* ========================================
   v11 — Expanded curated shopping system
   ======================================== */

/* Tier toggle row (top of shop section) */
.exp-shop-tier-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto 48px;
  padding: 0 24px;
  max-width: 720px;
}
.exp-shop-tier-btn {
  padding: 12px 22px;
  background: var(--white);
  border: 1px solid var(--gray-soft);
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.4s var(--ease-slow), color 0.4s var(--ease-slow), background-color 0.4s var(--ease-slow);
  font-weight: 500;
}
.exp-shop-tier-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.exp-shop-tier-btn.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* Each category block */
.exp-shop-cat {
  max-width: 1280px;
  margin: 0 auto 64px;
  padding: 0 48px;
}
.exp-shop-cat-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--gray-soft);
}
.exp-shop-cat-header h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.exp-shop-cat-count {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.exp-shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.exp-shop-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 22px 18px;
  background: var(--white);
  border: 1px solid var(--gray-soft);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--ink);
  min-height: 170px;
  transition: border-color 0.5s var(--ease-slow), transform 0.5s var(--ease-slow), box-shadow 0.5s var(--ease-slow);
}
.exp-shop-card:hover {
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -8px rgba(60,45,35,0.14);
}
.exp-shop-tier-pill {
  position: absolute;
  top: 16px; right: 16px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--bg-soft);
  color: var(--ink);
  border-radius: 100px;
}
.exp-shop-tier-pill.tier-aff { background: var(--blush); }
.exp-shop-tier-pill.tier-mid { background: var(--cream); }
.exp-shop-tier-pill.tier-lux { background: var(--ink); color: var(--bg); }

.exp-shop-store {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 8px;
  font-weight: 500;
}
.exp-shop-name {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 16px;
  text-transform: lowercase;
}
.exp-shop-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  padding-top: 14px;
  border-top: 1px solid var(--gray-soft);
}
.exp-shop-cta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  transition: color 0.3s var(--ease-slow);
}
.exp-shop-card:hover .exp-shop-cta { color: var(--rose); }

@media (max-width: 720px) {
  .exp-shop-cat { padding: 0 16px; margin-bottom: 48px; }
  .exp-shop-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .exp-shop-card { padding: 18px; min-height: 140px; }
  .exp-shop-store { font-size: 18px; }
}

/* ============================================================
   STYLE PAGE — 4-SECTION REBUILD
   ============================================================ */
.ssec { padding: 80px 48px; }
.ssec:nth-child(even) { background: var(--cream); }
.ssec-inner { max-width: 1200px; margin: 0 auto; }
.ssec-num {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin-bottom: 32px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
}

/* --- Section 1: Style Overview --- */
.ssec-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.ssec-overview-img {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius-md);
}
.ssec-overview-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.ssec-overview-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 400;
  line-height: 1.0;
  margin: 0 0 24px;
  color: var(--ink);
}
.ssec-overview-desc {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 460px;
}

/* --- Section 2: Inspiration Pictures --- */
.ssec-inspo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.ssec-inspo-cell {
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--radius-sm);
  position: relative;
}
.ssec-inspo-cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.6s var(--ease-slow);
}
.ssec-inspo-cell:hover img { transform: scale(1.04); }

/* ── Save to moodboard button ── */
.inspo-save-btn {
  position: absolute;
  top: 10px; right: 10px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s, background 0.2s;
  z-index: 3;
}
.inspo-save-btn svg {
  width: 15px; height: 15px;
  stroke: #888;
  transition: stroke 0.2s, fill 0.2s;
}
.ssec-inspo-cell:hover .inspo-save-btn { opacity: 1; transform: translateY(0); }
.inspo-save-btn.saved { background: var(--rose, #c084a0); }
.inspo-save-btn.saved svg { stroke: #fff; fill: #fff; }

/* --- Section 3: Full Outfit Breakdown --- */
.ssec-breakdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.ssec-breakdown-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--radius-md);
  position: sticky;
  top: 100px;
}
.ssec-breakdown-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.ssec-breakdown-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 32px;
  color: var(--ink);
}
.ssec-breakdown-text h2 em {
  font-style: italic;
  color: var(--rose);
}
.ssec-breakdown-item {
  padding: 20px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.ssec-breakdown-item:last-child { border-bottom: none; }
.ssec-breakdown-item h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 8px;
  color: var(--ink);
}
.ssec-breakdown-item p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* --- Section 4: Shop Selection (4 categories × 3 tier sub-headings) --- */
.ssec-shop-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 60px;
}
.ssec-shop-group h3 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 400;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
}
.ssec-shop-emoji { font-size: 24px; }
.ssec-shop-tier {
  margin-top: 18px;
}
.ssec-shop-tier h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: var(--rose);
  font-weight: 500;
}
.ssec-shop-group ul {
  list-style: none;
  padding: 0;
  margin: 0 0 4px;
}
.ssec-shop-group li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.08);
}
.ssec-shop-group li:last-child { border-bottom: none; }
.ssec-shop-store {
  flex-shrink: 0;
  width: 90px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.ssec-shop-group a {
  flex: 1;
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}
.ssec-shop-group a:hover {
  color: var(--rose);
  text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .ssec { padding: 56px 24px; }
  .ssec-overview-grid,
  .ssec-breakdown-grid,
  .ssec-shop-list { grid-template-columns: 1fr; gap: 32px; }
  .ssec-breakdown-img { position: static; }
  .ssec-inspo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   QUIZ — CLEAN, IMAGE-FREE OPTIONS
   ============================================================ */
.quiz-options.quiz-options-clean {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 680px;
  margin: 0 auto;
}
.quiz-options.quiz-options-clean .quiz-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: var(--bg);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  min-height: 80px;
}
.quiz-options.quiz-options-clean .quiz-option:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.quiz-options.quiz-options-clean .quiz-option.selected {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}
.quiz-options.quiz-options-clean .quiz-option-icon {
  font-size: 26px;
  flex-shrink: 0;
}
.quiz-options.quiz-options-clean .quiz-option-text {
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0;
}
/* Hide any legacy thumbnail (defensive — in case rule order ever matters) */
.quiz-options.quiz-options-clean .quiz-option-thumb { display: none; }

@media (max-width: 600px) {
  .quiz-options.quiz-options-clean { grid-template-columns: 1fr; }
}

/* ============================================================
   STYLE PAGE — SECTION 4 RICH EDITORIAL SHOPPING
   ============================================================ */
.ssec-shop-rich { padding: 90px 48px 110px; }
.ssec-shop-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 14px;
  color: var(--ink);
}
.ssec-shop-title em { font-style: italic; color: var(--rose); }
.ssec-shop-intro {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 580px;
  margin: 0 0 48px;
}
.rich-block { margin-bottom: 80px; }
.rich-block:last-child { margin-bottom: 0; }
.rich-block-head { margin-bottom: 28px; }
.rich-block-eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 8px;
}
.rich-block-head h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 400;
  margin: 0;
  color: var(--ink);
  line-height: 1.15;
}

/* ---- Complete the Look — outfit combo cards ---- */
.combo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.combo-card {
  background: var(--bg);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease-slow), box-shadow 0.4s var(--ease-slow);
}
.combo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.10);
}
.combo-card-img {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.combo-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.8s var(--ease-slow);
}
.combo-card:hover .combo-card-img img { transform: scale(1.04); }
.combo-card-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  padding: 6px 12px;
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.combo-card-body { padding: 22px 22px 26px; }
.combo-card-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.combo-card-body h4 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 400;
  margin: 6px 0 4px;
  color: var(--ink);
}
.combo-card-tag {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.combo-pieces { list-style: none; padding: 0; margin: 0; }
.combo-pieces li { border-top: 1px dashed rgba(0,0,0,0.08); }
.combo-pieces li:first-child { border-top: 1px solid var(--ink); }
.combo-pieces a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  text-decoration: none;
  color: var(--ink);
  transition: padding-left 0.2s ease;
}
.combo-pieces a:hover { padding-left: 6px; }
.combo-piece-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.combo-piece-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.combo-piece-name {
  font-size: 13px;
  font-weight: 500;
  margin: 2px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.combo-piece-meta {
  font-size: 11px;
  color: var(--ink-soft);
}

/* ---- Filter chip rows ---- */
.rich-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.rich-filter-row:nth-of-type(2) { margin-bottom: 32px; }
.rich-chip {
  padding: 9px 18px;
  border: 1px solid rgba(0,0,0,0.12);
  background: transparent;
  border-radius: 100px;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.05em;
  cursor: pointer;
  color: var(--ink);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.rich-chip:hover { border-color: var(--ink); }
.rich-chip.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.rich-chip-tier { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }

/* ---- Pinterest-style product wall ---- */
.rich-wall {
  column-count: 4;
  column-gap: 12px;
}
.rich-wall-empty {
  column-span: all;
  padding: 60px 0;
  text-align: center;
  color: var(--ink-soft);
}
.wall-tile-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 14px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.wall-tile-store {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}
.wall-tile-name {
  font-size: 13px;
  font-weight: 500;
  margin: 4px 0 2px;
}
.wall-tile-meta { font-size: 11px; opacity: 0.9; }
.wall-tile-tier {
  position: absolute;
  top: 10px; left: 10px;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(255,255,255,0.94);
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.wall-tile-tier.lux { background: var(--ink); color: var(--bg); }
.wall-tile-tier.aff { background: rgba(255,255,255,0.94); }

/* ---- Horizontal rails ("Style this with…") ---- */
.rich-rail-wrap { margin-bottom: 36px; }
.rich-rail-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.rich-rail-head h4 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 400;
  margin: 0;
  color: var(--ink);
}
.rich-rail-emoji { font-size: 20px; }
.rich-rail-count {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.rich-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 14px;
  margin: 0 -4px;
  scrollbar-width: thin;
}
.rich-rail::-webkit-scrollbar { height: 6px; }
.rich-rail::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.18); border-radius: 100px; }
.rail-card-img {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 10px;
  overflow: hidden;
  background: var(--gray-soft);
  margin-bottom: 10px;
}
.rail-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transition: transform 0.7s var(--ease-slow);
}
.rail-card-tier {
  position: absolute;
  top: 10px; left: 10px;
  padding: 4px 9px;
  border-radius: 100px;
  background: rgba(255,255,255,0.95);
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.rail-card-tier.lux { background: var(--ink); color: var(--bg); }
.rail-card-body { display: flex; flex-direction: column; gap: 3px; }
.rail-card-store {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.rail-card-name {
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rail-card-price { font-size: 12px; color: var(--ink); font-weight: 500; }

/* ---- You may also like ---- */
.rich-also-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.also-card-img {
  aspect-ratio: 1/1.15;
  overflow: hidden;
  background: var(--gray-soft);
}
.also-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.also-card-body {
  padding: 10px 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.also-card-store {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.also-card-price { font-size: 12px; font-weight: 500; }

/* ---- Responsive ---- */
@media (max-width: 1000px) {
  .combo-grid { grid-template-columns: 1fr 1fr; }
  .rich-wall { column-count: 3; }
  .rich-also-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .ssec-shop-rich { padding: 56px 24px 80px; }
  .combo-grid { grid-template-columns: 1fr; }
  .rich-wall { column-count: 2; }
  .rich-also-grid { grid-template-columns: repeat(2, 1fr); }
}
.combo-pieces.combo-pieces-typo {
  list-style: none;
  padding: 0;
  margin: 0;
}
.combo-pieces.combo-pieces-typo li {
  border-top: 1px dashed rgba(0,0,0,0.10);
}
.combo-pieces.combo-pieces-typo li:first-child {
  border-top: 1px solid var(--ink);
  padding-top: 4px;
}
.combo-pieces.combo-pieces-typo li:last-child {
  border-bottom: 1px solid var(--ink);
}
.combo-pieces.combo-pieces-typo a {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: start;
  gap: 14px;
  padding: 14px 0;
  text-decoration: none;
  color: var(--ink);
  transition: padding-left 0.2s ease, color 0.2s ease;
}
.combo-pieces.combo-pieces-typo a:hover {
  padding-left: 6px;
  color: var(--rose);
}
.piece-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.piece-name {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.25;
  word-break: break-word;
}
.piece-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
.piece-meta span:last-child {
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.10em;
}

/* --- "Shop the aesthetic" typography list (replaces masonry wall) --- */
.rich-typo-list {
  display: block;
  margin-top: 8px;
}
.rich-wall-empty {
  padding: 60px 0;
  text-align: center;
  color: var(--ink-soft);
}
/* ---- Styling Tips (end-of-page section) ---- */
.ssec-tips-end { background: var(--cream); }
.ssec-tips-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  margin: 16px 0 40px;
}
.ssec-tips-title em { font-style: italic; }

.style-tips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.style-tip {
  padding: 32px 28px;
  border: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.style-tip-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.style-tip-rule {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
}
.style-tip-detail {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}

/* ---- Brand Guide ---- */
.brand-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--ink);
}
.brand-tier {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.brand-tier + .brand-tier {
  border-left: 1px solid var(--ink);
}
.brand-tier-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.brand-tier-aff .brand-tier-label { color: #6b8e5a; }
.brand-tier-mid .brand-tier-label { color: #8a7a5a; }
.brand-tier-lux .brand-tier-label { color: #7a5a5a; }
.brand-tier-stores {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}
.brand-tier-note {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}

@media (max-width: 1024px) {
  .style-tips-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-guide-grid { grid-template-columns: 1fr; }
  .brand-tier + .brand-tier { border-left: none; border-top: 1px solid var(--ink); }
}
@media (max-width: 640px) {
  .style-tips-grid { grid-template-columns: 1fr; }
  .style-tip { padding: 24px 20px; }
  .brand-tier { padding: 28px 24px; }
}

/* ---- Typo groups (existing) ---- */
.typo-group {
  margin-bottom: 56px;
}
.typo-group:last-child { margin-bottom: 0; }
.typo-group-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
}
.typo-group-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.typo-group-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 56px;
  row-gap: 0;
}
.typo-group-list li {
  border-bottom: 1px dashed rgba(0,0,0,0.10);
}
.typo-group-list a {
  display: grid;
  grid-template-columns: max-content 1fr max-content;
  align-items: baseline;
  gap: 14px;
  padding: 16px 0;
  text-decoration: none;
  color: var(--ink);
  transition: padding-left 0.2s ease, color 0.2s ease;
}
.typo-group-list a:hover {
  padding-left: 6px;
  color: var(--rose);
}
.typo-name {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}
.typo-rule {
  height: 1px;
  border-bottom: 1px dotted rgba(0,0,0,0.18);
  align-self: end;
  margin-bottom: 6px;
}
.typo-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  white-space: nowrap;
}
.typo-store {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.typo-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.10em;
  color: var(--ink);
  font-weight: 500;
}

@media (max-width: 800px) {
  .combo-pieces.combo-pieces-typo a {
    grid-template-columns: 76px 1fr auto;
    gap: 10px;
  }
  .piece-name { font-size: 16px; }
  .typo-group-list { grid-template-columns: 1fr; }
  .typo-group-list a {
    grid-template-columns: 1fr max-content;
  }
  .typo-rule { display: none; }
}

/* ============================================================
   HOMEPAGE — FLOATING FASHION QUOTES (final emotional section)
   ============================================================ */
.quotes-cloud {
  position: relative;
  padding: 120px 48px 140px;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(245, 222, 207, 0.45), transparent 70%),
    radial-gradient(ellipse 70% 60% at 80% 70%, rgba(232, 213, 198, 0.40), transparent 75%),
    linear-gradient(180deg, var(--bg) 0%, #f7efe7 50%, var(--cream) 100%);
  overflow: hidden;
}
.quotes-cloud-head {
  text-align: center;
  margin-bottom: 64px;
  position: relative;
  z-index: 2;
}
.quotes-cloud-head .eyebrow { color: var(--ink-soft); }
.quotes-cloud-head h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  font-style: normal;
  line-height: 1.05;
  margin: 12px 0 0;
  color: var(--ink);
}
.quotes-cloud-head h2 em {
  font-style: italic;
  color: var(--rose);
}

.quotes-cloud-stage {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Card base */
.quote-bubble {
  background: linear-gradient(135deg, #fffaf3 0%, #f5e9da 100%);
  border-radius: 28px;
  padding: 36px 44px;
  box-shadow:
    0 8px 32px -8px rgba(120, 80, 50, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  text-align: center;
  animation: floatA 9s ease-in-out infinite;
}
.quote-bubble .quote-text {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 14px;
  line-height: 1.4;
}
.quote-bubble .quote-author {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}

/* Tonal color variants */
.quote-bubble.qb-2, .quote-bubble.qb-5 { background: linear-gradient(135deg, #fdf3ed 0%, #f0d7c4 100%); }
.quote-bubble.qb-3, .quote-bubble.qb-7 { background: linear-gradient(135deg, #fff5ef 0%, #eed4be 100%); }
.quote-bubble.qb-4                      { background: linear-gradient(135deg, #fdf6ea 0%, #ead9c0 100%); }
.quote-bubble.qb-8                      { background: linear-gradient(135deg, #fbecdf 0%, #e3c8b0 100%); }

/* Staggered gentle float animations */
.quote-bubble.qb-1 { animation: floatA 9s  ease-in-out 0.0s infinite; }
.quote-bubble.qb-2 { animation: floatB 11s ease-in-out 0.4s infinite; }
.quote-bubble.qb-3 { animation: floatC 10s ease-in-out 0.8s infinite; }
.quote-bubble.qb-4 { animation: floatA 13s ease-in-out 0.2s infinite reverse; }
.quote-bubble.qb-5 { animation: floatB 12s ease-in-out 0.6s infinite; }
.quote-bubble.qb-6 { animation: floatC 14s ease-in-out 0.3s infinite reverse; }
.quote-bubble.qb-7 { animation: floatA 11s ease-in-out 0.5s infinite; }
.quote-bubble.qb-8 { animation: floatB 10s ease-in-out 0.7s infinite reverse; }

/* Gentle vertical drift — no rotation, no overlap */
@keyframes floatA {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes floatB {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes floatC {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

@media (prefers-reduced-motion: reduce) {
  .quote-bubble { animation: none !important; }
}

@media (max-width: 900px) {
  .quotes-cloud { padding: 80px 24px 100px; }
  .quotes-cloud-stage { grid-template-columns: 1fr; }
  .quote-bubble .quote-text { font-size: 18px !important; }
}

/* ═══════════════════════════════════════════════════════════════
   EDITORIAL QUOTE SPOTLIGHT
   Replaces the old bubble grid — one quote at a time, dark stage,
   auto-cycles every 6 s with a crossfade + progress line.
═══════════════════════════════════════════════════════════════ */
.qsp-section {
  position: relative;
  padding: 96px 48px 88px;
  background: #100d0b;
  overflow: hidden;
  text-align: center;
}

/* Ambient rose + warm glow — subtle, never distracting */
.qsp-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 80% at 22% 38%, rgba(192, 132, 160, 0.07) 0%, transparent 68%),
    radial-gradient(ellipse 55% 70% at 80% 64%, rgba(184, 141, 100, 0.05) 0%, transparent 68%);
  pointer-events: none;
}

.qsp-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
}

/* Giant decorative opening quote mark */
.qsp-mark {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(72px, 12vw, 148px);
  font-style: italic;
  line-height: 0.52;
  color: rgba(192, 132, 160, 0.13);
  margin-bottom: 12px;
  user-select: none;
  pointer-events: none;
  letter-spacing: -0.02em;
}

/* Quote display area — fixed height stops the section jumping */
.qsp-stage {
  position: relative;
  min-height: clamp(110px, 16vw, 195px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Individual quote items — stacked, only active one is visible */
.qsp-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}
.qsp-item.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.qsp-item.is-exit {
  opacity: 0;
  transform: translateY(-16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.qsp-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(21px, 3vw, 44px);
  font-weight: 400;
  font-style: italic;
  color: #f2e8db;
  line-height: 1.42;
  margin: 0;
  max-width: 780px;
}

/* Footer */
.qsp-footer {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.qsp-author {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(192, 132, 160, 0.6);
  margin: 0;
  min-height: 14px; /* prevent jump on first render */
  transition: opacity 0.4s ease;
}

/* Progress line */
.qsp-progress-wrap {
  width: 88px;
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  position: relative;
  overflow: hidden;
  border-radius: 1px;
}
.qsp-progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg,
    rgba(192, 132, 160, 0.35),
    rgba(192, 132, 160, 0.9));
  transition: width 6s linear;
}

/* Counter + dots row */
.qsp-bottom-row {
  display: flex;
  align-items: center;
  gap: 18px;
}
.qsp-counter {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.16);
  margin: 0;
}

/* Navigation dots */
.qsp-dots { display: flex; gap: 7px; align-items: center; }
.qsp-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.35s, transform 0.35s;
}
.qsp-dot:hover   { background: rgba(192, 132, 160, 0.5); }
.qsp-dot.is-active {
  background: rgba(192, 132, 160, 0.85);
  transform: scale(1.5);
}

@media (max-width: 768px) {
  .qsp-section { padding: 68px 24px 68px; }
  .qsp-stage { min-height: clamp(130px, 28vw, 200px); }
  .qsp-mark { line-height: 0.45; margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .qsp-item      { transition: none !important; }
  .qsp-progress  { transition: none !important; }
}

/* ============================================================
   ANIMATIONS — scroll progress, reveals, magnetic, etc.
   ============================================================ */

/* --- Scroll progress bar (top of viewport) --- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: rgba(0,0,0,0.05);
  z-index: 9999;
  pointer-events: none;
}
.scroll-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--rose, #c9a692), var(--ink, #2a221c));
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.1s linear;
}

/* --- Hero title word reveal --- */
.hero-title .word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1.0;
  padding-bottom: 0.05em;
}
.hero-title .word {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease-out;
  will-change: transform, opacity;
}
.hero-title .word-in {
  transform: translateY(0);
  opacity: 1;
}

/* --- Hero entrance fades --- */
.hero-rise {
  opacity: 0;
  animation: heroRise 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Reveal-on-scroll: variants --- */
.anim-fade-up, .anim-fade-in, .anim-scale-in, .anim-slide-left, .anim-slide-right, .anim-stagger {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.anim-fade-up      { transform: translateY(16px); }
.anim-fade-in      { /* opacity only */ }
.anim-scale-in     { transform: scale(0.96); }
.anim-slide-left   { transform: translateX(-22px); }
.anim-slide-right  { transform: translateX(22px); }
.anim-fade-up.is-visible,
.anim-fade-in.is-visible,
.anim-scale-in.is-visible,
.anim-slide-left.is-visible,
.anim-slide-right.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger children inside a tagged parent */
.anim-stagger > * { opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.2,0.85,0.25,1); }
.anim-stagger > *.stagger-in { opacity: 1; transform: none; }

/* --- Style cards stagger entrance --- */
.styles-grid .style-card.card-pre {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.styles-grid .style-card.card-in {
  opacity: 1;
  transform: none;
}
/* On hover — snappy Ken Burns */
.styles-grid .style-card .style-card-img {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.styles-grid .style-card:hover .style-card-img {
  transform: scale(1.05);
}

/* --- Quote bubbles pop-in --- */
.quote-bubble.bubble-pre {
  opacity: 0;
  transform: scale(0.86) translateY(10px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1.05, 0.36, 1);
}
.quote-bubble.bubble-in {
  opacity: 1;
  transform: scale(1);
}
/* But each .qb-N already has its own rotation transform — preserve it after pop-in */
.quote-bubble.qb-2.bubble-in { transform: rotate(2deg); }
.quote-bubble.qb-4.bubble-in { transform: rotate(-3deg); }
.quote-bubble.qb-5.bubble-in { transform: rotate(-1deg); }
.quote-bubble.qb-6.bubble-in { transform: rotate(3deg); }
.quote-bubble.qb-8.bubble-in { transform: rotate(-2deg); }
/* Float animations resume after pop-in by re-asserting them on .bubble-in */
.quote-bubble.bubble-in.qb-1 { animation: floatA 9s ease-in-out 0.4s infinite; transform: none; }
.quote-bubble.bubble-in.qb-2 { animation: floatB 11s ease-in-out 0.5s infinite; }
.quote-bubble.bubble-in.qb-3 { animation: floatC 10s ease-in-out 0.6s infinite; transform: none; }
.quote-bubble.bubble-in.qb-4 { animation: floatA 13s ease-in-out 0.4s infinite reverse; }
.quote-bubble.bubble-in.qb-5 { animation: floatB 12s ease-in-out 0.6s infinite; }
.quote-bubble.bubble-in.qb-6 { animation: floatC 14s ease-in-out 0.5s infinite reverse; }
.quote-bubble.bubble-in.qb-7 { animation: floatA 11s ease-in-out 0.6s infinite; transform: none; }
.quote-bubble.bubble-in.qb-8 { animation: floatB 10s ease-in-out 0.4s infinite reverse; }

/* --- Hero soft cursor light --- */
.hero.has-cursor-light {
  position: relative;
  --cursor-x: 50%;
  --cursor-y: 50%;
}
.hero.has-cursor-light::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle 380px at var(--cursor-x) var(--cursor-y),
    rgba(232, 198, 174, 0.28),
    transparent 70%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 0;
  mix-blend-mode: multiply;
}
.hero.has-cursor-light:hover::after { opacity: 1; }
.hero.has-cursor-light .hero-grid { position: relative; z-index: 1; }

/* --- Smooth transforms on magnetic buttons --- */
.btn-large, .nav-cta {
  will-change: transform;
}

/* --- Respect reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .hero-title .word { transform: none !important; opacity: 1 !important; }
  .hero-rise { animation: none !important; opacity: 1 !important; transform: none !important; }
  .anim-fade-up, .anim-fade-in, .anim-scale-in, .anim-slide-left, .anim-slide-right { opacity: 1 !important; transform: none !important; }
  .styles-grid .style-card.card-pre { opacity: 1 !important; transform: none !important; }
  .quote-bubble.bubble-pre { opacity: 1 !important; transform: none !important; }
  .scroll-progress-fill { transition: none !important; }
}

/* ============================================================
   PARALLAX + CINEMATIC TUNING
   ============================================================ */

/* Image-parallax containers: clip the scaled drift cleanly */
.parallax-wrap { overflow: hidden; }
.parallax-img {
  /* Pre-scaled so vertical drift never reveals edges */
  transform: translate3d(0, 0, 0) scale(1.05);
  /* NO transition — transform is set every rAF frame by JS.
     A CSS transition would fight each new value and cause rubber-banding. */
  transition: none;
  will-change: transform;
}

/* Window-scroll parallax wrappers (hero text, hero photos, etc.) */
[data-parallax] {
  will-change: transform;
  transition: none !important; /* scroll-driven — no CSS transition */
}

/* Premium easing curve (expo-out) as a re-usable token */
:root {
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-fluid:   cubic-bezier(0.2, 0.85, 0.25, 1);
  --dur-fast:    0.5s;
  --dur-base:    0.8s;
  --dur-slow:    1.0s;
}

/* Re-tune the core animation classes to the 0.5–1.0s premium range */
.anim-fade-up, .anim-fade-in, .anim-scale-in, .anim-slide-left, .anim-slide-right {
  transition: opacity var(--dur-base) var(--ease-premium), transform var(--dur-base) var(--ease-premium) !important;
}
.hero-title .word {
  transition: transform var(--dur-slow) var(--ease-premium), opacity var(--dur-base) ease-out !important;
}
.hero-rise {
  animation: heroRise var(--dur-base) var(--ease-premium) forwards !important;
}
.styles-grid .style-card.card-pre {
  transition: opacity var(--dur-base) var(--ease-premium), transform var(--dur-base) var(--ease-premium) !important;
}
.quote-bubble.bubble-pre {
  transition: opacity var(--dur-fast) var(--ease-premium), transform var(--dur-base) cubic-bezier(0.16, 1.05, 0.3, 1) !important;
}

/* Hero cursor light — slower, more cinematic fade */
.hero.has-cursor-light::after {
  transition: opacity 0.8s var(--ease-fluid);
}

/* Style-card image hover */
.styles-grid .style-card .style-card-img {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* When parallax-img is applied to an image inside its (already styled) container,
   make sure it doesn't fight a previously declared transform */
.ssec-overview-img img.parallax-img,
.ssec-breakdown-img img.parallax-img,
.combo-card-img img.parallax-img,
.ssec-inspo-cell img.parallax-img {
  /* Initial state — overridden every rAF frame by JS. No transition allowed. */
  transform: translate3d(0, 0, 0) scale(1.05);
  transition: none !important;
}

/* Respect motion preference */
@media (prefers-reduced-motion: reduce) {
  .parallax-img { transform: none !important; }
  [data-parallax] { transform: none !important; }
}

/* ============================================================
   CINEMATIC INTRO SEQUENCE
   ============================================================ */
html.intro-active, html.intro-active body { overflow: hidden; }

.intro {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: #0a0805;
  overflow: hidden;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 1s;
  will-change: opacity;
}
.intro.is-fading { opacity: 0; pointer-events: none; }
.intro.is-done   { visibility: hidden; }

/* Stacked full-bleed slides */
.intro-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity;
}
.intro-slide.is-active { opacity: 1; }
.intro-slide.is-prev { opacity: 0; transition-delay: 0.05s; }

.intro-img-wrap {
  position: absolute;
  inset: -6%;        /* slight overscan so pan/zoom never reveals edges */
  overflow: hidden;
}
.intro-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* Initial paused state — JS toggles is-active to start the animation */
  transform: scale(1.08);
  filter: brightness(0.85) saturate(1.05);
  will-change: transform;
}

/* Ken Burns variants — each runs for the slide's visible duration (~3.4s) */
.intro-slide.is-active[data-pan="zoom-in-c"]  img { animation: kbZoomInC 4.2s linear forwards; }
.intro-slide.is-active[data-pan="zoom-in-tl"] img { animation: kbZoomInTL 4.2s linear forwards; }
.intro-slide.is-active[data-pan="zoom-in-br"] img { animation: kbZoomInBR 4.2s linear forwards; }
.intro-slide.is-active[data-pan="zoom-out-c"] img { animation: kbZoomOutC 4.2s linear forwards; }
.intro-slide.is-active[data-pan="pan-left"]   img { animation: kbPanLeft 4.2s linear forwards; }
.intro-slide.is-active[data-pan="pan-right"]  img { animation: kbPanRight 4.2s linear forwards; }

@keyframes kbZoomInC  { from { transform: scale(1.06) translate3d(0, 0, 0); }       to { transform: scale(1.13) translate3d(0, 0, 0); } }
@keyframes kbZoomInTL { from { transform: scale(1.06) translate3d(0, 0, 0); }       to { transform: scale(1.14) translate3d(1.5%, 1.5%, 0); } }
@keyframes kbZoomInBR { from { transform: scale(1.06) translate3d(0, 0, 0); }       to { transform: scale(1.14) translate3d(-1.5%, -1.5%, 0); } }
@keyframes kbZoomOutC { from { transform: scale(1.16) translate3d(0, -0.5%, 0); }   to { transform: scale(1.04) translate3d(0, 0.5%, 0); } }
@keyframes kbPanLeft  { from { transform: scale(1.12) translate3d(2%, 0, 0); }      to { transform: scale(1.12) translate3d(-2%, 0, 0); } }
@keyframes kbPanRight { from { transform: scale(1.12) translate3d(-2%, 0, 0); }     to { transform: scale(1.12) translate3d(2%, 0, 0); } }

/* Cinematic vignette */
.intro-overlay-bottom {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 8, 5, 0.50) 0%, rgba(10, 8, 5, 0) 28%, rgba(10, 8, 5, 0) 60%, rgba(10, 8, 5, 0.78) 100%),
    radial-gradient(ellipse 120% 90% at center, transparent 50%, rgba(10, 8, 5, 0.45) 100%);
  pointer-events: none;
  z-index: 2;
}
.intro-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.7'/></svg>");
}

/* Chrome (skip button, progress bar, prompt, title) */
.intro-chrome {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.intro-chrome > * { pointer-events: auto; }

.intro-title {
  position: absolute;
  left: 48px;
  bottom: 90px;
  color: #fff;
  max-width: 680px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}
.intro-eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(14px);
  animation: introFadeUp 1.0s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.7);
}
.intro-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(48px, 7vw, 110px);
  font-weight: 400;
  line-height: 1.0;
  margin: 0;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(24px);
  animation: introFadeUp 1.0s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}
.intro-headline em { font-style: italic; color: rgba(255, 220, 200, 0.95); }

@keyframes introFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.intro-skip {
  position: absolute;
  top: 32px;
  right: 36px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: 100px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-10px);
  animation: introFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1.0s forwards;
  transition: background 0.4s ease, transform 0.4s ease;
}
.intro-skip:hover { background: rgba(255, 255, 255, 0.20); }
.intro-skip-arrow {
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.intro-skip:hover .intro-skip-arrow { transform: translateX(4px); }

.intro-progress {
  position: absolute;
  bottom: 32px;
  left: 48px;
  right: 48px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
  z-index: 4;
}
.intro-progress-fill {
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.4s linear;
}

.intro-prompt {
  position: absolute;
  bottom: 56px;
  right: 48px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  opacity: 0;
  animation: introPromptPulse 2.2s ease-in-out 1.8s infinite;
}
@keyframes introPromptPulse {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  50%      { opacity: 0.85; transform: translateY(4px); }
}

/* Mobile */
@media (max-width: 720px) {
  .intro-title { left: 24px; bottom: 80px; }
  .intro-headline { font-size: clamp(38px, 11vw, 72px); }
  .intro-skip { top: 20px; right: 20px; padding: 10px 18px; font-size: 10px; }
  .intro-progress { left: 24px; right: 24px; bottom: 24px; }
  .intro-prompt { bottom: 44px; right: 24px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .intro-slide.is-active img { animation: none !important; transform: scale(1.05) !important; }
  .intro-eyebrow, .intro-headline, .intro-skip { animation: none !important; opacity: 1 !important; transform: none !important; }
  .intro-prompt { animation: none !important; opacity: 0.6 !important; }
}

/* ============================================================
   SCROLL-DRIVEN CINEMATIC INTRO  (replaces auto-advance intro)
   ============================================================ */
.intro-cinema {
  position: fixed;
  inset: 0;
  z-index: 9998;
  overflow: hidden;
  background: #0a0805;
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity;
}
.intro-cinema.is-done { opacity: 0; pointer-events: none; }
.intro-cinema.is-removed { display: none; }

#intro-spacer { height: 165vh; pointer-events: none; }

/* Each scene fills the viewport, stacked in z-order */
.intro-cinema .scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: opacity, transform;
}

/* Background image layer (the actual photo) */
.intro-cinema .scene-bg {
  position: absolute;
  inset: 0;              /* no CSS pre-zoom — JS scale provides the only overscan */
  overflow: hidden;
  will-change: transform;
}
.intro-cinema .scene-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%; /* default: upper portion — faces not midriffs */
  display: block;
  will-change: transform;
}

/* Scene-bg-clean: same full-bleed treatment — no more contain/portrait bars */
.intro-cinema .scene-bg-clean {
  inset: 0;
  background: #f6f1ea;
}
.intro-cinema .scene-bg-clean img {
  object-fit: cover;
  background: #f6f1ea;
}

/* Scene 3 override — show full portrait image without cropping */
.intro-cinema .scene-3 .scene-bg-clean img {
  object-fit: contain;
  object-position: center center;
  background: #f0ebe3;   /* matches the cream tone of intro-4.jpg */
}
.intro-cinema .scene-3 .scene-bg-clean {
  background: #f0ebe3;
}

/* ── Per-scene editorial crops ──────────────────────────────────────
   Portrait images (9:16) on a landscape screen. The browser shows
   roughly the middle 35% of the image height. These values shift that
   window to the most compositionally strong part of each photo.
   ─────────────────────────────────────────────────────────────── */

/* Scene 1 — slightly inset so image appears a little smaller / less full-bleed */
.intro-cinema .scene-1 .scene-bg {
  inset: 4% 5%;
}
.intro-cinema .scene-1 .scene-bg img { object-position: center 40%; }

/* Scene 2 — always show all three subjects in full
   object-fit: contain preserves the full composition on every viewport.
   The dark background fills the surrounding area so it reads as a
   cinematic projection rather than whitespace. */
.intro-cinema .scene-2 .scene-bg {
  background: #0d0a0f;
  inset: 3% 4%;   /* projection-screen breathing room on desktop */
}
.intro-cinema .scene-2 .scene-bg img {
  object-fit: contain;
  object-position: center center;
}

/* Scene 3 — object-fit: contain on .scene-bg-clean img above handles the crop */

/* Foreground overlay layers (parallax depth) */
.intro-cinema .scene-fg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.intro-cinema .scene-fg-warm {
  background:
    linear-gradient(180deg, rgba(20, 10, 5, 0.45) 0%, rgba(20, 10, 5, 0) 35%, rgba(20, 10, 5, 0) 65%, rgba(20, 10, 5, 0.78) 100%),
    radial-gradient(ellipse 110% 80% at 60% 50%, transparent 40%, rgba(20, 10, 5, 0.55) 100%);
}
.intro-cinema .scene-fg-cool {
  background:
    linear-gradient(180deg, rgba(15, 18, 24, 0.55) 0%, rgba(15, 18, 24, 0) 30%, rgba(15, 18, 24, 0) 70%, rgba(15, 18, 24, 0.75) 100%),
    radial-gradient(ellipse 130% 90% at center, transparent 45%, rgba(15, 18, 24, 0.4) 100%);
}
.intro-cinema .scene-fg-dark {
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.65) 100%),
    radial-gradient(ellipse 90% 80% at 40% 60%, transparent 35%, rgba(0, 0, 0, 0.55) 100%);
}
.intro-cinema .scene-fg-light {
  background:
    radial-gradient(ellipse 100% 100% at center, transparent 50%, rgba(240, 230, 215, 0.6) 100%);
}

/* Film grain layer (parallax — moves opposite to image) */
.intro-cinema .scene-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.10;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.7'/></svg>");
  will-change: transform;
}

/* Scene text positioning variants */
.intro-cinema .scene-text {
  position: absolute;
  z-index: 5;
  color: #fff;
  text-shadow: 0 6px 36px rgba(0, 0, 0, 0.45);
  will-change: opacity, transform;
  max-width: min(720px, 78vw);
  pointer-events: none;
}
.intro-cinema .scene-text-bl { left: 48px; bottom: 100px; }
.intro-cinema .scene-text-tl { left: 48px; top: 100px; }
.intro-cinema .scene-text-br { right: 48px; bottom: 100px; text-align: right; }
.intro-cinema .scene-text-c  { left: 50%; top: 56px; transform: translateX(-50%); text-align: center; }

.intro-cinema .scene-eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 14px;
}
.intro-cinema .scene-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 6.5vw, 96px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 0;
}
.intro-cinema .scene-title em { font-style: italic; color: rgba(255, 220, 200, 0.95); }
.intro-cinema .scene-3 .scene-eyebrow { color: rgba(60, 40, 25, 0.7); text-shadow: none; }

/* Scene 4 CTA */
.intro-cinema .scene-cta {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: rgba(60, 40, 25, 0.75);
  z-index: 5;
  will-change: opacity, transform;
}

/* Chrome */
.intro-chrome {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}
.intro-chrome > * { pointer-events: auto; }

.intro-skip {
  position: absolute;
  top: 32px; right: 36px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s ease;
}
.intro-skip:hover { background: rgba(255, 255, 255, 0.20); }
.intro-skip-arrow {
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.intro-skip:hover .intro-skip-arrow { transform: translateX(4px); }

.intro-progress {
  position: absolute;
  bottom: 32px; left: 48px; right: 48px;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}
.intro-progress-fill {
  height: 100%;
  background: rgba(255, 255, 255, 0.92);
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
}

.intro-counter {
  position: absolute;
  top: 36px; left: 48px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.7);
}

.intro-prompt {
  position: absolute;
  bottom: 56px; right: 48px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  animation: introPromptPulse 2.4s ease-in-out infinite;
}
@keyframes introPromptPulse {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  50%      { opacity: 0.85; transform: translateY(5px); }
}
.intro-cinema.scene-final .intro-prompt { opacity: 0 !important; }

/* Mobile */
@media (max-width: 720px) {
  .intro-cinema .scene-text-bl,
  .intro-cinema .scene-text-br { left: 24px; right: 24px; bottom: 80px; }
  .intro-cinema .scene-text-tl { left: 24px; top: 90px; }
  .intro-cinema .scene-text { max-width: 100%; }
  .intro-cinema .scene-title { font-size: clamp(34px, 11vw, 64px); }
  .intro-skip { top: 16px; right: 16px; padding: 10px 18px; font-size: 10px; }
  .intro-counter { top: 20px; left: 24px; font-size: 10px; }
  .intro-progress { left: 24px; right: 24px; bottom: 20px; }
  .intro-prompt { bottom: 40px; right: 24px; }
  .intro-cinema .scene-cta { bottom: 60px; }

  /* Scene 2 mobile — let the image fill more of the screen on small viewports.
     The letterbox bars (::before/::after) already provide top/bottom framing,
     so we remove the desktop inset and use the full width. */
  .intro-cinema .scene-2 .scene-bg {
    inset: 0;   /* full viewport area; contain keeps subjects in frame */
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-cinema .scene-bg img, .intro-cinema .scene-bg, .intro-cinema .scene-fg,
  .intro-cinema .scene-grain, .intro-cinema .scene-text, .intro-cinema .scene-cta {
    transform: none !important;
  }
  .intro-prompt { animation: none !important; opacity: 0.6 !important; }
}

/* ============================================================
   INTRO — REEL-INSPIRED OVERRIDES
   Darker grade, bigger display type, sparkle accents, reflections
   ============================================================ */

/* Deeper black background for the cinematic stage */
.intro-cinema { background: #050402; }

/* ── Letterbox bars — instant widescreen / movie feel ── */
.intro-cinema::before,
.intro-cinema::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  z-index: 18;
  pointer-events: none;
  background: #000;
}
.intro-cinema::before { top: 0;    height: clamp(36px, 6.5vh, 72px); }
.intro-cinema::after  { bottom: 0; height: clamp(36px, 6.5vh, 72px); }

/* ── Animated film grain — fast flicker gives real film texture ── */
@keyframes grainShift {
  0%   { background-position:   0%   0%; }
  10%  { background-position:  -5% -10%; }
  20%  { background-position: -15%   5%; }
  30%  { background-position:   7% -25%; }
  40%  { background-position:  -5%  25%; }
  50%  { background-position: -15%  10%; }
  60%  { background-position:  15%   0%; }
  70%  { background-position:   0%  15%; }
  80%  { background-position:   3%  35%; }
  90%  { background-position: -10%  10%; }
  100% { background-position:   0%   0%; }
}
.intro-cinema .scene-grain {
  opacity: 0.07;
  animation: grainShift 0.55s steps(1) infinite;
  will-change: background-position, transform;
}

/* ── Warm light-leak sweep — very soft ambient warmth only ── */
@keyframes lightLeak {
  0%   { opacity: 0;   transform: translateX(-120%); }
  20%  { opacity: 0.07; }
  50%  { opacity: 0.04; }
  80%  { opacity: 0.07; }
  100% { opacity: 0;   transform: translateX(120%); }
}
.intro-cinema .scene-1::before,
.intro-cinema .scene-2::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 200, 140, 0.30) 45%, rgba(255, 220, 170, 0.15) 60%, transparent 100%);
  animation: lightLeak 22s ease-in-out infinite;
}
.intro-cinema .scene-2::before { animation-delay: -11s; }

/* Stronger, moodier foreground overlays */
.intro-cinema .scene-fg-warm {
  background:
    linear-gradient(180deg, rgba(0,0,0, 0.62) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 60%, rgba(0,0,0, 0.88) 100%),
    radial-gradient(ellipse 120% 80% at 65% 50%, transparent 32%, rgba(0,0,0, 0.70) 100%);
}
.intro-cinema .scene-fg-cool {
  background:
    linear-gradient(180deg, rgba(0,0,0, 0.68) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0) 65%, rgba(0,0,0, 0.86) 100%),
    radial-gradient(ellipse 140% 95% at center, transparent 38%, rgba(0,0,0, 0.55) 100%);
}
.intro-cinema .scene-fg-dark {
  background:
    linear-gradient(135deg, rgba(0,0,0, 0.72) 0%, rgba(0,0,0, 0) 45%, rgba(0,0,0, 0.82) 100%),
    radial-gradient(ellipse 90% 80% at 38% 60%, transparent 30%, rgba(0,0,0, 0.65) 100%);
}
.intro-cinema .scene-fg-light {
  background:
    linear-gradient(180deg, rgba(245, 235, 220, 0.0) 50%, rgba(245, 235, 220, 0.85) 100%),
    radial-gradient(ellipse 90% 95% at center, transparent 50%, rgba(245, 235, 220, 0.55) 100%);
}

/* Subtle warm-tint pass on photos to unify them under cinematic light */
.intro-cinema .scene-bg img {
  filter: brightness(0.78) saturate(1.10) contrast(1.05);
}
.intro-cinema .scene-3 .scene-bg img { filter: none; }

/* Reflection plate under the image — luxury showcase feel */
.intro-cinema .scene::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 78%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
  z-index: 2;
}
.intro-cinema .scene-3::after { display: none; }

/* === Display typography — cinematic scale === */
.intro-cinema .scene-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(60px, 10.5vw, 160px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-shadow:
    0 4px 24px rgba(0,0,0,0.70),
    0 16px 80px rgba(0,0,0,0.45);
}
.intro-cinema .scene-title em {
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 210, 185, 0.97);
  text-shadow: 0 0 60px rgba(255, 160, 100, 0.35);
}

.intro-cinema .scene-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.42em;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
/* Sparkle accent */
.intro-cinema .scene-eyebrow::before {
  content: '✦';
  display: inline-block;
  font-size: 14px;
  color: rgba(255, 200, 170, 0.9);
  animation: sparkleTwinkle 3s ease-in-out infinite;
}
@keyframes sparkleTwinkle {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 0.80; }
}

/* Scene 4 has its OWN giant marquee headline that takes over */
.intro-cinema .scene-3 .scene-text { 
  top: 8%; 
  width: 92%; 
  text-align: center;
}
.intro-cinema .scene-3 .scene-eyebrow {
  color: rgba(40, 30, 20, 0.7);
  text-shadow: none;
  justify-content: center;
}
.intro-cinema .scene-3 .scene-eyebrow::before { color: rgba(100, 70, 50, 0.7); }

/* CTA — more dramatic */
.intro-cinema .scene-cta {
  bottom: 60px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 22px;
  letter-spacing: 0.1em;
  text-transform: none;
  color: rgba(40, 30, 20, 0.85);
  font-weight: 400;
}
.intro-cinema .scene-cta::before {
  content: '✦';
  margin-right: 10px;
  display: inline-block;
  animation: sparkleTwinkle 3s ease-in-out infinite;
}
.intro-cinema .scene-cta::after {
  content: '✦';
  margin-left: 10px;
  display: inline-block;
  animation: sparkleTwinkle 3s ease-in-out infinite;
  animation-delay: -1.5s;
}

/* Chrome refinements — premium feel */
.intro-skip {
  font-size: 11px;
  letter-spacing: 0.30em;
}
.intro-counter {
  font-size: 12px;
  letter-spacing: 0.40em;
  color: rgba(255, 255, 255, 0.85);
}
.intro-counter::before { content: '◉ '; color: rgba(255, 200, 170, 0.7); margin-right: 6px; }

.intro-prompt {
  font-size: 11px;
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.65);
}
.intro-prompt::before { content: '↓ '; margin-right: 6px; }

/* Subtle viewfinder corners — premium frame */
.intro-cinema::before,
.intro-cinema::after {
  content: '';
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
  z-index: 11;
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.intro-cinema::before {
  top: 24px; left: 24px;
  border-right: 0;
  border-bottom: 0;
}
.intro-cinema::after {
  bottom: 24px; right: 24px;
  border-left: 0;
  border-top: 0;
}
.intro-cinema.is-done::before, .intro-cinema.is-done::after { opacity: 0; }

@media (max-width: 720px) {
  .intro-cinema .scene-title { font-size: clamp(40px, 13vw, 84px); }
  .intro-cinema .scene-3 .scene-text { top: 5%; }
  .intro-cinema .scene-cta { font-size: 18px; }
  .intro-cinema::before, .intro-cinema::after { width: 26px; height: 26px; top: 12px; left: 12px; }
  .intro-cinema::after { top: auto; left: auto; bottom: 12px; right: 12px; }
}

/* ============================================================
   INTRO — CLEAN REBUILD (overrides earlier over-zoomed styles)
   Goal: show the full image, subtle premium motion, legible text
   ============================================================ */

/* No overscan / no pre-scale baseline — show the photo as it is */
.intro-cinema .scene-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.intro-cinema .scene-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: translate3d(0, 0, 0) scale(1.0);
  filter: brightness(0.92) saturate(1.06) contrast(1.02);
  will-change: transform;
}
/* Scene 4 (leopard) is white/contain, keep it clean */
.intro-cinema .scene-3 .scene-bg img { filter: none; }

/* Lighter, less crushing foreground overlays — photos breathe */
.intro-cinema .scene-fg-warm {
  background:
    linear-gradient(180deg, rgba(0,0,0, 0.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 55%, rgba(0,0,0, 0.62) 100%);
}
.intro-cinema .scene-fg-cool {
  background:
    linear-gradient(180deg, rgba(0,0,0, 0.38) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 60%, rgba(0,0,0, 0.62) 100%);
}
.intro-cinema .scene-fg-dark {
  background:
    linear-gradient(180deg, rgba(0,0,0, 0.40) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 55%, rgba(0,0,0, 0.68) 100%);
}
.intro-cinema .scene-fg-light {
  background:
    linear-gradient(180deg, rgba(245, 235, 220, 0.0) 60%, rgba(245, 235, 220, 0.65) 100%);
}
/* Drop the reflection plate (was darkening images too much) */
.intro-cinema .scene::after { display: none !important; }

/* Display title — strong legibility, dramatic but readable */
.intro-cinema .scene-title {
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: clamp(48px, 7.5vw, 108px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.022em;
  text-shadow:
    0 4px 30px rgba(0, 0, 0, 0.7),
    0 2px 8px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(0, 0, 0, 0.3);
  margin: 0;
}
.intro-cinema .scene-title em {
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 220, 200, 0.98);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}
.intro-cinema .scene-eyebrow {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
.intro-cinema .scene-3 .scene-title { color: rgba(40, 25, 15, 0.92); text-shadow: none; }
.intro-cinema .scene-3 .scene-eyebrow { color: rgba(40, 25, 15, 0.7); text-shadow: none; }

/* CTA — softer */
.intro-cinema .scene-cta {
  color: rgba(40, 25, 15, 0.85);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 20px;
  letter-spacing: 0.08em;
}

/* Chrome — slightly stronger contrast for legibility */
.intro-counter, .intro-prompt, .intro-skip {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.intro-skip { background: rgba(255, 255, 255, 0.12); }

/* ============================================================
   INTRO — SHOW FULL PHOTO WITH BLURRED BLEED-FILL
   Solves portrait-photo-in-landscape-viewport over-zoom issue.
   The main photo stays "contained" and visible end-to-end;
   the empty side bands are filled by a blurred copy of the
   same photo, so the frame still feels full and cinematic.
   ============================================================ */

/* Main photo: cover mode so Ken Burns never reveals edges */
.intro-cinema .scene-bg img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

/* Blurred bleed-fill behind it (per scene, same image blurred) */
.intro-cinema .scene-bg::before {
  content: '';
  position: absolute;
  inset: -8%;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(48px) brightness(0.55) saturate(1.15);
  transform: scale(1.15);
}
.intro-cinema .scene-1 .scene-bg::before { background-image: url('../images/intro/intro-2.jpg'); }
.intro-cinema .scene-2 .scene-bg::before { background-image: url('../images/intro/intro-3.jpg'); }
/* Scene 3 (final reveal) keeps its clean cream background — no bleed-fill needed */
.intro-cinema .scene-3 .scene-bg::before { background: #f6f1ea; filter: none; transform: none; }

/* Base filter — JS prepends blur() to this value during focus-pull entrance */
/* Do NOT add !important — JS needs to override this with blur() */
.intro-cinema .scene-bg img { filter: brightness(0.82) saturate(1.12) contrast(1.04); }
.intro-cinema .scene-3 .scene-bg img { filter: none; }

/* Even SUBTLER motion now — image stays composed, just drifts gently */
/* (overrides are applied by JS via transform; CSS just defines the rest layer) */

/* ============================================================
   INTRO — FIX: re-enable scroll (the intro IS driven BY scroll)
   ============================================================ */
html.intro-active,
html.intro-active body {
  overflow: visible !important;     /* allow normal scrolling */
  overflow-y: auto !important;
}
/* Keep horizontal scroll clipped (clip ≠ hidden — doesn't create scroll container) */
body { overflow-x: clip; }

/* And make sure the spacer actually contributes to scroll height */
#intro-spacer {
  height: 240vh;
  width: 100%;
  pointer-events: none;
  display: block;
}

/* ============================================================
   INTRO — CINEMATIC PASS (performance + visuals balanced)
   ============================================================ */

/* ── NO CSS TRANSITIONS on scroll-driven elements ───────────
   JS sets transform/opacity every rAF frame via applyScene()
   and ambientTick(). A CSS transition on these properties
   fights each new JS value and causes rubber-band "returning".
   Smoothness comes from rAF + scroll, NOT from CSS transitions. */
.intro-cinema .scene-bg img,
.intro-cinema .scene-bg,
.intro-cinema .scene-fg,
.intro-cinema .scene-grain,
.intro-cinema .scene-text,
.intro-cinema .scene-cta,
.intro-cinema .scene { transition: none !important; }

/* Spacer: 3 scenes × 80vh = 240vh (matches SCENE_SPAN = 0.80 in intro.js) */
#intro-spacer { height: 240vh !important; }

/* Flat backdrop so overscan edges never show */
.intro-cinema .scene-bg::before { display: none !important; }
.intro-cinema .scene-bg {
  background: #08060400;  /* near-transparent — image covers everything */
}
.intro-cinema .scene-3 .scene-bg { background: #f6f1ea; }

/* ── Film grain — CSS-only, GPU-composited, no JS cost ─────── */
/* Enabled via CSS animation (background-position steps = zero raster cost) */
.intro-cinema .scene-grain {
  display: block;
  opacity: 0.07;
  mix-blend-mode: overlay;
  will-change: background-position;
}

/* ── Scene-specific color grades via foreground overlays ───── */
/* Each scene has a distinct mood — this is what separates editorial   */
/* film from generic scrolling. All cinematic values, no black mud.   */

/* ── Cinematic vignettes — each has a horizontal component that
   makes portrait-cropped images feel wider and more immersive ── */

/* Scene 1: warm amber — golden, intimate push-in */
.intro-cinema .scene-fg-warm {
  background:
    /* Top + bottom darkening */
    linear-gradient(180deg, rgba(0,0,0,0.38) 0%, transparent 30%, transparent 62%, rgba(0,0,0,0.60) 100%),
    /* Subtle side darkening */
    linear-gradient(90deg, rgba(0,0,0,0.28) 0%, transparent 24%, transparent 76%, rgba(0,0,0,0.28) 100%),
    /* Warm amber color grade at top-left corner */
    radial-gradient(ellipse 60% 50% at 0% 0%, rgba(200,120,40,0.08) 0%, transparent 70%);
}

/* Scene 2: cool airy — crane-up, magazine-clean */
.intro-cinema .scene-fg-cool {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.40) 0%, transparent 28%, transparent 64%, rgba(0,0,0,0.60) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.25) 0%, transparent 22%, transparent 78%, rgba(0,0,0,0.25) 100%),
    /* Cool blue-silver at top */
    radial-gradient(ellipse 70% 40% at 100% 0%, rgba(80,110,160,0.07) 0%, transparent 65%);
}

/* Scene 3: moody — tracking shot, high-fashion feel */
.intro-cinema .scene-fg-dark {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.42) 0%, transparent 32%, transparent 60%, rgba(0,0,0,0.65) 100%),
    /* Subtle horizontal darkening */
    linear-gradient(90deg, rgba(0,0,0,0.30) 0%, transparent 20%, transparent 80%, rgba(0,0,0,0.30) 100%),
    /* Very subtle rose grade */
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(120,40,60,0.05) 0%, transparent 70%);
}

/* Scene 4: cream reveal — hopeful, brand payoff */
.intro-cinema .scene-fg-light {
  background:
    linear-gradient(180deg, rgba(245,235,220,0) 52%, rgba(245,235,220,0.80) 100%),
    radial-gradient(ellipse 85% 90% at center, transparent 52%, rgba(245,235,220,0.40) 100%);
}

/* ── Image color grade — JS sets blur inline; CSS provides the base ─ */
/* Do NOT use !important here — JS needs to prepend blur() to this.   */
.intro-cinema .scene-bg img {
  filter: brightness(0.92) saturate(1.05) contrast(1.01);
}
.intro-cinema .scene-3 .scene-bg img { filter: none; }

/* ── will-change — only on what actually transforms ────────── */
.intro-cinema .scene-bg img { will-change: transform, filter; }
.intro-cinema .scene-fg     { will-change: transform; }
.intro-cinema .scene-grain  { will-change: background-position, transform; }
.intro-cinema .scene-text   { will-change: opacity, transform; }

/* ── Letterbox bars — slide in on load, stay for the intro ──── */
.intro-cinema::before,
.intro-cinema::after {
  display: block;
  content: '';
  position: absolute;
  left: 0; right: 0;
  z-index: 18;
  pointer-events: none;
  background: #000;
  animation: letterboxSlide 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}
.intro-cinema::before { top: 0;    height: clamp(38px, 6.5vh, 74px); transform-origin: top;    }
.intro-cinema::after  { bottom: 0; height: clamp(38px, 6.5vh, 74px); transform-origin: bottom; }

@keyframes letterboxSlide {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

/* ── Sparkle glyphs — clean CSS, no repaints ────────────────── */
.intro-cinema .scene-eyebrow::before {
  display: inline-block;
  font-size: 12px;
  color: rgba(255, 200, 170, 0.85);
}
.intro-cinema .scene-cta::before,
.intro-cinema .scene-cta::after {
  display: inline-block;
  font-size: 16px;
}
.intro-cinema .scene-eyebrow { gap: 10px; }

/* ── Eyebrow letter-tracking — expands as text enters ─────── */
@keyframes eyebrowTrack {
  from { letter-spacing: 0.20em; opacity: 0; }
  to   { letter-spacing: 0.42em; opacity: 1; }
}

/* ── Skip button — no backdrop-filter (GPU-heavy) ─────────── */
.intro-skip {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

/* ── Prompt pulse ─────────────────────────────────────────── */
@keyframes introPromptPulse {
  0%, 100% { opacity: 0.30; }
  50%      { opacity: 0.88; }
}

/* ============================================================
   INTRO — TYPOGRAPHY READABILITY PASS
   Remove special-glyph fallbacks (◉ ✦) that render as CJK chars
   on some systems; strengthen contrast for all on-screen text.
   ============================================================ */

/* Kill the special-glyph pseudo-elements that were falling back to Chinese fonts */
.intro-counter::before,
.intro-prompt::before,
.intro-skip::before,
.scroll-progress::before { content: '' !important; display: none !important; }

/* Eyebrows: pure-ASCII, no glyph prefix */
.intro-cinema .scene-eyebrow {
  font-family: 'JetBrains Mono', 'Inter', monospace, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #fff;
  text-shadow:
    0 2px 14px rgba(0, 0, 0, 0.85),
    0 1px 3px rgba(0, 0, 0, 0.7);
  margin-bottom: 20px;
  display: inline-block;
  padding: 0;
}

/* Scene titles: stronger weight, multi-layer shadow, slightly tighter line */
.intro-cinema .scene-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(46px, 7.2vw, 102px);
  font-weight: 600 !important;
  line-height: 0.95;
  letter-spacing: -0.022em;
  color: #fff !important;
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.9),
    0 8px 40px rgba(0, 0, 0, 0.75),
    0 0 80px rgba(0, 0, 0, 0.45);
  margin: 0;
}
.intro-cinema .scene-title em {
  font-style: italic;
  font-weight: 500;
  color: #ffd4b8 !important;
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.85),
    0 6px 30px rgba(0, 0, 0, 0.65);
}

/* Scene 4 — dark text on cream background (white background photo) */
.intro-cinema .scene-3 .scene-eyebrow {
  color: #2a1a10 !important;
  text-shadow: none !important;
}
.intro-cinema .scene-3 .scene-title {
  color: #1a0e08 !important;
  text-shadow: none !important;
}

/* CTA — plain text, no sparkle wings */
.intro-cinema .scene-cta {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 22px;
  letter-spacing: 0.06em;
  color: #2a1a10 !important;
  text-shadow: none !important;
}
.intro-cinema .scene-cta::before,
.intro-cinema .scene-cta::after {
  content: '' !important;
  display: none !important;
}

/* Counter / skip / prompt — strong contrast on dark scenes */
.intro-counter {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}
.intro-prompt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}
.intro-skip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Text wrapper: subtle dark shadow plate so headlines stay crisp during motion */
.intro-cinema .scene-text-bl,
.intro-cinema .scene-text-tl,
.intro-cinema .scene-text-br {
  position: relative;
  padding: 0;
}
.intro-cinema .scene-text-bl::before,
.intro-cinema .scene-text-br::before {
  content: '';
  position: absolute;
  left: -30px; right: -30px; bottom: -30px; top: -20px;
  background: radial-gradient(ellipse 80% 100% at center, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 75%);
  z-index: -1;
  pointer-events: none;
}
.intro-cinema .scene-text-tl::before {
  content: '';
  position: absolute;
  left: -30px; right: -30px; top: -20px; bottom: -30px;
  background: radial-gradient(ellipse 80% 100% at center, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 75%);
  z-index: -1;
  pointer-events: none;
}

/* Mobile tightening */
@media (max-width: 720px) {
  .intro-cinema .scene-title { font-size: clamp(38px, 11.5vw, 78px); }
  .intro-cinema .scene-eyebrow { font-size: 11px; letter-spacing: 0.26em; }
  .intro-cinema .scene-cta { font-size: 18px; }
}

/* ============================================================
   INTRO — FIX text positioning (was flowing to top-left)
   The earlier ::before plate rule changed `position: relative`
   which broke the corner-anchored absolute positioning.
   Restore the proper absolute anchors here.
   ============================================================ */
.intro-cinema .scene-text {
  position: absolute !important;
  z-index: 5;
}
.intro-cinema .scene-text-bl { left: 48px;  bottom: 110px; top: auto; right: auto; }
.intro-cinema .scene-text-tl { left: 48px;  top: 110px;    bottom: auto; right: auto; }
.intro-cinema .scene-text-br { right: 48px; bottom: 110px; top: auto; left: auto; text-align: right; }
.intro-cinema .scene-text-c  { left: 50%;   top: 56px;     right: auto; bottom: auto; transform: translateX(-50%); text-align: center; }

/* Slightly tighter title size so it never wraps onto two lines unexpectedly */
.intro-cinema .scene-title {
  font-size: clamp(42px, 6.4vw, 88px) !important;
  max-width: 720px;
}

/* Make the dark "shadow plate" behind text non-blocking (uses ::after instead
   of ::before so it doesn't conflict with anything) */
.intro-cinema .scene-text-bl::before,
.intro-cinema .scene-text-tl::before,
.intro-cinema .scene-text-br::before { display: none !important; }

.intro-cinema .scene-text::after {
  content: '';
  position: absolute;
  inset: -18px -32px -22px -32px;
  background: radial-gradient(ellipse 90% 95% at center, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 75%);
  z-index: -1;
  pointer-events: none;
  border-radius: 12px;
}
.intro-cinema .scene-3 .scene-text::after { display: none; }

/* Mobile: smaller title, more conservative margins */
@media (max-width: 720px) {
  .intro-cinema .scene-title { font-size: clamp(34px, 10vw, 64px) !important; max-width: 88vw; }
  .intro-cinema .scene-text-bl { left: 24px; right: 24px; bottom: 90px; }
  .intro-cinema .scene-text-tl { left: 24px; right: 24px; top: 90px; }
  .intro-cinema .scene-text-br { left: 24px; right: 24px; bottom: 90px; text-align: left; }
  .intro-cinema .scene-text { max-width: 100%; }
}

/* ============================================================
   INTRO — AMBIENT ANIMATION ELEMENTS
   scene-flash  : full-frame light burst on scene cut
   counter-pop  : scale bounce on the scene number
   ============================================================ */

/* ── Scene-transition flash ───────────────────────────────── */
.scene-flash {
  position: absolute;
  inset: 0;
  z-index: 16;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 40%,
    rgba(255, 238, 210, 0.22) 0%,
    rgba(255, 220, 180, 0.10) 50%,
    transparent 100%
  );
  mix-blend-mode: screen;
}

@keyframes sceneFlashAnim {
  0%   { opacity: 0;    transform: scale(0.92); }
  12%  { opacity: 1;    transform: scale(1.00); }
  100% { opacity: 0;    transform: scale(1.04); }
}

.scene-flash.scene-flash-go {
  animation: sceneFlashAnim 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ── Counter number pop ───────────────────────────────────── */
@keyframes counterPop {
  0%   { transform: scale(1.00); opacity: 1;    }
  30%  { transform: scale(1.22); opacity: 1;    }
  60%  { transform: scale(0.96); opacity: 0.9;  }
  100% { transform: scale(1.00); opacity: 1;    }
}

#intro-counter-num.counter-pop {
  animation: counterPop 0.48s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  display: inline-block; /* transform works on inline-block */
}

/* ============================================================
   FINAL PASS — consistency lock
   ============================================================ */
/* Ensure body never has a gap before the nav or after the footer */
body { margin: 0; min-height: 100vh; background: var(--bg, #f8f3ec); }
.nav { background: var(--bg, #f8f3ec); }
.footer { margin-top: 0; }

/* In-page anchor scroll is handled via JS smooth behavior.
   html scroll-behavior stays auto to avoid fighting scroll-driven animations. */

/* overflow-x: clip prevents horizontal scroll without creating a scroll container.
   Unlike hidden, clip does NOT affect window.scrollY — the animation loop stays accurate. */
body { overflow-x: clip; }

/* Make sure tabs that load JS-rendered content don't show ugly empty space pre-render */
#style-content:empty,
#quiz-container:empty {
  min-height: 80vh;
  background: var(--bg, #f8f3ec);
}

/* Loading state for images that haven't loaded yet */
img { background: rgba(0, 0, 0, 0.025); }
img.broken-image { display: none !important; }

/* ============================================================
   FINAL SAFETY PASS — ensure all outfit/shop content renders
   Defensive rules so nothing gets hidden, clipped, or collapsed.
   ============================================================ */

/* === Section base — guarantee every ssec section is fully visible === */
.ssec {
  width: 100%;
  position: relative;
  z-index: auto;
}
.ssec-inner {
  width: 100%;
  box-sizing: border-box;
}

/* === Section 3 — Full Outfit Breakdown: ensure both columns render === */
.ssec-breakdown-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  width: 100%;
}
.ssec-breakdown-img { position: relative; min-height: 400px; }
/* Drop the sticky positioning if it causes layout issues at narrow widths */
@media (max-width: 1024px) {
  .ssec-breakdown-img { position: relative !important; top: auto !important; }
}
.ssec-breakdown-text { min-width: 0; }
.ssec-breakdown-item {
  display: block !important;
  padding: 20px 0 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.ssec-breakdown-item:last-child { border-bottom: none; }
.ssec-breakdown-item h4 {
  display: block !important;
  margin-bottom: 8px !important;
}
.ssec-breakdown-item p {
  display: block !important;
  margin: 0 !important;
}

/* === Section 4 — Complete the Look: outfit cards never collapse === */
.combo-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  width: 100%;
}
.combo-card {
  display: flex !important;
  flex-direction: column;
  min-width: 0;
  overflow: visible;
}
.combo-card-img {
  width: 100%;
  position: relative;
}
.combo-card-body {
  padding: 22px 22px 26px !important;
  display: block !important;
}
.combo-pieces.combo-pieces-typo {
  display: block !important;
  list-style: none;
  padding: 0;
  margin: 0;
}
.combo-pieces.combo-pieces-typo li {
  display: block !important;
}
.combo-pieces.combo-pieces-typo a {
  display: grid !important;
  grid-template-columns: 72px 1fr auto;
  align-items: start;
  gap: 14px;
  width: 100%;
}

/* === Section 4 — Shop the Aesthetic typo-list: every item visible === */
.rich-typo-list { display: block !important; width: 100%; }
.typo-group { display: block !important; }
.typo-group-list {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  column-gap: 56px;
  row-gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}
.typo-group-list li { display: block !important; }
.typo-group-list a {
  display: grid !important;
  grid-template-columns: max-content 1fr max-content;
  align-items: baseline;
  gap: 14px;
  padding: 16px 0;
  text-decoration: none;
  color: var(--ink);
}

/* === Mobile fallback for breakdown + combo grids === */
@media (max-width: 900px) {
  .ssec-breakdown-grid { grid-template-columns: 1fr !important; gap: 32px; }
  .combo-grid { grid-template-columns: 1fr !important; gap: 24px; }
  .typo-group-list { grid-template-columns: 1fr !important; }
  .typo-group-list a {
    grid-template-columns: 1fr max-content !important;
    column-gap: 12px;
  }
  .typo-rule { display: none; }
  .combo-pieces.combo-pieces-typo a {
    grid-template-columns: 60px 1fr auto !important;
    gap: 10px;
  }
}

/* === Make absolutely sure no display:none overrides hit content === */
.ssec-overview,
.ssec-inspo,
.ssec-breakdown,
.ssec-shop-rich,
.combo-card,
.combo-pieces,
.typo-group,
.typo-group-list,
.typo-group-list > li {
  display: revert;
}

/* === Defensive: ensure the main container has content visible === */
#style-content { display: block; width: 100%; min-height: 100vh; }
#style-content:empty::before {
  content: 'Loading style…';
  display: block;
  padding: 200px 48px;
  text-align: center;
  color: var(--ink-soft);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
}

/* .intro-cinema only exists in index.html — no hide/show rules needed on other pages */
body > .intro-cinema:first-child + #intro-spacer { display: none; }
.intro-cinema.is-removed { display: none; }

/* ============================================================
   FASHION SHOP — single-control filter bar (replaces .fdir-*)
   ============================================================ */

/* Outer wrapper */
.fshop {
  margin-top: 48px;
}

/* ── Control bar ────────────────────────────────────────────── */
.fshop-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0 14px;
  border-top: 1px solid rgba(42,37,32,0.12);
  border-bottom: 1px solid rgba(42,37,32,0.12);
  margin-bottom: 40px;
  position: sticky;
  top: 72px;
  background: var(--bg);
  z-index: 10;
}

/* Category scroll strip (left side) */
.fshop-cats-scroll {
  overflow-x: auto;
  overflow-y: visible;
  flex: 1;
  min-width: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.fshop-cats-scroll::-webkit-scrollbar { display: none; }
.fshop-cats {
  display: flex;
  gap: 4px;
  white-space: nowrap;
}

/* Category pill buttons */
.fshop-cat {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: none;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}
.fshop-cat:hover { color: var(--ink); border-color: rgba(42,37,32,0.25); }
.fshop-cat.fshop-cat-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* Budget buttons (right side) */
.fshop-buds {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
  background: rgba(42,37,32,0.05);
  border-radius: 100px;
  padding: 3px;
}
.fshop-bud {
  padding: 6px 15px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.fshop-bud:hover { color: var(--ink); }
.fshop-bud.fshop-bud-active {
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}

/* ── Category panels ────────────────────────────────────────── */
.fshop-cat-panel { display: none; }
.fshop-cat-panel.fshop-cat-panel-active { display: block; }

/* ── Tier block (Affordable / Mid-Range / Luxury) ───────────── */
.fshop-tier-block {
  margin-bottom: 36px;
}
.fshop-tier-block:last-child { margin-bottom: 0; }

.fshop-tier-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.fshop-tier-tag-aff { background: rgba(80,130,60,0.15); color: #2e6b20; border: 1px solid rgba(80,130,60,0.30); }
.fshop-tier-tag-mid { background: rgba(160,130,60,0.15); color: #7a5e10; border: 1px solid rgba(160,130,60,0.30); }
.fshop-tier-tag-lux { background: rgba(160,80,80,0.13); color: #8a2a2a; border: 1px solid rgba(160,80,80,0.28); }

/* ── Items list ─────────────────────────────────────────────── */
.fshop-items {
  display: flex;
  flex-direction: column;
}

.fshop-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(42,37,32,0.09);
  color: var(--ink);
  text-decoration: none;
  transition: padding-left 0.2s ease, color 0.2s ease;
  position: relative;
}
.fshop-item:first-child { border-top: none; }
.fshop-item:last-child { border-bottom: none; }
.fshop-item:hover { padding-left: 8px; color: var(--rose, #b8956c); }

.fshop-item-name {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: inherit;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fshop-item-right {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-shrink: 0;
}

.fshop-item-store {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.fshop-item-price {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
  font-weight: 500;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 680px) {
  .fshop-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    top: 60px;
  }
  .fshop-cats-scroll { width: 100%; }
  .fshop-buds { width: 100%; justify-content: space-between; }
  .fshop-bud { flex: 1; text-align: center; }
}

/* ============================================================
   STYLE PAGE — CLOSING SECTION (05)
   ============================================================ */
.ssec-closing {
  padding: 100px 48px 120px;
  background:
    radial-gradient(ellipse 70% 60% at 30% 50%, rgba(239,215,210,0.35), transparent 70%),
    radial-gradient(ellipse 60% 70% at 80% 40%, rgba(232,213,198,0.30), transparent 70%),
    var(--bg);
  text-align: center;
}

.ssec-closing-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.ssec-closing-divider {
  width: 48px;
  height: 1px;
  background: var(--beige-dark);
  margin-bottom: 48px;
}

.ssec-closing-quote {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 28px;
  quotes: none;
}

.ssec-closing-note {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 52px;
  max-width: 560px;
}

.ssec-closing-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.ssec-closing-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(42,37,32,0.25);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.ssec-closing-link:hover {
  color: var(--rose);
  border-color: var(--rose);
}

.ssec-closing-credit {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 0;
}
.ssec-closing-credit strong {
  color: var(--accent);
  font-weight: 500;
}

@media (max-width: 600px) {
  .ssec-closing { padding: 72px 24px 96px; }
  .ssec-closing-ctas { flex-direction: column; gap: 20px; }
}

/* ============================================================
   STYLE PAGE — POLISH: tips / brand-guide spacing
   ============================================================ */

/* Ensure styling tips always read well at full width */
.style-tips-grid {
  min-height: 200px;
}
.style-tip {
  min-height: 180px;
}

/* Brand guide — add subtle background to each tier card */
.brand-tier {
  background: rgba(255,255,255,0.6);
}
.brand-tier-lux {
  background: rgba(239,215,210,0.18);
}

/* Rich-block spacing: give HOW TO WEAR IT and WHERE TO SHOP more breathing room */
.rich-block:nth-child(2),
.rich-block:nth-child(3) {
  padding-top: 16px;
  padding-bottom: 16px;
}

/* Outfit combo grid — last row: if only 2 cards, keep them left-aligned (don't stretch) */
.combo-grid {
  align-items: start;
}
.combo-card:nth-child(3n+1):last-child {
  max-width: calc(33.33% - 14px);
}
.combo-card:nth-child(3n+2):last-child {
  max-width: calc(66.66% - 7px);
}

/* ============================================================
   AURA — Sign-in Gate  (Creative Redesign)
   Full-screen atmospheric editorial portal.
   ============================================================ */

/* ── Base overlay ─────────────────────────────────────────── */
.asgn-overlay {
  position: fixed;
  inset: 0;
  z-index: 9900;
  display: flex;
  align-items: center;
  justify-content: flex-end;   /* card on the right, girl visible on the left */
  opacity: 0;
  pointer-events: none;
  background: #0b0906;
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.asgn-overlay.asgn-visible  { opacity: 1; pointer-events: all; }
.asgn-overlay.asgn-exiting  { opacity: 0; pointer-events: none; transition: opacity 1.3s cubic-bezier(0.7, 0, 0.3, 1); }

/* ── Full-bleed background ────────────────────────────────── */
.asgn-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.asgn-bg-img {
  position: absolute;
  inset: 0;
  width: 68%;          /* only cover left portion — right side is the form panel */
  height: 110%;        /* slightly taller so we can shift up and show more body below */
  top: -5%;
  object-fit: cover;
  object-position: center 12%;
  will-change: transform;
  filter: brightness(0.82) saturate(0.95);
}
.asgn-bg-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 10% 50%, rgba(80,20,60,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 45% 50% at 88% 20%, rgba(10,25,80,0.22) 0%, transparent 60%),
    linear-gradient(to bottom, rgba(11,9,6,0.15) 0%, rgba(11,9,6,0.02) 50%, rgba(11,9,6,0.30) 100%);
}

/* ── Floating color orbs ──────────────────────────────────── */
.asgn-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: asgn-drift linear infinite alternate;
}
.asgn-orb-1 {
  width: 500px; height: 500px;
  top: -10%; left: -8%;
  background: radial-gradient(circle, rgba(120,40,100,0.45) 0%, transparent 70%);
  animation-duration: 18s;
  animation-name: asgn-drift-1;
}
.asgn-orb-2 {
  width: 400px; height: 400px;
  bottom: -5%; right: -5%;
  background: radial-gradient(circle, rgba(30,60,130,0.40) 0%, transparent 70%);
  animation-duration: 22s;
  animation-name: asgn-drift-2;
}
.asgn-orb-3 {
  width: 300px; height: 300px;
  top: 40%; left: 50%;
  background: radial-gradient(circle, rgba(160,110,40,0.25) 0%, transparent 70%);
  animation-duration: 26s;
  animation-name: asgn-drift-3;
}
@keyframes asgn-drift-1 {
  from { transform: translate(0px, 0px); }
  to   { transform: translate(60px, 40px); }
}
@keyframes asgn-drift-2 {
  from { transform: translate(0px, 0px); }
  to   { transform: translate(-50px, -30px); }
}
@keyframes asgn-drift-3 {
  from { transform: translate(-50%, -50%) translate(0px, 0px); }
  to   { transform: translate(-50%, -50%) translate(30px, -25px); }
}

/* ── Film grain ───────────────────────────────────────────── */
.asgn-bg-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)' opacity='0.08'/%3E%3C/svg%3E");
  opacity: 0.45;
  mix-blend-mode: overlay;
}

/* ── Corner editorial labels ──────────────────────────────── */
.asgn-corner {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  display: flex;
  gap: 10px;
  pointer-events: none;
}
.asgn-corner-tl { top: 28px; left: 32px; flex-direction: row; }
.asgn-corner-tr { top: 28px; right: 32px; }
.asgn-corner-bl { bottom: 52px; left: 32px; }
.asgn-corner-br { bottom: 52px; right: 32px; }

/* ── Thin horizontal rules ────────────────────────────────── */
.asgn-rule {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: rgba(255,255,255,0.08);
  pointer-events: none;
}
.asgn-rule-top    { top: 56px; }
.asgn-rule-bottom { bottom: 40px; }

/* ── Scrolling marquee ────────────────────────────────────── */
.asgn-marquee {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.06);
  pointer-events: none;
}
.asgn-marquee-track {
  display: flex;
  white-space: nowrap;
  animation: asgn-marquee 28s linear infinite;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.22);
}
.asgn-marquee-track span { padding-right: 0; }
@keyframes asgn-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Right-side form panel ────────────────────────────────── */
.asgn-card {
  position: relative;
  z-index: 2;
  width: 460px;
  flex-shrink: 0;
  height: 100vh;               /* full height — flush to right edge */
  padding: 0 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(10,8,6,0.82);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border-left: 1px solid rgba(255,255,255,0.08);
  box-shadow: -24px 0 80px rgba(0,0,0,0.50);
  overflow: hidden;
}

/* Subtle shimmer line at top of card */
.asgn-card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.35), transparent);
}

/* ── Card logo — pinned to top so absolute views don't cover it ── */
.asgn-card-logo {
  position: absolute;
  top: 40px;
  left: 0; right: 0;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: rgba(255,255,255,0.55);
  text-align: center;
  z-index: 3;
}
.asgn-card-logo span { color: rgba(255,255,255,0.90); }

/* ── Views (stacked inside the panel) ────────────────────── */
.asgn-view {
  position: absolute;
  inset: 0;
  padding: 100px 52px 48px;  /* top clears the logo */
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.asgn-view.asgn-view-active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.asgn-view.asgn-view-out-up {
  opacity: 0;
  transform: translateY(-16px);
  pointer-events: none;
}
.asgn-view.asgn-view-out-down {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

/* ── Form text ─────────────────────────────────────────────── */
.asgn-eyebrow {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin: 0 0 10px;
}
.asgn-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.93);
  margin: 0 0 8px;
}
.asgn-title em {
  font-style: italic;
  color: rgba(255,255,255,0.55);
}
.asgn-sub {
  font-size: 12.5px;
  color: rgba(255,255,255,0.35);
  margin: 0 0 22px;
  line-height: 1.5;
}

/* ── Form fields ───────────────────────────────────────────── */
.asgn-form { display: flex; flex-direction: column; gap: 0; }
.asgn-field { position: relative; margin-bottom: 18px; }

.asgn-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  padding: 10px 0;
  font-family: var(--font-sans);
  font-size: 14px;
  color: rgba(255,255,255,0.88);
  outline: none;
  transition: border-color 0.3s;
  caret-color: rgba(255,255,255,0.7);
}
.asgn-input:focus { border-bottom-color: rgba(255,255,255,0.55); }
.asgn-input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 100px transparent inset;
  -webkit-text-fill-color: rgba(255,255,255,0.88);
}

.asgn-label {
  position: absolute;
  top: 10px;
  left: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.32);
  pointer-events: none;
  transition: top 0.25s, font-size 0.25s, color 0.25s;
}
.asgn-input:focus ~ .asgn-label,
.asgn-input:not(:placeholder-shown) ~ .asgn-label {
  top: -10px;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

/* Animated underline */
.asgn-line {
  position: absolute;
  bottom: 0; left: 0;
  height: 1px;
  width: 100%;
  background: rgba(255,255,255,0.7);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.asgn-input:focus ~ .asgn-line { transform: scaleX(1); }

/* ── Password eye ──────────────────────────────────────────── */
.asgn-eye {
  position: absolute;
  right: 0; top: 8px;
  background: none; border: none;
  color: rgba(255,255,255,0.30);
  cursor: pointer; padding: 4px;
  transition: color 0.2s;
}
.asgn-eye:hover { color: rgba(255,255,255,0.70); }
.asgn-eye svg { width: 15px; height: 15px; display: block; }

/* ── Error text ────────────────────────────────────────────── */
.asgn-error {
  font-size: 11px;
  color: rgba(255,140,140,0.9);
  min-height: 18px;
  margin: -8px 0 12px;
}

/* ── Submit button ─────────────────────────────────────────── */
.asgn-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  margin-top: 6px;
  background: rgba(255,255,255,0.92);
  color: #0b0906;
  border: none;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.25s, transform 0.2s;
}
.asgn-submit:hover {
  background: #fff;
  transform: translateY(-1px);
}
.asgn-submit:active { transform: translateY(0); }
.asgn-submit svg { width: 14px; height: 14px; }
.asgn-submit.asgn-loading { opacity: 0.55; pointer-events: none; }
.asgn-submit.asgn-loading span::after {
  content: '…';
  animation: asgn-dots 1s infinite;
}
@keyframes asgn-dots {
  0%,100% { content: '…'; }
  33%      { content: '.'; }
  66%      { content: '..'; }
}

/* ── Or divider ────────────────────────────────────────────── */
.asgn-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  color: rgba(255,255,255,0.18);
  font-size: 11px;
  letter-spacing: 0.1em;
}
.asgn-or::before,
.asgn-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.10);
}
.asgn-or span { color: rgba(255,255,255,0.22); }

/* ── Guest button ──────────────────────────────────────────── */
.asgn-guest {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2px;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.asgn-guest:hover {
  border-color: rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.80);
  background: rgba(255,255,255,0.04);
}

/* ── Switch link ───────────────────────────────────────────── */
.asgn-switch {
  margin: 16px 0 0;
  font-size: 12px;
  color: rgba(255,255,255,0.28);
  text-align: center;
}
.asgn-switch-btn {
  background: none; border: none;
  color: rgba(255,255,255,0.60);
  font-size: 12px; cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,0.20);
  transition: color 0.2s, text-decoration-color 0.2s;
}
.asgn-switch-btn:hover {
  color: rgba(255,255,255,0.90);
  text-decoration-color: rgba(255,255,255,0.50);
}

/* ── Success view ──────────────────────────────────────────── */
.asgn-success-wrap { text-align: center; padding-top: 24px; }
.asgn-check-ring {
  width: 64px; height: 64px;
  margin: 0 auto 24px;
}
.asgn-check-ring svg { width: 100%; height: 100%; }
.asgn-check-circle {
  stroke-dasharray: 170;
  stroke-dashoffset: 170;
  transition: stroke-dashoffset 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.asgn-check-mark {
  stroke-dasharray: 38;
  stroke-dashoffset: 38;
  transition: stroke-dashoffset 0.5s 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.asgn-check-circle.asgn-stroke-in { stroke-dashoffset: 0; }
.asgn-check-mark.asgn-stroke-in   { stroke-dashoffset: 0; }
.asgn-success-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: rgba(255,255,255,0.90);
  margin: 0 0 8px;
}
.asgn-success-msg {
  font-size: 13px;
  color: rgba(255,255,255,0.38);
  margin: 0;
  letter-spacing: 0.06em;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 600px) {
  .asgn-overlay { justify-content: center; }
  .asgn-card { width: 100%; border-left: none; }
  .asgn-view { padding: 80px 32px 48px; }
  .asgn-title { font-size: 36px; }
  .asgn-corner-tr, .asgn-corner-bl { display: none; }
}
/* End sign-in gate */

/* ============================================================
   INTRO — LUXURY FILM EDITION
   Pre-roll · Ghost numbers · Vignette · Staggered text wipe
   ============================================================ */

/* ── PRE-ROLL: AURA on black ────────────────────────────────── */
.intro-preroll {
  position: fixed;
  inset: 0;
  z-index: 10000;   /* must be above intro-cinema (9998) */
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  cursor: pointer;
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.intro-preroll.is-fading {
  opacity: 0;
  pointer-events: none;
}

.intro-preroll-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* The AURA logo: fades in from wide tracking, then settles */
.intro-preroll-logo {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(48px, 9.5vw, 148px);
  font-weight: 300;
  letter-spacing: 1.8em;
  text-indent: 1.8em;    /* compensate for trailing letter-spacing */
  color: rgba(255, 255, 255, 0);
  display: block;
  animation: prerollLogoReveal 2.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

/* Thin horizontal rule sweeping out from center */
.intro-preroll-rule {
  display: block;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  animation: prerollRuleExpand 1.6s cubic-bezier(0.16, 1, 0.3, 1) 1.8s forwards;
}

/* Subtitle */
.intro-preroll-sub {
  font-family: 'JetBrains Mono', 'Inter', monospace, sans-serif;
  font-size: 11px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0);
  animation: prerollSubReveal 1.0s cubic-bezier(0.16, 1, 0.3, 1) 2.4s forwards;
}

/* Click-to-skip hint */
.intro-preroll-hint {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0);
  white-space: nowrap;
  animation: prerollSubReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 2.9s forwards;
}

@keyframes prerollLogoReveal {
  0%   { color: rgba(255,255,255,0);    letter-spacing: 2.4em; text-indent: 2.4em; }
  30%  { color: rgba(255,255,255,0);    }
  55%  { color: rgba(255,255,255,1);    letter-spacing: 1.8em; text-indent: 1.8em; }
  88%  { color: rgba(255,255,255,0.92); letter-spacing: 1.7em; text-indent: 1.7em; }
  100% { color: rgba(255,255,255,0.88); letter-spacing: 1.65em; text-indent: 1.65em; }
}
@keyframes prerollRuleExpand {
  from { width: 0;      opacity: 0; }
  to   { width: 160px;  opacity: 1; }
}
@keyframes prerollSubReveal {
  from { color: rgba(255,255,255,0); transform: translateY(8px); }
  to   { color: rgba(255,255,255,0.5); transform: translateY(0); }
}

/* ── Central vignette — theatrical tunnel-focus ─────────────── */
.intro-vignette {
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  background: radial-gradient(
    ellipse 76% 66% at 50% 50%,
    transparent 30%,
    rgba(0, 0, 0, 0.72) 100%
  );
}

/* ── Ghost scene numbers — luxury editorial typography ────────
   Large transparent numerals bleed off the right/bottom edge.
   Their opacity inherits from the parent .scene opacity via JS.  */
.scene-ghost-num {
  position: absolute;
  right: -0.02em;
  bottom: -0.05em;
  font-family: 'Playfair Display', serif;
  font-size: clamp(200px, 30vw, 440px);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.055);
  pointer-events: none;
  z-index: 1;
  line-height: 1;
  letter-spacing: -0.05em;
  user-select: none;
}
/* Scene 3 (cream bg) uses dark stroke */
.intro-cinema .scene-3 .scene-ghost-num {
  -webkit-text-stroke: 1px rgba(40, 25, 15, 0.08);
}

/* ── Letterbox bars — thicker for theatrical feel ───────────── */
.intro-cinema::before { height: clamp(52px, 9vh, 92px) !important; }
.intro-cinema::after  { height: clamp(52px, 9vh, 92px) !important; }

/* ── Eyebrow decorative line (grows in on .text-entered) ─────── */
.intro-cinema .scene-eyebrow {
  display: inline-flex;
  align-items: center;
}
.intro-cinema .scene-eyebrow::after {
  content: '';
  flex-shrink: 0;
  height: 0.5px;
  width: 0;
  background: rgba(255, 255, 255, 0.55);
  margin-left: 0;
  transition: width 1.0s cubic-bezier(0.16, 1, 0.3, 1),
              margin-left 1.0s cubic-bezier(0.16, 1, 0.3, 1);
}
.intro-cinema .scene.text-entered .scene-eyebrow::after {
  width: 40px;
  margin-left: 14px;
}
/* Scene 3 (cream) — dark version */
.intro-cinema .scene-3 .scene-eyebrow::after {
  background: rgba(40, 25, 15, 0.45);
}

/* ── Title: standard overflow (no clip-path wipe) ───────────── */
.intro-cinema .scene-title {
  overflow: hidden;
}

/* ── Skip button — more film-like, minimal ──────────────────── */
.intro-skip {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 10px !important;
  letter-spacing: 0.32em !important;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65) !important;
  background: rgba(0, 0, 0, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  padding: 10px 22px !important;
  transition: color 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}
.intro-skip:hover {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
  background: rgba(0, 0, 0, 0.72) !important;
}

/* ── Counter — bolder film aesthetic ─────────────────────────── */
.intro-counter {
  font-family: 'Playfair Display', serif !important;
  font-style: italic;
  font-size: 13px !important;
  letter-spacing: 0.12em !important;
  color: rgba(255, 255, 255, 0.88) !important;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7) !important;
}
#intro-counter-num {
  font-size: 15px;
  font-weight: 500;
}

/* ── Prompt — elegant, understated ──────────────────────────── */
.intro-prompt {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 10px !important;
  letter-spacing: 0.38em !important;
  color: rgba(255, 255, 255, 0.55) !important;
  text-transform: uppercase;
}

/* ── Mobile adjustments ─────────────────────────────────────── */
@media (max-width: 720px) {
  .intro-preroll-logo { font-size: clamp(36px, 12vw, 80px); }
  .intro-preroll-hint { display: none; } /* no hover on touch */
  .scene-ghost-num { font-size: clamp(140px, 40vw, 260px); }
  .intro-cinema::before,
  .intro-cinema::after { height: clamp(36px, 7vh, 60px) !important; }
}

/* ============================================================
   PERFORMANCE — CSS layer hints + eyebrow letter-spacing via CSS
   Replaces JS letter-spacing in rAF (eliminated text-layout reflow)
   ============================================================ */

/* Eyebrow: CSS-driven letter-spacing sweep (no rAF reflow)
   Initial state = tight, .text-entered expands to airy.
   The JS ambientTick only adds/removes .text-entered at 65% opacity
   threshold — no inline style writes needed every frame.            */
.intro-cinema .scene-eyebrow {
  letter-spacing: 0.12em;
  transition: letter-spacing 1.0s cubic-bezier(0.16, 1, 0.3, 1);
}
.intro-cinema .scene.text-entered .scene-eyebrow {
  letter-spacing: 0.26em;
}
/* Scene 3 cream version keeps same sweep */
.intro-cinema .scene-3 .scene-eyebrow {
  letter-spacing: 0.12em;
}
.intro-cinema .scene-3.text-entered .scene-eyebrow {
  letter-spacing: 0.22em;
}

/* GPU layer hints for key homepage animated elements */
.hero-visual,
.hero-img,
.parallax-img {
  will-change: transform;
}
.scroll-progress-fill {
  will-change: transform;
}

/* Intro containment — style+paint only (layout removed to preserve z-index stacking) */
#intro {
  contain: style paint;
}

/* Scroll-progress bar — compositor-only layer */
.scroll-progress {
  will-change: transform;
  contain: layout style paint;
}

/* ============================================================
   ATELIER — AI Stylist full-screen studio redesign
   Two-pane layout: dark editorial panel (left) + chat (right)
   ============================================================ */

/* Page-level overrides */
body.page-atelier {
  overflow: hidden;
  height: 100vh;
}

/* The two-pane wrapper fills the screen below the fixed nav */
.atelier-wrap {
  display: grid;
  grid-template-columns: 360px 1fr;
  height: calc(100vh - 64px);
  margin-top: 64px;
  overflow: hidden;
}

/* ── LEFT PANEL — dark editorial ──────────────────────────── */
.atelier-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Background image layer */
.atelier-panel-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.atelier-panel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

/* Gradient veil so text is always readable */
.atelier-panel-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(14, 11, 9, 0.62) 0%,
      rgba(14, 11, 9, 0.18) 30%,
      rgba(14, 11, 9, 0.42) 62%,
      rgba(14, 11, 9, 0.92) 100%
    );
}

/* Grain texture overlay */
.atelier-panel-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  opacity: 0.45;
  pointer-events: none;
}

/* UI content over the image */
.atelier-panel-ui {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 28px 24px;
}

/* ── Panel: top brand row ─── */
.atelier-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.atelier-panel-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.06em;
}
.atelier-panel-logo em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.45);
}

.atelier-panel-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* Pulsing live dot */
.atelier-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7fcb7f;
  box-shadow: 0 0 0 0 rgba(127, 203, 127, 0.55);
  animation: atelierDot 2.6s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes atelierDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(127, 203, 127, 0.55); }
  50%       { box-shadow: 0 0 0 5px rgba(127, 203, 127, 0); }
}

/* ── Panel: mid editorial copy ─── */
.atelier-panel-mid {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 24px;
}

.atelier-panel-kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 8px;
}

.atelier-panel-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.4vw, 46px);
  font-weight: 400;
  line-height: 1.12;
  color: #fff;
  margin: 0 0 14px;
}
.atelier-panel-headline em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.88);
}

.atelier-panel-sub {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 20px;
  max-width: 290px;
}

.atelier-panel-divider {
  width: 32px;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
  margin-bottom: 16px;
}

.atelier-panel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.atelier-meta-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 5px 12px;
  border-radius: 20px;
}

/* ── Panel: bottom quick asks ─── */
.atelier-panel-bottom {
  flex-shrink: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding-top: 18px;
}

.atelier-chips-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.30);
  margin: 0 0 10px;
}

/* Scrollable chip list */
.atelier-chips {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 188px;
  overflow-y: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}
.atelier-chips::-webkit-scrollbar { display: none; }

.atelier-chip {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  padding: 9px 14px;
  border-radius: 5px;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  flex-shrink: 0;
}
.atelier-chip:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

/* ── RIGHT PANEL — chat ───────────────────────────────────── */
.atelier-chat {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
  border-left: 1px solid var(--gray-soft);
}

/* Message feed */
.atelier-messages {
  flex: 1;
  overflow-y: auto;
  padding: 36px 44px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--beige) transparent;
}

/* Message row */
.atelier-msg {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 620px;
  animation: atelierMsgIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes atelierMsgIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.atelier-msg-user {
  align-self: flex-end;
  flex-direction: row-reverse;
  max-width: 520px;
}

/* AI avatar circle */
.atelier-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  letter-spacing: 0.04em;
}

/* Chat bubbles */
.atelier-bubble {
  padding: 13px 17px;
  border-radius: 4px 14px 14px 14px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.68;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--gray-soft);
  box-shadow: 0 2px 12px rgba(42, 37, 32, 0.05);
}

.atelier-msg-user .atelier-bubble {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  border-radius: 14px 4px 14px 14px;
  box-shadow: none;
}

/* Mood image inside bubble */
.atelier-mood {
  position: relative;
  margin-top: 13px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--gray-soft);
}
.atelier-mood img {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: cover;
}
.atelier-mood-tag {
  position: absolute;
  bottom: 9px;
  left: 9px;
  background: rgba(14, 11, 9, 0.52);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

/* Typing dots */
.atelier-typing-bubble {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 18px;
}
.atelier-typing-bubble span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--beige-dark);
  animation: atelierDots 1.1s ease-in-out infinite;
}
.atelier-typing-bubble span:nth-child(2) { animation-delay: 0.16s; }
.atelier-typing-bubble span:nth-child(3) { animation-delay: 0.32s; }
@keyframes atelierDots {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50%       { transform: translateY(-5px); opacity: 1; }
}

/* Product list inside bubble */
.atelier-products {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-top: 1px solid var(--gray-soft);
  padding-top: 12px;
}

.atelier-product {
  display: grid;
  grid-template-columns: 1fr 16px;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  background: var(--bg-soft);
  border: 1px solid var(--gray-soft);
  border-radius: 7px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.atelier-product:hover {
  border-color: var(--ink);
  background: var(--cream);
}
.atelier-product-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.atelier-product-name {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.atelier-product-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--ink-soft);
}
.atelier-product-store { color: var(--ink-soft); }
.atelier-product-price { font-weight: 500; color: var(--ink); }

.atelier-tier {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 20px;
  flex-shrink: 0;
}
.atelier-tier-aff { background: rgba(80, 130, 60, 0.12); color: #2e6b20; border: 1px solid rgba(80,130,60,0.22); }
.atelier-tier-mid { background: rgba(160, 130, 60, 0.12); color: #7a5e10; border: 1px solid rgba(160,130,60,0.22); }
.atelier-tier-lux { background: rgba(140, 80, 80, 0.10); color: #8a2a2a; border: 1px solid rgba(140,80,80,0.20); }

.atelier-product-arrow {
  color: var(--gray);
  transition: color 0.2s;
}
.atelier-product:hover .atelier-product-arrow {
  color: var(--ink);
}

/* ── INPUT ROW ─────────────────────────────────────────────── */
.atelier-input-area {
  padding: 16px 44px 22px;
  border-top: 1px solid var(--gray-soft);
  background: var(--bg);
  flex-shrink: 0;
}

.atelier-form {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid var(--gray-soft);
  border-radius: 12px;
  padding: 9px 9px 9px 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.atelier-form:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(42, 37, 32, 0.06);
}

#stylist-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 400;
  color: var(--ink);
  min-width: 0;
}
#stylist-input::placeholder {
  color: var(--gray);
}

.atelier-send {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
}
.atelier-send:hover {
  background: var(--accent);
  transform: scale(1.06);
}
.atelier-send:active {
  transform: scale(0.97);
}

.atelier-hint {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--gray);
  margin: 9px 0 0;
  text-align: center;
  opacity: 0.75;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .atelier-wrap {
    grid-template-columns: 300px 1fr;
  }
  .atelier-panel-mid { display: none; }
  .atelier-panel-bottom { flex: 1; border-top: none; display: flex; flex-direction: column; justify-content: flex-end; }
}

@media (max-width: 720px) {
  body.page-atelier { overflow: auto; height: auto; }
  .atelier-wrap {
    grid-template-columns: 1fr;
    grid-template-rows: 240px 1fr;
    height: auto;
    min-height: calc(100svh - 64px);
  }
  .atelier-panel { height: 240px; }
  .atelier-panel-mid { display: none; }
  .atelier-panel-bottom { display: none; }
  .atelier-panel-ui { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .atelier-messages { padding: 20px 20px 16px; }
  .atelier-input-area { padding: 12px 20px 18px; }
}

/* ============================================================
   SPECIAL TOUCH 1 — Custom rose-gold cursor
   ============================================================ */
@media (pointer: fine) {
  * { cursor: none !important; }
}
.cursor-dot {
  width: 7px; height: 7px;
  background: var(--rose);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, opacity 0.3s, background 0.3s;
  will-change: transform;
}
.cursor-ring {
  width: 30px; height: 30px;
  border: 1.5px solid rgba(201, 139, 134, 0.55);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 999998;
  transform: translate(-50%, -50%);
  transition: width 0.35s cubic-bezier(0.22,1,0.36,1),
              height 0.35s cubic-bezier(0.22,1,0.36,1),
              opacity 0.3s, border-color 0.3s;
  will-change: transform;
}
body.cursor-hover .cursor-dot  { width: 10px; height: 10px; background: var(--accent); }
body.cursor-hover .cursor-ring { width: 44px; height: 44px; border-color: rgba(122,92,78,0.4); }
body.cursor-clicking .cursor-dot { width: 5px; height: 5px; }
body.cursor-clicking .cursor-ring { width: 22px; height: 22px; }

/* ============================================================
   SPECIAL TOUCH 2 — Rotating editorial quote strip
   ============================================================ */
.quote-strip {
  background: var(--ink);
  color: var(--bg);
  padding: 32px 24px;
  text-align: center;
  overflow: hidden;
  position: relative;
}
.quote-strip-inner {
  position: relative;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quote-strip-item {
  position: absolute;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(15px, 2.2vw, 22px);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: rgba(251,248,244,0.9);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1), transform 0.9s cubic-bezier(0.22,1,0.36,1);
  pointer-events: none;
  width: 100%;
}
.quote-strip-item.qs-active {
  opacity: 1;
  transform: translateY(0);
}
.quote-strip-item.qs-out {
  opacity: 0;
  transform: translateY(-14px);
}
.quote-strip-source {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rose);
  margin-top: 10px;
  display: block;
}

/* ============================================================
   SPECIAL TOUCH 3 — Cinematic quiz result
   ============================================================ */
.qr-cinema {
  min-height: calc(100vh - 64px);
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 80px;
  text-align: center;
  gap: 0;
  color: var(--bg);
}

/* Orb */
.qr-orb-wrap {
  position: relative;
  width: 130px; height: 130px;
  margin-bottom: 36px;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1), transform 0.9s cubic-bezier(0.22,1,0.36,1);
}
.qr-p1 .qr-orb-wrap { opacity: 1; transform: scale(1); }

.qr-orb {
  width: 130px; height: 130px;
  border-radius: 50%;
  animation: orbBreath 4s ease-in-out infinite;
}
.qr-orb-ring {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1px solid;
  animation: ringExpand 4s ease-in-out infinite;
}
@keyframes orbBreath {
  0%,100% { transform: scale(1);    filter: brightness(1); }
  50%      { transform: scale(1.06); filter: brightness(1.12); }
}
@keyframes ringExpand {
  0%,100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.1); opacity: 0.5; }
}

/* Name */
.qr-name-wrap {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1);
  margin-bottom: 28px;
}
.qr-p2 .qr-name-wrap { opacity: 1; transform: translateY(0); }

.qr-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  display: block;
  margin-bottom: 14px;
}
.qr-name {
  font-family: var(--font-display);
  font-size: clamp(44px, 10vw, 88px);
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 20px;
}
.rl {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px) rotate(3deg);
  transition: opacity 0.4s cubic-bezier(0.22,1,0.36,1), transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
.rl.qr-in { opacity: 1; transform: translateY(0) rotate(0deg); }

.qr-mantra {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(14px, 2vw, 18px);
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.02em;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Aura color chip */
.qr-color-chip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 10px 20px 10px 12px;
  margin: 28px 0 32px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s 0.2s, transform 0.6s 0.2s cubic-bezier(0.22,1,0.36,1);
}
.qr-p3 .qr-color-chip { opacity: 1; transform: translateY(0); }
.qr-color-swatch {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
}
.qr-color-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  display: block;
}
.qr-color-hex {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.06em;
  display: block;
  margin-top: 2px;
}

/* Breakdown bars */
.qr-breakdown {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s 0.35s, transform 0.6s 0.35s cubic-bezier(0.22,1,0.36,1);
}
.qr-p3 .qr-breakdown { opacity: 1; transform: translateY(0); }

.qr-bar-row {
  display: grid;
  grid-template-columns: 110px 1fr 40px;
  align-items: center;
  gap: 12px;
}
.qr-bar-label {
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  text-align: right;
  letter-spacing: 0.04em;
}
.qr-bar-track {
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
}
.qr-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 4px;
  animation: barGrow 0.9s cubic-bezier(0.22,1,0.36,1) forwards;
}
@keyframes barGrow {
  to { width: var(--pct); }
}
.qr-bar-pct {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.06em;
}

/* Actions */
.qr-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s 0.5s, transform 0.6s 0.5s cubic-bezier(0.22,1,0.36,1);
}
.qr-p3 .qr-actions { opacity: 1; transform: translateY(0); }

@media (max-width: 480px) {
  .qr-bar-row { grid-template-columns: 80px 1fr 34px; }
  .qr-bar-label { font-size: 11px; }
}

/* ============================================================
   STYLE PAGE — Lookbook editorial spread (01b)
   ============================================================ */
.ssec-lookbook {
  padding: 0;
  overflow: hidden;
}
.ssec-lookbook-wrap {
  position: relative;
  width: 100%;
  height: 65vh;
  min-height: 380px;
  max-height: 680px;
  background: #111; /* fallback while image loads */
}
.ssec-lookbook-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;   /* show middle-lower portion — avoids dark sky tops */
  display: block;
  will-change: transform;
  transition: transform 6s ease;
}
.ssec-lookbook-wrap:hover img {
  transform: scale(1.04);
}
/* Gradient veil: darkens top so header reads, lifts bottom for content */
.ssec-lookbook-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.25) 0%,
    rgba(0,0,0,0)    40%,
    rgba(0,0,0,0)    60%,
    rgba(0,0,0,0.55) 100%
  );
  pointer-events: none;
}
.ssec-lookbook-overlay {
  position: absolute;
  bottom: 28px;
  left: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 2;
}
.ssec-lookbook-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px 14px;
  border-radius: 40px;
  border: 1px solid rgba(255,255,255,0.18);
}
.ssec-lookbook-credit {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin: 0;
}

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .ssec-lookbook-wrap {
    height: 56vw;
    min-height: 240px;
    max-height: 420px;
  }
  .ssec-lookbook-overlay {
    left: 16px;
    bottom: 16px;
    gap: 10px;
  }
  .ssec-lookbook-tag { font-size: 9px; padding: 5px 11px; }
  .ssec-lookbook-credit { display: none; }
  /* Disable hover zoom on touch devices */
  .ssec-lookbook-wrap:hover img { transform: none; }
}
@media (max-width: 480px) {
  .ssec-lookbook-wrap {
    height: 60vw;
    min-height: 200px;
  }
}

/* ============================================================
   STYLE PAGE — Detail filmstrip (02b)
   ============================================================ */
.ssec-details {
  background: var(--ink);
  color: var(--cream);
}
.ssec-details .ssec-num {
  color: rgba(255,255,255,0.35);
}
.ssec-details-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 400;
  color: var(--cream);
  margin: 12px 0 48px;
  line-height: 1.15;
}
.ssec-details-title em {
  font-style: italic;
  color: var(--beige);
}
.ssec-detail-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.ssec-detail-cell {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ssec-detail-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 4px;
}
.ssec-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.ssec-detail-cell:hover .ssec-detail-img img {
  transform: scale(1.07);
}
.ssec-detail-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  text-align: center;
}
/* Beauty accent */
.ssec-beauty-accent {
  position: relative;
  margin-top: 48px;
  height: 480px;
  overflow: hidden;
  border-radius: 6px;
}
.ssec-beauty-accent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.ssec-beauty-caption {
  position: absolute;
  bottom: 28px;
  right: 32px;
  text-align: right;
}
.ssec-beauty-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 6px;
}
.ssec-beauty-line {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(15px, 2vw, 20px);
  color: rgba(255,255,255,0.85);
  max-width: 360px;
  margin: 0;
  line-height: 1.4;
}
@media (max-width: 900px) {
  .ssec-detail-strip { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .ssec-beauty-accent { height: 360px; }
}
@media (max-width: 600px) {
  .ssec-details { padding: 48px 18px; }
  .ssec-details-title { font-size: 26px; margin-bottom: 28px; }
  .ssec-detail-strip { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .ssec-detail-img { aspect-ratio: 1/1; } /* square on small screens */
  .ssec-beauty-accent { height: 240px; margin-top: 28px; }
  .ssec-beauty-caption { bottom: 12px; right: 14px; }
  .ssec-beauty-line { font-size: 13px; max-width: 220px; }
}
@media (max-width: 400px) {
  .ssec-detail-strip { grid-template-columns: repeat(2, 1fr); gap: 6px; }
}

/* ============================================================
   PAGE VEIL — auth-transition overlay
   Sits below intro-cinema (z 9998) but above everything else.
   Starts opaque; fades out once auth resolves to logged-in.
   Prevents any homepage content flash before auth is known.
   ============================================================ */
#aura-veil {
  position: fixed;
  inset: 0;
  z-index: 9997;
  background: var(--bg, #fbf8f4);
  opacity: 1;
  pointer-events: none;   /* never blocks clicks */
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity;
}
#aura-veil.veil-out {
  opacity: 0;
}

/* ============================================================
   MOBILE POLISH — comprehensive pass v2
   Target: phones ≤ 768px, with tighter passes at ≤ 480px
   ============================================================ */

/* ── Nav ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav {
    padding: 14px 20px;
  }
  .nav-logo {
    font-size: 21px;
    letter-spacing: 0.15em;
  }
  .nav-auth-btn {
    font-size: 9px;
    padding: 7px 13px;
    letter-spacing: 0.14em;
  }
}
@media (max-width: 380px) {
  .nav-logo { font-size: 18px; }
  .nav-auth-btn { padding: 6px 10px; font-size: 8px; }
}

/* ── Hero ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero {
    padding: 80px 20px 52px;
    min-height: auto;
  }
  .hero-grid {
    gap: 28px;
  }
  .hero-title {
    font-size: clamp(34px, 9.5vw, 52px);
    line-height: 1.0;
    margin-bottom: 20px;
  }
  .hero-description {
    font-size: 14px;
    margin-bottom: 28px;
  }
  .hero-actions {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 12px;
  }
  /* Hero visual — cinematic pyramid: all 3 images always visible */
  .hero-visual {
    height: 400px;
    overflow: visible;
    border-radius: 0;
    /* add breathing room so rotated corners don't clip */
    margin-left: 8px;
    margin-right: 8px;
  }
  /* Left accent — upper-left, tilted back */
  .hero-img-1 {
    display: block;
    width: 42%;
    height: 53%;
    top: 0;
    left: -4px;
    right: auto;
    bottom: auto;
    transform: rotate(-3.5deg);
    z-index: 2;
    box-shadow: 0 12px 40px rgba(0,0,0,0.14);
  }
  /* Right accent — upper-right, tilted back */
  .hero-img-2 {
    display: block;
    width: 42%;
    height: 53%;
    top: 28px;
    right: -4px;
    left: auto;
    bottom: auto;
    transform: rotate(3.5deg);
    z-index: 2;
    box-shadow: 0 12px 40px rgba(0,0,0,0.14);
  }
  /* Hero portrait — centred, front, larger */
  .hero-img-3 {
    width: 58%;
    height: 72%;
    position: absolute;
    bottom: 0;
    left: 50%;
    right: auto;
    top: auto;
    transform: translateX(-50%);
    box-shadow: 0 28px 72px rgba(0,0,0,0.22);
    border-radius: var(--radius-md);
    z-index: 5;
  }
  .hero-tag { display: none; }
  .hero-stats {
    gap: 16px;
    flex-wrap: wrap;
  }
  .hero-stat-num { font-size: 26px; }
}

/* ── Buttons ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .btn {
    padding: 13px 24px;
    font-size: 12px;
    letter-spacing: 0.14em;
  }
  .btn-large {
    padding: 14px 28px;
    font-size: 12px;
  }
}

/* ── Container & section ─────────────────────────────────── */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section   { padding: 64px 0; }
  .section-header { margin-bottom: 48px; }
  .section-title  { font-size: clamp(28px, 7vw, 40px); }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section   { padding: 52px 0; }
}

/* ── Styles grid ─────────────────────────────────────────── */
@media (min-width: 480px) and (max-width: 720px) {
  .styles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 0 20px;
  }
}
@media (max-width: 479px) {
  .styles-grid {
    padding: 0 16px;
    gap: 14px;
  }
}

/* ── Quote strip (marquee) ───────────────────────────────── */
@media (max-width: 768px) {
  .marquee { padding: 16px 0; }
  .marquee-item { font-size: 18px; gap: 32px; }
  .marquee-track { gap: 32px; }
}

/* ── Quotes cloud ────────────────────────────────────────── */
@media (max-width: 768px) {
  .quotes-cloud { padding: 52px 16px 64px; }
  .quotes-cloud-stage { gap: 14px; }
  .quote-bubble {
    padding: 18px 20px !important;
    max-width: 92vw !important;
  }
  .quote-bubble .quote-text { font-size: 16px !important; }
}

/* ── Footer ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .footer { padding: 48px 0 32px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer-brand { font-size: 20px; }
  .footer-tagline { font-size: 12px; }
  .footer-col h4 { font-size: 11px; margin-bottom: 10px; }
  .footer-col li, .footer-col a { font-size: 12px; }
  .footer-bottom { flex-direction: column; gap: 8px; font-size: 11px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ── Moodboard ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .moodboard-page { padding: 80px 16px 48px; }
  .moodboard-header h1 { font-size: clamp(28px, 8vw, 40px); }
  .moodboard-grid { columns: 2; column-gap: 10px; }
  .moodboard-grid .inspiration-item { margin-bottom: 10px; }
  .moodboard-empty { padding: 48px 20px; }
  .moodboard-teaser-grid { columns: 2; }
}
@media (max-width: 400px) {
  .moodboard-grid { columns: 1; }
}

/* ── Settings page ───────────────────────────────────────── */
@media (max-width: 768px) {
  .settings-page { padding: 80px 16px 48px; gap: 24px; }
  .settings-title { font-size: clamp(26px, 7vw, 36px); }
}
@media (max-width: 560px) {
  .settings-circle {
    width: 94vw !important;
    height: auto !important;
    min-height: 0 !important;
    border-radius: 28px !important;
    padding: 36px 28px !important;
  }
}

/* ── AI Stylist (atelier) mobile fixes ───────────────────── */
@media (max-width: 720px) {
  .atelier-form input {
    font-size: 16px; /* prevent iOS auto-zoom on focus */
  }
}

/* ── Quiz ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .quiz-step { padding: 28px 20px; }
  .quiz-q    { font-size: clamp(18px, 5vw, 24px); }
  .quiz-options { gap: 10px; }
  .quiz-option { padding: 14px 16px; font-size: 14px; }
}

/* ── Style page ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .style-hero-img-accent { display: none; }
  .outfit-grid,
  .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .inspiration-wall { columns: 2; column-gap: 10px; }
}
@media (max-width: 400px) {
  .outfit-grid,
  .shop-grid { grid-template-columns: 1fr; }
}

/* ── Login page ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .login-layout {
    grid-template-columns: 1fr !important;
  }
  .login-panel-left {
    display: none !important;
  }
  .login-panel-right {
    padding: 40px 24px !important;
    min-height: 100svh;
  }
}

/* ── Intro on very small phones ──────────────────────────── */
@media (max-width: 380px) {
  .intro-cinema .scene-title {
    font-size: clamp(28px, 9.5vw, 42px) !important;
  }
  .intro-skip {
    top: 12px; right: 12px;
    padding: 8px 14px;
  }
}

/* ── Brands / Partners page ──────────────────────────────── */
@media (max-width: 768px) {
  .brands-hero-title { font-size: clamp(28px, 8vw, 42px); }
  .brands-grid,
  .partners-grid  { grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; }
  .brands-process { grid-template-columns: 1fr !important; }
}
@media (max-width: 400px) {
  .brands-grid,
  .partners-grid { grid-template-columns: 1fr !important; }
}

/* ── Toast on mobile ─────────────────────────────────────── */
@media (max-width: 768px) {
  .toast {
    bottom: 20px;
    right: 16px;
    left: 16px;
    text-align: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 12px;
  }
}

/* ── General image polish on mobile ─────────────────────── */
@media (max-width: 768px) {
  img { -webkit-user-drag: none; user-select: none; }
}
