/* ==========================================================================
   Chitek Media Homelab — Cinematic Product Page Stylesheet
   Self-hosted Inter, alternating section tones, prefers-color-scheme aware,
   Bento service layout, device-framed gallery, responsive 360px–2560px.
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2');
}

:root {
  /* Single Accent Palette (Teal #2dd4bf -> Sky #0ea5e9) */
  --accent-teal: #2dd4bf;
  --accent-sky: #0ea5e9;
  --accent-grad: linear-gradient(135deg, #2dd4bf 0%, #0ea5e9 100%);
  --focus-ring: #0ea5e9;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Geometry & Depth */
  --container-max: 1120px;
  --header-height: 52px;
  --radius-sm: 14px;
  --radius-card: 24px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-soft: 0 30px 80px rgba(0, 0, 0, 0.25);
  --shadow-card-dark: 0 24px 60px rgba(0, 0, 0, 0.32);
  --shadow-card-light: 0 20px 50px rgba(0, 0, 0, 0.06);

  /* Default (Dark Mode) Header & Global Canvas */
  --page-bg: #07070b;
  --page-text: #f5f5f7;
  --nav-bg-fallback: #0b0b10;
  --nav-bg-glass: rgba(11, 11, 16, 0.78);
  --nav-border: rgba(255, 255, 255, 0.10);
  --nav-text: #f5f5f7;
  --nav-text-muted: rgba(245, 245, 247, 0.68);
}

/* Light Mode Global Overrides */
@media (prefers-color-scheme: light) {
  :root {
    --page-bg: #ffffff;
    --page-text: #111114;
    --nav-bg-fallback: #fbfbfd;
    --nav-bg-glass: rgba(251, 251, 253, 0.82);
    --nav-border: rgba(0, 0, 0, 0.09);
    --nav-text: #111114;
    --nav-text-muted: rgba(17, 17, 20, 0.65);
  }
}

/* Section Rhythm Tokens:
   In dark mode: .section--dark is near-black (#07070b / #0b0b0f), .section--alt is soft light (#f5f5f7).
   In light mode: .section--dark inverts to crisp white (#ffffff), .section--alt stays soft light (#f5f5f7). */
.section--dark {
  --sec-bg: #08080c;
  --sec-surface: #13131b;
  --sec-surface-hover: #191924;
  --sec-surface-subtle: rgba(255, 255, 255, 0.04);
  --sec-border: rgba(255, 255, 255, 0.10);
  --sec-border-strong: rgba(255, 255, 255, 0.18);
  --sec-text: #f5f5f7;
  --sec-text-secondary: rgba(245, 245, 247, 0.66);
  --sec-link: #2dd4bf;
  --sec-link-hover: #5eead4;
  --sec-chip-bg: rgba(255, 255, 255, 0.07);
  --sec-chip-text: #e4e4eb;
  --sec-shadow: var(--shadow-card-dark);
  --sec-input-bg: #111118;
  background-color: var(--sec-bg);
  color: var(--sec-text);
}

@media (prefers-color-scheme: light) {
  .section--dark {
    --sec-bg: #ffffff;
    --sec-surface: #f5f5f7;
    --sec-surface-hover: #ececf0;
    --sec-surface-subtle: rgba(0, 0, 0, 0.035);
    --sec-border: rgba(0, 0, 0, 0.09);
    --sec-border-strong: rgba(0, 0, 0, 0.18);
    --sec-text: #111114;
    --sec-text-secondary: rgba(17, 17, 20, 0.65);
    --sec-link: #0369a1;
    --sec-link-hover: #0284c7;
    --sec-chip-bg: rgba(0, 0, 0, 0.06);
    --sec-chip-text: #27272a;
    --sec-shadow: var(--shadow-card-light);
    --sec-input-bg: #f5f5f7;
  }
}

.section--alt {
  --sec-bg: #f5f5f7;
  --sec-surface: #ffffff;
  --sec-surface-hover: #ffffff;
  --sec-surface-subtle: rgba(0, 0, 0, 0.04);
  --sec-border: rgba(0, 0, 0, 0.09);
  --sec-border-strong: rgba(0, 0, 0, 0.18);
  --sec-text: #111114;
  --sec-text-secondary: rgba(17, 17, 20, 0.65);
  --sec-link: #0369a1;
  --sec-link-hover: #0284c7;
  --sec-chip-bg: rgba(0, 0, 0, 0.055);
  --sec-chip-text: #27272a;
  --sec-shadow: var(--shadow-card-light);
  --sec-input-bg: #ffffff;
  background-color: var(--sec-bg);
  color: var(--sec-text);
}

/* ==========================================================================
   Reset & Base Hygiene
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  background-color: var(--page-bg);
  color: var(--page-text);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--page-bg);
  color: var(--page-text);
  overflow-x: clip;
}

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

a {
  color: var(--sec-link, #0ea5e9);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--sec-link-hover, #2dd4bf);
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 1000;
  background: var(--accent-grad);
  color: #04131a;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.skip-link:focus {
  top: 12px;
}

/* Mode Switching Visibility Rules */
html[data-mode="simple"] .mode-only-tech {
  display: none !important;
}

html[data-mode="tech"] .mode-only-simple {
  display: none !important;
}

/* Scroll Reveal Animations (Principle 7) */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1),
      transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
  }

  html.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Layout Container (Principle 3: 1120px content width) */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Sticky Translucent Navigation (Principles 6 & 9: 48-56px tall, frosted glass)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-height);
  background-color: var(--nav-bg-fallback);
  background-color: var(--nav-bg-glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--nav-border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--nav-text);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.025em;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--nav-text);
  opacity: 0.85;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  color: var(--nav-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color 0.18s ease;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Mobile Menu Button (hidden above 720px) */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--nav-border);
  background: transparent;
  color: var(--nav-text);
  cursor: pointer;
}

.mobile-menu-btn[aria-expanded="true"] .menu-icon--bars {
  display: none;
}

.mobile-menu-btn[aria-expanded="false"] .menu-icon--close {
  display: none;
}

.mobile-nav-drawer {
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background-color: var(--nav-bg-fallback);
  background-color: var(--nav-bg-glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--nav-border);
  padding: 12px 20px 20px;
  box-shadow: var(--shadow-soft);
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  color: var(--nav-text);
  font-size: 0.98rem;
  font-weight: 600;
}

/* ==========================================================================
   Prominent Two-State Segmented Control (Simple / Technical)
   ========================================================================== */
.mode-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--sec-surface-subtle, rgba(255, 255, 255, 0.08));
  border: 1px solid var(--sec-border-strong, rgba(255, 255, 255, 0.16));
  gap: 2px;
}

.mode-switch--nav {
  background: rgba(128, 128, 138, 0.14);
  border-color: var(--nav-border);
}

.mode-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--sec-text-secondary, var(--nav-text-muted));
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.mode-switch--nav .mode-btn {
  min-height: 38px;
  padding: 6px 14px;
  font-size: 0.8rem;
  color: var(--nav-text-muted);
}

/* Ensure >= 44px tap area on nav mode buttons via invisible hit expansion */
.mode-switch--nav .mode-btn {
  position: relative;
}
.mode-switch--nav .mode-btn::after {
  content: '';
  position: absolute;
  inset: -4px 0;
}

.mode-btn:hover {
  color: var(--sec-text, var(--nav-text));
}

.mode-btn.is-active {
  background: var(--accent-grad);
  color: #03141c;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.28);
}

.mode-switch--hero {
  padding: 4px;
}

.mode-switch--hero .mode-btn {
  min-height: 46px;
  padding: 0 28px;
  font-size: 0.96rem;
}

/* ==========================================================================
   Generic Sections & Typography (Principles 1, 2, 3, 4)
   ========================================================================== */
.section {
  padding: clamp(5rem, 12vw, 10rem) 0;
  position: relative;
}

.section-header {
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
  max-width: 780px;
}

.section-header--split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.section-header--split > div:first-child {
  max-width: 720px;
}

.section-kicker {
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sec-text-secondary);
}

.section-title {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: var(--sec-text);
}

.section-subtitle {
  margin: 0;
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  max-width: 62ch;
  color: var(--sec-text-secondary);
}

/* Single-Word Headline Gradient (Principle 4) */
.gradient-word {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   Section 1: Hero (Principles 1, 2, 4, 7, 11)
   ========================================================================== */
.hero-section {
  padding-top: clamp(4.5rem, 10vw, 8.5rem);
  padding-bottom: clamp(5rem, 11vw, 9rem);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -180px;
  left: 50%;
  width: min(920px, 120vw);
  height: 520px;
  transform: translate3d(-50%, var(--glow-y, 0px), 0);
  background: radial-gradient(ellipse at center, rgba(45, 212, 191, 0.14) 0%, rgba(14, 165, 233, 0.08) 42%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.hero-container {
  max-width: 1180px;
}

.hero-copy {
  text-align: center;
  max-width: 980px;
  margin: 0 auto clamp(3.5rem, 7vw, 5.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow {
  margin: 0 0 20px;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--sec-text-secondary);
}

.eyebrow-dot {
  opacity: 0.5;
}

.hero-title {
  margin: 0 0 24px;
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--sec-text);
}

.hero-pitch {
  margin: 0 0 36px;
  font-size: clamp(1.125rem, 1.8vw, 1.25rem);
  line-height: 1.5;
  max-width: 58ch;
  color: var(--sec-text-secondary);
}

.hero-lens {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
  padding: 20px 28px;
  border-radius: var(--radius-card);
  background: var(--sec-surface);
  border: 1px solid var(--sec-border);
  box-shadow: var(--sec-shadow);
  max-width: 560px;
  width: 100%;
}

.hero-lens-caption {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.45;
  color: var(--sec-text-secondary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: var(--radius-pill);
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent-grad);
  color: #03141c;
}

.btn-primary:hover {
  color: #03141c;
  opacity: 0.92;
}

.btn-ghost {
  background: var(--sec-surface);
  color: var(--sec-text);
  border-color: var(--sec-border-strong);
}

.btn-ghost:hover {
  color: var(--sec-text);
  border-color: var(--sec-text);
}

/* Hero Stats Strip */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.stat-card {
  background: var(--sec-surface);
  border: 1px solid var(--sec-border);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--sec-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-value {
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
  color: var(--sec-text);
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 12px;
}

.stat-unit {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--sec-text-secondary);
}

.stat-label {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--sec-text);
}

.stat-meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--sec-text-secondary);
}

/* ==========================================================================
   Section 2: The Network (Servers Bento + Traffic Routing)
   ========================================================================== */
.servers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.server-card {
  background: var(--sec-surface);
  border: 1px solid var(--sec-border);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--sec-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.2s ease;
}

/* First server card (or Chitek flagship) spans 2 columns on 3-col desktop so 7 cards fill 3x3 (2+1+1+1+1+1+1 = 8 tracks -> or first two span 1 and 7th spans 3, or 1st and 3rd span 2 -> 2+1+2+1+1+1+1 = 9 tracks = 3 full rows!) */
@media (min-width: 981px) {
  .server-card:nth-child(1),
  .server-card:nth-child(3) {
    grid-column: span 2;
  }
}

.server-card:hover {
  transform: translateY(-2px);
  border-color: var(--sec-border-strong);
}

.server-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.server-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.server-glyph {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--sec-chip-bg);
  border: 1px solid var(--sec-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: var(--sec-text);
  flex-shrink: 0;
}

.server-name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--sec-text);
}

.server-model {
  font-size: 0.85rem;
  color: var(--sec-text-secondary);
  margin-top: 2px;
}

.server-service-count {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--sec-border);
  background: var(--sec-chip-bg);
  color: var(--sec-text);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

button.server-service-count:hover {
  border-color: var(--sec-border-strong);
}

.server-role-text {
  margin: 12px 0 0;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--sec-text);
}

.server-specs {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--sec-border);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.spec-item {
  margin: 0;
}

.spec-item--wide {
  grid-column: 1 / -1;
}

.spec-dt {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sec-text-secondary);
  margin-bottom: 3px;
}

.spec-dd {
  margin: 0;
  font-size: 0.9rem;
  color: var(--sec-text);
  line-height: 1.4;
}

/* Topology Card */
.topology-card {
  background: var(--sec-surface);
  border: 1px solid var(--sec-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--sec-shadow);
}

.topology-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--sec-border);
}

.topology-kicker {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sec-text-secondary);
}

.topology-title {
  margin: 0;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.topology-summary {
  margin: 0;
  max-width: 54ch;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--sec-text-secondary);
}

.topology-lanes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.topo-node {
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--sec-bg);
  border: 1px solid var(--sec-border);
}

.topo-step {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sec-text-secondary);
  margin-bottom: 8px;
}

.topo-node-title {
  margin: 0 0 10px;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.topo-node-desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--sec-text-secondary);
}

.topo-host-pills {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topo-host-pills li {
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--sec-surface);
  border: 1px solid var(--sec-border);
  color: var(--sec-text);
}

.topo-host-pills li span {
  color: var(--sec-text-secondary);
}

/* ==========================================================================
   Section 3: What Runs Here (Controls + Bento Service Grid)
   ========================================================================== */
.services-mode-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.services-mode-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sec-text-secondary);
}

.services-toolbar {
  background: var(--sec-surface);
  border: 1px solid var(--sec-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: var(--sec-shadow);
}

.toolbar-top {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.search-field {
  flex: 1 1 320px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 16px;
  color: var(--sec-text-secondary);
  pointer-events: none;
}

.search-input {
  width: 100%;
  min-height: 48px;
  padding: 0 84px 0 46px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--sec-border);
  background: var(--sec-input-bg);
  color: var(--sec-text);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.search-input::placeholder {
  color: var(--sec-text-secondary);
}

.search-input:focus {
  border-color: var(--focus-ring);
}

.search-kbd {
  position: absolute;
  right: 16px;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--sec-border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--sec-text-secondary);
  pointer-events: none;
}

.search-clear {
  position: absolute;
  right: 6px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 0;
  background: var(--sec-chip-bg);
  color: var(--sec-text);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.toolbar-filters-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.host-select {
  min-height: 48px;
  padding: 0 36px 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--sec-border);
  background-color: var(--sec-input-bg);
  color: var(--sec-text);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.toggle-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--sec-border);
  background: var(--sec-input-bg);
  color: var(--sec-text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.toggle-chip:hover {
  color: var(--sec-text);
  border-color: var(--sec-border-strong);
}

.toggle-chip[aria-pressed="true"] {
  background: var(--sec-text);
  color: var(--sec-bg);
  border-color: var(--sec-text);
}

/* Category Filter Rail */
.category-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--sec-border);
}

.cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--sec-border);
  background: transparent;
  color: var(--sec-text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.cat-btn:hover {
  color: var(--sec-text);
  border-color: var(--sec-border-strong);
}

.cat-btn.is-active {
  background: var(--sec-text);
  color: var(--sec-bg);
  border-color: var(--sec-text);
}

.cat-count {
  font-size: 0.76rem;
  opacity: 0.72;
}

.toolbar-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  flex-wrap: wrap;
}

.services-count {
  margin: 0;
  font-size: 0.85rem;
  color: var(--sec-text-secondary);
}

.reset-link {
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--sec-link);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

/* Bento Service Grid (Principle 10: Uniform square-ish tiles + Span-2 Featured tiles) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 24px;
}

.service-card {
  background: var(--sec-surface);
  border: 1px solid var(--sec-border);
  border-radius: var(--radius-card);
  padding: 24px;
  min-height: 236px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--sec-shadow);
  transition:
    transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 0.22s ease,
    background-color 0.22s ease;
  position: relative;
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-3px);
  border-color: var(--sec-border-strong);
  background: var(--sec-surface-hover);
}

/* Featured tiles span 2 columns in the bento grid */
.service-card--featured {
  grid-column: span 2;
  padding: 28px;
}

.service-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.service-icon-wrap,
.monogram-tile {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--sec-chip-bg);
  border: 1px solid var(--sec-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-card--featured .service-icon-wrap,
.service-card--featured .monogram-tile {
  width: 58px;
  height: 58px;
  border-radius: 16px;
}

.service-icon-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.service-card--featured .service-icon-img {
  width: 36px;
  height: 36px;
}

.monogram-tile {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--sec-text);
}

.service-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.host-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--sec-chip-bg);
  border: 1px solid var(--sec-border);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--sec-text-secondary);
}

.host-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-teal);
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--sec-chip-bg);
  border: 1px solid var(--sec-border-strong);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--sec-text);
}

.service-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.service-name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--sec-text);
}

.service-card--featured .service-name {
  font-size: 1.35rem;
}

.service-blurb {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--sec-text-secondary);
}

.service-card--featured .service-blurb {
  font-size: 1.02rem;
  max-width: 54ch;
}

/* On regular square-ish tiles, detail footer subtly highlights on hover/focus */
.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--sec-border);
  font-size: 0.78rem;
  color: var(--sec-text-secondary);
  opacity: 0.78;
  transition: opacity 0.22s ease;
}

.service-card:hover .service-card-footer,
.service-card:focus-within .service-card-footer,
.service-card--featured .service-card-footer {
  opacity: 1;
}

.service-cat-tag {
  font-weight: 500;
}

.service-public-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  margin: -10px 0;
  padding: 0 6px;
  font-weight: 600;
  color: var(--sec-link);
}

.service-private-tag {
  color: var(--sec-text-secondary);
}

.empty-state {
  text-align: center;
  padding: 64px 24px;
  background: var(--sec-surface);
  border: 1px solid var(--sec-border);
  border-radius: var(--radius-lg);
}

.empty-title {
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.empty-desc {
  margin: 0 0 24px;
  color: var(--sec-text-secondary);
}

/* ==========================================================================
   Section 4: Learning & School
   ========================================================================== */
.education-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.edu-card {
  background: var(--sec-surface);
  border: 1px solid var(--sec-border);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--sec-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.edu-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.edu-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.edu-title {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.edu-kind-badge {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--sec-chip-bg);
  border: 1px solid var(--sec-border);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--sec-text-secondary);
  white-space: nowrap;
}

.edu-desc {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--sec-text-secondary);
  flex: 1;
}

.edu-footer {
  padding-top: 14px;
  border-top: 1px solid var(--sec-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.stack-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stack-pill {
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--sec-chip-bg);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--sec-text-secondary);
}

.principles-panel {
  background: var(--sec-surface);
  border: 1px solid var(--sec-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--sec-shadow);
}

.principles-header {
  margin-bottom: 24px;
}

.principles-badge {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sec-text-secondary);
}

.principles-title {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.principles-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 28px;
}

.principle-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--sec-text-secondary);
}

.principle-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sec-chip-bg);
  border: 1px solid var(--sec-border);
  color: var(--sec-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   Section 5: Smart Home
   ========================================================================== */
.sh-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.sh-stat-tile {
  background: var(--sec-surface);
  border: 1px solid var(--sec-border);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--sec-shadow);
}

.sh-stat-val {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 8px;
  color: var(--sec-text);
}

.sh-stat-lbl {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--sec-text-secondary);
}

.sh-subblock {
  margin-bottom: 48px;
}

.subblock-title {
  margin: 0 0 24px;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.sh-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

@media (min-width: 981px) {
  .sh-highlight-card:nth-child(1) {
    grid-column: span 2;
  }
}

.sh-highlight-card {
  background: var(--sec-surface);
  border: 1px solid var(--sec-border);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--sec-shadow);
}

.sh-highlight-title {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sh-highlight-desc {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--sec-text-secondary);
}

.sh-areas-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.sh-area-card {
  background: var(--sec-surface);
  border: 1px solid var(--sec-border);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--sec-shadow);
}

.sh-area-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.sh-area-emoji {
  font-size: 1.35rem;
}

.sh-area-name {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.sh-area-things {
  margin: 0;
  padding-left: 18px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--sec-text-secondary);
}

.sh-integrations-card {
  background: var(--sec-surface);
  border: 1px solid var(--sec-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--sec-shadow);
}

.sh-integrations-header {
  margin-bottom: 20px;
}

.sh-integrations-kicker {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sec-text-secondary);
}

.sh-integrations-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.integrations-cloud {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.integration-chip {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--sec-chip-bg);
  border: 1px solid var(--sec-border);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--sec-text);
}

/* ==========================================================================
   Section 6: See It Live — Device-Framed Screenshots (Principle 8)
   One per row on desktop, rounded device bezel, soft large shadow, lightbox
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(3rem, 6vw, 4.5rem);
  max-width: 980px;
  margin: 0 auto;
}

.shot-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--sec-text);
}

.device-frame {
  background: #141419;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 14px 14px 16px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.shot-card:hover .device-frame,
.shot-card:focus-visible .device-frame {
  transform: translateY(-4px);
}

.device-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 8px 12px;
}

.device-dots {
  display: inline-flex;
  gap: 6px;
}

.device-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.device-bar-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: rgba(245, 245, 247, 0.55);
}

/* Floating chip with backdrop-filter & solid fallback (Principle 6) */
.shot-zoom-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background-color: #202028;
  background-color: rgba(32, 32, 42, 0.76);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f5f5f7;
  font-size: 0.75rem;
  font-weight: 600;
}

.shot-thumb-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #09090d;
  aspect-ratio: 16 / 10;
}

.shot-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-body {
  padding: 22px 6px 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.shot-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--sec-text);
}

.shot-caption {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  max-width: 60ch;
  color: var(--sec-text-secondary);
}

/* ==========================================================================
   Lightbox Modal
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 8, 0.88);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1240px;
  background: #121218;
  color: #f5f5f7;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 20px 24px 24px;
  box-shadow: var(--shadow-soft);
}

.lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.lightbox-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lightbox-counter {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(245, 245, 247, 0.65);
}

.lightbox-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.lightbox-btn,
.lightbox-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #f5f5f7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.lightbox-stage {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lightbox-figure {
  margin: 0;
  flex: 1;
  text-align: center;
}

.lightbox-img {
  max-height: 74vh;
  width: auto;
  margin: 0 auto;
  border-radius: 14px;
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 14px;
  font-size: 0.95rem;
  color: rgba(245, 245, 247, 0.72);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 56px 0;
  border-top: 1px solid var(--sec-border);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-brand-col {
  max-width: 480px;
}

.footer-brand-name {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--sec-text);
}

.footer-note {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--sec-text-secondary);
}

.footer-credits-col {
  text-align: right;
}

.footer-icons-credit {
  margin: 0 0 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--sec-text);
}

.footer-builders {
  margin: 0;
  font-size: 0.84rem;
  color: var(--sec-text-secondary);
}

/* ==========================================================================
   Responsive Breakpoints (360px to 2560px, no horizontal scroll)
   ========================================================================== */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .topology-lanes {
    grid-template-columns: 1fr;
  }

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

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

  .sh-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

/* Navigation collapse at <= 720px (Principle 9) */
@media (max-width: 720px) {
  .site-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .services-mode-box {
    align-items: flex-start;
  }

  .principles-list {
    grid-template-columns: 1fr;
  }

  .footer-credits-col {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 18px;
  }

  .stats-grid,
  .servers-grid,
  .services-grid,
  .education-grid,
  .sh-highlights-grid,
  .sh-areas-grid {
    grid-template-columns: 1fr;
  }

  .service-card--featured {
    grid-column: span 1;
  }

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

  .hero-lens {
    padding: 18px;
  }

  .mode-switch--hero {
    width: 100%;
  }

  .mode-switch--hero .mode-btn {
    flex: 1;
    padding: 0 16px;
  }

  .toolbar-filters-right {
    width: 100%;
  }

  .host-select-wrap {
    flex: 1 1 100%;
  }

  .host-select {
    width: 100%;
  }

  .toggle-chip {
    flex: 1;
    justify-content: center;
  }

  .lightbox-stage {
    position: relative;
  }

  .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  .lightbox-nav--prev {
    left: 8px;
  }

  .lightbox-nav--next {
    right: 8px;
  }
}

@media (max-width: 400px) {
  .container {
    padding: 0 16px;
  }

  .brand {
    font-size: 0.94rem;
  }

  .mode-switch--nav .mode-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
}
