/* =====================================================================
   KUBA Recycling — shared stylesheet
   Three themes toggled via [data-theme="industrial|refinery|card"]
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Manrope:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ---------- reset + base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .4s ease, color .4s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- theme A: industrial minimal (default) ---------- */
:root, [data-theme="industrial"] {
  --bg: #f6f4ef;
  --bg-alt: #ecebe4;
  --bg-inverse: #0f1210;
  --fg: #0f1210;
  --fg-inverse: #f6f4ef;
  --fg-muted: #5b5f5a;
  --fg-subtle: #8a8e88;
  --line: #d9d6cc;
  --line-strong: #0f1210;
  --accent: #1c5e4a;
  --accent-soft: #d5e3dc;
  --accent-fg: #ffffff;
  --amber: #b8721e;
  --hero-overlay-1: rgba(15, 18, 16, 0.72);
  --hero-overlay-2: rgba(15, 18, 16, 0.35);
  --card-bg: #ffffff;
  --card-shadow: 0 1px 0 rgba(15,18,16,0.06);
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* ---------- theme B: dark refinery ---------- */
[data-theme="refinery"] {
  --bg: #0d100e;
  --bg-alt: #141815;
  --bg-inverse: #f4f2ec;
  --fg: #ece9e0;
  --fg-inverse: #0d100e;
  --fg-muted: #9ea299;
  --fg-subtle: #6b6f68;
  --line: #262a26;
  --line-strong: #ece9e0;
  --accent: #4bbf94;
  --accent-soft: #1a2822;
  --accent-fg: #0d100e;
  --amber: #e0a35a;
  --hero-overlay-1: rgba(0,0,0,0.78);
  --hero-overlay-2: rgba(0,0,0,0.45);
  --card-bg: #141815;
  --card-shadow: none;
}

/* ---------- theme C: card green ---------- */
[data-theme="card"] {
  --bg: #f4efe6;
  --bg-alt: #ebe4d5;
  --bg-inverse: #164a3c;
  --fg: #171912;
  --fg-inverse: #f4efe6;
  --fg-muted: #575852;
  --fg-subtle: #8a897f;
  --line: #d9d0bf;
  --line-strong: #164a3c;
  --accent: #164a3c;
  --accent-soft: #cadfd6;
  --accent-fg: #f4efe6;
  --amber: #b8721e;
  --hero-overlay-1: rgba(22, 74, 60, 0.82);
  --hero-overlay-2: rgba(22, 74, 60, 0.4);
  --card-bg: #ffffff;
  --card-shadow: 0 1px 0 rgba(22,74,60,0.08);
}

/* ---------- typography scale ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
  color: var(--fg);
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); letter-spacing: -0.02em; font-weight: 500; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }
p  { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow.center::before, .eyebrow.no-line::before { display: none; }

.lede {
  font-size: clamp(1.1rem, 1.5vw, 1.375rem);
  line-height: 1.5;
  color: var(--fg-muted);
  max-width: 62ch;
}
.muted { color: var(--fg-muted); }
.mono { font-family: var(--font-mono); }

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 2.5rem);
}
.container-narrow { max-width: 900px; }
section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-tight { padding: clamp(3rem, 5vw, 4.5rem) 0; }

hr.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  color: var(--fg);
}
.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding-left: 0.55rem;
  border-left: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg-muted);
  position: relative;
  padding: 0.4rem 0;
  transition: color .18s ease;
}
.nav a:hover { color: var(--fg); }
.nav a.active { color: var(--fg); }
.nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.3rem;
  height: 1px;
  background: var(--accent);
}
.nav-cta {
  padding: 0.55rem 1.1rem !important;
  background: var(--fg);
  color: var(--bg) !important;
  border-radius: 999px;
  font-size: 0.85rem !important;
}
.nav-cta:hover { background: var(--accent); color: var(--accent-fg) !important; }

.menu-toggle {
  display: none;
  width: 2.4rem; height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  align-items: center; justify-content: center;
}
.menu-toggle span {
  width: 0.9rem; height: 1px; background: var(--fg);
  position: relative;
}
.menu-toggle span::before, .menu-toggle span::after {
  content: ''; position: absolute; left: 0; width: 100%; height: 1px; background: var(--fg);
}
.menu-toggle span::before { top: -0.28rem; }
.menu-toggle span::after  { top:  0.28rem; }

@media (max-width: 820px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 1.5rem;
    gap: 0.75rem;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--fg);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent); color: var(--accent-fg); transform: translateY(-1px); }
.btn-accent {
  background: var(--accent);
  color: var(--accent-fg);
}
.btn-accent:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--fg);
}
.btn-ghost:hover { background: var(--fg); color: var(--bg); }
.btn .arrow {
  display: inline-block;
  transition: transform .2s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-inverse);
  color: var(--fg-inverse);
  min-height: min(88vh, 780px);
  display: flex;
  align-items: flex-end;
  padding-top: 6rem;
  padding-bottom: 3rem;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  animation: kenburns 26s ease-in-out infinite alternate;
  transform-origin: center 40%;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      color-mix(in oklab, var(--hero-overlay-2) 30%, transparent) 0%,
      transparent 25%,
      color-mix(in oklab, var(--hero-overlay-1) 70%, transparent) 85%,
      color-mix(in oklab, var(--hero-overlay-1) 90%, transparent) 100%),
    linear-gradient(90deg,
      color-mix(in oklab, var(--hero-overlay-1) 85%, transparent) 0%,
      color-mix(in oklab, var(--hero-overlay-1) 30%, transparent) 40%,
      transparent 70%);
  pointer-events: none;
}
.hero-media .grain {
  position: absolute;
  inset: -20%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.8  0 0 0 0 0.78  0 0 0 0 0.74  0 0 0 .5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.28'/></svg>");
  opacity: 0.35;
  mix-blend-mode: overlay;
  animation: grainshift 8s steps(6) infinite;
  pointer-events: none;
}
.hero-media .scanline {
  position: absolute;
  left: -10%; right: -10%;
  top: 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35) 50%, transparent);
  animation: scanline 12s ease-in-out infinite;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img { animation: none; }
  .hero-media .grain { animation: none; }
  .hero-media .scanline { animation: none; display: none; }
}

@keyframes kenburns {
  0%   { transform: scale(1.06) translate3d(-1%, -1%, 0); }
  100% { transform: scale(1.14) translate3d( 1%,  1%, 0); }
}
@keyframes grainshift {
  0%   { transform: translate(0,0); }
  25%  { transform: translate(-2%, 1%); }
  50%  { transform: translate(1%, -1%); }
  75%  { transform: translate(-1%, 2%); }
  100% { transform: translate(2%, -2%); }
}
@keyframes scanline {
  0%   { top: 15%; opacity: 0; }
  30%  { opacity: 0.9; }
  100% { top: 92%; opacity: 0; }
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero h1 {
  color: var(--fg-inverse);
  max-width: 18ch;
  font-weight: 500;
}
.hero .lede { color: color-mix(in oklab, var(--fg-inverse) 82%, transparent); max-width: 52ch; margin-top: 1.5rem; }
.hero-eyebrow { color: color-mix(in oklab, var(--fg-inverse) 78%, transparent); }
.hero-eyebrow::before { background: color-mix(in oklab, var(--fg-inverse) 60%, transparent); }
.hero-cta { display: flex; gap: 0.9rem; margin-top: 2.2rem; flex-wrap: wrap; }
.hero-cta .btn-primary { background: var(--fg-inverse); color: var(--bg-inverse); }
.hero-cta .btn-primary:hover { background: var(--accent); color: var(--accent-fg); }
.hero-cta .btn-ghost { border-color: color-mix(in oklab, var(--fg-inverse) 70%, transparent); color: var(--fg-inverse); }
.hero-cta .btn-ghost:hover { background: var(--fg-inverse); color: var(--bg-inverse); }

.hero-meta {
  position: absolute;
  top: 6.5rem; right: clamp(1.25rem, 4vw, 2.5rem);
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--fg-inverse) 70%, transparent);
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem;
  text-align: right;
}
.hero-meta .dot { color: var(--accent); }
@media (max-width: 720px) { .hero-meta { display: none; } }

/* smaller hero for inner pages */
.hero.hero-sm {
  min-height: min(58vh, 520px);
  padding-top: 5rem;
  padding-bottom: 2.5rem;
}
.hero.hero-sm h1 { font-size: clamp(2.2rem, 5vw, 4rem); max-width: 22ch; }

/* ---------- section title block ---------- */
.section-title {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-title > div:first-child { display: flex; flex-direction: column; gap: 0.8rem; }
@media (max-width: 720px) {
  .section-title { grid-template-columns: 1fr; }
}

/* ---------- divisions grid (home) ---------- */
.divisions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 820px) { .divisions { grid-template-columns: 1fr; } }
.division-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--line);
  overflow: hidden;
  min-height: 460px;
  display: flex; flex-direction: column;
  transition: transform .3s ease;
}
.division-card:hover { transform: translateY(-3px); }
.division-card .img {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.division-card .img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s ease;
}
.division-card:hover .img img { transform: scale(1.04); }
.division-card .img .badge {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--bg);
  color: var(--fg);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.division-card .body {
  padding: 1.8rem;
  display: flex; flex-direction: column; gap: 0.9rem; flex: 1;
}
.division-card .body h3 { display: flex; align-items: baseline; gap: 0.7rem; }
.division-card .body h3 .num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg-muted);
  letter-spacing: 0.16em;
}
.division-card .link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--fg);
  border-bottom: 1px solid transparent;
  align-self: flex-start;
  padding-bottom: 0.15rem;
}
.division-card .link .arrow { transition: transform .2s ease; }
.division-card:hover .link { border-color: var(--accent); color: var(--accent); }
.division-card:hover .link .arrow { transform: translateX(4px); }

/* ---------- value proposition strip ---------- */
.value-props {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 960px) { .value-props { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .value-props { grid-template-columns: 1fr; } }
.value-prop {
  padding: 2rem 1.75rem;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 0.7rem;
}
.value-prop:last-child { border-right: none; }
@media (max-width: 960px) {
  .value-prop:nth-child(2) { border-right: none; }
  .value-prop:nth-child(1), .value-prop:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .value-prop { border-right: none; border-bottom: 1px solid var(--line); }
  .value-prop:last-child { border-bottom: none; }
}
.value-prop .num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.value-prop h4 { font-family: var(--font-display); font-size: 1.15rem; }
.value-prop p { color: var(--fg-muted); font-size: 0.95rem; margin: 0; }

/* ---------- sustainability strip ---------- */
.sustainability {
  background: var(--bg-inverse);
  color: var(--fg-inverse);
  padding: clamp(4rem, 7vw, 6rem) 0;
}
.sustainability .eyebrow { color: color-mix(in oklab, var(--fg-inverse) 70%, transparent); }
.sustainability .eyebrow::before { background: color-mix(in oklab, var(--fg-inverse) 60%, transparent); }
.sustainability h2 { color: var(--fg-inverse); max-width: 22ch; }
.sustainability .lede { color: color-mix(in oklab, var(--fg-inverse) 78%, transparent); }
.sustain-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 820px) { .sustain-grid { grid-template-columns: 1fr; } }
.circle-diagram {
  position: relative;
  aspect-ratio: 1;
  max-width: 460px;
  margin-left: auto;
}
.circle-diagram svg { width: 100%; height: 100%; }
.circle-diagram text { fill: var(--fg-inverse); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.sustain-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; margin-top: 2rem;
}
.sustain-stats .stat {
  border-top: 1px solid color-mix(in oklab, var(--fg-inverse) 25%, transparent);
  padding-top: 1rem;
}
.sustain-stats .stat .num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1;
  color: var(--accent);
}
.sustain-stats .stat .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--fg-inverse) 72%, transparent);
  margin-top: 0.5rem;
}

/* ---------- closing CTA ---------- */
.closing-cta {
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--line);
}
.closing-cta .row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: end;
}
@media (max-width: 820px) { .closing-cta .row { grid-template-columns: 1fr; align-items: start; } }
.closing-cta h2 { max-width: 20ch; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--bg-inverse);
  color: var(--fg-inverse);
  padding: clamp(3rem, 5vw, 5rem) 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid color-mix(in oklab, var(--fg-inverse) 20%, transparent);
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h5 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--fg-inverse) 65%, transparent);
  margin-bottom: 1rem;
  font-weight: 500;
}
.footer-grid a, .footer-grid p {
  color: color-mix(in oklab, var(--fg-inverse) 88%, transparent);
  font-size: 0.95rem;
  line-height: 1.6;
  display: block;
  margin-bottom: 0.35rem;
}
.footer-grid a:hover { color: var(--accent); }
.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  color: var(--fg-inverse);
  margin-bottom: 1rem;
}
.footer-tag { color: color-mix(in oklab, var(--fg-inverse) 70%, transparent); font-size: 0.9rem; max-width: 30ch; }
.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: color-mix(in oklab, var(--fg-inverse) 55%, transparent);
  text-transform: uppercase;
}

/* ---------- about page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid h2 { max-width: 14ch; }

.founder-quote {
  background: var(--bg-alt);
  padding: clamp(2.5rem, 5vw, 4rem);
  border: 1px solid var(--line);
  border-radius: 4px;
  position: relative;
}
.founder-quote::before {
  content: '"';
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--accent);
  opacity: 0.35;
  line-height: 1;
}
.founder-quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--fg);
  max-width: 44ch;
}
.founder-quote .cite {
  margin-top: 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}
.founder-quote .cite .avatar {
  width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--accent); color: var(--accent-fg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}
.founder-quote .cite .name { font-weight: 600; font-family: var(--font-display); }
.founder-quote .cite .role { color: var(--fg-muted); font-size: 0.9rem; }

/* ---------- feedstock/oil pages: materials list ---------- */
.material {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1.3fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.material:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 900px) { .material { grid-template-columns: 1fr; gap: 1.5rem; } }
.material-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--fg-muted);
}
.material-title h3 { margin-bottom: 0.4rem; }
.material-title .sub {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
}
.material-title .chip {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.3rem 0.7rem;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
}
.material-body p { color: var(--fg-muted); }
.material-body ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1.5rem;
}
.material-body ul li {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--fg);
  padding-left: 1rem;
  position: relative;
}
.material-body ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55rem;
  width: 0.4rem; height: 1px;
  background: var(--accent);
}

/* ---------- oil spec table ---------- */
.report-showcase {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: 0;
  overflow: hidden;
}
.report-header {
  padding: clamp(1.75rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 720px) { .report-header { grid-template-columns: 1fr; } }
.report-header .eyebrow { color: var(--accent); }
.report-header .eyebrow::before { background: var(--accent); }
.report-header h3 { font-family: var(--font-display); font-size: clamp(1.4rem, 2.2vw, 1.9rem); max-width: 22ch; }
.report-header .meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-muted);
  line-height: 1.6;
}
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  background: var(--accent-soft);
}
.verified-badge svg { width: 14px; height: 14px; }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}
.spec-table th, .spec-table td {
  padding: 1.05rem clamp(1.5rem, 3vw, 2.25rem);
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.spec-table thead th {
  background: var(--bg);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 500;
  padding-top: 1rem; padding-bottom: 1rem;
}
.spec-table tbody tr:last-child td { border-bottom: none; }
.spec-table .prop { color: var(--fg); font-family: var(--font-body); font-weight: 500; font-size: 0.95rem; }
.spec-table .val { color: var(--fg); font-weight: 600; font-size: 1rem; }
.spec-table .unit { color: var(--fg-muted); font-size: 0.82rem; margin-left: 0.25rem; }
.spec-table .method { color: var(--fg-subtle); font-size: 0.8rem; }
.report-footer {
  padding: 1.25rem clamp(1.5rem, 3vw, 2.25rem);
  background: var(--bg);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.report-footer .note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
}

/* ---------- oil grade cards ---------- */
.grades {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 820px) { .grades { grid-template-columns: 1fr; } }
.grade-card {
  border: 1px solid var(--line);
  background: var(--card-bg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex; flex-direction: column; gap: 1rem;
  position: relative;
  overflow: hidden;
}
.grade-card .swatch {
  width: 100%;
  height: 140px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.grade-card.crude .swatch {
  background: linear-gradient(135deg, #7a4416 0%, #b8721e 50%, #d89446 100%);
}
.grade-card.distilled .swatch {
  background: linear-gradient(135deg, #d9c250 0%, #f5e56a 50%, #fef29a 100%);
}
.grade-card .swatch::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.15));
}
.grade-card h3 { font-family: var(--font-display); }
.grade-card .tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.grade-card p { color: var(--fg-muted); }

/* ---------- applications strip (oil) ---------- */
.applications {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 820px) { .applications { grid-template-columns: 1fr; } }
.app-card {
  border: 1px solid var(--line);
  padding: 1.75rem;
  display: flex; flex-direction: column; gap: 0.8rem;
}
.app-card .icon {
  width: 42px; height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.app-card h4 { font-family: var(--font-display); }
.app-card p { color: var(--fg-muted); font-size: 0.95rem; margin: 0; }

/* ---------- why-buy ---------- */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 820px) { .reasons { grid-template-columns: 1fr; } }
.reason {
  border-top: 2px solid var(--accent);
  padding: 1.5rem 0;
}
.reason h4 { font-family: var(--font-display); margin-bottom: 0.5rem; }
.reason p { color: var(--fg-muted); font-size: 0.95rem; }

/* ---------- contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-details {
  display: flex; flex-direction: column; gap: 1.5rem;
}
.contact-item {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}
.contact-item .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.5rem;
}
.contact-item .value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--fg);
}
.contact-item a.value { transition: color .18s ease; }
.contact-item a.value:hover { color: var(--accent); }

.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--line);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}
.contact-form .field {
  margin-bottom: 1.25rem;
}
.contact-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.5rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 0;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color .18s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.contact-form textarea { min-height: 100px; resize: vertical; }
.contact-form .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 560px) { .contact-form .field-row { grid-template-columns: 1fr; } }
.contact-form .submit-row {
  margin-top: 1rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.contact-form .disclaimer {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg-subtle);
  letter-spacing: 0.06em;
}

.map-wrap {
  border: 1px solid var(--line);
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-alt);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.4) contrast(1.05); }
[data-theme="refinery"] .map-wrap iframe { filter: grayscale(0.5) invert(0.9) hue-rotate(180deg) contrast(0.95); }

/* ---------- tweaks panel ---------- */
.tweaks-panel {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 280px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  z-index: 100;
  font-family: var(--font-body);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  display: none;
  overflow: hidden;
}
.tweaks-panel.open { display: block; }
.tweaks-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.tweaks-header .title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}
.tweaks-close {
  width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--fg-muted);
}
.tweaks-close:hover { background: var(--bg-alt); color: var(--fg); }
.tweaks-body { padding: 1rem 1.1rem 1.2rem; }
.tweaks-body .label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.6rem;
}
.theme-options {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
}
.theme-option {
  padding: 0.6rem 0.4rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: border-color .18s ease;
  background: var(--card-bg);
}
.theme-option:hover { border-color: var(--fg); }
.theme-option.active { border-color: var(--accent); border-width: 1.5px; }
.theme-option .swatch {
  height: 34px;
  border-radius: 3px;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
}
.theme-option[data-t="industrial"] .swatch { background: linear-gradient(135deg, #f6f4ef 55%, #0f1210 55%, #0f1210 75%, #1c5e4a 75%); }
.theme-option[data-t="refinery"]   .swatch { background: linear-gradient(135deg, #0d100e 55%, #4bbf94 55%, #4bbf94 75%, #ece9e0 75%); }
.theme-option[data-t="card"]       .swatch { background: linear-gradient(135deg, #164a3c 55%, #f4efe6 55%, #f4efe6 75%, #171912 75%); }

/* ---------- helpers ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 820px) { .grid-2 { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 1.5rem; }
.tag-mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* ---------- founder cards (Contact page) ---------- */
.founder-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 560px) { .founder-cards { grid-template-columns: 1fr; } }
.founder-card {
  border: 1px solid var(--line);
  background: var(--card-bg);
  padding: 1.25rem 1.25rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: border-color .2s ease;
}
.founder-card:hover { border-color: var(--fg); }
.founder-card-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.founder-card-head .avatar {
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--accent); color: var(--accent-fg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.founder-card-head .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.2;
}
.founder-card-head .role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-top: 0.25rem;
}
.founder-card .division-chip {
  align-self: flex-start;
  padding: 0.35rem 0.7rem;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
}
.founder-card-contact {
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}
.founder-card-contact .mini-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.3rem;
}
.founder-card-contact .phone {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--fg);
  transition: color .18s ease;
}
.founder-card-contact .phone:hover { color: var(--accent); }

/* reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
[data-reveal].in { opacity: 1; transform: none; }

/* skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--accent-fg);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.skip-link:focus { left: 1rem; }
