/* ============================================================
   N.E.A.T. Environment, Inc.
   Single stylesheet — editorial / scientific aesthetic
   ============================================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Sora:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* --- Design tokens --- */
:root {
  /* Ink (text) */
  --ink:        #0F1922;
  --ink-soft:   #3A4856;
  --ink-muted:  #6B7785;

  /* Paper (backgrounds) */
  --paper:      #FBFAF7;
  --paper-warm: #F4F1EA;
  --paper-dark: #0B141C;

  /* Structure */
  --rule:       #D8D5CD;
  --rule-soft:  #E8E5DD;

  /* Brand */
  --brand:       #0060AA;
  --brand-deep:  #002A5C;
  --brand-tint:  #E6EFF6;

  /* Semantic accents */
  --treated:    #2D6E4E;  /* sage green — "after", clean */
  --raw:        #B5471F;  /* rust — "before", contaminated */
  --amber:      #C8932A;  /* subtle highlight */

  /* Typography */
  --f-display: 'Fraunces', 'Times New Roman', Georgia, serif;
  --f-body:    'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Spacing (8px base) */
  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s5: 3rem;
  --s6: 4rem;
  --s7: 6rem;
  --s8: 8rem;

  /* Layout */
  --measure: 65ch;
  --container: 1280px;
  --container-narrow: 880px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, dl, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: 0; background: 0; padding: 0; color: inherit; }
a { color: inherit; }

/* --- Base --- */
html { font-size: 16px; }
body {
  font-family: var(--f-body);
  font-size: 1.0625rem;          /* 17px */
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle paper texture — adds warmth without distraction */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(15, 25, 34, 0.018) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

/* --- Typography --- */
.display-1, .display-2, h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  font-weight: 500;
  font-variation-settings: 'opsz' 144;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.display-1 {
  font-size: clamp(3rem, 7.5vw, 5.75rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.display-2 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  letter-spacing: -0.03em;
}

h1 { font-size: clamp(1.875rem, 3.2vw, 2.625rem); }
h2 { font-size: clamp(1.5rem, 2.5vw, 2.125rem); letter-spacing: -0.025em; }
h3 { font-size: 1.3125rem; font-variation-settings: 'opsz' 36; letter-spacing: -0.015em; }
h4 { font-size: 1.0625rem; font-family: var(--f-body); font-weight: 600; letter-spacing: 0; }

p { max-width: var(--measure); }
p + p { margin-top: var(--s2); }

a { transition: color 0.15s ease; }
a:hover { color: var(--brand); }

strong, b { font-weight: 600; }
em, i { font-style: italic; }

.lede {
  font-family: var(--f-display);
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  line-height: 1.4;
  color: var(--ink-soft);
  font-weight: 400;
  letter-spacing: -0.01em;
  max-width: 38ch;
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand);
}

.eyebrow--ink { color: var(--ink-muted); }
.eyebrow--inv { color: rgba(255,255,255,0.7); }

.caption {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.mono { font-family: var(--f-mono); font-feature-settings: 'tnum'; }

/* --- Layout primitives --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s3);
  position: relative;
}
@media (min-width: 768px) {
  .container { padding-inline: var(--s5); }
}

.container-narrow {
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--s3);
}
@media (min-width: 768px) {
  .container-narrow { padding-inline: var(--s5); }
}

.section {
  padding-block: var(--s6);
  position: relative;
}
@media (min-width: 768px) {
  .section { padding-block: var(--s7); }
}
.section--tight   { padding-block: var(--s5); }
.section--warm    { background: var(--paper-warm); }
.section--dark    { background: var(--paper-dark); color: rgba(255,255,255,0.86); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

hr {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin-block: var(--s5);
}

/* --- Site frame: header & footer --- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  z-index: 50;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--s2);
  gap: var(--s3);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
}

.brand__mark {
  font-family: var(--f-display);
  font-weight: 600;
  font-variation-settings: 'opsz' 144;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  color: var(--brand-deep);
}

.brand__tag {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  display: none;
}
@media (min-width: 768px) { .brand__tag { display: inline; } }

.nav__links {
  display: none;
  gap: var(--s4);
  align-items: center;
}
@media (min-width: 1024px) { .nav__links { display: flex; } }

.nav__links a {
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  position: relative;
}
.nav__links a:hover { color: var(--brand); }
.nav__links a.is-active { color: var(--brand); }
.nav__links a.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--brand);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.125rem;
  background: var(--brand-deep);
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.15s ease;
}
.nav__cta:hover { background: var(--brand); color: #fff !important; }

.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}
@media (min-width: 1024px) { .nav__toggle { display: none; } }
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s 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); }

.nav__mobile {
  display: none;
  padding: var(--s3) 0 var(--s4);
  border-top: 1px solid var(--rule-soft);
}
.nav__mobile.is-open { display: block; }
.nav__mobile a {
  display: block;
  padding: var(--s2) 0;
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--rule-soft);
}
.nav__mobile a:last-child { border-bottom: 0; }

/* --- Site footer --- */
.site-footer {
  background: var(--paper-dark);
  color: rgba(255,255,255,0.72);
  padding: var(--s6) 0 var(--s4);
  margin-top: var(--s7);
}
.site-footer h4 { color: #fff; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; font-family: var(--f-mono); font-weight: 500; margin-bottom: var(--s2); }
.site-footer a { color: rgba(255,255,255,0.86); text-decoration: none; display: block; padding-block: 0.25rem; font-size: 0.9375rem; }
.site-footer a:hover { color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s5);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--s4); }
}

.footer-brand p {
  font-family: var(--f-display);
  font-size: 1.125rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.86);
  max-width: 32ch;
  margin-top: var(--s2);
}

.footer-bottom {
  margin-top: var(--s5);
  padding-top: var(--s3);
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s2);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
}

/* --- Hero --- */
.hero {
  position: relative;
  padding-top: var(--s6);
  padding-bottom: var(--s7);
  overflow: hidden;
}

.hero__eyebrow { margin-bottom: var(--s3); }

.hero__title { margin-bottom: var(--s3); }

.hero__lede { margin-bottom: var(--s5); }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
  padding-top: var(--s4);
  border-top: 1px solid var(--rule);
  margin-top: var(--s5);
}
.hero__meta-item .mono { display: block; font-size: 1.625rem; color: var(--brand-deep); font-weight: 500; letter-spacing: -0.02em; }
.hero__meta-item .label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-muted); margin-top: 0.25rem; }

/* Decorative grid corner for hero */
.hero__grid {
  position: absolute;
  right: 0;
  top: 0;
  width: 30%;
  height: 100%;
  opacity: 0.35;
  background-image:
    linear-gradient(to right, var(--rule) 1px, transparent 1px),
    linear-gradient(to bottom, var(--rule) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(to left, black, transparent);
          mask-image: linear-gradient(to left, black, transparent);
  pointer-events: none;
}

/* --- Photo feature (hero alternative) --- */
.photo-feature {
  position: relative;
  margin-block: var(--s6);
}
.photo-feature__img {
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
  border-radius: 2px;
}
.photo-feature__caption {
  position: absolute;
  left: var(--s3);
  bottom: var(--s3);
  background: rgba(11, 20, 28, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  padding: var(--s2) var(--s3);
  max-width: 28rem;
  font-size: 0.875rem;
  line-height: 1.5;
  border-left: 3px solid var(--brand);
}

/* --- Section heading --- */
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s4);
  margin-bottom: var(--s5);
}
@media (min-width: 768px) {
  .section-head { grid-template-columns: 1fr 1.5fr; gap: var(--s6); align-items: end; }
}
.section-head__title { max-width: 14ch; }
.section-head__lede {
  font-family: var(--f-display);
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  color: var(--ink-soft);
  line-height: 1.5;
  font-weight: 400;
}

/* --- Tech split (two technologies side by side) --- */
.tech-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s5);
  margin-top: var(--s5);
}
@media (min-width: 900px) {
  .tech-split { grid-template-columns: 1fr 1fr; gap: var(--s5); }
}
.tech-card {
  padding: var(--s4);
  background: var(--paper-warm);
  border-radius: 4px;
  position: relative;
  border-top: 3px solid var(--brand);
}
.tech-card .eyebrow { margin-bottom: var(--s2); }
.tech-card h3 { font-size: 1.625rem; margin-bottom: var(--s2); }
.tech-card p { color: var(--ink-soft); }
.tech-card__features {
  margin-top: var(--s3);
  padding-top: var(--s3);
  border-top: 1px solid var(--rule);
  display: grid;
  gap: var(--s1);
}
.tech-card__features li {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  padding-left: 1.25rem;
  position: relative;
}
.tech-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 1px;
  background: var(--brand);
}

/* --- Before/after data block --- */
.ba-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s4);
  margin-block: var(--s5);
}
@media (min-width: 768px) {
  .ba-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .ba-grid { grid-template-columns: repeat(4, 1fr); }
}
.ba-cell {
  padding: var(--s3) 0;
  border-top: 1px solid var(--ink);
}
.ba-cell .label {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin-bottom: var(--s2);
}
.ba-cell .before, .ba-cell .after {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-family: var(--f-mono);
  font-feature-settings: 'tnum';
  margin-bottom: 0.5rem;
}
.ba-cell .before .num { color: var(--raw); font-size: 1.375rem; font-weight: 500; }
.ba-cell .after  .num { color: var(--treated); font-size: 1.375rem; font-weight: 500; }
.ba-cell .tag {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}
.ba-cell .reduction {
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--treated);
  letter-spacing: -0.02em;
  margin-top: var(--s2);
}

/* --- Cards grid (used for case studies, industries, equipment) --- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s4);
}
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .cards--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -16px rgba(15, 25, 34, 0.18);
  border-color: var(--brand);
}
.card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-warm);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card__media img { transform: scale(1.03); }
.card__body { padding: var(--s3); flex: 1; display: flex; flex-direction: column; }
.card__eyebrow {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand);
  margin-bottom: 0.5rem;
}
.card__title { font-family: var(--f-display); font-size: 1.25rem; line-height: 1.2; margin-bottom: var(--s2); letter-spacing: -0.02em; }
.card__excerpt { font-size: 0.9375rem; color: var(--ink-soft); flex: 1; }
.card__meta {
  margin-top: var(--s2);
  padding-top: var(--s2);
  border-top: 1px solid var(--rule-soft);
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Industries: simpler card without image */
.industry-card {
  padding: var(--s4);
  background: var(--paper);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.industry-card:hover { border-color: var(--brand); background: var(--brand-tint); }
.industry-card .number {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--brand);
  letter-spacing: 0.1em;
}
.industry-card h3 { font-size: 1.125rem; font-family: var(--f-display); }
.industry-card p { font-size: 0.9375rem; color: var(--ink-soft); }

/* --- Lab report layout (case-study/individual report pages) --- */
.report {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s4);
}
@media (min-width: 900px) {
  .report { grid-template-columns: 1fr 18rem; gap: var(--s6); }
}
.report__body p { margin-bottom: var(--s3); }
.report__body h2 { margin-top: var(--s5); margin-bottom: var(--s2); }
.report__body h3 { margin-top: var(--s4); margin-bottom: var(--s2); }
.report__body figure { margin-block: var(--s4); }
.report__body figure img { border: 1px solid var(--rule); }
.report__body figcaption {
  margin-top: var(--s2);
  font-size: 0.8125rem;
  color: var(--ink-muted);
  text-align: center;
}

.report__sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
}
.report__sidebar dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s2);
  padding: var(--s3);
  background: var(--paper-warm);
  border-radius: 2px;
}
.report__sidebar dt {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
}
.report__sidebar dd {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink);
  padding-bottom: var(--s2);
  border-bottom: 1px solid var(--rule);
}
.report__sidebar dd:last-of-type { border-bottom: 0; padding-bottom: 0; }

/* --- Data table (for lab results) --- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--f-mono);
  font-size: 0.875rem;
  margin-block: var(--s4);
  overflow-x: auto;
  display: block;
}
@media (min-width: 768px) { .data-table { display: table; } }
.data-table thead { border-bottom: 2px solid var(--ink); }
.data-table th {
  text-align: left;
  padding: var(--s2);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.data-table td {
  padding: var(--s2);
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
  font-feature-settings: 'tnum';
}
.data-table .col-label { font-family: var(--f-body); font-weight: 500; color: var(--ink); }
.data-table .raw   { color: var(--raw); }
.data-table .clean { color: var(--treated); font-weight: 500; }

/* --- Equipment item --- */
.equipment-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s4);
}
@media (min-width: 768px) { .equipment-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .equipment-list { grid-template-columns: repeat(3, 1fr); } }

.equip {
  border: 1px solid var(--rule);
  background: var(--paper);
  display: flex;
  flex-direction: column;
}
.equip__media {
  aspect-ratio: 4 / 3;
  background: var(--paper-warm);
  overflow: hidden;
  position: relative;
}
.equip__media img { width: 100%; height: 100%; object-fit: cover; }
.equip__status {
  position: absolute;
  top: var(--s2);
  left: var(--s2);
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.6rem;
  background: rgba(11, 20, 28, 0.85);
  color: #fff;
  border-radius: 2px;
}
.equip__status--rent { background: var(--brand-deep); }
.equip__status--sale { background: var(--treated); }
.equip__status--inquire { background: var(--amber); color: var(--ink); }
.equip__body { padding: var(--s3); flex: 1; display: flex; flex-direction: column; gap: var(--s2); }
.equip__title { font-family: var(--f-display); font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.2; }
.equip__meta { font-family: var(--f-mono); font-size: 0.8125rem; color: var(--ink-muted); }
.equip__desc { font-size: 0.9375rem; color: var(--ink-soft); flex: 1; }
.equip__footer {
  margin-top: var(--s2);
  padding-top: var(--s2);
  border-top: 1px solid var(--rule-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.equip__price { font-family: var(--f-mono); font-size: 0.875rem; color: var(--ink); font-weight: 500; }

/* Coming soon placeholder card (equipment) */
.equip--placeholder {
  background: var(--paper-warm);
  border: 1px dashed var(--rule);
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 280px;
  gap: var(--s2);
}
.equip--placeholder .eyebrow { color: var(--ink-muted); }
.equip--placeholder p { color: var(--ink-soft); font-size: 0.9375rem; max-width: 22ch; }

/* --- Buttons / CTAs --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.625rem;
  font-family: var(--f-body);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn--primary { background: var(--brand-deep); color: #fff !important; }
.btn--primary:hover { background: var(--brand); transform: translateY(-1px); }
.btn--ghost { border: 1px solid var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper) !important; }
.btn--ghost-inv { border: 1px solid rgba(255,255,255,0.4); color: #fff !important; }
.btn--ghost-inv:hover { background: #fff; color: var(--ink) !important; }
.btn__arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.15s ease;
}
.btn:hover .btn__arrow { transform: translateX(3px); }

/* --- Contact CTA block --- */
.contact-band {
  padding: var(--s7) 0;
  background: var(--paper-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.contact-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.contact-band__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s5);
  position: relative;
}
@media (min-width: 900px) {
  .contact-band__grid { grid-template-columns: 1.4fr 1fr; }
}
.contact-band h2 { color: #fff; max-width: 18ch; }
.contact-band .lede { color: rgba(255,255,255,0.78); }

.contact-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  padding: var(--s4);
  border-radius: 4px;
}
.contact-card dl { display: grid; gap: var(--s3); }
.contact-card dt {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.3rem;
}
.contact-card dd { margin: 0; font-size: 1.0625rem; color: #fff; }
.contact-card dd a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.3); }
.contact-card dd a:hover { border-color: #fff; }

/* --- Pull quote / KPI rail --- */
.kpi-rail {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
}
@media (min-width: 768px) {
  .kpi-rail { grid-template-columns: repeat(4, 1fr); }
}
.kpi {
  background: var(--paper);
  padding: var(--s4) var(--s3);
  text-align: left;
}
.kpi__num {
  font-family: var(--f-display);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 500;
  font-variation-settings: 'opsz' 144;
  letter-spacing: -0.04em;
  color: var(--brand-deep);
  line-height: 0.95;
}
.kpi__num .unit { font-size: 0.5em; color: var(--ink-muted); font-weight: 400; margin-left: 0.15em; }
.kpi__label {
  margin-top: var(--s2);
  font-size: 0.8125rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* --- Process diagram callout --- */
.figure-frame {
  margin-block: var(--s5);
  border: 1px solid var(--rule);
  background: var(--paper-warm);
  padding: var(--s3);
}
.figure-frame img { width: 100%; height: auto; display: block; }
.figure-frame figcaption {
  margin-top: var(--s3);
  padding-top: var(--s3);
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

/* --- Two-column prose --- */
.prose-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s5);
}
@media (min-width: 900px) {
  .prose-2col { grid-template-columns: 1fr 1fr; gap: var(--s6); }
}
.prose-2col p { color: var(--ink-soft); }

/* --- Photo gallery (case studies, lab reports) --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s2);
  margin-block: var(--s4);
}
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--rule); }
.gallery figcaption {
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* --- Resource list --- */
.resource-list { display: grid; gap: var(--s3); max-width: 880px; }
.resource {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s3);
  align-items: center;
  padding: var(--s3);
  border: 1px solid var(--rule);
  background: var(--paper);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.resource:hover { border-color: var(--brand); transform: translateY(-1px); }
.resource__icon {
  width: 48px; height: 48px;
  background: var(--brand-tint);
  color: var(--brand-deep);
  display: grid; place-items: center;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 2px;
}
.resource__title { font-family: var(--f-display); font-size: 1.125rem; letter-spacing: -0.015em; margin-bottom: 0.25rem; }
.resource__meta { font-family: var(--f-mono); font-size: 0.75rem; color: var(--ink-muted); }
.resource__size { font-family: var(--f-mono); font-size: 0.8125rem; color: var(--ink-muted); }

/* --- Page header --- */
.page-head {
  padding-top: var(--s6);
  padding-bottom: var(--s5);
  border-bottom: 1px solid var(--rule);
}
.page-head .eyebrow { margin-bottom: var(--s3); }
.page-head .display-2 { margin-bottom: var(--s3); }

/* --- Utility --- */
.text-center { text-align: center; }
.flow > * + * { margin-top: var(--s3); }
.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  align-items: center;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* --- Page transitions (subtle) --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(8px);
    animation: reveal 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }
  .reveal-1 { animation-delay: 0.05s; }
  .reveal-2 { animation-delay: 0.15s; }
  .reveal-3 { animation-delay: 0.25s; }
  .reveal-4 { animation-delay: 0.35s; }
  @keyframes reveal {
    to { opacity: 1; transform: translateY(0); }
  }
}

/* --- Focus styling --- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}
