/* ==========================================================================
   SiAl Minerals Group — style.css
   Тёмная премиум B2B-тема. Один акцент (терракота/медь), Outfit + Manrope +
   JetBrains Mono. Без препроцессоров, без фреймворков.
   ========================================================================== */

/* ---------------------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------------------- */

:root {
  /* surfaces */
  --bg: #131417;
  --bg-raised: #1a1b1f;
  --surface: #1f2024;
  --surface-2: #26272c;
  --surface-border: #34363c;
  --surface-border-soft: #2a2c31;

  /* text */
  --text-primary: #f2f0ec;
  --text-secondary: #b8b9bf;
  --text-muted: #8e9098;
  --text-faint: #5c5e66;

  /* accent (terracotta / copper) */
  --accent: #c1622d;
  --accent-hover: #d9793f;
  --accent-active: #a8531f;
  --accent-soft: #c1622d26;
  --accent-soft-border: #c1622d55;
  --on-accent: #17110b;

  /* secondary accents — used sparingly, CTA highlights only */
  --accent-2: #3d8074;
  --accent-2-soft: #3d807426;
  --accent-3: #c99a3d;
  --accent-3-soft: #c99a3d26;

  /* fonts */
  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* radius system: sharp / engineering-geological */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 4px;

  /* motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 200ms;
  --dur-med: 300ms;

  /* layout */
  --container-max: 1280px;
  --container-pad: 24px;
  --header-h: 84px;
  --header-h-scrolled: 68px;
  --logo-h: 52px;
  --logo-scale-scrolled: 0.77; /* 52px -> 40px */

  color-scheme: dark;
}

/* ---------------------------------------------------------------------------
   2. Reset
   ------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* Lenis owns the easing once it is running; native smooth-scroll on top of
   it would double-ease anchor jumps. */
html.lenis,
html.lenis body {
  height: auto;
}

html.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  display: block;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
figure {
  margin: 0;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

/* ---------------------------------------------------------------------------
   3. Layout primitives
   ------------------------------------------------------------------------- */

.wrap {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* keeps a hyphenated word ("биг-бэгах") from breaking at its hyphen */
.nowrap {
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top var(--dur-fast) var(--ease);
}

.skip-link:focus {
  top: 16px;
}

/* Consistent focus visibility across the site */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ---------------------------------------------------------------------------
   4. Typography
   ------------------------------------------------------------------------- */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* tabular numbers for every stat / figure in the page */
.dig-panel__stat-value,
.trust-strip__value,
.lab__step-index {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ---------------------------------------------------------------------------
   5. Buttons
   ------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px var(--accent-soft-border);
}

.btn--primary:active {
  background: var(--accent-active);
  border-color: var(--accent-active);
  transform: scale(0.98);
  box-shadow: none;
}

.btn--small {
  padding: 10px 18px;
  font-size: 0.85rem;
}

.btn--full {
  width: 100%;
}

/* ---------------------------------------------------------------------------
   6. Site header
   ------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  /* the box keeps its height; the compact state is drawn with transforms
     only, so scrolling never triggers a relayout. The strip it vacates must
     not swallow clicks on the page below. */
  pointer-events: none;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(19, 20, 23, 0.6);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: transform var(--dur-med) var(--ease),
    background-color var(--dur-med) var(--ease),
    border-color var(--dur-med) var(--ease);
}

.site-header.is-scrolled::before {
  transform: translateY(calc(var(--header-h-scrolled) - var(--header-h)));
  background: rgba(19, 20, 23, 0.86);
  border-bottom-color: var(--surface-border-soft);
}

.site-header__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  pointer-events: auto;
  transition: transform var(--dur-med) var(--ease);
}

.site-header.is-scrolled .site-header__inner {
  transform: translateY(calc((var(--header-h-scrolled) - var(--header-h)) / 2));
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

/* logo.svg cropped to the mark itself (viewBox 870x384), so height here is
   the real visible height of the Si/Al tiles + wordmark. */
.logo__img {
  display: block;
  height: var(--logo-h);
  width: auto;
  transform-origin: left center;
  transition: transform var(--dur-med) var(--ease);
}

.site-header.is-scrolled .logo__img {
  transform: scale(var(--logo-scale-scrolled));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: center;
}

.site-nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}

.site-nav a:hover {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

/* ---------------------------------------------------------------------------
   7. Hero
   ------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  background:
    radial-gradient(ellipse 900px 600px at 78% 18%, rgba(193, 98, 45, 0.14), transparent 60%),
    linear-gradient(180deg, #131417 0%, #17181c 100%);
  overflow: hidden;
}

.hero__inner {
  max-width: 780px;
  position: relative;
  z-index: 2;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* scroll zoom aims at the quarry benches in the lower half of hero-fields.jpg */
  transform-origin: 55% 78%;
  will-change: transform;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* keep the landscape luminous: a soft local shade behind the copy, a thin
     band under the header, and the fade to page background only at the
     very bottom where the next section begins */
  background:
    radial-gradient(ellipse 58% 62% at 30% 56%, rgba(19, 20, 23, 0.62) 0%, rgba(19, 20, 23, 0.28) 55%, rgba(19, 20, 23, 0) 100%),
    linear-gradient(180deg, rgba(19, 20, 23, 0.35) 0%, rgba(19, 20, 23, 0) 18%, rgba(19, 20, 23, 0) 72%, var(--bg) 100%);
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes heroKenBurns {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
  }
  .hero__media img { animation: heroKenBurns 20s ease-out both; }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .hero__title { animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .hero__subtitle { animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both; }
  .hero__inner .btn { animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.24s both; }
}

.hero__title {
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 52ch;
  line-height: 1.5;
  margin-bottom: 40px;
}

/* ---------------------------------------------------------------------------
   8. Dig scene (GSAP ScrollTrigger driven — CSS provides safe fallback state)
   ------------------------------------------------------------------------- */

.dig-scene {
  position: relative;
  background: var(--bg);
}

.dig-scene__stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: linear-gradient(180deg, #16171b 0%, #101114 100%);
}

.dig-scene__backdrop {
  position: absolute;
  inset: 0;
}

.dig-scene__layers {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.dig-scene__layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform-origin: 50% 55%;
  will-change: opacity, transform;
}

.dig-scene__layer:first-child {
  opacity: 1;
}

.dig-scene__layer img,
.dig-scene__layer video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dig-scene__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  /* light touch: the quarry scene is real footage now and should read
     crisp; the cards carry their own glass backing for legibility */
  background:
    linear-gradient(180deg, rgba(19, 20, 23, 0) 0%, rgba(19, 20, 23, 0) 55%, rgba(19, 20, 23, 0.32) 100%),
    linear-gradient(90deg, rgba(19, 20, 23, 0.22) 0%, rgba(19, 20, 23, 0) 40%);
}

.dig-scene__scrim--strong {
  background:
    linear-gradient(180deg, rgba(19, 20, 23, 0.1) 0%, rgba(19, 20, 23, 0.6) 100%),
    linear-gradient(90deg, rgba(19, 20, 23, 0.55) 0%, rgba(19, 20, 23, 0.05) 55%);
}

/* Soft dark seam at the top and bottom of every pinned scene: when one
   scene slides away and the next arrives they meet in a short gradient,
   with picture on screen the whole time (no black gap that reads as a
   frozen page). */
.dig-scene__stage::before,
.dig-scene__stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
  height: 12vh;
  pointer-events: none;
}

.dig-scene__stage::before {
  top: 0;
  background: linear-gradient(180deg, rgba(19, 20, 23, 0.85), rgba(19, 20, 23, 0));
}

.dig-scene__stage::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(19, 20, 23, 0.85), rgba(19, 20, 23, 0));
}

.dig-scene__particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.dust-particle {
  position: absolute;
  opacity: 0.6;
}

.dust-particle:nth-child(1) { top: 18%; left: 12%; }
.dust-particle:nth-child(2) { top: 34%; left: 78%; }
.dust-particle:nth-child(3) { top: 58%; left: 24%; }
.dust-particle:nth-child(4) { top: 72%; left: 66%; }
.dust-particle:nth-child(5) { top: 44%; left: 46%; }
.dust-particle:nth-child(6) { top: 26%; left: 58%; }

.dig-scene__readout {
  position: absolute;
  top: calc(var(--header-h) + 20px);
  left: var(--container-pad);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(19, 20, 23, 0.4);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 12px 30px rgba(0, 0, 0, 0.35);
}

.dig-scene__readout-layer {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.dig-scene__panels {
  position: absolute;
  inset: 0;
  z-index: 6;
}

.dig-panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 40px) calc(var(--container-pad) + 16px) 64px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}

.dig-panel.is-active {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.9s var(--ease) 0.12s;
}

/* Card glides in and its lines follow one after another; on the way out it
   drifts up and dissolves, so consecutive cards hand over rather than blink. */
.dig-panel__card {
  transform: translateY(28px) scale(0.985);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.dig-panel.is-past .dig-panel__card {
  transform: translateY(-24px) scale(0.985);
}

.dig-panel.is-active .dig-panel__card {
  transform: none;
  transition-duration: 1.1s;
}

.dig-panel__card > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.dig-panel.is-active .dig-panel__card > * {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.dig-panel.is-active .dig-panel__card > :nth-child(1) { transition-delay: 0.08s; }
.dig-panel.is-active .dig-panel__card > :nth-child(2) { transition-delay: 0.16s; }
.dig-panel.is-active .dig-panel__card > :nth-child(3) { transition-delay: 0.26s; }
.dig-panel.is-active .dig-panel__card > :nth-child(4) { transition-delay: 0.36s; }

.dig-scene__readout-layer.is-swapping {
  animation: readoutSwap 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes readoutSwap {
  from { opacity: 0; transform: translateY(8px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* Dynamic placement: each panel lands in a different corner/edge of the
   frame instead of always dead-center, so the sequence reads as a cinematic
   tour rather than a template. */
.dig-panel--bl { align-items: flex-end; justify-content: flex-start; }
.dig-panel--br { align-items: flex-end; justify-content: flex-end; }
.dig-panel--tl { align-items: flex-start; justify-content: flex-start; }
.dig-panel--tr { align-items: flex-start; justify-content: flex-end; }

/* Top-corner cards start below the instrument chips (grade readout on the
   left, depth gauge on the right) that sit just under the header. */
@media (min-width: 769px) {
  .dig-panel--tl,
  .dig-panel--tr {
    padding-top: calc(var(--header-h) + 112px);
  }
}
.dig-panel--cl { align-items: center; justify-content: flex-start; }
.dig-panel--cr { align-items: center; justify-content: flex-end; }

/* Liquid-glass card: honest web approximation (backdrop-filter + layered
   borders + highlight), not literal Apple Liquid Glass. Every caption on
   the site lives inside one of these instead of sitting raw on the scrim. */
.dig-panel__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 560px;
  width: 100%;
  padding: 32px 36px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(19, 20, 23, 0.38);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    0 20px 60px rgba(0, 0, 0, 0.4);
}

.dig-panel__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.4), transparent 36%);
  pointer-events: none;
}

@media (prefers-reduced-transparency: reduce) {
  .dig-panel__card {
    background: rgba(19, 20, 23, 0.94);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.dig-panel--wide .dig-panel__card {
  max-width: 860px;
}

.dig-panel__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin-bottom: 14px;
}

.dig-panel__title {
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  max-width: 20ch;
  margin-bottom: 16px;
}

.dig-panel--wide .dig-panel__title {
  max-width: 34ch;
}

.dig-panel__text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 65ch;
}

.dig-panel__stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.dig-panel__stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dig-panel__stat-value {
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.dig-panel__stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.dig-panel--shamot .dig-panel__eyebrow {
  color: var(--accent-hover);
}

/* ---------------------------------------------------------------------------
   8b. Generic cinematic "act" section (full-bleed photo/video background)
   ------------------------------------------------------------------------- */

.act {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-block: 96px;
  background: var(--bg);
}

.act__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform-origin: 50% 60%;
  will-change: transform;
}

.act__media img,
.act__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.act__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* first layer: top edge starts as solid page background, so the dark
     bottom of the hero flows straight into this shot with no seam. Lives on
     the scrim because the media itself is scaled while it scrolls in. */
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(19, 20, 23, 0) 26%),
    linear-gradient(180deg, rgba(19, 20, 23, 0) 0%, rgba(19, 20, 23, 0.65) 100%),
    linear-gradient(90deg, rgba(19, 20, 23, 0.5) 0%, rgba(19, 20, 23, 0) 55%);
}

.act__scrim--strong {
  background:
    linear-gradient(180deg, rgba(19, 20, 23, 0.35) 0%, rgba(19, 20, 23, 0.92) 100%),
    linear-gradient(90deg, rgba(19, 20, 23, 0.8) 0%, rgba(19, 20, 23, 0.25) 60%);
}

.act__content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.act__content--wide {
  max-width: 820px;
}

.act__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin-bottom: 14px;
}

.act__title {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  max-width: 18ch;
  margin-bottom: 16px;
}

.act__text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 60ch;
}

.act .lab__steps {
  margin-top: 48px;
}

.act__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--surface-border-soft);
}

.act__stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.act__stat-value {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 500;
  color: var(--accent-hover);
  letter-spacing: -0.01em;
  line-height: 1;
}

.act__stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.shamot-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 40px;
  background: var(--surface-border-soft);
  border: 1px solid var(--surface-border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.shamot-card {
  background: rgba(19, 20, 23, 0.82);
  padding: 28px 26px;
}

.shamot-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--accent-hover);
  margin-bottom: 10px;
}

.shamot-card p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 18px;
  max-width: 40ch;
}

.shamot-card ul {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.shamot-card li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.shamot-card li span {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* ---------------------------------------------------------------------------
   8c. Process strip (compact two-up: dump truck + tube mill)
   ------------------------------------------------------------------------- */

.process-strip {
  padding-block: 4px;
  background: var(--bg);
}

.process-strip__inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--surface-border-soft);
}

.process-strip__item {
  position: relative;
  margin: 0;
  min-height: 46vh;
  overflow: hidden;
}

.process-strip__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.process-strip__item figcaption {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  background: linear-gradient(180deg, rgba(19, 20, 23, 0) 40%, rgba(19, 20, 23, 0.88) 100%);
}

.process-strip__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin-bottom: 8px;
}

.process-strip__item figcaption p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 32ch;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .process-strip__inner {
    grid-template-columns: 1fr;
  }
  .shamot-cards {
    grid-template-columns: 1fr;
  }
  /* Scattered corner placement reads as chaotic on small screens: settle
     every panel to the same readable bottom-left anchor. */
  .dig-panel,
  .dig-panel--bl,
  .dig-panel--br,
  .dig-panel--tl,
  .dig-panel--tr,
  .dig-panel--cl,
  .dig-panel--cr {
    align-items: flex-end;
    justify-content: flex-start;
  }
  .dig-panel > * {
    max-width: 100%;
  }
}

/* ---------------------------------------------------------------------------
   9. Trust strip
   ------------------------------------------------------------------------- */

.trust-strip {
  padding-block: 96px;
  background: var(--bg);
  border-top: 1px solid var(--surface-border-soft);
  border-bottom: 1px solid var(--surface-border-soft);
}

.trust-strip__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 48px;
}

.trust-strip__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 200px;
}

.trust-strip__value {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 500;
  color: var(--accent-hover);
  letter-spacing: -0.01em;
  line-height: 1;
}

.trust-strip__label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* ---------------------------------------------------------------------------
   10. Lab / quality steps
   ------------------------------------------------------------------------- */

.lab {
  padding-block: 120px;
}

.lab__title {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  max-width: 18ch;
  margin-bottom: 18px;
}

.lab__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 60ch;
  margin-bottom: 64px;
}

.lab__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--surface-border-soft);
  border: 1px solid var(--surface-border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.lab__step {
  background: var(--bg-raised);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 220px;
}

.lab__step-index {
  font-size: 1.6rem;
  color: var(--accent);
  font-weight: 500;
  opacity: 0.9;
}

.lab__step-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text-primary);
  letter-spacing: 0;
}

/* ---------------------------------------------------------------------------
   10b. Documents (ТУ download)
   ------------------------------------------------------------------------- */

.docs-block {
  padding-block: 80px;
  background: var(--bg);
  border-top: 1px solid var(--surface-border-soft);
}

.docs-block__intro {
  margin-bottom: 32px;
}

.docs-block__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin-bottom: 10px;
}

.docs-block__title {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 10px;
}

.docs-block__text {
  color: var(--text-secondary);
  max-width: 56ch;
}

.docs-block__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.doc-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.doc-card:hover {
  border-color: var(--accent-soft-border);
  background: var(--surface-2);
}

.doc-card:hover .doc-card__action {
  color: var(--accent-hover);
}

.doc-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent);
}

.doc-card__icon svg {
  width: 20px;
  height: 20px;
}

.doc-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.doc-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-primary);
}

.doc-card__meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.doc-card__action {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--dur-fast) var(--ease);
}

/* ---------------------------------------------------------------------------
   11. CTA block + form
   ------------------------------------------------------------------------- */

.cta-block {
  padding-block: 120px;
  background: var(--bg-raised);
  border-top: 1px solid var(--surface-border-soft);
}

.cta-highlights {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.cta-highlight {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cta-highlight__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.cta-highlight__icon svg {
  width: 18px;
  height: 18px;
}

.cta-highlight[data-tone="1"] .cta-highlight__icon {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.cta-highlight[data-tone="2"] .cta-highlight__icon {
  background: var(--accent-2-soft);
  color: var(--accent-2);
}

.cta-highlight[data-tone="3"] .cta-highlight__icon {
  background: var(--accent-3-soft);
  color: var(--accent-3);
}

.cta-highlight__text {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.cta-highlight__text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.cta-map {
  position: relative;
  margin-top: 64px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--surface-border);
  /* tall enough that all three points (Moscow office, Ryazan office,
     quarry) fit inside the constructor's fixed zoom */
  height: 540px;
}

.cta-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  filter: grayscale(0.3) contrast(1.05);
}

.cta-map.is-active iframe {
  pointer-events: auto;
}

.cta-map__hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  margin: 0;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(19, 20, 23, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 1;
  transition: opacity var(--dur-med) var(--ease);
  pointer-events: none;
}

.cta-map.is-active .cta-map__hint {
  opacity: 0;
}

.cta-block__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: start;
}

.cta-block__copy {
  display: flex;
  flex-direction: column;
}

.cta-block__title {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  max-width: 16ch;
  margin-bottom: 18px;
}

.cta-block__text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 48ch;
  margin-bottom: 48px;
}

.cta-block__contacts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cta-block__contacts > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cta-block__contacts dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.cta-block__contacts dd {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.cta-block__contacts a {
  transition: color var(--dur-fast) var(--ease);
}

.cta-block__contacts a:hover {
  color: var(--accent-hover);
}

.cta-form {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cta-form__row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cta-form__row label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}

.cta-form__row input,
.cta-form__row textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--surface-2);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease);
}

.cta-form__row input::placeholder,
.cta-form__row textarea::placeholder {
  color: var(--text-faint);
}

.cta-form__row input:hover,
.cta-form__row textarea:hover {
  border-color: var(--text-faint);
}

.cta-form__row input:focus,
.cta-form__row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--surface);
}

.cta-form__row textarea {
  resize: vertical;
  min-height: 96px;
}

.cta-form .btn--full {
  margin-top: 8px;
}

.cta-form__legal {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-top: 4px;
}

.cta-form__legal a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------------------------------------------------------------------------
   12. Footer
   ------------------------------------------------------------------------- */

.site-footer {
  padding-block: 64px;
  background: var(--bg);
  border-top: 1px solid var(--surface-border-soft);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

/* Brand row spans the full width above the contact columns: the logo is the
   last thing a visitor sees, so it gets real size instead of a 30px chip. */
.site-footer__brand {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 48px;
  flex-wrap: wrap;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--surface-border-soft);
}

.site-footer__logo-link {
  display: block;
  line-height: 0;
}

.site-footer__logo-mark {
  display: block;
  height: clamp(96px, 11vw, 148px);
  width: auto;
}

.site-footer__brand p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 34ch;
  line-height: 1.55;
  margin: 0;
}

.site-footer__contacts,
.site-footer__legal {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer__contacts p,
.site-footer__legal p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.site-footer__contacts a,
.site-footer__legal a {
  transition: color var(--dur-fast) var(--ease);
}

.site-footer__contacts a:hover,
.site-footer__legal a:hover {
  color: var(--accent-hover);
}

.site-footer__legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
  color: var(--text-muted);
}

/* ---------------------------------------------------------------------------
   12b. Legal pages (privacy-policy/, terms-of-use/)
   ------------------------------------------------------------------------- */

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--dur-fast) var(--ease);
}

.legal-back svg {
  width: 18px;
  height: 18px;
}

.legal-back:hover {
  color: var(--text-primary);
}

.legal {
  padding-block: calc(var(--header-h) + 64px) 96px;
}

.legal__inner {
  max-width: 820px;
}

.legal__crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.legal__crumbs a {
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease);
}

.legal__crumbs a:hover {
  color: var(--accent-hover);
}

.legal__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-wrap: balance;
}

.legal__date {
  color: var(--text-muted);
  margin: 0 0 40px;
}

.legal__body {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 72ch;
}

.legal__body h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin: 48px 0 16px;
}

.legal__body p {
  margin: 0 0 14px;
}

.legal__body ol,
.legal__body ul {
  margin: 0 0 18px;
  padding-left: 1.4em;
}

.legal__body ol {
  list-style: decimal;
}

.legal__body ul {
  list-style: disc;
}

.legal__body li {
  margin-bottom: 6px;
}

.legal__body li::marker {
  color: var(--text-faint);
}

.legal__body a {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-word;
}

/* ---------------------------------------------------------------------------
   13. Responsive
   ------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .cta-block__inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 68px;
    --header-h-scrolled: 60px;
    --logo-h: 42px;
    --logo-scale-scrolled: 0.86; /* 42px -> 36px */
    --container-pad: 20px;
  }

  .site-nav {
    display: none;
  }

  .site-header__inner {
    justify-content: space-between;
  }

  .hero__title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .dig-scene__readout {
    top: calc(var(--header-h) + 14px);
    padding: 8px 14px;
  }

  .dig-panel {
    padding: 0 var(--container-pad);
  }

  .dig-panel__title {
    font-size: clamp(1.4rem, 6vw, 1.9rem);
    max-width: none;
  }

  .dig-panel__stats {
    gap: 28px;
  }

  .dig-panel__stat-value {
    font-size: 1.5rem;
  }

  .dig-scene__excavator {
    width: min(320px, 72vw);
  }

  .trust-strip {
    padding-block: 64px;
  }

  .trust-strip__inner {
    flex-direction: column;
    gap: 36px;
  }

  .lab {
    padding-block: 72px;
  }

  .lab__subtitle {
    margin-bottom: 40px;
  }

  .lab__steps {
    grid-template-columns: 1fr;
  }

  .lab__step {
    min-height: 0;
    padding: 24px;
  }

  .docs-block__list {
    grid-template-columns: 1fr;
  }

  .doc-card {
    padding: 18px;
  }

  .cta-block {
    padding-block: 72px;
  }

  .cta-form {
    padding: 28px;
  }

  .cta-map {
    height: 420px;
    margin-top: 48px;
  }

  .cta-map__hint {
    white-space: normal;
    width: max-content;
    max-width: calc(100% - 32px);
    text-align: center;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .site-footer__brand {
    grid-column: auto;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 32px;
  }
}

/* ---------------------------------------------------------------------------
   14. Reduced motion
   ------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .btn--primary:hover,
  .btn--primary:active {
    transform: none !important;
  }

  .skip-link {
    transition: none !important;
  }

  .dig-panel {
    transition: none !important;
  }
}

/* ---------------------------------------------------------------------------
   15. Added 2026-10: mobile menu, long-jump veil, form states, fallbacks
   ------------------------------------------------------------------------- */

a[href^="tel:"] {
  white-space: nowrap;
}

/* Burger: shown wherever the inline nav no longer fits (tablets included). */
.menu-toggle {
  display: none;
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
}

.menu-toggle__bar {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur-med) var(--ease);
}

.menu-toggle__bar:first-child { top: 17px; }
.menu-toggle__bar:last-child { top: 25px; }

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: calc(var(--header-h) + 24px) var(--container-pad) calc(32px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: rgba(16, 17, 20, 0.96);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu.is-open {
  opacity: 1;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
}

.mobile-menu__nav a {
  padding: 12px 0;
  border-bottom: 1px solid var(--surface-border-soft);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 6.5vw, 2.1rem);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), color var(--dur-fast) var(--ease);
}

.mobile-menu__nav a:hover {
  color: var(--accent-hover);
}

.mobile-menu.is-open .mobile-menu__nav a {
  opacity: 1;
  transform: none;
}

.mobile-menu.is-open .mobile-menu__nav a:nth-child(2) { transition-delay: 0.04s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(3) { transition-delay: 0.08s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(4) { transition-delay: 0.12s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(5) { transition-delay: 0.16s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(6) { transition-delay: 0.2s; }

.mobile-menu__foot {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-menu__contact {
  color: var(--text-secondary);
  font-size: 1rem;
}

html.is-menu-open {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .site-nav {
    display: none;
  }

  .site-header__cta {
    margin-left: auto;
  }

  .menu-toggle {
    display: inline-block;
  }
}

@media (max-width: 400px) {
  .site-header__cta {
    display: none;
  }

  .menu-toggle {
    margin-left: auto;
  }
}

.no-js .menu-toggle {
  display: none;
}

/* Cover for long anchor jumps: instead of fast-forwarding through every
   pinned scene (and seeking ten videos on the way) the page dips to the
   background colour, lands, and fades back in. */
.page-veil {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease);
}

.page-veil.is-on {
  opacity: 1;
}

/* Lead form */
.cta-form__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cta-form__status {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.cta-form__status:empty {
  display: none;
}

/* light tints of the brand teal/terracotta: the base tokens are too dark
   for 4.5:1 text on the form surface */
.cta-form__status[data-state="ok"] {
  color: #7cc4b3;
}

.cta-form__status[data-state="error"] {
  color: #f0a27c;
}

.cta-form button[disabled] {
  opacity: 0.7;
  cursor: progress;
}

/* Static scenes: motion reduced, GSAP missing, or JS off entirely. Each
   scene becomes a normal block with its poster behind and the cards
   stacked in reading order, nothing clipped, nothing hidden. */
.no-js .dig-scene__stage,
.dig-scene__stage.is-static-fallback {
  height: auto;
  min-height: 100vh;
}

.no-js .dig-scene__panels,
.is-static-fallback .dig-scene__panels {
  position: relative;
  inset: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: calc(var(--header-h) + 48px) var(--container-pad) 80px;
}

.no-js .dig-panel,
.is-static-fallback .dig-panel {
  position: static;
  display: block;
  padding: 0;
  opacity: 1;
  pointer-events: auto;
}

.no-js .dig-panel__card,
.no-js .dig-panel__card > *,
.is-static-fallback .dig-panel__card,
.is-static-fallback .dig-panel__card > * {
  opacity: 1;
  transform: none;
}

.no-js .dig-scene__readout,
.is-static-fallback .dig-scene__readout {
  display: none;
}

/* Phones: the shamotte card (two grades side by side on desktop) has to fit
   one screen under the header, and three stats should share one row. */
@media (max-width: 600px) {
  /* the 768px rule zeroes the top padding, which let a tall card ride up
     under the header; keep it below the header and never overflow upward */
  .dig-panel,
  .dig-panel--bl,
  .dig-panel--br,
  .dig-panel--tl,
  .dig-panel--tr {
    padding: calc(var(--header-h) + 16px) var(--container-pad) 28px;
    align-items: safe flex-end;
  }

  .dig-panel--wide .dig-panel__card {
    padding: 22px 20px;
  }

  .dig-panel--wide .dig-panel__title {
    font-size: 1.35rem;
  }

  .shamot-cards {
    margin-top: 16px;
  }

  .shamot-card {
    padding: 14px 16px;
  }

  .shamot-card h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
  }

  .shamot-card p {
    font-size: 0.82rem;
    line-height: 1.45;
    margin-bottom: 10px;
  }

  .shamot-card ul {
    gap: 16px;
  }

  .shamot-card li {
    font-size: 0.7rem;
  }

  .shamot-card li span {
    font-size: 1.05rem;
  }

  .dig-panel__stats {
    gap: 18px;
  }

  .dig-panel__stat-value {
    font-size: 1.3rem;
  }
}

/* the final packaging beat must not cover the bag it is talking about */
@media (max-width: 768px) {
  .dig-panel--mobile-top {
    align-items: flex-start;
    padding-top: calc(var(--header-h) + 16px);
  }
}

/* cookie notice carried over verbatim from the old site footer */
.site-footer__cookie {
  grid-column: 1 / -1;
  max-width: 92ch;
  margin: 8px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--surface-border-soft);
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.site-footer__cookie a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------------------------------------------------------------------------
   16. Deposit: the quarry shot gives way to the satellite view (2026-10)
   Pinned by JS for a short stretch: the map dissolves in over the photo
   while the camera settles back from the licence plot, then the contour of
   the whole deposit draws itself. Without JS or with reduced motion the
   section is simply the finished map.
   ------------------------------------------------------------------------- */

.deposit .act__scrim {
  background:
    linear-gradient(180deg, rgba(19, 20, 23, 0) 0%, rgba(19, 20, 23, 0.65) 100%),
    linear-gradient(90deg, rgba(19, 20, 23, 0.5) 0%, rgba(19, 20, 23, 0) 55%);
}

/* The seam with the hero lives on its own layer so it can lift once the
   section is pinned and the map needs the top of the screen. */
.deposit__seam {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 26%;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(19, 20, 23, 0) 100%);
  pointer-events: none;
}

.deposit__map {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
}

/* The stage keeps the map's own 892:504 proportions, so the image and the
   SVG share one coordinate system and the deposit sits at the stage centre.
   Landscape: sized by the screen height (the contour takes about two thirds
   of it), centred 68% across, and faded into the page on the left and at
   the bottom, where the copy and the figures sit. Covering the whole screen
   instead would blow the contour up past the header and under the copy. */
.deposit__map-stage {
  position: absolute;
  top: -4vh;
  left: calc(68vw - 88.49vh);
  width: calc(100vh * 1.7698);
  aspect-ratio: 892 / 504;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 22%),
    linear-gradient(180deg, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 22%),
    linear-gradient(180deg, #000 80%, transparent 100%);
  mask-composite: intersect;
}

/* GSAP scales this inner layer only: it folds an element's CSS translate
   into its own transform, which would drop the positioning above. */
.deposit__map-zoom {
  position: absolute;
  inset: 0;
  /* licence plot = the working pit: the camera settles back from it */
  transform-origin: 61.55% 33.65%;
  will-change: transform;
}

.deposit__map-zoom img,
.deposit__contour {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.deposit__map-zoom img {
  object-fit: cover;
  filter: saturate(1.05) brightness(0.92);
}

.deposit__contour {
  overflow: visible;
  filter: drop-shadow(0 0 5px rgba(255, 238, 214, 0.55));
}

.deposit__contour-area {
  fill: rgba(250, 240, 222, 0);
  transition: fill 0.5s var(--ease);
}

.deposit__contour-line {
  fill: none;
  stroke: #f7ecdb;
  stroke-width: 1.5;
  stroke-linejoin: round;
  /* length measured by JS (--len), not pathLength: Safari scales dashes
     against pathLength unreliably */
  stroke-dasharray: var(--len, none);
  stroke-dashoffset: var(--len, 0);
  transition: stroke-dashoffset 0.6s var(--ease);
}

.deposit.is-drawn .deposit__contour-line {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 2.2s cubic-bezier(0.65, 0, 0.35, 1);
}

.deposit.is-drawn .deposit__contour-area {
  fill: rgba(250, 240, 222, 0.1);
  transition: fill 1.4s var(--ease) 1.8s;
}

/* Copy: two beats share one grid cell and trade places with the shot. */
.deposit__beats {
  display: grid;
}

.deposit__beat {
  grid-area: 1 / 1;
  align-self: end;
  transition: opacity 0.6s var(--ease), translate 0.7s var(--ease);
}

/* both beats share one cell: the faded-out one lets the mouse through, so the
   copy on screen can be selected (the map heading sits on top of the photo's) */
.deposit__beat--map {
  opacity: 0;
  translate: 0 16px;
  pointer-events: none;
}

.deposit.is-map .deposit__beat--photo {
  opacity: 0;
  translate: 0 -16px;
  pointer-events: none;
}

.deposit.is-map .deposit__beat--map {
  opacity: 1;
  translate: 0 0;
  pointer-events: auto;
}

.deposit__title {
  margin-bottom: 22px;
}

.deposit__credit {
  position: absolute;
  z-index: 3;
  right: var(--container-pad);
  bottom: 14px;
  margin: 0;
  font-size: 0.66rem;
  color: rgba(242, 240, 236, 0.5);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}

.deposit.is-map .deposit__credit {
  opacity: 1;
}

/* "Written" headings: JS splits the text into letters that arrive one after
   another, slightly blurred and low, like a line being written out. */
.write-word {
  display: inline-block;
  white-space: nowrap;
}

.write-char {
  display: inline-block;
  opacity: 0;
  translate: 0 0.35em;
  filter: blur(8px);
  transition: opacity 0.25s var(--ease), translate 0.25s var(--ease), filter 0.25s var(--ease);
}

.is-written .write-char {
  opacity: 1;
  translate: 0 0;
  filter: blur(0);
  transition: opacity 0.6s var(--ease), translate 0.8s var(--ease), filter 0.7s var(--ease);
  transition-delay: calc(var(--i) * 30ms + 0.1s);
}

/* Copy keeps to the left edge of the page grid (in line with the logo),
   clear of the contour on the right. */
@media (min-width: 769px) and (orientation: landscape) {
  .deposit .act__content {
    max-width: 700px;
    margin-left: max(0px, (100% - var(--container-max)) / 2);
  }

  .deposit .act__stats {
    width: fit-content;
  }
}

@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
  .deposit__map-stage {
    top: 2vh;
    left: calc(72vw - 79.64vh);
    width: calc(90vh * 1.7698);
  }

  .deposit .act__content {
    max-width: 540px;
  }
}

/* Upright screens: the map becomes a band under the header with the
   deposit in full, fading into the page; the copy keeps the lower half. */
@media (orientation: portrait) {
  .deposit__map-stage {
    top: calc(var(--header-h) - 2vh);
    left: 50%;
    width: min(205vw, 110vh);
    translate: -50% 0;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  }
}

@media (max-width: 768px) and (orientation: portrait) {

  .deposit .act__stats {
    gap: 18px 28px;
    margin-top: 28px;
    padding-top: 22px;
  }

  .deposit .act__stat-value {
    font-size: 1.45rem;
  }
}

/* Static state (no JS, or reduced motion): the finished map, both texts. */
.no-js .deposit .act__media,
.deposit.is-static .act__media {
  display: none;
}

.no-js .deposit__map,
.deposit.is-static .deposit__map {
  opacity: 1;
}

.no-js .deposit__contour-line,
.deposit.is-static .deposit__contour-line {
  stroke-dashoffset: 0;
}

.no-js .deposit__contour-area,
.deposit.is-static .deposit__contour-area {
  fill: rgba(250, 240, 222, 0.1);
}

.no-js .deposit__beats,
.deposit.is-static .deposit__beats {
  display: block;
}

/* the static map sits behind the photo's copy: keep that paragraph clear of the contour */
.no-js .deposit .act__text,
.deposit.is-static .act__text {
  max-width: 46ch;
}

/* the map's own heading repeats the section title: the static page keeps one */
.no-js .deposit__beat--map,
.deposit.is-static .deposit__beat--map {
  display: none;
}

.no-js .deposit__credit,
.deposit.is-static .deposit__credit {
  opacity: 1;
  translate: none;
}

/* ---------------------------------------------------------------------------
   17. Grades: one seam, four grades (2026-10)
   Pinned by JS. A real shot of our quarry face gives way to a close-up of
   the clay; each grade's mark draws itself in outline like the deposit
   contour, its line is written out, its figures count up, and the needles
   on the Al2O3 / Fe2O3 scales travel to it. Without JS or with reduced
   motion the grades simply stack.
   ------------------------------------------------------------------------- */

.grades {
  position: relative;
  background: var(--bg);
}

.grades__stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--bg);
}

.grades__stage::before,
.grades__stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
  height: 12vh;
  pointer-events: none;
}

.grades__stage::before {
  top: 0;
  background: linear-gradient(180deg, rgba(19, 20, 23, 0.85), rgba(19, 20, 23, 0));
}

.grades__stage::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(19, 20, 23, 0.85), rgba(19, 20, 23, 0));
}

.grades__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.grades__shot {
  position: absolute;
  inset: 0;
  display: block;
  will-change: transform, opacity;
}

.grades__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* the face pushes in on the white band of the seam */
.grades__shot--face {
  transform-origin: 46% 50%;
}

.grades__shot--clay {
  opacity: 0;
  transform-origin: 46% 52%;
}

/* the white clay is the brightest thing on the page: hold it back a little
   so the copy and the outlined grade lead */
.grades__shot--clay img {
  filter: brightness(0.84);
}

.grades__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(19, 20, 23, 0.74) 0%, rgba(19, 20, 23, 0.3) 46%, rgba(19, 20, 23, 0.08) 100%),
    linear-gradient(0deg, rgba(19, 20, 23, 0.82) 0%, rgba(19, 20, 23, 0) 36%);
}

.grades__scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}

/* Intro: the line that opens the section */
.grades__intro {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: clamp(56px, 13vh, 130px);
  will-change: transform, opacity;
}

.grades__eyebrow,
.grade__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin-bottom: 16px;
}

.grades__headline {
  font-size: clamp(2.4rem, 6.2vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 20ch;
  margin-bottom: 22px;
}

.grades__lead {
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 44ch;
}

/* Grade beats: stacked in one place, one active at a time. The layer lets the
   mouse through; the grade on screen takes it back so its copy can be selected. */
.grades__beats {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
}

.grade.is-active .grade__copy {
  pointer-events: auto;
}

.grade {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 4vw;
  padding: var(--header-h) var(--container-pad) 25vh;
  visibility: hidden;
  transition: visibility 0s linear 0.5s;
}

.grade.is-active {
  visibility: visible;
  transition-delay: 0s;
}

.grade__copy {
  grid-column: 1;
  grid-row: 1;
}

.grade__mark {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 0 6px rgba(255, 238, 214, 0.45));
}

/* The marks are the letters' own outlines (paths from Manrope 800, one per
   contour): a dashed stroke on SVG <text> is scaled differently across
   engines, and Safari left the end of each outline (the foot of the Ш)
   undrawn. JS measures every contour into --len, so the dash covers exactly
   one contour wherever it runs; without JS the outline is simply solid. */
.grade__mark-fill {
  fill: rgba(19, 20, 23, 0);
  transition: fill 0.3s var(--ease);
}

.grade__mark-line {
  fill: none;
  stroke: #f7ecdb;
  stroke-width: 1.7;
  stroke-linejoin: round;
  stroke-dasharray: var(--len, none);
  stroke-dashoffset: var(--len, 0);
  transition: stroke-dashoffset 0.45s var(--ease);
}

.grade.is-active .grade__mark-fill {
  /* a dark fill reads as an engraving over the bright clay */
  fill: rgba(19, 20, 23, 0.4);
  transition: fill 1.2s var(--ease) 1.3s;
}

.grade.is-active .grade__mark-line {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.8s cubic-bezier(0.65, 0, 0.35, 1) 0.1s;
}

.grade__copy > * {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 0.3s var(--ease), translate 0.3s var(--ease);
}

.grade.is-active .grade__copy > * {
  opacity: 1;
  translate: 0 0;
  transition: opacity 0.7s var(--ease), translate 0.8s var(--ease);
}

.grade.is-active .grade__copy > :nth-child(3) { transition-delay: 0.6s; }
.grade.is-active .grade__copy > :nth-child(4) { transition-delay: 0.8s; }
.grade.is-active .grade__copy > :nth-child(5) { transition-delay: 1s; }

.grade__title {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 16ch;
  margin-bottom: 18px;
}

.grade__text {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 52ch;
  margin-bottom: 30px;
}

.grade__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 36px;
  width: fit-content;
  margin: 0;
  padding: 22px 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.grade__stats li {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.grade__stat-value {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 500;
  line-height: 1;
  color: var(--accent-hover);
  font-variant-numeric: tabular-nums;
}

.grade__stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* the oxide basis: one line under the figures, the same for every grade */
.grade__note {
  margin: 14px 0 0;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Short laptop screens: the full grade descriptions need the height the
   scales leave, so the heading gets smaller and the text column wider
   (fewer lines) */
@media (min-width: 769px) and (max-height: 800px) {
  .grade__title {
    font-size: clamp(1.5rem, 2.3vw, 2rem);
    max-width: 22ch;
    margin-bottom: 12px;
  }

  .grade__text {
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 56ch;
    margin-bottom: 16px;
  }

  .grade__stats {
    gap: 10px 28px;
    padding-top: 14px;
  }

  .grade__stat-value {
    font-size: 1.6rem;
  }
}

/* Scales: an instrument strip along the bottom. Ticks, labels and a mark
   per grade are built by JS from the data attributes. */
.grades__gauges {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: clamp(30px, 6vh, 64px);
  display: grid;
  gap: 46px;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}

.grades.is-grades .grades__gauges {
  opacity: 1;
}

.gauge {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.gauge__name {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.gauge__track {
  position: relative;
  height: 1px;
  background: rgba(247, 236, 219, 0.28);
}

.gauge__tick {
  position: absolute;
  bottom: 0;
  width: 1px;
  height: 6px;
  translate: -0.5px 0;
  background: rgba(247, 236, 219, 0.3);
}

.gauge__tick--major {
  height: 11px;
  background: rgba(247, 236, 219, 0.55);
}

.gauge__label {
  position: absolute;
  top: 9px;
  translate: -50% 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
}

.gauge__mark {
  position: absolute;
  bottom: -7px;
  width: 1px;
  height: 15px;
  translate: -0.5px 0;
  background: rgba(247, 236, 219, 0.7);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}

.gauge__mark.is-visited {
  opacity: 1;
}

/* Fill and needle move on transforms only (no layout per frame): the fill
   is the full track scaled from its left end, the needle a full-width rail
   shifted by a share of its own width, i.e. of the track. */
.gauge__fill {
  position: absolute;
  left: 0;
  top: -1px;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgba(217, 121, 63, 0.12), var(--accent-hover));
  box-shadow: 0 0 10px rgba(217, 121, 63, 0.5);
  transform-origin: 0 50%;
  scale: var(--gauge-t, 0) 1;
  transition: scale 1s cubic-bezier(0.65, 0, 0.35, 1);
}

.gauge__needle {
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 21px;
  pointer-events: none;
  translate: var(--gauge-pos, 0%) 0;
  transition: translate 1s cubic-bezier(0.65, 0, 0.35, 1);
}

.gauge__needle::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--accent-hover);
  box-shadow: 0 0 10px rgba(217, 121, 63, 0.8);
}

.gauge__readout {
  position: absolute;
  bottom: 24px;
  left: 0;
  translate: -50% 0;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  /* grade copy runs the full width on phones: once the grades start,
     darken evenly behind it (the intro keeps the lighter scrim) */
  .grades__scrim::after {
    background: linear-gradient(180deg, rgba(19, 20, 23, 0.45) 0%, rgba(19, 20, 23, 0.7) 30%, rgba(19, 20, 23, 0.74) 72%, rgba(19, 20, 23, 0.9) 100%);
  }

  .grades.is-grades .grades__scrim::after {
    opacity: 1;
  }

  .grade {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    align-items: start;
    gap: 6px;
    padding: calc(var(--header-h) + 1vh) var(--container-pad) 0;
  }

  .grade__mark {
    grid-column: 1;
    grid-row: 1;
    width: min(56vw, 280px);
    justify-self: start;
    margin-left: -3vw;
  }

  .grade__copy {
    grid-row: 2;
  }

  .grade__title {
    font-size: 1.55rem;
    margin-bottom: 12px;
  }

  /* the full descriptions run to a dozen lines on a narrow phone: a smaller
     mark above and tighter text keep them clear of the scales */
  .grade__text {
    font-size: 0.86rem;
    line-height: 1.5;
    margin-bottom: 14px;
  }

  .grade__stats {
    gap: 20px;
    padding-top: 14px;
  }

  .grade__stat-value {
    font-size: 1.3rem;
  }

  .grades__gauges {
    gap: 42px;
    bottom: 30px;
  }

  .gauge {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 12px;
  }

  .gauge__name {
    font-size: 0.62rem;
  }
}

/* the narrowest phones (360 px Android): one more step down for the mark and the text */
@media (max-width: 380px) {
  .grade__mark {
    width: 54vw;
  }

  .grade__text {
    font-size: 0.83rem;
  }
}

/* Short phones (Safari with its toolbars shows ~660px): the description
   matters more than the scales, so the scales step aside for it and the
   mark gets smaller; the figures are still right under the text */
@media (max-width: 768px) and (max-height: 860px) {
  .grades__gauges {
    display: none;
  }

  .grade__text {
    line-height: 1.45;
  }

  .grade__stats {
    gap: 10px 20px;
  }

  .grade__mark {
    width: min(46vw, 210px);
  }
}

/* phones with ~630-680px to show (iPhone mini in Safari, older Android):
   a smaller mark and a step smaller description */
@media (max-width: 768px) and (max-height: 680px) {
  .grade__mark {
    width: min(36vw, 170px);
  }

  .grade__text {
    font-size: 0.82rem;
  }

  .grade__note {
    margin-top: 8px;
  }
}

/* narrow and short at once (360px Android with its toolbar): the note goes too */
@media (max-width: 380px) and (max-height: 680px) {
  .grade__mark {
    width: 30vw;
  }

  .grade__note {
    display: none;
  }
}

/* the shortest phones (iPhone SE in Safari, ~550px): a smaller grade heading,
   no big contour mark (the grade is named right above the heading), and a
   smaller intro heading */
@media (max-width: 768px) and (max-height: 600px) {
  .grade__title {
    font-size: 1.3rem;
    margin-bottom: 8px;
  }

  .grade__mark {
    display: none;
  }

  .grades__headline {
    font-size: 1.9rem;
  }

  .grade__text {
    font-size: 0.8rem;
  }

  /* the same note under every grade: on the smallest screen the text comes first */
  .grade__note {
    display: none;
  }
}

/* Static state (no JS, or reduced motion): the grades stack in reading order
   over the clay close-up; the scales are left out. */
.grades.is-static .grades__stage,
.no-js .grades__stage {
  height: auto;
  overflow: visible;
}

.grades.is-static .grades__shot--face,
.no-js .grades__shot--face,
.grades.is-static .grades__gauges,
.no-js .grades__gauges {
  display: none;
}

.grades.is-static .grades__shot--clay,
.no-js .grades__shot--clay {
  opacity: 0.45;
}

.grades.is-static .grades__intro,
.no-js .grades__intro {
  position: relative;
  bottom: auto;
  padding-block: 120px 56px;
}

.grades.is-static .grades__beats,
.no-js .grades__beats {
  position: relative;
  inset: auto;
  display: grid;
  gap: 72px;
  padding-bottom: 110px;
  pointer-events: auto;
}

.grades.is-static .grade,
.no-js .grade {
  position: relative;
  inset: auto;
  padding: 0;
  visibility: visible;
}

.grades.is-static .grade__copy > *,
.no-js .grade__copy > * {
  opacity: 1;
  translate: none;
}

.grades.is-static .grade__mark-line,
.no-js .grade__mark-line {
  stroke-dashoffset: 0;
}

.grades.is-static .grade__mark-fill,
.no-js .grade__mark-fill {
  fill: rgba(19, 20, 23, 0.4);
}

/* ---------------------------------------------------------------------------
   Phones
   The desktop layout above stays as it is; what follows only tunes it for a
   thumb and a small screen.
   ------------------------------------------------------------------------- */

/* 16px fields: below that iOS zooms the page in as soon as a field takes focus */
@media (pointer: coarse) {
  .cta-form__row input,
  .cta-form__row textarea {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  /* the copy runs the full width here: shade a band under it, not a spot
     on the left as on desktop, so the right half reads over a bright sky */
  .hero__scrim {
    background: linear-gradient(180deg, rgba(19, 20, 23, 0.4) 0%, rgba(19, 20, 23, 0.12) 22%, rgba(19, 20, 23, 0.5) 40%, rgba(19, 20, 23, 0.7) 72%, var(--bg) 100%);
  }

  .deposit .act__scrim {
    background: linear-gradient(180deg, rgba(19, 20, 23, 0.2) 0%, rgba(19, 20, 23, 0.6) 32%, rgba(19, 20, 23, 0.78) 100%);
  }

  /* the deposit paragraph is long: a little smaller, and the three figures
     tighter, so the last one stays on screen on a small phone */
  .deposit .act__text {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .deposit .act__stats {
    gap: 12px 22px;
    margin-top: 18px;
    padding-top: 14px;
  }

  .deposit .act__stat-value {
    font-size: 1.25rem;
  }

  /* nothing on a phone smaller than ~12px */
  .grade__eyebrow,
  .grades__eyebrow,
  .dig-panel__eyebrow,
  .docs-block__eyebrow {
    font-size: 0.75rem;
  }

  .gauge__name {
    font-size: 0.7rem;
  }

  .shamot-card li {
    font-size: 0.8rem;
  }

  .cta-form__row label {
    font-size: 0.875rem;
  }

  /* phone and e-mail are what people tap on a phone: a full 44px target */
  .cta-block__contacts dd a,
  .site-footer__contacts a,
  .site-footer__legal a,
  .mobile-menu__contact {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

/* a phone on its side: six menu items in two columns fit the short screen */
@media (orientation: landscape) and (max-height: 500px) {
  .mobile-menu__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 32px;
  }
}

/* Short phones: a pinned scene is exactly one screen tall, so the deposit
   paragraph with its figures and the panel with both shamot cards must fit
   in it (iPhone SE in Safari shows ~550px). These come last so they win over
   the general phone rules above. */
@media (max-width: 768px) and (max-height: 680px) {
  .deposit {
    padding-block: calc(var(--header-h) + 12px) 20px;
  }
}

@media (max-width: 768px) and (max-height: 600px) {
  .deposit .act__title {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }

  .deposit .act__text {
    font-size: 0.82rem;
    line-height: 1.42;
  }

  .deposit .act__stats {
    gap: 8px 18px;
    margin-top: 12px;
    padding-top: 10px;
  }

  .deposit .act__stat-value {
    font-size: 1.1rem;
  }

  .dig-scene .dig-panel {
    padding-top: calc(var(--header-h) + 8px);
    padding-bottom: 14px;
  }

  .dig-panel__card,
  .dig-panel--wide .dig-panel__card {
    padding: 16px 16px;
  }

  .shamot-cards {
    margin-top: 10px;
  }

  .shamot-card {
    padding: 14px 16px;
  }

  .shamot-card h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
  }

  .shamot-card p {
    font-size: 0.78rem;
    line-height: 1.45;
    margin-bottom: 8px;
  }

  .shamot-card li span {
    font-size: 1.05rem;
  }
}
