/* ==========================================================================
   BHEIR — compliance-grade environmental monitoring
   editorial-technical aesthetic, clean IAQ / cleanroom palette
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT,WONK@9..144,300..900,0..100,0..1&family=Instrument+Sans:ital,wght@0,400..700;1,400..700&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');

:root {
  /* palette - cleanroom light */
  --bg: #f8fbfb;
  --bg-2: #edf7f6;
  --bg-3: #e2efed;
  --bg-card: #ffffff;
  --border: #d7e5e3;
  --border-strong: #b7cfca;

  --ink: #102326;
  --ink-muted: #4f6365;
  --ink-subtle: #75898b;
  --ink-faint: #a9bbbd;

  --accent: #127270;
  --accent-dim: #6bbdb2;
  --amber: #ad6d25;
  --amber-dim: #d2ad78;
  --status-ok: #2f875d;
  --status-warn: #ad6d25;
  --status-alert: #b94e45;

  /* type scale */
  --display: 'Fraunces', Georgia, serif;
  --sans: 'Instrument Sans', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', monospace;

  /* layout */
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* timing */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* selection */
::selection { background: var(--accent); color: var(--bg); }

/* cleanroom ambient field */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(107, 189, 178, 0.18) 0%, transparent 45%),
    radial-gradient(ellipse at 100% 12%, rgba(18, 114, 112, 0.08) 0%, transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(237, 247, 246, 0.34));
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background-image:
    linear-gradient(rgba(18, 114, 112, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 114, 112, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.42;
  mix-blend-mode: normal;
}

/* ==========================================================================
   typography
   ========================================================================== */

.display, h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.022em;
  font-feature-settings: "ss01";
  font-variation-settings: "opsz" 80, "SOFT" 30, "WONK" 0;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.02; margin: 0; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.08; margin: 0 0 1rem; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.15; margin: 0 0 0.75rem; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: var(--accent-dim);
}

.eyebrow.no-rule::before { display: none; }

.lede {
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 60ch;
  margin: 0 0 2rem;
}

.lede em {
  font-family: var(--display);
  font-style: italic;
  color: var(--ink);
  font-variation-settings: "opsz" 14, "SOFT" 50, "WONK" 1;
}

p { margin: 0 0 1rem; max-width: 70ch; color: var(--ink-muted); }

.mono { font-family: var(--mono); font-size: 0.875em; }
.serif-italic {
  font-family: var(--display);
  font-style: italic;
  font-variation-settings: "opsz" 14, "WONK" 1;
}

/* ==========================================================================
   layout
   ========================================================================== */

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

section { position: relative; z-index: 5; }

.section {
  padding: clamp(4rem, 10vw, 8rem) 0;
}

.section-tight { padding: clamp(3rem, 6vw, 5rem) 0; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong) 20%, var(--border-strong) 80%, transparent);
  margin: 0;
}

.divider-section {
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   header / nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 251, 251, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variation-settings: "opsz" 60;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: inline-block;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink-muted);
  transition: color 0.2s var(--ease);
  position: relative;
}

.nav-links a:hover { color: var(--ink); }

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.nav-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--ink);
  padding: 0.5rem;
  cursor: pointer;
}

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem var(--gutter);
    gap: 1.25rem;
  }
}

/* ==========================================================================
   hero
   ========================================================================== */

.hero {
  padding: clamp(4rem, 12vw, 9rem) 0 clamp(3rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse at top right, rgba(107, 189, 178, 0.22), transparent 62%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero h1 .accent {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 1;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-meta-item .label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}

.hero-meta-item .value {
  font-family: var(--display);
  font-size: 1.5rem;
  font-variation-settings: "opsz" 60;
  color: var(--ink);
}

.hero-meta-item .value .small {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-left: 0.25rem;
}

/* ==========================================================================
   live readout (hero right side)
   ========================================================================== */

.readout {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(16, 35, 38, 0.09);
}

.readout::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: scan 4s linear infinite;
}

@keyframes scan {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.readout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.readout-title {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--status-ok);
}

.status-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-ok);
  box-shadow: 0 0 8px var(--status-ok);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.readout-rows {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.readout-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px dashed var(--border);
}

.readout-row:last-child { border-bottom: none; }

.readout-row .label {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.readout-row .value {
  font-family: var(--mono);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.readout-row .delta {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--status-ok);
  font-variant-numeric: tabular-nums;
}

.readout-row .delta.warn { color: var(--status-warn); }

.readout-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-subtle);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: transparent;
  color: var(--accent);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(2px); }

.btn-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ==========================================================================
   sections - generic patterns
   ========================================================================== */

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 3rem;
}

@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: 1rem; }
}

.section-head h2 { margin-bottom: 0; }
.section-head .lede { margin-bottom: 0; }

/* index — three-column "what we do" */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

@media (max-width: 880px) { .cap-grid { grid-template-columns: 1fr; } }

.cap {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--border);
  position: relative;
}

.cap:last-child { border-right: none; }

@media (max-width: 880px) {
  .cap { border-right: none; border-bottom: 1px solid var(--border); }
  .cap:last-child { border-bottom: none; }
}

.cap-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-subtle);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 1.5rem;
}

.cap h3 {
  font-size: 1.5rem;
  margin-bottom: 0.875rem;
  font-variation-settings: "opsz" 36, "SOFT" 30;
}

.cap p {
  font-size: 0.95rem;
  color: var(--ink-muted);
  margin: 0;
}

/* ==========================================================================
   verticals grid (homepage preview + verticals page)
   ========================================================================== */

.vert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

@media (max-width: 720px) { .vert-grid { grid-template-columns: 1fr; } }

.vert-card {
  background: var(--bg-card);
  padding: 2rem 2rem 2.25rem;
  position: relative;
  transition: background 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.vert-card:hover { background: var(--bg-2); }

.vert-card .vert-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.vert-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.625rem;
  font-variation-settings: "opsz" 36, "SOFT" 30;
}

.vert-card .frameworks {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-subtle);
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.vert-card p {
  font-size: 0.92rem;
  margin: 0 0 1.25rem;
}

.vert-card .vert-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.vert-card .vert-foot .stat {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.vert-card .vert-foot .arrow-link {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ==========================================================================
   compliance frameworks list
   ========================================================================== */

.frame-list {
  border-top: 1px solid var(--border);
}

.frame-row {
  display: grid;
  grid-template-columns: 100px 1fr 200px 140px;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
  transition: background 0.2s var(--ease);
}

.frame-row:hover { background: var(--bg-2); padding-left: 1rem; padding-right: 1rem; margin: 0 -1rem; }

@media (max-width: 880px) {
  .frame-row { grid-template-columns: 1fr; gap: 0.75rem; }
}

.frame-tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  padding-top: 0.25rem;
}

.frame-body h3 {
  font-size: 1.375rem;
  margin: 0 0 0.5rem;
  font-variation-settings: "opsz" 36, "SOFT" 30;
}

.frame-body .frame-sub {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-subtle);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.frame-body p { margin: 0; font-size: 0.92rem; }

.frame-params {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.frame-param {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
  display: flex;
  gap: 0.5rem;
}

.frame-param::before {
  content: "→";
  color: var(--ink-faint);
}

.frame-status {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
}

.frame-pill {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.frame-pill.live { border-color: var(--accent-dim); color: var(--accent); }
.frame-pill.q2 { border-color: var(--amber-dim); color: var(--amber); }
.frame-pill.future { color: var(--ink-subtle); }

/* ==========================================================================
   how it works (process)
   ========================================================================== */

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 880px) {
  .process { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .process { grid-template-columns: 1fr; }
}

.proc-step {
  position: relative;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.proc-step .num {
  font-family: var(--display);
  font-size: 3.5rem;
  font-style: italic;
  line-height: 1;
  color: var(--accent-dim);
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
  margin-bottom: 1rem;
}

.proc-step h3 {
  font-size: 1.25rem;
  margin: 0 0 0.625rem;
  font-variation-settings: "opsz" 24, "SOFT" 30;
}

.proc-step p { font-size: 0.9rem; margin: 0; }

/* ==========================================================================
   value prop / why-us
   ========================================================================== */

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--border);
  border: 1px solid var(--border);
}

@media (max-width: 880px) { .why-grid { grid-template-columns: 1fr; gap: 1px; } }

.why-cell {
  background: var(--bg-card);
  padding: 2.5rem;
}

.why-cell h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  font-variation-settings: "opsz" 36, "SOFT" 30;
}

.why-cell p { font-size: 0.95rem; margin: 0; }

.why-cell .num {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-subtle);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  display: block;
}

/* ==========================================================================
   cta band
   ========================================================================== */

.cta-band {
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(4rem, 8vw, 6rem) 0;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(107, 189, 178, 0.18), transparent 60%);
  pointer-events: none;
}

.cta-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

@media (max-width: 880px) {
  .cta-content { grid-template-columns: 1fr; }
}

.cta-band h2 {
  margin-bottom: 0;
  max-width: 18ch;
}

.cta-band .actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

@media (max-width: 880px) {
  .cta-band .actions { align-items: stretch; }
}

/* ==========================================================================
   footer
   ========================================================================== */

.site-footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 760px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

.foot-brand .brand { margin-bottom: 1rem; }
.foot-brand p { font-size: 0.875rem; max-width: 32ch; }

.foot-col h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin: 0 0 1rem;
  font-weight: 500;
}

.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 0.5rem; }
.foot-col a {
  font-size: 0.875rem;
  color: var(--ink-muted);
  transition: color 0.2s var(--ease);
}
.foot-col a:hover { color: var(--ink); }

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-subtle);
}

@media (max-width: 540px) {
  .foot-bottom { flex-direction: column; gap: 1rem; align-items: flex-start; }
}

/* ==========================================================================
   verticals page — long-form vertical detail
   ========================================================================== */

.page-hero {
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 { max-width: 18ch; }
.page-hero .lede { max-width: 56ch; margin-top: 1.5rem; }

.industry-section { padding: clamp(3rem, 6vw, 5rem) 0; }

.industry-header {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.industry-header .industry-num {
  font-family: var(--display);
  font-size: 4rem;
  line-height: 0.8;
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
}

.industry-header h2 { margin: 0; flex: 1; }

.industry-header .industry-meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-subtle);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .industry-header { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
  .industry-header .industry-num { font-size: 3rem; }
}

/* deep-detail vertical */
.vert-detail {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-bottom: 1px solid var(--border);
}

.vert-detail:last-child { border-bottom: none; }

@media (max-width: 880px) {
  .vert-detail { grid-template-columns: 1fr; gap: 1.5rem; }
}

.vert-aside .ident {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

.vert-aside h2 {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  margin: 0 0 1rem;
}

.vert-aside .frameworks-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vert-aside .frameworks-list li {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--border);
}

.vert-aside .frameworks-list li:last-child { border-bottom: none; }

.vert-content section {
  margin-bottom: 1.75rem;
}

.vert-content section:last-child { margin-bottom: 0; }

.vert-content h4 {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-subtle);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 0.875rem;
  font-weight: 500;
}

.vert-content ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.vert-content ul li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  font-size: 0.92rem;
  color: var(--ink-muted);
  position: relative;
  border-bottom: 1px dashed var(--border);
}

.vert-content ul li:last-child { border-bottom: none; }

.vert-content ul li::before {
  content: "·";
  position: absolute;
  left: 0.5rem;
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 700;
}

.vert-content p { font-size: 0.95rem; }

/* ==========================================================================
   contact page
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(3rem, 6vw, 5rem);
  padding: clamp(2rem, 5vw, 4rem) 0;
}

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info h2 { margin-bottom: 1rem; }
.contact-info .lede { margin-bottom: 2rem; }

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.contact-channel .label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  display: block;
  margin-bottom: 0.25rem;
}

.contact-channel .value {
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--ink);
  font-variation-settings: "opsz" 36, "SOFT" 30;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: 0 24px 70px rgba(16, 35, 38, 0.08);
}

.contact-form h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.contact-form .lede { font-size: 1rem; margin-bottom: 2rem; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 540px) { .field-row { grid-template-columns: 1fr; } }

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.field label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}

.field label .req { color: var(--amber); }

.field input,
.field select,
.field textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.75rem 0.875rem;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.field textarea {
  resize: vertical;
  min-height: 110px;
  font-family: var(--sans);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M3 4.5l3 3 3-3' stroke='%2375898b' stroke-width='1.2' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.form-foot .note {
  font-size: 0.8rem;
  color: var(--ink-subtle);
  margin: 0;
  max-width: 28ch;
}

/* ==========================================================================
   reveal animations
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
