/* Velvet Chair — motion & luxury effects layer.
   Rules: transform / opacity / clip-path only · nothing blinks · all off under prefers-reduced-motion. */

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }
.brand { view-transition-name: brand; }

@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* small additions used by the new markup */
.hero__badge { position: absolute; z-index: 3; right: clamp(20px, 6vw, 90px); top: 30%; margin: 0; width: 130px; height: 130px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: rgba(20,12,18,.55); backdrop-filter: blur(10px); border: 1px solid rgba(227,195,157,.45); color: rgba(255,255,255,.8); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; }
.hero__badge span { display: block; font: italic 500 1.5rem/1.05 var(--serif); letter-spacing: 0; text-transform: none; color: var(--gold); margin-bottom: 4px; }
.crumbs--dark { color: var(--muted); }
.crumbs--dark a { color: var(--wine); }
.chip--avail[aria-pressed="true"] { background: #2f7a4f; color: #fff; border-color: #2f7a4f; }
.more-specs { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.more-specs a { color: var(--wine); }
.foot__grid--4 { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.foot__h { font: 700 .66rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.foot nav { display: flex; flex-direction: column; gap: 8px; }
.foot .nap { color: rgba(255,255,255,.65); margin-top: 16px; }
.foot .nap a { color: var(--gold-3); text-decoration: none; }
.dcard[hidden] { display: none; }
.sec-head p a, .faq__list a { color: var(--wine); }
@media (max-width: 1020px) { .foot__grid--4 { grid-template-columns: 1fr 1fr; } .hero__badge { display: none; } }
@media (max-width: 600px) { .foot__grid--4 { grid-template-columns: 1fr; } }

/* scroll progress */
.fx-progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 300; transform-origin: 0 50%; transform: scaleX(0); background: var(--shine); pointer-events: none; }

/* film grain on dark sections */
.fx-grain { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.packages, .voices, .hero { position: relative; }
.packages > .wrap, .voices > .wrap { position: relative; z-index: 2; }

/* drifting ghost words */
.designs, .process { position: relative; overflow: hidden; }
.fx-ghost { position: absolute; top: 60px; left: -5%; z-index: 0; white-space: nowrap; pointer-events: none; user-select: none;
  font: italic 500 clamp(6rem, 16vw, 15rem)/1 var(--serif); color: transparent; -webkit-text-stroke: 1px rgba(74,34,54,.09); transform: translateX(var(--gx, 0)); }
.fx-ghost--r { left: auto; right: -5%; top: 30px; }
.designs > .wrap, .process > .wrap { position: relative; z-index: 1; }
@media (max-width: 900px) { .fx-ghost { display: none; } }

/* buttons: shimmer, lift, foil */
.btn { position: relative; overflow: hidden; isolation: isolate; will-change: transform; }
.btn:active { transform: translateY(0) scale(.97); }
.btn--gold, .btn--dark, .btn--ghost { transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s, color .35s; }
.btn--gold:hover, .btn--dark:hover, .btn--ghost:hover { transform: translate(var(--mx, 0), calc(var(--my, 0px) - 3px)); }
.btn--gold { background: linear-gradient(110deg, #c9a06e 0%, #f6e3c8 calc(var(--foil, 38%) - 10%), #e3c39d var(--foil, 38%), #b98a5a 100%); }
.btn--gold::after { content: ''; position: absolute; inset: -20% auto -20% -60%; width: 45%; z-index: -1; transform: skewX(-20deg) translateX(0); background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent); animation: fx-shimmer 6s ease-in-out infinite; }
.btn--gold:hover::after { animation-duration: 1.1s; }
@keyframes fx-shimmer { 0%, 70% { transform: skewX(-20deg) translateX(0); } 100% { transform: skewX(-20deg) translateX(420%); } }
.fx-magnet { transform: translate(var(--mx, 0), var(--my, 0)); }
.hero h1 em, .phero h1 em, .start h2 em { background: linear-gradient(110deg, #c9a06e 0%, #f6e3c8 calc(var(--foil, 38%) - 8%), #e3c39d var(--foil, 38%), #b98a5a 100%); -webkit-background-clip: text; background-clip: text; }

/* hero staggered entrance (pure CSS, no flash) */
.hero-in { animation: fx-rise 1.1s var(--ease) both; animation-delay: calc(var(--i, 0) * 130ms + 150ms); }
@keyframes fx-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.fx-float { animation: fx-bob 6s ease-in-out infinite; }
@keyframes fx-bob { 50% { transform: translateY(-10px); } }

/* staggered reveal + side slides */
.js .reveal { transition-delay: var(--d, 0ms); }
.js .included__photo.reveal, .js .start__copy.reveal, .js .aside-card.reveal { transform: translateX(-40px); }
.js .included__copy .reveal:first-child, .js .start__grid > .reveal:last-child { transform: translateX(40px); }
.js .reveal.in { transform: none; }

/* headlines rise line by line behind a mask */
.fx-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.fx-line > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--l, 0) * 120ms); }
.fx-lines.in .fx-line > span { transform: none; }

/* gold divider draws outward from the center */
.fx-rule { border: 0; height: 1px; margin: -10px auto 50px; max-width: 1240px; background: linear-gradient(90deg, transparent, var(--gold-2), transparent); transform: scaleX(0); transition: transform 1.4s var(--ease); }
.fx-rule.in { transform: scaleX(1); }
.eyebrow::before { transform-origin: right; }

/* photo wipe reveal with glowing gold edge */
.fx-wipe-wrap { position: relative; }
.js .fx-wipe { clip-path: inset(0 0 100% 0); transition: clip-path 1.5s var(--ease); }
.fx-wipe-wrap.in .fx-wipe { clip-path: inset(0 0 0 0); }
.fx-wipe-wrap::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--shine); box-shadow: 0 0 18px 4px rgba(227,195,157,.6); opacity: 0; pointer-events: none; }
.js .fx-wipe-wrap.in::after { animation: fx-edge 1.5s var(--ease) forwards; }
.included__photo.fx-wipe-wrap::after { right: 60px; }
@keyframes fx-edge { 0% { opacity: 1; transform: translateY(0); } 90% { opacity: 1; } 100% { opacity: 0; transform: translateY(var(--wh, 500px)); } }

/* slow zoom on section photos */
.fx-zoom img, .spec img, .phero__img { transform: scale(var(--z, 1.16)); }
@supports (animation-timeline: view()) {
  .fx-zoom img, .phero__img, .spec img { animation: fx-zoom linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
  @keyframes fx-zoom { from { transform: scale(1.16); } to { transform: scale(1); } }
}
.fx-zoom-hero .hero__slide.is-on { transform: scale(1); }

/* card spotlight glow */
.fx-spot { position: relative; }
.fx-spot::before { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 50%), rgba(227,195,157,.22), transparent 45%); }
.fx-spot:hover::before { opacity: 1; }

/* rotating gold border on key frames */
.fx-orbit { position: relative; }
.fx-orbit::after { content: ''; position: absolute; inset: -2px; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 70%, #fff6e6 80%, #e3c39d 86%, transparent 94%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: fx-orbit 10s linear infinite; }
@keyframes fx-orbit { to { --ang: 360deg; } }
.oneofone { position: relative; }
.co-box.fx-orbit::after { inset: -1px; }

/* stacking promise cards (desktop) */
@media (min-width: 1021px) {
  .fx-stack { display: block; max-width: 760px; margin: 0 auto; }
  .fx-stack .promise { position: sticky; top: calc(130px + var(--k, 0) * 26px); margin-bottom: 40px; background: #1d1119; transform-origin: 50% 0;
    transform: scale(var(--ss, 1)); opacity: var(--so, 1); transition: none; }
  .js .fx-stack .promise.reveal { opacity: var(--so, 1); transform: scale(var(--ss, 1)); }
}

/* count-up stat placeholder keeps width (no CLS) */
[data-count] { font-variant-numeric: tabular-nums; }

/* reduce motion: everything off */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .btn--gold::after, .fx-float, .hero-in, .fx-orbit::after, .marquee__track { animation: none !important; }
  .fx-line > span, .fx-rule, .js .fx-wipe { transform: none !important; clip-path: none !important; transition: none !important; }
  .fx-zoom img, .spec img, .phero__img { animation: none !important; transform: none !important; }
  .fx-progress, .fx-ghost, .fx-wipe-wrap::after { display: none; }
  .fx-stack .promise { position: static; transform: none !important; opacity: 1 !important; }
}
