/* Geologica и Martian Mono, OFL. Скачаны с Google Fonts, лежат у нас: без внешних запросов и блокировок в Китае. */
/* cyrillic-ext */
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/geologica-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/geologica-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/geologica-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/geologica-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Martian Mono';
  font-style: normal;
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
  src: url("/fonts/martian-mono-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Martian Mono';
  font-style: normal;
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
  src: url("/fonts/martian-mono-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Martian Mono';
  font-style: normal;
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
  src: url("/fonts/martian-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Martian Mono';
  font-style: normal;
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
  src: url("/fonts/martian-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Xiva Honey — сайт
   Палитра: небо Заамина, можжевельник, мак, мёд. Видео в первом экране,
   bento-плитки и движение по скроллу. */

:root {
  --ground: #ECEAE2;
  --tile: #F8F7F2;
  --ink: #13231B;
  --muted: #57645C;
  --line: rgba(19, 35, 27, .12);
  --line-strong: rgba(19, 35, 27, .5);
  --juniper: #1C3629;
  --on-juniper: #E4ECE5;
  --on-juniper-muted: #9FB3A6;
  --honey: #E6A11B;
  --on-honey: #1A1405;
  --on-honey-muted: rgba(26, 20, 5, .72);
  --poppy: #C9321E;
  --poppy-deep: #A42715;
  --on-poppy: #FFFFFF;
  --night: #0E1511;
  --on-night: #E7ECE6;
  --on-night-muted: #A3B0A8;
  --night-line: rgba(231, 236, 230, .24);
  --photo-dim: none;
  --logo-filter: none;
  --logo-blend: multiply;

  --display: "Geologica", "Helvetica Neue", Arial, sans-serif;
  --text: "Geologica", -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --t-xs: .75rem;
  --t-sm: .875rem;
  --t-md: 1.0625rem;
  --t-lg: 1.3125rem;

  --gutter: clamp(16px, 2vw, 28px);
  --gap: clamp(10px, 1.1vw, 16px);
  --r-tile: clamp(16px, 1.8vw, 26px);
  --section: clamp(4rem, 8vw, 7rem);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0D110C;
    --tile: #171B14;
    --ink: #E3E9E3;
    --muted: #98A59D;
    --line: rgba(227, 233, 227, .12);
    --line-strong: rgba(227, 233, 227, .45);
    --juniper: #1E3A2C;
    --honey: #D99A22;
    --on-honey: #150F03;
    --poppy: #CF3A24;
    --poppy-deep: #A92C19;
    --night: #070B09;
    --photo-dim: brightness(.9);
    --logo-filter: invert(1) hue-rotate(180deg);
    --logo-blend: screen;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --ground: #0D110C;
  --tile: #171B14;
  --ink: #E3E9E3;
  --muted: #98A59D;
  --line: rgba(227, 233, 227, .12);
  --line-strong: rgba(227, 233, 227, .45);
  --juniper: #1E3A2C;
  --honey: #D99A22;
  --on-honey: #150F03;
  --poppy: #CF3A24;
  --poppy-deep: #A92C19;
  --night: #070B09;
  --photo-dim: brightness(.9);
  --logo-filter: invert(1) hue-rotate(180deg);
  --logo-blend: screen;
  color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--t-md);
  font-weight: 360;
  line-height: 1.55;
  font-variation-settings: "SHRP" 0;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p, figure, h1, h2, h3 { margin: 0; }
:focus-visible { outline: 2px solid var(--poppy); outline-offset: 3px; }

.wrap { max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.contact,
.mail,
.product-spec,
.meter-label,
.meter-axis,
.ok,
.step-num,
.hero-foot p,
.m-word sup {
  font-family: var(--mono);
  font-variation-settings: "wdth" 87.5;
  font-weight: 400;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}

h1, h2, h3, .big, .product-name, .nots li, .m-word {
  font-family: var(--display);
  font-variation-settings: "SHRP" 100;
}
h1, h2, h3 { font-weight: 620; letter-spacing: -.03em; line-height: 1.02; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: .98; letter-spacing: -.04em; }
h3 { font-size: var(--t-lg); font-weight: 560; letter-spacing: -.015em; line-height: 1.15; }

/* Pills */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.3rem;
  border: 1px solid transparent; border-radius: 999px;
  font-family: var(--text); font-size: var(--t-sm); font-weight: 520; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.pill-sm { min-height: 40px; padding: .5rem 1rem; }
.pill-poppy { background: var(--poppy); color: var(--on-poppy); }
.pill-poppy:hover { background: var(--poppy-deep); color: var(--on-poppy); }
.pill-ghost { color: #FFFFFF; border-color: rgba(255, 255, 255, .5); }
.pill-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #FFFFFF; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: var(--ground); transition: background-color .25s, box-shadow .25s; }
.nav .wrap { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.75rem); padding-block: .6rem; transition: padding .25s; }
.nav.is-scrolled { background: color-mix(in srgb, var(--ground) 82%, transparent); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 1px 0 var(--line); }
.nav.is-scrolled .wrap { padding-block: .4rem; }
.nav .pill-sm { transition: min-height .25s, padding .25s, background-color .2s, color .2s; }
.nav.is-scrolled .pill-sm { min-height: 36px; padding-block: .4rem; }
.logo img, .logo-foot { height: 32px; width: auto; mix-blend-mode: var(--logo-blend); filter: var(--logo-filter); }
.nav-links { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; font-size: var(--t-sm); font-weight: 450; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--poppy); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; }
.langs {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border: 1px solid var(--line); border-radius: 999px;
  font-size: var(--t-xs); font-weight: 500; line-height: 1; color: var(--muted);
}
.langs a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.5rem; min-height: 28px; padding: 0 .7rem;
  border-radius: 999px; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.langs a:hover { color: var(--ink); background: var(--tile); }
.langs a[aria-current] { background: var(--ink); color: var(--ground); }
.langs-menu { display: none; justify-self: start; margin-top: 1rem; font-size: var(--t-sm); }
.langs-menu a { min-height: 38px; padding: 0 1.1rem; }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; padding: .5rem .25rem; font-size: var(--t-sm); font-weight: 500; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { color: var(--poppy); }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; display: grid; gap: .25rem; padding: 1rem var(--gutter) 1.5rem; background: var(--ground); border-bottom: 1px solid var(--line-strong); }
.menu-panel a { padding-block: .5rem; font-family: var(--display); font-variation-settings: "SHRP" 100; font-size: var(--t-lg); font-weight: 560; text-decoration: none; }

/* Hero: the video lives inside the largest tile */
.hero { padding-top: 2px; }
.hero-tile {
  position: relative; isolation: isolate;
  display: grid; grid-template-rows: 1fr auto;
  height: clamp(540px, 78vh, 820px);
  overflow: hidden; clip-path: inset(0 round var(--r-tile)); border-radius: var(--r-tile);
  background: var(--night) url("/media/poster.webp") center / cover no-repeat;
  color: #FFFFFF;
  transform: scale(calc(1 - var(--hero, 0) * .045));
  transform-origin: 50% 0%;
}
.hero-video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transform: translate3d(0, calc(var(--hero, 0) * 14%), 0) scale(1.04);
  opacity: 0; transition: opacity .5s ease;
}
.hero-video.is-ready { opacity: 1; }
.hero-poster {
  position: absolute; inset: 0; z-index: -3;
  width: 100%; height: 100%; object-fit: cover;
  transform: translate3d(0, calc(var(--hero, 0) * 14%), 0) scale(1.04);
}
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 11, 9, 0) 28%, rgba(7, 11, 9, .3) 55%, rgba(7, 11, 9, .84) 100%),
    linear-gradient(90deg, rgba(7, 11, 9, .38) 0%, rgba(7, 11, 9, 0) 62%);
}
.hero-content {
  align-self: end; justify-self: start;
  display: grid; justify-items: start; gap: 1.2rem;
  max-width: 64rem;
  padding: clamp(22px, 4vw, 60px) clamp(22px, 4vw, 60px) clamp(18px, 2.4vw, 30px);
  transform: translate3d(0, calc(var(--hero, 0) * -70px), 0);
}
@keyframes rise { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
.hero-content > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-content > :nth-child(1) { animation-delay: .05s; }
.hero-content > :nth-child(2) { animation-delay: .13s; }
.hero-content > :nth-child(3) { animation-delay: .21s; }
.hero-content > :nth-child(4) { animation-delay: .29s; }
.hero-foot { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: .4s; }
.chip { display: inline-flex; padding: .38rem .8rem; border: 1px solid rgba(255, 255, 255, .34); border-radius: 999px; background: rgba(7, 11, 9, .24); font-size: var(--t-xs); }
.hero h1 { font-size: clamp(2.9rem, 8.2vw, 7.75rem); line-height: .88; letter-spacing: -.05em; }
.hero-lead { max-width: 46ch; font-size: clamp(1.02rem, 1.4vw, 1.25rem); line-height: 1.45; color: rgba(255, 255, 255, .88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; padding-top: .25rem; }
.hero-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-inline: clamp(22px, 4vw, 60px);
  padding-block: 12px clamp(14px, 2vw, 24px);
  border-top: 1px solid rgba(255, 255, 255, .22);
  font-size: var(--t-xs); color: rgba(255, 255, 255, .8);
}
.video-toggle { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; background: transparent; color: #FFFFFF; cursor: pointer; }
.video-toggle:hover { background: rgba(255, 255, 255, .14); }
.video-toggle:focus-visible { outline-color: #FFFFFF; }
.vt-icon { display: block; width: 12px; height: 14px; border-inline: 4px solid currentColor; }
.video-toggle[data-state="paused"] .vt-icon { width: 0; height: 0; margin-left: 4px; border-inline: 0; border-block: 7px solid transparent; border-left: 12px solid currentColor; }

/* Sections */
section { scroll-margin-top: 64px; }
.section { padding-block: var(--section) 0; }
.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: .75rem var(--gap); align-items: end; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.eyebrow { grid-column: 1 / -1; font-size: var(--t-sm); font-weight: 500; color: var(--muted); }
.sec-head h2 { grid-column: 1 / span 7; }
.sec-sub { grid-column: 9 / span 4; color: var(--muted); padding-bottom: .35rem; }
.sec-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.5rem; padding-top: clamp(.5rem, 1.2vw, 1rem); }

/* Bento tiles */
.bento { display: grid; gap: var(--gap); }
.tile {
  position: relative;
  display: grid; align-content: start; gap: .85rem;
  padding: clamp(18px, 2.2vw, 30px);
  overflow: hidden; clip-path: inset(0 round var(--r-tile)); border-radius: var(--r-tile);
  background: var(--tile); color: var(--ink);
}
.tile:focus-visible { outline-offset: -4px; }
[data-reveal] {
  transform: translate3d(0, calc((1 - var(--r, 1)) * 36px), 0) scale(calc(.965 + var(--r, 1) * .035));
  transform-origin: 50% 100%;
}
.tile-label { font-size: var(--t-sm); font-weight: 500; color: var(--tile-muted, var(--muted)); }
.tile-note { font-size: var(--t-sm); line-height: 1.45; color: var(--tile-muted, var(--muted)); max-width: 44ch; }
.big { font-weight: 600; font-size: clamp(3rem, 5.6vw, 5.5rem); line-height: .88; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.big small { margin-left: .08em; font-size: .38em; font-weight: 500; letter-spacing: -.01em; }

.tile-honey { background: var(--honey); color: var(--on-honey); --tile-muted: var(--on-honey-muted); --meter-track: rgba(26, 20, 5, .16); --meter-fill: var(--on-honey); --tile-line: rgba(26, 20, 5, .3); }
.tile-juniper { background: var(--juniper); color: var(--on-juniper); --tile-muted: var(--on-juniper-muted); }
.tile-poppy { background: var(--poppy); color: var(--on-poppy); --tile-muted: rgba(255, 255, 255, .8); }
.tile-photo { padding: 0; background: var(--night); color: #FFFFFF; }
.tile-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
img[data-depth] { transform: translate3d(0, calc(var(--p, 0) * var(--d, 30px)), 0) scale(1.16); filter: var(--photo-dim); }

/* Passport bento */
.bento-passport {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "lab lab crystal barcode"
    "lab lab crystal since"
    "nots nots origin origin";
}
.t-lab { grid-area: lab; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto minmax(0, 1fr); column-gap: clamp(18px, 2.4vw, 36px); row-gap: 1.25rem; }
.t-lab > .tile-label { grid-column: 1 / -1; }
.lab-row { display: grid; align-content: center; gap: .75rem; padding-top: 1rem; border-top: 1px solid var(--tile-line, var(--line)); }
.lab-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.lab-top h3 { font-size: var(--t-md); font-weight: 560; letter-spacing: -.01em; }
.ok { padding: .15rem .55rem; border: 1px solid var(--tile-line, var(--line-strong)); border-radius: 999px; font-size: var(--t-xs); }
.t-lab .big { font-size: clamp(3.6rem, 7vw, 6.5rem); }
.meter { position: relative; height: 52px; }
.meter::before, .meter-fill { position: absolute; left: 0; top: 22px; height: 6px; border-radius: 3px; }
.meter::before { content: ""; right: 0; background: var(--meter-track, var(--line)); }
.meter-fill { width: calc(var(--v) * 1%); background: var(--meter-fill, var(--honey)); }
.meter-limit { position: absolute; top: 16px; left: calc(var(--l) * 1%); width: 2px; height: 18px; margin-left: -1px; background: currentColor; }
.meter-label { position: absolute; top: 0; left: calc(var(--l) * 1%); transform: translateX(-50%); font-size: var(--t-xs); line-height: 1; white-space: nowrap; }
.meter-axis { position: absolute; top: 38px; left: 0; right: 0; display: flex; justify-content: space-between; font-size: var(--t-xs); line-height: 1; color: var(--tile-muted, var(--muted)); }

.t-crystal { grid-area: crystal; min-height: 440px; align-content: end; }
.t-crystal::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 11, 9, 0) 45%, rgba(7, 11, 9, .8) 100%); }
.t-crystal figcaption { position: relative; z-index: 1; max-width: 30ch; padding: clamp(18px, 2.2vw, 28px); font-size: var(--t-sm); line-height: 1.4; }

.t-barcode { grid-area: barcode; align-content: space-between; }
.t-barcode svg { display: block; width: 100%; max-width: 240px; height: auto; padding: 12px 14px 8px; border-radius: 6px; background: linear-gradient(180deg, #FFFFFF, #F4F2EC); transform: rotate(-1.2deg); box-shadow: 0 1px 1px rgba(19, 35, 27, .12), 0 10px 22px -12px rgba(19, 35, 27, .45); }
.t-barcode b { font-family: var(--mono); font-weight: 500; color: var(--ink); }
.t-since { grid-area: since; align-content: space-between; }

.t-nots { grid-area: nots; align-content: space-between; min-height: 260px; }
.nots { display: grid; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nots li {
  font-size: clamp(1.4rem, 2.4vw, 2.25rem); font-weight: 560; line-height: 1.24; letter-spacing: -.035em;
}

.t-origin { grid-area: origin; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: end; column-gap: clamp(16px, 2vw, 32px); min-height: 260px; }
.origin-top { display: grid; gap: .6rem; align-self: start; }
.t-origin .big { font-size: clamp(2.3rem, 4vw, 3.9rem); }
.t-origin .tile-note { grid-column: 1 / -1; }
.mini-profile { min-height: 140px; }
.mini-profile svg { display: block; overflow: visible; }
.pf-area { fill: rgba(228, 236, 229, .1); }
.pf-line { fill: none; stroke: var(--on-juniper); stroke-width: 1.5; stroke-linejoin: round; }
.pf-base { stroke: rgba(228, 236, 229, .3); }
.pf-mark { fill: var(--honey); }
.pf-label { fill: var(--on-juniper); font-family: var(--mono); font-size: 11px; }

/* Process: five steps, all open */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start;
  column-gap: var(--gap); row-gap: clamp(1.75rem, 3vw, 2.5rem);
}
.step { display: grid; align-content: start; gap: .45rem; padding-top: calc(var(--i, 0) * clamp(1rem, 3.2vw, 3.6rem)); }
.step:nth-child(1) { grid-column: span 3; --i: 0; }
.step:nth-child(2) { grid-column: span 2; --i: 1; }
.step:nth-child(3) { grid-column: span 2; --i: 2; }
.step:nth-child(4) { grid-column: span 2; --i: 3; }
.step:nth-child(5) { grid-column: span 3; --i: 4; }
.step:nth-child(2) .step-img, .step:nth-child(4) .step-img { aspect-ratio: 3 / 4; }
.step:nth-child(3) .step-img { aspect-ratio: 1; }
.step-img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--r-tile); filter: var(--photo-dim);
  margin-bottom: .55rem;
}
.step-num { font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 500; line-height: 1; color: var(--poppy); }
.step h3 { font-size: clamp(1.1rem, 1.5vw, 1.45rem); letter-spacing: -.025em; }
.step p:not(.step-num) { font-size: var(--t-sm); line-height: 1.45; color: var(--muted); }

/* Range bento */
.bento-range { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-card { display: grid; gap: .6rem; align-content: start; }
.product-photo { position: relative; display: block; overflow: hidden; border-radius: var(--r-tile); background: var(--tile); }
.product-photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(19, 35, 27, .08);
  background: linear-gradient(180deg, rgba(7, 11, 9, 0) 62%, rgba(7, 11, 9, .32) 100%);
  transition: background .3s;
}
.product-card:hover .product-photo::after { background: linear-gradient(180deg, rgba(7, 11, 9, 0) 30%, rgba(7, 11, 9, .8) 100%); }
.product-tag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: .3rem .6rem; border-radius: 999px;
  background: rgba(255, 255, 255, .86); color: #13231B;
  font-family: var(--mono); font-variation-settings: "wdth" 87.5; font-size: .68rem; letter-spacing: .02em; line-height: 1;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.product-desc {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: clamp(12px, 1.4vw, 18px); color: #FFFFFF;
  font-size: var(--t-sm); line-height: 1.4; text-wrap: pretty;
  opacity: 0; transform: translate3d(0, 6px, 0); transition: opacity .25s, transform .25s;
}
.product-card:hover .product-desc { opacity: 1; transform: none; }
@media (hover: none) { .product-desc { display: none; } .product-card .product-photo::after { background: linear-gradient(180deg, rgba(7, 11, 9, 0) 62%, rgba(7, 11, 9, .32) 100%); } }
.product-photo img {
  display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  filter: var(--photo-dim);
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.product-card:hover .product-photo img { transform: scale(1.06); }
.product-meta { display: grid; gap: .15rem; }
.product-name { font-size: clamp(1rem, 1.35vw, 1.2rem); font-weight: 580; line-height: 1.2; letter-spacing: -.02em; }
.product-card:hover .product-name { color: var(--poppy); }
.product-spec { font-size: var(--t-xs); line-height: 1.35; color: var(--muted); }
.product-empty { display: block; width: 100%; aspect-ratio: 4 / 5; background: linear-gradient(160deg, var(--tile), var(--line)); }

/* Marquee */
.marquee { margin-top: var(--section); padding-block: clamp(1.5rem, 3.5vw, 3rem); overflow: hidden; border-block: 1px solid var(--line); }
.marquee-track { display: flex; width: max-content; }
.marquee-group { display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 4rem); padding-right: clamp(1.5rem, 4vw, 4rem); }
.m-word { font-size: clamp(3rem, 9vw, 8.5rem); font-weight: 600; line-height: 1.1; letter-spacing: -.05em; white-space: nowrap; }
.m-word sup { margin-left: .35em; font-size: var(--t-xs); letter-spacing: 0; color: var(--muted); vertical-align: super; }
.m-dot { flex: none; width: .6rem; height: .6rem; border-radius: 50%; background: var(--poppy); }

/* Full-bleed band between the range and the process */
.band { position: relative; margin-top: var(--section); height: clamp(360px, 62vh, 700px); overflow: hidden; background: var(--night); color: #FFFFFF; }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 11, 9, 0) 45%, rgba(7, 11, 9, .62) 100%); }
.band-text { position: absolute; left: 0; right: 0; bottom: clamp(22px, 4vw, 56px); }
.band-text p {
  max-width: 24ch; font-family: var(--display); font-variation-settings: "SHRP" 100;
  font-size: clamp(1.7rem, 3.8vw, 3.5rem); font-weight: 600; line-height: 1.02; letter-spacing: -.035em; text-wrap: balance;
}

/* Contacts */
.bento-contacts { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(clamp(250px, 23vw, 330px), auto); }
.t-contact-lead { grid-column: span 2; align-content: space-between; }
.t-contact-lead h2 { max-width: 15ch; font-size: clamp(1.8rem, 3.2vw, 2.9rem); }
.t-contact-lead .tile-note { max-width: 40ch; }
.mail {
  justify-self: start;
  font-size: clamp(1rem, 1.6vw, 1.4rem); letter-spacing: -.02em; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: .1em;
  transition: opacity .2s;
}
.mail:hover { opacity: .75; }
.t-office h3 { font-size: clamp(1.1rem, 1.5vw, 1.35rem); }
.t-office address { font-style: normal; font-size: var(--t-sm); color: var(--muted); }
.contact { font-size: var(--t-sm); line-height: 1.8; }
.contact a { text-decoration: none; }
.contact a:hover { color: var(--poppy); text-decoration: underline; }

/* Footer */
.foot {
  margin-top: var(--section);
  padding-block: clamp(1.5rem, 2.6vw, 2.25rem) clamp(1.75rem, 3vw, 2.75rem);
  border-top: 1px solid var(--line);
  font-size: var(--t-sm); color: var(--muted);
}
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2.5rem; }

/* Chinese: latin from Geologica, CJK from the system font (PingFang, YaHei, Noto), no negative tracking */
html:lang(zh-Hans) {
  --display: "Geologica", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --text: "Geologica", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", sans-serif;
}
html:lang(zh-Hans) h1, html:lang(zh-Hans) h2, html:lang(zh-Hans) h3, html:lang(zh-Hans) .product-name, html:lang(zh-Hans) .nots li { letter-spacing: 0; }
html:lang(zh-Hans) .hero h1 { line-height: 1.08; }
html:lang(zh-Hans) h2 { line-height: 1.15; }
html:lang(zh-Hans) h3 { line-height: 1.3; }
html:lang(zh-Hans) body { font-weight: 400; }

/* Motion off */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-tile, .hero-video, .hero-content, [data-reveal], img[data-depth] { transform: none !important; }
  .product-photo img { transition: none !important; }
  .hero-content > *, .hero-foot { animation: none !important; }
  .nav, .nav .wrap, .nav .pill-sm { transition: none !important; }
}

/* Responsive */
@media (max-width: 1100px) {
  .nav-end > }
@media (max-width: 1024px) {
  .step { grid-column: auto !important; padding-top: 0; }
  .step .step-img { aspect-ratio: 4 / 5; }
  .band { height: clamp(300px, 52vh, 520px); }
  .bento-passport {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "lab lab" "crystal barcode" "crystal since" "nots nots" "origin origin";
  }
  .bento-range { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bento-contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sec-head h2, .sec-sub { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-end > .langs { display: none; }
  .langs-menu { display: inline-flex; }
  .menu { display: block; }
  .bento-range { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .bento-passport {
    grid-template-columns: 1fr;
    grid-template-areas: "lab" "crystal" "barcode" "since" "nots" "origin";
  }
  .t-lab, .t-origin { grid-template-columns: 1fr; }
  .t-crystal { min-height: 380px; }
  .bento-contacts { grid-template-columns: 1fr; }
  .t-contact-lead { grid-column: auto; }
  .steps { grid-template-columns: 1fr; }
  .step-img { aspect-ratio: 4 / 3; }
}
