:root {
  --ssh-bg: #0a0a0a;
  --ssh-panel: #121212;
  --ssh-panel-2: #181818;
  --ssh-line: #2b2b2b;
  --ssh-text: #f7f7f7;
  --ssh-muted: #b9b9b9;
  --ssh-gold: #facc15;
}

html { scroll-padding-top: 72px; }
body { overflow-x: hidden; }
body.site-nav-open { overflow: hidden; }

.ssh-header,
.ssh-footer {
  font-family: Inter, "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ssh-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--ssh-line);
  background: rgba(10, 10, 10, .96);
  color: var(--ssh-text);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.ssh-skip {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 1200;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ssh-gold);
  color: #111 !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
  transform: translateY(-150%);
}
.ssh-skip:focus { transform: translateY(0); }
.ssh-main-anchor { display: block; height: 0; scroll-margin-top: 72px; }

.ssh-inner {
  width: min(1140px, 100%);
  min-height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.ssh-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.015em;
  white-space: nowrap;
}
.ssh-brand svg { flex: 0 0 auto; }
.ssh-brand-accent { color: var(--ssh-gold); }
.ssh-brand-short { display: none; }

.ssh-desktop-nav {
  min-width: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13.5px;
}
.ssh-desktop-nav > a,
.ssh-desktop-nav summary {
  color: #c8c8c8 !important;
  text-decoration: none !important;
  cursor: pointer;
  white-space: nowrap;
}
.ssh-desktop-nav > a:hover,
.ssh-desktop-nav summary:hover,
.ssh-menu-group[open] > summary { color: var(--ssh-gold) !important; }
.ssh-menu-group { position: relative; }
.ssh-menu-group summary {
  list-style: none;
  min-height: 68px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.ssh-menu-group summary::-webkit-details-marker { display: none; }
.ssh-dropdown {
  position: absolute;
  top: calc(100% - 5px);
  left: -12px;
  width: max-content;
  min-width: 220px;
  padding: 7px;
  display: grid;
  gap: 2px;
  border: 1px solid var(--ssh-line);
  border-radius: 12px;
  background: var(--ssh-panel);
  box-shadow: 0 22px 52px rgba(0, 0, 0, .5);
}
.ssh-dropdown a {
  padding: 10px 12px;
  border-radius: 8px;
  color: #c8c8c8 !important;
  text-decoration: none !important;
  font-size: 13.5px;
}
.ssh-dropdown a:hover { color: var(--ssh-gold) !important; background: var(--ssh-panel-2); }

.ssh-actions { display: flex; align-items: center; gap: 10px; }
.ssh-language {
  display: inline-flex;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid #363636;
  border-radius: 9px;
}
.ssh-language a {
  min-width: 43px;
  min-height: 38px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9f9f9f !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.ssh-language a[aria-current="page"] { color: #111 !important; background: var(--ssh-gold); }
.ssh-book,
.ssh-drawer-cta {
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 9px;
  background: var(--ssh-gold);
  color: #111 !important;
  text-decoration: none !important;
  font-size: 13.5px;
  font-weight: 800;
  white-space: nowrap;
}
.ssh-book:hover,
.ssh-drawer-cta:hover { background: #fff; }
.ssh-burger {
  width: 42px;
  height: 42px;
  padding: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid #363636;
  border-radius: 9px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.ssh-burger svg { width: 21px; height: 21px; }
.ssh-burger .ssh-close-icon { display: none; }
.ssh-burger[aria-expanded="true"] .ssh-menu-icon { display: none; }
.ssh-burger[aria-expanded="true"] .ssh-close-icon { display: block; }

.ssh-backdrop,
.ssh-drawer { display: none; }

.ssh-footer {
  margin-top: 8px;
  padding: 40px 0 max(26px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--ssh-line);
  background: var(--ssh-bg);
  color: var(--ssh-muted);
}
body > section:has(+ .ssh-footer) { padding-bottom: 24px !important; }
.case-final-cta-section { padding-top: 48px !important; }
.cs-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
@media (min-width: 768px) {
  #featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
.ssh-footer-inner { width: min(1140px, 100%); margin: 0 auto; padding: 0 24px; }
.ssh-footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.ssh-footer .ssh-footer-col { min-height: 0 !important; margin: 0 !important; padding: 0 !important; }
.ssh-footer-col h2 {
  margin: 0 0 13px;
  color: var(--ssh-gold);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ssh-footer-col a {
  width: fit-content;
  padding: 5px 0;
  display: block;
  color: #bdbdbd !important;
  text-decoration: none !important;
  font-size: 13px;
  line-height: 1.45;
}
.ssh-footer-col a:hover { color: var(--ssh-gold) !important; }
.ssh-footer-meta {
  margin-top: 34px;
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--ssh-line);
}
.ssh-footer-brand { display: flex; align-items: center; gap: 9px; color: #f2f2f2; font-size: 14px; font-weight: 700; }
.ssh-footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.ssh-footer-links a { color: #bdbdbd !important; text-decoration: none !important; font-size: 13px; }
.ssh-footer-links a:hover { color: var(--ssh-gold) !important; }
.ssh-contact-short { display: none; }
.ssh-footer-copy { margin-top: 16px; color: #898989; font-size: 12px; line-height: 1.55; }

@media (max-width: 1040px) {
  .ssh-desktop-nav { display: none; }
  .ssh-actions { margin-left: auto; }
  .ssh-burger { display: inline-flex; }
  .ssh-backdrop {
    position: fixed;
    inset: 68px 0 0;
    z-index: -1;
    border: 0;
    background: rgba(0, 0, 0, .62);
    cursor: default;
  }
  .ssh-drawer {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100dvh - 68px);
    padding: 12px 24px max(24px, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    border-bottom: 1px solid var(--ssh-line);
    background: #0d0d0d;
  }
  .ssh-header.is-open .ssh-backdrop,
  .ssh-header.is-open .ssh-drawer { display: block; }
  .ssh-drawer-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
  .ssh-drawer-cta { min-height: 46px; }
  .ssh-drawer-cta.secondary { border: 1px solid #3a3a3a; background: transparent; color: #f4f4f4 !important; }
  .ssh-drawer details { border-top: 1px solid var(--ssh-line); }
  .ssh-drawer details:last-of-type { border-bottom: 1px solid var(--ssh-line); }
  .ssh-drawer summary {
    min-height: 50px;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #f2f2f2;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
  }
  .ssh-drawer summary::-webkit-details-marker { display: none; }
  .ssh-drawer summary::after { content: "+"; color: var(--ssh-gold); font-size: 20px; font-weight: 400; }
  .ssh-drawer details[open] summary::after { content: "−"; }
  .ssh-drawer-list { padding: 0 0 10px 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
  .ssh-drawer-list a,
  .ssh-drawer-direct a {
    min-height: 43px;
    display: flex;
    align-items: center;
    color: #bcbcbc !important;
    text-decoration: none !important;
    font-size: 13.5px;
  }
  .ssh-drawer-list a:hover,
  .ssh-drawer-direct a:hover { color: var(--ssh-gold) !important; }
  .ssh-drawer-direct { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding-top: 12px; }
  .ssh-drawer-direct a { justify-content: center; min-height: 42px; border: 1px solid var(--ssh-line); border-radius: 8px; }
}

@media (max-width: 820px) {
  .ssh-inner { min-height: 64px; padding: 0 20px; gap: 12px; }
  .ssh-backdrop { inset: 64px 0 0; }
  .ssh-drawer { max-height: calc(100dvh - 64px); padding-left: 20px; padding-right: 20px; }
  .ssh-book { min-height: 40px; padding: 0 12px; font-size: 12px; }
  .ssh-brand-full { display: none; }
  .ssh-brand-short { display: inline; }
  .ssh-language a { min-width: 42px; min-height: 40px; padding: 0 9px; }
  .ssh-burger { width: 42px; height: 42px; }
  .ssh-footer { margin-top: 16px; padding-top: 32px; }
  .ssh-footer-inner { padding: 0 20px; }
  .ssh-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 18px; }
  .ssh-footer-meta { margin-top: 26px; padding-top: 18px; align-items: flex-start; flex-direction: column; gap: 16px; }
  .ssh-footer-links {
    width: 100%;
    display: grid;
    grid-template-columns: 1.05fr 1.55fr 1fr;
    gap: 6px;
  }
  .ssh-footer-links a {
    min-width: 0;
    min-height: 40px;
    padding: 5px 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ssh-line);
    border-radius: 9px;
    font-size: 11.5px;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .ssh-footer-copy { margin-top: 12px; }
  .case-final-cta-section { padding-top: 40px !important; }

  main h1:not(.sr-only),
  main section h1:not(.sr-only) {
    max-width: 100%;
    font-size: clamp(2rem, 9vw, 2.45rem) !important;
    line-height: 1.1 !important;
    letter-spacing: -.035em !important;
    overflow-wrap: break-word;
  }
  main .lead,
  main p.lead {
    max-width: 100%;
    font-size: 1rem !important;
    line-height: 1.7 !important;
  }
}

@media (max-width: 420px) {
  .ssh-inner { padding: 0 16px; gap: 9px; }
  .ssh-brand { gap: 8px; font-size: 13.5px; }
  .ssh-brand svg { width: 24px; height: 24px; }
  .ssh-language a { min-width: 39px; padding: 0 8px; }
  .ssh-language a[aria-current="page"] { display: none; }
  .ssh-book { padding: 0 9px; }
  .ssh-drawer { padding-left: 16px; padding-right: 16px; }
  .ssh-drawer-list { grid-template-columns: 1fr; }
  .ssh-drawer-direct { grid-template-columns: 1fr 1fr; }
  .ssh-footer-inner { padding: 0 18px; }
  .ssh-footer-grid { gap: 22px 16px; }
  .ssh-footer-links { gap: 5px; }
  .ssh-footer-links a { font-size: 10.5px; }
  .ssh-contact-long { display: inline; }
  .ssh-contact-short { display: none; }
}

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