/*
Theme Name:   Thangka Child
Theme URI:    https://thangka.com
Description:  Thangka Tibetan Heritage - Custom child theme for Astra
Author:       Thangka Art
Author URI:   https://thangka.com
Template:     astra
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  thangka-child
*/

:root {
  --ink: #060807;
  --ink-2: #0c1110;
  --paper: #e8dfcf;
  --paper-deep: #d6c7ad;
  --ivory: #f3eadb;
  --muted: #b8aa92;
  --gold: #b9802e;
  --gold-bright: #d6a454;
  --line: rgba(185, 128, 46, 0.48);
  --shadow: rgba(0, 0, 0, 0.62);
  --serif: "Cinzel", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.thangka-front-page {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  letter-spacing: 0;
}

.cursor-glow {
  position: fixed;
  z-index: 60;
  top: 0; left: 0;
  width: 360px;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(214,164,84,0.22), rgba(185,128,46,0.08) 34%, transparent 68%);
  mix-blend-mode: screen;
  transform: translate3d(-50%,-50%,0);
  transition: opacity 220ms ease;
}
body.has-cursor-glow .cursor-glow { opacity: 1; }

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

/* ===== HEADER ===== */
.site-header {
  position: fixed; z-index: 20; top: 0; left: 0;
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 32px clamp(24px,5vw,74px);
  color: var(--ivory);
  background: linear-gradient(180deg, rgba(0,0,0,0.58), transparent);
}
.brand {
  display: inline-flex; align-items: center; gap: 14px;
  min-width: 0; text-transform: uppercase;
}
.brand-mark {
  position: relative; width: 56px; aspect-ratio: 1;
  border: 1px solid var(--gold-bright); border-radius: 50%;
}
.brand-mark::before, .brand-mark::after {
  position: absolute; inset: 8px; content: "";
  border: 1px solid var(--gold); transform: rotate(45deg);
}
.brand-mark::after { inset: 17px; border-radius: 50%; transform: none; }
.brand strong {
  display: block; font-family: var(--serif);
  font-size: clamp(20px,2vw,30px); font-weight: 500; line-height: 0.95;
}
.brand small {
  display: block; margin-top: 6px; color: var(--paper-deep);
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
}
.desktop-nav {
  display: flex; gap: clamp(26px,4vw,62px); align-items: center;
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.desktop-nav a { transition: color 180ms ease; }
.desktop-nav a:hover { color: var(--gold-bright); }
.menu-button {
  display: grid; place-items: center; width: 44px; aspect-ratio: 1;
  padding: 0; border: 1px solid var(--gold); border-radius: 50%;
  background: transparent; color: var(--gold-bright); cursor: pointer;
}
.menu-button span { width: 14px; height: 1px; margin: -5px 0; background: currentColor; }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 760px; height: 100vh;
  overflow: hidden; border-bottom: 1px solid var(--line);
}
.image-slot {
  background-color: #151512;
  background-image: linear-gradient(135deg,rgba(214,164,84,0.2),transparent 40%), radial-gradient(circle at 70% 30%,rgba(255,255,255,0.12),transparent 28%);
  background-position: center; background-size: cover;
}
.hero-bg, .hero-scrim { position: absolute; inset: 0; }
.hero-bg {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.hero-scrim {
  background: linear-gradient(90deg,rgba(0,0,0,0.82) 0%,rgba(0,0,0,0.5) 34%,rgba(0,0,0,0.12) 68%),
    linear-gradient(0deg,rgba(0,0,0,0.72),transparent 42%),
    linear-gradient(180deg,rgba(0,0,0,0.35),transparent 30%);
}
.hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  width: min(760px,calc(100% - 48px)); height: 100%;
  margin-left: clamp(32px,10vw,160px); padding-top: 100px;
}
.kicker {
  margin: 0 0 22px; color: var(--gold-bright);
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 22px; font-family: var(--serif);
  font-size: clamp(54px,7vw,102px); font-weight: 400; line-height: 1.08; text-transform: uppercase;
}
.hero-copy { max-width: 520px; margin-bottom: 112px; font-size: clamp(18px,1.5vw,23px); line-height: 1.55; }
.scroll-cue, .mini-link, .arrow-link {
  display: inline-flex; align-items: center; gap: 14px; width: max-content;
  color: var(--ivory); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.scroll-cue::before, .mini-link span { display: block; width: 22px; height: 1px; background: var(--gold-bright); content: ""; }
.mouse { position: relative; width: 18px; height: 28px; border: 1px solid var(--gold-bright); border-radius: 12px; }
.mouse::after { position: absolute; top: 6px; left: 50%; width: 2px; height: 7px; background: var(--gold-bright); content: ""; transform: translateX(-50%); }
.left-line {
  position: absolute; z-index: 2; left: clamp(24px,4vw,70px); top: 190px;
  width: 1px; height: 280px; background: linear-gradient(var(--gold),var(--gold),transparent);
}
.left-line::before, .left-line::after { position: absolute; left: 50%; width: 10px; aspect-ratio: 1; border: 1px solid var(--gold-bright); content: ""; transform: translateX(-50%) rotate(45deg); }
.left-line::before { top: 54px; }
.left-line::after { top: 154px; width: 6px; }

/* ===== AGE BAND ===== */
.age-band {
  position: relative; display: grid;
  grid-template-columns: 1fr auto minmax(220px,340px) 1fr;
  gap: clamp(28px,5vw,70px); align-items: center;
  min-height: 220px; padding: 34px clamp(24px,7vw,110px);
  overflow: hidden; border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 50% 20%,rgba(128,83,32,0.2),transparent 35%),#060807;
}
.age-number strong { display: block; color: #eccb91; font-family: var(--serif); font-size: clamp(88px,10vw,154px); font-weight: 400; line-height: 0.78; }
.age-number span { display: block; margin-top: 18px; color: var(--gold-bright); font-family: var(--serif); font-size: clamp(34px,3.7vw,54px); letter-spacing: 0.12em; text-transform: uppercase; }
.age-band p { margin-bottom: 0; color: var(--ivory); font-size: 14px; line-height: 1.65; }
.mandala {
  justify-self: center; width: min(190px,20vw); aspect-ratio: 1;
  border: 1px solid var(--gold); border-radius: 50%;
  background: repeating-conic-gradient(from 8deg,transparent 0deg 10deg,rgba(185,128,46,0.46) 10deg 12deg),
    radial-gradient(circle,transparent 0 24%,rgba(185,128,46,0.22) 25% 27%,transparent 28% 44%,rgba(185,128,46,0.24) 45% 47%,transparent 48%);
  opacity: 0.82;
}
.cloud-line { height: 80px; border-top: 1px solid rgba(185,128,46,0.36); border-bottom: 1px solid rgba(185,128,46,0.2); border-radius: 50%; opacity: 0.5; }

/* ===== SYMBOLS ===== */
.symbols-section {
  display: grid; grid-template-columns: minmax(230px,340px) 1fr;
  gap: clamp(28px,4vw,60px); align-items: center;
  padding: 40px clamp(24px,7vw,96px) 60px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 15% 25%,rgba(185,128,46,0.16),transparent 28%),#070a09;
}
.symbols-section .section-intro, .symbols-section .symbol-card {
  opacity: 0; transform: translateY(34px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.symbols-section .symbol-card:nth-child(2) { transition-delay: 90ms; }
.symbols-section .symbol-card:nth-child(3) { transition-delay: 180ms; }
.symbols-section .symbol-card:nth-child(4) { transition-delay: 270ms; }
.symbols-section.is-visible .section-intro, .symbols-section.is-visible .symbol-card { opacity: 1; transform: translateY(0); }
.eyebrow { margin-bottom: 26px; color: var(--gold-bright); font-size: 15px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.section-intro h2, .craft-copy h2, .collection-copy h2 { color: var(--ivory); font-family: var(--serif); font-size: clamp(34px,3.4vw,54px); font-weight: 400; line-height: 1.16; text-transform: uppercase; }
.mini-link { margin-top: 56px; }
.symbol-gallery { display: grid; grid-template-columns: 42px minmax(0,1fr) 42px; gap: 12px; align-items: center; }
.round-control { display: grid; place-items: center; width: 42px; aspect-ratio: 1; border: 1px solid var(--gold); border-radius: 50%; background: transparent; color: var(--gold-bright); font-size: 30px; line-height: 1; cursor: pointer; }
.symbol-track { display: grid; grid-auto-columns: minmax(190px,1fr); grid-auto-flow: column; overflow-x: auto; border: 1px solid var(--line); scrollbar-width: none; scroll-behavior: smooth; scroll-snap-type: x mandatory; }
.symbol-track::-webkit-scrollbar { display: none; }
.symbol-card { position: relative; min-height: 290px; overflow: hidden; border-right: 1px solid var(--line); scroll-snap-align: start; }
.symbol-card:last-child { border-right: 0; }
.symbol-card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92) contrast(1.06); transition: transform 500ms ease; }
.symbol-card:hover img { transform: scale(1.06); }
.symbol-card::after { position: absolute; inset: 0; background: linear-gradient(180deg,transparent 35%,rgba(0,0,0,0.92)); content: ""; }
.symbol-overlay { position: absolute; z-index: 2; right: 22px; bottom: 24px; left: 22px; text-align: center; }
.symbol-overlay h3 { margin-bottom: 4px; font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.symbol-overlay p { margin: 0; color: var(--paper-deep); font-size: 13px; }
.symbol-icon { display: block; width: 44px; aspect-ratio: 1; margin: 0 auto 15px; border: 2px solid var(--gold-bright); }
.symbol-icon.lotus { border-radius: 50% 50% 0 50%; transform: rotate(45deg); }
.symbol-icon.knot { background: linear-gradient(45deg,transparent 42%,var(--gold-bright) 43% 47%,transparent 48%), linear-gradient(-45deg,transparent 42%,var(--gold-bright) 43% 47%,transparent 48%); }
.symbol-icon.wheel { border-radius: 50%; background: repeating-conic-gradient(transparent 0deg 36deg,var(--gold-bright) 37deg 39deg); }
.symbol-icon.vajra { transform: rotate(45deg) skew(10deg,10deg); }

/* ===== CRAFT SECTION ===== */
.craft-pin-section {
  position: relative; height: 220vh; color: #17130d;
  background: radial-gradient(circle at 0 0,rgba(109,87,48,0.13),transparent 24%),
    radial-gradient(circle at 100% 100%,rgba(109,87,48,0.16),transparent 22%), var(--paper);
}
.craft-sticky { position: sticky; top: 0; display: grid; align-items: center; min-height: 100vh; overflow: hidden; }
.craft-section { display: grid; grid-template-columns: minmax(220px,320px) 1fr; gap: clamp(30px,5vw,70px); align-items: center; width: 100%; padding: 48px clamp(24px,7vw,96px); color: #17130d; background: transparent; }
.craft-copy h2 { color: #15100a; }
.craft-copy p { max-width: 250px; margin-bottom: 26px; color: #241d14; font-size: 15px; line-height: 1.55; }
.arrow-link { color: #17130d; }
.arrow-link span { display: grid; place-items: center; width: 30px; aspect-ratio: 1; border: 1px solid currentColor; border-radius: 50%; }
.process-viewport { min-width: 0; overflow: visible; }
.process-list { display: flex; gap: 24px; width: max-content; will-change: transform; }
.process-item { flex: 0 0 clamp(280px,28vw,420px); min-width: 0; }
.process-item img { height: clamp(130px,13vw,178px); margin-bottom: 20px; box-shadow: 0 12px 22px rgba(36,29,20,0.18); }
.process-item div { display: grid; grid-template-columns: auto 1fr auto; gap: 15px; align-items: center; }
.process-item div::after { content: "\2192"; color: #4d3d27; }
.process-item:last-child div::after { content: ""; }
.process-item strong { font-family: var(--serif); font-size: 25px; font-weight: 400; }
.process-item span { min-width: 0; overflow-wrap: anywhere; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }

/* ===== COLLECTION BANNER ===== */
.collection-banner { position: relative; min-height: 360px; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.collection-image, .collection-banner::after { position: absolute; inset: 0; }
.collection-image { background-image: radial-gradient(circle at 65% 50%,rgba(255,255,255,0.12),transparent 20%),image-set(url("assets/wearable-heritage.jpg") type("image/jpeg"), url("assets/wearable-heritage.jpg.webp") type("image/webp")); background-position: center; background-size: cover; }
.collection-banner::after { background: linear-gradient(90deg,rgba(0,0,0,0.86),rgba(0,0,0,0.52) 38%,rgba(0,0,0,0.1)), linear-gradient(0deg,rgba(0,0,0,0.5),transparent 52%); content: ""; }
.collection-copy { position: relative; z-index: 2; width: min(420px,calc(100% - 48px)); padding: 74px 0 68px clamp(24px,7vw,96px); }
.collection-copy p { max-width: 230px; color: var(--paper-deep); line-height: 1.6; }
.arrow-link.light { color: var(--ivory); }

/* ===== STORY SECTION ===== */
.story-section { position: relative; min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.story-media { position: relative; overflow: hidden; }
.story-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms cubic-bezier(0.25,0,0.15,1); }
.story-media.is-visible img { transform: scale(1); }
.story-media img { transform: scale(1.12); }
.story-media::after { position: absolute; inset: 0; background: linear-gradient(90deg,transparent 60%,var(--ink) 100%); content: ""; }
.story-text { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px,8vw,120px); }
.story-text .eyebrow { opacity: 0; transform: translateY(24px); transition: all 700ms ease 100ms; }
.story-text h2, .story-text p, .story-text .arrow-link { opacity: 0; transform: translateY(30px); transition: all 700ms ease 200ms; }
.story-text p { transition-delay: 300ms; }
.story-text .arrow-link { transition-delay: 400ms; }
.story-section.is-visible .story-text .eyebrow, .story-section.is-visible .story-text h2, .story-section.is-visible .story-text p, .story-section.is-visible .story-text .arrow-link { opacity: 1; transform: translateY(0); }
.story-text h2 { margin-bottom: 28px; color: var(--ivory); font-family: var(--serif); font-size: clamp(30px,3.2vw,48px); font-weight: 400; line-height: 1.18; text-transform: uppercase; }
.story-text p { max-width: 380px; margin-bottom: 36px; color: var(--paper-deep); font-size: 15px; line-height: 1.7; }

/* ===== STATS ===== */
.stats-section { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: radial-gradient(circle at 50% 50%,rgba(128,83,32,0.15),transparent 50%),#060807; }
.stat-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: clamp(40px,5vw,80px) 24px; text-align: center; border-right: 1px solid var(--line); }
.stat-item:last-child { border-right: 0; }
.stat-item::before { position: absolute; top: 24px; left: 50%; width: 6px; aspect-ratio: 1; border: 1px solid var(--gold); transform: translateX(-50%) rotate(45deg); content: ""; }
.stat-number { font-family: var(--serif); font-size: clamp(42px,5vw,72px); font-weight: 400; color: var(--gold-bright); line-height: 1; opacity: 0; transform: translateY(20px); transition: all 600ms ease; }
.stat-item.is-visible .stat-number { opacity: 1; transform: translateY(0); }
.stat-label { margin-top: 14px; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* ===== GALLERY ===== */
.gallery-section { padding: clamp(60px,10vw,140px) clamp(24px,5vw,74px); background: #070a09; }
.gallery-header { display: grid; grid-template-columns: 1fr auto; align-items: end; margin-bottom: clamp(40px,5vw,80px); padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.gallery-header h2 { font-family: var(--serif); font-size: clamp(34px,3.4vw,54px); font-weight: 400; text-transform: uppercase; opacity: 0; transform: translateY(24px); transition: all 700ms ease; }
.gallery-section.is-visible .gallery-header h2 { opacity: 1; transform: translateY(0); }
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); grid-template-rows: auto auto; gap: 16px; }
.gallery-item { position: relative; overflow: hidden; cursor: pointer; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item img { height: 100%; transition: transform 700ms cubic-bezier(0.25,0,0.15,1); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after { position: absolute; inset: 0; background: linear-gradient(180deg,transparent 40%,rgba(0,0,0,0.8)); opacity: 0; transition: opacity 500ms ease; content: ""; }
.gallery-item:hover::after { opacity: 1; }
.gallery-item-label { position: absolute; z-index: 2; bottom: 20px; left: 20px; right: 20px; opacity: 0; transform: translateY(12px); transition: all 500ms ease; }
.gallery-item:hover .gallery-item-label { opacity: 1; transform: translateY(0); }
.gallery-item-label h3 { font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.gallery-item-label p { margin: 4px 0 0; color: var(--paper-deep); font-size: 12px; }

/* ===== PHILOSOPHY ===== */
.philosophy-section { display: grid; grid-template-columns: 1fr 1fr; min-height: 80vh; border-top: 1px solid var(--line); }
.philosophy-content { display: flex; flex-direction: column; justify-content: center; padding: clamp(48px,8vw,120px); background: radial-gradient(circle at 80% 30%,rgba(185,128,46,0.12),transparent 40%),var(--ink); }
.philosophy-content h2 { margin-bottom: 32px; font-family: var(--serif); font-size: clamp(30px,3.2vw,48px); font-weight: 400; line-height: 1.18; text-transform: uppercase; opacity: 0; transform: translateY(24px); transition: all 700ms ease; }
.philosophy-section.is-visible .philosophy-content h2 { opacity: 1; transform: translateY(0); }
.philosophy-list { list-style: none; margin: 0; padding: 0; }
.philosophy-list li { position: relative; padding: 20px 0 20px 28px; border-top: 1px solid var(--line); color: var(--paper-deep); font-size: 15px; line-height: 1.6; opacity: 0; transform: translateX(-20px); transition: all 600ms ease; }
.philosophy-list li:nth-child(1) { transition-delay: 100ms; }
.philosophy-list li:nth-child(2) { transition-delay: 200ms; }
.philosophy-list li:nth-child(3) { transition-delay: 300ms; }
.philosophy-section.is-visible .philosophy-list li { opacity: 1; transform: translateX(0); }
.philosophy-list li::before { position: absolute; left: 0; top: 28px; width: 8px; aspect-ratio: 1; border: 1px solid var(--gold-bright); transform: rotate(45deg); content: ""; }
.philosophy-list li strong { display: block; margin-bottom: 6px; color: var(--ivory); font-family: var(--serif); font-size: 18px; font-weight: 400; }
.philosophy-visual { position: relative; overflow: hidden; }
.philosophy-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms cubic-bezier(0.25,0,0.15,1); }
.philosophy-section.is-visible .philosophy-visual img { transform: scale(1); }
.philosophy-visual img { transform: scale(1.1); }
.philosophy-visual::after { position: absolute; inset: 0; background: linear-gradient(270deg,transparent 50%,var(--ink) 100%); content: ""; }

/* ===== DIVIDER ===== */
.divider { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 60px 0; background: var(--ink); }
.divider::before, .divider::after { content: ""; width: clamp(60px,12vw,180px); height: 1px; background: linear-gradient(90deg,transparent,var(--gold),transparent); }
.divider-diamond { width: 10px; aspect-ratio: 1; border: 1px solid var(--gold-bright); transform: rotate(45deg); }

/* ===== FOOTER ===== */
.footer { position: relative; display: grid; grid-template-columns: minmax(200px,1.2fr) minmax(140px,0.7fr) minmax(140px,0.7fr) minmax(140px,0.7fr) minmax(200px,1fr); gap: clamp(20px,4vw,50px); padding: 44px clamp(24px,7vw,96px) 68px; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,0.08); background: #070908; }
.footer p, .footer a, .footer span { color: var(--muted); font-size: 13px; line-height: 1.55; }
.footer-brand p { max-width: 245px; margin: 22px 0 18px; }
.socials { display: flex; gap: 18px; }
.socials a { width: 14px; aspect-ratio: 1; border: 1px solid var(--gold-bright); border-radius: 50%; }
.footer-links { display: flex; flex-direction: column; gap: 7px; }
.footer-links h2 { margin: 0 0 12px; color: var(--gold-bright); font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.footer-payments { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 10px; }
.footer-payments p { margin: 0 0 14px; color: var(--gold-bright); font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.payment-icons { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.payment-icon { display: inline-flex; align-items: center; justify-content: center; padding: 6px 12px; border: 1px solid var(--line); border-radius: 4px; background: rgba(185,128,46,0.06); }
.payment-note { margin: 12px 0 0; font-size: 11px; color: var(--muted); }
.footer-art { min-height: 80px; opacity: 0.3; background: radial-gradient(circle at 50% 48%,transparent 0 24%,rgba(185,128,46,0.7) 25% 26%,transparent 27%), repeating-conic-gradient(from 8deg,transparent 0deg 18deg,rgba(185,128,46,0.46) 18deg 20deg); mask-image: linear-gradient(90deg,transparent,#000 18%,#000 80%,transparent); }
.footer-bottom { position: absolute; right: clamp(24px,7vw,96px); bottom: 18px; left: clamp(24px,7vw,96px); display: flex; gap: 24px; justify-content: center; border-top: 1px solid rgba(185,128,46,0.2); padding-top: 14px; flex-wrap: wrap; }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .site-header { padding: 22px 24px; }
  .desktop-nav { display: none; }
  .hero { min-height: 680px; }
  .hero-content { margin-left: 24px; }
  .left-line { display: none; }
  .age-band, .symbols-section, .craft-section, .footer { grid-template-columns: 1fr; }
  .craft-pin-section { height: auto; }
  .craft-sticky { position: relative; min-height: 0; }
  .process-viewport { overflow-x: auto; padding-bottom: 12px; }
  .mandala, .cloud-line { display: none; }
  .symbol-gallery { grid-template-columns: 1fr; }
  .round-control { display: none; }
  .process-list { transform: none !important; }
  .footer-bottom { position: static; flex-wrap: wrap; justify-content: flex-start; grid-column: 1; margin-top: 10px; }
  .story-section, .philosophy-section { grid-template-columns: 1fr; }
  .stats-section { grid-template-columns: repeat(2,1fr); }
  .stat-item:nth-child(2) { border-right: 0; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item.tall { grid-row: span 1; }
  .story-media::after { background: linear-gradient(180deg,transparent 60%,var(--ink) 100%); }
  .philosophy-visual::after { background: linear-gradient(180deg,transparent 60%,var(--ink) 100%); }
}

@media (max-width: 620px) {
  .brand-mark { width: 44px; }
  .brand strong { font-size: 18px; }
  .brand small { font-size: 8px; }
  .hero { height: auto; min-height: 640px; }
  .hero-content { width: calc(100% - 40px); padding-top: 120px; }
  .hero-copy { margin-bottom: 68px; }
  .age-band { gap: 14px; padding-top: 46px; padding-bottom: 46px; }
  .symbols-section, .craft-section { padding-right: 20px; padding-left: 20px; }
  .symbol-track { grid-auto-columns: 82%; }
  .process-list { width: 100%; flex-direction: column; }
  .process-item { flex-basis: auto; }
  .process-item img { height: 210px; }
  .collection-copy { padding-left: 24px; }
  .footer { padding-right: 24px; padding-left: 24px; }
  .stats-section { grid-template-columns: 1fr; }
  .stat-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat-item:last-child { border-bottom: 0; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-header { grid-template-columns: 1fr; gap: 16px; }
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 800ms ease, transform 800ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 800ms ease, transform 800ms ease; }
.reveal-left.is-visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 800ms ease, transform 800ms ease; }
.reveal-right.is-visible { opacity: 1; transform: translateX(0); }

/* ===== FRONT PAGE ONLY - no Astra header/footer ===== */
body.thangka-front-page {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
body.thangka-front-page .hero {
  height: 100vh;
  min-height: 100vh;
}
body.thangka-front-page #masthead,
body.thangka-front-page .main-header-bar,
body.thangka-front-page .ast-primary-header-wrap,
body.thangka-front-page footer,
body.thangka-front-page .site-footer-wrap {
  display: none !important;
}

/* ===== CART COUNT BADGE ===== */
.nav-cart { position: relative; }
.cart-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--gold); color: var(--ink);
  font-size: 10px; font-weight: 800; border-radius: 50%;
  margin-left: 4px;
}

/* ===== CUSTOM HEADER (non-homepage pages) ===== */
.tk-header {
  position: sticky; top: 0; z-index: 1000;
  width: 100%; background: #fff;
  border-bottom: 1px solid #e5e7eb;
  font-family: 'Inter', sans-serif;
}
.tk-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1240px; margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 40px);
  height: 72px;
}
.tk-header-logo strong {
  font-family: 'Cinzel', serif;
  font-size: 22px; font-weight: 600;
  color: #111; letter-spacing: 0.08em;
  text-decoration: none;
}
.tk-header-nav {
  display: flex; align-items: center; gap: 32px;
}
.tk-nav-link {
  font-size: 14px; font-weight: 500;
  color: #374151; text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.tk-nav-link:hover, .tk-nav-link.active {
  color: #111;
}
.tk-header-actions {
  display: flex; align-items: center; gap: 16px;
}
.tk-header-cart {
  position: relative; color: #374151;
  display: flex; align-items: center;
  text-decoration: none;
  transition: color 0.2s;
}
.tk-header-cart:hover { color: #111; }
.tk-cart-count {
  position: absolute; top: -6px; right: -8px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--gold); color: #fff;
  font-size: 9px; font-weight: 800; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.tk-menu-toggle {
  display: none;
  flex-direction: column; justify-content: center;
  gap: 5px; width: 28px; height: 28px;
  background: none; border: none; cursor: pointer;
  padding: 2px;
}
.tk-menu-toggle span {
  display: block; width: 100%; height: 2px;
  background: #374151; border-radius: 2px;
  transition: all 0.3s;
}
.tk-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.tk-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.tk-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Header: Mobile responsive */
@media (max-width: 921px) {
  .tk-header-nav {
    display: none;
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 8px 0;
  }
  .tk-header-nav.open {
    display: flex;
  }
  .tk-nav-link {
    display: block; padding: 12px 24px;
    font-size: 15px; border-bottom: 1px solid #f3f4f6;
  }
  .tk-nav-link:last-child { border-bottom: none; }
  .tk-menu-toggle { display: flex; }
}

/* Hide Astra header completely on non-homepage */
body:not(.thangka-front-page) #masthead,
body:not(.thangka-front-page) .ast-primary-header-bar,
body:not(.thangka-front-page) .ast-mobile-header-wrap {
  display: none !important;
}
body:not(.thangka-front-page) #content {
  padding-top: 0;
}

/* ===== HANDMADE NOTICE ===== */
.tk-handmade-notice {
  display: flex; align-items: center; gap: 6px;
  margin: 12px 0 0;
  padding: 10px 14px;
  background: #fef9ee;
  border: 1px solid #f5e6c8;
  border-radius: 6px;
  color: #7a6235;
  font-size: 13px; line-height: 1.5;
}

/* ===== CUSTOM FOOTER (non-homepage pages) ===== */
.tk-footer-simple {
  margin-top: 60px;
  padding: 40px clamp(16px, 3vw, 40px);
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  text-align: center;
  font-family: 'Inter', sans-serif;
}
.tk-footer-simple p {
  margin: 4px 0;
  color: #6b7280;
  font-size: 13px;
}
.tk-footer-simple a {
  color: #374151;
  text-decoration: none;
}
.tk-footer-simple a:hover { color: #111; }
.tk-footer-simple .tk-footer-links {
  display: flex; justify-content: center; gap: 24px;
  margin-bottom: 16px; flex-wrap: wrap;
}

