/* Axoli Tiles home page (original code for this site). Uses the tokens and components in site.css. */

/* ---------- Hero video slider ---------- */

.ax-hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 100svh; color: #fff; background: var(--ax-dark); overflow: hidden; isolation: isolate; }
.ax-hero__slides { position: absolute; inset: 0; z-index: -1; }
.ax-hero__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s var(--ax-ease-in-out); }
.ax-hero__slide.is-active { opacity: 1; }
.ax-hero__slide img, .ax-hero__slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ax-hero__slide video { opacity: 0; transition: opacity 0.8s ease; }
.ax-hero__slide video.is-ready { opacity: 1; }
.ax-hero__slide.is-active img, .ax-hero__slide.is-active video { animation: ax-hero-drift 9s linear both; }
@keyframes ax-hero-drift { from { transform: scale(1.08); } to { transform: scale(1); } }
.ax-hero__shade {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(21, 19, 17, 0.55) 0%, rgba(21, 19, 17, 0) 22%),
        linear-gradient(0deg, rgba(21, 19, 17, 0.88) 0%, rgba(21, 19, 17, 0.35) 45%, rgba(21, 19, 17, 0.1) 70%),
        radial-gradient(ellipse 70% 60% at 15% 85%, rgba(21, 19, 17, 0.55), transparent 70%);
}
.ax-hero__content { position: relative; padding-top: calc(var(--ax-header-h) + 48px); padding-bottom: clamp(28px, 4vw, 44px); }
.ax-hero__eyebrow { color: rgba(255, 255, 255, 0.82); }
.ax-hero__title { max-width: 11ch; margin-bottom: clamp(22px, 3vw, 36px); }
.ax-hero__title .ax-accent { color: var(--ax-accent); }
.ax-hero__row { display: grid; gap: 28px; align-items: end; }
@media (min-width: 900px) { .ax-hero__row { grid-template-columns: minmax(0, 1fr) auto; } }
.ax-hero__captions { position: relative; min-height: 3.6em; }
.ax-hero__caption { position: absolute; inset: 0 auto auto 0; display: grid; gap: 4px; opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.7s var(--ax-ease); pointer-events: none; }
.ax-hero__caption.is-active { position: relative; opacity: 1; transform: none; transition-delay: 0.35s; pointer-events: auto; }
.ax-hero__collection { font-size: 0.875rem; font-weight: 500; color: rgba(255, 255, 255, 0.72); }
.ax-hero__design { font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.45rem); font-weight: 600; letter-spacing: -0.02em; color: #fff; text-decoration: none; }
a.ax-hero__design:hover { text-decoration: underline; }
.ax-hero__controls { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: clamp(22px, 3vw, 34px); }
.ax-hero__tabs { display: flex; flex: 1; gap: 10px; max-width: 760px; }
.ax-hero__tab { flex: 1; min-width: 0; padding: 14px 0 0; border: 0; background: none; color: rgba(255, 255, 255, 0.6); font: inherit; font-size: 0.8125rem; text-align: left; cursor: pointer; transition: color 0.3s ease; }
.ax-hero__tab:hover, .ax-hero__tab[aria-selected="true"] { color: #fff; }
.ax-hero__bar { display: block; height: 2px; margin-bottom: 10px; background: rgba(255, 255, 255, 0.25); border-radius: 2px; overflow: hidden; }
.ax-hero__bar i { display: block; height: 100%; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.ax-hero__tab.is-done .ax-hero__bar i { transform: scaleX(1); }
.ax-hero__tab-label { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ax-hero__tab-label b { font-weight: 600; margin-right: 6px; }
.ax-hero__buttons { display: flex; gap: 8px; }
.ax-hero__pause .is-play { display: none; }
.ax-hero.is-paused .ax-hero__pause .is-play { display: block; }
.ax-hero.is-paused .ax-hero__pause .is-pause { display: none; }
@media (max-width: 699px) {
    .ax-hero__tab-label { display: none; }
    .ax-hero__tab { padding-top: 10px; }
    .ax-hero__controls { padding-bottom: 20px; }
}

/* ---------- Intro statement and numbers ---------- */

.ax-intro__statement { max-width: 22ch; margin-bottom: clamp(36px, 5vw, 64px); }
.ax-intro__statement em { font-style: normal; color: var(--ax-accent); }
.ax-intro__grid { display: grid; gap: 28px; }
@media (min-width: 1024px) { .ax-intro__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 72px; padding-left: 8%; } }
.ax-intro__grid .ax-btns { margin-top: 26px; }
/* ---------- Collections: held and slid sideways on large screens ---------- */

.ax-colls { padding-top: var(--ax-section); }
.ax-colls__track { display: flex; gap: clamp(12px, 1.4vw, 20px); width: max-content; padding-inline: var(--ax-gutter); }
.ax-colls__card { position: relative; flex: none; width: clamp(240px, 26vw, 400px); color: #fff; text-decoration: none; }
.ax-colls__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--ax-r-l); background: var(--ax-paper-2); }
.ax-colls__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ax-ease); }
.ax-colls__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(21, 19, 17, 0.72) 0%, rgba(21, 19, 17, 0) 46%); }
.ax-colls__card:hover img, .ax-colls__card:focus-visible img { transform: scale(1.05); }
.ax-colls__info { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.ax-colls__name { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.ax-colls__count { flex: none; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 0.8rem; font-weight: 600; }
.ax-colls__scroller { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--ax-gutter); scrollbar-width: none; padding-bottom: 6px; }
.ax-colls__scroller::-webkit-scrollbar { display: none; }
.ax-colls__card { scroll-snap-align: start; }
.ax-colls__progress { display: none; }
@media (min-width: 1024px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
    .ax-colls.is-pinned { padding-top: 0; }
    .ax-colls.is-pinned .ax-colls__pin { position: relative; }
    .ax-colls.is-pinned .ax-colls__sticky { position: sticky; top: 0; display: flex; flex-direction: column; justify-content: center; height: 100vh; padding-top: var(--ax-header-h); overflow: hidden; }
    .ax-colls.is-pinned .ax-colls__scroller { overflow: visible; }
    .ax-colls.is-pinned .ax-colls__track { will-change: transform; }
    .ax-colls.is-pinned .ax-head { margin-bottom: clamp(28px, 3.5vw, 52px); }
    .ax-colls.is-pinned .ax-colls__progress { display: block; height: 2px; margin: 28px var(--ax-gutter) 0; background: var(--ax-line); border-radius: 2px; overflow: hidden; }
    .ax-colls.is-pinned .ax-colls__progress i { display: block; height: 100%; background: var(--ax-accent); transform: scaleX(var(--p, 0)); transform-origin: left; }
}

/* ---------- Video mosaic ---------- */

.ax-mosaic { display: grid; gap: clamp(10px, 1.2vw, 16px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .ax-mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(180px, 18vw, 300px); } }
.ax-mosaic__item { position: relative; display: block; overflow: hidden; border-radius: var(--ax-r-m); background: var(--ax-dark-2); color: #fff; text-decoration: none; aspect-ratio: 4 / 5; }
@media (min-width: 900px) {
    .ax-mosaic__item { aspect-ratio: auto; }
    .ax-mosaic__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
    .ax-mosaic__item:nth-child(4) { grid-row: span 2; }
    .ax-mosaic__item:nth-child(6) { grid-column: span 2; }
}
.ax-mosaic__item img, .ax-mosaic__item video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ax-mosaic__item img { object-fit: contain; padding: 10%; background: var(--ax-surface); }
.ax-mosaic__item video { transition: transform 1.1s var(--ax-ease); }
.ax-mosaic__item:hover video { transform: scale(1.04); }
.ax-mosaic__item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(21, 19, 17, 0.7), transparent 45%); pointer-events: none; }
.ax-mosaic__label { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; display: grid; gap: 2px; }
.ax-mosaic__label b { font-size: 1rem; font-weight: 600; letter-spacing: -0.015em; }
.ax-mosaic__label span { font-size: 0.8rem; color: rgba(255, 255, 255, 0.75); }

/* ---------- Sizes drawn to scale ---------- */

.ax-sizes { display: grid; gap: 44px; }
@media (min-width: 1024px) { .ax-sizes { display: flex; align-items: flex-end; gap: 48px; } }
.ax-size { display: block; color: inherit; text-decoration: none; }
@media (min-width: 1024px) { .ax-size { flex: var(--w) 1 0; min-width: 0; } }
.ax-size__draw { display: block; padding: 22px 22px 0 0; margin-bottom: 24px; color: var(--ax-muted); }
.ax-size__shape { position: relative; display: block; width: calc(var(--w) / 600 * 100%); }
@media (min-width: 1024px) { .ax-size__shape { width: 100%; } }
.ax-size__face { position: relative; display: block; aspect-ratio: var(--w) / var(--h); overflow: hidden; border-radius: 6px; background: var(--ax-surface); box-shadow: 0 30px 50px -28px rgba(48, 34, 20, 0.45); transition: transform 0.6s var(--ax-ease); }
.ax-size:hover .ax-size__face { transform: translateY(-6px); }
.ax-size__face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ax-size__face--empty { background: repeating-linear-gradient(45deg, var(--ax-paper-2) 0 10px, var(--ax-paper) 10px 20px); }
.ax-size__w, .ax-size__h { position: absolute; font-size: 11px; line-height: 1; }
.ax-size__w { top: -14px; left: 0; right: 0; border-top: 1px solid currentColor; text-align: center; }
.ax-size__h { top: 0; bottom: 0; right: -14px; border-right: 1px solid currentColor; }
.ax-size__w span { position: relative; top: -7px; padding: 0 6px; background: var(--ax-paper); }
.ax-size__h span { position: absolute; top: 50%; left: 4px; transform: translateY(-50%); writing-mode: vertical-rl; padding: 6px 0; background: var(--ax-paper); }
.ax-size__title { display: flex; align-items: baseline; gap: 10px; font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; }
.ax-size__title span { font-size: 0.875rem; font-weight: 600; color: var(--ax-accent-ink); letter-spacing: 0; }
.ax-size__text { display: block; margin-top: 8px; max-width: 26em; color: var(--ax-muted); font-size: 0.95rem; }
.ax-size__count { display: inline-block; margin-top: 12px; font-size: 0.85rem; font-weight: 600; }

/* ---------- Latest designs: a tile grid (site.css .ax-tiles) ---------- */

/* ---------- Spaces ---------- */

.ax-spaces { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ax-line); }
.ax-space { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; grid-template-areas: "thumb name go" "thumb text go"; align-items: center; gap: 4px 18px; padding: 20px 0; border-bottom: 1px solid var(--ax-line); color: inherit; text-decoration: none; }
.ax-space__index { grid-area: idx; } .ax-space__thumb { grid-area: thumb; } .ax-space__title { grid-area: name; align-self: end; } .ax-space__text { grid-area: text; align-self: start; } .ax-space__go { grid-area: go; }
.ax-space__thumb { width: 76px; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: var(--ax-paper-2); }
.ax-space__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ax-ease); }
.ax-space__name { display: block; font-size: clamp(1.15rem, 0.9rem + 1.2vw, 2rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; transition: color 0.3s ease, transform 0.5s var(--ax-ease); }
.ax-space__text { display: block; margin-top: 4px; font-size: 0.9rem; color: var(--ax-muted); }
.ax-space__go { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--ax-line-strong); transition: background-color 0.3s ease, color 0.3s ease, transform 0.4s var(--ax-ease); }
.ax-space__go svg { width: 14px; height: 14px; }
.ax-space:hover .ax-space__go { background: var(--ax-accent); color: #fff; box-shadow: none; transform: rotate(-45deg); }
.ax-space:hover .ax-space__name { color: var(--ax-accent-ink); }
@media (min-width: 1024px) {
    .ax-space { grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1fr) auto; grid-template-areas: "idx name text go"; gap: 32px; padding: 26px 0; }
    .ax-space__title, .ax-space__text { align-self: center; }
    .ax-space__thumb { position: absolute; left: 50%; top: 50%; z-index: 2; width: 220px; aspect-ratio: 4 / 3; border-radius: var(--ax-r-m); opacity: 0; transform: translate(-50%, -40%) rotate(-3deg) scale(0.9); pointer-events: none; transition: opacity 0.35s ease, transform 0.6s var(--ax-ease); box-shadow: var(--ax-shadow); }
    .ax-space:hover .ax-space__thumb { opacity: 1; transform: translate(-50%, -50%) rotate(-3deg) scale(1); }
    .ax-space__text { margin-top: 0; }
    .ax-space__index { display: block !important; font-size: 0.85rem; font-weight: 600; color: var(--ax-muted); font-variant-numeric: tabular-nums; }
    .ax-space:hover .ax-space__name { transform: translateX(8px); }
}
.ax-space__index { display: none; }

/* ---------- Why Axoli ---------- */

.ax-props { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .ax-props { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ax-props { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ax-prop { display: grid; gap: 14px; align-content: start; padding: 28px; border-radius: var(--ax-r-l); background: var(--ax-surface); transition: transform 0.5s var(--ax-ease), box-shadow 0.5s ease; }
.ax-prop:hover { transform: translateY(-4px); box-shadow: var(--ax-shadow); }
.ax-prop__icon { width: 52px; height: 52px; padding: 10px; border-radius: 14px; background: var(--ax-accent-soft); object-fit: contain; }
.ax-prop h3 { font-size: 1.15rem; letter-spacing: -0.02em; }
.ax-prop p { color: var(--ax-muted); font-size: 0.95rem; }

/* ---------- Dealers and export band ---------- */

.ax-export { position: relative; overflow: hidden; }
.ax-export__art { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ax-export__art video, .ax-export__art img { position: absolute; right: -4%; top: 0; width: min(78%, 1400px); height: auto; opacity: 0.7; mix-blend-mode: screen; -webkit-mask-image: radial-gradient(ellipse 80% 80% at 60% 45%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 80% 80% at 60% 45%, #000 55%, transparent 100%); }
.ax-export__art img { display: none; }
.ax-export__art.is-still img { display: block; }
.ax-export__art.is-still video { display: none; }
.ax-export__art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ax-dark) 18%, rgba(21, 19, 17, 0.4) 60%, rgba(21, 19, 17, 0.2) 100%), linear-gradient(0deg, var(--ax-dark) 5%, transparent 55%); }
@media (max-width: 899px) {
    .ax-export__art video, .ax-export__art img { width: 140%; right: -20%; opacity: 0.4; }
}
.ax-export__head { max-width: 40rem; margin-bottom: clamp(48px, 10vw, 200px); }
.ax-panels { display: grid; gap: 14px; }
@media (min-width: 900px) { .ax-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
.ax-panel { display: flex; flex-direction: column; gap: 16px; padding: clamp(26px, 3vw, 40px); border-radius: var(--ax-r-l); background: rgba(243, 238, 231, 0.06); box-shadow: inset 0 0 0 1px rgba(243, 238, 231, 0.12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ax-panel h3 { font-size: 1.5rem; }
.ax-panel p { color: var(--ax-on-dark-muted); }
.ax-panel .ax-btns { margin-top: auto; padding-top: 10px; }
.ax-markets { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ax-markets li { padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(243, 238, 231, 0.25); font-size: 0.85rem; }

/* ---------- FAQ ---------- */

/* FAQ: site.css (.ax-faq), shared with the product pages */
