/* ==========================================================================
   NEXSTONE — main stylesheet
   Logical properties throughout so the same CSS serves RTL (fa, ar) and LTR (en, ru, zh).
   ========================================================================== */

/* ---------- Fonts (bundled, no external requests) ---------- */
@font-face { font-family: "NexFa"; src: url("../fonts/Vazirmatn-FD-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "NexFa"; src: url("../fonts/Vazirmatn-FD-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "NexFa"; src: url("../fonts/Vazirmatn-FD-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "NexFa"; src: url("../fonts/Vazirmatn-FD-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "NexAr"; src: url("../fonts/Vazirmatn-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "NexAr"; src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "NexAr"; src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "NexAr"; src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "NexHi"; src: url("../fonts/noto-sans-devanagari-devanagari-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "NexHi"; src: url("../fonts/noto-sans-devanagari-devanagari-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "NexHi"; src: url("../fonts/noto-sans-devanagari-devanagari-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-cyrillic-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-cyrillic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-cyrillic-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* ---------- Tokens ---------- */
:root {
	--ink: #1e1d1b;
	--ink-2: #2b2926;
	--ink-3: #3a3733;
	--paper: #f4f1ec;
	--paper-2: #ebe6dd;
	--white: #fff;
	--muted: #6e6a62;
	--muted-light: rgba(244, 241, 236, .72);
	--line: rgba(30, 29, 27, .12);
	--line-light: rgba(244, 241, 236, .2);
	--accent: #a98b5d;
	--accent-2: #8c6f45;
	--radius: 2px;
	--gutter: clamp(16px, 4vw, 48px);
	--max: 1320px;
	--header-h: 84px;
	--ease: cubic-bezier(.22, .61, .36, 1);
	--font-latin: "Jost", "Helvetica Neue", Arial, sans-serif;
	--font: var(--font-latin);
	--track-kicker: .22em;
}
html[lang="fa-IR"] { --font: "NexFa", "Jost", Tahoma, sans-serif; --track-kicker: 0; }
html[lang="ar"]    { --font: "NexAr", "Jost", Tahoma, sans-serif; --track-kicker: 0; }
html[lang="hi-IN"] { --font: "Jost", "NexHi", "Nirmala UI", "Noto Sans Devanagari", sans-serif; --track-kicker: .08em; }
html[lang="hi-IN"] body { line-height: 1.8; }
html[lang="zh-CN"] { --font: "Jost", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif; --track-kicker: .12em; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 56px); }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.75;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
html[lang="en-US"] body, html[lang="ru-RU"] body { line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-2); }
h1, h2, h3, h4 { margin: 0; font-weight: 300; line-height: 1.2; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; inset-inline-start: -9999px; top: 8px; z-index: 999; background: var(--ink); color: var(--paper); padding: 8px 14px; }
.skip-link:focus { inset-inline-start: 8px; }
.hp { position: absolute; inset-inline-start: -9999px; }
.icon { width: 22px; height: 22px; flex: none; }
.icon-sm { width: 18px; height: 18px; }
[dir="rtl"] .icon-dir { transform: scaleX(-1); }
.center { text-align: center; }

/* ---------- Type helpers ---------- */
.kicker {
	font-size: 13px;
	letter-spacing: var(--track-kicker);
	text-transform: uppercase;
	color: var(--accent);
	font-weight: 500;
	margin: 0 0 18px;
	display: inline-flex;
	align-items: center;
	gap: 12px;
}
.kicker::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.section-title { font-size: clamp(2rem, 3.6vw, 3.25rem); letter-spacing: -.01em; }
.section-sub { color: var(--muted); max-width: 620px; margin-top: 18px; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--ink-3); }
.lead p { margin-bottom: 1.1em; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 15px 26px;
	font-size: 15px; font-weight: 500; letter-spacing: .02em;
	border: 1px solid transparent; border-radius: var(--radius);
	transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
	white-space: nowrap;
}
.btn .icon { transition: transform .3s var(--ease); }
.btn:hover .icon-dir { transform: translateX(4px); }
[dir="rtl"] .btn:hover .icon-dir { transform: scaleX(-1) translateX(4px); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--white); color: var(--ink); }
.btn-ghost-light { border-color: var(--line-light); color: var(--paper); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { border-color: var(--paper); color: var(--paper); background: rgba(244, 241, 236, .08); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-2); color: var(--white); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--accent-2); color: var(--white); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	height: var(--header-h);
	background: rgba(244, 241, 236, .92);
	backdrop-filter: saturate(1.2) blur(14px);
	-webkit-backdrop-filter: saturate(1.2) blur(14px);
	border-bottom: 1px solid var(--line);
	transition: background .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease), height .4s var(--ease);
}
.site-header.is-overlay { position: fixed; inset-inline: 0; background: transparent; border-color: transparent; color: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.is-overlay.is-scrolled { background: rgba(244, 241, 236, .94); border-color: var(--line); color: var(--ink); backdrop-filter: saturate(1.2) blur(14px); -webkit-backdrop-filter: saturate(1.2) blur(14px); --header-h: 68px; }
.admin-bar .site-header { top: 32px; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: block; flex: none; }
.logo-img { height: 66px; width: auto; }
.logo-light { display: none; }
.is-overlay:not(.is-scrolled) .logo-dark { display: none; }
.is-overlay:not(.is-scrolled) .logo-light { display: block; }
.is-scrolled .logo-img { height: 56px; }

.main-nav { margin-inline-start: auto; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.main-nav > ul > li > a { display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; font-size: 15px; position: relative; }
.main-nav > ul > li > a::after { content: ""; position: absolute; inset-inline: 14px; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .35s var(--ease); }
.main-nav > ul > li > a:hover { color: inherit; }
.main-nav > ul > li > a:hover::after { transform: scaleX(1); }
.has-sub { position: relative; }
.mega {
	position: absolute; top: calc(100% + 14px); inset-inline-start: 50%;
	transform: translate(-50%, 8px);
	display: grid; grid-template-columns: repeat(4, 150px); gap: 10px;
	padding: 14px; background: var(--paper); color: var(--ink);
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .35);
	opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
[dir="rtl"] .mega { transform: translate(50%, 8px); }
.mega::before { content: ""; position: absolute; inset-inline: 0; top: -16px; height: 16px; }
.has-sub:hover .mega, .has-sub:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
[dir="rtl"] .has-sub:hover .mega, [dir="rtl"] .has-sub:focus-within .mega { transform: translate(50%, 0); }
.mega-item { display: block; }
.mega-img { display: block; aspect-ratio: 1; background-size: cover; background-position: center; margin-bottom: 8px; transition: transform .5s var(--ease); }
.mega-item:hover .mega-img { transform: scale(.97); }
.mega-name { display: block; font-weight: 500; font-size: 15px; line-height: 1.4; }
.mega-latin { display: block; font-family: var(--font-latin); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.header-tools { display: flex; align-items: center; gap: 10px; }
.lang-switch { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; font-family: var(--font-latin); font-size: 13px; letter-spacing: .1em; }
.lang-menu {
	position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 150px;
	list-style: none; margin: 0; padding: 6px; background: var(--paper); color: var(--ink);
	box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .3);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .25s var(--ease);
}
.lang-switch.is-open .lang-menu, .lang-switch:focus-within .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu a { display: block; padding: 8px 12px; font-size: 15px; }
.lang-menu a:hover { background: var(--paper-2); color: var(--ink); }
.lang-menu a[aria-current] { color: var(--accent-2); font-weight: 500; }
.burger { display: none; padding: 8px; }

.mobile-menu {
	position: fixed; inset: 0; z-index: 100; background: var(--ink); color: var(--paper);
	padding: 90px var(--gutter) 40px; display: flex; flex-direction: column; gap: 32px; overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-close { position: absolute; top: 22px; inset-inline-end: var(--gutter); padding: 8px; }
.mobile-menu nav > a { display: block; font-size: 30px; font-weight: 300; padding: 6px 0; border-bottom: 1px solid var(--line-light); }
.mobile-menu nav > a:hover { color: var(--accent); }
.mobile-stones { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0 8px; }
.mobile-stones a { font-size: 15px; padding: 6px 12px; border: 1px solid var(--line-light); }
.mobile-langs { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: auto; }
.mobile-langs a[aria-current] { color: var(--accent); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: var(--paper); overflow: hidden; background: var(--ink); }
.hero-slides, .hero-slide, .hero-img { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity 1.4s var(--ease); }
.hero-slide.is-active { opacity: 1; }
.hero-img { background-size: cover; background-position: center; transform: scale(1.12); }
.hero-slide.is-active .hero-img { animation: kenburns 9s var(--ease) forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 19, 17, .55) 0%, rgba(20, 19, 17, .1) 35%, rgba(20, 19, 17, .25) 60%, rgba(20, 19, 17, .82) 100%); }
.hero-content { position: relative; padding-top: calc(var(--header-h) + 60px); padding-bottom: 40px; }
.hero .kicker { color: var(--paper); opacity: .85; }
.hero-title { font-size: clamp(2.6rem, 6.4vw, 6rem); line-height: 1.08; font-weight: 300; letter-spacing: -.02em; max-width: 15ch; }
html[lang="fa-IR"] .hero-title, html[lang="ar"] .hero-title { line-height: 1.3; letter-spacing: 0; max-width: 22ch; font-size: clamp(2.4rem, 5.4vw, 5rem); }
.hero-sub { font-size: clamp(1rem, 1.4vw, 1.2rem); max-width: 560px; margin-top: 24px; color: var(--muted-light); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-foot { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 34px; }
.hero-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; flex: 1; max-width: 860px; }
.hero-tab { text-align: start; color: var(--muted-light); transition: color .3s; }
.hero-tab.is-active, .hero-tab:hover { color: var(--paper); }
.hero-tab-num { font-family: var(--font-latin); font-size: 12px; letter-spacing: .14em; display: block; }
html[lang="fa-IR"] .hero-tab-num, html[lang="ar"] .hero-tab-num { font-family: var(--font); }
.hero-tab-name { display: block; font-size: 15px; margin: 2px 0 10px; }
.hero-tab-bar { display: block; height: 2px; background: var(--line-light); overflow: hidden; }
.hero-tab-bar i { display: block; height: 100%; width: 0; background: var(--paper); }
.hero-tab.is-active .hero-tab-bar i { animation: tabprogress var(--slide-ms, 6500ms) linear forwards; }
@keyframes tabprogress { to { width: 100%; } }
.scroll-cue { writing-mode: vertical-rl; font-family: var(--font-latin); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted-light); position: relative; padding-bottom: 54px; }
html[lang="fa-IR"] .scroll-cue, html[lang="ar"] .scroll-cue, html[lang="zh-CN"] .scroll-cue { font-family: var(--font); letter-spacing: .1em; }
.scroll-cue::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 50%; width: 1px; height: 44px; background: var(--paper); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 140px); }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.intro-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.intro-title { font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.35; }
.intro-body { color: var(--ink-3); padding-top: 8px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 40px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.stat dt { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 300; line-height: 1; color: var(--accent-2); }
.stat dd { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.stats-wide { margin-top: 64px; }

/* Stone cards */
.stone-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stone-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stone-card { position: relative; display: block; aspect-ratio: 3 / 4.3; overflow: hidden; color: var(--paper); background: var(--ink); isolation: isolate; }
.stone-card:hover { color: var(--paper); }
.stone-card-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 1.2s var(--ease); }
.stone-card:hover .stone-card-img { transform: scale(1.08); }
.stone-card-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 19, 17, 0) 35%, rgba(20, 19, 17, .78) 100%); transition: background .5s var(--ease); }
.stone-card:hover .stone-card-shade { background: linear-gradient(180deg, rgba(20, 19, 17, .15) 0%, rgba(20, 19, 17, .88) 100%); }
.stone-card-num { position: absolute; top: 20px; inset-inline-start: 22px; font-size: 13px; letter-spacing: .14em; opacity: .9; }
.stone-card-body { position: absolute; inset-inline: 22px; bottom: 22px; display: flex; flex-direction: column; }
.stone-card-latin { font-family: var(--font-latin); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; opacity: .8; }
.stone-card-name { font-size: clamp(1.6rem, 2.4vw, 2.2rem); font-weight: 300; line-height: 1.25; margin: 4px 0 6px; }
.stone-card-tag { font-size: 14px; color: var(--muted-light); line-height: 1.6; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .5s var(--ease); }
.stone-card:hover .stone-card-tag { max-height: 80px; opacity: 1; }
.stone-card-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; font-weight: 500; padding-top: 12px; border-top: 1px solid var(--line-light); }
.stone-card-more .icon { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.stone-card:hover .stone-card-more .icon { transform: translateX(6px); }
[dir="rtl"] .stone-card:hover .stone-card-more .icon { transform: scaleX(-1) translateX(6px); }

/* Process (dark) */
.process { background: var(--ink); color: var(--paper); }
.process .section-title { color: var(--paper); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.step { background: var(--ink); display: flex; flex-direction: column; }
.step-img { aspect-ratio: 4 / 3; background-size: cover; background-position: center; filter: grayscale(.35) brightness(.85); transition: filter .6s var(--ease); }
.step:hover .step-img { filter: none; }
.step-body { padding: 26px 24px 32px; position: relative; }
.step-num { position: absolute; top: 26px; inset-inline-end: 24px; font-size: 13px; color: var(--accent); letter-spacing: .1em; }
.step-icon { color: var(--accent); width: 28px; height: 28px; margin-bottom: 18px; }
.step h3 { font-size: 1.35rem; margin-bottom: 10px; color: var(--paper); }
.step p { color: var(--muted-light); font-size: 15px; margin: 0; }

/* Inspiration rail */
.rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); padding-bottom: 8px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail-item { position: relative; flex: 0 0 auto; width: clamp(260px, 34vw, 520px); aspect-ratio: 4 / 3; overflow: hidden; scroll-snap-align: start; background: var(--paper-2); }
.rail-item:nth-child(3n+2) { width: clamp(220px, 24vw, 360px); aspect-ratio: 3 / 4; align-self: flex-end; }
.rail-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.rail-item:hover img { transform: scale(1.05); }
.rail-cap { position: absolute; inset-inline-start: 14px; bottom: 12px; color: var(--paper); font-size: 14px; background: rgba(20, 19, 17, .45); padding: 4px 10px; backdrop-filter: blur(6px); }
.rail-nav { display: flex; gap: 8px; }
.rail-btn { width: 52px; height: 52px; border: 1px solid var(--line); display: grid; place-items: center; border-radius: 50%; transition: all .3s var(--ease); }
.rail-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
[dir="ltr"] .rail-prev .icon, [dir="rtl"] .rail-next .icon { transform: scaleX(-1); }

/* Why */
.why { background: var(--paper-2); }
.why .section-title { margin-bottom: 48px; }
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.why-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.why-item { padding: 32px 28px 8px 0; border-inline-end: 1px solid var(--line); padding-inline: 0 28px; }
.why-item + .why-item { padding-inline-start: 28px; }
.why-item:last-child { border-inline-end: 0; }
.why-num { font-size: 13px; color: var(--accent-2); letter-spacing: .1em; }
.why-item h3 { font-size: 1.3rem; margin: 14px 0 10px; font-weight: 400; }
.why-item p { color: var(--muted); font-size: 15px; }

/* CTA band */
.cta-band { position: relative; color: var(--paper); background-size: cover; background-position: center; background-attachment: fixed; padding-block: clamp(90px, 12vw, 170px); text-align: center; overflow: hidden; }
.cta-shade { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(20, 19, 17, .82), rgba(20, 19, 17, .5)); }
.cta-inner { position: relative; max-width: 900px; }
.cta-band h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.25; }
.cta-band p { color: var(--muted-light); margin: 22px auto 36px; max-width: 560px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Page heroes ---------- */
.stone-hero, .page-hero { position: relative; min-height: 88vh; min-height: 88svh; display: flex; align-items: flex-end; color: var(--paper); overflow: hidden; background: var(--ink); }
.page-hero { min-height: 70vh; min-height: 70svh; }
.page-hero-short { min-height: 56vh; min-height: 56svh; }
.stone-hero-img, .page-hero-img { position: absolute; inset: -4% 0 0; background-size: cover; background-position: center; animation: kenburns 12s var(--ease) forwards; will-change: transform; }
.stone-hero-content, .page-hero-content { position: relative; padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(48px, 8vw, 96px); }
.crumbs { font-size: 14px; color: var(--muted-light); display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.crumbs a:hover { color: var(--paper); }
.stone-hero-latin { font-family: var(--font-latin); font-size: 13px; letter-spacing: .4em; text-transform: uppercase; margin-bottom: 10px; color: var(--paper); opacity: .85; }
.stone-hero-title { font-size: clamp(3.4rem, 10vw, 9rem); line-height: 1; font-weight: 300; letter-spacing: -.02em; }
html[lang="fa-IR"] .stone-hero-title, html[lang="ar"] .stone-hero-title { line-height: 1.25; letter-spacing: 0; }
.stone-hero-tag { font-size: clamp(1.05rem, 1.6vw, 1.35rem); color: var(--muted-light); margin-top: 18px; max-width: 640px; }
.page-hero .kicker { color: var(--paper); opacity: .85; }
.page-title { font-size: clamp(2.4rem, 5.6vw, 5rem); line-height: 1.15; max-width: 18ch; }
.page-sub { color: var(--muted-light); max-width: 560px; margin-top: 18px; font-size: 1.1rem; }
.page-title-dark { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 28px; }

/* Stone sub navigation */
.subnav { position: sticky; top: var(--header-h); z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); }
.has-overlay-header .subnav { top: 68px; }
.subnav-inner { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; align-items: center; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a { padding: 16px 14px; font-size: 15px; white-space: nowrap; position: relative; color: var(--muted); }
.subnav a.is-current, .subnav a:hover { color: var(--ink); }
.subnav a.is-current::after { content: ""; position: absolute; inset-inline: 14px; bottom: -1px; height: 2px; background: var(--accent); }
.subnav-cta { margin-inline-start: auto; color: var(--accent-2) !important; font-weight: 500; }

.stone-about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.stone-about .section-title { margin-bottom: 26px; }
.facts { margin: 0; border-top: 1px solid var(--ink); }
.fact { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.fact dt { font-size: 14px; color: var(--muted); }
.fact dd { margin: 0; font-size: 15px; }

.stone-quarry { background: var(--paper-2); }
.quarry-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.quarry-img { margin: 0; overflow: hidden; aspect-ratio: 4 / 3.2; }
.quarry-img img { width: 100%; height: 100%; object-fit: cover; }
.quarry-body .section-title { margin-bottom: 22px; }
.quarry-body p { color: var(--ink-3); }
.quarry-body .btn { margin-top: 12px; }

.stone-specs { background: var(--ink); color: var(--paper); }
.stone-specs .section-title { color: var(--paper); }
.stone-specs .btn-outline { border-color: var(--line-light); color: var(--paper); }
.stone-specs .btn-outline:hover { background: var(--paper); color: var(--ink); }
.spec-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.spec-card { background: var(--ink); padding: 30px 28px; display: flex; flex-direction: column; gap: 8px; transition: background .4s var(--ease); }
.spec-card:hover { background: var(--ink-2); }
.spec-label { font-size: 15px; color: var(--muted-light); }
.spec-value { font-family: var(--font-latin); font-size: clamp(1.8rem, 2.8vw, 2.5rem); font-weight: 300; color: var(--paper); text-align: start; }
[dir="rtl"] .spec-value { text-align: right; }
.spec-value small { font-size: 15px; color: var(--accent); }
.spec-std { font-family: var(--font-latin); font-size: 12px; letter-spacing: .14em; color: var(--accent); }
[dir="rtl"] .spec-std { text-align: right; }
.spec-note { margin-top: 18px; font-size: 13px; color: var(--muted-light); }

.gal-tabs { display: flex; gap: 4px; background: var(--paper-2); padding: 4px; border-radius: 40px; }
.gal-tab { padding: 10px 22px; border-radius: 40px; font-size: 15px; color: var(--muted); transition: all .3s var(--ease); }
.gal-tab sup { font-size: 11px; opacity: .7; }
.gal-tab.is-active { background: var(--ink); color: var(--paper); }
.gal-grid { display: none; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.gal-grid.is-active { display: grid; animation: fadeup .6s var(--ease); }
.gal-item { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); border-radius: var(--radius); cursor: zoom-in; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-item:hover, .gal-item:focus-visible { transform: scale(1.04); box-shadow: 0 12px 28px rgba(20, 19, 17, .18); z-index: 1; }
.gal-zoom { position: absolute; inset: 0; display: grid; place-items: center; color: var(--paper); background: rgba(20, 19, 17, .12); opacity: 0; transition: opacity .4s var(--ease); }
.gal-zoom .icon { width: 28px; height: 28px; }
.gal-item:hover .gal-zoom { opacity: 1; }
@keyframes fadeup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* About */
.story-grid { display: grid; grid-template-columns: 1fr 2.2fr; gap: clamp(24px, 6vw, 96px); }
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(160px, 20vw, 300px); gap: 10px; }
.mosaic-item { overflow: hidden; }
.mosaic-item:first-child { grid-row: span 2; }
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.mosaic-item:hover img { transform: scale(1.05); }
.values { background: var(--paper-2); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-cards { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.contact-card { display: flex; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.contact-card > .icon { color: var(--accent); margin-top: 4px; }
.contact-card h3 { font-size: 14px; color: var(--muted); font-weight: 400; margin-bottom: 4px; }
.contact-card p { margin: 0 0 6px; }
.contact-card a { font-size: 17px; }
.contact-form-wrap { background: var(--white); padding: clamp(24px, 4vw, 56px); box-shadow: 0 40px 80px -50px rgba(30, 29, 27, .35); }
.contact-form-wrap .section-title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-bottom: 26px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field span { font-size: 14px; color: var(--muted); }
.field input, .field select, .field textarea {
	font: inherit; font-size: 16px; color: var(--ink);
	background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
	padding: 10px 0; transition: border-color .3s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--accent); }
.field textarea { resize: vertical; }
.form-msg { padding: 14px 16px; margin-bottom: 22px; display: flex; gap: 10px; align-items: center; }
.form-msg.is-ok { background: #e8efe3; color: #2f4a22; }
.form-msg.is-err { background: #f6e6e1; color: #7a2b16; }

/* Contact people */
.contact-person h3 { font-size: 1.15rem; color: var(--ink); font-weight: 500; margin-bottom: 6px; }
.contact-person > .icon { color: #1f7a4d; }
.contact-mail { display: inline-flex; align-items: center; gap: 6px; font-size: 15px !important; color: var(--muted); margin-top: 4px; }
.contact-person p { margin: 12px 0 0; }
.btn-wa { background: #1f7a4d; color: #fff; }
.btn-wa:hover { background: #17603c; color: #fff; }

/* Map */
.map-section { padding-bottom: 0; }
.map-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.map-head .section-title { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
.map-frame { height: clamp(320px, 45vw, 520px); background: var(--paper-2); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.85) contrast(1.05); transition: filter .5s var(--ease); }
.map-frame:hover iframe { filter: none; }

/* Plain pages */
.page-plain { padding-top: calc(var(--header-h) + 60px); }
.prose { max-width: 820px; }
.prose h2 { font-size: 1.8rem; margin: 1.6em 0 .6em; }
.prose a { color: var(--accent-2); text-decoration: underline; }
.post-item { padding: 28px 0; border-bottom: 1px solid var(--line); }
.big-404 { font-size: clamp(5rem, 16vw, 12rem); font-weight: 300; line-height: 1; color: var(--accent); margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-light); padding-top: clamp(64px, 8vw, 110px); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 60px; }
.footer-logo { height: 76px; width: auto; margin-bottom: 22px; }
.footer-brand p { max-width: 340px; }
.footer-title { font-size: 13px; letter-spacing: var(--track-kicker); text-transform: uppercase; color: var(--accent); font-weight: 500; margin-bottom: 18px; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a:hover, .footer-contact a:hover { color: var(--paper); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { margin-top: 4px; color: var(--accent); }
.socials { display: flex; gap: 8px; margin-top: 20px; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-light); border-radius: 50%; transition: all .3s var(--ease); }
.socials a:hover { background: var(--paper); color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px; border-top: 1px solid var(--line-light); font-size: 13px; }
.footer-langs { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-langs a[aria-current] { color: var(--accent); }

.wa-float { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 45; width: 56px; height: 56px; border-radius: 50%; background: #1f7a4d; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .45); transition: transform .3s var(--ease); }
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float .icon { width: 28px; height: 28px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(15, 14, 13, .95); display: grid; grid-template-columns: 80px 1fr 80px; align-items: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox img { max-height: 82vh; max-width: 100%; object-fit: contain; animation: fadeup .4s var(--ease); }
.lightbox figcaption { color: var(--muted-light); font-size: 14px; }
.lightbox button { color: var(--paper); width: 56px; height: 56px; display: grid; place-items: center; margin: auto; }
.lb-close { position: absolute; top: 16px; inset-inline-end: 16px; }
[dir="ltr"] .lb-prev .icon, [dir="rtl"] .lb-next .icon { transform: scaleX(-1); }


/* ---------- v2: stats band ---------- */
.stats-band { padding-block: clamp(48px, 6vw, 80px); border-block: 1px solid var(--line); }
.stats-band.is-dark { background: var(--ink-2); color: var(--paper); border: 0; }
.stats6 { margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.stat6 { border-inline-start: 1px solid var(--line); padding-inline-start: 18px; }
.is-dark .stat6 { border-color: var(--line-light); }
.stat6 dt { font-size: clamp(2.2rem, 4vw, 3.6rem); font-weight: 300; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat6 dd { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.is-dark .stat6 dd { color: var(--muted-light); }

/* ---------- v2: six-step chain ---------- */
.steps-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- v2: products ---------- */
.products-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.product-table { border-top: 1px solid var(--ink); }
.pt-row { display: grid; grid-template-columns: 1.2fr 1.6fr 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: center; }
.pt-head { font-size: 13px; color: var(--muted); padding-block: 12px; }
.pt-name { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.pt-name .icon { color: var(--accent); }

/* ---------- v2: export ---------- */
.export { background: var(--paper-2); overflow: hidden; }
.export-grid { display: grid; grid-template-columns: 1fr 1.7fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.export-text { color: var(--ink-3); margin: 22px 0 26px; }
.country-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.country-list li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--line); background: var(--paper); font-size: 14px; cursor: default; transition: all .3s var(--ease); }
.country-list li:hover, .country-list li.is-hot { border-color: var(--accent); color: var(--accent-2); }
.country-list .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.export-map-wrap { position: relative; }
.export-map { width: 100%; height: auto; display: block; }
.export-map .m-c { fill: #d9d2c5; stroke: var(--paper-2); stroke-width: .6; }
.export-map .m-exp { fill: #c7ad84; stroke: var(--paper-2); stroke-width: .6; transition: fill .3s; }
.export-map .m-exp.is-hot { fill: var(--accent-2); }
.export-map .m-iran { fill: var(--ink); stroke: var(--paper-2); stroke-width: .6; }
.export-map .m-route { fill: none; stroke: var(--accent-2); stroke-width: 1.6; stroke-dasharray: 4 5; opacity: .85; }
.js .export-map .m-route { stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 2.2s var(--ease); }
.js .is-in .export-map .m-route { stroke-dashoffset: 0; }
.export-map .m-route.is-hot { stroke: var(--ink); stroke-width: 2.4; }
.export-map .m-dot { fill: var(--paper); stroke: var(--accent-2); stroke-width: 2; }
.export-map .m-origin { fill: var(--accent); stroke: var(--paper); stroke-width: 2; }
.export-map .m-origin-pulse { fill: var(--accent); opacity: .35; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .45; } to { transform: scale(3.2); opacity: 0; } }
.export-photos-title { font-size: 1.4rem; margin: 56px 0 20px; font-weight: 400; }
.mosaic-export { grid-template-columns: repeat(3, 1fr); }

/* ---------- v2: about journey + vision ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; top: 22px; inset-inline: 0; height: 1px; background: var(--line); }
.tl-item { position: relative; padding-inline-end: 32px; padding-top: 0; }
.tl-num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 14px; position: relative; margin-bottom: 22px; }
.tl-item h3 { font-size: 1.4rem; margin-bottom: 10px; font-weight: 400; }
.tl-item p { color: var(--muted); }
.vm { display: grid; grid-template-columns: 1fr 1fr; }
.vm-item { position: relative; padding: clamp(56px, 8vw, 120px) clamp(24px, 6vw, 88px); background-size: cover; background-position: center; color: var(--paper); isolation: isolate; }
.vm-item::before { content: ""; position: absolute; inset: 0; background: rgba(20, 19, 17, .62); z-index: -1; }
.vm-dark { background: var(--ink); }
.vm-dark::before { display: none; }
.vm-item .kicker { color: var(--accent); }
.vm-item h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.3; margin-bottom: 20px; }
.vm-item p { color: var(--muted-light); max-width: 520px; }

@media (max-width: 1100px) {
	.stats6 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
	.steps-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.products-grid, .export-grid { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
	.stats6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.steps-6 { grid-template-columns: 1fr; }
	.pt-row { grid-template-columns: 1fr; gap: 6px; }
	.pt-head { display: none; }
	.pt-row [data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: 13px; }
	.timeline { grid-template-columns: 1fr; gap: 32px; }
	.timeline::before { top: 0; bottom: 0; inset-inline: 22px auto; width: 1px; height: auto; }
	.tl-item { padding-inline-start: 64px; padding-inline-end: 0; }
	.tl-num { position: absolute; inset-inline-start: 0; top: 0; }
	.vm { grid-template-columns: 1fr; }
	.mosaic-export { grid-template-columns: 1fr 1fr; }
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.main-nav, .header-cta { display: none; }
	.burger { display: block; }
	.header-tools { margin-inline-start: auto; }
	.stone-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.why-item, .why-item + .why-item { padding-inline: 0 24px; border-inline-end: 0; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.spec-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
	:root { --header-h: 68px; }
	body { font-size: 16px; }
	.logo-img { height: 52px; }
	.intro-grid, .stone-about-grid, .quarry-grid, .story-grid, .contact-grid { grid-template-columns: 1fr; }
	.stone-grid, .stone-grid-3 { grid-template-columns: 1fr; }
	.stone-card { aspect-ratio: 4 / 3.6; }
	.stone-card-tag { max-height: 80px; opacity: 1; }
	.steps, .why-grid, .why-grid-3 { grid-template-columns: 1fr; }
	.hero-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.scroll-cue { display: none; }
	.hero-actions .btn { flex: 1 1 auto; justify-content: center; }
	.stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
	.fact { grid-template-columns: 110px 1fr; }
	.spec-cards { grid-template-columns: 1fr; }
	.gal-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
	.gal-tabs { width: 100%; }
	.gal-tab { flex: 1; padding: 10px 8px; }
	.mosaic { grid-template-columns: 1fr 1fr; }
	.form-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.cta-band { background-attachment: scroll; }
	.lightbox { grid-template-columns: 48px 1fr 48px; }
	.rail-nav { display: none; }
	.header-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
}

/* ---------- v3: company videos ---------- */
.videos { background: var(--ink); color: var(--paper); }
.videos .section-title { color: var(--paper); }
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.video-item { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-2); }
.video-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-item figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 40px 18px 16px; font-size: 14px; color: var(--paper); background: linear-gradient(transparent, rgba(0, 0, 0, .65)); }
@media (max-width: 1024px) { .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
	.video-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
	.video-item { scroll-snap-align: start; }
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-item:first-child { grid-column: span 2; aspect-ratio: auto; }
@media (max-width: 560px) { .video-item:first-child { grid-column: auto; aspect-ratio: 4 / 5; } }
.video-grid-few { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.video-grid-few .video-item:first-child { grid-column: auto; aspect-ratio: 4 / 5; }

/* ---------- v3.2: stone varieties + team ---------- */
.variety { background: var(--paper-2); }
.variety .section-lead { max-width: 60ch; color: var(--muted); margin-top: 12px; }
.variety-videos { margin-top: 12px; }
.team-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 48px); max-width: 980px; }
.team-photo { margin: 0 0 18px; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; display: block; }
.team-name { font-size: clamp(22px, 2.4vw, 28px); font-weight: 400; margin: 0; }
.team-role { color: var(--accent-2); font-size: 15px; letter-spacing: .04em; margin: 6px 0 12px; }
.team-bio { color: var(--muted); margin: 0; }
@media (max-width: 640px) { .team-cards { grid-template-columns: 1fr; } }
.team-crew { margin: clamp(40px, 6vw, 72px) 0 0; }
.team-crew img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.team-crew figcaption { margin-top: 14px; color: var(--muted); max-width: 70ch; }
.team-crew figcaption strong { color: var(--ink); font-weight: 500; margin-inline-end: 6px; }
.gal-label { position: absolute; inset-inline: 0; bottom: 0; padding: 22px 12px 10px; font-size: 13px; color: var(--paper); background: linear-gradient(transparent, rgba(20, 19, 17, .6)); }

/* ---------- Blog & daily loadings ---------- */
.post-grid, .load-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
.post-card, .load-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.post-card-img, .load-card-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.post-card-img img, .load-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.post-card:hover img, .load-card:hover img { transform: scale(1.04); }
.post-card-body, .load-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-date { font-size: 13px; color: var(--muted); }
.post-card-title { font-size: 1.25rem; line-height: 1.4; }
.post-card-title a:hover { color: var(--accent-2); }
.post-card-text { color: var(--muted); font-size: 15px; line-height: 1.8; flex: 1; }
.post-card .link-arrow { align-self: flex-start; font-size: 14px; }
.load-count { position: absolute; bottom: 10px; inset-inline-end: 10px; background: rgba(30, 29, 27, .72); color: var(--paper); font-size: 12px; padding: 4px 10px; border-radius: 20px; }
.load-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; color: var(--ink-3); }
.load-meta span { display: inline-flex; align-items: center; gap: 6px; }
.load-meta .icon { color: var(--accent); }
.load-single { padding-top: calc(var(--header-h) + 56px); }
.load-single .kicker a, .post-title + * a, .page-hero .kicker a { color: inherit; }
.load-facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 22px; }
.load-facts dt { font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.load-facts dd { margin: 4px 0 0; font-size: 1.1rem; }
.load-gallery { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.load-note { margin-top: 36px; }
.post-back { margin-top: 40px; }
.post-title { font-size: clamp(2rem, 4.4vw, 3.6rem); max-width: 22ch; }
.post-body img { max-width: 100%; height: auto; border-radius: var(--radius); }
.post-body p, .post-body li { line-height: 2; }
.post-body h3 { font-size: 1.35rem; margin: 1.4em 0 .5em; }
.empty-note { color: var(--muted); font-size: 1.1rem; text-align: center; padding: 40px 0; }
.pager { margin-top: 48px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pager .page-numbers { min-width: 42px; padding: 9px 14px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); }
.pager .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.news-strip + .news-strip { padding-top: 0; }
@media (max-width: 1024px) { .post-grid, .load-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
	.post-grid, .load-grid { grid-template-columns: 1fr; }
	.load-gallery { grid-template-columns: repeat(2, 1fr); gap: 6px; }
}

/* ---------- FAQ ---------- */
.faq { background: var(--paper-2); }
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq .section-head { position: sticky; top: calc(var(--header-h) + 24px); margin-bottom: 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item h3 { font-size: 1.12rem; font-weight: 500; line-height: 1.5; margin: 0; }
.faq-icon { flex: 0 0 18px; height: 18px; position: relative; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; inset: 8px 0 auto; height: 1.5px; background: var(--accent-2); transition: transform .3s var(--ease); }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0); }
.faq-a { padding: 0 0 24px; color: var(--ink-3); line-height: 1.9; max-width: 68ch; }
.faq-item summary:hover h3 { color: var(--accent-2); }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; } .faq .section-head { position: static; } }

/* ---------- Article tables and comments ---------- */
.post-body table { width: 100%; border-collapse: collapse; margin: 1.8em 0; font-size: .95rem; background: var(--white); border: 1px solid var(--line); }
.post-body thead th { background: var(--ink); color: var(--paper); font-weight: 500; letter-spacing: .02em; }
.post-body th, .post-body td { padding: 12px 16px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.6; }
.post-body tbody tr:nth-child(even) td { background: var(--paper); }
.post-body tbody td:first-child { font-weight: 500; color: var(--ink-2); }
.post-body table + p em, .post-body p > em:only-child { color: var(--muted); font-size: .9rem; }
@media (max-width: 640px) {
	.post-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
	.post-body th, .post-body td { white-space: normal; min-width: 140px; padding: 10px 12px; }
}
.post-comments { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.comments-title { font-size: 1.6rem; margin: 0 0 24px; }
.comments-title span { color: var(--muted); font-size: 1rem; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { margin-inline-start: 32px; }
.comment-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.comment-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.comment-avatar { border-radius: 50%; }
.comment-author { font-weight: 500; }
.comment-date { color: var(--muted); font-size: 13px; margin-inline-start: auto; }
.comment-text p { margin: 0 0 .6em; line-height: 1.9; }
.comment-pending { color: var(--accent-2); font-size: 14px; margin: 0 0 8px; }
.comment-reply { margin: 6px 0 0; font-size: 14px; }
.comment-reply a { color: var(--accent-2); text-decoration: none; }
.comment-respond { margin-top: 32px; }
.comment-reply-title { font-size: 1.4rem; margin: 0 0 8px; }
.comment-reply-title small { font-size: 14px; margin-inline-start: 12px; }
.comment-notes { color: var(--muted); font-size: 14px; }
.comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.comment-form .comment-notes, .comment-form .comment-form-comment, .comment-form .form-submit, .comment-form .comment-form-cookies-consent { grid-column: 1 / -1; }
.comment-form .field { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.comment-form label { font-size: 14px; color: var(--muted); }
.comment-form input[type=text], .comment-form input[type=email], .comment-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); font: inherit; color: var(--ink); }
.comment-form input:focus, .comment-form textarea:focus { outline: 0; border-color: var(--accent); }
.comment-form .form-submit { margin: 4px 0 0; }
@media (max-width: 640px) { .comment-form { grid-template-columns: 1fr; } .comment-list .children { margin-inline-start: 16px; } }
