/* Kashane Amn — homepage (formal): product slider, 360° showroom, clean sections */

/* header sits over the dark hero until the page scrolls */
body.home .site-header { position: sticky; top: 0; margin-bottom: calc(-1 * var(--header-h)); background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background .3s, border-color .3s; }
body.home .site-header .main-nav a { color: #e2e8f0; }
body.home .site-header .main-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
body.home .site-header .main-nav a.active { background: rgba(255, 255, 255, .12); color: #fff; }
body.home .site-header .brand img { filter: brightness(0) invert(1); }
body.home .site-header .btn-light { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #fff; }
body.home .site-header .btn-dark { background: #fff; color: var(--ink); border-color: #fff; }
body.home.scrolled .site-header { background: rgba(255, 255, 255, .94); border-color: var(--line); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
body.home.scrolled .site-header .main-nav a { color: #334155; }
body.home.scrolled .site-header .main-nav a.active { background: var(--ink); color: #fff; }
body.home.scrolled .site-header .brand img { filter: none; }
body.home.scrolled .site-header .btn-light { background: var(--surface-2); border-color: var(--line); color: var(--text); }
body.home.scrolled .site-header .btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ------------------------------------------------------------ hero slider */
.hero { position: relative; background: linear-gradient(135deg, #142037 0%, var(--ink) 60%, #080d18 100%); color: #fff; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 420px at 20% 40%, color-mix(in srgb, var(--brand) 13%, transparent), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .14), transparent); }
.hero-track { display: grid; }
.hero-slide { grid-area: 1 / 1; padding: calc(var(--header-h) + 56px) 0 128px; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.hero-copy > *, .hero-media { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.hero-slide:not(.is-active) .hero-copy > * { opacity: 0; transform: translateY(14px); }
.hero-slide:not(.is-active) .hero-media { opacity: 0; transform: translateX(-24px); }
.hero-slide.is-active .hero-copy > :nth-child(2) { transition-delay: .08s; }
.hero-slide.is-active .hero-copy > :nth-child(3) { transition-delay: .16s; }
.hero-slide.is-active .hero-copy > :nth-child(4) { transition-delay: .24s; }
.hero-slide.is-active .hero-media { transition-delay: .1s; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--brand); font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.hero-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--brand); }
.hero-title { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.35; font-weight: 900; margin: 0 0 18px; letter-spacing: -.01em; }
.hero-sub { font-size: 16.5px; color: #c3cbd8; max-width: 520px; margin: 0 0 32px; line-height: 2.05; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-media { display: grid; gap: 16px; }
.hero-media.has-side { grid-template-columns: 1fr 168px; }
.hm-main { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .85); color: var(--text); }
.hm-main .hm-img { aspect-ratio: 4 / 3.3; display: grid; place-items: center; padding: 18px; background: #fff; }
.hm-main .hm-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s; }
.hm-main:hover .hm-img img { transform: scale(1.03); }
.hm-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--surface-2); }
.hm-caption b { display: block; font-size: 14.5px; line-height: 1.7; }
.hm-caption small { color: var(--muted); font-size: 12px; direction: ltr; unicode-bidi: plaintext; }
.hm-go { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; transition: background .2s; }
.hm-main:hover .hm-go { background: var(--brand); color: var(--brand-ink); }
.hm-photo { aspect-ratio: 4 / 3.3; }
.hm-photo img { width: 100%; height: 100%; object-fit: cover; }
.hm-side { display: grid; gap: 16px; align-content: stretch; }
.hm-thumb { display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden; color: var(--text); box-shadow: 0 30px 50px -36px rgba(0, 0, 0, .85); transition: transform .25s; }
.hm-thumb:hover { transform: translateY(-3px); }
.hm-thumb .hm-img { flex: 1; aspect-ratio: 1 / 1; padding: 10px; display: grid; place-items: center; }
.hm-thumb .hm-img img { width: 100%; height: 100%; object-fit: contain; }
.hm-thumb b { font-size: 12px; line-height: 1.7; padding: 8px 12px 10px; border-top: 1px solid var(--line); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.hero-nav { position: absolute; left: 0; right: 0; bottom: 30px; display: flex; align-items: center; gap: 20px; }
.hero-tabs { flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 16px; }
.hero-tab { position: relative; text-align: right; background: none; border: 0; color: #8f9bb0; padding: 14px 0 0; cursor: pointer; display: flex; gap: 10px; align-items: baseline; font-size: 13.5px; font-weight: 600; }
.hero-tab::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 2px; background: rgba(255, 255, 255, .14); }
.hero-tab b { color: #c3cbd8; }
.hero-tab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-tab .hero-progress { position: absolute; top: 0; right: 0; height: 2px; width: 0; background: var(--brand); }
.hero-tab.is-active { color: #fff; }
.hero-tab.is-active b { color: var(--brand); }
.hero-tab.is-active .hero-progress { animation: progress var(--dur, 7s) linear forwards; }
.hero.paused .hero-tab.is-active .hero-progress { animation-play-state: paused; }
@keyframes progress { to { width: 100%; } }
.hero-arrows { display: flex; gap: 8px; }
.hero-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; transition: .2s; }
.hero-arrow:hover { background: #fff; color: var(--ink); }

/* ------------------------------------------------------------ features */
.features-band { position: relative; z-index: 2; margin-top: -1px; padding: 28px 0 8px; }
.feature-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 20px 40px -32px rgba(15, 23, 42, .4); }
.feature-item { display: flex; gap: 14px; align-items: center; padding: 22px 20px; position: relative; }
.feature-item + .feature-item::before { content: ""; position: absolute; right: 0; top: 24%; bottom: 24%; width: 1px; background: var(--line); }
.fi-icon { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; color: var(--ink); background: color-mix(in srgb, var(--brand) 16%, #fff); }
.feature-item h3 { font-size: 14.5px; margin: 0 0 2px; }
.feature-item p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.8; }

/* ------------------------------------------------------------ 360° showroom */
.showroom { overflow: hidden; }
.showroom-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; align-items: center; }
.showroom-copy h2 { font-size: clamp(24px, 3vw, 34px); }
.showroom-copy .row { margin-top: 24px; }
.drag-hint { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; font-weight: 600; }
.drag-hint .hand { width: 34px; height: 20px; border-radius: 10px; border: 2px solid #cbd5e1; position: relative; }
.drag-hint .hand::after { content: ""; position: absolute; top: 3px; right: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); animation: hint 2s ease-in-out infinite; }
@keyframes hint { 50% { right: 17px; } }
.ring-stage { position: relative; height: 460px; perspective: 1300px; cursor: grab; user-select: none; touch-action: pan-y; }
.ring-stage.dragging { cursor: grabbing; }
.ring { position: absolute; left: 50%; top: 42%; width: 0; height: 0; transform-style: preserve-3d; }
.ring-card { position: absolute; width: 200px; left: -100px; top: -150px; padding: 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 50px -30px rgba(15, 23, 42, .45); display: flex; flex-direction: column; gap: 6px; backface-visibility: hidden; transition: border-color .3s; -webkit-user-drag: none; }
.ring-card:hover { border-color: #c9d0db; }
.rc-img { aspect-ratio: 1/1; border-radius: 12px; overflow: hidden; background: #fff; display: block; }
.rc-img img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.rc-cat { font-size: 11.5px; color: var(--muted); font-weight: 600; padding: 0 4px; }
.rc-name { font-size: 13px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 44px; padding: 0 4px; }
.rc-price { font-weight: 800; font-size: 13.5px; padding: 0 4px 4px; }
.ring-floor { position: absolute; left: 50%; bottom: 10px; width: 80%; height: 90px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(15, 23, 42, .14), transparent); }

/* ------------------------------------------------------------ categories */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.cat-card { position: relative; display: flex; flex-direction: column; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -26px rgba(15, 23, 42, .4); }
.cat-img { aspect-ratio: 4 / 3; background: #fff; display: grid; place-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.cat-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s; }
.cat-card:hover .cat-img img { transform: scale(1.04); }
.cat-body { padding: 16px 18px; display: flex; flex-direction: column; }
.cat-body b { font-size: 16px; }
.cat-body span { color: var(--muted); font-size: 13px; }
.cat-go { position: absolute; left: 16px; bottom: 20px; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; transition: .2s; }
.cat-card:hover .cat-go { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ------------------------------------------------------------ services */
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.svc { padding: 26px 22px; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); display: flex; flex-direction: column; gap: 10px; transition: border-color .25s, background .25s; }
.svc:hover { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); }
.svc-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; color: var(--brand); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.svc h3 { font-size: 17px; margin: 6px 0 0; }
.svc p { color: #9aa6b8; font-size: 14px; margin: 0; flex: 1; }
.svc .more { color: #fff; font-weight: 700; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }

/* ------------------------------------------------------------ stats */
.stats-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.stat-item { padding: 28px 16px; text-align: center; position: relative; }
.stat-item + .stat-item::before { content: ""; position: absolute; right: 0; top: 25%; bottom: 25%; width: 1px; background: var(--line); }
.stat-item b { display: block; font-size: 32px; font-weight: 900; color: var(--ink); }
.stat-item span { color: var(--muted); font-weight: 600; font-size: 14px; }

/* ------------------------------------------------------------ CTA */
.cta-panel { border-radius: 24px; padding: 44px; background: linear-gradient(135deg, #142037, var(--ink)); color: #fff; display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center; }
.cta-panel .kicker { color: var(--brand); }
.cta-panel h2 { font-size: clamp(22px, 2.8vw, 32px); margin: 4px 0 10px; }
.cta-panel p { color: #c3cbd8; margin: 0 0 18px; max-width: 560px; }
.cta-points { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 8px; color: #e2e8f0; font-size: 14px; }
.cta-points li { display: flex; gap: 8px; align-items: center; }
.cta-points .icon { color: var(--brand); }
.cta-media { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cta-tile { background: #fff; border-radius: 16px; aspect-ratio: 1 / 1; padding: 12px; display: grid; place-items: center; }
.cta-tile:first-child { grid-row: span 2; aspect-ratio: auto; }
.cta-tile img { width: 100%; height: 100%; object-fit: contain; }

/* photos never stretch their frames: the frame keeps its ratio, the photo fits inside */
.cat-img, .hm-img, .rc-img, .cta-tile { position: relative; overflow: hidden; }
.cat-img img, .hm-main .hm-img img, .hm-thumb .hm-img img, .cta-tile img { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); }
.rc-img img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); }
.cta-tile:first-child { min-height: 100%; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-item:nth-child(3)::before { display: none; }
}
@media (max-width: 960px) {
  body.home .site-header .btn-dark { background: #fff; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-slide { padding: calc(var(--header-h) + 28px) 0 120px; }
  .hero-copy { text-align: center; }
  .hero-eyebrow { justify-content: center; }
  .hero-sub { margin-inline: auto; font-size: 15px; }
  .hero-actions { justify-content: center; }
  .hero-media.has-side { grid-template-columns: 1fr 120px; }
  .hero-tab span { display: none; }
  .showroom-grid { grid-template-columns: 1fr; text-align: center; }
  .showroom-copy .row, .drag-hint { justify-content: center; }
  .ring-stage { height: 400px; }
  .cta-panel { grid-template-columns: 1fr; padding: 30px 24px; }
  .cta-media { display: none; }
  .stats-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-item:nth-child(3)::before { display: none; }
}
@media (max-width: 640px) {
  .hero-title { font-size: 28px; }
  .hero-media.has-side { grid-template-columns: 1fr; }
  .hm-side { grid-template-columns: 1fr 1fr; }
  .hm-thumb .hm-img { aspect-ratio: 4 / 3; }
  .hero-arrows { display: none; }
  .feature-rail { grid-template-columns: 1fr; }
  .feature-item + .feature-item::before { top: 0; bottom: auto; left: 20px; right: 20px; width: auto; height: 1px; }
  .feature-item:nth-child(3)::before { display: block; }
  .ring-card { width: 150px; left: -75px; top: -120px; padding: 8px; }
  .ring-stage { height: 340px; }
  .svc-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cat-body { padding: 12px 14px; }
  .cat-body b { font-size: 14px; }
  .cat-go { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero *, .ring { animation: none !important; transition: none !important; }
}
