/*
Theme Name:   Kronox Studio
Theme URI:    https://kronoxstudio.com
Author:       Kronox Studio
Description:  A luxury horology theme for WooCommerce. Cinematic heroes, scroll-snap product rails, a full-width mega navigation and a deliberately restrained product card carrying three data points rather than ten. Elementor-compatible but not Elementor-dependent.
Version:      1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  kronox
Tags:         e-commerce, custom-menu, custom-logo, featured-images, translation-ready, block-patterns
*/

/* ==========================================================================
   1. TOKENS
   One source for the whole theme. The Customizer writes over --ks-accent
   only; everything else is structural and should be edited here.
   ========================================================================== */

:root {
  --ks-ink: #000;
  --ks-paper: #fff;
  --ks-mist: #f9f9f9;
  --ks-ash: #6b6b6b;
  --ks-graphite: #4d4d4d;
  --ks-hairline: #e4e4e4;
  --ks-hairline-dark: #2a2a2a;
  --ks-accent: #a8894f;

  --ks-font-display: 'Jost', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --ks-font-body: 'Mulish', ui-sans-serif, system-ui, -apple-system, sans-serif;

  --ks-hero: 2rem;
  --ks-hero-lg: 3rem;
  --ks-h3: 1.125rem;
  --ks-p: 0.875rem;
  --ks-p-md: 0.75rem;
  --ks-p-sm: 0.6875rem;
  --ks-p-xs: 0.625rem;

  --ks-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ks-fast: 240ms;
  --ks-base: 420ms;
  --ks-slow: 900ms;

  --ks-banner-h: 36px;
  --ks-header-h: 64px;
  --ks-gutter: 16px;
  --ks-rail-gap: 8px;

  --ks-z-drawer: 90;
  --ks-z-header: 100;
  --ks-z-modal: 120;
}

@media (min-width: 1025px) {
  :root {
    --ks-header-h: 72px;
    --ks-gutter: 60px;
    --ks-rail-gap: 10px;
  }
}

/* ==========================================================================
   2. BASE
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ks-paper);
  color: var(--ks-ink);
  font-family: var(--ks-font-body);
  font-size: var(--ks-p);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Locks the page behind the drawer and the announcement modal. */
body.ks-locked { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--ks-font-display);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

::selection { background: var(--ks-ink); color: var(--ks-paper); }

:focus-visible {
  outline: 2px solid var(--ks-accent);
  outline-offset: 2px;
}

/* Removes the ring for pointer users without removing it for keyboard users. */
:focus:not(:focus-visible) { outline: none; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ks-skip {
  position: absolute;
  top: -100px; left: 12px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--ks-ink);
  color: var(--ks-paper);
  font-family: var(--ks-font-display);
  font-size: var(--ks-p-md);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: top var(--ks-fast) var(--ks-ease);
}
.ks-skip:focus { top: 12px; }

.ks-shell { width: 100%; max-width: 1920px; margin-inline: auto; }
.ks-gutter { padding-inline: var(--ks-gutter); }

/* ==========================================================================
   3. TYPOGRAPHY
   Named by role so a rescale is a single edit.
   ========================================================================== */

.ks-hero-title {
  font-size: var(--ks-hero);
  line-height: 1;
  letter-spacing: 0.01em;
}
@media (min-width: 1025px) { .ks-hero-title { font-size: var(--ks-hero-lg); } }

.ks-section-title {
  font-size: 1rem;
  letter-spacing: 0.06em;
}
@media (min-width: 1025px) { .ks-section-title { font-size: var(--ks-h3); } }

.ks-eyebrow {
  font-family: var(--ks-font-display);
  font-size: var(--ks-p-md);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ks-eyebrow strong { font-weight: 800; }

.ks-body { font-size: var(--ks-p); line-height: 1.55; }
.ks-meta { font-size: var(--ks-p-md); line-height: 1.4; }

/* ==========================================================================
   4. BUTTONS & LINK CTAS
   ========================================================================== */

.ks-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 13px 28px;
  font-family: var(--ks-font-display);
  font-size: var(--ks-p-md);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background-color var(--ks-fast) var(--ks-ease),
              color var(--ks-fast) var(--ks-ease),
              border-color var(--ks-fast) var(--ks-ease);
}

.ks-btn--light { background: var(--ks-paper); color: var(--ks-ink); border-color: var(--ks-paper); }
.ks-btn--light:hover { background: transparent; color: var(--ks-paper); }

.ks-btn--dark { background: var(--ks-ink); color: var(--ks-paper); border-color: var(--ks-ink); }
.ks-btn--dark:hover { background: transparent; color: var(--ks-ink); }

.ks-btn--outline { background: transparent; color: var(--ks-ink); border-color: var(--ks-ink); }
.ks-btn--outline:hover { background: var(--ks-ink); color: var(--ks-paper); }

/* The rule retracts from the right on hover — restraint rather than a
   colour change. Luxury leans on this far more than on filled buttons. */
.ks-link {
  position: relative;
  display: inline-block;
  padding-bottom: 3px;
  font-family: var(--ks-font-display);
  font-size: var(--ks-p-md);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.2;
}
.ks-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform-origin: right;
  transition: transform var(--ks-base) var(--ks-ease);
}
.ks-link:hover::after { transform: scaleX(0); }

.ks-link--light { color: var(--ks-paper); }
.ks-link--dark { color: var(--ks-ink); }

/* ==========================================================================
   5. ANNOUNCEMENT BAR
   ========================================================================== */

.ks-announce {
  position: relative;
  z-index: calc(var(--ks-z-header) + 1);
  min-height: var(--ks-banner-h);
  display: flex;
  align-items: center;
  background: var(--ks-mist);
  color: var(--ks-ink);
  font-size: var(--ks-p-md);
}

.ks-announce__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.ks-announce__utility {
  display: none;
  gap: 20px;
  font-size: var(--ks-p-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (min-width: 1025px) {
  .ks-announce__utility { display: flex; }
  .ks-announce__inner { justify-content: space-between; }
}

.ks-announce__utility a:hover { color: var(--ks-accent); }

.ks-announce__more {
  font-family: var(--ks-font-display);
  font-size: var(--ks-p-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   6. HEADER
   Transparent over a hero, inverting to solid past the scroll threshold.
   ========================================================================== */

.ks-header {
  position: sticky;
  top: 0;
  z-index: var(--ks-z-header);
  background: var(--ks-paper);
  transition: background-color var(--ks-fast) var(--ks-ease),
              box-shadow var(--ks-fast) var(--ks-ease);
}

.ks-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--ks-header-h);
}

.ks-header__logo {
  flex: 0 0 auto;
  font-family: var(--ks-font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}
@media (min-width: 1025px) {
  .ks-header__logo { font-size: 1.125rem; letter-spacing: 0.28em; }
}
.ks-header__logo img { max-height: 22px; width: auto; }

.ks-header__nav { display: none; flex: 1 1 auto; }
@media (min-width: 1025px) { .ks-header__nav { display: block; } }

.ks-header__tools {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
@media (min-width: 1025px) { .ks-header__tools { gap: 20px; } }

.ks-header__tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  position: relative;
}
.ks-header__tool svg { width: 18px; height: 18px; }

.ks-burger { display: inline-flex; }
@media (min-width: 1025px) { .ks-burger { display: none; } }

/* Cart count */
.ks-cart-count {
  position: absolute;
  top: 2px; right: 0;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  background: var(--ks-ink);
  color: var(--ks-paper);
  border-radius: 999px;
  font-family: var(--ks-font-body);
  font-size: 10px;
  line-height: 1;
}

/* --- Transparent state ------------------------------------------------- */

.ks-header--overlay {
  position: fixed;
  left: 0; right: 0;
  top: var(--ks-banner-h);
  background: transparent;
}

.ks-header--overlay:not(.is-solid) { color: var(--ks-paper); }
.ks-header--overlay:not(.is-solid) .ks-cart-count {
  background: var(--ks-paper);
  color: var(--ks-ink);
}

.ks-header--overlay.is-solid {
  background: var(--ks-paper);
  color: var(--ks-ink);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

/* The announcement bar scrolls away; the header then pins to the top. */
.ks-header--overlay.is-pinned { top: 0; }

/* ==========================================================================
   7. DESKTOP MEGA NAVIGATION
   ========================================================================== */

.ks-nav > ul {
  display: flex;
  align-items: center;
  gap: 26px;
}

.ks-nav__top > a,
.ks-nav__top > button {
  display: inline-flex;
  align-items: center;
  min-height: var(--ks-header-h);
  font-family: var(--ks-font-display);
  font-size: var(--ks-p-md);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Hairline that draws in under the active top-level item. */
.ks-nav__top > a::after,
.ks-nav__top > button::after {
  content: '';
  position: absolute;
  left: 0; bottom: 18px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ks-base) var(--ks-ease);
}
.ks-nav__top { position: relative; }
.ks-nav__top:hover > a::after,
.ks-nav__top:focus-within > a::after,
.ks-nav__top.is-open > a::after { transform: scaleX(1); }

/* The panel. Full-bleed, anchored under the header, opened on hover or
   keyboard focus. `visibility` rather than `display` so it can transition
   and so its links stay out of the tab order while closed. */
.ks-mega {
  position: absolute;
  left: 50%;
  top: 100%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--ks-paper);
  color: var(--ks-ink);
  border-top: 1px solid var(--ks-hairline);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--ks-fast) var(--ks-ease),
              visibility 0s linear var(--ks-fast);
}

.ks-nav__top:hover > .ks-mega,
.ks-nav__top:focus-within > .ks-mega,
.ks-nav__top.is-open > .ks-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.ks-mega__inner {
  display: flex;
  gap: 48px;
  max-width: 1920px;
  margin-inline: auto;
  padding: 40px var(--ks-gutter) 44px;
}

.ks-mega__cols {
  display: flex;
  gap: 56px;
  flex: 1 1 auto;
}

.ks-mega__col-title {
  font-family: var(--ks-font-display);
  font-size: var(--ks-p-md);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* The heading is scoped away from the link colour below, otherwise
   `.ks-mega__col a` would out-specify it whenever it renders as a link. */
a.ks-mega__col-title { color: var(--ks-ink); display: block; }
a.ks-mega__col-title:hover { color: var(--ks-accent); }

.ks-mega__col-links li + li { margin-top: 9px; }

.ks-mega__col-links a {
  font-size: var(--ks-p);
  color: var(--ks-graphite);
  transition: color var(--ks-fast) var(--ks-ease);
}
.ks-mega__col-links a:hover { color: var(--ks-ink); }

.ks-mega__promos {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.ks-mega__promo {
  position: relative;
  width: 232px;
  overflow: hidden;
}
.ks-mega__promo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.ks-mega__promo-label {
  position: absolute;
  left: 0; right: 0; bottom: 14px;
  text-align: center;
  color: var(--ks-paper);
  font-family: var(--ks-font-display);
  font-size: var(--ks-p-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ==========================================================================
   8. MOBILE DRAWER
   Two-level drill-down: the level-2 panel slides across rather than
   expanding in place, which keeps the list short on small screens.
   ========================================================================== */

.ks-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: var(--ks-z-drawer);
  width: min(100%, 420px);
  background: var(--ks-paper);
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform var(--ks-base) var(--ks-ease),
              visibility 0s linear var(--ks-base);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ks-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  transition-delay: 0s;
}

.ks-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--ks-header-h);
  padding-inline: 16px;
  border-bottom: 1px solid var(--ks-hairline);
  flex: 0 0 auto;
}

.ks-drawer__title {
  font-family: var(--ks-font-display);
  font-size: var(--ks-p-md);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ks-drawer__back {
  display: none;
  align-items: center;
  gap: 8px;
  font-family: var(--ks-font-display);
  font-size: var(--ks-p-md);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ks-drawer.is-level-2 .ks-drawer__back { display: inline-flex; }

.ks-drawer__viewport {
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
}

.ks-drawer__panel {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0 40px;
  transition: transform var(--ks-base) var(--ks-ease);
}

/* Every sub-panel is rendered up front and parked off-canvas; only the one
   matching the tapped parent gets `is-active`. Cheaper than rebuilding the
   panel on each tap, and it keeps the slide transition uninterrupted. */
.ks-drawer__panel--sub {
  transform: translateX(100%);
  visibility: hidden;
}

.ks-drawer.is-level-2 .ks-drawer__panel--root { transform: translateX(-30%); }
.ks-drawer.is-level-2 .ks-drawer__panel--sub.is-active {
  transform: translateX(0);
  visibility: visible;
}

.ks-drawer__item > a,
.ks-drawer__item > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 16px;
  font-family: var(--ks-font-display);
  font-size: var(--ks-p-md);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
}

.ks-drawer__item svg { width: 7px; height: 12px; opacity: 0.5; }

.ks-drawer__group + .ks-drawer__group { margin-top: 22px; }

.ks-drawer__group-title {
  padding: 0 16px 8px;
  font-family: var(--ks-font-display);
  font-size: var(--ks-p-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ks-ash);
}

.ks-drawer__group a {
  display: block;
  padding: 11px 16px;
  font-size: var(--ks-p);
  color: var(--ks-graphite);
}

.ks-drawer__foot {
  flex: 0 0 auto;
  border-top: 1px solid var(--ks-hairline);
  padding: 14px 16px 20px;
  font-size: var(--ks-p-md);
}
.ks-drawer__foot a { display: block; padding: 7px 0; color: var(--ks-graphite); }
.ks-drawer__foot ul { display: block; }

.ks-scrim-overlay {
  position: fixed;
  inset: 0;
  z-index: calc(var(--ks-z-drawer) - 1);
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--ks-base) var(--ks-ease),
              visibility 0s linear var(--ks-base);
}
.ks-scrim-overlay.is-active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

/* ==========================================================================
   9. HERO
   ========================================================================== */

.ks-hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  overflow: hidden;
  color: var(--ks-paper);
  background: #14171c;
}

.ks-hero--short { min-height: 78svh; }

.ks-hero__media {
  position: absolute;
  inset: 0;
}
.ks-hero__media img,
.ks-hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Two stops rather than a flat wash, so the image keeps contrast up top. */
.ks-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.28) 34%, rgba(0,0,0,0) 62%);
}
@media (min-width: 1025px) {
  .ks-hero__scrim {
    background: linear-gradient(to right,
      rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.25) 42%, rgba(0,0,0,0) 68%);
  }
}

.ks-hero__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  width: 100%;
  padding: 0 var(--ks-gutter) 48px;
  text-align: center;
}

@media (min-width: 1025px) {
  .ks-hero__body {
    align-items: flex-start;
    text-align: left;
    padding-bottom: 60px;
  }
  .ks-hero--center .ks-hero__body { justify-content: center; padding-bottom: 0; }
}

.ks-hero__copy { max-width: 34ch; }
.ks-hero__copy--hide-mobile { display: none; }
@media (min-width: 1025px) { .ks-hero__copy--hide-mobile { display: block; } }

/* The desktop CTA is a filled button; on mobile it drops to a text link so
   two stacked buttons never crowd the bottom of a phone screen. */
.ks-hero__cta-desktop { display: none; }
@media (min-width: 1025px) {
  .ks-hero__cta-desktop { display: inline-flex; }
  .ks-hero__cta-mobile { display: none; }
}

/* Slow drift so a poster-only hero still reads as cinematic. */
@keyframes ksKenburns {
  from { transform: scale(1.04); }
  to   { transform: scale(1.12); }
}
.ks-kenburns { animation: ksKenburns 18s var(--ks-ease) infinite alternate; }

/* ==========================================================================
   10. SECTION HEAD
   ========================================================================== */

.ks-sechead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 30px var(--ks-gutter) 20px;
  text-align: center;
}
@media (min-width: 1025px) {
  .ks-sechead {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    text-align: left;
    padding-top: 40px;
  }
}

/* ==========================================================================
   11. RAILS
   CSS scroll-snap rather than a carousel library — native momentum, no
   dependency, and it still works if JavaScript never arrives. The arrows are
   progressive enhancement layered on top.
   ========================================================================== */

.ks-rail { position: relative; }

.ks-rail__track {
  display: grid;
  grid-auto-flow: column;
  gap: var(--ks-rail-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 10px;
  padding: 0 10px 10px;
  /* A partial slide at the right edge is the only cue that the rail
     scrolls. Round counts read as a static grid and lose the drag. */
  grid-auto-columns: calc((100% - var(--ks-rail-gap)) / 1.35);
  scrollbar-width: none;
}
.ks-rail__track::-webkit-scrollbar { display: none; }

@media (min-width: 768px) {
  .ks-rail__track { grid-auto-columns: calc((100% - 2 * var(--ks-rail-gap)) / 2.5); }
}
@media (min-width: 1025px) {
  .ks-rail__track { grid-auto-columns: calc((100% - 4 * var(--ks-rail-gap)) / 5); }
}

.ks-rail__item { scroll-snap-align: start; }

/* Grid variant — the category strip, which shouldn't scroll on desktop. */
.ks-grid {
  display: grid;
  gap: var(--ks-rail-gap);
  grid-template-columns: repeat(2, 1fr);
  padding: 0 10px 10px;
}
@media (min-width: 1025px) {
  .ks-grid { grid-template-columns: repeat(5, 1fr); }
  .ks-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .ks-grid__mobile-only { display: none; }
}

.ks-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-top: -22px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ks-ink);
  border-radius: 50%;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.14);
  transition: opacity var(--ks-fast) var(--ks-ease),
              transform var(--ks-fast) var(--ks-ease);
}
@media (min-width: 768px) { .ks-arrow { display: flex; } }
.ks-arrow:hover { transform: scale(1.06); }
.ks-arrow[disabled] { opacity: 0; pointer-events: none; }
.ks-arrow--prev { left: 16px; }
.ks-arrow--next { right: 16px; }
.ks-arrow svg { width: 9px; height: 15px; }

/* ==========================================================================
   12. PRODUCT CARD
   Three data points on the face — name, case size, material — plus price.
   A marketplace card carries six to ten; mixing the two conventions is what
   makes a premium grid look generic.
   ========================================================================== */

.ks-card { display: block; }

.ks-card__media {
  position: relative;
  overflow: hidden;
  background: var(--ks-mist);
  aspect-ratio: 4 / 5;
}

.ks-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity var(--ks-slow) var(--ks-ease),
              transform var(--ks-slow) var(--ks-ease);
}

.ks-card__alt {
  position: absolute;
  inset: 0;
  opacity: 0;
}

@media (hover: hover) {
  .ks-card:hover .ks-card__primary { opacity: 0; }
  .ks-card:hover .ks-card__alt { opacity: 1; }
  .ks-card:hover .ks-card__media img { transform: scale(1.03); }
}

.ks-card__badge {
  position: absolute;
  left: 12px; top: 12px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ks-ink);
  font-family: var(--ks-font-display);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ks-card__variants {
  position: absolute;
  left: 12px; bottom: 12px;
  font-size: var(--ks-p-md);
  color: var(--ks-ash);
}

.ks-card__body { padding: 12px 12px 0; }

.ks-card__name {
  font-family: var(--ks-font-body);
  font-size: var(--ks-p-md);
  font-weight: 400;
  line-height: 1.4;
  text-transform: none;
}

.ks-card__size { color: var(--ks-ash); margin-left: 6px; }

.ks-card__price {
  margin-top: 3px;
  font-size: var(--ks-p-md);
}

.ks-card__material {
  margin-top: 2px;
  font-size: var(--ks-p-sm);
  color: var(--ks-ash);
}

.ks-price-on-request { color: var(--ks-ash); }

/* Cards sitting on a dark band invert. */
.ks-band--dark .ks-card__name,
.ks-band--dark .ks-card__price { color: var(--ks-paper); }
.ks-band--dark .ks-card__material,
.ks-band--dark .ks-card__size,
.ks-band--dark .ks-card__variants { color: rgba(255, 255, 255, 0.65); }

/* ==========================================================================
   13. TILES — category, story
   ========================================================================== */

.ks-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  min-height: 0;
  padding: 0 12px 26px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  color: var(--ks-paper);
  background: #23262b;
  text-align: center;
}

.ks-tile__media { position: absolute; inset: 0; }
.ks-tile__media img { width: 100%; height: 100%; object-fit: cover; }

.ks-tile__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(0,0,0,0.66) 0%, rgba(0,0,0,0.2) 44%, rgba(0,0,0,0) 72%);
}

.ks-tile > .ks-link,
.ks-tile > .ks-tile__title { position: relative; z-index: 2; }

.ks-tile__title {
  font-size: 1rem;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

@media (hover: hover) {
  .ks-tile__media img { transition: transform var(--ks-slow) var(--ks-ease); }
  .ks-tile:hover .ks-tile__media img { transform: scale(1.05); }
}

.ks-tile--story { aspect-ratio: 3 / 4; }

/* ==========================================================================
   14. EDITORIAL BREAK
   ========================================================================== */

.ks-editorial {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 82svh;
  overflow: hidden;
  color: var(--ks-paper);
  background: #0d0f13;
}
@media (min-width: 1025px) { .ks-editorial { align-items: center; } }

.ks-editorial__media { position: absolute; inset: 0; }
.ks-editorial__media img { width: 100%; height: 100%; object-fit: cover; }

.ks-editorial__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 0 var(--ks-gutter) 48px;
  text-align: center;
}
@media (min-width: 1025px) {
  .ks-editorial__body {
    align-items: flex-start;
    text-align: left;
    padding-bottom: 0;
    max-width: 620px;
  }
}

/* ==========================================================================
   15. SERVICES
   ========================================================================== */

.ks-services { background: var(--ks-mist); padding: 60px 0; }

.ks-services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 20px;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--ks-gutter);
}
@media (min-width: 1025px) {
  .ks-services__grid { grid-template-columns: repeat(5, 1fr); }
}

.ks-service {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.ks-service svg { width: 34px; height: 34px; color: var(--ks-graphite); }
.ks-service span { font-size: var(--ks-p-sm); line-height: 1.5; max-width: 20ch; }
.ks-service:hover svg { color: var(--ks-accent); }

/* ==========================================================================
   16. NEWSLETTER
   ========================================================================== */

.ks-signup { padding: 80px var(--ks-gutter); text-align: center; }

.ks-signup__inner { max-width: 620px; margin-inline: auto; }

.ks-signup__title { font-size: 1.25rem; letter-spacing: 0.08em; }
@media (min-width: 1025px) { .ks-signup__title { font-size: 1.5rem; } }

.ks-signup__form {
  display: flex;
  gap: 8px;
  margin: 26px 0 16px;
  flex-direction: column;
}
@media (min-width: 768px) { .ks-signup__form { flex-direction: row; } }

.ks-signup__form input[type='email'] {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 12px 16px;
  border: 1px solid var(--ks-hairline);
  background: var(--ks-paper);
  font: inherit;
  font-size: var(--ks-p);
}
.ks-signup__form input[type='email']:focus { border-color: var(--ks-ink); }

.ks-signup__legal { font-size: var(--ks-p-xs); color: var(--ks-ash); line-height: 1.6; }
.ks-signup__legal a { text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   17. FOOTER
   ========================================================================== */

.ks-footer {
  border-top: 1px solid var(--ks-hairline);
  padding: 48px 0 32px;
}

.ks-footer__cols {
  display: grid;
  gap: 0;
  padding-inline: var(--ks-gutter);
}
@media (min-width: 1025px) {
  .ks-footer__cols {
    grid-template-columns: repeat(4, 1fr) 1.2fr;
    gap: 32px;
  }
}

.ks-footer__title {
  font-size: var(--ks-p-md);
  letter-spacing: 0.1em;
}

/* Accordion below 1025, plain list above. One markup, two behaviours —
   `details` gives the mobile behaviour for free with no JavaScript. */
.ks-footer__col {
  border-bottom: 1px solid var(--ks-hairline);
}
.ks-footer__col > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
}
.ks-footer__col > summary::-webkit-details-marker { display: none; }
.ks-footer__col > summary::after {
  content: '';
  width: 8px; height: 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--ks-fast) var(--ks-ease);
}
.ks-footer__col[open] > summary::after { transform: rotate(-135deg); }

.ks-footer__links { padding-bottom: 18px; }
.ks-footer__links li + li { margin-top: 9px; }
.ks-footer__links a {
  font-size: var(--ks-p);
  color: var(--ks-graphite);
  transition: color var(--ks-fast) var(--ks-ease);
}
.ks-footer__links a:hover { color: var(--ks-ink); }

@media (min-width: 1025px) {
  .ks-footer__col { border-bottom: 0; }
  .ks-footer__col > summary { padding: 0 0 18px; cursor: default; pointer-events: none; }
  .ks-footer__col > summary::after { display: none; }
  .ks-footer__links { padding-bottom: 0; }
}

.ks-footer__social {
  display: flex;
  gap: 16px;
  padding: 22px var(--ks-gutter) 0;
}
.ks-footer__social svg { width: 18px; height: 18px; }
.ks-footer__social a:hover { color: var(--ks-accent); }

.ks-footer__base {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  padding: 34px var(--ks-gutter) 0;
  margin-top: 26px;
  border-top: 1px solid var(--ks-hairline);
  text-align: center;
}
@media (min-width: 1025px) {
  .ks-footer__base { flex-direction: row; justify-content: space-between; text-align: left; }
}

.ks-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  font-size: var(--ks-p-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ks-footer__legal a { color: var(--ks-ash); }
.ks-footer__legal a:hover { color: var(--ks-ink); }

.ks-footer__wordmark {
  font-family: var(--ks-font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* ==========================================================================
   18. MODAL — announcement detail
   ========================================================================== */

.ks-modal {
  position: fixed;
  inset: 0;
  z-index: var(--ks-z-modal);
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--ks-fast) var(--ks-ease),
              visibility 0s linear var(--ks-fast);
}
.ks-modal.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }

.ks-modal__panel {
  position: relative;
  width: min(100%, 520px);
  max-height: 85vh;
  overflow-y: auto;
  padding: 44px 32px 36px;
  background: var(--ks-paper);
}

.ks-modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
}
.ks-modal__close svg { width: 14px; height: 14px; }

.ks-modal__title { font-size: 1.125rem; letter-spacing: 0.06em; margin-bottom: 18px; }
.ks-modal__body p + p { margin-top: 12px; }

/* ==========================================================================
   19. WOOCOMMERCE
   Discount theatre is stripped in inc/woocommerce.php; these are the visual
   corrections that remain.
   ========================================================================== */

.woocommerce span.onsale,
.woocommerce ul.products li.product .star-rating,
.woocommerce .woocommerce-product-rating { display: none !important; }

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 10px;
  margin: 0;
}
@media (min-width: 1025px) {
  .woocommerce ul.products { grid-template-columns: repeat(4, 1fr); }
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }

.woocommerce ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  text-align: left;
}

.ks-woo-wrap { padding: 40px var(--ks-gutter) 80px; }

.ks-woo-head { margin-bottom: 28px; }
.ks-woo-head h1 { font-size: 1.5rem; letter-spacing: 0.06em; }

/* ==========================================================================
   20. MOTION
   `js` is stamped on <html> before paint, so no-JS renders at full opacity
   rather than blank. A failsafe in kronox.js strips it if reveals never wire.
   ========================================================================== */

.js [data-ks-anim] { opacity: 0; will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-ks-anim] { opacity: 1 !important; transform: none !important; }
  .ks-kenburns { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   21. WORDPRESS CORE CLASSES
   Required for theme-check and for the block editor's own output.
   ========================================================================== */

.alignleft { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide { max-width: 1100px; margin-inline: auto; }
.alignfull { max-width: none; }

.wp-caption { max-width: 100%; }
.wp-caption-text,
.gallery-caption { font-size: var(--ks-p-sm); color: var(--ks-ash); padding-top: 6px; }

.sticky { display: block; }
.bypostauthor { display: block; }

.ks-entry { max-width: 720px; margin-inline: auto; padding: 60px var(--ks-gutter) 80px; }
.ks-entry h1 { font-size: 1.75rem; margin-bottom: 18px; }
.ks-entry h2 { font-size: 1.25rem; margin: 32px 0 12px; }
.ks-entry p + p { margin-top: 16px; }
.ks-entry a { text-decoration: underline; text-underline-offset: 2px; }
