/* ==========================================================================
   TechniHub — Design System
   Control Room Consultancy, Design & Modernization
   ========================================================================== */

:root {
  --ink: #1c1b19;
  --ink-2: #141311;
  --ink-3: #26241f;
  --paper: #f7f5f1;
  --paper-2: #efece3;
  --brass: #8a7358;
  --brass-light: #b3a086;
  --brass-dim: #6f5f4c;
  --text: #2a2723;
  --text-soft: #55503f;
  --text-on-dark: #ece7dd;
  --text-on-dark-soft: #b8b0a0;
  --line: #ddd6c6;
  --line-dark: #3a362c;
  --radius: 2px;
  --maxw: 1180px;
  --font-head: 'IBM Plex Sans', -apple-system, Segoe UI, sans-serif;
  --font-body: 'Inter', -apple-system, Segoe UI, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Visible keyboard focus everywhere (form fields keep their own ring above). */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--brass-light);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---- Kicker / eyebrow labels ---- */
.kicker {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--brass);
  display: inline-block;
}
.on-dark .kicker { color: var(--brass-light); }

/* ---- Header ---- */
.site-header {
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.logo img { height: 40px; width: auto; }
.logo { flex-shrink: 0; }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  color: var(--text-on-dark-soft);
  font-size: 13.5px;
  font-weight: 500;
  padding: 10px 10px;
  border-radius: var(--radius);
  transition: color .15s ease, background .15s ease;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--text-on-dark); background: rgba(255,255,255,0.04); }
.main-nav a.active { color: var(--brass-light); }
.nav-cta {
  margin-left: 8px;
  background: var(--brass);
  color: var(--ink) !important;
  padding: 10px 14px !important;
  font-weight: 600 !important;
  border-radius: var(--radius);
}
.nav-cta:hover { background: var(--brass-light) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-dark);
  color: var(--text-on-dark);
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 1400px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: 84px 0 0 0;
    background: var(--ink);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 30px;
    gap: 0;
    display: none;
    overflow-y: auto;
    border-top: 1px solid var(--line-dark);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 6px; border-bottom: 1px solid var(--line-dark); font-size: 16px; }
  .nav-cta { margin: 14px 0 0; text-align: center; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
}
.btn-primary { background: var(--brass); color: var(--ink); }
.btn-primary:hover { background: var(--brass-light); }
.btn-ghost-dark { border-color: var(--line-dark); color: var(--text-on-dark); }
.btn-ghost-dark:hover { border-color: var(--brass-light); color: var(--brass-light); }
.btn-ghost-light { border-color: var(--line); color: var(--text); }
.btn-ghost-light:hover { border-color: var(--brass); color: var(--brass-dim); }
.btn-arrow { font-family: var(--font-mono); }

/* ---- Hero ---- */
.hero {
  background: var(--ink);
  color: var(--text-on-dark);
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-dark);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(138,115,88,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138,115,88,0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, black, transparent);
  pointer-events: none;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  line-height: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-media-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  /* Stronger scrim on the left (text zone), progressively lighter toward the right (scene). */
  background: linear-gradient(90deg,
    rgba(15,17,22,0.94) 0%,
    rgba(15,17,22,0.86) 30%,
    rgba(15,17,22,0.55) 52%,
    rgba(15,17,22,0.22) 72%,
    rgba(15,17,22,0.08) 100%);
}
.hero.has-image::before { opacity: 0.35; }
.hero .container { position: relative; z-index: 3; }
.hero-inner { max-width: 760px; }
@media (min-width: 768px) and (max-width: 1023px) {
  /* Tablet: narrow the text column and extend the scrim so buttons/tagline don't sit over busy screen detail. */
  .hero.has-image .hero-inner { max-width: 420px; }
  .hero.has-image::after {
    background: linear-gradient(90deg,
      rgba(15,17,22,0.96) 0%,
      rgba(15,17,22,0.92) 45%,
      rgba(15,17,22,0.6) 62%,
      rgba(15,17,22,0.25) 82%,
      rgba(15,17,22,0.08) 100%);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * { animation: hero-reveal 0.7s ease both; }
  .hero-inner > *:nth-child(2) { animation-delay: 0.06s; }
  .hero-inner > *:nth-child(3) { animation-delay: 0.12s; }
  .hero-inner > *:nth-child(4) { animation-delay: 0.18s; }
  .hero-inner > *:nth-child(5) { animation-delay: 0.24s; }
  @keyframes hero-reveal {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (max-width: 767px) {
  .hero.has-image {
    display: flex;
    flex-direction: column;
    padding: 0;
  }
  .hero.has-image .hero-media {
    position: relative;
    inset: auto;
    height: 46vh;
    min-height: 300px;
    overflow: hidden;
  }
  .hero.has-image .hero-media::after {
    /* On mobile the image and text stack instead of overlaying, so only a soft base-fade into the text block below is needed. */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,17,22,0) 65%, rgba(15,17,22,0.95) 100%);
  }
  .hero.has-image::after { display: none; }
  .hero.has-image::before { display: none; }
  .hero.has-image .container {
    background: var(--ink);
    padding: 40px 28px 48px;
  }
  .hero.has-image .hero-inner { max-width: none; }
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  color: #fff;
  margin-bottom: 20px;
}
.hero .sub-line {
  font-family: var(--font-mono);
  color: var(--brass-light);
  font-size: 15px;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.hero p.lead {
  font-size: 18px;
  color: var(--text-on-dark-soft);
  max-width: 640px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.page-hero {
  background: var(--ink);
  color: var(--text-on-dark);
  padding: 70px 0 56px;
  border-bottom: 1px solid var(--line-dark);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background-image: linear-gradient(rgba(138,115,88,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(138,115,88,0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 60% 80% at 85% 20%, black, transparent);
}
.page-hero.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg,
    rgba(15,17,22,0.94) 0%,
    rgba(15,17,22,0.86) 30%,
    rgba(15,17,22,0.55) 52%,
    rgba(15,17,22,0.22) 72%,
    rgba(15,17,22,0.08) 100%);
}
.page-hero.has-image::before { opacity: 0.35; }
.page-hero .container { position: relative; z-index: 3; }
.page-hero h1 { font-size: clamp(28px, 3.6vw, 42px); color: #fff; max-width: 780px; }
.page-hero p.lead { color: var(--text-on-dark-soft); font-size: 17px; max-width: 680px; margin-top: 14px; }
@media (min-width: 768px) and (max-width: 1023px) {
  .page-hero.has-image h1,
  .page-hero.has-image p.lead { max-width: 420px; }
  .page-hero.has-image::after {
    background: linear-gradient(90deg,
      rgba(15,17,22,0.96) 0%,
      rgba(15,17,22,0.92) 45%,
      rgba(15,17,22,0.6) 62%,
      rgba(15,17,22,0.25) 82%,
      rgba(15,17,22,0.08) 100%);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .page-hero .container > * { animation: hero-reveal 0.6s ease both; }
  .page-hero .container > *:nth-child(2) { animation-delay: 0.06s; }
  .page-hero .container > *:nth-child(3) { animation-delay: 0.12s; }
}
@media (max-width: 767px) {
  .page-hero.has-image {
    display: flex;
    flex-direction: column;
    padding: 0;
  }
  .page-hero.has-image .hero-media {
    position: relative;
    inset: auto;
    height: 38vh;
    min-height: 260px;
    overflow: hidden;
  }
  .page-hero.has-image .hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,17,22,0) 65%, rgba(15,17,22,0.95) 100%);
  }
  .page-hero.has-image::after { display: none; }
  .page-hero.has-image::before { display: none; }
  .page-hero.has-image .container {
    background: var(--ink);
    padding: 32px 28px 40px;
  }
}
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-on-dark-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 22px;
}
.breadcrumb a:hover { color: var(--brass-light); }

/* ---- Sections ---- */
section.block { padding: 80px 0; }
section.block.tight { padding: 60px 0; }
.on-dark { background: var(--ink); color: var(--text-on-dark); }
.on-dark h2, .on-dark h3 { color: #fff; }
.on-dark p { color: var(--text-on-dark-soft); }
.on-paper-2 { background: var(--paper-2); }
.divider { border-top: 1px solid var(--line); }
.divider-dark { border-top: 1px solid var(--line-dark); }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); }
.section-head p { font-size: 16.5px; color: var(--text-soft); }
.on-dark .section-head p { color: var(--text-on-dark-soft); }

.text-block { max-width: 760px; }
.text-block p { font-size: 16.5px; color: var(--text-soft); }
.on-dark .text-block p { color: var(--text-on-dark-soft); }
.text-block p.emphasis {
  font-family: var(--font-head);
  font-size: 21px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.4;
}
.on-dark .text-block p.emphasis { color: #fff; }

/* Long-form article / policy content */
.text-block.article { max-width: 720px; }
.text-block h2 { font-size: 24px; margin-top: 44px; }
.text-block h3 { font-size: 19px; margin-top: 36px; }
.text-block h2:first-child, .text-block h3:first-child { margin-top: 0; }
/* Policy pages (e.g. Privacy Policy) use h2 for correct heading order but keep the
   original h3-sized visual treatment. */
.text-block.policy h2 { font-size: 19px; margin-top: 36px; }
.text-block.policy h2:first-child { margin-top: 0; }
.text-block ul.article-list { margin: 0 0 20px; padding-left: 22px; }
.text-block ul.article-list li { font-size: 16.5px; color: var(--text-soft); margin-bottom: 6px; }
.on-dark .text-block ul.article-list li { color: var(--text-on-dark-soft); }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-on-dark-soft);
  margin-bottom: 28px;
}
.article-summary {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.5;
  color: #fff;
  max-width: 760px;
  margin-bottom: 10px;
}
.insight-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.on-dark .insight-card { background: var(--ink-3); border-color: var(--line-dark); }
.insight-card .kicker { margin-bottom: 16px; }
.insight-card h3 { font-size: 19px; margin-bottom: 10px; }
.insight-card p.summary { font-size: 15px; color: var(--text-soft); flex-grow: 1; margin-bottom: 18px; }
.on-dark .insight-card p.summary { color: var(--text-on-dark-soft); }
.insight-card .insight-meta { font-family: var(--font-mono); font-size: 12px; color: var(--brass); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px; }
.insight-card a.read-link { font-weight: 600; color: var(--brass-dim); }
.on-dark .insight-card a.read-link { color: var(--brass-light); }
.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .insight-grid { grid-template-columns: 1fr; } }

/* ---- Core message banner ---- */
.core-message {
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding: 56px 0;
  text-align: center;
}
.core-message p {
  font-family: var(--font-head);
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 500;
  color: #fff;
  max-width: 880px;
  margin: 0 auto;
  line-height: 1.4;
}
.core-message .kicker { justify-content: center; }
.core-message .kicker::before { display: none; }

/* ---- Card grid (What We Do / capability blocks) ---- */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.on-dark .grid { background: var(--line-dark); border-color: var(--line-dark); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid.cols-4, .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
}
.card {
  background: var(--paper);
  padding: 32px 28px;
}
.on-dark .card { background: var(--ink); }
.card .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brass);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
  display: block;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--text-soft); margin: 0; }
.on-dark .card p { color: var(--text-on-dark-soft); }

/* ---- Process flow (Discover -> Evolve) ---- */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
@media (max-width: 900px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }
.flow-step {
  background: var(--ink);
  padding: 26px 22px;
  position: relative;
}
.flow-step .idx {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brass-light);
  margin-bottom: 10px;
  display: block;
}
.flow-step h3 { color: #fff; font-size: 16.5px; margin-bottom: 8px; }
.flow-step p { color: var(--text-on-dark-soft); font-size: 14px; margin: 0; }

/* vertical flow (modernization) */
.vflow { max-width: 640px; }
.vflow-step {
  border: 1px solid var(--line);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--paper);
}
.on-dark .vflow-step { border-color: var(--line-dark); background: var(--ink-3); }
.vflow-step .idx {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brass);
  min-width: 26px;
}
.vflow-step span.label { font-family: var(--font-head); font-weight: 600; font-size: 16px; }
.vflow-arrow { display: flex; justify-content: center; padding: 6px 0; color: var(--brass); font-family: var(--font-mono); font-size: 14px; }
.vflow-step.golive { border-color: var(--brass); }
.vflow-step.golive span.label { color: var(--brass); }

/* ---- Dimension diagram (assessment framework) ---- */
.dim-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
@media (max-width: 900px) { .dim-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .dim-grid { grid-template-columns: 1fr; } }
.dim-cell {
  background: var(--ink);
  padding: 28px 24px;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.dim-cell .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brass-light);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.dim-cell h3 { color: #fff; font-size: 16px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.02em;}
.dim-cell p { color: var(--text-on-dark-soft); font-size: 13.5px; margin: 0; }
.dim-note {
  margin-top: 22px;
  font-size: 14px;
  color: var(--text-soft);
  font-style: italic;
}
.on-dark .dim-note { color: var(--text-on-dark-soft); }

/* ---- Layer diagram (architecture) ---- */
.layer-stack { display: flex; flex-direction: column; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.layer {
  background: var(--ink-3);
  padding: 26px 30px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: center;
}
@media (max-width: 720px) { .layer { grid-template-columns: 1fr; gap: 10px; } }
.layer .l-label { font-family: var(--font-mono); font-size: 12px; color: var(--brass-light); letter-spacing: 0.06em; }
.layer .l-name { font-family: var(--font-head); color: #fff; font-size: 18px; font-weight: 600; margin-top: 4px; }
.layer .l-items { display: flex; flex-wrap: wrap; gap: 8px; }
.layer .l-items span {
  font-size: 12.5px;
  font-family: var(--font-mono);
  color: var(--text-on-dark-soft);
  border: 1px solid var(--line-dark);
  padding: 5px 10px;
  border-radius: var(--radius);
}
.layer-arrow-row { display: flex; justify-content: center; color: var(--brass); font-family: var(--font-mono); padding: 4px 0; background: var(--ink); }
.layer.outcomes { background: var(--ink-2); border-top: 1px solid var(--brass-dim); }
.layer.outcomes .l-items span { border-color: var(--brass-dim); color: var(--brass-light); }

/* ---- Sequence (See -> Understand -> Decide -> Respond) ---- */
.sequence { display: flex; align-items: stretch; gap: 1px; flex-wrap: wrap; background: var(--line-dark); border: 1px solid var(--line-dark); }
.seq-step {
  flex: 1 1 160px;
  padding: 22px 18px;
  text-align: center;
  background: var(--ink-3);
}
.seq-step .n { font-family: var(--font-mono); color: var(--brass-light); font-size: 12px; }
.seq-step h3 { color: #fff; font-size: 17px; margin: 8px 0 0; }
.seq-arrow { display: flex; align-items: center; justify-content: center; width: 40px; color: var(--brass); font-family: var(--font-mono); background: var(--ink); }
@media (max-width: 700px) { .seq-arrow { width: 100%; padding: 4px 0; } }

/* ---- Two-column feature (text + list) ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 34px; } }
.check-list li {
  list-style: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
  display: flex;
  gap: 12px;
}
.on-dark .check-list li { border-color: var(--line-dark); }
.check-list li::before {
  content: "→";
  color: var(--brass);
  font-family: var(--font-mono);
  flex-shrink: 0;
}

/* ---- Tag / pill list (long service lists) ---- */
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-list span {
  border: 1px solid var(--line);
  padding: 9px 16px;
  font-size: 14px;
  border-radius: var(--radius);
  color: var(--text-soft);
}
.on-dark .tag-list span { border-color: var(--line-dark); color: var(--text-on-dark-soft); }

.col-list { columns: 2; column-gap: 40px; }
@media (max-width: 700px) { .col-list { columns: 1; } }
.col-list li {
  list-style: none;
  break-inside: avoid;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--text-soft);
}
.on-dark .col-list li { border-color: var(--line-dark); color: var(--text-on-dark-soft); }

/* ---- Industry cards ---- */
.industry-card { padding: 30px 26px; background: var(--paper); border: 1px solid var(--line); }
.on-dark .industry-card { background: var(--ink-3); border-color: var(--line-dark); }
.industry-card h3 { font-size: 18px; margin-bottom: 12px; }
.industry-card ul { margin: 0; }
.industry-card li { list-style: none; font-size: 14px; color: var(--text-soft); padding: 4px 0; }
.on-dark .industry-card li { color: var(--text-on-dark-soft); }
.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.on-dark .industry-grid { background: var(--line-dark); border-color: var(--line-dark); }
@media (max-width: 900px) { .industry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .industry-grid { grid-template-columns: 1fr; } }

/* ---- CTA band ---- */
.cta-band {
  background: var(--brass);
  color: var(--ink);
  padding: 64px 0;
}
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: var(--ink); font-size: clamp(22px, 3vw, 30px); margin-bottom: 8px; }
.cta-band p { color: var(--ink-3); margin: 0; font-size: 15.5px; }
.cta-band .btn-primary { background: var(--ink); color: #fff; }
.cta-band .btn-primary:hover { background: var(--ink-3); }

/* ---- Footer ---- */
.site-footer { background: var(--ink-2); color: var(--text-on-dark-soft); padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h5 {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--brass-light);
  margin: 0 0 16px;
}
.footer-grid ul { display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { font-size: 14px; color: var(--text-on-dark-soft); }
.footer-grid a:hover { color: #fff; }
.footer-logo img { height: 34px; margin-bottom: 16px; }
.footer-tag { font-size: 14px; max-width: 320px; color: var(--text-on-dark-soft); }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 13px;
  color: #6f6a5e;
}
.footer-legal a { color: var(--text-on-dark-soft); text-decoration: underline; }
.footer-legal a:hover { color: var(--brass-light); }

/* ---- Contact page ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-row { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
.info-row .lbl { font-family: var(--font-mono); font-size: 12px; color: var(--brass-light); text-transform: uppercase; letter-spacing: .06em; min-width: 110px; padding-top: 3px; }
.info-row .val { font-size: 15.5px; color: var(--text-on-dark); }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 13px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-soft); margin-bottom: 8px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  border-radius: var(--radius);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(138,115,88,0.28);
}
.form-note { font-size: 13px; color: var(--text-soft); margin-top: 6px; }
.req { color: var(--brass-light); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* Honeypot — off-screen rather than display:none so bots that skip hidden fields still fill it. */
.hidden { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-field input.field-invalid,
.form-field select.field-invalid,
.form-field textarea.field-invalid {
  border-color: #b3261e;
}
.field-error {
  color: #b3261e;
  font-size: 13px;
  margin: 8px 0 0;
  font-weight: 600;
}

.form-field-checkbox { margin-top: 4px; }
.form-field .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14.5px;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-on-dark-soft);
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--brass);
}

#contact-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-status {
  margin-top: 20px;
  padding: 22px;
  border-radius: var(--radius);
}
.form-status p { margin: 0 0 14px; color: var(--text-on-dark); }
.form-status-success { background: rgba(138,115,88,0.12); border: 1px solid var(--brass); }
.form-status-error { background: rgba(179,38,30,0.14); border: 1px solid #b3261e; }
.form-status-error p { margin: 0; }
.form-status-error a { color: var(--brass-light); text-decoration: underline; }

/* ---- Scope boundary panel ---- */
.scope-boundary {
  max-width: 820px;
  padding: 24px 26px;
  border: 1px solid var(--line-dark);
  border-left: 3px solid var(--brass-dim);
  background: var(--ink-3);
}
.scope-boundary-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brass-light);
  margin-bottom: 10px;
}
.scope-boundary p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-on-dark-soft);
}
.on-paper .scope-boundary,
.scope-boundary.on-paper {
  background: var(--paper-2);
  border-color: var(--line);
}
.on-paper .scope-boundary p { color: var(--text-soft); }

/* ---- Misc ---- */
.eyebrow-line { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.placeholder-box {
  border: 1px dashed var(--line-dark);
  padding: 40px 30px;
  text-align: center;
  color: var(--text-on-dark-soft);
  font-size: 14.5px;
}
.on-paper .placeholder-box { border-color: var(--line); color: var(--text-soft); }

/* ---- Visual placeholders (final artwork pending) ---- */
.visual-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  box-sizing: border-box;
  border: 1px dashed var(--line-dark);
  background: var(--ink-3);
  color: var(--text-on-dark-soft);
  text-align: center;
  padding: 28px 22px;
}
.visual-placeholder-icon { font-size: 26px; opacity: .4; line-height: 1; }
.visual-placeholder-label { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brass-light); }
.visual-placeholder-note { font-size: 13.5px; line-height: 1.5; max-width: 380px; color: var(--text-on-dark-soft); }
.visual-placeholder-filename { font-family: var(--font-mono); font-size: 10.5px; opacity: .5; margin-top: 4px; }
.on-paper .visual-placeholder,
.visual-placeholder.on-paper {
  background: var(--paper-2);
  border-color: var(--line);
  color: var(--text-soft);
}
.on-paper .visual-placeholder .visual-placeholder-note,
.visual-placeholder.on-paper .visual-placeholder-note { color: var(--text-soft); }
.visual-placeholder.cover-mock { aspect-ratio: 3 / 4 !important; max-width: 220px; margin: 0 auto 22px; }

/* ---- Controlled diagrams (SVG) ---- */
.diagram-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ---- Self-check guide cover images ---- */
.self-check-cover {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  margin: 0 auto 22px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(0,0,0,0.35);
}

.mono-label { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brass); }

/* ---- Self-check guide cards ---- */
.self-check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
@media (max-width: 760px) { .self-check-grid { grid-template-columns: 1fr; } }
.self-check-card {
  background: var(--ink-3);
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
}
.self-check-card h3 { color: #fff; font-size: 21px; margin-bottom: 12px; }
.self-check-card p { color: var(--text-on-dark-soft); font-size: 15px; flex-grow: 1; margin-bottom: 24px; }
.self-check-card .btn { align-self: flex-start; }

/* ---- Download-form modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,17,22,0.78);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
.modal-overlay[hidden] { display: none; }
.modal-dialog {
  background: var(--ink);
  border: 1px solid var(--line-dark);
  max-width: 560px;
  width: 100%;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 36px 34px;
  position: relative;
  margin: auto;
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line-dark);
  color: var(--text-on-dark);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.modal-close:hover { border-color: var(--brass-light); color: var(--brass-light); }
.modal-dialog h3 { color: #fff; font-size: 22px; margin-bottom: 6px; padding-right: 40px; }
.modal-dialog .modal-guide-label { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brass-light); margin-bottom: 14px; display: block; }
.modal-dialog .form-note { margin-bottom: 20px; }

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