/* ==========================================================================
   Beastald — One-Page Scaffold
   Design tokens, mobile-first layout, no framework.
   Palette and rules locked per DESIGN_BRIEF.md / CTA_MAP.md / COPY_SPINE.md.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens (CSS custom properties)
   -------------------------------------------------------------------------- */
:root {
  /* Color palette (exact hex values, do not approximate) */
  --cyan-deep:        #0A2533;
  --aqua-pale:        #C8EEEA;
  --aqua-mist:        #E8F7F5;
  --cyan-muted:       #2E5260; /* Round 2: darkened from #345E6B for WCAG-AA safety (now ~7.6:1 on aqua-mist, AAA on aqua-pale). See audit_round_2_deploy/wcag_audit_v2.md. */
  --cyan-primary: #06B6D4;
  --aqua-secondary: #4ECDC4;
  --cyan-mid:         #144558;  /* one-step cyan-mid lift for primary button hover (subdued deepening within same hue family) */
  --color-white:      #FFFFFF;  /* helper: max contrast on deepest cyan (rarely used; see audit/round_3e_full_palette_overhaul.md) */
  --color-black:      #000000;  /* helper: max contrast on palest aqua (rarely used; see audit/round_3e_full_palette_overhaul.md) */


  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo,
    Consolas, monospace;

  /* Type scale (mobile defaults; desktop overrides under media query) */
  --fs-body: 1rem;          /* 16px mobile */
  --fs-small: 0.875rem;     /* 14px — Round 2 type-scale-lift (was 13px, F3 floor). */
  --fs-eyebrow: 0.8125rem;  /* 13px — Round 2 type-scale-lift (was 12px, F3 floor). */
  --fs-h4: 1.125rem;        /* 18px */
  --fs-h3: 1.375rem;        /* 22px */
  --fs-h2: 1.75rem;         /* 28px */
  --fs-h1: clamp(2.5rem, 8vw, 3.5rem); /* hero H1 mobile-first */

  --lh-body: 1.65;
  --lh-tight: 1.1;
  --lh-snug: 1.2;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Spacing scale */
  --space-1: 0.5rem;   /* 8px  — small */
  --space-2: 1rem;     /* 16px — medium */
  --space-3: 1.5rem;   /* 24px */
  --space-4: 2rem;     /* 32px — large */
  --space-5: 3rem;     /* 48px */
  --space-6: 4rem;     /* 64px — xl */
  --space-7: 6rem;     /* 96px */

  /* Layout */
  --max-content: 72rem; /* 1152px readable measure */
  --gutter: 1.25rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --sticky-header-h: 3.5rem;
  --mobile-bar-h: 3.75rem;

  /* Motion */
  --t-fast: 140ms;
  --t-base: 200ms;
  --ease: cubic-bezier(0.2, 0, 0.2, 1);

  /* Focus outline */
  --focus-ring: 0 0 0 3px var(--cyan-primary);
  --focus-offset: 2px;
}

/* Desktop type scale overrides */
@media (min-width: 768px) {
  :root {
    --fs-body: 1.125rem;     /* 18px desktop */
    --fs-h2: 2.25rem;        /* 36px */
    --fs-h1: clamp(3rem, 6vw, 5.75rem);
    --gutter: 2rem;
  }
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: auto; /* smooth scroll only when JS-enabled and motion allowed */
}

body {
  margin: 0;
  background-color: var(--aqua-pale);
  color: var(--cyan-muted);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-regular);
  overflow-x: hidden; /* hard guard against horizontal scroll */
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--cyan-deep);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease);
}

a:hover {
  text-decoration-color: var(--cyan-primary);
  color: var(--cyan-deep);
}

a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

button {
  font: inherit;
  cursor: pointer;
}

/* Visible keyboard focus on every interactive element */
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

/* Section scroll offset (per CTA_MAP §2) */
section[id] {
  scroll-margin-top: calc(var(--sticky-header-h) + 1rem);
}

@media (max-width: 767px) {
  section[id] {
    scroll-margin-top: 1rem;
  }
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-content);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--space-6);
}

@media (min-width: 768px) {
  .section {
    padding-block: var(--space-7);
  }
}

.section--ivory {
  background-color: var(--aqua-pale);
}

.section--paper {
  background-color: var(--aqua-mist);
}

.section--navy {
  background-color: var(--cyan-deep);
  color: var(--aqua-pale);
}

.section--navy :is(h1, h2, h3, h4) {
  color: var(--aqua-pale);
}

.section--navy a {
  color: var(--cyan-primary);
}

.section--navy a:hover {
  color: var(--aqua-mist);
}

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--cyan-deep);
  margin: 0 0 var(--space-2);
  line-height: var(--lh-tight);
  font-weight: var(--fw-bold);
}

h1 {
  font-size: var(--fs-h1);
  letter-spacing: -0.02em;
  line-height: 1.02;
}

h2 {
  font-size: var(--fs-h2);
  letter-spacing: -0.015em;
  line-height: var(--lh-snug);
  font-weight: var(--fw-semibold);
}

h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
}

h4 {
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
}

p {
  margin: 0 0 var(--space-2);
  max-width: 38rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-muted); /* FA-001 a11y: cyan-muted on aqua-pale/aqua-mist = 5.77:1/6.55:1 (was 2.88/3.17:1 with teal). See audit/round_3c_fix.md. */
  margin-bottom: var(--space-2);
}

.section--navy .eyebrow {
  color: var(--aqua-mist);
}

.section-lead {
  font-size: var(--fs-h4);
  color: var(--cyan-muted);
  margin-bottom: var(--space-4);
  max-width: 42rem;
}

.section--navy .section-lead {
  color: var(--aqua-pale);
}

/* --------------------------------------------------------------------------
   5. Header / brand
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background-color: var(--aqua-pale);
  border-bottom: 1px solid rgba(10, 37, 51, 0.08);
  backdrop-filter: saturate(120%);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: var(--sticky-header-h);
  padding-block: var(--space-1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--cyan-deep);
  font-weight: var(--fw-bold);
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.brand img {
  display: block;
}

.brand .site-logo {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.brand .site-wordmark {
  width: 120px;
  height: 24px;
  flex: 0 0 auto;
}

.brand:hover {
  color: var(--cyan-deep);
  text-decoration-color: transparent;
}

.site-nav {
  display: none;
}

@media (min-width: 768px) {
  .site-nav {
    display: flex;
    align-items: center;
    gap: var(--space-3);
  }
}

.site-nav a {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--cyan-deep);
  text-decoration: none;
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: border-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease);
}

.site-nav a:hover {
  border-bottom-color: var(--cyan-primary);
  color: var(--cyan-deep);
}

.site-nav a[aria-current="true"] {
  border-bottom-color: var(--cyan-primary);
}

/* .site-header .header-cta (not .header-cta alone): bumps specificity to (0,2,0) so it beats .btn (0,1,0) cascade at mobile. Round 2b fix. */
.site-header .header-cta {
  display: none;
}

@media (min-width: 768px) {
  .site-header .header-cta {
    display: inline-flex;
    align-items: center;
    margin-left: var(--space-2);
  }
}

/* Mobile menu toggle */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(10, 37, 51, 0.15);
  border-radius: var(--radius-sm);
  color: var(--cyan-deep);
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(10, 37, 51, 0.08);
  background-color: var(--aqua-mist);
  padding: var(--space-2) var(--gutter);
}

.mobile-menu[data-open="true"] {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.mobile-menu a {
  display: block;
  padding: var(--space-1) 0;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--cyan-deep);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  padding-block: var(--space-5) var(--space-6);
}

@media (min-width: 768px) {
  .hero {
    padding-block: var(--space-6);
  }
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  align-items: start;
}

@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.12fr) minmax(23rem, 0.88fr);
    gap: var(--space-6);
    align-items: center;
  }
}

.hero__copy h1 {
  margin-bottom: var(--space-2);
}

.hero__sub {
  font-size: var(--fs-h4);
  color: var(--cyan-muted);
  margin-bottom: var(--space-3);
  max-width: 36rem;
}

.hero__support {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--cyan-muted);
  margin-top: var(--space-3);
}

.hero__visual {
  width: min(100%, 36rem);
  height: clamp(14rem, 60vw, 19rem);
  justify-self: center;
  background-color: var(--aqua-mist);
  border: 1px solid rgba(10, 37, 51, 0.10); /* Round 2: lifted from 0.06 to 0.10 to match Concept B POC frame visibility */
  border-radius: var(--radius-md);
  padding: 1.5rem; /* Round 2: lifted from 0.75rem to 1.5rem to give the architecture SVG room to breathe */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__visual svg {
  width: 100%;
  height: 100%;
  max-width: none;
}

@media (min-width: 768px) {
  .hero__visual {
    padding: var(--space-2);
  }
}

@media (min-width: 1024px) {
  .hero__visual {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
  }
}

/* --------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease),
    background-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease);
}

.btn--primary {
  background-color: var(--cyan-deep);
  color: var(--aqua-pale);
  border-color: var(--cyan-deep);
}

.btn--primary:hover {
  background-color: var(--cyan-mid); /* one-step cyan-mid lift from --cyan-deep; hsl ~194° in cyan-band */
  color: var(--aqua-pale);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0);
  background-color: #04101a;
}

.btn--secondary {
  background-color: transparent;
  color: var(--cyan-deep);
  border-color: var(--cyan-deep);
}

.btn--secondary:hover {
  background-color: var(--aqua-mist);
  color: var(--cyan-deep);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--secondary:active {
  transform: translateY(0);
}

.section--navy .btn--primary {
  background-color: var(--cyan-primary);
  color: var(--cyan-deep);
  border-color: var(--cyan-primary);
}

.section--navy .btn--primary:hover {
  background-color: #5cb0b3;
  color: var(--cyan-deep);
}

.section--navy .btn--secondary {
  background-color: transparent;
  color: var(--aqua-pale);
  border-color: var(--aqua-pale);
}

.section--navy .btn--secondary:hover {
  background-color: rgba(200, 238, 234, 0.08);
  color: var(--aqua-pale);
}

/* a11y (carried from step-001 round-3c-fix): .contact-card sits inside .section--navy but the card itself is aqua-mist. The rule above would set aqua-pale text on transparent bg, which inside the card becomes aqua-pale-on-aqua-mist ≈ 1.05:1 FAIL. Override so the "Call Edgar directly" link inside the card uses cyan-deep. Class name .section--navy preserved from step-001 for diff stability; see audit/round_3c_fix.md and audit/round_3e_full_palette_overhaul.md. */
.contact-card .btn--secondary {
  color: var(--cyan-deep);
  border-color: var(--cyan-deep);
}

.contact-card .btn--secondary:hover {
  color: var(--cyan-deep);
  background-color: rgba(10, 37, 51, 0.04);
  border-color: var(--cyan-deep);
}

.inline-cta {
  margin-top: var(--space-4);
}

/* --------------------------------------------------------------------------
   8. Capability / step / application / differentiator lists
   -------------------------------------------------------------------------- */
.modules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .modules {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }
}

@media (min-width: 1280px) {
  .modules {
    grid-template-columns: repeat(3, 1fr);
  }
}

.module {
  background-color: var(--aqua-mist);
  border: 1px solid rgba(10, 37, 51, 0.06);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  align-self: stretch; /* Round 2: explicit equal-height-cards fix (spec reference: .capability). Grid default would stretch anyway, but setting explicitly avoids future overrides. */
}

.module__index {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-medium);
  letter-spacing: 0.08em;
  color: var(--cyan-muted); /* FA-001 a11y: cyan-muted on aqua-mist = 6.55:1 (was 3.17:1 with teal). See audit/round_3c_fix.md. */
  margin-bottom: var(--space-1);
}

.module__title {
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  color: var(--cyan-deep);
  margin-bottom: var(--space-1);
  line-height: var(--lh-snug);
}

.module__body {
  margin: 0;
  color: var(--cyan-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   B.4.c: Applications editorial workflow rows
   Three illustrative use cases replace the former six-card .modules grid.
   Full-width separators, alternating desktop composition, and process labels
   create a rhythm break without adding colors, tokens, or card chrome.
   -------------------------------------------------------------------------- */
.applications__qualifier {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--cyan-deep);
}

.applications__qualifier::before {
  content: "";
  width: var(--space-4);
  height: 2px;
  flex: 0 0 auto;
  background-color: var(--cyan-primary);
}

.use-cases {
  list-style: none;
  margin: 0;
  padding: 0;
  border-block: 1px solid rgba(10, 37, 51, 0.12);
}

.use-case {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  padding-block: var(--space-4);
}

.use-case + .use-case {
  border-top: 1px solid rgba(10, 37, 51, 0.12);
}

.use-case__intro {
  border-left: 2px solid var(--cyan-primary);
  padding-left: var(--space-2);
}

.use-case__title {
  margin-bottom: var(--space-1);
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
}

.use-case__lead {
  margin: 0;
  color: var(--cyan-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.use-case__stages {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin: 0;
}

.use-case__stage {
  padding-top: var(--space-2);
  border-top: 1px solid rgba(10, 37, 51, 0.12);
}

.use-case__stage dt {
  margin-bottom: var(--space-1);
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-deep);
}

.use-case__stage dd {
  margin: 0;
  color: var(--cyan-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Round 2: Applications spacing-only fix.
   - Increase section vertical padding (--space-6 → --space-7 = 4rem → 6rem).
   - Increase gap between use-case cards (--space-4 → --space-5 = 2rem → 3rem) via margin-top on siblings.
   - Remove alternating 2-column layout (caused perceived density).
   - Keep single-column intro | stages layout across all viewports. */
#applications.section.section--paper {
  padding-block: var(--space-7);
}

.use-case + .use-case {
  margin-top: var(--space-5); /* Round 2: --space-5 = 3rem gap between use-case rows */
  border-top: 1px solid rgba(10, 37, 51, 0.12); /* existing separator preserved */
}

@media (min-width: 768px) {
  .use-case {
    padding-block: var(--space-5);
  }

  .use-case__stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  /* Single-column intro | stages for every use-case (alternating layout removed) */
  .use-case {
    grid-template-columns: minmax(14rem, 0.72fr) minmax(0, 1.4fr);
    gap: var(--space-6);
    align-items: start;
  }
}

/* --------------------------------------------------------------------------
   9. Process (numbered steps)
   -------------------------------------------------------------------------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  counter-reset: step;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1280px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  background-color: var(--aqua-mist);
  border: 1px solid rgba(10, 37, 51, 0.06);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  position: relative;
}

.step__index {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-medium);
  letter-spacing: 0.08em;
  color: var(--cyan-muted); /* FA-001 a11y (same root cause as .module__index, missed by brief scope): cyan-muted on aqua-mist = 6.55:1 (was 3.17:1 with teal). See audit/round_3c_fix.md. */
  margin-bottom: var(--space-1);
}

.step__title {
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  color: var(--cyan-deep);
  margin-bottom: var(--space-1);
}

.step__body {
  margin: 0;
  color: var(--cyan-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   10. Why-Beastald: differentiators + trust lines
   -------------------------------------------------------------------------- */
/* R1-CGPT-001: reset ol default counter to match .modules/.steps/.trust-lines (Round 1 fix, see audit/round_1_review_fixes.md) */
.differentiators {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
  .differentiators {
    grid-template-columns: repeat(3, 1fr);
  }
}

.differentiator {
  border-left: 2px solid var(--cyan-primary);
  padding-left: var(--space-2);
}

.differentiator__title {
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  color: var(--cyan-deep);
  margin-bottom: var(--space-1);
}

.differentiator__body {
  margin: 0;
  color: var(--cyan-muted);
  line-height: 1.6;
}

.trust-lines {
  list-style: none;
  margin: 0 0 var(--space-3);
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

@media (min-width: 768px) {
  .trust-lines {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trust-line {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--cyan-muted);
}

.trust-line::before {
  content: "";
  flex: 0 0 auto;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.55rem;
  border-radius: 50%;
  background-color: var(--aqua-secondary);
}

.trust-line--no-dot::before {
  display: none;
}

/* --------------------------------------------------------------------------
   11. Contact block
   -------------------------------------------------------------------------- */
.contact-card {
  background-color: var(--aqua-mist);
  border: 1px solid rgba(10, 37, 51, 0.06);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  color: var(--cyan-deep); /* a11y: contact-card is aqua-mist inside a cyan-deep section; override inherited aqua-pale from .section--cyan-deep so text inside card reads. See audit/round_3c_fix.md. */
}

@media (min-width: 768px) {
  .contact-card {
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-4);
  }
}

.contact-card__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.contact-card__details p {
  margin: 0;
}

.contact-card__email,
.contact-card__phone,
.contact-card__phone-link {
  font-family: var(--font-mono);
  font-size: var(--fs-h4);
  color: var(--cyan-deep);
  text-decoration: none;
  word-break: break-word;
}

/* FA-001 a11y: .section--navy a (specificity 0,1,1) was beating .contact-card__email (0,1,0) and forcing old-teal text on the aqua-mist contact card (3.17:1 FAIL). Bump specificity so the email renders cyan-deep (12.67:1 PASS). See audit/round_3c_fix.md. */
/* R3-M3-001 (audit history): cover .contact-card__phone-link so the B.3.f phone detail link inherits cyan-deep + IBM Plex Mono from the same selector group. The step-001 teal accent on aqua-mist measured ~3.17:1 (fails WCAG AA 4.5:1) and mismatched the cyan-deep email link above. Same specificity bump applied — cyan-deep on aqua-mist = 12.67:1 PASS. See audit/round_3_review_fixes.md. */
.section--navy .contact-card__email,
.section--navy .contact-card__phone-link {
  color: var(--cyan-deep);
}

.contact-card__email:hover,
.contact-card__phone:hover,
.contact-card__phone-link:hover {
  text-decoration: underline;
  text-decoration-color: var(--cyan-primary);
}

.contact-card__support {
  margin-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--aqua-pale); /* a11y: this element sits in the cyan-deep contact section (bg #0A2533), not inside .contact-card. cyan-muted on cyan-deep would fail; aqua-pale on cyan-deep = 11.2:1 PASS. See audit/round_3c_fix.md. */
}

.placeholder-token {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: var(--cyan-muted);
  background-color: rgba(52, 94, 107, 0.08);
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   12. Sticky mobile CTA bar
   -------------------------------------------------------------------------- */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background-color: var(--cyan-deep);
  padding: 0.5rem var(--gutter) calc(0.5rem + env(safe-area-inset-bottom, 0));
  border-top: 1px solid rgba(200, 238, 234, 0.12);
  transform: translateY(0);
  transition: transform var(--t-base) var(--ease);
}

.mobile-sticky-bar[data-visible="false"] {
  transform: translateY(110%);
}

/* STICKY-CSS-POLISH: mobile sticky CTA bar visible-state CSS (Round 3 fix). See audit/round_3_sticky_css_polish.md */
.mobile-sticky-bar[data-visible="true"] {
  display: block;
}

.mobile-sticky-bar .btn {
  width: 100%;
  background-color: var(--cyan-primary);
  color: var(--cyan-deep);
  border-color: var(--cyan-primary);
}

.mobile-sticky-bar .btn:hover {
  background-color: #5cb0b3;
  color: var(--cyan-deep);
  text-decoration: none;
}

/* Only show sticky bar on viewports small enough to need it */
@media (max-width: 767px) {
  body.has-sticky-bar {
    padding-bottom: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom, 0));
  }
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding-block: var(--space-4);
  background-color: var(--aqua-pale);
  border-top: 1px solid rgba(10, 37, 51, 0.06);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--cyan-muted);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: var(--space-5);
    align-items: start;
  }
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.footer__col--left {
  border-right: 0;
}

@media (min-width: 768px) {
  .footer__col--left {
    border-right: 1px solid rgba(10, 37, 51, 0.08);
    padding-right: var(--space-4);
  }
}

.footer__brand {
  margin: 0;
  font-weight: var(--fw-semibold);
  color: var(--cyan-deep);
  letter-spacing: 0.04em;
}

.footer__copy {
  margin: 0;
  color: var(--cyan-muted);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-1);
}

.footer__legal a {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
}

.footer__name {
  margin: 0;
  font-weight: var(--fw-semibold);
  color: var(--cyan-deep);
}

.footer__location {
  margin: 0;
  color: var(--cyan-muted);
}

.footer__blurb {
  margin: var(--space-1) 0 var(--space-2);
  color: var(--cyan-muted);
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  line-height: 1.55;
  max-width: 32rem;
}

.footer__contact {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--cyan-muted);
}

.footer__contact a {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--cyan-deep);
  display: inline-block;
  min-height: 44px;
  padding-block: 0.5rem;
  text-decoration: underline;
  text-decoration-color: transparent;
}

.site-footer a {
  color: var(--cyan-muted);
  text-decoration: underline;
  text-decoration-color: transparent;
}

.site-footer a:hover {
  text-decoration-color: var(--cyan-primary);
  color: var(--cyan-deep);
}

/* B.4.d: Footer 2-column layout + founder/location, see audit/b4d_footer_company.md */

/* --------------------------------------------------------------------------
   14. Concept B hero styles — precise architecture sketch
   (Round 2 add. Class names match the SVG markup in index.html. All values
   reference design tokens for token-discipline parity with the rest of the page.)
   -------------------------------------------------------------------------- */
.arch-svg {
  font-family: var(--font-mono);
}

.arch-frame {
  fill: none;
  stroke: var(--cyan-deep);
  stroke-width: 1;
}

.arch-block {
  fill: var(--color-white);
  stroke: var(--cyan-deep);
  stroke-width: 1.25;
}

.arch-block--accent {
  fill: var(--cyan-deep);
  stroke: var(--cyan-deep);
  stroke-width: 1.25;
}

.arch-flow {
  fill: none;
  stroke: var(--cyan-primary);
  stroke-width: 1.5;
}

.arch-flow--return {
  fill: none;
  stroke: var(--cyan-muted);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.arch-label {
  font-size: 11px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
  fill: var(--cyan-deep);
}

.arch-label--light {
  fill: var(--aqua-pale);
}

.arch-tick {
  stroke: var(--cyan-deep);
  stroke-width: 1;
}

.arch-meta {
  font-size: 9px;
  letter-spacing: 0.08em;
  fill: var(--cyan-muted);
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.arch-corner {
  fill: var(--cyan-primary);
}

/* --------------------------------------------------------------------------
   15. Founder slot — Master Edi photo placeholder (Round 2 add)
   Replaces the photo block that Concept C placed inside its own hero layout.
   Tasteful aqua-mist circle on cyan-deep border, 240×240 SVG with "MR" initials.
   Layout: 2-column on desktop (photo | copy), single column on mobile.
   -------------------------------------------------------------------------- */
.founder-section {
  /* Uses .section + .section--paper baseline; just tone down internal padding */
  padding-block: var(--space-6);
}

.founder-section__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  align-items: center;
  max-width: 56rem;
}

@media (min-width: 768px) {
  .founder-section__inner {
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--space-5);
  }
}

.founder-slot {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 2px solid var(--cyan-deep);
  background-color: var(--aqua-mist);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.founder-slot img {
  width: 100%;
  height: 100%;
  display: block;
}

.founder-section__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.founder-section__quote {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: var(--fw-medium);
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.45;
  color: var(--cyan-deep);
  max-width: 32rem;
}

.founder-section__attribution {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--cyan-muted);
  letter-spacing: 0.02em;
}

.founder-section__attribution strong {
  color: var(--cyan-deep);
  font-weight: var(--fw-semibold);
}

/* --------------------------------------------------------------------------
   16. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .mobile-sticky-bar {
    transition: none;
  }
}

/* Smooth scroll only when explicitly enabled by JS and motion is allowed */
html.js-smooth-scroll {
  scroll-behavior: smooth;
}

/* --------------------------------------------------------------------------
   15. Utility
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* R3-CGPT-001: skip link becomes visible on keyboard focus (Round 3 fix, WCAG 2.4.7 Focus Visible). See audit/round_3_review_fixes_chatgpt.md */
.visually-hidden:focus,
.visually-hidden:focus-visible {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1000;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  margin: 0;
  clip: auto;
  overflow: visible;
  white-space: normal;
  background-color: var(--cyan-deep);
  color: var(--aqua-mist);
  text-decoration: underline;
  border-radius: var(--radius-sm);
}
/* --------------------------------------------------------------------------
   B.4.a: Impressum + Datenschutzhinweis styling, see audit/b4a_impressum_meta_privacy.md
   Uses existing .container + .section + .section--ivory / .section--paper patterns;
   compact, cyan-deep-on-aqua-mist (step-001 baseline reused), mono labels for legal metadata. No new color tokens for step-002
   no design-language changes, no animations.
   -------------------------------------------------------------------------- */
.impressum-section__inner,
.datenschutz-section__inner {
  max-width: 42rem;
}

.impressum-section h2,
.datenschutz-section h2 {
  margin-bottom: var(--space-2);
}

.impressum-section__lead {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-muted);
  margin-bottom: var(--space-3);
}

.impressum-section p {
  margin: 0 0 var(--space-2);
  max-width: 38rem;
  line-height: 1.6;
}

.impressum-section address {
  font-style: normal;
  margin: 0 0 var(--space-3);
  line-height: 1.6;
  color: var(--cyan-deep);
}

.impressum-section a {
  color: var(--cyan-deep);
}

.impressum-section a:hover {
  text-decoration-color: var(--cyan-primary);
  color: var(--cyan-deep);
}

.datenschutz-section p {
  margin: 0 0 var(--space-2);
  max-width: 42rem;
  line-height: 1.6;
  color: var(--cyan-muted);
}

.datenschutz-section__stand {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--cyan-muted);
  margin-top: var(--space-3);
}

/* End B.4.a styling block */

/* B.4.c audit pointer: see audit/b4c_hero_applications.md */
/* Step-002 note: TEST VARIANT banner removed per Master Edi directive (2026-09-01). The T.1 strip, --test-banner-h token, and body/site-header banner-offset overrides have all been removed. See audit/round_3e_full_palette_overhaul.md. */
