/* ==========================================================================
   พุทธสำรับ — THE GOLDEN FLOW OF FAITH
   Design system & components
   ========================================================================== */
:root {
  --gold: #C9A34A;
  --gold-champagne: #E8D49A;
  --gold-deep: #9C762B;
  --ivory: #F8F5ED;
  --cream: #FFFDF8;
  --brown: #302519;
  --black-gold: #19150F;
  --ink: #2A2117;
  --muted: #6F6252;
  --line: rgba(156, 118, 43, .22);
  --line-soft: rgba(156, 118, 43, .12);
  --metal: linear-gradient(115deg, #9C762B 0%, #E8D49A 22%, #FFF3C4 34%, #C9A34A 52%, #9C762B 70%, #E8D49A 88%, #C9A34A 100%);
  --metal-soft: linear-gradient(120deg, #C9A34A, #F3E3AE 45%, #C9A34A 70%, #9C762B);
  --glow: 0 0 0 1px rgba(201, 163, 74, .25), 0 18px 50px -18px rgba(156, 118, 43, .45);
  --shadow: 0 30px 60px -30px rgba(48, 37, 25, .35);
  --radius: 18px;
  --radius-sm: 10px;
  --f-head: 'Noto Serif Thai', 'Cormorant Garamond', serif;
  --f-script: 'Charm', 'Noto Serif Thai', serif;
  --f-body: 'IBM Plex Sans Thai', 'Noto Sans Thai', system-ui, sans-serif;
  --f-latin: 'Cormorant Garamond', 'Noto Serif Thai', serif;
  --wrap: 1240px;
  --header-h: 84px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}
html[lang="en"] { --f-head: 'Cormorant Garamond', 'Noto Serif Thai', serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--f-body); font-weight: 400; font-size: 16.5px; line-height: 1.75;
  color: var(--ink); background: var(--cream); overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 600; line-height: 1.3; margin: 0 0 .5em; letter-spacing: .005em; }
html[lang="en"] h1, html[lang="en"] h2 { font-weight: 600; letter-spacing: .01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 300; background: var(--black-gold); color: var(--gold-champagne); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 16px; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.gold-text {
  background: var(--metal); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 9s linear infinite;
}
@keyframes sheen { to { background-position: -220% 0; } }
.script { font-family: var(--f-script); font-weight: 700; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--metal); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 50px; padding: 0 26px; border-radius: 999px; font-weight: 500; letter-spacing: .02em; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-position .9s var(--ease), color .3s;
  isolation: isolate; overflow: hidden;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--gold { background: var(--metal); background-size: 200% 100%; color: #2A1E0C; box-shadow: 0 10px 30px -12px rgba(156,118,43,.7), inset 0 1px 0 rgba(255,255,255,.55); }
.btn--gold:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 16px 40px -14px rgba(156,118,43,.85), inset 0 1px 0 rgba(255,255,255,.6); }
.btn--ghost { border: 1px solid rgba(232,212,154,.55); color: var(--gold-champagne); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(232,212,154,.1); transform: translateY(-2px); }
.btn--line { border: 1px solid var(--line); color: var(--brown); background: rgba(255,255,255,.6); }
.btn--line:hover { border-color: var(--gold); background: #fff; transform: translateY(-2px); box-shadow: var(--glow); }
.btn--dark { background: var(--black-gold); color: var(--gold-champagne); }
.btn--dark:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -14px rgba(25,21,15,.7); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .92rem; }
.btn--block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: .5em; color: var(--gold-deep); font-weight: 500; }
.link-arrow svg { width: 18px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- loader & veil ---------- */
.loader {
  position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, #3A2B19 0%, var(--black-gold) 65%);
  transition: opacity .9s var(--ease), visibility .9s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { text-align: center; animation: fadeUp 1s var(--ease) both; }
.loader__ring { position: relative; width: 132px; height: 132px; margin: 0 auto 22px; }
.loader__ring svg { width: 100%; height: 100%; animation: spin 2.4s linear infinite; }
.loader__mark { position: absolute; inset: 30px; background: url('/favicon.svg') center/contain no-repeat; filter: drop-shadow(0 0 18px rgba(232,212,154,.6)); animation: breathe 2.4s ease-in-out infinite; }
.loader__word { font-family: var(--f-script); font-size: 2.6rem; line-height: 1.2; margin: 0; background: var(--metal); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 3s linear infinite; }
.loader__tag { color: rgba(232,212,154,.75); font-size: .9rem; letter-spacing: .08em; margin-top: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.06); opacity: .85; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.veil { position: fixed; inset: 0; z-index: 400; pointer-events: none; background: radial-gradient(circle at 50% 50%, rgba(255,253,248,.92), rgba(248,245,237,.98)); opacity: 0; transition: opacity .28s ease; }
.veil.is-on { opacity: 1; }
.veil__line { position: absolute; top: 50%; left: 50%; width: 220px; height: 1px; margin-left: -110px; background: var(--metal); transform: scaleX(0); transform-origin: left; }
.veil.is-on .veil__line { animation: lineGrow .5s var(--ease) forwards; }
@keyframes lineGrow { to { transform: scaleX(1); } }
main { transition: opacity .35s ease; outline: none; min-height: 60vh; }

/* ---------- header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); transition: background .5s var(--ease), box-shadow .5s, height .4s var(--ease), color .4s; color: var(--gold-champagne); }
.header::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(201,163,74,.5), transparent); opacity: 0; transition: opacity .4s; }
.header.is-solid, .header.is-light { background: rgba(255,253,248,.86); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); color: var(--brown); box-shadow: 0 10px 30px -20px rgba(48,37,25,.4); }
.header.is-solid::after, .header.is-light::after { opacity: 1; }
.header.is-solid { height: 70px; }
.header__in { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo__mark { width: 42px; height: 42px; filter: drop-shadow(0 2px 8px rgba(201,163,74,.35)); }
.logo__txt { display: flex; flex-direction: column; line-height: 1.05; }
.logo__th { font-family: var(--f-script); font-weight: 700; font-size: 1.7rem; background: var(--metal); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 10s linear infinite; }
.logo__en { font-family: var(--f-latin); font-size: .68rem; letter-spacing: .34em; opacity: .75; margin-top: 2px; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { position: relative; padding: 8px 14px; font-size: .97rem; letter-spacing: .02em; opacity: .9; transition: opacity .3s; }
.nav a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 1px; background: var(--metal); transform: scaleX(0); transition: transform .45s var(--ease); transform-origin: center; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header__tools { display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; transition: background .3s; }
.icon-btn:hover { background: rgba(201,163,74,.14); }
.icon-btn svg { width: 21px; height: 21px; }
.lang { display: inline-flex; align-items: center; border: 1px solid currentColor; border-color: rgba(201,163,74,.5); border-radius: 999px; padding: 3px; font-size: .8rem; font-weight: 500; letter-spacing: .06em; }
.lang a { padding: 3px 10px; border-radius: 999px; opacity: .7; }
.lang a.is-on { background: var(--metal); color: #2A1E0C; opacity: 1; }
.header .btn { min-height: 42px; padding: 0 18px; font-size: .92rem; }
.burger { display: none; }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 200; background: radial-gradient(circle at 80% 0%, #3A2B19, var(--black-gold) 60%); color: var(--gold-champagne); display: flex; flex-direction: column; padding: 22px 26px 34px; transform: translateY(-100%); transition: transform .6s var(--ease); visibility: hidden; }
.drawer.is-open { transform: none; visibility: visible; }
.drawer__top { display: flex; justify-content: space-between; align-items: center; }
.drawer nav { display: flex; flex-direction: column; margin: 40px 0 auto; }
.drawer nav a { font-family: var(--f-head); font-size: 1.85rem; padding: 10px 0; border-bottom: 1px solid rgba(201,163,74,.18); display: flex; justify-content: space-between; align-items: center; }
.drawer nav a[aria-current="page"] { color: #fff; }
.drawer nav a span { font-family: var(--f-latin); font-size: .85rem; opacity: .6; letter-spacing: .2em; }
.drawer__foot { display: grid; gap: 12px; margin-top: 30px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: var(--ivory); background: radial-gradient(ellipse at 70% 40%, #4A3720 0%, #2A2015 42%, var(--black-gold) 78%); overflow: hidden; isolation: isolate; }
.hero__canvas, .hero__robe { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__robe { mix-blend-mode: screen; opacity: .7; }
.hero__pattern { position: absolute; inset: 0; z-index: -1; opacity: .06; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M32 6 L58 32 L32 58 L6 32 Z' fill='none' stroke='%23C9A34A'/%3E%3Cpath d='M32 20 C38 26 38 30 32 32 C26 30 26 26 32 20 Z M32 44 C38 38 38 34 32 32 C26 34 26 38 32 44 Z' fill='%23C9A34A'/%3E%3C/svg%3E"); mask-image: radial-gradient(ellipse at 60% 50%, #000 20%, transparent 75%); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; padding: calc(var(--header-h) + 40px) 0 80px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: .82rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-deep); font-weight: 500; margin-bottom: 18px; }
.eyebrow::before { content: ''; width: 36px; height: 1px; background: var(--metal); }
.hero .eyebrow { color: var(--gold-champagne); }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.8rem); line-height: 1.15; margin-bottom: 22px; }
.hero h1 .l1 { display: block; font-family: var(--f-script); font-weight: 700; font-size: 1.16em; line-height: 1.25; }
.hero h1 .l2 { display: block; font-size: .52em; font-weight: 500; color: rgba(248,245,237,.92); margin-top: 6px; letter-spacing: .01em; }
html[lang="en"] .hero h1 .l1 { font-family: var(--f-latin); font-style: italic; font-weight: 500; }
.hero__text { max-width: 540px; font-size: 1.08rem; color: rgba(248,245,237,.8); font-weight: 300; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__art { position: relative; justify-self: center; width: min(520px, 100%); aspect-ratio: 500/640; }
.hero__art::before { content: ''; position: absolute; inset: 8% 4% 0; background: radial-gradient(circle at 50% 42%, rgba(255,231,166,.55), rgba(232,212,154,.12) 45%, transparent 70%); filter: blur(10px); animation: breathe 7s ease-in-out infinite; }
.hero__art img { position: relative; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)); animation: float 9s ease-in-out infinite; }
.hero__art .ph-tag { position: absolute; bottom: 4px; right: 0; font-size: .72rem; color: rgba(232,212,154,.55); letter-spacing: .08em; }
@keyframes float { 50% { transform: translateY(-12px); } }
.hero__scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: .72rem; letter-spacing: .3em; color: rgba(232,212,154,.7); text-transform: uppercase; }
.hero__scroll i { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: drip 2.2s ease-in-out infinite; }
@keyframes drip { to { top: 110%; } }
.hero__stats { display: flex; gap: 34px; margin-top: 44px; padding-top: 26px; border-top: 1px solid rgba(201,163,74,.22); max-width: 540px; }
.hero__stats b { display: block; font-family: var(--f-latin); font-size: 2rem; font-weight: 500; line-height: 1; }
.hero__stats span { font-size: .82rem; color: rgba(248,245,237,.65); }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.section--ivory { background: var(--ivory); }
.section--dark { background: radial-gradient(ellipse at 50% 0%, #3A2B19, var(--black-gold) 70%); color: var(--ivory); }
.section--dark .eyebrow { color: var(--gold-champagne); }
.sec-head { max-width: 720px; margin-bottom: 54px; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }
.sec-head--center .eyebrow::after { content: ''; width: 36px; height: 1px; background: var(--metal); }
.sec-head h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.sec-head p { color: var(--muted); font-size: 1.05rem; }
.section--dark .sec-head p { color: rgba(248,245,237,.72); }
.sec-head--split { display: flex; justify-content: space-between; align-items: end; gap: 24px; max-width: none; }
.gold-rule { display: block; width: 120px; height: 1px; background: var(--metal); margin-top: 22px; transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) .2s; }
.sec-head--center .gold-rule { margin-inline: auto; transform-origin: center; }
.in .gold-rule, .gold-rule.in { transform: scaleX(1); }
.divider-flow { position: absolute; left: 0; right: 0; top: -1px; height: 60px; pointer-events: none; }

/* reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* story */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.story__media { position: relative; }
.story__media .frame { border-radius: 220px 220px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow); }
.story__media .frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.story__media .badge { position: absolute; right: -18px; bottom: 40px; background: var(--cream); padding: 20px 24px; border-radius: var(--radius); box-shadow: var(--glow); max-width: 220px; }
.story__media .badge .script { font-size: 1.9rem; line-height: 1.1; display: block; }
.story__media .badge small { color: var(--muted); font-size: .82rem; }
.story__text .lead { font-family: var(--f-head); font-size: 1.32rem; line-height: 1.7; color: var(--brown); }
.note { font-size: .9rem; color: var(--muted); background: rgba(232,212,154,.18); border-left: 2px solid var(--gold); padding: 10px 14px; border-radius: 0 8px 8px 0; }

/* categories */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.cat { position: relative; grid-column: span 2; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; color: var(--ivory); isolation: isolate; box-shadow: var(--shadow); }
.cat:nth-child(4), .cat:nth-child(5) { grid-column: span 3; aspect-ratio: 16/11; }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
.cat::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(25,21,15,.88)); }
.cat::after { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(232,212,154,.0); border-radius: calc(var(--radius) - 6px); transition: border-color .6s var(--ease), inset .6s var(--ease); }
.cat:hover img { transform: scale(1.07); }
.cat:hover::after { border-color: rgba(232,212,154,.55); inset: 14px; }
.cat__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; }
.cat__num { font-family: var(--f-latin); font-size: .85rem; letter-spacing: .3em; color: var(--gold-champagne); }
.cat h3 { font-size: 1.7rem; margin: 6px 0 4px; }
.cat p { font-size: .92rem; color: rgba(248,245,237,.75); margin: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .6s; }
.cat:hover p, .cat:focus-visible p { max-height: 120px; opacity: 1; }
.cat__go { display: inline-flex; gap: 8px; align-items: center; margin-top: 12px; font-size: .88rem; color: var(--gold-champagne); }
.cat__go svg { width: 16px; }

/* product cards */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card { position: relative; display: flex; flex-direction: column; background: var(--cream); border-radius: var(--radius); border: 1px solid var(--line-soft); overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--glow); border-color: rgba(201,163,74,.4); }
.card__media { position: relative; display: block; aspect-ratio: 1; background: var(--ivory); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform 1s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.55) 50%, transparent 60%); transform: translateX(-100%); transition: transform 1.1s var(--ease); }
.card:hover .card__media::after { transform: translateX(100%); }
.badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.badge-s { font-size: .7rem; letter-spacing: .06em; padding: 3px 10px; border-radius: 999px; background: rgba(25,21,15,.82); color: var(--gold-champagne); backdrop-filter: blur(4px); }
.badge-s--gold { background: var(--metal); color: #2A1E0C; }
.card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card__cat { font-size: .76rem; letter-spacing: .1em; color: var(--gold-deep); text-transform: uppercase; }
.card h3 { font-size: 1.08rem; margin: 6px 0 6px; line-height: 1.45; }
html[lang="en"] .card h3 { font-size: 1.25rem; }
.card h3 a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card__desc { font-size: .9rem; color: var(--muted); line-height: 1.6; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__code { font-size: .76rem; color: var(--muted); letter-spacing: .06em; }
.card__actions { margin-top: auto; display: flex; gap: 8px; position: relative; z-index: 2; padding-top: 6px; }
.card__actions .btn { flex: 1; min-height: 40px; padding: 0 12px; font-size: .86rem; }

/* tabs */
.tabs { display: inline-flex; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.tabs button { padding: 8px 18px; border-radius: 999px; font-size: .92rem; color: var(--muted); transition: all .35s var(--ease); }
.tabs button[aria-selected="true"] { background: var(--black-gold); color: var(--gold-champagne); }

/* craft gallery */
.craft { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 120px; gap: 16px; }
.craft figure { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; }
.craft figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.craft figure:hover img { transform: scale(1.08); }
.craft figcaption { position: absolute; left: 14px; bottom: 12px; right: 14px; font-size: .86rem; color: var(--ivory); text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.craft figure:nth-child(1) { grid-column: span 5; grid-row: span 4; }
.craft figure:nth-child(2) { grid-column: span 4; grid-row: span 2; }
.craft figure:nth-child(3) { grid-column: span 3; grid-row: span 2; }
.craft figure:nth-child(4) { grid-column: span 3; grid-row: span 2; }
.craft figure:nth-child(5) { grid-column: span 4; grid-row: span 2; }
.craft figure:nth-child(6) { grid-column: span 12; grid-row: span 2; }
.parallax-img { will-change: transform; }

/* philosophy */
.philo { text-align: center; position: relative; }
.philo blockquote { font-family: var(--f-script); font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.4; margin: 0 auto 60px; max-width: 900px; }
html[lang="en"] .philo blockquote { font-family: var(--f-latin); font-style: italic; font-weight: 500; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: left; }
.pillar { padding: 34px 30px; border: 1px solid rgba(201,163,74,.25); border-radius: var(--radius); background: linear-gradient(160deg, rgba(232,212,154,.07), transparent 60%); transition: border-color .5s, transform .5s var(--ease); }
.pillar:hover { border-color: rgba(232,212,154,.6); transform: translateY(-4px); }
.pillar__i { width: 46px; height: 46px; margin-bottom: 18px; }
.pillar h3 { font-size: 1.4rem; color: var(--gold-champagne); }
.pillar p { color: rgba(248,245,237,.72); margin: 0; font-size: .97rem; }

/* video */
.reels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.reel { position: relative; aspect-ratio: 9/16; border-radius: var(--radius); overflow: hidden; text-align: left; isolation: isolate; box-shadow: var(--shadow); }
.reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.reel::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 50%, rgba(25,21,15,.9)); }
.reel:hover img { transform: scale(1.06); }
.reel__play { position: absolute; top: 50%; left: 50%; width: 66px; height: 66px; margin: -33px 0 0 -33px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,253,248,.15); border: 1px solid rgba(232,212,154,.7); backdrop-filter: blur(6px); color: var(--gold-champagne); transition: transform .4s var(--ease), background .4s; }
.reel__play::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgba(232,212,154,.4); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.reel:hover .reel__play { transform: scale(1.08); background: var(--metal); color: #2A1E0C; }
.reel__play svg { width: 24px; margin-left: 3px; }
.reel__cap { position: absolute; left: 16px; right: 16px; bottom: 16px; color: var(--ivory); font-size: .95rem; line-height: 1.5; }
.reel__cap small { display: flex; align-items: center; gap: 6px; color: var(--gold-champagne); font-size: .75rem; letter-spacing: .08em; margin-bottom: 4px; }
.reel__cap small svg { width: 14px; }

/* articles */
.acard { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--cream); border: 1px solid var(--line-soft); transition: transform .5s var(--ease), box-shadow .5s; }
.acard:hover { transform: translateY(-5px); box-shadow: var(--glow); }
.acard__media { aspect-ratio: 16/9; overflow: hidden; background: var(--black-gold); }
.acard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.acard:hover .acard__media img { transform: scale(1.06); }
.acard__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.acard__meta { display: flex; gap: 10px; align-items: center; font-size: .8rem; color: var(--muted); margin-bottom: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; padding: 3px 12px; border-radius: 999px; background: rgba(232,212,154,.3); color: var(--gold-deep); font-size: .78rem; }
.acard h3 { font-size: 1.22rem; line-height: 1.5; }
html[lang="en"] .acard h3 { font-size: 1.42rem; }
.acard h3 a::after { content: ''; position: absolute; inset: 0; }
.acard p { color: var(--muted); font-size: .94rem; flex: 1; }
.acard--feature { display: grid; grid-template-columns: 1.25fr 1fr; }
.acard--feature .acard__media { aspect-ratio: auto; min-height: 340px; }
.acard--feature .acard__body { padding: 40px; justify-content: center; }
.acard--feature h3 { font-size: 1.8rem; }

/* contact cta */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(40px, 6vw, 72px); background: radial-gradient(ellipse at 80% 20%, #4A3720, var(--black-gold) 70%); color: var(--ivory); display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; isolation: isolate; }
.cta-band canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .8; }
.cta-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.cta-band p { color: rgba(248,245,237,.75); }
.contact-list { display: grid; gap: 12px; }
.contact-item { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 14px; border: 1px solid rgba(201,163,74,.3); background: rgba(255,253,248,.04); transition: background .4s, border-color .4s, transform .4s var(--ease); }
.contact-item:hover { background: rgba(232,212,154,.1); border-color: rgba(232,212,154,.7); transform: translateX(4px); }
.contact-item__i { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--metal); color: #2A1E0C; }
.contact-item__i svg { width: 20px; }
.contact-item small { display: block; font-size: .78rem; color: rgba(232,212,154,.75); letter-spacing: .08em; }
.contact-item b { font-weight: 500; font-size: 1.05rem; word-break: break-all; }

/* footer */
.footer { position: relative; background: var(--black-gold); color: rgba(248,245,237,.75); padding: 90px 0 30px; overflow: hidden; }
.footer::before { content: ''; position: absolute; inset: 0; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M32 6 L58 32 L32 58 L6 32 Z' fill='none' stroke='%23C9A34A'/%3E%3C/svg%3E"); }
.footer__line { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--metal); }
.footer__grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.footer h4 { font-family: var(--f-body); font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-champagne); margin-bottom: 18px; font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a:hover { color: var(--gold-champagne); }
.footer .logo { margin-bottom: 18px; color: var(--gold-champagne); }
.footer__about { font-size: .94rem; max-width: 320px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(201,163,74,.35); display: grid; place-items: center; transition: background .3s, color .3s; }
.socials a:hover { background: var(--metal); color: #2A1E0C; }
.socials svg { width: 18px; }
.footer__bottom { position: relative; margin-top: 60px; padding-top: 24px; border-top: 1px solid rgba(201,163,74,.18); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .82rem; }
.footer__bottom .demo { color: rgba(232,212,154,.55); }

/* ---------- inner page hero ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + 70px) 0 70px; background: linear-gradient(180deg, var(--ivory), var(--cream)); overflow: hidden; isolation: isolate; }
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M32 6 L58 32 L32 58 L6 32 Z' fill='none' stroke='%23C9A34A'/%3E%3Cpath d='M32 20 C38 26 38 30 32 32 C26 30 26 26 32 20 Z M32 44 C38 38 38 34 32 32 C26 34 26 38 32 44 Z' fill='%23C9A34A'/%3E%3C/svg%3E"); mask-image: linear-gradient(90deg, transparent, #000 60%); }
.page-hero canvas { position: absolute; right: 0; top: 0; width: 60%; height: 100%; z-index: -1; opacity: .9; mask-image: linear-gradient(90deg, transparent, #000 40%); }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
.page-hero p { max-width: 640px; color: var(--muted); font-size: 1.08rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .86rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--gold-deep); }
.crumbs li { list-style: none; display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: '/'; opacity: .45; }
.crumbs ol { display: contents; }
.crumbs [aria-current] { color: var(--brown); }

/* ---------- products page ---------- */
.shop { display: grid; grid-template-columns: 270px 1fr; gap: 44px; align-items: start; padding: 50px 0 120px; }
.filters { position: sticky; top: 96px; display: grid; gap: 26px; }
.f-group h3 { font-family: var(--f-body); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 10px; font-weight: 500; }
.f-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.f-list button, .f-list a { width: 100%; display: flex; justify-content: space-between; align-items: center; text-align: left; padding: 9px 14px; border-radius: 10px; font-size: .97rem; color: var(--brown); transition: background .3s, color .3s; }
.f-list button:hover, .f-list a:hover { background: rgba(232,212,154,.25); }
.f-list [aria-pressed="true"], .f-list [aria-current="true"] { background: var(--black-gold); color: var(--gold-champagne); }
.f-list .count { font-size: .78rem; opacity: .7; }
.f-sub { padding-left: 14px; margin: 4px 0 6px; border-left: 1px solid var(--line); }
.f-sub button { font-size: .9rem; padding: 7px 12px; }
.select { width: 100%; appearance: none; padding: 11px 40px 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239C762B' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center; }
.toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: .95rem; user-select: none; }
.toggle input { position: absolute; opacity: 0; }
.toggle__ui { width: 44px; height: 26px; border-radius: 999px; background: #E7DECA; position: relative; transition: background .3s; flex: none; }
.toggle__ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: transform .35s var(--ease); }
.toggle input:checked + .toggle__ui { background: var(--gold); }
.toggle input:checked + .toggle__ui::after { transform: translateX(18px); }
.toggle input:focus-visible + .toggle__ui { outline: 2px solid var(--gold); outline-offset: 2px; }
.shop__bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.shop__count { color: var(--muted); font-size: .95rem; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.active-filters button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: rgba(232,212,154,.3); font-size: .84rem; color: var(--brown); }
.active-filters button svg { width: 12px; }
.filter-open { display: none; }
.empty { text-align: center; padding: 60px 20px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--ivory); }
.empty__i { width: 64px; height: 64px; margin: 0 auto 16px; color: var(--gold); }
.empty h3 { font-size: 1.4rem; }
.empty p { color: var(--muted); }
.empty .chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.empty .chips a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .92rem; }
.empty .chips a:hover { border-color: var(--gold); }

/* search field + autocomplete */
.sfield { position: relative; width: 100%; }
.sfield__box { display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 54px; border-radius: 16px; border: 1px solid var(--line); background: #fff; transition: border-color .3s, box-shadow .3s; }
.sfield__box:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,163,74,.15); }
.sfield__box svg { width: 20px; color: var(--gold-deep); flex: none; }
.sfield input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 1rem; height: 100%; }
.sfield input::-webkit-search-cancel-button { display: none; }
.sfield__clear { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.sfield__clear:hover { background: var(--ivory); }
.sfield__clear svg { width: 14px; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 50; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(48,37,25,.35); overflow: hidden; max-height: min(70vh, 560px); overflow-y: auto; }
.suggest[hidden] { display: none; }
.suggest__head { padding: 12px 18px 6px; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); }
.suggest ul { list-style: none; margin: 0; padding: 4px 8px 8px; }
.sug { display: flex; gap: 14px; align-items: center; padding: 10px 10px; border-radius: 12px; cursor: pointer; }
.sug[aria-selected="true"], .sug:hover { background: rgba(232,212,154,.25); }
.sug img { width: 56px; height: 56px; border-radius: 10px; object-fit: contain; background: var(--ivory); flex: none; }
.sug__name { font-weight: 500; line-height: 1.4; }
.sug__meta { font-size: .8rem; color: var(--muted); }
.sug__snip { font-size: .8rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
mark { background: linear-gradient(transparent 55%, rgba(201,163,74,.45) 55%); color: inherit; padding: 0 1px; }
.suggest__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 18px; border-top: 1px solid var(--line-soft); font-size: .82rem; color: var(--muted); background: var(--cream); }
.suggest__foot a { color: var(--gold-deep); font-weight: 500; }
.suggest__empty { padding: 18px; }
.suggest__empty p { margin: 0 0 10px; }
.suggest__empty .chips { display: flex; gap: 8px; flex-wrap: wrap; }
.suggest__empty .chips a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: .86rem; }
.suggest__empty .chips a:hover { border-color: var(--gold); background: var(--ivory); }

/* global search overlay */
.search-overlay { position: fixed; inset: 0; z-index: 250; background: rgba(25,21,15,.72); backdrop-filter: blur(10px); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 20px 20px; opacity: 0; transition: opacity .35s ease; }
.search-overlay.is-open { opacity: 1; }
.search-panel { width: min(760px, 100%); background: var(--cream); border-radius: 24px; padding: 26px; box-shadow: 0 40px 100px -30px rgba(0,0,0,.6); transform: translateY(-14px); transition: transform .5s var(--ease); }
.search-overlay.is-open .search-panel { transform: none; }
.search-panel__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.search-panel__top h2 { font-size: 1.3rem; margin: 0; }
.search-panel .suggest { position: static; box-shadow: none; margin-top: 12px; max-height: 56vh; }
.pop-terms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pop-terms button { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: .88rem; background: #fff; }
.pop-terms button:hover { border-color: var(--gold); }

/* ---------- product detail ---------- */
.pd { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 5vw, 70px); padding: 30px 0 90px; align-items: start; }
.gallery { position: sticky; top: 96px; }
.gallery__main { position: relative; aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: var(--ivory); border: 1px solid var(--line-soft); cursor: zoom-in; touch-action: pan-y; }
.gallery__track { display: flex; height: 100%; transition: transform .6s var(--ease); }
.gallery__track img { width: 100%; height: 100%; flex: none; object-fit: contain; }
.gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,253,248,.92); box-shadow: 0 6px 18px -8px rgba(0,0,0,.35); z-index: 2; transition: background .3s; }
.gallery__nav:hover { background: #fff; }
.gallery__nav svg { width: 20px; }
.gallery__nav--prev { left: 14px; } .gallery__nav--next { right: 14px; }
.gallery__zoom { position: absolute; right: 14px; bottom: 14px; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(25,21,15,.75); color: var(--gold-champagne); font-size: .78rem; pointer-events: none; }
.gallery__zoom svg { width: 14px; }
.gallery__count { position: absolute; left: 14px; bottom: 14px; z-index: 2; padding: 4px 12px; border-radius: 999px; background: rgba(255,253,248,.9); font-size: .78rem; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.thumbs button { aspect-ratio: 1; border-radius: 14px; overflow: hidden; border: 2px solid transparent; background: var(--ivory); transition: border-color .3s, opacity .3s; opacity: .7; }
.thumbs button[aria-current="true"] { border-color: var(--gold); opacity: 1; }
.thumbs button:hover { opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.ph-note { font-size: .78rem; color: var(--muted); margin-top: 10px; display: flex; gap: 6px; align-items: center; }
.ph-note svg { width: 14px; flex: none; }
.pd__info h1 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 14px; }
.pd__meta { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; font-size: .9rem; color: var(--muted); margin-bottom: 20px; }
.pd__meta a { color: var(--gold-deep); }
.pd__lead { font-size: 1.12rem; color: var(--brown); font-family: var(--f-head); line-height: 1.75; }
.pd__ask { margin: 28px 0; padding: 24px; border-radius: var(--radius); background: var(--ivory); border: 1px solid var(--line-soft); }
.pd__ask h2 { font-size: 1.1rem; font-family: var(--f-body); font-weight: 500; margin-bottom: 14px; }
.pd__ask .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pd__ask .row .btn { padding: 0 12px; }
.fb-note { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); padding: 12px 16px; border-radius: 12px; background: rgba(232,212,154,.18); margin-bottom: 20px; }
.fb-note svg { width: 18px; flex: none; color: #1877F2; margin-top: 4px; }
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 18px 2px; font-family: var(--f-head); font-size: 1.15rem; font-weight: 600; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary svg { width: 18px; transition: transform .4s var(--ease); color: var(--gold-deep); }
.acc details[open] summary svg { transform: rotate(45deg); }
.acc .acc__body { padding: 0 2px 22px; color: var(--muted); }
.specs { width: 100%; border-collapse: collapse; font-size: .95rem; }
.specs th, .specs td { text-align: left; padding: 11px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.specs th { width: 38%; font-weight: 500; color: var(--brown); }
.specs td { color: var(--muted); }
.demo-flag { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: #8A5A2B; background: #FBEFD6; border: 1px solid #EBD3A0; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.demo-flag svg { width: 14px; }

/* lightbox / modal */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(15,12,9,.9); backdrop-filter: blur(8px); opacity: 0; transition: opacity .35s ease; padding: 20px; }
.modal.is-open { opacity: 1; }
.modal__close { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,253,248,.12); color: #fff; z-index: 3; }
.modal__close:hover { background: rgba(255,253,248,.24); }
.modal__close svg { width: 22px; }
.lightbox { position: relative; width: min(92vw, 92vh); aspect-ratio: 1; overflow: hidden; border-radius: 16px; background: var(--ivory); touch-action: none; cursor: zoom-in; }
.lightbox.is-zoomed { cursor: grab; }
.lightbox img { width: 100%; height: 100%; object-fit: contain; transition: transform .45s var(--ease); transform-origin: center; user-select: none; -webkit-user-drag: none; }
.lightbox .gallery__nav { background: rgba(255,253,248,.9); }
.lb-hint { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: .8rem; }
.dialog { width: min(520px, 100%); background: var(--cream); border-radius: 22px; overflow: hidden; transform: translateY(14px); transition: transform .45s var(--ease); }
.modal.is-open .dialog { transform: none; }
.dialog__media { aspect-ratio: 16/10; position: relative; background: var(--black-gold); }
.dialog__media img { width: 100%; height: 100%; object-fit: cover; }
.dialog__body { padding: 26px 28px 30px; }
.dialog__body h2 { font-size: 1.4rem; }
.dialog__body p { color: var(--muted); }

/* ---------- about ---------- */
.ed { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.ed + .ed { margin-top: clamp(80px, 10vw, 130px); }
.ed--rev .ed__media { order: 2; }
.ed__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow); }
.ed__media img { width: 100%; height: 120%; object-fit: cover; margin-top: -10%; }
.ed__num { font-family: var(--f-latin); font-size: 4.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--gold); display: block; margin-bottom: 10px; }
.ed h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.ed p { color: var(--muted); font-size: 1.05rem; }
.big-quote { text-align: center; padding: clamp(70px, 9vw, 120px) 0; }
.big-quote p { font-family: var(--f-script); font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.4; max-width: 920px; margin: 0 auto; }
.faq { max-width: 860px; margin: 0 auto; }

/* ---------- article detail ---------- */
.art-hero { padding: calc(var(--header-h) + 50px) 0 0; background: var(--ivory); }
.art-hero h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 900px; }
.art-hero .acard__meta { margin: 10px 0 30px; font-size: .9rem; }
.art-cover { border-radius: 24px; overflow: hidden; aspect-ratio: 16/7; box-shadow: var(--shadow); background: var(--black-gold); }
.art-cover img { width: 100%; height: 100%; object-fit: cover; }
.art-layout { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 60px; justify-content: center; padding: 70px 0 90px; }
.toc { position: sticky; top: 100px; align-self: start; font-size: .92rem; }
.toc h2 { font-family: var(--f-body); font-size: .76rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); font-weight: 500; }
.toc ol { margin: 0; padding: 0 0 0 18px; display: grid; gap: 8px; color: var(--muted); }
.toc a:hover { color: var(--gold-deep); }
.prose { font-size: 1.08rem; }
.prose .excerpt { font-family: var(--f-head); font-size: 1.3rem; line-height: 1.75; color: var(--brown); padding-bottom: 26px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; scroll-margin-top: 100px; }
.prose p { color: #4A3E30; }
.share { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.share b { margin-right: 8px; font-weight: 500; }
.share a, .share button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: .88rem; background: #fff; transition: border-color .3s, background .3s; }
.share a:hover, .share button:hover { border-color: var(--gold); background: var(--ivory); }
.share svg { width: 16px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chips button { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .92rem; transition: all .3s; }
.filter-chips button[aria-pressed="true"] { background: var(--black-gold); color: var(--gold-champagne); border-color: var(--black-gold); }
.art-tools { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; margin: 46px 0 34px; }
.art-tools .sfield { max-width: 340px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(30px, 5vw, 60px); padding: 50px 0 110px; align-items: start; }
.info-cards { display: grid; gap: 14px; }
.info-card { display: flex; gap: 18px; align-items: center; padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line-soft); background: #fff; transition: border-color .4s, box-shadow .4s, transform .4s var(--ease); }
a.info-card:hover { border-color: rgba(201,163,74,.5); box-shadow: var(--glow); transform: translateY(-3px); }
.info-card .contact-item__i { width: 52px; height: 52px; }
.info-card small { display: block; color: var(--gold-deep); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.info-card b { font-weight: 500; font-size: 1.12rem; word-break: break-word; }
.info-card span { color: var(--muted); font-size: .9rem; }
.map-ph { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; background: linear-gradient(135deg, #EFE6D0, #F8F5ED); border: 1px solid var(--line-soft); display: grid; place-items: center; text-align: center; padding: 30px; }
.map-ph::before { content: ''; position: absolute; inset: 0; opacity: .5; background-image: linear-gradient(rgba(156,118,43,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(156,118,43,.12) 1px, transparent 1px); background-size: 34px 34px; }
.map-ph div { position: relative; }
.map-ph svg { width: 40px; margin: 0 auto 10px; color: var(--gold-deep); }
.map-ph p { color: var(--muted); font-size: .92rem; margin: 0; }
.form { padding: clamp(26px, 4vw, 44px); border-radius: 24px; background: #fff; border: 1px solid var(--line-soft); box-shadow: var(--shadow); }
.form h2 { font-size: 1.6rem; margin-bottom: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .88rem; font-weight: 500; color: var(--brown); }
.field label small { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--cream); outline: 0; transition: border-color .3s, box-shadow .3s, background .3s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,163,74,.14); background: #fff; }
.field .err { font-size: .8rem; color: #A13D2A; min-height: 0; }
.field.has-err input, .field.has-err textarea { border-color: #C4583F; }
.form-success { text-align: center; padding: 20px 0; }
.form-success__i { width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--metal); color: #2A1E0C; animation: pop .6s var(--ease); }
.form-success__i svg { width: 34px; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }
.form-success p { color: var(--muted); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 30px); z-index: 600; background: var(--black-gold); color: var(--gold-champagne); padding: 12px 22px; border-radius: 999px; font-size: .92rem; opacity: 0; pointer-events: none; transition: all .4s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* 404 */
.nf { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 140px 20px 80px; }
.nf b { font-family: var(--f-latin); font-size: 7rem; line-height: 1; display: block; }

/* mobile sticky contact */
.m-cta { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .nav a { padding: 8px 10px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  :root { --header-h: 70px; }
  .nav, .header__tools .btn, .header__tools .lang { display: none; }
  .burger { display: grid; }
  .header__tools { margin-left: auto; }
  .hero__grid { grid-template-columns: 1fr; text-align: left; padding-bottom: 110px; }
  .hero__art { order: -1; width: min(330px, 70vw); margin-top: 10px; }
  .hero__stats { gap: 22px; }
  .story, .ed, .contact-grid, .cta-band, .pd { grid-template-columns: 1fr; }
  .ed--rev .ed__media { order: 0; }
  .story__media .badge { right: 12px; }
  .cats { grid-template-columns: 1fr 1fr; }
  .cat, .cat:nth-child(4), .cat:nth-child(5) { grid-column: span 1; aspect-ratio: 4/5; }
  .cat:nth-child(5) { grid-column: span 2; aspect-ratio: 16/10; }
  .cat p { max-height: none; opacity: 1; }
  .pillars { grid-template-columns: 1fr; }
  .reels { grid-template-columns: repeat(4, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; margin-right: -24px; padding-right: 24px; }
  .reel { scroll-snap-align: start; }
  .shop { grid-template-columns: 1fr; padding-top: 30px; }
  .filter-open { display: inline-flex; }
  .filters { position: fixed; inset: auto 0 0 0; top: auto; z-index: 220; max-height: 86vh; overflow-y: auto; background: var(--cream); padding: 24px 22px calc(24px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; box-shadow: 0 -20px 60px rgba(0,0,0,.3); transform: translateY(105%); transition: transform .5s var(--ease); visibility: hidden; }
  .filters.is-open { transform: none; visibility: visible; }
  .filters__head { display: flex !important; justify-content: space-between; align-items: center; }
  .filters__apply { display: block !important; position: sticky; bottom: 0; }
  .scrim { position: fixed; inset: 0; z-index: 210; background: rgba(25,21,15,.5); }
  .gallery { position: static; }
  .pd__ask .row { grid-template-columns: 1fr 1fr 1fr; }
  .art-layout { grid-template-columns: 1fr; gap: 20px; }
  .toc { position: static; padding: 20px; background: var(--ivory); border-radius: var(--radius); }
  .acard--feature { grid-template-columns: 1fr; }
  .acard--feature .acard__media { min-height: 0; aspect-ratio: 16/9; }
  .acard--feature .acard__body { padding: 26px; }
  .craft { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .craft figure:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .craft figure:nth-child(1), .craft figure:nth-child(6) { grid-column: span 2; grid-row: span 2; }
  .m-cta { display: flex; position: fixed; z-index: 90; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); gap: 8px; padding: 8px; border-radius: 999px; background: rgba(25,21,15,.92); backdrop-filter: blur(10px); box-shadow: 0 16px 40px -10px rgba(0,0,0,.5); transform: translateY(140%); transition: transform .5s var(--ease); }
  .m-cta.is-on { transform: none; }
  .m-cta a { flex: 1; min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; color: var(--gold-champagne); font-size: .9rem; }
  .m-cta a:first-child { background: var(--metal); color: #2A1E0C; font-weight: 500; }
  .m-cta svg { width: 18px; }
  .footer { padding-bottom: 100px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 36px); }
  .grid, .grid--3 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card__body { padding: 12px 12px 14px; }
  .card h3 { font-size: .96rem; }
  html[lang="en"] .card h3 { font-size: 1.08rem; }
  .card__desc { display: none; }
  .card__actions { flex-direction: column; }
  .card__actions .btn { min-height: 38px; }
  .badges { top: 8px; left: 8px; }
  .cats { grid-template-columns: 1fr; }
  .cat, .cat:nth-child(n) { grid-column: span 1; aspect-ratio: 5/4; }
  .sec-head--split { flex-direction: column; align-items: flex-start; }
  .tabs { width: 100%; overflow-x: auto; }
  .tabs button { flex: 1; padding: 8px 12px; white-space: nowrap; }
  .footer__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .pd__ask .row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.35rem; }
  .hero__cta .btn { flex: 1; }
  .hero__stats b { font-size: 1.6rem; }
  .logo__th { font-size: 1.45rem; }
  .logo__mark { width: 36px; height: 36px; }
  .thumbs { gap: 8px; }
  .gallery__nav { width: 40px; height: 40px; }
  .search-overlay { padding: 0; }
  .search-panel { border-radius: 0; min-height: 100%; padding: 18px; }
  .search-panel .suggest { max-height: none; }
  .art-cover { aspect-ratio: 16/10; }
  .lightbox { width: 100%; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .gold-rule { transform: scaleX(1); }
}
html.reduce-motion .reveal { opacity: 1; transform: none; }

@media print {
  .header, .footer, .m-cta, .hero__canvas, .hero__robe, #loader { display: none !important; }
}

/* Thai script should not be widely letter-spaced */
html[lang="th"] .eyebrow, html[lang="th"] .hero__scroll, html[lang="th"] .card__cat,
html[lang="th"] .f-group h3, html[lang="th"] .footer h4, html[lang="th"] .toc h2,
html[lang="th"] .info-card small, html[lang="th"] .suggest__head, html[lang="th"] .contact-item small { letter-spacing: .03em; }
.section--dark.philo { background: linear-gradient(180deg, var(--black-gold), #2A2015 70%, var(--black-gold)); }
.search-overlay[hidden], [hidden] { display: none !important; }
