:root {
  --bg: #f4f4f0;
  --bg-subtle: #ecece6;
  --bg-placeholder: #e4e5de;
  --surface: #ffffff;
  --ink: #0e1411;
  --ink-dark: #0e1411;
  --ink-secondary: #3a403c;
  --ink-muted: #545a55;
  --border: #d6d7d0;
  --border-subtle: #e2e3dc;

  /* Accent options from design props: #E31C51 (default), #C0123F, #0E1411 */
  --accent: #e31c51;
  --accent-hover: #c0123f;
  --mint: #1ce3ae;
  --mint-dark: #13b88b;

  --dark-surface: #172019;
  --dark-border: #2e3531;
  --dark-text: #c9cdc7;
  --dark-text-muted: #9aa19b;
  --dark-link: #e4e6e1;

  --rack-bg: #1e2723;
  --rack-border: #34403a;
  --rack-screw: #56625c;
  --rack-net-border: #3a4640;
  --rack-net-sub: #b9beb8;
  --rack-port-bg: #2c3732;
  --rack-empty-border: #4a5650;
  --rack-empty-bg: #19211d;

  /* Text-only variants (swap in dark mode where the base colour lacks contrast) */
  --accent-text: #c0123f;
  --mint-text: #1ce3ae;
  --navy: #2e3a8c;

  /* Form fields & dashed outlines */
  --field: #f9f9f6;
  --field-line: #8d938e;
  --dash: #c9cbc3;

  /* Theme toggle glass */
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(14, 20, 17, 0.12);
  --glass-shadow: 0 4px 16px rgba(14, 20, 17, 0.08);

  --container-max: 1200px;
  color-scheme: light;
}

/* Dark theme — tokens from design/Dark-Main.dc.html (.theme-dark) */
:root[data-theme="dark"] {
  --bg: #0e1411; /* paper */
  --bg-subtle: #151d19; /* strip */
  --bg-placeholder: #232d28; /* placeholder */
  --surface: #172019; /* card */
  --ink: #f4f4f0;
  --ink-dark: #0e1411;
  --ink-secondary: #c9cdc7; /* body */
  --ink-muted: #9aa19b; /* muted */
  --border: #2e3531; /* line */
  --border-subtle: #26302b; /* line-soft */

  /* Inverted sections (background: var(--ink)) become light */
  --dark-surface: #ffffff; /* card-inv */
  --dark-border: #d6d7d0; /* line-inv */
  --dark-text: #3a403c; /* body-inv */
  --dark-text-muted: #545a55; /* muted-inv */
  --dark-link: #1e2723; /* link-inv */

  --accent-text: #ff6b90; /* crimson-text */
  --mint-text: #0b7a5c;
  --navy: #8c98f2;

  --field: #1e2723;
  --field-line: #6a756f;
  --dash: #4a5650;

  --glass-bg: rgba(23, 32, 25, 0.55);
  --glass-border: rgba(244, 244, 240, 0.14);
  --glass-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);

  color-scheme: dark;
}

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  box-shadow: var(--glass-shadow);
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
  transition:
    transform 0.15s ease,
    background-color 0.2s ease;
}

.theme-toggle:hover {
  transform: scale(1.06);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Lato", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}

a {
  color: var(--ink);
}

a:hover {
  color: var(--accent-text);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  padding-top: 12px;
  padding-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  min-height: 44px;
}

.brand-link:hover {
  color: var(--ink);
}

.brand-wordmark {
  font-weight: 900;
  font-size: 21px;
  letter-spacing: -0.01em;
}

.brand-labs {
  color: var(--accent-text);
}

.brand-tld {
  font-weight: 400;
  color: var(--ink-muted);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
}

.nav-cta {
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
}

.nav-cta:hover {
  color: var(--bg);
  opacity: 0.9;
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.mobile-menu {
  padding: 4px 20px 16px;
  display: flex;
  flex-direction: column;
  font-size: 17px;
  font-weight: 700;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a {
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-menu .mobile-cta {
  margin-top: 14px;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 18px;
  min-height: 48px;
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.mobile-menu .mobile-cta:hover {
  color: var(--bg);
  opacity: 0.9;
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
    margin-left: auto;
  }

  .theme-toggle {
    margin-left: 0;
  }

  .menu-btn,
  .mobile-menu {
    display: none;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding-top: clamp(36px, 7vw, 80px);
  padding-bottom: clamp(36px, 7vw, 80px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}

.hero-copy {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.hero-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(36px, 8vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  margin: 0;
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.6;
  color: var(--ink-secondary);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

.btn-primary {
  text-decoration: none;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  padding: 12px 20px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  flex: 1 1 auto;
  max-width: 280px;
}

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

.btn-secondary {
  text-decoration: none;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  padding: 12px 20px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex: 1 1 auto;
  max-width: 220px;
}

/* ==========================================================================
   Hero Stack Visual (Server Rack)
   ========================================================================== */

.hero-visual {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.rack {
  width: 100%;
  max-width: 480px;
  background: var(--rack-bg);
  border-radius: 16px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: inset 0 0 0 1px var(--rack-border);
}

.rack-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--dark-text-muted);
}

.rack-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rack-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
}

.rack-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rack-screw {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rack-screw);
  flex: none;
}

.rack-unit {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
}

.rack-leds {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: none;
}

.rack-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.rack-unit-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rack-unit-title {
  font-weight: 900;
  font-size: 16px;
}

.rack-unit-sub {
  font-size: 12px;
}

.rack-vents {
  width: 44px;
  height: 24px;
  flex: none;
  border-radius: 3px;
}

.rack-unit--ai {
  background: var(--bg);
  color: var(--ink);
}

.rack-unit--ai .rack-led {
  background: var(--mint-dark);
}

.rack-unit--ai .rack-unit-sub {
  color: var(--ink-secondary);
}

.rack-unit--ai .rack-vents {
  background-image: repeating-linear-gradient(
    90deg,
    rgba(14, 20, 17, 0.28) 0 2px,
    transparent 2px 6px
  );
}

.rack-unit--orchestration {
  background: var(--mint);
  color: var(--ink-dark);
}

.rack-unit--orchestration .rack-led {
  background: var(--ink);
}

.rack-unit--orchestration .rack-vents {
  background-image: repeating-linear-gradient(
    90deg,
    rgba(14, 20, 17, 0.3) 0 2px,
    transparent 2px 6px
  );
}

.rack-unit--network {
  background: var(--ink);
  color: var(--bg);
  box-shadow: inset 0 0 0 1px var(--rack-net-border);
}

.rack-unit--network .rack-led {
  background: var(--mint);
}

.rack-unit--network .rack-unit-sub {
  color: var(--rack-net-sub);
}

.rack-ports {
  display: flex;
  gap: 4px;
  flex: none;
}

.rack-port {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--rack-port-bg);
  box-shadow: inset 0 0 0 1px var(--rack-screw);
}

.rack-unit--compute {
  background: var(--accent);
  color: var(--bg);
}

.rack-unit--compute .rack-led {
  background: #ffffff;
}

.rack-unit--compute .rack-vents {
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.35) 0 2px,
    transparent 2px 6px
  );
}

.rack-empty-slot {
  flex: 1;
  min-width: 0;
  height: 58px;
  border: 1.5px dashed var(--rack-empty-border);
  border-radius: 8px;
  background: var(--rack-empty-bg);
}

/* ==========================================================================
   Trust Strip
   ========================================================================== */

.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}

.trust-inner {
  padding-top: 16px;
  padding-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
}

.trust-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.trust-logo {
  font-weight: 700;
  font-size: 16px;
  color: var(--ink-muted);
}

/* ==========================================================================
   Shared Section Typography
   ========================================================================== */

.section-heading {
  margin: 0;
  font-weight: 900;
  font-size: clamp(28px, 5.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   Services
   ========================================================================== */

.services-section {
  padding-top: clamp(40px, 7vw, 88px);
  padding-bottom: clamp(40px, 7vw, 88px);
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 40px);
}

.services-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px 24px;
}

.services-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 640px;
}

.services-intro {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-secondary);
  max-width: 420px;
}

.practices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 16px;
}

.practice-card {
  padding: clamp(20px, 4vw, 32px);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.practice-card--dark {
  background: var(--ink);
  color: var(--bg);
}

.practice-card--light {
  background: var(--surface);
  border: 1px solid var(--border);
}

.practice-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.practice-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.practice-card--dark .practice-tag {
  color: var(--mint-text);
}

.practice-card--light .practice-tag {
  color: var(--accent-text);
}

.practice-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(24px, 4.5vw, 32px);
  letter-spacing: -0.01em;
}

.practice-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.practice-card--dark .practice-desc {
  color: var(--dark-text);
}

.practice-card--light .practice-desc {
  color: var(--ink-secondary);
}

.practice-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.practice-card--dark .practice-list {
  border-top: 1px solid var(--dark-border);
}

.practice-card--light .practice-list {
  border-top: 1px solid var(--border-subtle);
}

.practice-item {
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.practice-card--dark .practice-item {
  border-bottom: 1px solid var(--dark-border);
}

.practice-card--light .practice-item {
  border-bottom: 1px solid var(--border-subtle);
}

.practice-item-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.practice-item-title {
  font-weight: 700;
  font-size: 16px;
}

.practice-item-desc {
  font-size: 14px;
  line-height: 1.5;
}

.practice-card--dark .practice-item-desc {
  color: var(--dark-text);
}

.practice-card--light .practice-item-desc {
  color: var(--ink-secondary);
}

.practice-code {
  font-size: 13px;
}

.practice-card--dark .practice-code {
  color: var(--mint-text);
}

.practice-card--light .practice-code {
  color: var(--accent-text);
}

.practice-link {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.practice-card--dark .practice-link {
  color: var(--bg);
}

.practice-card--dark .practice-link:hover {
  color: var(--mint-text);
}

.practice-card--light .practice-link {
  color: var(--ink);
}

/* ==========================================================================
   Approach
   ========================================================================== */

.approach-section {
  background: var(--ink);
  color: var(--bg);
}

.approach-inner {
  padding-top: clamp(40px, 7vw, 88px);
  padding-bottom: clamp(40px, 7vw, 88px);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 4vw, 36px);
}

.approach-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 720px;
}

.approach-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 12px;
}

.approach-step {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
}

.approach-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--mint-text);
}

.approach-step-title {
  margin: 0;
  font-weight: 900;
  font-size: 22px;
}

.approach-step-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--dark-text);
}

/* ==========================================================================
   Work / Projects
   ========================================================================== */

.work-section {
  padding-top: clamp(40px, 7vw, 88px);
  padding-bottom: clamp(40px, 7vw, 88px);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 4vw, 36px);
}

.work-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px 24px;
}

.work-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.work-all-link {
  font-weight: 700;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-image {
  height: 180px;
  background: var(--bg-placeholder);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--ink-muted);
  overflow: hidden;
}

.project-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-text);
}

.project-title {
  margin: 0;
  font-weight: 900;
  font-size: 20px;
  line-height: 1.25;
}

.project-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-secondary);
}

/* ==========================================================================
   Sectors
   ========================================================================== */

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

.sectors-inner {
  padding-top: clamp(40px, 7vw, 88px);
  padding-bottom: clamp(40px, 7vw, 88px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 48px);
}

.sectors-header {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sectors-grid {
  flex: 2 1 480px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 12px;
}

.sector-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sector-title {
  margin: 0;
  font-weight: 900;
  font-size: 19px;
}

.sector-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-secondary);
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */

.cta-section {
  padding: 0 20px clamp(40px, 7vw, 88px);
}

.cta-card {
  max-width: 1160px;
  margin: 0 auto;
  background: var(--accent);
  color: #ffffff;
  border-radius: 16px;
  padding: clamp(24px, 5vw, 56px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.cta-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(26px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 700px;
}

.cta-btn {
  text-decoration: none;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  font-size: 16px;
  padding: 12px 22px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
}

.cta-btn:hover {
  color: #ffffff;
  opacity: 0.92;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: var(--dark-text);
}

.footer-inner {
  padding-top: clamp(36px, 6vw, 64px);
  padding-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand {
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 22px;
  color: var(--bg);
}

.footer-brand-labs {
  color: var(--mint-text);
}

.footer-brand-tld {
  font-weight: 400;
  color: var(--dark-text-muted);
}

.footer-tagline {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px 40px;
  flex: 2 1 420px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--dark-text-muted);
}

.footer-col a {
  color: var(--dark-link);
  text-decoration: none;
  padding: 6px 0;
}

.footer-col a:hover {
  color: var(--mint-text);
}

.footer-bottom {
  border-top: 1px solid var(--dark-border);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  font-size: 13px;
  color: var(--dark-text-muted);
}

.footer-legal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-legal a {
  color: var(--dark-text-muted);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--mint-text);
}

/* ==========================================================================
   Legal Pages (Privacy Policy & Terms of Use)
   ========================================================================== */

.legal-page {
  padding-top: clamp(36px, 6vw, 72px);
  padding-bottom: clamp(48px, 7vw, 88px);
}

.legal-card {
  max-width: 820px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(24px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.legal-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.legal-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.legal-meta {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.legal-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-section h2 {
  margin: 0;
  font-weight: 900;
  font-size: 20px;
  line-height: 1.3;
  color: var(--ink);
}

.legal-section p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-secondary);
}

.legal-section ul {
  margin: 4px 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.legal-section a {
  color: var(--accent-text);
  font-weight: 700;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.nav-links a[aria-current="page"],
.mobile-menu a[aria-current="page"] {
  color: var(--accent-text);
}

/* ==========================================================================
   Blog Index Page
   ========================================================================== */

.blog-hero {
  padding-top: clamp(32px, 6vw, 72px);
  padding-bottom: clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.blog-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(36px, 8vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.blog-subtitle {
  margin: 0;
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.6;
  color: var(--ink-secondary);
  max-width: 620px;
}

.blog-filters {
  padding-bottom: 20px;
}

.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.filter-pill {
  flex: none;
  font:
    700 14px "Lato",
    sans-serif;
  padding: 10px 16px;
  min-height: 44px;
  border-radius: 999px;
  cursor: pointer;
  border: 1.5px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
}

.filter-pill[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}

.featured-section {
  padding-bottom: 20px;
}

.featured-section[hidden] {
  display: none;
}

.featured-card {
  background: var(--ink);
  color: var(--bg);
  border-radius: 16px;
  padding: clamp(20px, 4vw, 36px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
}

.featured-copy {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
}

.featured-badge {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--ink);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.featured-date {
  color: var(--rack-net-sub);
}

.featured-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(26px, 5vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.featured-excerpt {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-text);
}

.featured-link {
  align-self: flex-start;
  color: var(--bg);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.featured-link:hover {
  color: var(--mint-text);
}

.featured-diagram {
  flex: 1 1 260px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--rack-bg);
  border-radius: 12px;
  padding: 10px;
  box-shadow: inset 0 0 0 1px var(--rack-border);
}

.diagram-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 900;
}

.diagram-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.diagram-step--1 {
  background: var(--bg);
  color: var(--ink);
}

.diagram-step--1 .diagram-dot {
  background: var(--mint-dark);
}

.diagram-step--2 {
  background: var(--mint);
  color: var(--ink);
}

.diagram-step--2 .diagram-dot {
  background: var(--ink);
}

.diagram-step--3 {
  background: var(--ink);
  color: var(--bg);
  box-shadow: inset 0 0 0 1px var(--rack-net-border);
}

.diagram-step--3 .diagram-dot {
  background: var(--mint);
}

.diagram-step--4 {
  background: var(--accent);
  color: #ffffff;
}

.diagram-step--4 .diagram-dot {
  background: #ffffff;
}

.posts-section {
  padding-bottom: clamp(40px, 7vw, 80px);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 16px;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-card[hidden] {
  display: none;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}

.post-tag {
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.post-tag--infra {
  background: var(--ink);
  color: var(--bg);
}

.post-tag--security {
  background: #fce4eb;
  color: #9e0e33;
}

.post-tag--ai {
  background: #c9f7ea;
  color: #0b5c46;
}

.post-tag--runbooks {
  background: #e4e6f7;
  color: var(--navy);
}

.post-read-time {
  color: var(--ink-muted);
}

.post-title {
  margin: 0;
  font-weight: 900;
  font-size: 20px;
  line-height: 1.25;
}

.post-excerpt {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-secondary);
}

.post-footer {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-muted);
}

.post-read-link {
  font-weight: 700;
  color: var(--ink);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.posts-empty {
  margin: 0;
  padding: 24px;
  text-align: center;
  color: var(--ink-muted);
  background: var(--surface);
  border: 1px dashed var(--dash);
  border-radius: 14px;
}

.posts-empty[hidden] {
  display: none;
}

.newsletter-section {
  padding: 0 20px clamp(40px, 7vw, 80px);
}

.newsletter-card {
  max-width: 1160px;
  margin: 0 auto;
  background: var(--accent);
  color: #ffffff;
  border-radius: 16px;
  padding: clamp(22px, 5vw, 48px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.newsletter-copy {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.newsletter-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(24px, 4.5vw, 36px);
  line-height: 1.1;
}

.newsletter-desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.newsletter-thanks {
  margin: 0;
  flex: 1 1 300px;
  font-size: 17px;
  font-weight: 700;
}

.newsletter-thanks[hidden] {
  display: none;
}

.newsletter-form {
  flex: 1 1 320px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

.newsletter-form[hidden] {
  display: none;
}

.newsletter-label {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
}

.newsletter-input {
  font:
    400 16px "Lato",
    sans-serif;
  padding: 10px 12px;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.newsletter-btn {
  background: var(--ink);
  color: var(--bg);
  border: 0;
  font:
    700 16px "Lato",
    sans-serif;
  padding: 12px 22px;
  min-height: 48px;
  border-radius: 8px;
  cursor: pointer;
}

/* ==========================================================================
   Blog Post Template Page
   ========================================================================== */

.article-page {
  padding-top: clamp(28px, 5vw, 56px);
  padding-bottom: clamp(48px, 7vw, 88px);
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  min-height: 44px;
  margin-bottom: 16px;
}

.article-card {
  max-width: 820px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(24px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.article-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
}

.article-date {
  color: var(--ink-muted);
}

.article-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.article-lead {
  margin: 0;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  color: var(--ink-secondary);
}

.article-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.article-body h2 {
  margin: 8px 0 0;
  font-weight: 900;
  font-size: 22px;
  line-height: 1.3;
  color: var(--ink);
}

.article-body p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-secondary);
}

.article-body ul,
.article-body ol {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-secondary);
}

.article-body pre {
  margin: 0;
  padding: 16px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 10px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.5;
}

.article-callout {
  padding: 16px 18px;
  background: var(--bg);
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}

/* ==========================================================================
   Contact Page
   ========================================================================== */

.back-home-link {
  font-size: 15px;
  font-weight: 700;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.contact-main {
  padding-top: clamp(28px, 6vw, 72px);
  padding-bottom: clamp(40px, 7vw, 88px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 56px);
}

.contact-info-col {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(32px, 7vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.contact-intro {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.contact-details-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px 18px;
  margin-top: 6px;
}

.contact-detail-row {
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-detail-row + .contact-detail-row {
  border-top: 1px solid var(--border-subtle);
}

.contact-detail-label {
  font-size: 12px;
  color: var(--ink-muted);
}

.contact-detail-email {
  font-size: 17px;
  font-weight: 700;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.contact-detail-office {
  font-size: 17px;
  font-weight: 500;
}

.contact-actions-col {
  flex: 1.4 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.booking-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(18px, 4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.booking-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.booking-icon {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
  background: var(--mint);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.booking-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(22px, 4.5vw, 28px);
}

.booking-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.booking-placeholder {
  min-height: 320px;
  border: 1.5px dashed var(--dash);
  border-radius: 10px;
  background: var(--field);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.booking-placeholder-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-secondary);
}

.booking-placeholder-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 300px;
}

.booking-btn {
  text-decoration: none;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  padding: 12px 22px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  align-self: flex-start;
}

.booking-btn:hover {
  color: #ffffff;
  background: var(--accent-hover);
}

.contact-form-heading {
  margin: 8px 0 -6px;
  font-weight: 900;
  font-size: 20px;
}

.contact-sent-card {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(24px, 5vw, 44px);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-sent-card[hidden] {
  display: none;
}

.contact-sent-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(26px, 5vw, 34px);
  letter-spacing: -0.01em;
}

.contact-sent-desc {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--dark-text);
}

.contact-reset-btn {
  align-self: flex-start;
  margin-top: 8px;
  background: transparent;
  color: var(--bg);
  border: 1.5px solid var(--bg);
  font:
    700 16px "Lato",
    sans-serif;
  padding: 12px 20px;
  min-height: 48px;
  border-radius: 8px;
  cursor: pointer;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(18px, 4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form[hidden] {
  display: none;
}

.contact-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-legend {
  padding: 0;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 15px;
}

.need-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.need-pill {
  font:
    700 15px "Lato",
    sans-serif;
  padding: 10px 16px;
  min-height: 44px;
  border-radius: 8px;
  cursor: pointer;
  border: 1.5px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
}

.need-pill[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
}

.field-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
  font-size: 15px;
}

.field-input,
.field-select,
.field-textarea {
  font:
    400 16px "Lato",
    sans-serif;
  padding: 10px 12px;
  border: 1px solid var(--field-line);
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
}

.field-input,
.field-select {
  min-height: 48px;
}

.field-textarea {
  line-height: 1.5;
  resize: vertical;
}

.contact-form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.contact-privacy-note {
  font-size: 13px;
  color: var(--ink-muted);
}

.contact-submit-btn {
  background: var(--accent);
  color: #ffffff;
  border: 0;
  font:
    700 16px "Lato",
    sans-serif;
  padding: 12px 22px;
  min-height: 48px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 200px;
  max-width: 280px;
}

.contact-submit-btn:hover {
  background: var(--accent-hover);
}

/* ==========================================================================
   404 Page
   ========================================================================== */

.nf-main {
  padding-top: clamp(32px, 7vw, 88px);
  padding-bottom: clamp(48px, 8vw, 96px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.nf-visual {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.rack--nf {
  max-width: 440px;
}

.rack-status-dot--alert {
  background: var(--accent);
}

.nf-row--dim {
  opacity: 0.45;
}

.nf-unit {
  flex: 1;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
}

.nf-unit-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}

.nf-unit-bar {
  flex: 1;
  height: 8px;
  border-radius: 4px;
}

.nf-unit--light {
  background: var(--bg);
}
.nf-unit--light .nf-unit-led {
  background: var(--mint-dark);
}
.nf-unit--light .nf-unit-bar {
  background: var(--dash);
}

.nf-unit--mint {
  background: var(--mint);
}
.nf-unit--mint .nf-unit-led {
  background: var(--ink);
}
.nf-unit--mint .nf-unit-bar {
  background: #13a57e;
}

.nf-unit--dark {
  background: var(--ink);
  box-shadow: inset 0 0 0 1px var(--rack-net-border);
}
.nf-unit--dark .nf-unit-led {
  background: var(--mint);
}
.nf-unit--dark .nf-unit-bar {
  background: var(--rack-port-bg);
}

.nf-unit--accent {
  background: var(--accent);
}
.nf-unit--accent .nf-unit-led {
  background: #ffffff;
}
.nf-unit--accent .nf-unit-bar {
  background: #f25c83;
}

.nf-empty-slot {
  flex: 1;
  height: 72px;
  border: 2px dashed var(--accent);
  border-radius: 8px;
  background: var(--rack-empty-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #ffffff;
}

.nf-empty-code {
  font-weight: 900;
  font-size: 30px;
  letter-spacing: 0.04em;
}

.nf-empty-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #f49ab2;
}

.nf-copy {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nf-badge {
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fce4eb;
  color: #9e0e33;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.nf-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(36px, 8vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.nf-desc {
  margin: 0;
  font-size: clamp(16px, 2.2vw, 18px);
  line-height: 1.6;
  color: var(--ink-secondary);
  max-width: 520px;
}

.nf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

.nf-btn {
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  padding: 12px 22px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
}

.nf-btn--primary {
  background: var(--accent);
  color: #ffffff;
}

.nf-btn--primary:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

.nf-btn--secondary {
  border: 1.5px solid var(--ink);
  color: var(--ink);
}

.nf-links {
  margin-top: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px 18px;
}

.nf-links-title {
  display: block;
  padding: 12px 0 4px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

.nf-links a {
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  font-weight: 700;
}

.nf-links a + a {
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Founders Page
   ========================================================================== */

.founders-hero {
  padding-top: clamp(32px, 6vw, 72px);
  padding-bottom: clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.founders-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(36px, 8vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.founders-subtitle {
  margin: 0;
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.6;
  color: var(--ink-secondary);
  max-width: 640px;
}

.founders-section {
  padding-bottom: clamp(40px, 7vw, 80px);
}

.founders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 16px;
}

.founder-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.founder-photo {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.founder-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 40px;
}

.founder-photo-label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.founder-photo--dark {
  background: var(--ink);
}
.founder-photo--dark .founder-avatar {
  background: var(--accent);
  color: #ffffff;
}
.founder-photo--dark .founder-photo-label {
  background: var(--rack-bg);
  color: var(--rack-net-sub);
}

.founder-photo--mint {
  background: var(--mint);
}
.founder-photo--mint .founder-avatar {
  background: var(--ink);
  color: var(--bg);
}
.founder-photo--mint .founder-photo-label {
  background: var(--ink);
  color: var(--bg);
}

.founder-body {
  padding: clamp(18px, 4vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.founder-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.founder-name {
  margin: 0;
  font-weight: 900;
  font-size: clamp(24px, 5vw, 30px);
}

.founder-role {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-text);
}

.founder-bio {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.founder-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.founder-skill {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
}

.founder-socials {
  display: flex;
  gap: 8px;
  padding-top: 4px;
}

.founder-social {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.founder-social:hover {
  border-color: var(--accent-text);
}

.story-section {
  background: var(--ink);
  color: var(--bg);
}

.story-inner {
  padding-top: clamp(40px, 7vw, 80px);
  padding-bottom: clamp(40px, 7vw, 80px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 48px);
}

.story-title {
  margin: 0;
  flex: 1 1 280px;
  font-weight: 900;
  font-size: clamp(28px, 5.5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.story-body {
  flex: 2 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark-text);
}

.story-body p {
  margin: 0;
}

.principles-section {
  padding-top: clamp(40px, 7vw, 80px);
  padding-bottom: clamp(40px, 7vw, 80px);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 4vw, 32px);
}

.principles-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(28px, 5.5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px;
}

.principle-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.principle-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.principle-icon--accent {
  background: var(--accent);
  color: #ffffff;
}
.principle-icon--mint {
  background: var(--mint);
  color: var(--ink);
}
.principle-icon--dark {
  background: var(--ink);
  color: var(--bg);
}

.principle-title {
  margin: 0;
  font-weight: 900;
  font-size: 20px;
}

.principle-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-secondary);
}

.cta-card--compact {
  padding: clamp(22px, 5vw, 48px);
}

.cta-card--compact .cta-title {
  font-size: clamp(24px, 4.5vw, 40px);
  letter-spacing: normal;
  max-width: 640px;
}

/* Cookie consent panel — bottom-left so it clears the Chatwoot bubble */
.cookie-consent {
  position: fixed;
  left: 16px;
  right: 96px;
  bottom: 16px;
  z-index: 1000;
  max-width: 440px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  background: var(--surface);
  color: var(--ink-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(14, 20, 17, 0.16);
}

.cookie-consent[hidden],
.cookie-consent [hidden] {
  display: none;
}

.cookie-consent-title {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  color: var(--ink);
}

.cookie-consent-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.cookie-consent-text a {
  color: var(--accent-text);
  text-decoration: underline;
}

.cookie-consent-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.cookie-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
  cursor: pointer;
}

.cookie-option input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}

.cookie-option input:disabled {
  cursor: not-allowed;
}

.cookie-option strong {
  display: block;
  color: var(--ink);
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Accept and reject share one style so neither is nudged */
.cookie-btn {
  flex: 1 1 auto;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.cookie-btn--secondary {
  background: transparent;
  color: var(--ink);
}

.cookie-btn:hover {
  opacity: 0.9;
}

.cookie-btn:focus-visible,
.footer-cookie-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* "Cookie settings" in the footer looks like the neighbouring links */
.footer-cookie-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--dark-text-muted);
  font: inherit;
  cursor: pointer;
}

.footer-cookie-btn:hover {
  color: var(--mint-text);
}
