/* ==========================================================
   Francis Klein v6 — still-life hero, try-on first, showroom
   ========================================================== */

/* ---------- camera buttons ---------- */
.btn-cam { display: inline-flex; align-items: center; justify-content: center; gap: 10px; position: relative; isolation: isolate; overflow: hidden; }
.btn-cam svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; flex: 0 0 auto; }
.btn-cam::after { content: ''; position: absolute; inset: -2px; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.38) 48%, transparent 66%); transform: translateX(-120%); animation: camShine 4.8s ease-in-out infinite 1.4s; }
@keyframes camShine { 0%, 62% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* nav pill: try-on, with a live dot */
.pill-try { background: rgba(169,86,79,.1) !important; color: var(--rose-d) !important; }
.pill-try svg { fill: none !important; stroke: currentColor !important; stroke-width: 1.6 !important; width: 17px !important; height: 17px !important; }
.pill-try:hover { background: var(--rose-d) !important; color: #fff !important; }
.pill-try:hover svg { fill: none !important; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-3); margin-left: 2px; box-shadow: 0 0 0 0 rgba(44,102,85,.5); animation: liveDot 2s ease-out infinite; }
@keyframes liveDot { 0% { box-shadow: 0 0 0 0 rgba(44,102,85,.55); } 80%, 100% { box-shadow: 0 0 0 7px rgba(44,102,85,0); } }

.drawer-try { background: rgba(169,86,79,.08) !important; }
.drawer-try video { width: 96px; height: 96px; object-fit: cover; object-position: 50% 30%; border-radius: 12px; background: var(--case-2); }
.drawer-try b { color: var(--rose-d) !important; }

/* ==========================================================
   HERO — animated still life (CSS 3D blocks + turning frames)
   ========================================================== */
.stage3d { aspect-ratio: 4 / 3.35; background: var(--cream); user-select: none; }
.s3-wall { position: absolute; inset: 0 0 34% 0; overflow: hidden;
  background:
    linear-gradient(118deg, transparent 0 57%, rgba(255,255,255,.0) 57%),
    linear-gradient(118deg, #F2C9BF 0 46%, #F8DDD5 46% 57%, var(--cream) 57%); }
.s3-wall::before { /* big arch, like a set piece */
  content: ''; position: absolute; width: 62%; aspect-ratio: 1; left: 50%; top: 12%; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #FBE7E0, #EDB9AD 75%); opacity: .75; transform: translateX(-30%); }
.s3-wall::after { /* a green touch: thin rod */
  content: ''; position: absolute; left: 9%; top: 0; bottom: 0; width: 7px; border-radius: 4px;
  background: linear-gradient(var(--green-3), var(--green)); opacity: .85; }
.s3-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 34%;
  background: linear-gradient(180deg, #E8CFC6 0%, #F1DDD5 40%, #F5E6DF 100%); }
.s3-floor::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(140,90,80,.25); }
.s3-light { position: absolute; inset: -10%; pointer-events: none; mix-blend-mode: soft-light; opacity: .9;
  background: repeating-linear-gradient(118deg, rgba(255,255,255,0) 0 70px, rgba(255,255,255,.55) 70px 150px, rgba(255,255,255,0) 150px 230px);
  filter: blur(14px); animation: s3light 18s ease-in-out infinite alternate; }
@keyframes s3light { from { transform: translateX(-4%); } to { transform: translateX(5%); } }

.s3-scene { position: absolute; inset: 0; --ey: clamp(7px, 1.25vw, 15px); }
.s3-item { position: absolute; }
.s3-a { left: 6%;  width: 28%; bottom: 15%; height: 40%; }
.s3-b { left: 37%; width: 28%; bottom: 8%;  height: 22%; z-index: 2; }
.s3-c { left: 67%; width: 27%; bottom: 12%; height: 31%; }

/* round plinths: body + top ellipse, shaded like plaster */
.plinth { position: absolute; left: 14%; right: 14%; top: 0; bottom: 0;
  background: linear-gradient(90deg, #EBD9D2 0%, #FBF5F2 22%, #FFFFFF 40%, #F7EEEA 66%, #E2CBC2 100%);
  border-radius: 0 0 50% 50% / 0 0 var(--ey) var(--ey); }
.plinth::before { content: ''; position: absolute; left: 0; right: 0; top: calc(var(--ey) * -1); height: calc(var(--ey) * 2); border-radius: 50%;
  background: radial-gradient(ellipse at 45% 40%, #FFFFFF 0%, #FBF6F3 55%, #F1E5E0 100%); box-shadow: inset 0 -1px 0 rgba(170,120,110,.18); }
.plinth::after { /* soft light down the front */
  content: ''; position: absolute; left: 30%; width: 14%; top: 4%; bottom: 8%; background: rgba(255,255,255,.55); filter: blur(8px); border-radius: 50%; }
.s3-item::after { /* cast shadow on the floor */
  content: ''; position: absolute; left: 10%; right: -14%; bottom: calc(var(--ey) * -1.2); height: calc(var(--ey) * 2.6); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(120,70,62,.28), rgba(120,70,62,0)); filter: blur(5px); z-index: -1; }

/* the frame standing on its plinth (always drawn in front of it) */
.s3-frame { position: absolute; left: -4%; right: -4%; bottom: calc(100% - var(--ey) * .35); z-index: 2; will-change: transform; }
.s3-frame img { position: relative; display: block; width: 100%; height: auto; filter: drop-shadow(0 12px 9px rgba(90,40,35,.2)); }
.s3-frame::after { /* glint that follows the frame's silhouette */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.95) 48%, transparent 60%) no-repeat;
  background-size: 260% 100%; background-position: 160% 0;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat;
  mix-blend-mode: overlay; opacity: 0; }
.s3-frame.glint::after { animation: glint 1.5s ease-out; }
@keyframes glint { 0% { opacity: 1; background-position: 160% 0; } 100% { opacity: 1; background-position: -60% 0; } }
.s3-shadow { position: absolute; left: 22%; right: 22%; bottom: -2%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgba(110,60,55,.35), transparent); filter: blur(2px); }

.s3-caption { position: absolute; right: 18px; top: 18px; z-index: 6; display: flex; gap: 10px; align-items: center; padding: 9px 14px 9px 12px; border-radius: 999px; background: rgba(255,255,255,.82); color: var(--ink); font-size: 13px; letter-spacing: .02em; box-shadow: 0 10px 24px -16px rgba(80,40,35,.6); transition: opacity .35s, transform .35s; }
.s3-caption::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--rose-d); }
.s3-caption b { font-family: var(--serif); font-weight: 500; font-size: 16px; }
.s3-caption.out { opacity: 0; transform: translateY(6px); }

/* ==========================================================
   TRY-ON — full spotlight section
   ========================================================== */
.try-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 100px); align-items: center;
  padding: clamp(70px, 9vw, 130px) var(--pad); overflow: hidden;
  background: radial-gradient(60% 80% at 25% 50%, #F4C9BF 0%, rgba(244,201,191,0) 70%), linear-gradient(180deg, #FBEDE6, #F6E2DA); }
.try-hero::before { content: ''; position: absolute; left: -6%; top: 50%; width: 52vw; max-width: 760px; aspect-ratio: 1; border-radius: 50%; transform: translateY(-50%); border: 1px solid rgba(169,86,79,.18); }
.try-hero .eyebrow { color: var(--rose-d); }
.try-hero h2 { line-height: 1.02; }
.try-phone-wrap { position: relative; display: grid; place-items: center; min-height: 640px; --r: clamp(170px, 19vw, 270px); }
.phone { position: relative; width: clamp(230px, 21vw, 300px); aspect-ratio: 394 / 828; border-radius: 46px; padding: 9px; background: linear-gradient(145deg, #3a3333, #151212); box-shadow: 0 50px 90px -40px rgba(90,35,30,.65), 0 0 0 1px rgba(255,255,255,.08) inset; transform: translateZ(0); z-index: 2; }
.phone video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 38px; background: #e9d6ce; }
.phone .notch { position: absolute; left: 50%; top: 16px; width: 30%; height: 22px; border-radius: 14px; background: #111; transform: translateX(-50%); z-index: 2; }
.phone::after { content: ''; position: absolute; inset: 9px; border-radius: 38px; background: linear-gradient(125deg, rgba(255,255,255,.18), rgba(255,255,255,0) 35%); pointer-events: none; }
.try-halo { position: absolute; left: 50%; top: 50%; width: min(520px, 90%); aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(255,255,255,.75) 0%, rgba(255,255,255,0) 68%); }
.try-tag { position: absolute; z-index: 5; white-space: nowrap; display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px; border-radius: 14px; background: rgba(255,255,255,.9); box-shadow: 0 18px 40px -22px rgba(90,40,35,.55); font-size: 13.5px; color: var(--text-2); animation: tagFloat 6s ease-in-out infinite; }
.try-tag b { font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--ink); line-height: 1; }
.try-tag .live-dot { margin: 0; }
.tt-1 { left: 50%; top: 18%; transform: translateX(calc(-50% - clamp(185px, 17vw, 245px))); }
.tt-2 { left: 50%; bottom: 20%; transform: translateX(calc(-50% + clamp(185px, 17vw, 245px))); animation-delay: -3s; }
@keyframes tagFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.try-steps { list-style: none; counter-reset: s; margin: 28px 0 0; padding: 0; display: grid; gap: 0; max-width: 480px; }
.try-steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; align-items: baseline; padding: 14px 0; border-top: 1px solid rgba(169,86,79,.2); }
.try-steps li:last-child { border-bottom: 1px solid rgba(169,86,79,.2); }
.try-steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--serif); color: var(--rose-d); font-size: 18px; }
.try-steps b { font-family: var(--serif); font-weight: 500; font-size: 21px; }
.try-steps span { grid-column: 2; color: var(--text-2); font-size: 14px; margin-top: 2px; }

/* feature card with the try-on video */
.card.feature-try { position: relative; overflow: hidden; background: #2a1d1b; color: #fff; min-height: 100%; isolation: isolate; }
.feature-try .ft-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; z-index: -2; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.feature-try::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(32,20,18,.82) 0%, rgba(32,20,18,.35) 30%, rgba(32,20,18,0) 45%, rgba(32,20,18,0) 55%, rgba(32,20,18,.7) 100%); }
.feature-try:hover .ft-video { transform: scale(1.05); }
.feature-try .eyebrow { color: #FBD9D0 !important; }

/* product page try-on band */
.pdp-try { display: grid; grid-template-columns: auto minmax(0, 560px); justify-content: center; gap: clamp(30px, 6vw, 90px); align-items: center; padding: clamp(60px, 7vw, 100px) var(--pad); background: radial-gradient(50% 90% at 15% 50%, #F4C9BF, rgba(244,201,191,0) 70%), #FBEDE6; }
.phone.sm { width: clamp(180px, 16vw, 230px); border-radius: 38px; padding: 7px; }
.phone.sm video { border-radius: 31px; }
.phone.sm::after { inset: 7px; border-radius: 31px; }
.phone.sm .notch { top: 12px; height: 17px; }

/* try-on button on product cards */
.card { position: relative; }
.card-try { position: absolute; top: 12px; right: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 10px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--rose-d); font-size: 12.5px; font-weight: 500; letter-spacing: .02em; box-shadow: 0 8px 20px -12px rgba(90,40,35,.7); opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .25s, background .2s, color .2s; cursor: pointer; }
.card-try::before { content: ''; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l1.6-2.4h6.8L17 8h3v11H4z'/%3E%3Ccircle cx='12' cy='13' r='3.6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l1.6-2.4h6.8L17 8h3v11H4z'/%3E%3Ccircle cx='12' cy='13' r='3.6'/%3E%3C/svg%3E") center / contain no-repeat; }
.card:hover .card-try, .card:focus-within .card-try { opacity: 1; transform: none; }
.card-try:hover { background: var(--rose-d); color: #fff; }
@media (hover: none) { .card-try { opacity: 1; transform: none; padding: 6px 10px 6px 8px; font-size: 11.5px; } }

/* ==========================================================
   SHOWROOM photos
   ========================================================== */
.showroom-photos { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; aspect-ratio: 1 / 1.02; }
.showroom-photos .sp { position: relative; overflow: hidden; border-radius: 20px; background: var(--case-2); }
.showroom-photos .sp-1 { grid-row: 1 / 3; }
.showroom-photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.showroom-photos .sp:hover img { transform: scale(1.04); }
.showroom-photos .sp-2 img { object-position: 50% 62%; }
.showroom-photos .sp-3 img { object-position: 50% 45%; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 980px) {
  .try-hero { grid-template-columns: 1fr; text-align: left; }
  .try-phone-wrap { min-height: 560px; order: 2; }
  .try-copy { order: 1; }
  .try-hero::before { width: 120vw; left: -40vw; top: 70%; }
  .pdp-try { grid-template-columns: 1fr; justify-items: start; }
  .pdp-try .phone { order: 2; justify-self: center; }
}
@media (max-width: 760px) {
  .stage3d { aspect-ratio: 4 / 4.1; }
  .s3-a { left: 3%; width: 31%; } .s3-b { left: 35%; width: 31%; } .s3-c { left: 67%; width: 30%; }
  .s3-caption { right: 10px; top: 10px; font-size: 12px; padding: 7px 12px 7px 10px; }
  .s3-caption b { font-size: 14px; }
  .try-phone-wrap { min-height: 500px; }
  .try-tag { font-size: 12px; padding: 8px 12px; }
  .try-tag b { font-size: 18px; }
  .tt-1 { top: 10%; transform: translateX(calc(-50% - 105px)); }
  .tt-2 { bottom: 12%; transform: translateX(calc(-50% + 105px)); }
  .phone { width: 220px; border-radius: 38px; }
  .phone video { border-radius: 30px; }
  .phone::after { border-radius: 30px; }
  .try-hero .btn-row .btn { width: 100%; }
  .showroom-photos { gap: 8px; margin-top: 8px; }
  .showroom-photos .sp { border-radius: 14px; }
  .pdp-try .btn { width: 100%; }
  .hero4-tag { display: none !important; }
  .grid-4 > .feature-try { grid-column: 1 / -1; min-height: 380px; }
  .feature-try .h { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .try-tag, .s3-light, .btn-cam::after, .live-dot { animation: none !important; }
}

/* intro of the still life */
.s3-item { animation: s3in 1.2s cubic-bezier(.16,1,.3,1) backwards; }
.s3-b { animation-delay: .12s; } .s3-c { animation-delay: .24s; }
@keyframes s3in { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .s3-item { animation: none; } }

/* announce ribbon: seamless loop (the track holds the messages twice) */
.announce-track { padding-left: 0 !important; animation: fkLoop var(--loop, 40s) linear infinite !important; will-change: transform; }
@keyframes fkLoop { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@media (prefers-reduced-motion: reduce) { .announce-track { animation: none !important; } }

.hero4-media .hero4-tag { display: none !important; }
@media (max-width: 760px) { .try-tag { display: none; } }

/* lighter home: compact collection cards */
.collection-card .media.col-photo { height: 270px; }
.collection-card .card-body { padding: 24px 26px; }
@media (max-width: 760px) { .collection-card .media.col-photo { height: 210px; } }

/* footer newsletter never wider than the screen */
.footer-top > div { min-width: 0; }
.inline-form { min-width: 0; max-width: 100%; }
.inline-form input { min-width: 0; width: 100%; }
.inline-form .btn { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 760px) { .inline-form .btn { padding-left: 16px !important; padding-right: 16px !important; letter-spacing: .08em !important; } }
html, body { overflow-x: clip; }
