/* ==========================================================================
   Beaver Pumice — beaverpumice.com
   Design system: stone, earth, forest, steel, volcanic material.
   Typography: Archivo (grotesk) + Source Serif 4 (editorial accents).
   ========================================================================== */

/* ---------- Fonts (self-hosted, variable) ---------- */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2192;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('../fonts/source-serif-4-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('../fonts/source-serif-4-latin-wght-italic.woff2') format('woff2-variations');
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026;
}

/* ---------- Tokens ---------- */

:root {
  /* color — mineral palette, warmed toward the brand cream */
  --paper:      #F5F2E6;   /* mineral cream (from the badge) */
  --paper-deep: #EAE6D5;   /* warm stone */
  --navy:       #103D57;   /* brand navy (from the badge) */
  --ink:        #1B1813;   /* near-black, warm */
  --char:       #2B2721;   /* charcoal */
  --basalt:     #4B463C;   /* volcanic gray */
  --gray:       #6E675A;   /* body gray on paper */
  --gray-soft:  #8C8574;
  --tan:        #C6B99F;
  --moss:       #46523F;   /* muted forest green */
  --ember:      #A9541F;   /* restrained copper — used sparingly */
  --line:       #DBD5C2;   /* hairline on paper */
  --line-dark:  rgba(245, 242, 230, 0.16);
  --paper-dark-body: rgba(245, 242, 230, 0.72);

  /* type */
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;

  /* motion */
  --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
  --dur: 0.55s;

  /* structure */
  --max: 1360px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --header-h: 4.5rem;
}

/* ---------- Reset / base ---------- */

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 410;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }

h1, h2, h3, h4 { margin: 0; font-weight: 560; line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

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

::selection { background: var(--tan); color: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  body { animation: pagefade 0.45s var(--ease); }
}
@keyframes pagefade { from { opacity: 0; } }

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 0.85rem;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Type utilities ---------- */

.eyebrow {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 620;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 1.5rem;
}
.eyebrow .idx {
  color: var(--ember);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}
.on-dark .eyebrow { color: var(--gray-soft); }
.on-dark .eyebrow .idx { color: var(--tan); } /* AA contrast on dark */

.h-display {
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  font-weight: 620;
  letter-spacing: -0.022em;
  line-height: 1.02;
}
.h-section {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.06;
  max-width: 18em;
}
.h-sub {
  font-size: 1.3rem;
  font-weight: 560;
  letter-spacing: -0.01em;
}

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--basalt);
  max-width: 34em;
}
.on-dark .lede { color: var(--paper-dark-body); }

.serif-note {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 430;
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--basalt);
}
.on-dark .serif-note { color: var(--tan); }

.caption {
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--gray);
  line-height: 1.5;
}

.muted { color: var(--gray); }
.on-dark .muted { color: var(--paper-dark-body); }

/* ---------- Buttons & text links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85em;
  padding: 1em 1.55em;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover, .btn:focus-visible { background: var(--ember); border-color: var(--ember); color: #fff; }
.btn:hover .arrow, .btn:focus-visible .arrow { transform: translateX(4px); }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.on-dark .btn { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.on-dark .btn:hover, .on-dark .btn:focus-visible { background: var(--ember); border-color: var(--ember); color: #fff; }
.on-dark .btn--ghost { background: transparent; border-color: var(--line-dark); color: var(--paper); }
.on-dark .btn--ghost:hover, .on-dark .btn--ghost:focus-visible { background: var(--paper); border-color: var(--paper); color: var(--ink); }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.8rem;
  font-weight: 620;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--tan);
  padding-bottom: 0.35em;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.textlink:hover, .textlink:focus-visible { color: var(--ember); border-color: var(--ember); }
.on-dark .textlink { color: var(--paper); border-color: var(--line-dark); }
.on-dark .textlink:hover, .on-dark .textlink:focus-visible { color: var(--tan); border-color: var(--tan); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  color: var(--paper);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.site-header.is-solid {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.header-light { color: var(--ink); }
.site-header.header-light:not(.is-solid) { box-shadow: 0 1px 0 var(--line); background: var(--paper); }

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}
.brand .logo-badge { height: 48px; width: auto; flex: none; }
@media (max-width: 900px) { .brand .logo-badge { height: 42px; } }
/* badge swaps with header state: cream over dark heroes, navy on paper */
.site-header .logo-navy { display: none; }
.site-header.is-solid .logo-navy,
.site-header.header-light .logo-navy { display: block; }
.site-header.is-solid .logo-cream,
.site-header.header-light .logo-cream { display: none; }
body.menu-open .site-header .logo-navy { display: none !important; }
body.menu-open .site-header .logo-cream { display: block !important; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-size: 0.98rem;
  font-weight: 680;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.brand-sub {
  font-size: 0.56rem;
  font-weight: 560;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  opacity: 0.62;
  margin-top: 0.32em;
}

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a {
  position: relative;
  font-size: 0.8rem;
  font-weight: 540;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.4rem 0;
  opacity: 0.85;
  transition: opacity 0.2s var(--ease);
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right 0.3s var(--ease);
}
.site-nav a:hover, .site-nav a:focus-visible { opacity: 1; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { right: 0; }
.site-nav a[aria-current="page"] { opacity: 1; }
.site-nav a[aria-current="page"]::after { right: 0; background: var(--ember); }

.nav-cta {
  border: 1px solid currentColor;
  border-radius: 2px;
  padding: 0.62rem 1.1rem;
  font-size: 0.72rem;
  font-weight: 620;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.site-header:not(.is-solid):not(.header-light) .nav-cta:hover,
.site-header:not(.is-solid):not(.header-light) .nav-cta:focus-visible { background: var(--paper); color: var(--ink); }
.site-header.is-solid .nav-cta:hover, .site-header.is-solid .nav-cta:focus-visible,
.site-header.header-light .nav-cta:hover, .site-header.header-light .nav-cta:focus-visible { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* burger */
.nav-toggle { display: none; }

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

  .nav-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
  }
  .nav-toggle span,
  .nav-toggle span::before,
  .nav-toggle span::after {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
    content: '';
    position: relative;
  }
  .nav-toggle span::before { position: absolute; top: -7px; }
  .nav-toggle span::after { position: absolute; top: 7px; }
  body.menu-open .nav-toggle span { background: transparent; }
  body.menu-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
  body.menu-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }
}

/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 1rem) var(--gutter) 3rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}
body.menu-open .mobile-menu {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.35s var(--ease);
}
body.menu-open { overflow: hidden; }
body.menu-open .site-header { background: transparent; color: var(--paper); box-shadow: none; }

.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu a.mm-link {
  font-size: clamp(2rem, 8vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: none;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.mobile-menu a.mm-link .mm-idx {
  font-size: 0.72rem;
  font-weight: 560;
  letter-spacing: 0.2em;
  color: var(--gray-soft);
}
.mobile-menu a.mm-link[aria-current="page"] { color: var(--tan); }
body.menu-open .mobile-menu a.mm-link { opacity: 1; transform: none; }
body.menu-open .mobile-menu a.mm-link:nth-child(1) { transition-delay: 0.05s; }
body.menu-open .mobile-menu a.mm-link:nth-child(2) { transition-delay: 0.1s; }
body.menu-open .mobile-menu a.mm-link:nth-child(3) { transition-delay: 0.15s; }
body.menu-open .mobile-menu a.mm-link:nth-child(4) { transition-delay: 0.2s; }
body.menu-open .mobile-menu a.mm-link:nth-child(5) { transition-delay: 0.25s; }
body.menu-open .mobile-menu a.mm-link:nth-child(6) { transition-delay: 0.3s; }

.mobile-menu .mm-contact {
  margin-top: 2.5rem;
  font-size: 0.95rem;
  color: var(--paper-dark-body);
}
.mobile-menu .mm-contact a { color: var(--paper); text-decoration: none; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(4.5rem, 9vw, 8.5rem); }
.section--tight { padding-block: clamp(3.5rem, 6.5vw, 6rem); }

.on-dark {
  background: var(--ink);
  color: var(--paper);
  position: relative;
}
.on-dark::before {
  /* faint mineral grain */
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.93 0 0 0 0 0.88 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.on-dark > * { position: relative; }
.on-dark p { color: var(--paper-dark-body); }
.on-dark p strong { color: var(--paper); }

.on-stone { background: var(--paper-deep); }

.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.on-dark .rule { border-color: var(--line-dark); }

/* strata divider — thin stacked bands, a nod to the airfall deposit */
.strata {
  display: block;
  width: 100%;
  height: 14px;
}
.strata rect { fill: currentColor; }

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  transition-delay: var(--rd, 0s);
}
.reveal.in-view { opacity: 1; transform: none; }

.img-reveal { overflow: hidden; }
.img-reveal img {
  transform: scale(1.06);
  transition: transform 1.1s var(--ease);
}
.img-reveal.in-view img { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .img-reveal img, .mobile-menu a.mm-link { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-media img { transform: none !important; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  min-height: min(88vh, 860px);
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  background: var(--char);
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(20, 17, 12, 0.82) 0%, rgba(20, 17, 12, 0.32) 45%, rgba(20, 17, 12, 0.38) 100%);
}
.hero .container { width: 100%; padding-bottom: clamp(3rem, 7vw, 5.5rem); padding-top: calc(var(--header-h) + 4rem); }

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 620;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 1.6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero-eyebrow::before {
  content: '';
  width: 2.6rem;
  height: 1px;
  background: var(--tan);
  opacity: 0.7;
}
.hero h1 { max-width: 12em; color: #fff; }
.hero .hero-sub {
  margin-top: 1.6rem;
  max-width: 36em;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}
.hero-actions {
  margin-top: 2.4rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero .btn { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.hero .btn:hover, .hero .btn:focus-visible { background: var(--ember); border-color: var(--ember); color: #fff; }
.hero .textlink { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.hero .textlink:hover, .hero .textlink:focus-visible { color: var(--tan); border-color: var(--tan); }

/* hero load-in */
.hero [data-hero] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.hero-media { opacity: 0; transition: opacity 0.9s ease; }
body.is-loaded .hero-media { opacity: 1; }
body.is-loaded .hero [data-hero] { opacity: 1; transform: none; }
body.is-loaded .hero [data-hero="1"] { transition-delay: 0.15s; }
body.is-loaded .hero [data-hero="2"] { transition-delay: 0.26s; }
body.is-loaded .hero [data-hero="3"] { transition-delay: 0.37s; }
body.is-loaded .hero [data-hero="4"] { transition-delay: 0.48s; }
@media (prefers-reduced-motion: reduce) {
  .hero [data-hero], .hero-media { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* fact strip under hero */
.factbar { border-bottom: 1px solid var(--line); }
.factbar .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.factbar .fact {
  padding: 1.6rem 1.75rem 1.7rem 0;
  border-left: 1px solid var(--line);
  padding-left: 1.75rem;
}
.factbar .fact:first-child { border-left: 0; padding-left: 0; }
.fact .fact-k {
  font-size: 0.7rem;
  font-weight: 620;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember);
  display: block;
  margin-bottom: 0.45rem;
}
.fact .fact-v { font-size: 0.98rem; color: var(--basalt); line-height: 1.5; }

@media (max-width: 780px) {
  .factbar .container { grid-template-columns: 1fr; }
  .factbar .fact { border-left: 0; padding-left: 0; padding-block: 1.1rem; border-top: 1px solid var(--line); }
  .factbar .fact:first-child { border-top: 0; }
}

/* ---------- Page hero (subpages) ---------- */

.page-hero {
  padding-top: calc(var(--header-h) + clamp(3.5rem, 8vw, 7rem));
  padding-bottom: clamp(2.75rem, 6vw, 5rem);
}
.page-hero .crumb {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 1.4rem;
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
}
.page-hero .crumb .idx { color: var(--ember); }
.page-hero .lede { margin-top: 1.5rem; }

/* ---------- Split editorial layout ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.split--rev { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.split--wide { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
@media (max-width: 860px) {
  .split, .split--rev { grid-template-columns: 1fr; }
}

.sticky-col { position: sticky; top: calc(var(--header-h) + 2rem); }
@media (max-width: 860px) { .sticky-col { position: static; } }

/* ---------- Figures ---------- */

.figure { position: relative; }
.figure img {
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 22px 44px -22px rgba(27, 24, 19, 0.4), 0 6px 16px -10px rgba(27, 24, 19, 0.22);
}
.img-reveal { border-radius: 10px; }
.figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  margin-top: 0.9rem;
  font-size: 0.8125rem;
  color: var(--gray);
}
.on-dark .figure figcaption { border-color: var(--line-dark); color: var(--gray-soft); }

.frame-tall img { aspect-ratio: 4 / 5; }
.frame-wide img { aspect-ratio: 16 / 9; }
.frame-cine img { aspect-ratio: 21 / 9; }
.frame-sq img { aspect-ratio: 1 / 1; }

.full-bleed { width: 100%; }
.full-bleed img { width: 100%; height: clamp(320px, 55vw, 620px); object-fit: cover; }
.full-bleed--tall img { height: clamp(420px, 68vw, 780px); }
.full-bleed--cine img { height: clamp(300px, 40vw, 520px); }

/* subtle hover zoom for linked figures */
.figure-link { display: block; overflow: hidden; }
.figure-link img { transition: transform 0.8s var(--ease); }
.figure-link:hover img, .figure-link:focus-visible img { transform: scale(1.035); }

/* ---------- Home: products band ---------- */

.products-band .band-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.band-head .textlink { flex: none; margin-bottom: 0.4rem; }
@media (max-width: 700px) {
  .products-band .band-head { flex-direction: column; align-items: flex-start; }
}

.grade-list { border-top: 1px solid var(--line-dark); }
.grade-row {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: baseline;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line-dark);
  text-decoration: none;
  transition: padding-left 0.3s var(--ease);
}
.grade-row:hover { padding-left: 0.75rem; }
.grade-row .g-idx { font-size: 0.78rem; color: var(--gray-soft); font-variant-numeric: tabular-nums; }
.grade-row .g-name { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 580; letter-spacing: -0.01em; color: var(--paper); }
.grade-row .g-uses { font-size: 0.95rem; color: var(--paper-dark-body); }
.grade-row .g-go { font-size: 1.1rem; color: var(--tan); transition: transform 0.3s var(--ease), color 0.2s var(--ease); }
.grade-row:hover .g-go { transform: translateX(5px); color: var(--paper); }
@media (max-width: 700px) {
  .grade-row { grid-template-columns: 2.4rem 1fr auto; }
}

/* ---------- Home/pages: applications explorer ---------- */

.apps-explorer {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}
@media (max-width: 860px) { .apps-explorer { grid-template-columns: 1fr; } }

.apps-list { border-top: 1px solid var(--line); margin: 0; padding: 0; list-style: none; }
.apps-list li { border-bottom: 1px solid var(--line); }
.apps-item {
  width: 100%;
  display: grid;
  grid-template-columns: 2.6rem 1fr auto;
  align-items: baseline;
  gap: 1rem;
  padding: 1.05rem 0.25rem 1.05rem 0;
  text-align: left;
  transition: padding-left 0.3s var(--ease), color 0.2s var(--ease);
}
.apps-item .ai-idx { font-size: 0.72rem; color: var(--gray-soft); font-variant-numeric: tabular-nums; }
.apps-item .ai-name { font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 560; letter-spacing: -0.01em; }
.apps-item .ai-tag { font-size: 0.78rem; color: var(--gray); letter-spacing: 0.04em; }
.apps-item:hover, .apps-item.is-active { padding-left: 0.7rem; color: var(--ember); }
@media (max-width: 560px) { .apps-item .ai-tag { display: none; } }
.apps-item.is-active .ai-tag { color: var(--ember); }

.apps-stage { position: sticky; top: calc(var(--header-h) + 2rem); }
@media (max-width: 860px) { .apps-stage { display: none; } }
.apps-stage .stage-frame {
  position: relative;
  aspect-ratio: 4 / 4.6;
  overflow: hidden;
  background: var(--paper-deep);
  border-radius: 10px;
  box-shadow: 0 22px 44px -22px rgba(27, 24, 19, 0.4), 0 6px 16px -10px rgba(27, 24, 19, 0.22);
}
.apps-stage .stage-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.apps-stage .stage-frame img.is-active { opacity: 1; }
.apps-stage .stage-caption {
  display: flex;
  justify-content: space-between;
  padding-top: 0.8rem;
  margin-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--gray);
}

/* ---------- Origin / geology timeline ---------- */

.origin { position: relative; }
.origin .origin-head { max-width: 44em; margin-bottom: clamp(3rem, 6vw, 5rem); }

.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line-dark);
  margin-left: 0.4rem;
}
.timeline li {
  position: relative;
  padding: 0 0 clamp(2.2rem, 4vw, 3.2rem) clamp(1.6rem, 4vw, 3rem);
  max-width: 44em;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: '';
  position: absolute;
  left: -0.3rem;
  top: 0.5rem;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--ember);
  border-radius: 50%;
}
.timeline li:nth-child(even)::before { background: var(--tan); }
.timeline .t-era {
  font-size: 0.7rem;
  font-weight: 620;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tan);
  display: block;
  margin-bottom: 0.5rem;
}
.timeline .t-title {
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 580;
  letter-spacing: -0.015em;
  color: var(--paper);
  margin-bottom: 0.5rem;
}
.timeline p { font-size: 1rem; }

/* ---------- Logistics route ---------- */

.route-figure { margin-block: clamp(2.5rem, 5vw, 4rem); }
.route-svg { width: 100%; height: auto; display: block; }
.route-svg .route-path {
  fill: none;
  stroke: var(--tan);
  stroke-width: 1.5;
  stroke-dasharray: 6 7;
  animation: routeflow 26s linear infinite;
}
@keyframes routeflow { to { stroke-dashoffset: -520; } }
.route-svg .route-stop { fill: var(--ember); }
.route-svg .route-ring { fill: none; stroke: var(--tan); stroke-width: 1; opacity: 0.55; }
.route-svg text {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  fill: var(--paper);
}
.route-svg .t-sub { font-weight: 460; letter-spacing: 0.06em; fill: var(--gray-soft); text-transform: none; }
@media (prefers-reduced-motion: reduce) { .route-svg .route-path { animation: none; } }
.route-svg--v { display: none; }
@media (max-width: 700px) {
  .route-svg:not(.route-svg--v) { display: none; }
  .route-svg--v { display: block; max-width: 360px; }
}

/* ---------- Pozzolan reaction diagram ---------- */

.reaction {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: clamp(0.8rem, 2vw, 1.5rem);
  align-items: stretch;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.reaction .rx-step {
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
}
.reaction .rx-step.rx-final { border-color: var(--tan); }
.reaction .rx-k {
  font-size: 0.68rem;
  font-weight: 620;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tan);
  display: block;
  margin-bottom: 0.7rem;
}
.reaction .rx-t {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 580;
  color: var(--paper);
  line-height: 1.3;
}
.reaction .rx-d { font-size: 0.9rem; margin-top: 0.6rem; color: var(--paper-dark-body); }
.reaction .rx-arrow {
  align-self: center;
  font-size: 1.6rem;
  color: var(--tan);
}
@media (max-width: 860px) {
  .reaction { grid-template-columns: 1fr; }
  .reaction .rx-arrow { transform: rotate(90deg); justify-self: center; }
}

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  padding: 1.2rem 0.25rem 1.2rem 0;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 560;
  letter-spacing: -0.01em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-weight: 460;
  color: var(--ember);
  flex: none;
}
.faq details[open] summary::after { content: '\2212'; }
.faq .faq-a { padding: 0 0 1.4rem; max-width: 60ch; color: var(--basalt); }

/* ---------- Contact CTA band ---------- */

.contact-band .cb-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: end;
}
@media (max-width: 860px) { .contact-band .cb-grid { grid-template-columns: 1fr; align-items: start; } }
.contact-band h2 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 620;
  letter-spacing: -0.025em;
  line-height: 1;
}
.contact-band h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 460;
  letter-spacing: -0.01em;
}
.cb-details { display: grid; gap: 1.1rem; }
.cb-details .cd-row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line-dark);
}
.cb-details .cd-k {
  font-size: 0.68rem;
  font-weight: 620;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tan);
}
.cb-details a {
  color: var(--paper);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 520;
}
.cb-details a:hover { color: var(--tan); }

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: 1.4rem; }
.form-row { display: grid; gap: 1.4rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.5rem; }
.field label {
  font-size: 0.72rem;
  font-weight: 620;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--basalt);
}
.field label .opt { color: var(--gray-soft); letter-spacing: 0.08em; text-transform: none; font-weight: 460; }
.field input, .field textarea {
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--basalt);
  border-radius: 0;
  padding: 0.55rem 0.1rem;
  transition: border-color 0.25s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--ember);
  box-shadow: 0 1px 0 var(--ember);
}
.field textarea { resize: vertical; min-height: 8.5rem; }
.form .form-note { font-size: 0.85rem; color: var(--gray); }
.form-status { font-size: 0.95rem; color: var(--moss); font-weight: 540; }
.form-status.is-error { color: var(--ember); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-bottom-color: var(--ember);
  box-shadow: 0 1px 0 var(--ember);
}

.contact-cards { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-cards .cc {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
}
@media (max-width: 480px) { .contact-cards .cc { grid-template-columns: 1fr; gap: 0.3rem; } }
.contact-cards .cc-k {
  font-size: 0.7rem;
  font-weight: 620;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember);
}
.contact-cards .cc-v { font-size: 1.02rem; line-height: 1.55; }
.contact-cards .cc-v a { text-decoration: none; font-weight: 540; }
.contact-cards .cc-v a:hover { color: var(--ember); }
.contact-cards .cc-v .cc-sub { display: block; font-size: 0.85rem; color: var(--gray); margin-top: 0.2rem; }
.contact-cards .maplink {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--basalt);
  text-decoration: none;
  border-bottom: 1px solid var(--tan);
  padding-bottom: 0.2em;
}
.contact-cards .maplink:hover { color: var(--ember); border-color: var(--ember); }

/* ---------- Product page gallery ---------- */

.material-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.8rem, 1.6vw, 1.4rem);
}
@media (max-width: 780px) { .material-grid { grid-template-columns: repeat(2, 1fr); } }
.material-grid .figure:nth-child(3n+2) { transform: translateY(clamp(0.8rem, 2vw, 2rem)); }
@media (max-width: 780px) { .material-grid .figure:nth-child(3n+2) { transform: none; } }
.material-grid img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.material-grid figcaption { font-variant-numeric: tabular-nums; }
.on-dark .material-grid figcaption { color: var(--tan); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--char);
  color: var(--paper);
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.93 0 0 0 0 0.88 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.site-footer > * { position: relative; }
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr));
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem);
}
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

.footer-brand .footer-badge { width: 168px; height: auto; }
.footer-brand p { margin-top: 1.4rem; max-width: 26em; font-size: 0.95rem; color: var(--paper-dark-body); }

.footer-col .fc-k {
  font-size: 0.68rem;
  font-weight: 620;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 1.1rem;
}
.footer-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; }
.footer-col a { text-decoration: none; font-size: 0.95rem; color: var(--paper-dark-body); transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--tan); }
.footer-col address { font-style: normal; font-size: 0.95rem; color: var(--paper-dark-body); line-height: 1.6; }
.footer-col address strong { color: var(--paper); font-weight: 560; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-bottom: 0.2rem; }
.footer-col address + address { margin-top: 1.1rem; }

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-block: 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--gray-soft);
}
.footer-bottom a { color: var(--gray-soft); text-decoration: none; }
.footer-bottom a:hover { color: var(--tan); }
.footer-bottom .fb-links { display: flex; gap: 1.6rem; }

/* ---------- Misc ---------- */

.stat-inline {
  display: flex;
  gap: clamp(2rem, 5vw, 4rem);
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.on-dark .stat-inline { border-color: var(--line-dark); }
.stat-inline .si .si-v {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 620;
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-inline .si .si-k {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--gray);
  max-width: 14em;
}
.on-dark .stat-inline .si .si-k { color: var(--gray-soft); }

.checklist { margin: 1.5rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.85rem; }
.checklist li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--basalt);
}
.on-dark .checklist li { color: var(--paper-dark-body); }
.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.55rem;
  height: 2px;
  background: var(--ember);
}

.side-label {
  position: absolute;
  top: clamp(4.5rem, 9vw, 8.5rem);
  right: calc((100vw - min(var(--max), 100vw)) / 2 - 1rem);
  writing-mode: vertical-rl;
  font-size: 0.66rem;
  font-weight: 620;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gray-soft);
  opacity: 0.6;
}
@media (max-width: 1440px) { .side-label { display: none; } }
