/* ==========================================================================
   SEGNO — Motion & Editorial Layer (v2)
   Scroll-reveal, sticky header shrink, editorial lookbook blocks,
   video placeholder, testimonial. Layered on top of main.css.
   ========================================================================== */

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------------- Scroll progress bar ---------------- */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: var(--brass);
  z-index: 200;
  transition: width .12s linear;
}

/* ---------------- Header: shrink on scroll ---------------- */
.site-header { transition: box-shadow .35s ease, padding .35s ease, background-color .4s ease, backdrop-filter .4s ease; }
.site-header.is-scrolled { box-shadow: 0 8px 24px -12px rgba(28,33,24,0.18); }
.site-header.is-scrolled .header-bar { padding-top: 12px; padding-bottom: 12px; }

/* Overlay header (homepage): text + logo colors ease in/out with the background */
.header-overlay,
.header-overlay .logo,
.header-overlay .main-nav a,
.header-overlay .icon-link,
.header-overlay .nav-toggle,
.header-overlay .logo-mark {
  transition: background-color .4s ease, color .35s ease, filter .35s ease, box-shadow .35s ease, border-color .35s ease;
}

/* Underline sweep on nav links */
.main-nav a { position: relative; border-bottom: none; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px;
  background: var(--brass); transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

/* ---------------- Scroll reveal ---------------- */
.reveal {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(34px) scale(0.98);
  transition: opacity .9s cubic-bezier(.16,.8,.3,1), transform .9s cubic-bezier(.16,.8,.3,1), filter .9s cubic-bezier(.16,.8,.3,1);
}
.reveal.in-view { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
.reveal-stagger > * {
  opacity: 0; filter: blur(5px);
  transform: translateY(26px) scale(0.97);
  transition: opacity .75s cubic-bezier(.16,.8,.3,1), transform .75s cubic-bezier(.16,.8,.3,1), filter .75s cubic-bezier(.16,.8,.3,1);
}
.reveal-stagger.in-view > * { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: .09s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: .18s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: .27s; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: .34s; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { filter: none !important; }
}

/* ---------------- Hero refinements: parallax + ken-burns on the full-bleed photo ---------------- */
.hero-media { will-change: transform; }
.hero-media img {
  animation: kenBurns 20s ease-in-out infinite alternate;
}
@keyframes kenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

/* Split-line curtain reveal for the headline — a notch above a plain fade */
.hero .hero-title {
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transform: translateY(14%);
  animation: heroTitleReveal 1.05s cubic-bezier(.16,.84,.44,1) .25s forwards;
}
@keyframes heroTitleReveal {
  to { opacity: 1; clip-path: inset(0 0 0% 0); transform: translateY(0); }
}

.hero-copy { animation: heroRise 1s cubic-bezier(.16,.8,.3,1) .48s both; }
.hero-actions { animation: heroRise 1s cubic-bezier(.16,.8,.3,1) .6s both; }
.hero-eyebrow { animation: heroRise 1s cubic-bezier(.16,.8,.3,1) .15s both; }
@keyframes heroRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll cue */
.hero-scroll-cue {
  position: absolute;
  left: 50%; bottom: 22px;
  transform: translateX(-50%);
  z-index: 3;
  opacity: 0;
  animation: heroRise .8s ease 1.1s forwards;
}
.hero-scroll-cue span {
  display: block; width: 1px; height: 36px;
  background: linear-gradient(rgba(255,255,255,0.6), transparent);
  position: relative; overflow: hidden;
}
.hero-scroll-cue span::after {
  content: ""; position: absolute; top: -100%; left: 0;
  width: 100%; height: 100%; background: var(--brass-light);
  animation: scrollCueDrop 1.9s ease-in-out infinite;
}
@keyframes scrollCueDrop {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* Magnetic buttons — JS adds inline transforms, CSS just eases them */
.magnetic { transition: transform .35s cubic-bezier(.16,.8,.3,1); }

@media (max-width: 860px) {
  .hero-scroll-cue { display: none; }
}

/* ---------------- Editorial lookbook blocks (alternating) ---------------- */
.editorial { padding: 30px 0; }
.editorial-row {
  display: grid; grid-template-columns: 0.86fr 1fr; gap: 70px; align-items: center;
  padding: 60px 0;
}
.editorial-row.reverse .editorial-media { order: 2; }
.editorial-row.reverse .editorial-copy { order: 1; }
.editorial-media {
  aspect-ratio: 3/4; border-radius: var(--radius-lg); overflow: hidden; position: relative;
  background: var(--canvas-alt); border: 1px solid var(--line); box-shadow: var(--shadow-soft);
  max-width: 420px;
  margin: 0 auto;
  outline: 1px solid var(--brass-light); outline-offset: 12px;
}
.editorial-row.reverse .editorial-media { margin-left: auto; margin-right: 0; }
.editorial-row:not(.reverse) .editorial-media { margin-left: 0; margin-right: auto; }
.editorial-media.parallax-img img { will-change: transform; transition: transform .08s linear; }

/* Curtain wipe reveal: the image sits masked until its section scrolls into view */
.editorial-media::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--canvas-alt);
  transform-origin: left;
  transform: scaleX(1);
  transition: transform 1s cubic-bezier(.76,0,.24,1) .1s;
  z-index: 2;
  pointer-events: none;
}
.editorial-row.reverse .editorial-media::before { transform-origin: right; }
.editorial.in-view .editorial-media::before { transform: scaleX(0); }
.editorial-media .placeholder-tag {
  position: absolute; bottom: 16px; left: 16px;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft); background: rgba(255,253,248,0.85);
  padding: 6px 10px; border-radius: 3px;
}
.editorial-copy .eyebrow { margin-bottom: 14px; }
.editorial-copy h2 { margin-bottom: 18px; }
.editorial-copy p { font-size: 16px; max-width: 440px; }
.editorial-copy .btn { margin-top: 10px; }
@media (max-width: 860px) {
  .editorial-row, .editorial-row.reverse { grid-template-columns: 1fr; gap: 26px; padding: 30px 0; }
  .editorial-row.reverse .editorial-media { order: 1; }
  .editorial-row.reverse .editorial-copy { order: 2; }
  .editorial-media { outline-offset: 8px; }
}

/* ---------------- Video / promo placeholder block ---------------- */
.promo-video {
  position: relative; aspect-ratio: 21/9; border-radius: 6px; overflow: hidden;
  background: linear-gradient(135deg, var(--signature) 0%, #2E3D26 45%, var(--brass) 140%);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.promo-video .play-btn {
  width: 76px; height: 76px; border-radius: 50%;
  background: rgba(255,253,248,0.92);
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s ease;
}
.promo-video:hover .play-btn { transform: scale(1.08); }
.promo-video .play-btn svg { margin-left: 4px; }
.promo-video .promo-caption {
  position: absolute; bottom: 20px; left: 24px;
  color: rgba(255,255,255,0.85); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
}
.promo-video-embed { cursor: default; background: #000; }
.promo-video-embed iframe, .promo-video-embed video {
  width: 100%; height: 100%; border: none; display: block; object-fit: cover;
}
.promo-video-native video { object-fit: contain; background: #000; }

/* ---------------- Testimonial / quote ---------------- */
.testimonial { padding: 90px 0; text-align: center; }
.testimonial blockquote {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 400; color: var(--ink); max-width: 780px; margin: 0 auto 20px;
  line-height: 1.4;
}
.testimonial cite { font-style: normal; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); }

/* ---------------- Product card hover polish ---------------- */
.product-thumb { transition: box-shadow .3s ease, transform .35s cubic-bezier(.16,.8,.3,1); }
.product-card:hover .product-thumb { box-shadow: 0 18px 34px -18px rgba(28,33,24,0.35); }
.product-thumb img { transition: transform .6s cubic-bezier(.16,.8,.3,1); }
.product-card:hover .product-thumb img { transform: scale(1.05); }
.category-tile { transition: box-shadow .35s ease, transform .35s cubic-bezier(.16,.8,.3,1); }
.category-tile:hover { box-shadow: 0 20px 40px -20px rgba(28,33,24,0.4); }
.category-tile img, .category-tile .tile-inner { transition: transform .6s cubic-bezier(.16,.8,.3,1); }

/* ---------------- Capsule strip: smoother drag feel ---------------- */
.capsule-strip { scroll-snap-type: x proximity; }
.capsule-piece { scroll-snap-align: start; }

/* Potongan outfit muncul seragam (fade + naik sedikit dari bawah) begitu
   section discroll ke layar -- tanpa arah kiri/kanan/atas/bawah yang beda-beda,
   supaya terasa lebih rapi & elegan sebagai satu kesatuan look. */
.capsule-strip.fly-in .capsule-piece {
  opacity: 0;
  transition: opacity .7s cubic-bezier(.16,.8,.3,1), transform .7s cubic-bezier(.16,.8,.3,1), box-shadow .3s ease, border-color .35s ease;
}
.capsule-strip.fly-in .capsule-piece.fly-rise { transform: translateY(28px) scale(.94); }
.capsule.in-view .capsule-strip.fly-in .capsule-piece {
  opacity: 1; transform: translateY(0) scale(1);
}
/* Simbol "+"/"=" muncul dengan pop kecil, mengikuti potongan di sebelahnya */
.capsule-plus.fly-pop { opacity: 0; transform: scale(0.3) rotate(-20deg); transition: opacity .5s ease, transform .5s cubic-bezier(.34,1.56,.64,1); }
.capsule.in-view .capsule-plus.fly-pop { opacity: 1; transform: scale(1) rotate(0); }

@media (prefers-reduced-motion: reduce) {
  .capsule-strip.fly-in .capsule-piece, .capsule-plus.fly-pop { transition: none !important; transform: none !important; opacity: 1 !important; }
}

/* ---------------- Buttons: subtle lift ---------------- */
.btn { transition: all .25s cubic-bezier(.16,.8,.3,1); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(35,48,31,0.5); }
.btn-outline:hover { transform: translateY(-2px); }

/* ---------------- Marquee strip ---------------- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 18px 0; background: var(--canvas-alt);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.marquee-track {
  display: flex; gap: 44px; white-space: nowrap;
  animation: marqueeScroll 34s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-family: var(--font-display); font-size: 14px; font-weight: 500;
  letter-spacing: 0.04em; color: var(--ink-soft);
  display: flex; align-items: center; gap: 44px;
}
.marquee-track span::after { content: "•"; color: var(--brass); margin-left: 44px; font-size: 12px; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ==========================================================================
   Small-phone refinements (< 600px) — tighter spacing, single-column forms
   ========================================================================== */
@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .header-bar { padding: 16px 18px; }
  .logo { font-size: 22px; }
  .hero { padding: 110px 0 56px; }
  .hero h1 { font-size: 1.9rem; }
  .hero-copy { font-size: 15px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .capsule-piece { flex-basis: 150px; }
  .capsule-head { flex-direction: column; align-items: flex-start; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .product-grid { gap: 14px 10px; }
  .editorial-row { gap: 20px; padding: 24px 0; }
  .editorial-copy p { max-width: 100%; }
  .marquee-track span { font-size: 11px; gap: 24px; letter-spacing: 0.03em; }
  .marquee-track span::after { margin-left: 24px; font-size: 10px; }
  .marquee-track { gap: 24px; }
  .marquee { padding: 14px 0; }
  .value-grid { gap: 20px; }
  .testimonial { padding: 60px 0; }
  .testimonial blockquote { font-size: 1.3rem; }

  /* forms: always single column on small phones */
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }

  /* cart row: stack into two lines instead of 4 tight columns */
  .cart-row {
    grid-template-columns: 70px 1fr; grid-template-rows: auto auto;
    row-gap: 10px;
  }
  .cart-row img { width: 70px; }
  .cart-qty, .cart-row > div:last-child { grid-column: 2; }

  .pd-layout { gap: 24px; }
  .qty-row { flex-wrap: wrap; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }

  .filters { position: static; border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 10px; }
  .listing-layout { grid-template-columns: 1fr; }
}


