/* ============================================================
   Zypher Strategic Solutions — Design System
   Signature: a 45° navy→sky gradient, taken directly from the
   diagonal stroke in the Zypher mark, reused as the site's one
   recurring accent (hero glow, buttons, card edges, dividers).
   ============================================================ */


:root {
  /* Color */
  --bg: #f6f9fc;
  --bg-elevated: #ffffff;
  --bg-elevated-2: #eef4fa;
  --border: rgba(10, 45, 80, 0.12);
  --border-hover: rgba(10, 45, 80, 0.26);
  --navy: #0a3d66;
  --accent: #3fa9e0;   /* decorative only - 2.6:1 on white, never use for text */
  --sky: #1b6699;      /* text-safe blue - 6.2:1 on white */
  --sky-dim: #2b7ab8;
  --ink: #0f1b2a;      /* 17.4:1 */
  --muted: #4f6178;    /* 6.3:1  */
  --muted-2: #5b6b80;  /* 5.4:1  */
  --gradient: linear-gradient(45deg, var(--navy), #1a75b3);
  --gradient-soft: linear-gradient(45deg, rgba(10, 61, 102, 0.12), rgba(63, 169, 224, 0.14));

  /* Type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --container: 1160px;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }

/* Faint ambient background — a wide, dim wash of the brand gradient
   fixed behind everything so pages feel like one continuous surface. */
body {
  background-image:
    radial-gradient(ellipse 900px 500px at 85% -10%, rgba(63, 169, 224, 0.10), transparent 60%),
    radial-gradient(ellipse 700px 500px at -10% 15%, rgba(10, 61, 102, 0.06), transparent 60%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

::selection { background: var(--sky); color: #ffffff; }

:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.section { padding-block: 96px; }
@media (max-width: 720px) {
  .section { padding-block: 64px; }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  width: 14px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}
.text-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--muted);
  line-height: 1.65;
}
.text-muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: #ffffff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 8px 24px -8px rgba(10, 61, 102, 0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.24) inset, 0 12px 28px -8px rgba(10, 61, 102, 0.45);
}
.btn-secondary {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--bg-elevated-2);
  transform: translateY(-1px);
}
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 40px; width: auto; }
.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease;
  position: relative;
  padding-block: 4px;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}
.nav-right { display: flex; align-items: center; gap: 28px; }
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--ink);
  padding: 8px;
}
.nav-toggle svg { width: 22px; height: 22px; }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 72px 0 0 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  z-index: 99;
  padding: 32px 24px;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}
.mobile-menu .btn { margin-top: 24px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-right .btn { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0.6;
  transition: opacity 0.2s ease;
}
.card:hover {
  border-color: var(--border-hover);
  background: var(--bg-elevated-2);
  transform: translateY(-2px);
}
.card:hover::before { opacity: 1; }

/* ---------- Reveal-on-scroll ----------
   Content is visible by default (no-JS, JS errors, and slow-loading
   scripts all fail safe to "just show it"). Only once JS confirms it's
   running does it opt elements into the hidden-then-fade-up state. */
.reveal { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease; }
.js-reveal-ready .reveal { opacity: 0; transform: translateY(18px); }
.js-reveal-ready .reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .js-reveal-ready .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 56px 32px;
  margin-top: 96px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
}
.footer-brand img { height: 32px; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; max-width: 32ch; }
.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 14px;
}
.footer-col a, .footer-col p {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--sky); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted-2);
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Page header (non-home pages) ---------- */
.page-header {
  padding-block: 72px 32px;
}
.page-header h1 {
  font-size: clamp(2.25rem, 4vw, 3rem);
  max-width: 16ch;
}
.page-header .text-lead { margin-top: 18px; max-width: 56ch; }

/* ---------- Home: hero ---------- */
.hero {
  position: relative;
  padding-block: 88px 0;
  overflow: hidden;
}
.hero-inner {
  max-width: 760px;
  text-align: center;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .eyebrow { justify-content: center; }
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  margin-bottom: 20px;
}
.hero .text-lead { max-width: 54ch; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero::before {
  content: '';
  position: absolute;
  top: -180px;
  right: -160px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(63, 169, 224, 0.14), transparent 65%);
  pointer-events: none;
  z-index: -1;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -240px;
  left: -200px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(10, 61, 102, 0.10), transparent 65%);
  pointer-events: none;
  z-index: -1;
}
.capability-strip {
  margin-top: 72px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.capability-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding-block: 20px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.capability-strip .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sky);
  opacity: 0.6;
}
@media (max-width: 600px) {
  .capability-strip .dot { display: none; }
  .capability-strip-inner { gap: 6px 16px; }
}

/* ---------- Section head + feature grid ---------- */
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.section-head .text-lead { margin-top: 16px; }
.section-tight-top { padding-top: 32px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature { padding-top: 20px; border-top: 1px solid var(--border); }
.feature h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 760px) {
  .feature-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Services preview / cards grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card h3 { font-size: 1.25rem; margin: 14px 0 10px; }
.card-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sky);
}
@media (max-width: 860px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ---------- About teaser ---------- */
.about-teaser { max-width: 680px; }
.about-teaser h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin: 16px 0; }
.about-teaser .btn { margin-top: 24px; }

/* ---------- Testimonial placeholder ---------- */
.testimonial-placeholder {
  border: 1px dashed var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}
.testimonial-placeholder p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--gradient);
  clip-path: polygon(0 24px, 100% 0, 100% 100%, 0 100%);
  margin-top: 40px;
}
.cta-band-inner {
  text-align: center;
  padding-block: 96px 88px;
  max-width: 620px;
  margin-inline: auto;
}
.cta-band h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: #ffffff;
  margin-bottom: 14px;
}
.cta-band .text-lead { color: rgba(255, 255, 255, 0.85); margin-bottom: 28px; }
.cta-band .btn-primary {
  background: #ffffff;
  color: var(--navy);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.3);
}
.cta-band .btn-primary:hover { background: #ffffff; opacity: 0.92; }

/* ---------- Services page ---------- */
.service-detail {
  padding-block: 40px;
  border-top: 1px solid var(--border);
}
.service-detail:last-child { border-bottom: 1px solid var(--border); }
.service-detail-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.service-detail-head h3 { font-size: 1.5rem; }
.service-detail .text-lead { max-width: 68ch; margin-bottom: 20px; }
.service-list { display: grid; gap: 10px; }
.service-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.process-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--sky);
  margin-bottom: 14px;
}
.process-step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.process-step p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 760px) {
  .process-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- About page ---------- */
.founder-block {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
  max-width: 900px;
}
.founder-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  padding: 3px;
  background: var(--gradient);
}
.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 3px);
  display: block;
}
.founder-text p { margin-bottom: 18px; color: var(--muted); font-size: 1.02rem; }
.founder-text p:first-of-type { color: var(--ink); font-size: 1.1rem; }
.founder-linkedin {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sky);
}
@media (max-width: 700px) {
  .founder-block { grid-template-columns: 1fr; }
  .founder-photo { max-width: 220px; margin-inline: auto; }
}

.edit-note {
  color: var(--sky);
  font-style: italic;
  border-bottom: 1px dashed var(--sky-dim);
}

.brand-story {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  padding: 48px;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}
.brand-story p {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
}
.brand-story em { font-style: italic; color: var(--sky); }

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.principle-grid .card h3 { margin-top: 4px; }
@media (max-width: 860px) {
  .principle-grid { grid-template-columns: 1fr; }
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-form {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--muted);
}
.form-row input,
.form-row textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.15s ease;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--sky-dim);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.botcheck {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.form-status {
  margin-top: 16px;
  font-size: 0.9rem;
  min-height: 1.2em;
}
.form-status-success { color: #1a7f4b; }
.form-status-error { color: #b3261e; }

.contact-info-block { margin-bottom: 32px; }
.contact-info-block a,
.contact-info-block p { font-size: 1rem; color: var(--ink); }
.contact-info-block p { color: var(--muted); font-size: 0.92rem; line-height: 1.6; }

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

/* ---------- Tag pill ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--sky);
  background: rgba(63, 169, 224, 0.1);
  border: 1px solid rgba(63, 169, 224, 0.25);
  padding: 5px 10px;
  border-radius: 100px;
}

/* ============================================================
   VISUAL LAYER — product mockups, diagrams, icons, article pages
   Built on the same navy→sky system. Every graphic here is CSS/SVG,
   so it stays sharp at any size and costs almost nothing to load.
   ============================================================ */

/* ---------- Shared: the "app window" frame ---------- */
.mock {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -28px rgba(10, 61, 102, 0.38), 0 2px 8px -2px rgba(10, 61, 102, 0.10);
  overflow: hidden;
  position: relative;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-elevated-2);
  border-bottom: 1px solid var(--border);
}
.mock-dots { display: flex; gap: 6px; }
.mock-dots i {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(10, 45, 80, 0.18);
  display: block;
}
.mock-chip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--muted-2);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-body { padding: 18px; }

/* ---------- Hero product shot ---------- */
.hero-mock-wrap {
  max-width: 900px;
  margin: 56px auto 0;
  padding-inline: 24px;
  padding-bottom: 34px;
  position: relative;
}
.hero-mock-wrap::before {
  content: '';
  position: absolute;
  inset: 12% 6% -8% 6%;
  background: var(--gradient);
  filter: blur(60px);
  opacity: 0.14;
  border-radius: 50%;
  z-index: -1;
}

/* view tabs */
.mock-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 14px 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.mock-tabs::-webkit-scrollbar { display: none; }
.mock-tab {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted-2);
  padding: 8px 12px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.mock-tab.is-active {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--sky);
}

/* register rows */
.mock-table { display: grid; }
.mock-row {
  display: grid;
  grid-template-columns: 62px 1fr 92px 92px;
  gap: 12px;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}
.mock-row:last-child { border-bottom: 0; }
.mock-row.is-head {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  background: var(--bg);
}
.mock-id { font-family: var(--font-mono); font-size: 0.74rem; color: var(--sky); }
.mock-title { color: var(--ink); font-weight: 500; }
.mock-sub { display: block; color: var(--muted-2); font-size: 0.72rem; font-weight: 400; margin-top: 2px; }
.mock-owner { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 0.76rem; }
.mock-av {
  width: 22px; height: 22px; flex: none;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 600;
  display: grid;
  place-items: center;
  letter-spacing: 0.02em;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 100px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.tag::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.tag-high    { color: #a8342a; background: #fdeeec; border-color: #f3cdc7; }
.tag-med     { color: #8a5a10; background: #fdf4e3; border-color: #f0dcb4; }
.tag-low     { color: #1a7f4b; background: #e9f7ef; border-color: #bfe5cf; }
.tag-ok      { color: #1a7f4b; background: #e9f7ef; border-color: #bfe5cf; }
.tag-due     { color: var(--sky); background: rgba(63,169,224,0.10); border-color: rgba(63,169,224,0.28); }

/* the automation notification, overlapping the corner */
.mock-toast {
  position: absolute;
  right: 6px;
  bottom: 0;
  width: min(290px, 78%);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 40px -18px rgba(10, 61, 102, 0.45);
  padding: 13px 15px;
  display: flex;
  gap: 11px;
  align-items: flex-start;
}
.mock-toast-icon {
  width: 26px; height: 26px; flex: none;
  border-radius: 7px;
  background: var(--gradient);
  display: grid;
  place-items: center;
}
.mock-toast-icon svg { width: 14px; height: 14px; color: #fff; }
.mock-toast-body { font-size: 0.76rem; line-height: 1.45; color: var(--muted); }
.mock-toast-body strong { display: block; color: var(--ink); font-size: 0.79rem; font-weight: 600; margin-bottom: 1px; }
.mock-toast-meta { display: block; font-family: var(--font-mono); font-size: 0.63rem; color: var(--muted-2); margin-top: 5px; }

@media (max-width: 620px) {
  .mock-row { grid-template-columns: 1fr 84px; row-gap: 6px; }
  .mock-row .mock-id, .mock-row .mock-owner { display: none; }
  .mock-row.is-head { display: none; }
  .mock-toast { position: static; width: auto; margin: 14px 0 0; box-shadow: none; }
  .hero-mock-wrap { padding-bottom: 0; }
  .hero-mock-wrap { margin-top: 40px; }
}

/* ---------- Before / after ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}
.compare-pane { min-width: 0; align-self: start; }
.compare-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.compare-label.is-before { color: var(--muted-2); }
.compare-label.is-after  { color: var(--sky); }
.compare-arrow {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gradient);
  display: grid;
  place-items: center;
  flex: none;
}
.compare-arrow svg { width: 17px; height: 17px; color: #fff; }

.sheet {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}
.sheet.is-stale { filter: saturate(0.45); opacity: 0.95; }
.sheet-name {
  padding: 9px 12px;
  background: var(--bg-elevated-2);
  border-bottom: 1px solid var(--border);
  color: var(--muted-2);
  font-size: 0.66rem;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.sheet-row {
  display: grid;
  grid-template-columns: 36px 1fr 78px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}
.sheet-row:last-child { border-bottom: 0; }
.sheet-row > span { padding: 8px 10px; border-right: 1px solid var(--border); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-row > span:last-child { border-right: 0; }
.sheet-row.is-head { background: var(--bg); color: var(--muted-2); }
.sheet-flag { color: #a8342a; }

@media (max-width: 780px) {
  .compare { grid-template-columns: 1fr; gap: 18px; justify-items: stretch; }
  .compare-arrow { transform: rotate(90deg); margin-inline: auto; }
}

/* ---------- Flow / escalation diagram ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  overflow: hidden;
}
.flow-step {
  padding: 22px 18px;
  border-right: 1px solid var(--border);
  position: relative;
}
.flow-step:last-child { border-right: 0; }
.flow-step::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  transform-origin: left;
  transform: scaleX(var(--fill, 0.2));
}
.flow-clock {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--sky);
  margin-bottom: 10px;
  display: block;
}
.flow-step h4 { font-size: 0.95rem; margin-bottom: 6px; }
.flow-step p { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.flow-step.is-breach .flow-clock { color: #a8342a; }
.flow-step.is-breach::after { background: linear-gradient(45deg, #a8342a, #d9614f); }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr 1fr; }
  .flow-step { border-bottom: 1px solid var(--border); }
  .flow-step:nth-child(2n) { border-right: 0; }
}
@media (max-width: 560px) {
  .flow { grid-template-columns: 1fr; }
  .flow-step { border-right: 0; }
}

/* ---------- Service card icons ---------- */
.svc-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--gradient-soft);
  border: 1px solid rgba(63, 169, 224, 0.22);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.svc-icon svg { width: 21px; height: 21px; color: var(--sky); }
.card .pill + .svc-icon { margin-top: 16px; }

/* ---------- Credentials strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat {
  background: var(--bg-elevated);
  padding: 24px 20px;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 4px;
}
.stat span { font-size: 0.84rem; color: var(--muted); }
@media (max-width: 860px) { .stat-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .stat-strip { grid-template-columns: 1fr; } }

/* ---------- Standards chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.chips span {
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 15px;
}

/* ---------- Solid panel (replaces the dashed placeholder) ---------- */
.panel {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  max-width: 720px;
  overflow: hidden;
}
.panel::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 3px;
  background: var(--gradient);
}
.panel p { color: var(--muted); font-size: 1.02rem; margin-bottom: 16px; }
@media (max-width: 620px) { .panel { padding: 28px 24px; } }

/* ---------- Learning: completion tracking visual ---------- */
.progress-list { display: grid; gap: 16px; }
.progress-item { display: grid; gap: 7px; }
.progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 0.85rem;
}
.progress-head span:last-child { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted-2); }
.progress-track {
  height: 7px;
  border-radius: 100px;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  overflow: hidden;
}
.progress-fill { height: 100%; background: var(--gradient); border-radius: 100px; }
.progress-fill.is-low { background: linear-gradient(45deg, #b8802a, #d9a441); }

/* ---------- Insights index ---------- */
.post-list { display: grid; gap: 20px; }
.post-card { display: block; }
.post-card h2 { font-size: 1.3rem; margin: 12px 0 10px; }
.post-card h2 a { color: var(--ink); }
.post-card:hover h2 a { color: var(--sky); }
.post-card p { color: var(--muted); font-size: 0.95rem; }
.post-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  margin-top: 14px;
}

/* ---------- Article body ---------- */
.post { max-width: 72ch; margin-inline: auto; }
.post .lede {
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.post h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  margin: 48px 0 16px;
}
.post h3 { font-size: 1.12rem; margin: 32px 0 12px; }
.post p { color: var(--muted); margin-bottom: 18px; line-height: 1.72; }
.post ul, .post ol { margin: 0 0 20px; padding-left: 22px; }
.post ul { list-style: disc; }
.post ol { list-style: decimal; }
.post li { color: var(--muted); margin-bottom: 9px; line-height: 1.65; }
.post strong { color: var(--ink); font-weight: 600; }
.post a { color: var(--sky); text-decoration: underline; text-underline-offset: 2px; }
.post .eyebrow { margin-bottom: 14px; }
.post h1 { font-size: clamp(2rem, 4vw, 2.85rem); margin-bottom: 22px; }

.post-table-wrap { overflow-x: auto; margin: 0 0 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elevated); }
.post table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.88rem; }
.post th, .post td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.post thead th {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  background: var(--bg);
}
.post tbody td { color: var(--muted); }
.post tbody tr:last-child td { border-bottom: 0; }

.post pre {
  background: #0f1b2a;
  color: #d8e6f2;
  border-radius: var(--radius);
  padding: 18px 20px;
  overflow-x: auto;
  margin: 0 0 24px;
  font-size: 0.82rem;
  line-height: 1.6;
}
.post pre code { font-family: var(--font-mono); }
.post :not(pre) > code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--sky);
}
.post .note {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--sky);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  font-size: 0.92rem;
  margin: 0 0 26px;
}
.post .cta-block {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  color: var(--ink);
  font-size: 1rem;
}

/* ---------- Contact FAQ ---------- */
.faq { display: grid; gap: 4px; margin-top: 8px; }
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 15px 34px 15px 0;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  position: absolute;
  right: 6px; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--muted-2);
  border-bottom: 2px solid var(--muted-2);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--muted); font-size: 0.94rem; padding: 0 0 16px; line-height: 1.65; }

.contact-extra { margin-top: 64px; }
.contact-extra h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 18px; }
.contact-extra .checklist { display: grid; gap: 10px; margin: 0 0 8px; }
.contact-extra .checklist li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}
.contact-extra .checklist li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 9px; height: 5px;
  border-left: 2px solid var(--sky);
  border-bottom: 2px solid var(--sky);
  transform: rotate(-45deg);
}
.nap {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  margin-top: 28px;
}
.nap strong { color: var(--ink); }

/* ============================================================
   KUNANYI CONTOUR MOTIF
   Original vector work, not a photograph and not a survey map: a
   synthetic elevation field rendered as true contour lines, shaped to
   echo the ridge-and-plateau form of kunanyi / Mt Wellington. The CTA
   band adds a columnar rhythm after the dolerite of the Organ Pipes.
   Two colourways — navy on light ground, white on the gradient band.
   No photography, no licensing, ~4KB over the wire each.
   ============================================================ */

.topo {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url('/assets/topo-ridge.svg');
  background-repeat: no-repeat;
  background-position: 57% 54%;
  background-size: 1320px auto;
  opacity: 0.13;
  -webkit-mask-image: radial-gradient(ellipse 68% 72% at 50% 52%, #000 30%, transparent 76%);
  mask-image: radial-gradient(ellipse 68% 72% at 50% 52%, #000 30%, transparent 76%);
}
.hero { isolation: isolate; }
.hero > .container,
.hero .capability-strip,
.hero .hero-mock-wrap { position: relative; z-index: 1; }

/* Inner-page headers: the same ridge, cropped and drifting off the right edge */
.page-header { position: relative; overflow: hidden; }
.page-header::before {
  content: '';
  position: absolute;
  inset: -70% -8% auto -8%;
  height: 300%;
  background: url('/assets/topo-ridge.svg') no-repeat 74% 42% / 1100px auto;
  opacity: 0.115;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%);
  mask-image: linear-gradient(90deg, transparent, #000 55%);
}
.page-header > .container { position: relative; z-index: 1; }

/* CTA band: contours in white, over a dolerite column rhythm */
.cta-band { position: relative; overflow: hidden; }
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/assets/topo-ridge-light.svg');
  background-repeat: no-repeat;
  background-position: 50% 58%;
  background-size: 1700px auto;
  opacity: 0.16;
  pointer-events: none;
}
.cta-band::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.060) 0 1px,
    transparent 1px 27px,
    rgba(255,255,255,0.032) 27px 28px,
    transparent 28px 46px,
    rgba(255,255,255,0.048) 46px 47px,
    transparent 47px 79px
  );
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 70%);
  mask-image: linear-gradient(180deg, transparent, #000 70%);
}
.cta-band > .container { position: relative; z-index: 1; }

/* Footer: the ridge settling out, barely there */
.footer { position: relative; overflow: hidden; }
.footer::before {
  content: '';
  position: absolute;
  inset: auto -6% -46% -6%;
  height: 190%;
  background: url('/assets/topo-ridge.svg') no-repeat 22% 84% / 1200px auto;
  opacity: 0.08;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 65%);
  mask-image: linear-gradient(180deg, transparent, #000 65%);
}
.footer > .container { position: relative; z-index: 1; }

@media (max-width: 720px) {
  .topo { background-size: 1000px auto; opacity: 0.11; }
  .page-header::before { background-size: 900px auto; }
  .cta-band::before { background-size: 1150px auto; }
}

/* ---------- Illustrative-data note under the hero mockup ---------- */
.mock-note {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-inline: auto;
  padding-inline: 24px;
  margin-top: 18px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--muted-2);
}
@media (max-width: 620px) { .mock-note { text-align: left; } }

/* ---------- Article byline ---------- */
.post-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 0 0 26px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  color: var(--muted-2);
}
.post-byline a { color: var(--sky); font-weight: 500; text-decoration: none; }
.post-byline a:hover { text-decoration: underline; }
.post-byline .sep { opacity: 0.45; }
