/* Oracle Tarot — Verdant 2026 (fluid, green, performance-first) */

:root {
  --bg-0: #03140f;
  --bg-1: #062019;
  --bg-2: #0b2e24;
  --bg-3: #113c30;
  --surface: rgba(10, 40, 32, 0.72);
  --surface-solid: #0c2a22;
  --line: rgba(120, 220, 170, 0.16);
  --line-strong: rgba(140, 235, 185, 0.35);
  --mint: #7dffb2;
  --jade: #3ecf8e;
  --forest: #1a7a56;
  --moss: #9ad4b5;
  --text: #e8f6ee;
  --muted: #8fb5a3;
  --danger: #e07a6a;
  --glow: 0 0 40px rgba(62, 207, 142, 0.28);
  --glow-soft: 0 0 80px rgba(26, 122, 86, 0.35);
  --radius: clamp(10px, 1.5vw, 16px);
  --radius-sm: 8px;
  --font-display: "Syne", "Segoe UI", sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --space: clamp(1rem, 3vw, 2rem);
  --container: min(1120px, calc(100% - clamp(1.5rem, 5vw, 3.5rem)));
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t: 0.28s var(--ease);
  /* legacy aliases */
  --gold: var(--jade);
  --gold-light: var(--mint);
  --bg-deep: var(--bg-0);
  --bg-card: var(--bg-2);
  --text-primary: var(--text);
  --text-muted: var(--muted);
  --border-gold: var(--line-strong);
  --border-subtle: var(--line);
  --font-serif: var(--font-display);
  --font-sans: var(--font-body);
  --transition: var(--t);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(62, 207, 142, 0.16), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 80%, rgba(26, 122, 86, 0.18), transparent 50%),
    radial-gradient(ellipse 50% 40% at 0% 60%, rgba(10, 60, 45, 0.4), transparent 45%),
    linear-gradient(180deg, var(--bg-0), #02110c 100%);
  background-attachment: fixed;
  min-height: 100dvh;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  body { background-attachment: scroll; }
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t), opacity var(--t);
}

a:hover { color: var(--mint); }

ul { list-style: none; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

.page-wrapper {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.page-wrapper > main { flex: 1; }

.container {
  width: var(--container);
  margin-inline: auto;
}

/* ─── Type ─── */

.section-kicker {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--jade);
  margin-bottom: 0.65rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.section-title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 2px;
  margin: 0.85rem auto 0;
  background: linear-gradient(90deg, transparent, var(--jade), transparent);
}

.section-lead {
  text-align: center;
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto clamp(1.5rem, 4vw, 2.5rem);
  font-size: clamp(0.92rem, 0.85rem + 0.3vw, 1.05rem);
}

.heading-serif {
  font-family: var(--font-display);
  font-weight: 650;
  color: var(--mint);
}

/* ─── Buttons ─── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform var(--t), box-shadow var(--t), background var(--t), border-color var(--t), color var(--t);
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn--gold,
.btn--glow,
.btn--enroll {
  background: linear-gradient(135deg, var(--jade), #2aa875);
  color: #03140f;
  box-shadow: 0 8px 28px rgba(62, 207, 142, 0.28);
}

.btn--gold:hover,
.btn--glow:hover,
.btn--enroll:hover {
  color: #03140f;
  background: linear-gradient(135deg, var(--mint), var(--jade));
  box-shadow: 0 10px 32px rgba(125, 255, 178, 0.35);
  transform: translateY(-1px);
}

.btn--outline,
.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn--outline:hover,
.btn--ghost:hover {
  border-color: var(--mint);
  color: var(--mint);
  background: rgba(62, 207, 142, 0.08);
}

.btn--sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.75rem;
}

/* ─── Header ─── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  background: rgba(3, 20, 15, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background var(--t), border-color var(--t);
}

.page-orbit .site-header--orbit {
  position: fixed;
  inset-inline: 0;
  background: transparent;
  backdrop-filter: none;
}

.page-orbit .site-header--orbit.is-solid,
.site-header.is-solid {
  background: rgba(3, 20, 15, 0.88);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: var(--container);
  margin-inline: auto;
}

.site-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--mint);
  white-space: nowrap;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.site-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 0.35rem 0;
  position: relative;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
}

.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--jade);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(10, 40, 32, 0.6);
  cursor: pointer;
  place-items: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--mint);
  margin: 3.5px 0;
  transition: transform var(--t), opacity var(--t);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--jade);
  background: rgba(62, 207, 142, 0.06);
  transition: background var(--t), border-color var(--t);
}

.icon-btn:hover {
  border-color: var(--mint);
  background: rgba(62, 207, 142, 0.14);
}

@media (max-width: 860px) {
  .nav-toggle { display: grid; }

  .site-header nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(3, 20, 15, 0.96);
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--space) 1.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--t), opacity var(--t);
  }

  .site-header.is-open nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .site-nav a {
    font-size: 1rem;
    padding: 0.55rem 0;
    width: 100%;
  }

  .site-header__actions .btn--enroll { display: none; }
}

/* ─── Hero / Spread (green glow) ─── */

.orbit-hero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(62, 207, 142, 0.18), transparent 45%),
    radial-gradient(ellipse at 50% 100%, #0a2a20 0%, var(--bg-0) 60%);
}

.spread {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--header-h) + 1.25rem) clamp(1rem, 4vw, 2rem) 1.25rem;
  isolation: isolate;
}

.spread__fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.spread__stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(125, 255, 178, 0.7), transparent),
    radial-gradient(1px 1px at 28% 62%, rgba(62, 207, 142, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 74% 14%, rgba(125, 255, 178, 0.55), transparent),
    radial-gradient(1px 1px at 86% 44%, rgba(62, 207, 142, 0.35), transparent),
    radial-gradient(1.2px 1.2px at 48% 8%, rgba(157, 255, 200, 0.5), transparent);
  opacity: 0.85;
}

.spread__beam {
  position: absolute;
  left: 50%;
  top: 16%;
  width: min(520px, 80vw);
  height: 55vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 40%, rgba(62, 207, 142, 0.22), transparent 58%);
  filter: blur(10px);
}

.spread__embers {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.7;
}

.spread__embers::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 22% 80%, #7dffb2, transparent),
    radial-gradient(1.5px 1.5px at 40% 72%, #3ecf8e, transparent),
    radial-gradient(2px 2px at 58% 86%, #9ad4b5, transparent),
    radial-gradient(1px 1px at 75% 70%, #7dffb2, transparent);
  animation: emberRise 11s linear infinite;
}

@keyframes emberRise {
  0% { transform: translateY(12vh); opacity: 0; }
  20% { opacity: 0.85; }
  100% { transform: translateY(-50vh); opacity: 0; }
}

.spread__copy {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 40rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.spread__copy.is-switching {
  opacity: 0;
  transform: translateY(6px);
}

.spread__brand {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 0.9rem + 1.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 0.7rem;
  text-shadow: 0 0 28px rgba(62, 207, 142, 0.45);
}

.spread__eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 0.45rem;
}

.spread__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.1rem + 3.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 0.65rem;
}

.spread__text {
  color: var(--muted);
  max-width: 26rem;
  margin: 0 auto 1.15rem;
  font-size: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
}

.spread__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.spread__table {
  position: absolute;
  left: 50%;
  bottom: -2%;
  width: min(1200px, 145vw);
  height: min(42vh, 360px);
  transform: translateX(-50%) perspective(900px) rotateX(62deg);
  transform-origin: center bottom;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent, rgba(6, 40, 30, 0.75)),
    repeating-linear-gradient(90deg, rgba(20, 70, 50, 0.25) 0 2px, rgba(8, 35, 26, 0.15) 2px 12px);
  border-radius: 40% 40% 0 0 / 12% 12% 0 0;
  box-shadow: 0 -30px 70px rgba(62, 207, 142, 0.08);
}

.spread__laid {
  position: absolute;
  width: 9.2%;
  aspect-ratio: 2 / 3;
  border-radius: 4px;
  border: 1px solid rgba(125, 255, 178, 0.28);
  background: linear-gradient(145deg, #14382c, #081c16);
  left: calc(8% + (var(--n) * 9.2%));
  top: calc(28% + ((var(--n) % 3) * 8%));
  transform: rotate(calc((var(--n) - 4) * 3deg));
  opacity: 0.88;
  box-shadow: inset 0 0 0 3px rgba(10, 30, 22, 0.85);
}

.spread__laid::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(125, 255, 178, 0.22);
  border-radius: 50%;
}

.spread__float {
  position: relative;
  z-index: 3;
  width: min(980px, 100%);
  height: clamp(260px, 42vh, 460px);
  margin-top: 0.25rem;
  perspective: 1400px;
}

.spread-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(190px, 26vw);
  aspect-ratio: 2 / 3;
  margin: 0;
  border-radius: 10px;
  transform: translate(-50%, -40%) scale(0.5);
  opacity: 0;
  filter: blur(2px) brightness(0.55);
  transition: transform 0.65s var(--ease), opacity 0.45s ease, filter 0.45s ease;
  cursor: pointer;
  z-index: 1;
  will-change: transform, opacity;
}

.spread-card__glow {
  position: absolute;
  inset: -20%;
  border-radius: 22px;
  background: radial-gradient(circle, rgba(62, 207, 142, 0.5), transparent 68%);
  opacity: 0;
  filter: blur(14px);
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.spread-card__face {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(125, 255, 178, 0.4);
  background: #061812;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.spread-card__face img,
.spread-card__face picture,
.spread-card__face picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.spread-card.is-active {
  width: min(250px, 42vw);
  transform: translate(-50%, -48%) scale(1);
  opacity: 1;
  filter: none;
  z-index: 6;
}

.spread-card.is-active .spread-card__glow { opacity: 1; }

.spread-card.is-active .spread-card__face {
  animation: floatBob 4.8s ease-in-out infinite;
  box-shadow:
    0 0 0 1px rgba(125, 255, 178, 0.45),
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 50px rgba(62, 207, 142, 0.4);
}

.spread-card.is-prev {
  transform: translate(calc(-50% - min(34vw, 280px)), -30%) scale(0.78) rotateY(14deg) rotateZ(-3deg);
  opacity: 0.9;
  filter: brightness(0.75);
  z-index: 4;
}

.spread-card.is-next {
  transform: translate(calc(-50% + min(34vw, 280px)), -30%) scale(0.78) rotateY(-14deg) rotateZ(3deg);
  opacity: 0.9;
  filter: brightness(0.75);
  z-index: 4;
}

.spread-card.is-prev .spread-card__glow,
.spread-card.is-next .spread-card__glow { opacity: 0.4; }

.spread-card.is-prev .spread-card__face,
.spread-card.is-next .spread-card__face {
  animation: floatBob 5.4s ease-in-out infinite 0.4s;
}

.spread-card.is-idle {
  transform: translate(-50%, -18%) scale(0.35);
  opacity: 0;
  pointer-events: none;
}

@keyframes floatBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.spread__controls {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.orbit__arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(6, 32, 25, 0.55);
  color: var(--mint);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color var(--t), background var(--t);
}

.orbit__arrow:hover {
  border-color: var(--mint);
  background: rgba(62, 207, 142, 0.12);
}

.orbit__dots {
  display: flex;
  gap: 0.4rem;
}

.orbit__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(154, 212, 181, 0.3);
  cursor: pointer;
}

.orbit__dot.is-active {
  background: var(--mint);
  box-shadow: 0 0 10px rgba(125, 255, 178, 0.55);
}

.spread__scroll {
  position: relative;
  z-index: 5;
  margin-top: 0.55rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mint);
  animation: bounceSoft 2.2s ease-in-out infinite;
}

@keyframes bounceSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

@media (max-width: 768px) {
  .spread {
    justify-content: flex-start;
    gap: 0.35rem;
    padding-top: calc(var(--header-h) + 0.75rem);
  }

  .spread__float { height: 280px; }

  .spread-card.is-prev {
    transform: translate(calc(-50% - 28vw), -28%) scale(0.62) rotateY(8deg);
  }

  .spread-card.is-next {
    transform: translate(calc(-50% + 28vw), -28%) scale(0.62) rotateY(-8deg);
  }

  .spread-card.is-active { width: min(190px, 52vw); }

  .spread__table { height: 30vh; }
}

/* ─── Artifacts (home) ─── */

.artifacts {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.artifacts__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: clamp(0.75rem, 2vw, 1.15rem);
  min-height: clamp(420px, 55vw, 560px);
}

.artifact-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  isolation: isolate;
  content-visibility: auto;
  contain-intrinsic-size: 280px;
}

.artifact-card--featured {
  grid-row: 1 / span 2;
}

.artifact-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.artifact-card:hover .artifact-card__image {
  transform: scale(1.04);
}

.artifact-card__overlay {
  position: absolute;
  inset: auto 0 0;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  background: linear-gradient(transparent, rgba(3, 20, 15, 0.92) 55%);
}

.artifact-card__label {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 0.35rem;
}

.artifact-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.artifact-card__desc {
  color: var(--muted);
  font-size: 0.88rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ot-cta-block {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

@media (max-width: 720px) {
  .artifacts__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: 0;
  }

  .artifact-card--featured { grid-row: auto; }

  .artifact-card {
    min-height: 240px;
  }
}

/* ─── Catalog ─── */

.catalog-page {
  padding: clamp(1.25rem, 3vw, 2.5rem) 0 clamp(3rem, 6vw, 5rem);
}

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(200px, 240px) 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}

.sacred-filters {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  padding: 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(10px);
}

.sacred-filters__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--mint);
}

.filter-group { margin-bottom: 1.1rem; }

.filter-group__label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 0.55rem;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
  cursor: pointer;
}

.filter-checkbox input { accent-color: var(--jade); }

.filter-range {
  width: 100%;
  accent-color: var(--jade);
}

.filter-range__labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.catalog-header {
  margin-bottom: 1.25rem;
}

.catalog-header__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}

.catalog-header__desc {
  color: var(--muted);
  max-width: 40rem;
}

.catalog-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.catalog-sort {
  appearance: none;
  background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%237dffb2'%3E%3Cpath d='M6 8 0 0h12z'/%3E%3C/svg%3E") no-repeat right 0.9rem center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 2.2rem 0.55rem 1rem;
  color: var(--text);
  min-width: min(100%, 260px);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: clamp(0.85rem, 2vw, 1.25rem);
}

.product-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-solid);
  overflow: hidden;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
  content-visibility: auto;
  contain-intrinsic-size: 360px;
}

.product-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--glow);
  transform: translateY(-3px);
}

.product-card__image-wrap {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-1);
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.product-card:hover .product-card__image {
  transform: scale(1.04);
}

.product-card__body {
  padding: 0.95rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.product-card__tag {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint);
}

.product-card__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.product-card__category,
.product-card__desc {
  color: var(--muted);
  font-size: 0.85rem;
}

.product-card__desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.55rem;
}

.product-card__price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--mint);
  font-size: 1.05rem;
}

.product-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.product-card--wide,
.product-card--banner {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) 1.2fr;
  min-height: clamp(220px, 32vw, 360px);
}

.product-card--banner {
  grid-template-columns: minmax(220px, 1.1fr) 1fr;
  min-height: clamp(280px, 38vw, 420px);
}

.product-card--wide .product-card__image-wrap,
.product-card--banner .product-card__image-wrap {
  aspect-ratio: auto;
  height: 100%;
}

.product-card--wide .product-card__body,
.product-card--banner .product-card__body {
  justify-content: center;
  padding: clamp(1.1rem, 3vw, 2rem);
}

@media (max-width: 900px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .sacred-filters {
    position: static;
  }
}

@media (max-width: 640px) {
  .product-card--wide,
  .product-card--banner {
    grid-template-columns: 1fr;
  }

  .product-card--wide .product-card__image-wrap,
  .product-card--banner .product-card__image-wrap {
    aspect-ratio: 16 / 11;
  }
}

/* ─── Product detail ─── */

.product-detail {
  padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 5rem);
}

.product-detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: start;
}

.product-detail__gallery {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: var(--glow-soft);
}

.product-detail__image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.product-detail__info h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0.35rem 0 0.5rem;
}

.product-detail__meta {
  color: var(--moss);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.product-detail__price {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 700;
  color: var(--mint);
  margin-bottom: 1rem;
}

.product-detail__description {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.product-detail__description p { margin-bottom: 0.75rem; }

.product-detail__specs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.product-detail__specs dt { color: var(--moss); }
.product-detail__specs dd { color: var(--text); }

@media (max-width: 800px) {
  .product-detail__grid { grid-template-columns: 1fr; }
  .product-detail__image { aspect-ratio: 1 / 1.15; max-height: 70vh; margin-inline: auto; }
}

/* ─── Generic page / content ─── */

.page-content,
.content-page,
.page-section {
  padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.page-hero {
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem) 0 1rem;
}

.page-hero h1,
.content-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
}

.prose,
.content-body {
  max-width: 42rem;
  margin-inline: auto;
  color: var(--muted);
}

.prose h2,
.content-body h2 {
  font-family: var(--font-display);
  color: var(--text);
  margin: 1.5rem 0 0.6rem;
}

.prose p,
.content-body p { margin-bottom: 0.9rem; }

/* Readings */
.readings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}

.reading-card {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-solid);
}

.reading-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.reading-card__meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
}

.reading-card__price {
  font-family: var(--font-display);
  color: var(--mint);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

/* Daily card */
.daily-card__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  min-height: 300px;
  justify-content: center;
}

.daily-card__deck {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.daily-card__back {
  width: min(160px, 42vw);
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: linear-gradient(145deg, var(--bg-2), var(--forest));
  display: grid;
  place-items: center;
  box-shadow: var(--glow);
}

.daily-card__symbol {
  font-size: 2.5rem;
  color: var(--mint);
}

.daily-card__result { text-align: center; }

.daily-card__face {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 24rem;
  margin: 0 auto 1rem;
}

.daily-card__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--mint);
  margin-bottom: 0.75rem;
}

.daily-card__meaning { color: var(--muted); }
.daily-card__cards { display: none; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  max-width: 52rem;
  margin-inline: auto;
}

.contact-block {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.contact-block h3 {
  font-family: var(--font-display);
  color: var(--mint);
  margin-bottom: 0.35rem;
}

@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* Forms */
.form-group { margin-bottom: 1rem; }

.form-group label,
.crud-form .form-group > span {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea,
.crud-form input,
.crud-form select,
.crud-form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(3, 20, 15, 0.55);
  color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--jade);
  box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.15);
}

/* Admin / CRUD */
.admin-guide {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(3rem, 6vw, 4rem);
}

.admin-guide__steps {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.admin-guide__steps li,
.admin-step {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-solid);
}

.crud-panel,
.ot-crud,
.product-manager {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(1rem, 3vw, 1.5rem);
}

.crud-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.crud-item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-2);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: clamp(1.75rem, 4vw, 2.75rem) 0;
  background: rgba(2, 14, 10, 0.7);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.site-footer__copy {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
}

.site-footer__links a {
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer__links a:hover { color: var(--mint); }

.site-footer__emblem {
  width: 48px;
  height: 48px;
  color: var(--jade);
  opacity: 0.7;
}

@media (max-width: 720px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

/* Legacy hero (inner pages) */
.hero,
.hero--mystic {
  position: relative;
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(2rem, 5vw, 3rem);
  text-align: center;
  overflow: hidden;
}

.hero__content { position: relative; z-index: 1; }

.hero__brand {
  font-family: var(--font-display);
  color: var(--mint);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.hero__text {
  color: var(--muted);
  max-width: 32rem;
  margin: 0 auto 1.25rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.hero__bg,
.hero__bg-image,
.hero__veil,
.hero__stars { display: none; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
