/* ===========================================================
   MedLink EHR — SCADA-meets-medical aesthetic
   No gradients. Square panels. Flat medical palette. Warm tones.
   =========================================================== */

:root {
  /* Surfaces */
  --bg:        #f1ede4;   /* warm cream */
  --bg-alt:    #e9e3d6;   /* deeper cream */
  --panel:     #ffffff;
  --panel-dk:  #1e2826;   /* SCADA dark panel */
  --panel-dk2: #141c1a;

  /* Ink */
  --ink:       #1a2622;
  --ink-2:     #3b4a45;
  --muted:     #6b7670;
  --muted-2:   #8a958e;

  /* Borders / rules */
  --rule:      #cfc7b6;
  --rule-2:    #b8ad97;
  --rule-dk:   #2b3835;

  /* Medical accents (flat, no gradients) */
  --green:     #2f7d5b;   /* primary — surgical scrub green */
  --green-dk:  #245f45;
  --green-tn:  #e2efe8;
  --teal:      #2a6b6e;
  --amber:     #c8923d;
  --amber-tn:  #f5ead0;
  --red:       #b34a3f;   /* used sparingly */
  --red-tn:    #f3dcd6;
  --navy:      #1c3a4a;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01';
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.15; letter-spacing: -0.01em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.05rem; font-weight: 600; }
p  { margin: 0 0 1em; color: var(--ink-2); }
.container { width: 92%; max-width: 1200px; margin: 0 auto; }

/* shared mono */
.mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ===== Buttons (square, flat) ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.3rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--green-dk); border-color: var(--green-dk); }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.83rem; }
.btn-primary { background: var(--green); border-color: var(--green); }
.btn-primary:hover { background: var(--green-dk); border-color: var(--green-dk); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 0; }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; font-weight: 700; line-height: 1; }
.brand-mark {
  width: 34px; height: 34px;
  flex: 0 0 34px;
  display: block;
  border: 1px solid var(--green-dk);
  image-rendering: pixelated;
  vertical-align: middle;
}
.brand-name { font-size: 1.05rem; letter-spacing: 0.02em; }
.brand-accent { color: var(--green); margin-left: 2px; }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-accent { color: #8fc3a8; }

.primary-nav { display: flex; gap: 1.6rem; }
.primary-nav a { color: var(--ink-2); font-weight: 500; font-size: 0.92rem; padding: 0.3rem 0; border-bottom: 2px solid transparent; }
.primary-nav a:hover { color: var(--green); border-bottom-color: var(--green); }

/* ===== Top status bar (SCADA touch) ===== */
.status-bar {
  background: var(--panel-dk);
  color: #c8d2cf;
  border-bottom: 1px solid var(--rule-dk);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.status-bar .container {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.45rem 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.status-bar .left, .status-bar .right { display: flex; gap: 1.2rem; align-items: center; }
.status-bar b { color: #fff; font-weight: 500; }
.led { display: inline-block; width: 8px; height: 8px; background: #4ad28a; margin-right: 0.4rem; box-shadow: 0 0 0 2px rgba(74,210,138,0.18); }
.led.amber { background: var(--amber); box-shadow: 0 0 0 2px rgba(200,146,61,0.2); }

/* ===== HERO ===== */
.hero {
  padding: 4rem 0 4.5rem;
  background:
    linear-gradient(transparent 95%, rgba(47,125,91,0.06) 95%) 0 0/24px 24px,
    linear-gradient(90deg, transparent 95%, rgba(47,125,91,0.06) 95%) 0 0/24px 24px,
    var(--bg);
  border-bottom: 1px solid var(--rule);
}
.hero-grid {
  display: grid; gap: 3rem;
  grid-template-columns: 1.05fr 1fr;
  align-items: stretch;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.7rem;
  background: var(--green-tn);
  color: var(--green-dk);
  border: 1px solid #b9d6c5;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.eyebrow-light { background: transparent; color: #8fc3a8; border-color: #355c4d; }
.eyebrow .led { margin-right: 0; }

.highlight {
  background: var(--green-tn);
  color: var(--green-dk);
  padding: 0 0.15em;
  border-bottom: 2px solid var(--green);
}
.lede { font-size: 1.05rem; max-width: 540px; color: var(--ink-2); }
.hero-cta { display: flex; gap: 0.7rem; flex-wrap: wrap; margin: 1.5rem 0 2rem; }

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--rule);
  background: var(--panel);
}
.trust-row > div {
  padding: 1rem 1.2rem;
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 0.15rem;
}
.trust-row > div:last-child { border-right: none; }
.trust-row strong { font-size: 1.5rem; font-weight: 700; color: var(--ink); font-family: 'JetBrains Mono', ui-monospace, monospace; }
.trust-row span { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ===== SCADA-style panel grid (replaces floating cards) ===== */
.scada-panel {
  background: var(--panel);
  border: 1px solid var(--rule-2);
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.scada-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.55rem 0.9rem;
  background: var(--panel-dk);
  color: #d6dedb;
  border-bottom: 1px solid var(--rule-dk);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scada-head b { color: #fff; font-weight: 500; }
.scada-body {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.scada-cell {
  padding: 1rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 0.4rem;
  background: var(--panel);
}
.scada-cell:nth-child(2n) { border-right: none; }
.scada-cell:nth-last-child(-n+2) { border-bottom: none; }
.scada-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem; color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase;
  display: flex; justify-content: space-between;
}
.scada-value {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
}
.scada-value small { font-size: 0.7rem; color: var(--muted); margin-left: 0.25rem; font-weight: 500; }
.scada-meter {
  height: 6px; background: var(--bg-alt); border: 1px solid var(--rule);
  position: relative; overflow: hidden;
}
.scada-meter > i {
  display: block; height: 100%; background: var(--green);
}
.scada-meter.amber > i { background: var(--amber); }

.scada-foot {
  padding: 0.55rem 0.9rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* mini bar chart cell */
.scada-chart {
  display: flex; align-items: flex-end; gap: 4px; height: 50px;
}
.scada-chart > i {
  flex: 1;
  background: var(--green);
  display: block;
}
.scada-chart > i:nth-child(odd) { background: var(--green-dk); }

/* ===== Logos (operator strip) ===== */
.logos {
  background: var(--panel);
  border-bottom: 1px solid var(--rule);
  padding: 1.6rem 0;
}
.logos .container { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; justify-content: space-between; }
.logos-label {
  margin: 0; color: var(--muted);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase;
  border-left: 3px solid var(--green); padding-left: 0.8rem;
}
.logo-row {
  display: flex; flex-wrap: wrap; gap: 1.6rem;
  color: var(--muted-2); font-weight: 600; font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.logo-row span { padding: 0.3rem 0.6rem; border: 1px solid var(--rule); }

/* ===== Sections ===== */
.section { padding: 4.5rem 0; }
.section-soft { background: var(--bg-alt); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-dark {
  background: var(--panel-dk);
  color: #d6dedb;
  border-top: 1px solid var(--rule-dk);
  border-bottom: 1px solid var(--rule-dk);
}
.section-dark h2, .section-dark strong { color: #fff; }
.section-dark .muted, .section-dark p { color: #98a3a0; }

.section-head {
  max-width: 720px; margin: 0 auto 2.5rem;
  border-left: 3px solid var(--green); padding-left: 1.2rem;
}
.section-head p { font-size: 1rem; }

/* ===== Solution cards (square, panel-style) ===== */
.cards {
  display: grid; gap: 0;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--rule);
  background: var(--rule);
}
.card {
  padding: 1.6rem;
  background: var(--panel);
  display: flex; flex-direction: column; gap: 0.6rem;
  transition: background 0.15s;
  /* 1px gap effect from grid bg */
  margin: 0;
  border: none;
  position: relative;
}
.card:not(:nth-child(3n)) { border-right: 1px solid var(--rule); }
.card:not(:nth-last-child(-n+3)) { border-bottom: 1px solid var(--rule); }
.card:hover { background: var(--green-tn); }
.card-icon {
  width: 40px; height: 40px;
  background: var(--green-tn);
  color: var(--green-dk);
  display: grid; place-items: center;
  font-size: 1.15rem;
  border: 1px solid #b9d6c5;
  margin-bottom: 0.4rem;
}
.card-tag {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem; color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* ===== Split layouts ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split-reverse > *:first-child { order: 2; }
@media (max-width: 880px) {
  .split, .hero-grid { grid-template-columns: 1fr; }
  .split-reverse > *:first-child { order: 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card:not(:nth-child(3n)) { border-right: 1px solid var(--rule); }
  .card:nth-child(2n) { border-right: none !important; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .card { border-right: none !important; border-bottom: 1px solid var(--rule) !important; }
}

.check-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 0.6rem; }
.check-list li {
  position: relative; padding-left: 1.7rem; color: #c4ccc9;
  font-size: 0.94rem;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.45em;
  width: 10px; height: 10px;
  background: var(--green);
  border: 1px solid #4a9a76;
}

/* ===== Code window (terminal-style) ===== */
.code-window {
  background: var(--panel-dk2);
  border: 1px solid var(--rule-dk);
}
.code-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.55rem 0.9rem;
  background: #0e1514;
  border-bottom: 1px solid var(--rule-dk);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.74rem; color: #6f7c79;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.code-window pre {
  margin: 0; padding: 1.2rem 1.3rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.86rem; color: #d6dedb;
  overflow-x: auto;
}
.tk-c { color: #6f7c79; font-style: italic; }
.tk-k { color: #c8923d; }
.tk-s { color: #8fc3a8; }

/* ===== Founder card (warm + human) ===== */
.founder-card {
  display: grid; gap: 0;
  grid-template-columns: 1fr;
  border: 1px solid var(--rule-2);
  background: var(--panel);
}
.avatar {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--green-tn);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.avatar svg { width: 100%; height: 100%; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-initials {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 5rem; font-weight: 700; color: #fff;
  letter-spacing: -0.02em;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.founder-meta {
  padding: 1.1rem 1.3rem;
  display: grid; gap: 0.15rem;
  border-top: 1px solid var(--rule);
  background: var(--bg-alt);
}
.founder-meta strong { font-size: 1.05rem; }
.founder-meta span { color: var(--muted); font-size: 0.88rem; }
.founder-meta .id-line {
  margin-top: 0.5rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem; color: var(--muted);
  letter-spacing: 0.05em; text-transform: uppercase;
}

.signature {
  margin-top: 1.5rem; padding-top: 1.2rem;
  border-top: 1px dashed var(--rule-2);
  font-family: 'Caveat', 'Brush Script MT', cursive;
  font-size: 1.6rem; color: var(--green-dk);
}

/* ===== Stats grid ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--rule);
  background: var(--rule);
  margin-bottom: 2.5rem;
}
.stats > div {
  background: var(--panel);
  padding: 1.4rem 1.2rem;
  display: flex; flex-direction: column; gap: 0.3rem;
}
.stats > div:not(:last-child) { border-right: 1px solid var(--rule); }
.stats b {
  font-size: 1.9rem; font-weight: 700;
  color: var(--green-dk);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.stats span { color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; }
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:not(:last-child) { border-right: none; }
  .stats > div:nth-child(odd) { border-right: 1px solid var(--rule); }
  .stats > div:not(:nth-last-child(-n+2)) { border-bottom: 1px solid var(--rule); }
}

.testimonial {
  background: var(--panel);
  border: 1px solid var(--rule-2);
  border-left: 4px solid var(--green);
  padding: 1.6rem 1.8rem; max-width: 760px; margin: 0 auto;
}
.testimonial p { font-size: 1.05rem; color: var(--ink); margin-bottom: 0.7rem; font-style: italic; }
.testimonial footer { color: var(--muted); font-weight: 500; font-size: 0.88rem; font-family: 'JetBrains Mono', ui-monospace, monospace; letter-spacing: 0.04em; }

/* ===== Contact ===== */
.contact-list {
  list-style: none; padding: 0; margin: 1.5rem 0 0;
  border: 1px solid var(--rule);
  background: var(--panel);
}
.contact-list li {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--rule);
}
.contact-list li:last-child { border-bottom: none; }
.contact-icon {
  width: 38px; height: 38px;
  background: var(--green-tn);
  color: var(--green-dk);
  border: 1px solid #b9d6c5;
  display: grid; place-items: center;
  font-size: 1rem; flex-shrink: 0;
}
.contact-list small {
  display: block; color: var(--muted);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 0.1rem;
}
.contact-list a:hover strong { color: var(--green-dk); text-decoration: underline; text-decoration-style: dotted; }

.contact-form {
  background: var(--panel);
  padding: 1.6rem;
  border: 1px solid var(--rule-2);
  display: grid; gap: 0.85rem;
}
.contact-form h3 {
  margin-bottom: 0.4rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.contact-form label { display: grid; gap: 0.3rem; font-size: 0.82rem; font-weight: 500; color: var(--ink-2); }
.contact-form input, .contact-form textarea {
  font: inherit; padding: 0.7rem 0.85rem;
  border: 1px solid var(--rule);
  background: var(--bg);
  border-radius: 0;
  color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--green); background: #fff;
}
.contact-form button { margin-top: 0.4rem; justify-self: start; }
.form-success {
  background: var(--green-tn); color: var(--green-dk);
  border: 1px solid #b9d6c5;
  padding: 0.7rem 0.9rem; font-size: 0.88rem; margin: 0;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--panel-dk2);
  color: #98a3a0;
  padding: 3rem 0 1.2rem;
  border-top: 1px solid var(--rule-dk);
}
.footer-grid {
  display: grid; gap: 2.2rem;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  margin-bottom: 2.2rem;
}
.footer-grid h4 {
  color: #fff; font-size: 0.78rem; margin-bottom: 0.9rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule-dk);
}
.footer-grid a, .footer-grid span {
  display: block; padding: 0.2rem 0;
  color: #98a3a0; font-size: 0.88rem;
}
.footer-grid .brand { display: inline-flex; padding: 0; font-size: 1.05rem; }
.footer-grid .brand .brand-name,
.footer-grid .brand .brand-accent { display: inline; padding: 0; color: inherit; font-size: inherit; }
.footer-grid .brand .brand-name { color: #fff; }
.footer-grid .brand .brand-accent { color: #8fc3a8; }
.footer-grid a:hover { color: #fff; }
.footer-blurb { color: #98a3a0; font-size: 0.88rem; margin-top: 0.7rem; max-width: 320px; }
.footer-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  border-top: 1px solid var(--rule-dk);
  padding-top: 1.2rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.74rem; color: #6f7c79;
  letter-spacing: 0.04em;
}

/* ===== Responsive ===== */

/* Tablets and below */
@media (max-width: 880px) {
  .primary-nav { display: none; }
  .hero { padding: 2.5rem 0 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .status-bar .container { flex-direction: column; gap: 0.4rem; align-items: flex-start; }
  .status-bar .left, .status-bar .right { flex-wrap: wrap; gap: 0.7rem 1rem; }
  .logos .container { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* Small tablets / large phones */
@media (max-width: 720px) {
  .section { padding: 3rem 0; }
  .hero { padding: 2rem 0 2.5rem; }
  h1 { font-size: 1.85rem; line-height: 1.2; }
  h2 { font-size: 1.45rem; }
  .lede { font-size: 0.98rem; }

  /* SCADA panel scales down */
  .scada-value { font-size: 1.15rem; }
  .scada-cell { padding: 0.75rem; gap: 0.3rem; }
  .scada-head, .scada-foot { padding: 0.45rem 0.7rem; font-size: 0.68rem; }
  .scada-label { font-size: 0.62rem; }
  .scada-chart { height: 40px; }

  /* Trust row tighter */
  .trust-row strong { font-size: 1.2rem; }
  .trust-row > div { padding: 0.7rem 0.8rem; }
  .trust-row span { font-size: 0.7rem; letter-spacing: 0.04em; }

  /* Card padding */
  .card { padding: 1.25rem; }

  /* Section head spacing */
  .section-head { margin-bottom: 1.8rem; }

  /* Code window smaller text */
  .code-window pre { font-size: 0.78rem; padding: 1rem; }
  .code-bar { font-size: 0.66rem; padding: 0.45rem 0.7rem; }
}

/* Phones */
@media (max-width: 560px) {
  .container { width: 94%; }

  /* Cards already 1 col from earlier rule */

  /* Footer 1 column */
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .footer-base { flex-direction: column; align-items: flex-start; gap: 0.4rem; }

  /* Trust row stacks: number + label side-by-side per row */
  .trust-row { grid-template-columns: 1fr; }
  .trust-row > div {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-right: none;
    border-bottom: 1px solid var(--rule);
    padding: 0.75rem 0.9rem;
  }
  .trust-row > div:last-child { border-bottom: none; }
  .trust-row span { letter-spacing: 0.05em; }

  /* Hero CTA buttons stack full-width */
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; width: 100%; }

  /* Header tightening */
  .nav { gap: 0.5rem; padding: 0.7rem 0; }
  .brand-name { font-size: 0.95rem; }
  .brand-mark { width: 30px; height: 30px; flex: 0 0 30px; }

  /* Status bar tighter */
  .status-bar { font-size: 0.7rem; }

  /* Contact list padding */
  .contact-list li { padding: 0.8rem 0.9rem; gap: 0.8rem; }
  .contact-icon { width: 34px; height: 34px; font-size: 0.9rem; }

  /* Form padding */
  .contact-form { padding: 1.2rem; }

  /* Founder card: horizontal layout on phones (avatar | meta) */
  .founder-card { grid-template-columns: 110px 1fr; }
  .avatar { border-bottom: none; border-right: 1px solid var(--rule); }
  .avatar-initials { font-size: 2.4rem; }
  .founder-meta { border-top: none; padding: 0.9rem 1rem; align-self: center; }
  .founder-meta strong { font-size: 0.95rem; }
  .founder-meta span { font-size: 0.78rem; }
  .founder-meta .id-line { font-size: 0.65rem; }
}

/* Narrow phones */
@media (max-width: 420px) {
  h1 { font-size: 1.55rem; }
  .hero .eyebrow { font-size: 0.66rem; padding: 0.3rem 0.55rem; }

  /* SCADA panel: collapse 2-col body to 1-col on tiny screens */
  .scada-body { grid-template-columns: 1fr; }
  .scada-cell {
    border-right: none !important;
    border-bottom: 1px solid var(--rule) !important;
  }
  .scada-cell:last-child { border-bottom: none !important; }
  .scada-cell[style*="span 2"] { grid-column: auto !important; }

  /* Smaller hero CTA on tiny screens */
  .btn { padding: 0.7rem 1.1rem; font-size: 0.85rem; }
  .btn-sm { padding: 0.45rem 0.75rem; font-size: 0.78rem; }

  /* Header — shrink CTA so brand fits */
  .site-header .btn-sm { padding: 0.4rem 0.65rem; font-size: 0.74rem; }

  /* Section head: thinner left bar */
  .section-head { padding-left: 0.9rem; }

  /* Footer base: smaller */
  .footer-base { font-size: 0.68rem; }

  /* Founder card avatar smaller initials */
  .avatar-initials { font-size: 3.5rem; }

  /* Logo strip tighter */
  .logo-row { gap: 0.5rem; }
  .logo-row span { font-size: 0.8rem; padding: 0.25rem 0.5rem; }
}
