/* SUTRA motion + typography layer (Dec 2026 makeover).
   Loaded after store.css. Everything here is progressive: without JavaScript, or with
   "reduce motion" switched on, every element is simply visible and still.
   Guidance: ui-ux-pro-max (luxury e-commerce: Cormorant over a clean sans, 300-600ms
   expo/power easing, small 12-24px offsets, stagger <= 8 items, reduced-motion respected). */

:root {
  --display: "Cormorant Garamond", "Cormorant", "Iowan Old Style", Georgia, serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);      /* expo.out */
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);    /* power2.out */
  --t-fast: 180ms;
  --t-med: 420ms;
  --t-slow: 900ms;
}

/* ---------- typography: Cormorant runs small, so display sizes step up ---------- */
.hero__title { font-weight: 500; font-size: clamp(42px, 5.4vw, 78px); line-height: 1.02; letter-spacing: -0.01em; }
.shead h2, .shead__title { font-weight: 500; font-size: clamp(32px, 3.6vw, 54px); line-height: 1.05; letter-spacing: -0.005em; }
.chead__title, .doc__title { font-weight: 500; font-size: clamp(38px, 4.4vw, 64px); line-height: 1.04; }
.pdp__title { font-weight: 500; font-size: clamp(27px, 2.8vw, 42px); line-height: 1.12; }
.arch__name { font-size: 20px; font-weight: 600; }
.story h2, .gift__copy h2, .men__copy h2, .news h2 { font-weight: 500; font-size: clamp(34px, 4vw, 58px); line-height: 1.05; }
.brev__card blockquote { font-size: 21px; line-height: 1.45; }
.logo span, .logo { letter-spacing: 0.3em; }
em, .hero__title em { font-style: italic; }
@media (max-width: 760px) {
  .pdp__title { font-size: 24px; line-height: 1.2; }
  .arch__name { font-size: 16px; }
}

/* ---------- focus: always visible, on brand ---------- */
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }

/* ---------- page-to-page: cross-fade, and the product photo glides into place ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 220ms var(--ease-soft) both; }
::view-transition-new(root) { animation: vt-in 380ms var(--ease-out) both; }
::view-transition-group(piece) { animation-duration: 520ms; animation-timing-function: var(--ease-out); }
::view-transition-old(piece), ::view-transition-new(piece) { height: 100%; object-fit: contain; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- header: tucks away while reading down, returns on the way up ---------- */
.head { transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out), background-color var(--t-med); will-change: transform; }
.head.is-tucked { transform: translateY(-100%); }

/* ---------- hero: headline rises word by word on each slide ---------- */
.js .hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.js .hero__title .w > span { display: inline-block; transform: translateY(105%); }
.js .hero__slide.is-on .hero__title .w > span { animation: rise var(--t-slow) var(--ease-out) both; animation-delay: calc(120ms + var(--i, 0) * 70ms); }
.js .hero__slide .hero__copy > :not(.hero__title) { opacity: 0; transform: translateY(14px); }
.js .hero__slide.is-on .hero__copy > :not(.hero__title) { animation: fade-up 700ms var(--ease-out) both; animation-delay: calc(380ms + var(--k, 0) * 90ms); }
.js .hero__slide.is-on .hero__media img, .js .hero__slide.is-on .hero__media video { animation: hero-zoom 7s var(--ease-soft) both; }
@keyframes rise { to { transform: none; } }
@keyframes fade-up { to { opacity: 1; transform: none; } }
@keyframes hero-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }

/* ---------- sections and grids: fade up in sequence as they enter ---------- */
.js .stg > * { opacity: 0; transform: translateY(18px); }
.js .stg.is-in > * { opacity: 1; transform: none; transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(min(var(--i, 0), 8) * 65ms); }
.js .shead.is-in::after, .js .shead::after { transform-origin: left center; }

/* thin gold rule that draws in under section headings */
.shead { position: relative; }
.shead--center .shead__rule, .shead .shead__rule { display: block; width: 56px; height: 1px; background: var(--gold-bright); margin-top: 14px; transform: scaleX(0); transition: transform 900ms var(--ease-out) 200ms; }
.shead--center .shead__rule { margin-inline: auto; transform-origin: center; }
.shead .shead__rule { transform-origin: left; }
.shead.is-in .shead__rule, html:not(.js) .shead__rule { transform: scaleX(1); }

/* ---------- images: soft fade as they arrive (never hidden without JS) ---------- */
.js img.lazy-fade { opacity: 0; transition: opacity 600ms var(--ease-soft); }
.js img.lazy-fade.is-loaded { opacity: 1; }

/* ---------- product cards: lift, slow zoom, second photo on hover ---------- */
.pc { transition: transform var(--t-med) var(--ease-out); }
.pc__media { overflow: hidden; }
.pc__img { transition: transform 1.1s var(--ease-out), opacity 600ms var(--ease-soft); }
@media (hover: hover) {
  .pc:hover { transform: translateY(-4px); }
  .pc:hover .pc__img:not(.pc__img--alt) { transform: scale(1.045); }
  .pc:hover .pc__media { box-shadow: 0 22px 40px -28px rgba(20, 39, 36, 0.55); }
}

/* ---------- buttons: a slow gold shimmer on hover, gentle press ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; transition: transform var(--t-fast) var(--ease-soft), background-color var(--t-med), color var(--t-med), border-color var(--t-med); }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(110deg, transparent 30%, rgba(255, 244, 214, 0.45) 50%, transparent 70%); transform: translateX(-120%); }
@media (hover: hover) { .btn:hover::after { transform: translateX(120%); transition: transform 900ms var(--ease-out); } }
.btn:active { transform: scale(0.98); }

/* ---------- arches: portrait lifts gently ---------- */
.arch__frame img { transition: transform 1.2s var(--ease-out); }
@media (hover: hover) { .arch:hover .arch__frame img { transform: scale(1.06); } .arch:hover .arch__name { color: var(--gold-text); } }
.arch__name { transition: color var(--t-med); }

/* ---------- scroll-linked depth (browsers that support it; others stay still) ---------- */
@supports (animation-timeline: view()) {
  .story, .men, .gift__panel { background-attachment: scroll; }
  .split__media img, .budget img { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  @keyframes drift { from { transform: translateY(-4%) scale(1.08); } to { transform: translateY(4%) scale(1.08); } }
}

/* ---------- subtle paper grain on the dark panels ---------- */
.story, .men, .sec--dark, .news, .foot { position: relative; }
.story::before, .men::before, .sec--dark::before, .news::before, .foot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.06; 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 type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.story > *, .men > *, .sec--dark > *, .news > *, .foot > * { position: relative; }

/* ---------- bag drawer, menu, modal: glide rather than snap ---------- */
.drawer, [data-panel] { transition-timing-function: var(--ease-out) !important; }

/* ---------- counters ---------- */
.stats b { font-variant-numeric: tabular-nums; }

/* ---------- respect "reduce motion" everywhere ---------- */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .js .hero__title .w > span, .js .hero__slide .hero__copy > :not(.hero__title), .js .stg > *, .js img.lazy-fade { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .js .hero__slide.is-on .hero__media img, .js .hero__slide.is-on .hero__media video, .split__media img, .budget img { animation: none !important; }
  .head.is-tucked { transform: none; }
  .shead__rule { transform: scaleX(1) !important; }
}

/* sticky buy bar: one-line button */
.stickybuy .btn { white-space: nowrap; padding-inline: 22px; flex: none; }

/* checkout: nothing floating over the form on phones */
@media (max-width: 760px) {
  .is-checkout .tabbar, .is-checkout .wa-float { display: none !important; }
  .is-checkout { padding-bottom: 0 !important; }
}
/* breadcrumbs: comfortable tap targets */
.crumbs a { display: inline-block; padding: 8px 0; margin: -8px 0; }
