:root {
  --primary: #16323C;
  --primary-deep: #0F252D;
  --accent: #A88832;
  --accent-bright: #D4B060;
  --paper: #F4F1EA;
  --paper-warm: #EBE7DC;
  --ink: #191919;
  --ink-soft: #4A4A4A;
  --hairline: #DDD8CB;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Segoe UI Variable", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "Times New Roman", serif;
  --measure: 68ch;
  --gutter: clamp(20px, 4vw, 64px);
  --max-w: 1240px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-sans); background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Accessibility — focus rings + reduced motion */
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; border-radius: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@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;
  }
}

/* Header / Nav */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--primary); color: var(--paper); border-bottom: 1px solid rgba(255,255,255,0.06); }
.header-inner { max-width: var(--max-w); margin: 0 auto; padding: 16px max(var(--gutter), env(safe-area-inset-right)) 16px max(var(--gutter), env(safe-area-inset-left)); display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--paper); }
.brand-logo { display: block; height: 42px; width: auto; }
.brand-text { font-weight: 700; font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper); line-height: 1; }
.brand-tagline { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-bright); line-height: 1; margin-top: 6px; }

.primary-nav { display: flex; gap: 30px; align-items: center; }
.primary-nav > li { list-style: none; position: relative; }
.primary-nav a { font-size: 13px; font-weight: 500; letter-spacing: 0.02em; color: rgba(244,241,234,0.72); transition: color 0.2s ease; position: relative; padding-block: 4px; display: inline-flex; align-items: center; gap: 4px; }
.primary-nav a:hover, .primary-nav a.active { color: var(--paper); }
.primary-nav a.active::after,
.primary-nav a:hover::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--accent); }

/* Dropdown */
.dropdown-toggle {
  background: transparent; border: none; cursor: pointer;
  color: rgba(244,241,234,0.72);
  font: inherit; font-size: 12px;
  padding: 4px 6px; margin-left: 2px;
  min-width: 24px; min-height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color 0.15s ease, transform 0.15s ease;
}
.dropdown-toggle:hover { color: var(--paper); }
.dropdown-toggle[aria-expanded="true"] { transform: rotate(180deg); color: var(--paper); }
.dropdown-menu {
  position: absolute; top: calc(100% + 14px); left: -18px;
  background: var(--primary-deep);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 2px solid var(--accent);
  padding: 12px 0; min-width: 220px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  list-style: none;
  z-index: 200;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu,
.dropdown-toggle[aria-expanded="true"] ~ .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s;
}
.dropdown-menu a {
  display: block; padding: 10px 22px;
  font-size: 13px; font-weight: 400;
  color: rgba(244,241,234,0.75);
  letter-spacing: 0.01em;
  border-left: 2px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.dropdown-menu a::after { display: none !important; }
.dropdown-menu a:hover, .dropdown-menu a.active {
  color: var(--paper);
  background: rgba(168,136,50,0.08);
  border-left-color: var(--accent);
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  background: transparent; border: none; padding: 10px; cursor: pointer;
  width: 44px; height: 44px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--paper); margin: 5px 0; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero — home */
.hero { position: relative; min-height: min(90vh, 780px); min-height: min(90dvh, 780px); display: flex; align-items: center; overflow: hidden; background: var(--primary-deep); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.55; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,37,45,0.45) 0%, rgba(22,50,60,0.85) 100%), radial-gradient(60% 60% at 20% 40%, rgba(168,136,50,0.15) 0%, transparent 70%); }
.hero-content { position: relative; max-width: var(--max-w); width: 100%; margin: 0 auto; padding: clamp(56px, 10vh, 120px) max(var(--gutter), env(safe-area-inset-left)) clamp(72px, 12vh, 120px) max(var(--gutter), env(safe-area-inset-left)); color: var(--paper); }
.hero-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-bright); margin-bottom: 32px; max-width: 44ch; line-height: 1.5; }
.hero-eyebrow::before { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--accent); margin-right: 14px; vertical-align: middle; }
.hero-h1 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(38px, 6vw, 76px); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 28px; max-width: 18ch; color: var(--paper); }
.hero-sub { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: rgba(244,241,234,0.85); max-width: 52ch; margin-bottom: 44px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero — inner pages (smaller, no background image) */
.hero-inner { background: var(--primary); color: var(--paper); }
.hero-inner .hero-content { padding: clamp(56px, 8vh, 96px) max(var(--gutter), env(safe-area-inset-left)) clamp(48px, 6vh, 72px) max(var(--gutter), env(safe-area-inset-left)); }
.hero-inner .hero-h1 { font-size: clamp(28px, 8vw, 60px); max-width: 22ch; }
.hero-inner .hero-sub { font-size: clamp(16px, 1.4vw, 18px); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; font-family: inherit; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; border: 1px solid transparent; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-bright); box-shadow: 0 8px 24px rgba(168,136,50,0.35); }
.btn-secondary { background: transparent; color: var(--paper); border-color: rgba(244,241,234,0.4); }
.btn-secondary:hover { border-color: var(--paper); background: rgba(244,241,234,0.08); }
.btn-dark { background: var(--primary); color: var(--paper); }
.btn-dark:hover { background: var(--primary-deep); }

/* KPI strip */
.kpi-strip { background: var(--paper); border-bottom: 1px solid var(--hairline); }
.kpi-grid { max-width: var(--max-w); margin: 0 auto; padding: 56px var(--gutter); display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.kpi { border-left: 2px solid var(--accent); padding-left: 24px; }
.kpi-number { font-family: var(--font-serif); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; color: var(--ink); margin-bottom: 8px; letter-spacing: -0.005em; }
.kpi-label { font-size: clamp(13px, 0.5vw + 0.65rem, 15px); color: var(--ink-soft); line-height: 1.5; }

/* Section base */
.section-inner { max-width: var(--max-w); margin: 0 auto; padding: clamp(72px, 9vw, 120px) var(--gutter); }
.section-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.section-eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); }
.section-h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(30px, 4vw, 48px); line-height: 1.1; letter-spacing: -0.015em; color: var(--ink); max-width: 26ch; margin-bottom: 24px; }
.section-lead { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; color: var(--ink-soft); max-width: 62ch; margin-bottom: 48px; }

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card { background: var(--paper-warm); padding: 36px 28px; border-top: 3px solid var(--accent); position: relative; transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease; }
.product-card:hover { transform: translateY(-3px); background: #FFFFFF; box-shadow: 0 20px 40px -20px rgba(22,50,60,0.15); }
.product-eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.product-h3 { font-family: var(--font-serif); font-weight: 400; font-size: 22px; line-height: 1.2; color: var(--ink); margin-bottom: 12px; letter-spacing: -0.005em; }
.product-card p { font-size: clamp(14px, 0.4vw + 0.7rem, 15px); line-height: 1.55; color: var(--ink-soft); }
.product-card > a.card-link { display: inline-block; margin-top: 16px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.product-card > a.card-link:hover { color: var(--primary); }

/* Why-us band */
.why-us { background: var(--primary); color: var(--paper); position: relative; overflow: hidden; }
.why-us::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 100% 0%, rgba(168,136,50,0.10) 0%, transparent 60%);
  pointer-events: none;
}
.why-inner { position: relative; z-index: 1; max-width: var(--max-w); margin: 0 auto; padding: clamp(72px, 9vw, 120px) var(--gutter); }
.why-inner .section-eyebrow { color: var(--accent-bright); }
.why-inner .section-h2 { color: var(--paper); }
.why-inner .section-lead { color: rgba(244,241,234,0.75); }
.why-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 48px; margin-top: 32px; }
.why-item h3 { font-family: var(--font-serif); font-weight: 400; font-size: 22px; color: var(--paper); margin-bottom: 12px; line-height: 1.25; letter-spacing: -0.005em; }
.why-item p { font-size: 15px; line-height: 1.6; color: rgba(244,241,234,0.75); }

/* Industry tiles */
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.industry-tile { background: var(--paper-warm); padding: 28px 24px; color: var(--ink); font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 12px; border: 1px solid transparent; transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease; min-height: 84px; }
.industry-tile::before { content: ""; width: 6px; height: 26px; background: var(--accent); transition: background 0.2s ease, height 0.25s ease; }
.industry-tile:hover { background: #FFFFFF; border-color: var(--hairline); transform: translateY(-2px); }
.industry-tile:hover::before { height: 34px; background: var(--accent-bright); }

/* Contact CTA */
.contact-cta { background: var(--accent); color: var(--ink); }
.cta-inner { max-width: var(--max-w); margin: 0 auto; padding: clamp(72px, 8vw, 110px) var(--gutter); display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.cta-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--primary-deep); margin-bottom: 18px; }
.cta-h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(26px, 3vw, 36px); line-height: 1.2; color: var(--ink); max-width: 30ch; margin-bottom: 16px; letter-spacing: -0.005em; }
.cta-inner p { font-size: 15px; line-height: 1.55; color: var(--ink); max-width: 60ch; opacity: 0.85; }

/* Content body — for product, industry, hub, legal, about pages */
.content-body { max-width: var(--max-w); margin: 0 auto; padding: clamp(64px, 8vw, 96px) var(--gutter); }
.content-body .prose { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 74ch; }
.content-body .prose.wide { max-width: none; }
.content-body h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(26px, 3vw, 36px); line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); margin: 56px 0 18px; }
.content-body h2:first-child { margin-top: 0; }
.content-body h3 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(19px, 1.8vw, 22px); line-height: 1.3; color: var(--ink); margin: 32px 0 10px; letter-spacing: -0.005em; }
.content-body h4 { font-family: var(--font-sans); font-weight: 600; font-size: 15px; letter-spacing: 0.03em; color: var(--ink); margin: 24px 0 8px; }
.content-body p { font-size: 16px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 18px; }
.content-body p strong, .content-body li strong { color: var(--ink); font-weight: 600; }
.content-body ul, .content-body ol { padding-left: 22px; margin: 0 0 22px; color: var(--ink-soft); }
.content-body li { font-size: 16px; line-height: 1.7; margin-bottom: 8px; }
.content-body ul li::marker { color: var(--accent); }
.content-body a { color: var(--primary); border-bottom: 1px solid rgba(22,50,60,0.25); transition: border-color 0.15s ease; }
.content-body a:hover { border-color: var(--accent); }
.content-body hr { border: none; border-top: 1px solid var(--hairline); margin: 48px 0; }
.content-body blockquote { border-left: 3px solid var(--accent); padding: 8px 0 8px 24px; margin: 24px 0; font-style: italic; color: var(--ink-soft); }
.content-body strong { color: var(--ink); }
.content-body em { font-style: italic; color: var(--ink-soft); }

/* HTML-injected image markers become simple hero images or decorative dividers */
.content-body .md-image-marker { display: none; }

/* Refractory Material — 3-product bespoke layout with photo collage */
.mat-block { padding: clamp(72px, 8vw, 110px) var(--gutter); position: relative; }
.mat-block-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.mat-block.reverse .mat-block-inner { grid-template-columns: 1fr 1fr; }
.mat-block.reverse .mat-block-media { order: 2; }
.mat-block.reverse .mat-block-content { order: 1; }

/* Media column: main photo + optional accent thumb, both constrained */
.mat-block-media { position: relative; padding-bottom: 40px; }
.mat-block-media .media-primary {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  box-shadow: 0 24px 48px -20px rgba(15,37,45,0.35);
}
.mat-block-media .media-primary img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mat-block-media .media-primary::before {
  content: ""; position: absolute; inset: -1px auto -1px -1px;
  width: 4px; background: var(--accent); z-index: 2;
}
.mat-block.reverse .mat-block-media .media-primary::before { inset: -1px -1px -1px auto; }
.mat-block-media .media-caption {
  position: absolute; left: 0; bottom: 0;
  background: var(--primary);
  color: var(--paper);
  padding: 10px 16px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
  z-index: 3;
}
.mat-block.reverse .mat-block-media .media-caption { left: auto; right: 0; }

.mat-block-media .media-accent {
  position: absolute;
  right: -32px; bottom: 0;
  width: 42%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 6px solid var(--paper);
  box-shadow: 0 20px 40px -16px rgba(15,37,45,0.45);
  z-index: 4;
}
.mat-block.reverse .mat-block-media .media-accent { right: auto; left: -32px; }
.mat-block.alt-bg .mat-block-media .media-accent { border-color: var(--paper-warm); }
.mat-block-media .media-accent img { width: 100%; height: 100%; object-fit: cover; display: block; }

.mat-block-content .section-eyebrow { margin-bottom: 14px; }
.mat-block-content h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.15; letter-spacing: -0.015em; margin-bottom: 22px; }
.mat-block-content p { font-size: 16px; line-height: 1.65; color: var(--ink-soft); margin-bottom: 16px; }
.mat-block-content ul { padding-left: 22px; margin: 18px 0 22px; color: var(--ink-soft); }
.mat-block-content ul li { margin-bottom: 6px; }
.mat-block-content ul li::marker { color: var(--accent); }
.mat-block-content .spec-line { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-top: 12px; margin-bottom: 8px; line-height: 1.7; }
.mat-block.alt-bg { background: var(--paper-warm); }

/* Mine Owners hero band — full-width photo band with overlaid text */
.mines-hero { position: relative; min-height: clamp(360px, 55vh, 560px); min-height: clamp(360px, 55dvh, 560px); overflow: hidden; display: flex; align-items: center; }
.mines-hero .mines-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.02); }
.mines-hero .mines-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(15,37,45,0.72) 0%, rgba(15,37,45,0.4) 55%, rgba(15,37,45,0.15) 100%),
    linear-gradient(180deg, rgba(15,37,45,0.05) 0%, rgba(15,37,45,0.55) 100%);
}
.mines-hero .mines-inner {
  position: relative;
  max-width: var(--max-w); margin: 0 auto;
  padding: clamp(80px, 12vw, 140px) var(--gutter);
  width: 100%;
}
.mines-hero .mines-eyebrow {
  display: inline-block;
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent-bright); font-weight: 600;
  border-left: 3px solid var(--accent); padding-left: 12px;
  margin-bottom: 20px;
}
.mines-hero h2 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(44px, 7vw, 88px); line-height: 1.02; letter-spacing: -0.025em;
  color: var(--paper);
  margin-bottom: 22px;
  text-wrap: balance;
}
.mines-hero .mines-sub {
  max-width: 44ch;
  font-size: 16px; line-height: 1.65; color: rgba(244,241,234,0.85);
}

/* Contact channels — no form */
.channels-only { max-width: var(--max-w); margin: 0 auto; padding: clamp(64px, 8vw, 96px) var(--gutter); }
.channels-only .section-eyebrow { margin-bottom: 16px; }
.channels-only h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; color: var(--ink); margin-bottom: 40px; letter-spacing: -0.01em; max-width: 32ch; }

/* Home about-story section */
.about-band { background: var(--paper-warm); }
.about-inner { max-width: var(--max-w); margin: 0 auto; padding: clamp(72px, 9vw, 120px) var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.about-inner .about-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-inner .about-content .section-eyebrow { margin-bottom: 14px; }
.about-inner .about-content h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; color: var(--ink); margin-bottom: 22px; letter-spacing: -0.015em; }
.about-inner .about-content p { font-size: 16px; line-height: 1.65; color: var(--ink-soft); margin-bottom: 16px; }
@media (max-width: 840px) {
  .mat-block-inner,
  .mat-block.reverse .mat-block-inner,
  .about-inner { grid-template-columns: 1fr !important; gap: 32px; }
  .mat-block .mat-block-media { order: 1; }
  .mat-block .mat-block-content { order: 2; }
  .mat-block { padding: clamp(56px, 10vw, 80px) var(--gutter); }
  .mat-block-media { padding-bottom: 60px; }
  .mat-block-media .media-accent { right: 0; bottom: -20px; width: min(46%, 220px); }
  .mat-block.reverse .mat-block-media .media-accent { left: 0; right: auto; }
  .mines-hero { min-height: 380px; }
  .mines-hero .mines-sub { max-width: 100%; }
}

/* Contact page — channels grid */
.channels-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 32px 0 48px; }
.channel-card { background: var(--paper-warm); padding: 28px 24px; border-top: 3px solid var(--accent); }
.channel-card h3 { font-family: var(--font-sans); font-weight: 600; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.channel-card p { font-size: clamp(14px, 0.4vw + 0.7rem, 15px); color: var(--ink-soft); line-height: 1.55; margin-bottom: 8px; }
.channel-card .channel-value { font-family: var(--font-serif); font-size: clamp(15px, 1vw + 0.6rem, 18px); color: var(--ink); margin-bottom: 8px; line-height: 1.3; word-break: break-word; }

/* Contact form (real, working) */
.contact-form { max-width: 720px; display: grid; gap: 18px; margin-top: 32px; }
.contact-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; letter-spacing: 0.03em; color: var(--ink); }
.contact-form input, .contact-form select, .contact-form textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--hairline); background: #FFFFFF; color: var(--ink); font-size: 16px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(168,136,50,0.15); }
.contact-form textarea { min-height: 140px; resize: vertical; font-family: inherit; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* Footer */
.site-footer { background: var(--primary-deep); color: var(--paper); }
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 72px max(var(--gutter), env(safe-area-inset-right)) 40px max(var(--gutter), env(safe-area-inset-left)); display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 48px; }
.footer-brand .brand-name { font-weight: 700; font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--paper); margin-bottom: 16px; }
.footer-brand p { font-size: clamp(13px, 0.4vw + 0.65rem, 14px); line-height: 1.6; color: rgba(244,241,234,0.6); max-width: 34ch; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.footer-col a { font-size: clamp(13px, 0.4vw + 0.65rem, 14px); color: rgba(244,241,234,0.75); transition: color 0.15s ease; padding: 4px 0; }
.footer-col a:hover { color: var(--paper); }
.footer-col p { font-size: clamp(13px, 0.4vw + 0.65rem, 14px); line-height: 1.7; color: rgba(244,241,234,0.6); }
.footer-legal { max-width: var(--max-w); margin: 0 auto; padding: 24px max(var(--gutter), env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left)); border-top: 1px solid rgba(244,241,234,0.08); font-size: 12px; color: rgba(244,241,234,0.5); }

/* Reveal on scroll — visible by default, animation only when JS activates it */
.reveal { opacity: 1; transform: none; }
html.js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
html.js-reveal .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js-reveal .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(3, 1fr); }
  .channels-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 840px) {
  .nav-toggle { display: block; margin-left: auto; }
  .primary-nav {
    position: fixed; top: 74px; left: 0; right: 0; bottom: 0;
    background: var(--primary-deep);
    flex-direction: column; gap: 0;
    padding: 24px 0 40px;
    align-items: stretch;
    overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }
  .primary-nav.open {
    transform: translateY(0); opacity: 1; visibility: visible;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .primary-nav > li { border-bottom: 1px solid rgba(255,255,255,0.06); }
  .primary-nav a { padding: 18px var(--gutter); font-size: 15px; }
  .primary-nav a::after { display: none !important; }
  .primary-nav a.active { background: rgba(168,136,50,0.08); border-left: 3px solid var(--accent); }
  .has-dropdown { display: flex; align-items: stretch; flex-wrap: wrap; }
  .has-dropdown > a { flex: 1; }
  .dropdown-toggle {
    width: 56px; min-height: 56px; margin: 0;
    font-size: 16px;
    align-self: stretch;
    border-left: 1px solid rgba(255,255,255,0.06);
  }
  .dropdown-menu {
    position: static; transform: none;
    background: rgba(0,0,0,0.25);
    border: none; padding: 0;
    box-shadow: none; min-width: 0;
    width: 100%; flex-basis: 100%;
    display: block;
    opacity: 0; visibility: hidden; max-height: 0; overflow: hidden;
    transition: opacity 0.2s ease, max-height 0.25s ease, visibility 0s linear 0.25s;
  }
  .dropdown-toggle[aria-expanded="true"] ~ .dropdown-menu {
    opacity: 1; visibility: visible; max-height: 600px;
    transition: opacity 0.2s ease, max-height 0.3s ease, visibility 0s;
  }
  .dropdown-menu a { padding: 14px calc(var(--gutter) + 24px); font-size: 14px; color: rgba(244,241,234,0.65); }
  body.nav-open { overflow: hidden; }

  .kpi-grid { gap: 24px; }
  .kpi { border-left-width: 3px; }
  .product-grid { grid-template-columns: 1fr; gap: 16px; }
  .why-items { grid-template-columns: 1fr; gap: 32px; }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; margin-bottom: 8px; }
  .hero-content { padding-block: 80px 100px; }
  .contact-form .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .industry-grid, .channels-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .brand-tagline { display: none; }
  .brand-text { font-size: 13px; letter-spacing: 0.12em; white-space: nowrap; }
  .brand { gap: 10px; }
  .brand-logo { height: 36px; }
  .header-inner { gap: 12px; }
}
