/* Neelkanth Minerals: "Makrana White"
   Polished white marble, ink type, honey-calcite gold as the one accent, graphite for deep bands.
   The landing turns a real 3D calcite stone into powder on scroll, then sieves it by mesh. */

:root {
  --marble: #f6f5f1;
  --surface: #ffffff;
  --tint: #eeece6;
  --ink: #1d1c1a;
  --ink-2: #3a3834;
  --muted: #5d5a54;
  --line: #dcd8cf;
  --line-2: #c9c4b9;
  --honey: #e2a53c;
  --honey-deep: #8e5a0d;   /* accent for small text: 5.6:1 on marble */
  --honey-display: #b07a1a; /* accent for display text: 3.4:1 on marble */
  --graphite: #23211e;
  --graphite-2: #1a1917;
  --on-dark: #f5f1ea;
  --on-dark-2: #b9b1a4;
  --ok: #2c6b3c;
  --ok-soft: #e4efe2;
  --wait: #8a5200;
  --wait-soft: #f7ecd9;

  --f: 'Familjen Grotesk', 'Mukta', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --sec: clamp(72px, 9vw, 132px);
  --radius: 18px;
  --shadow: 0 1px 2px rgba(29, 28, 26, .05), 0 22px 44px -30px rgba(29, 28, 26, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html:not(.lenis) { scroll-behavior: smooth; } }
/* smooth wheel scrolling (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; font: 400 1.0625rem/1.6 var(--f); color: var(--ink); background: var(--marble); caret-color: var(--honey-deep); }
html[lang="hi"] body { line-height: 1.75; }
::selection { background: var(--ink); color: var(--marble); }
/* no visible scrollbar; the page still scrolls by wheel, touch, keys and drag */
html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* polished marble: soft grey veins, fixed behind every page */
.marble {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; background-color: var(--marble);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='1000' viewBox='0 0 1600 1000' preserveAspectRatio='none'%3E%3Cfilter id='v' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0035 .011' numOctaves='4' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .58 0 0 0 0 .56 0 0 0 0 .52 0 0 0 -2.6 1.32'/%3E%3C/filter%3E%3Crect width='1600' height='1000' filter='url(%23v)' opacity='.5'/%3E%3C/svg%3E");
  background-size: cover; background-position: center;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration-thickness: 1.5px; text-underline-offset: .22em; }
a:hover { color: var(--honey-deep); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.sec--deep :focus-visible, .foot :focus-visible { outline-color: var(--on-dark); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
b { font-weight: 700; }
small { font-size: .85em; }
.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i .fill { fill: currentColor; stroke: none; }
.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.chem { text-transform: none; }
.ph { background: rgba(226, 165, 60, .2); color: var(--wait); border-bottom: 1.5px dashed var(--honey-deep); padding: 0 .2em; border-radius: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--marble); padding: 10px 16px; font-weight: 700; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ── buttons ───────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 52px;
  padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  font: 700 1rem/1.2 var(--f); transition: background-color .2s ease, color .2s ease, transform .25s var(--ease), box-shadow .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-rate { background: var(--honey); color: var(--ink); box-shadow: 0 14px 26px -16px rgba(142, 90, 13, .9); }
.btn-rate:hover { background: #d6952a; color: var(--ink); transform: translateY(-1px); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--marble); }
.btn-ink { background: var(--ink); color: var(--marble); }
.btn-ink:hover { background: var(--ink-2); color: var(--marble); }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: .95rem; }
.mast .btn-sm { background: var(--ink); color: var(--marble); box-shadow: none; }
.mast .btn-sm:hover { background: var(--ink-2); color: var(--marble); }

/* ── masthead ──────────────────────────── */
.mast { position: sticky; top: 0; z-index: 50; background: rgba(246, 245, 241, .82); backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); border-bottom: 1px solid rgba(29, 28, 26, .08); }
.mast-row { display: flex; align-items: center; gap: 24px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.logo { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; color: var(--ink-2); text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { color: var(--ink); background: rgba(29, 28, 26, .06); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--honey); border-radius: 0; }
.nav .lang { box-shadow: inset 0 0 0 1px var(--line-2); border-radius: 999px; }
.menu-btn { display: none; }

/* ── the film: stone to powder (pinned, scroll-scrubbed) ── */
.film { position: relative; }
.js .film.is-live { height: 400vh; }
.stage { position: relative; height: calc(100vh - 70px); height: calc(100svh - 70px); min-height: 620px; overflow: hidden; }
/* graphite falls over the marble while the stone breaks, so the white powder can be seen */
.stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--dark, 0);
  background: radial-gradient(60% 65% at 50% 52%, #34312c 0%, #23211e 55%, #1a1917 100%); }
.film-title, .film-steps b, .ruler a, .ruler b { transition: color .45s ease; }
.film.is-dark .film-title, .film.is-dark .film-steps b, .film.is-dark .ruler a, .film.is-dark .ruler b { color: var(--on-dark); }
.film.is-dark .film-steps span, .film.is-dark .ruler span, .film.is-dark .film-hint { color: var(--on-dark-2); }
.film.is-dark .ruler { border-top-color: var(--on-dark); }
.film.is-dark .ruler a::before { background: var(--on-dark); }
.film.is-dark .film-title em, .film.is-dark .ruler a.on b { color: var(--honey); }
.js .film.is-live .stage { position: sticky; top: 70px; }
.film-gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s ease; }
.film.gl-ready .film-gl { opacity: 1; }
.stone-poster { position: absolute; left: 50%; top: 47%; width: min(36vw, 46vh); height: auto; transform: translate(-50%, -50%); filter: drop-shadow(0 40px 34px rgba(29, 28, 26, .22)); transition: opacity .6s ease; pointer-events: none; }
.film.gl-ready .stone-poster { opacity: 0; }
.film-title { position: absolute; inset: 0; margin: 0; pointer-events: none; font-weight: 700; letter-spacing: -.05em; line-height: .86; font-size: clamp(3.4rem, 9.2vw, 9.4rem); }
.film-title span { position: absolute; }
.film-title .fa { left: var(--gutter); top: 5%; max-width: 6ch; }
.film-title .fb { right: var(--gutter); bottom: 20%; text-align: right; font-size: .72em; }
.film-title em { font-style: normal; color: var(--honey-display); }
html[lang="hi"] .film-title { letter-spacing: -.01em; line-height: 1.08; font-size: clamp(3rem, 7.6vw, 7.6rem); }
.film-side { position: absolute; left: var(--gutter); bottom: 22%; width: min(340px, 34vw); transition: opacity .5s ease, transform .6s var(--ease); }
.film-side .hero-alt { font-weight: 700; margin-bottom: 8px; }
.film-side .lede { color: var(--muted); }
.film-side .hero-cta { margin-top: 18px; }
.film.past-intro .film-side { opacity: 0; transform: translateY(12px); pointer-events: none; }
.film-steps { position: absolute; left: var(--gutter); bottom: 22%; margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.film.past-intro .film-steps { opacity: 1; }
.film-steps li { display: flex; align-items: baseline; gap: 12px; opacity: .3; transform: translateX(-6px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.film-steps li.on { opacity: 1; transform: none; }
.film-steps b { font-size: clamp(1.3rem, 2.2vw, 1.9rem); letter-spacing: -.02em; }
.film-steps span { color: var(--muted); font-size: .95rem; }
.film-hint { position: absolute; left: 50%; bottom: 112px; transform: translateX(-50%); align-items: center; gap: 6px; font-size: .9rem; color: var(--muted); white-space: nowrap; transition: opacity .4s ease; display: none; }
.film.is-live .film-hint { display: inline-flex; }
.film.past-intro .film-hint { opacity: 0; }
/* the mesh ruler: the five grades as marks on a fineness scale */
.ruler { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 26px; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1.5px solid var(--ink); }
.ruler a { position: relative; padding: 14px 8px 0 0; text-decoration: none; color: var(--ink); }
.ruler a::before { content: ""; position: absolute; left: 0; top: -1.5px; width: 1.5px; height: 14px; background: var(--ink); }
.ruler a::after { content: ""; position: absolute; left: 0; right: 14px; top: -4px; height: 6px; border-radius: 3px; background: var(--honey); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.ruler a.on::after, .ruler a:hover::after { transform: scaleX(1); }
.ruler b { display: block; font-size: 1.55rem; letter-spacing: -.03em; line-height: 1.1; }
.ruler a.on b { color: var(--honey-deep); }
.ruler span { font-size: .85rem; color: var(--muted); }

/* ── the live sieve ────────────────────── */
.sieve-sec { padding-block: var(--sec); border-top: 1px solid var(--line); }
.sieve-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.sieve-sec h2 { font: 700 clamp(2.2rem, 4.4vw, 3.8rem)/.98 var(--f); letter-spacing: -.04em; max-width: 16ch; }
html[lang="hi"] .sieve-sec h2 { line-height: 1.2; letter-spacing: 0; }
.sieve-sec .lede { margin-top: 14px; color: var(--muted); max-width: 46ch; }
.mesh-ctl { margin-top: 30px; }
.mesh-ctl label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; color: var(--muted); }
.mesh-ctl output { color: var(--ink); font-weight: 700; font-size: 1.25rem; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; margin: 16px 0 8px; border-radius: 99px; cursor: pointer; background: linear-gradient(90deg, var(--ink) var(--fill, 50%), var(--line) var(--fill, 50%)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 32px; height: 32px; border-radius: 50%; background: var(--honey); border: 3px solid var(--ink); box-shadow: 0 6px 14px rgba(29, 28, 26, .25); }
input[type="range"]::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: var(--honey); border: 3px solid var(--ink); }
input[type="range"]:focus-visible { outline: 3px solid var(--ink); outline-offset: 8px; }
.mesh-ticks { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.sieve-card { margin-top: 26px; display: grid; gap: 14px; padding: 22px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.sc-code { font-size: 2.4rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.sc-name { margin-top: 4px; color: var(--muted); }
.sieve-box { position: relative; aspect-ratio: 4 / 5; max-height: 720px; border-radius: 24px; overflow: hidden; background: radial-gradient(70% 45% at 50% 30%, #3a3631, transparent 70%), linear-gradient(180deg, #2a2824, #1c1b18); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
#sieve-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.readout { position: absolute; left: 18px; right: 18px; bottom: 14px; display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; color: var(--muted); pointer-events: none; font-variant-numeric: tabular-nums; }
.readout { color: var(--on-dark-2); }
.readout b { color: var(--on-dark); }
.swap { animation: swap .5s var(--ease); }
@keyframes swap { from { opacity: 0; filter: blur(5px); transform: translateY(5px); } }

/* ── facts strip ───────────────────────── */
.facts { background: var(--graphite); color: var(--on-dark); }
.facts-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; list-style: none; margin-block: 0; padding-block: 22px; }
.facts-row li { display: flex; align-items: center; gap: 10px; color: var(--on-dark-2); }
.facts-row .i { color: var(--honey); }
.facts-row b { color: var(--on-dark); }

/* ── sections ──────────────────────────── */
.sec { padding-block: var(--sec); }
.sec--tight { padding-block: clamp(40px, 6vw, 72px) var(--sec); }
.sec--tint { background: rgba(255, 255, 255, .55); border-block: 1px solid var(--line); }
.sec--deep { background: var(--graphite); color: var(--on-dark); }
.sec h2, .quote h2 { font: 700 clamp(2.2rem, 4.4vw, 3.8rem)/.98 var(--f); letter-spacing: -.04em; max-width: 20ch; }
html[lang="hi"] .sec h2, html[lang="hi"] .quote h2, html[lang="hi"] .page-head h1 { line-height: 1.22; letter-spacing: 0; }
.sec .lede, .quote .lede { margin-top: 14px; font-size: 1.1rem; color: var(--muted); max-width: 58ch; }
.sec--deep .lede { color: var(--on-dark-2); }
.sec-head { margin-bottom: clamp(32px, 4vw, 52px); }
.typical { margin-top: 22px; font-size: .92rem; color: var(--muted); }
.more { margin-top: 36px; }

/* ── grade cards ───────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: clamp(16px, 2vw, 24px); }
.card {
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: 22px; border-radius: var(--radius);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
  transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) translateY(var(--lift, 0));
  transition: transform .5s var(--ease), box-shadow .3s ease;
}
.card:hover { --lift: -4px; box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 50px -30px rgba(29, 28, 26, .45); }
.card-head h3 { font-size: 2.1rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.card-head h3 a { color: var(--ink); text-decoration: none; }
.card-head h3 a:hover { color: var(--honey-deep); }
.card-head p { margin-top: 4px; color: var(--muted); font-size: .95rem; }
.card.is-pick { box-shadow: inset 0 0 0 2px var(--honey), 0 30px 50px -30px rgba(142, 90, 13, .5); }
.card.is-pick::after { content: attr(data-pick-label); position: absolute; top: 18px; right: 18px; font: 700 .78rem/1 var(--f); color: var(--ink); background: var(--honey); padding: 7px 10px; border-radius: 999px; }
.card-use { font-size: .95rem; color: var(--muted); }
.card-use b { color: var(--ink); }
.card-foot { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.card-foot a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 10px 12px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .92rem; white-space: nowrap; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.card-foot a:hover { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.card-foot a.go { background: var(--ink); color: var(--marble); box-shadow: none; }
.card-foot a.go:hover { background: var(--ink-2); color: var(--marble); }

/* spec grid */
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.specs > div { background: var(--surface); padding: 10px 12px 9px; min-width: 0; }
.specs dt { font-size: .76rem; font-weight: 600; color: var(--muted); }
.specs dd { margin: 2px 0 0; font-weight: 700; font-size: 1.18rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.specs dd small { font-size: .6em; color: var(--muted); font-weight: 500; }
.specs--full { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card .specs, .sieve-card .specs { background: none; border: 0; border-radius: 0; gap: 0; border-top: 1.5px solid var(--ink); }
.card .specs > div, .sieve-card .specs > div { background: none; padding: 10px 10px 8px 0; border-bottom: 1px solid var(--line); }
.cards--home { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cards--home > .card { grid-column: span 2; }
.cards--home > .card:nth-child(4), .cards--home > .card:nth-child(5) { grid-column: span 3; }

/* fineness bar: D97 on a log micron scale */
.fine-head { display: flex; justify-content: space-between; align-items: baseline; font-size: .8rem; color: var(--muted); font-weight: 600; }
.fine-head b { color: var(--ink); font-size: .95rem; }
.fine-bar { position: relative; height: 6px; margin-top: 8px; border-radius: 99px; background: linear-gradient(90deg, #efe6d4, #d8d2c6); }
.fine-bar i { position: absolute; top: 50%; left: var(--pos); width: 16px; height: 16px; border-radius: 50%; background: var(--honey); box-shadow: 0 0 0 2px var(--ink); transform: translate(-50%, -50%); transition: left .7s var(--ease); }
.fine-scale { display: flex; justify-content: space-between; margin-top: 7px; font-size: .72rem; color: var(--muted); }

.stock { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--ok); background: var(--ok-soft); padding: 5px 11px; border-radius: 999px; }
.stock[data-stock="order"] { color: var(--wait); background: var(--wait-soft); }

/* ── order terms ───────────────────────── */
.terms-wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.terms-ph { margin-top: 18px; font-size: .95rem; }
.terms { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin: 0; }
.terms > div { padding: 18px 0 20px; border-top: 1.5px solid var(--ink); }
.terms dt { font-size: .85rem; font-weight: 600; color: var(--muted); }
.terms dd { margin: 6px 0 0; }
.terms dd b { display: block; font-size: 1.75rem; line-height: 1.1; letter-spacing: -.03em; }
.terms dd span { display: block; margin-top: 6px; color: var(--muted); font-size: .95rem; max-width: 34ch; }

/* ── industries ────────────────────────── */
.ind-list { list-style: none; margin: 0; padding: 0; }
.ind-list > li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 3fr); gap: 12px clamp(20px, 3vw, 48px); padding-block: 26px; border-top: 1px solid var(--line-2); }
.ind-list > li:last-child { border-bottom: 1px solid var(--line-2); }
.ind-list h3 { font-size: 1.5rem; line-height: 1.15; font-weight: 700; letter-spacing: -.025em; }
.ind-why p { max-width: 60ch; }
.chk { margin-top: 8px; font-size: .95rem; color: var(--muted); }
.chk b { color: var(--ink); }
.ind-try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; align-content: start; }
.ind-try > span { width: 100%; font-size: .85rem; font-weight: 600; color: var(--muted); }
.chip { font-weight: 700; text-decoration: none; padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.chip:hover { background: var(--ink); color: var(--marble); }
.ind-cards { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; margin-top: 6px; }
.mini { display: grid; gap: 12px; padding: 16px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.mini > a { font-weight: 700; font-size: 1.4rem; text-decoration: none; letter-spacing: -.03em; }

/* ── process (graphite band) ───────────── */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 20px; }
.process li { position: relative; padding-top: 26px; border-top: 1.5px solid rgba(245, 241, 234, .3); }
.process li::before { content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--honey); }
.p-k { display: block; font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; }
.p-d { display: block; margin-top: 6px; font-size: .95rem; color: var(--on-dark-2); }

/* ── quote builder ─────────────────────── */
.quote { padding-block: var(--sec); }
.quote-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.qform, .cform { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-top: 28px; }
.f { display: flex; flex-direction: column; gap: 6px; }
.f--wide { grid-column: 1 / -1; }
.f > span { font-size: .88rem; font-weight: 600; color: var(--muted); }
input:not([type="range"]):not([type="checkbox"]), select, textarea {
  font: 400 1.02rem/1.4 var(--f); color: var(--ink); background: var(--surface); width: 100%; min-height: 50px;
  border: 1.5px solid var(--line-2); border-radius: 12px; padding: 11px 13px; transition: border-color .2s ease, box-shadow .2s ease;
}
select { -webkit-appearance: none; appearance: none; padding-right: 40px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%235d5a54' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; }
input::placeholder, textarea::placeholder { color: #7d796f; }
input:not([type="range"]):focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(226, 165, 60, .35); }
input[aria-invalid="true"] { border-color: #a1311a; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.check input { width: 22px; height: 22px; min-height: 0; accent-color: var(--ink); }
.orcall { margin-top: 18px; color: var(--muted); }
.orcall a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.6em; font-weight: 600; color: var(--ok); }
.form-status.err { color: #a1311a; }
.chat { border-radius: 24px; overflow: hidden; background: var(--tint); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.chat-top { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--graphite); color: var(--on-dark); }
.chat-top span { display: flex; flex-direction: column; line-height: 1.2; }
.chat-top small { color: var(--on-dark-2); }
.chat-body { min-height: 210px; padding: 24px 18px; display: flex; align-items: flex-end; background: radial-gradient(rgba(29, 28, 26, .06) 1px, transparent 1.5px) 0 0 / 18px 18px; }
.bubble { margin: 0 0 0 auto; max-width: 92%; padding: 12px 14px 14px; border-radius: 16px 16px 4px 16px; background: var(--surface); color: var(--ink); font: 500 1rem/1.55 var(--f); white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: inset 0 0 0 1px var(--line), 0 2px 4px rgba(29, 28, 26, .06); }

/* ── page heads & inner pages ──────────── */
.page-head { padding-block: clamp(48px, 7vw, 96px) clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.page-head h1 { font: 700 clamp(2.6rem, 6vw, 5.4rem)/.94 var(--f); letter-spacing: -.045em; max-width: 16ch; }
.page-head .lede { margin-top: 16px; font-size: 1.12rem; color: var(--muted); max-width: 58ch; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.jump a { text-decoration: none; font-weight: 600; padding: 9px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.jump a:hover { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.mesh-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.mesh { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.mesh th { text-align: left; font-size: .85rem; font-weight: 600; color: var(--on-dark-2); padding: 0 0 10px; border-bottom: 1px solid rgba(245, 241, 234, .4); }
.mesh td { font-size: 1.4rem; font-weight: 700; padding: 10px 0 8px; border-bottom: 1px solid rgba(245, 241, 234, .14); }

.grade-hero { padding-block: clamp(32px, 5vw, 64px) clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.crumbs { font-size: .92rem; color: var(--muted); margin-bottom: 20px; }
.grade-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.grade-code { font: 700 clamp(3.6rem, 8vw, 7rem)/.9 var(--f); letter-spacing: -.055em; }
.grade-hero h1 { margin-top: 12px; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.15; font-weight: 700; letter-spacing: -.025em; }
.grade-hero .lede { margin-top: 12px; font-size: 1.1rem; color: var(--muted); max-width: 48ch; }
.grade-hero .card-use { margin-top: 14px; }
.grade-hero .stock { margin-top: 14px; }
.sheet { display: grid; gap: 16px; padding: 24px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.sheet-pack { color: var(--muted); font-size: .95rem; }
.sheet-pack b { color: var(--ink); }
.sheet .typical { margin-top: 0; }
.others { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.others a { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 16px; text-decoration: none; color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s ease, transform .3s var(--ease); }
.others a:hover { box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-2px); color: var(--ink); }
.others b { font-size: 1.5rem; letter-spacing: -.03em; }
.others span { font-size: .92rem; color: var(--muted); }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.two h2 { margin-bottom: 22px; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.slot { margin: 0; aspect-ratio: 4 / 3; display: grid; place-content: center; gap: 6px; text-align: center; padding: 16px; border-radius: var(--radius); border: 2px dashed var(--line-2); background: rgba(255, 255, 255, .6); }
.slot-name { font-weight: 700; }
.slot figcaption { font-size: .92rem; color: var(--muted); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ticks li { display: flex; align-items: center; gap: 12px; font-size: 1.15rem; font-weight: 600; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ticks .i { color: var(--honey-deep); }
.docs { margin: 0; }
.docs > div { padding: 14px 0; border-top: 1px solid var(--line); }
.docs dt { font-size: .85rem; font-weight: 600; color: var(--muted); }
.docs dd { margin: 4px 0 0; font-size: 1.1rem; }
.docs dd small { display: block; margin-top: 6px; }
.docs--contact dd a { font-weight: 700; }

/* ── footer ────────────────────────────── */
.foot { background: var(--graphite-2); color: var(--on-dark-2); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1.6fr 1fr 1fr; gap: 32px; padding-block: 64px 44px; }
.foot h2 { font-size: .95rem; font-weight: 700; color: var(--on-dark); margin-bottom: 14px; }
.foot a { color: var(--on-dark); }
.foot a:hover { color: var(--honey); }
.foot-name { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 700; color: var(--on-dark); margin-bottom: 6px; }
.foot-note { margin-top: 14px; font-size: .9rem; max-width: 36ch; }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.foot-list li { display: flex; gap: 10px; align-items: flex-start; }
.foot-list .i { margin-top: 4px; color: var(--honey); }
.foot-base { padding-block: 18px 26px; border-top: 1px solid rgba(245, 241, 234, .12); font-size: .85rem; }

.actionbar, .print-only { display: none; }

/* ── motion: reveal on scroll (content stays visible without JS) ── */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms); }
  .js .card.reveal { transition: opacity .8s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms), box-shadow .3s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .card.reveal.in { transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) translateY(var(--lift, 0)); }
  .film-title .fa, .film-title .fb, .film-side, .ruler { animation: rise 1s var(--ease) both; }
  .film-title .fb { animation-delay: .12s; }
  .film-side { animation-delay: .22s; }
  .ruler { animation-delay: .32s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

/* ── responsive ────────────────────────── */
@media (max-width: 1080px) {
  .process { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards--home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards--home > .card:nth-child(n) { grid-column: auto; }
  .cards--home > .card:last-child { grid-column: 1 / -1; }
  .ind-list > li { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .ind-try { grid-column: 2; }
  .ind-cards { grid-column: 1 / -1; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 70px 0 auto 0; z-index: 40; flex-direction: column; align-items: stretch; gap: 8px;
    background: var(--marble); padding: 10px var(--gutter) 26px; box-shadow: 0 30px 40px -24px rgba(29, 28, 26, .35);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s ease, transform .3s var(--ease), visibility 0s .3s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav ul { flex-direction: column; }
  .nav ul a { font-size: 1.25rem; padding: 14px 8px; }
  .nav .lang { align-self: flex-start; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 999px; color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); border: 0; cursor: pointer; }
  .menu-btn .i { width: 22px; height: 22px; }
  .btn-sm { display: none; }
  .sieve-grid, .terms-wrap, .quote-grid, .two, .mesh-wrap, .grade-grid { grid-template-columns: minmax(0, 1fr); }
  .slots { grid-template-columns: 1fr 1fr; }
  .actionbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--ink); padding-bottom: env(safe-area-inset-bottom); }
  .actionbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; color: var(--marble); text-decoration: none; font-weight: 700; font-size: 1.05rem; }
  .actionbar a.go { background: var(--honey); color: var(--ink); }
  body { padding-bottom: 58px; }
}
@media (max-width: 760px) {
  .stage { min-height: 0; height: calc(100svh - 70px - 58px); }
  .js .film.is-live .stage { top: 70px; }
  .film-title { font-size: clamp(2.5rem, 11vw, 3.6rem); }
  .film-title .fa { top: 3%; max-width: none; }
  .film-title .fb { left: var(--gutter); right: auto; top: calc(3% + .98em); bottom: auto; text-align: left; max-width: none; font-size: 1em; }
  html[lang="hi"] .film-title .fb { top: calc(3% + 1.15em); }
  .film-steps li:not(.on) { display: none; }
  .stone-poster { width: 54vw; top: 44%; }
  .film-side, .film-steps { left: var(--gutter); right: var(--gutter); width: auto; bottom: 84px; }
  .film-side .lede { font-size: .95rem; line-height: 1.45; }
  .film-side .hero-cta { margin-top: 12px; }
  .film-hint { display: none !important; }
  .ruler { bottom: 18px; }
  .ruler span { display: none; }
  .ruler b { font-size: 1.15rem; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .hero-cta .btn { width: 100%; }
  .terms { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .ind-list > li { grid-template-columns: minmax(0, 1fr); }
  .ind-try { grid-column: auto; }
  .qform, .cform { grid-template-columns: 1fr; }
  .slots { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .facts-row { display: grid; grid-template-columns: 1fr 1fr; }
  .cards--home { grid-template-columns: minmax(0, 1fr); }
  .sieve-box { aspect-ratio: 4 / 4.6; }
}

/* ── print: the grade page becomes a datasheet ── */
@media print {
  @page { margin: 14mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: #fff; padding: 0; font-size: 11pt; }
  .marble, .mast, .foot, .actionbar, .no-print, .crumbs, .skip, .quote { display: none !important; }
  .print-only { display: block; }
  .print-head { padding-bottom: 10px; margin-bottom: 16px; border-bottom: 2px solid var(--ink); font-size: 10pt; }
  .grade-grid { grid-template-columns: 1fr 1fr; }
  .sheet { box-shadow: inset 0 0 0 1px var(--line); }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ── auto-playing film: copy stays put, the active step is a single caption, pause/play in the corner ── */
.film.is-auto .film-steps { left: 50%; right: auto; bottom: 104px; transform: translateX(-50%); opacity: 1; text-align: center; }
.film.is-auto .film-steps li:not(.on) { display: none; }
.film.is-auto .film-steps li { justify-content: center; white-space: nowrap; }
.film.is-dark .film-side .hero-alt { color: var(--on-dark); }
.film.is-dark .film-side .lede { color: var(--on-dark-2); }
.film-side .hero-alt, .film-side .lede { transition: color .45s ease; }
/* tap hint: invites the visitor to grind the stone; fades once used */
.film-tap { position: absolute; left: 50%; bottom: 104px; transform: translateX(-50%); z-index: 2; display: none; align-items: center; gap: 8px; white-space: nowrap;
  font: 600 .95rem/1 var(--f); color: var(--ink); background: rgba(255, 255, 255, .78); border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line-2), 0 10px 24px -14px rgba(29, 28, 26, .4); transition: opacity .5s ease; }
.film-tap::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--honey); box-shadow: 0 0 0 0 rgba(226, 165, 60, .6); animation: tap-pulse 1.8s ease-out infinite; }
@keyframes tap-pulse { to { box-shadow: 0 0 0 10px rgba(226, 165, 60, 0); } }
.film.is-auto .film-tap { display: inline-flex; }
.film.was-tapped .film-tap { opacity: 0; pointer-events: none; }
.film.is-auto .film-steps { opacity: 0; transition: opacity .5s ease; }
.film.is-auto.is-playing .film-steps { opacity: 1; }
@media (max-width: 760px) {
  .film.is-auto .film-steps { display: none; }
  .film-tap { bottom: auto; top: 58%; white-space: nowrap; font-size: .88rem; padding: 9px 14px; }
}

/* ── page transitions: the header stays put while the page cross-fades and settles ── */
@view-transition { navigation: auto; }
.mast { view-transition-name: mast; }
.marble { view-transition-name: marble; }
.foot { view-transition-name: foot; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vt-out .26s cubic-bezier(.4, 0, 1, 1) both; }
  ::view-transition-new(root) { animation: vt-in .55s var(--ease) both; }
  ::view-transition-group(mast), ::view-transition-group(marble) { animation-duration: 0s; }
}
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }

/* ── more life on every page ── */
@media (prefers-reduced-motion: no-preference) {
  /* the marble drifts very slowly, on the compositor */
  .marble { inset: -4%; animation: marble-drift 70s ease-in-out infinite alternate; will-change: transform; }
  @keyframes marble-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-2.5%, -1.5%, 0) scale(1.04); } }

  /* page headings rise from behind a mask, a honey rule draws under them */
  .grade-code { animation: mask-up 1s var(--ease) both; }
  .page-head .lede, .grade-hero .lede { animation: rise .9s var(--ease) .18s both; }
  .page-head .jump a, .grade-hero .card-use, .grade-hero .stock, .grade-hero .hero-cta { animation: rise .8s var(--ease) both; }
  .page-head .jump a:nth-child(1) { animation-delay: .26s; } .page-head .jump a:nth-child(2) { animation-delay: .3s; }
  .page-head .jump a:nth-child(3) { animation-delay: .34s; } .page-head .jump a:nth-child(4) { animation-delay: .38s; }
  .page-head .jump a:nth-child(5) { animation-delay: .42s; } .page-head .jump a:nth-child(n+6) { animation-delay: .46s; }
  .grade-hero .card-use { animation-delay: .22s; } .grade-hero .stock { animation-delay: .28s; } .grade-hero .hero-cta { animation-delay: .34s; }
  .grade-hero .sheet { animation: rise 1s var(--ease) .2s both; }
  .page-head .wrap { position: relative; }
  .page-head .wrap::after { content: ""; display: block; width: 88px; height: 4px; margin-top: 28px; border-radius: 2px; background: var(--honey); transform-origin: left; animation: draw .9s var(--ease) .35s both; }

  /* cards arrive one after another; their figures fade up in order */
  .cards > .card:nth-child(2) { --d: 70ms; } .cards > .card:nth-child(3) { --d: 140ms; }
  .cards > .card:nth-child(4) { --d: 210ms; } .cards > .card:nth-child(5) { --d: 280ms; }
  .js .reveal .specs > div { opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .js .reveal.in .specs > div { opacity: 1; transform: none; }
  .js .reveal.in .specs > div:nth-child(1) { transition-delay: calc(var(--d, 0ms) + .2s); }
  .js .reveal.in .specs > div:nth-child(2) { transition-delay: calc(var(--d, 0ms) + .26s); }
  .js .reveal.in .specs > div:nth-child(3) { transition-delay: calc(var(--d, 0ms) + .32s); }
  .js .reveal.in .specs > div:nth-child(4) { transition-delay: calc(var(--d, 0ms) + .38s); }
  .js .reveal.in .specs > div:nth-child(5) { transition-delay: calc(var(--d, 0ms) + .44s); }
  .js .reveal.in .specs > div:nth-child(n+6) { transition-delay: calc(var(--d, 0ms) + .5s); }

  /* fineness markers slide along their scale when they come into view */
  .js .reveal:not(.in) .fine-bar i { left: 0; }
  .fine .fine-bar i { transition: left 1.1s var(--ease) .25s; }

  /* industry rows: the title leads, the reasons follow */
  .js .ind-list > li.reveal .ind-why, .js .ind-list > li.reveal .ind-try { opacity: 0; transform: translateY(10px); transition: opacity .7s var(--ease) .12s, transform .7s var(--ease) .12s; }
  .js .ind-list > li.reveal .ind-try { transition-delay: .22s; }
  .js .ind-list > li.reveal.in .ind-why, .js .ind-list > li.reveal.in .ind-try { opacity: 1; transform: none; }
}
@keyframes mask-up { from { clip-path: inset(0 0 100% 0); transform: translateY(.35em); } to { clip-path: inset(0 0 -10% 0); transform: none; } }
@keyframes draw { from { transform: scaleX(0); } }

/* a page prepared in the background waits, then plays its entrance when shown */
html.pre *, html.pre *::before, html.pre *::after { animation-play-state: paused !important; }

/* word-by-word titles */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.w > span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .page-head h1 .w > span, .grade-hero h1 .w > span { animation: word-up .9s var(--ease) calc(var(--i) * 70ms + .05s) both; }
  .js .reveal h2 .w > span { transform: translateY(110%); transition: transform .85s var(--ease) calc(var(--i) * 60ms); }
  .js .reveal.in h2 .w > span { transform: none; }
}
@keyframes word-up { from { transform: translateY(110%); } }
