/* ============================================
   Brand Statement — fullscreen video background
   ============================================ */
.brand-statement {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-statement-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.brand-statement-poster,
.brand-statement-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.brand-statement-poster {
  z-index: 1;
  transition: opacity 0.6s ease;
}

.brand-statement-video {
  z-index: 2;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.brand-statement-video.is-playing {
  opacity: 1;
}

.brand-statement-video.is-playing + .brand-statement-poster,
.brand-statement-bg:has(.brand-statement-video.is-playing) .brand-statement-poster {
  opacity: 0;
}

.brand-statement-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: var(--sp-lg);
}

.brand-statement-text {
  font-size: clamp(2.5rem, 6vw, 5rem);
  max-width: 16ch;
  margin: 0 auto;
  line-height: 1.15;
  color: var(--c-navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .brand-statement-video {
    display: none;
  }
}

/* ============================================
   Before / After
   ============================================ */
.before-after {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.before-after-bg {
  position: absolute;
  inset: 0;
  background: url('../assets/pattern-toile-baroque-navy.webp') repeat center center;
  background-size: 500px 500px;
  opacity: 0.06;
  z-index: 0;
  pointer-events: none;
}

.before-after .container {
  position: relative;
  z-index: 1;
}

.before-after h2 {
  margin-bottom: var(--sp-lg);
}

.ba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-md);
  max-width: 900px;
  margin: 0 auto;
}

.ba-slider {
  position: relative;
  border-radius: var(--glass-radius);
  overflow: hidden;
  cursor: ew-resize;
  aspect-ratio: 3 / 4;
  user-select: none;
  -webkit-user-select: none;
}

.ba-before,
.ba-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ba-before .placeholder-img,
.ba-after .placeholder-img {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.ba-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.ba-after {
  clip-path: inset(0 0 0 50%);
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: ew-resize;
  touch-action: none;
}

.ba-handle-line {
  flex: 1;
  width: 2px;
  background: var(--c-white);
  opacity: 0.8;
}

.ba-handle-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.ba-handle-circle svg {
  width: 20px;
  height: 20px;
}

.ba-handle-circle svg path {
  stroke: var(--c-navy);
}

/* ============================================
   How It Works — Horizontal Scroll
   ============================================ */
.how-it-works {
  position: relative;
  width: 100%;
  height: 100vh;
  background-color: var(--c-white);
}

.hiw-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 300vw;
  height: 100%;
  background-color: var(--c-cream, #faf8f5);
  background-image: url('../assets/pattern-toile-baroque-navy.webp');
  background-repeat: repeat;
  background-position: center center;
  background-size: 500px 500px;
  opacity: 0.06;
  z-index: 0;
  pointer-events: none;
}

/* absolute instead of sticky: when GSAP pins .how-it-works,
   absolute-to-section behaves like fixed-to-viewport throughout
   the horizontal scroll. Mobile overrides to position:relative. */
.hiw-title {
  position: absolute;
  top: var(--sp-lg);
  left: 0;
  right: 0;
  text-align: center;
  z-index: 2;
  font-size: var(--fs-h2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c-navy);
  margin: 0;
}

.hiw-track {
  display: flex;
  width: 300vw;
  height: 100%;
}

.hiw-panel {
  width: 100vw;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.hiw-panel-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-sm);
  max-width: 400px;
  padding: calc(var(--sp-lg) + var(--fs-h2) + var(--sp-md)) var(--sp-md) var(--sp-lg);
  z-index: 1;
}

.hiw-panel-content .step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-lilac), var(--c-denim));
  color: var(--c-white);
  font-family: var(--ff-heading);
  font-size: 1.75rem;
  font-weight: var(--fw-heading);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hiw-panel-content h3 {
  font-size: var(--fs-h3);
  color: var(--c-navy);
  margin: 0;
}

.hiw-panel-content p {
  color: var(--c-slate);
  font-size: var(--fs-body);
  margin: 0;
  max-width: 320px;
}

.hiw-phone-mockup {
  width: 200px;
  height: 390px;
  border-radius: 28px;
  overflow: hidden;
  margin-top: var(--sp-sm);
  box-shadow: 0 8px 40px rgba(0, 39, 62, 0.12);
}

.hiw-phone-placeholder {
  width: 100%;
  height: 100%;
  background: #e8e0f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-xs);
  color: var(--c-slate);
  font-size: var(--fs-small);
}

.hiw-phone-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Flatlay outfit (Step 2): show the whole layout, don't crop the sides */
.hiw-phone-mockup--contain {
  background: #f4f1f8;
}

.hiw-phone-mockup--contain img {
  object-fit: contain;
}

/* Fallback for prefers-reduced-motion: vertical layout, no animation */
.hiw-no-animation .hiw-track {
  flex-direction: column;
  width: 100%;
  height: auto;
}

.hiw-no-animation .hiw-panel {
  width: 100%;
  height: auto;
  min-height: 60vh;
}

.hiw-no-animation {
  height: auto;
  overflow: visible;
}

.hiw-no-animation .hiw-bg {
  width: 100%;
}

.hiw-no-animation .hiw-title {
  position: relative;
  top: auto;
  padding: var(--sp-lg) var(--sp-md) var(--sp-md);
}

/* ============================================
   Use Cases — Style Every Moment
   ============================================ */
.use-cases {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow-x: hidden;
}

.uc-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #f7f6f4;
}

.uc-bg-model {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 90%;
  width: auto;
  object-fit: contain;
  z-index: 2;
}

.uc-title {
  position: absolute;
  top: 18%;
  left: 0;
  right: 0;
  z-index: 1;
  font-size: clamp(3rem, 7vw, 6.5rem);
  text-transform: none;
  letter-spacing: 0.04em;
  color: var(--c-navy);
  margin: 0;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.uc-title-left {
  position: relative;
  left: -0.5em;
}

.uc-title-right {
}

.uc-title-every {
  background: linear-gradient(90deg, #4D6C93 0%, #BE9EFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.uc-cards {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.uc-card {
  position: absolute;
  width: 180px;
  padding: 8px 8px 32px 8px;
  background: white;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 39, 62, 0.15);
  pointer-events: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  top: 38%;
  left: 45%;
  transform-origin: 50% 100%;
}

.uc-card:nth-child(1) { transform: rotate(-44deg); z-index: 5; }
.uc-card:nth-child(2) { transform: rotate(-22deg); z-index: 4; }
.uc-card:nth-child(3) { transform: rotate(0deg); z-index: 3; }
.uc-card:nth-child(4) { transform: rotate(22deg); z-index: 2; }
.uc-card:nth-child(5) { transform: rotate(44deg); z-index: 1; }

.uc-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 2px;
  display: block;
}

/* Source images are 9:16 full-body; the 3:4 window center-crops ~12.5% off top.
   These 4 have heads near the top edge, so anchor the crop upward to keep the
   face + outfit (trades off some footroom). Café (nth-child 5) sits lower — keep
   it centered. */
.uc-card:nth-child(1) img,
.uc-card:nth-child(2) img,
.uc-card:nth-child(3) img,
.uc-card:nth-child(4) img {
  object-position: 50% 10%;
}

.uc-card-label {
  display: block;
  font-size: var(--fs-small);
  color: var(--c-slate);
  text-align: center;
  padding-top: 4px;
}

.uc-ribbons {
  position: absolute;
  bottom: 15%;
  left: 0;
  width: 100vw;
  z-index: 4;
}

.uc-ribbon {
  width: 100vw;
  overflow: hidden;
  white-space: nowrap;
  background: white;
  padding: 12px 0;
  transform-origin: center;
}

.uc-ribbon--ltr {
  transform: rotate(-2deg);
}

.uc-ribbon--rtl {
  transform: rotate(2deg);
  margin-top: 8px;
}

.uc-ribbon span {
  display: inline-block;
  font-family: var(--ff-heading);
  font-size: 1.5rem;
  font-weight: var(--fw-heading);
  letter-spacing: 0.3em;
  color: var(--c-navy);
  text-transform: uppercase;
}

/* Reduced-motion fallback */
.uc-no-animation {
  height: auto;
  overflow: visible;
}

.uc-no-animation .uc-title {
  position: relative;
  top: auto;
  padding: var(--sp-lg) var(--sp-md) var(--sp-md);
}

.uc-no-animation .uc-cards {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-md);
  padding: var(--sp-md);
}

.uc-no-animation .uc-card {
  position: relative;
  top: auto !important;
  left: auto !important;
  transform: none !important;
}

/* ============================================================
   Brand statement subtitle — inclusivity sub-line under H2
   ============================================================ */
.brand-statement-sub {
  font-family: var(--ff-heading);
  font-style: italic;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 400;
  color: var(--c-lilac);
  text-align: center;
  margin-top: var(--sp-sm);
  letter-spacing: 0.01em;
  opacity: 0.92;
}

/* ============================================================
   Section 6.5: FAQ
   ============================================================ */
.faq {
  padding: var(--sp-section) 0;
  background: var(--c-white);
}

.faq .container {
  max-width: 880px;
}

.faq h2 {
  font-family: var(--ff-heading);
  font-size: var(--fs-h2);
  font-weight: var(--fw-heading);
  color: var(--c-navy);
  text-align: center;
  margin-bottom: var(--sp-sm);
  letter-spacing: 0.01em;
}

.faq-intro {
  text-align: center;
  font-size: var(--fs-body);
  color: var(--c-slate);
  max-width: 640px;
  margin: 0 auto var(--sp-lg);
  line-height: 1.6;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}

.faq-item {
  border-top: 1px solid var(--c-navy-10);
  padding: var(--sp-sm) 0;
}

.faq-item:last-of-type {
  border-bottom: 1px solid var(--c-navy-10);
}

.faq-item summary {
  font-family: var(--ff-body);
  font-size: 1.0625rem;
  font-weight: var(--fw-medium);
  color: var(--c-navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-xs) 0;
  transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--c-lilac);
  transition: transform 0.2s ease;
  margin-left: var(--sp-sm);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  color: var(--c-lilac);
}

.faq-item p {
  font-size: var(--fs-body);
  color: var(--c-slate);
  line-height: 1.6;
  margin: var(--sp-xs) 0 var(--sp-sm);
  max-width: 720px;
}
