.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: block;
  max-width: none;
  padding: 0;
  border: 0;
  background: #061a33;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .24);
  color: #fff;
  isolation: isolate;
}

.site-header::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 92% -10%, rgba(0, 200, 240, .32), transparent 31%),
    linear-gradient(110deg, #061a33 0%, #082442 58%, #07566c 100%);
  content: '';
}

.site-header::after {
  position: absolute;
  right: 0;
  bottom: 18px;
  z-index: -1;
  width: min(410px, 40vw);
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(242, 56, 79, 0), #f2384f 45%, #ffb92e);
  content: '';
  opacity: .9;
  transform: rotate(7deg);
}

.site-header__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px 44px;
  transition: padding .28s ease;
}

.site-header__bar {
  display: flex;
  min-height: 112px;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid rgba(120, 167, 198, .28);
  transition: min-height .28s ease, border-color .28s ease;
}

.site-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 18px;
  color: #fff;
  text-decoration: none;
}

.site-brand__logo {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border: 2px solid #00c8f0;
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(0, 200, 240, .22);
  object-fit: cover;
  transition: width .28s ease, height .28s ease, flex-basis .28s ease;
}

.site-brand__copy,
.site-brand__name,
.site-brand__descriptor {
  display: block;
}

.site-brand__name {
  color: #00c8f0;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .03em;
  line-height: 1.15;
  white-space: nowrap;
}

.site-brand__descriptor {
  margin-top: 8px;
  color: #b8c7d9;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}

.primary-nav {
  display: flex;
  margin-left: auto;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.primary-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 999px;
  color: #edf7fc;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: #64e7ff;
  background: rgba(0, 200, 240, .09);
}

.primary-nav .primary-nav__cta {
  min-width: 180px;
  margin-left: 26px;
  padding-inline: 20px;
  background: #f2384f;
  color: #fff;
  box-shadow: 0 10px 28px rgba(242, 56, 79, .22);
}

.primary-nav .primary-nav__cta:hover,
.primary-nav .primary-nav__cta:focus-visible {
  background: #ff5264;
  color: #fff;
  transform: translateY(-1px);
}

.site-menu {
  display: none;
}

.site-header__expanded {
  max-height: 420px;
  overflow: hidden;
  opacity: 1;
  transition: max-height .34s ease, opacity .16s ease;
}

.site-header__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, .78fr);
  gap: 72px;
  align-items: center;
  padding: 32px 0 34px;
}

.site-header__eyebrow {
  margin: 0 0 13px;
  color: #00c8f0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
}

.site-header__headline {
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 3.6vw, 52px);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: .98;
}

.site-header__support {
  margin: 17px 0 0;
  color: #bfd1df;
  font-size: 18px;
  line-height: 1.35;
}

.site-header__case {
  display: flex;
  min-height: 166px;
  flex-direction: column;
  justify-content: center;
  padding: 22px 24px;
  border: 1px solid #00c8f0;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(6, 37, 65, .94), rgba(9, 91, 108, .82));
  box-shadow: 0 18px 38px rgba(0, 0, 0, .26), inset 0 1px 0 rgba(255, 255, 255, .06);
  color: #fff;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.site-header__case:hover,
.site-header__case:focus-visible {
  border-color: #67e9ff;
  box-shadow: 0 22px 44px rgba(0, 0, 0, .32), 0 0 0 1px rgba(0, 200, 240, .15);
  transform: translateY(-2px);
}

.site-header__case span {
  color: #ffb92e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .05em;
}

.site-header__case strong {
  margin-top: 10px;
  font-size: 32px;
  letter-spacing: -.02em;
  line-height: 1;
}

.site-header__case small {
  margin-top: 14px;
  color: #d5e5ed;
  font-size: 15px;
  line-height: 1.35;
}

.triad-path {
  position: relative;
  min-height: 118px;
}

.triad-path__steps {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px minmax(0, 1fr) 86px minmax(0, 1fr);
  gap: 0;
  align-items: center;
}

.triad-bridge {
  position: relative;
  z-index: 3;
  display: grid;
  height: 84px;
  place-items: center;
  overflow: hidden;
  border-block: 1px solid rgba(76, 206, 238, .28);
  background-color: rgba(2, 25, 49, .78);
  background-image:
    linear-gradient(rgba(0, 200, 240, .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 200, 240, .10) 1px, transparent 1px);
  background-size: 9px 9px;
  box-shadow: inset 0 0 22px rgba(0, 200, 240, .10), 0 0 20px rgba(0, 0, 0, .18);
}

.triad-bridge--one {
  border-color: rgba(0, 200, 240, .38);
  border-radius: 14px 0 0 14px;
}

.triad-bridge--two {
  border-color: rgba(255, 185, 46, .40);
  border-radius: 0 14px 14px 0;
}

.triad-bridge svg {
  width: 100%;
  height: 74px;
  overflow: visible;
}

.triad-bridge path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.triad-bridge__base {
  stroke: #22d3ee;
  stroke-width: 3;
  opacity: .92;
}

.triad-bridge--two .triad-bridge__base { stroke: #ffb92e; }

.triad-bridge__sweep {
  stroke: #effcff;
  stroke-width: 4;
  stroke-dasharray: 15 85;
  stroke-dashoffset: 100;
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(100, 231, 255, .88));
  animation: tcns-bridge-sweep 5.4s cubic-bezier(.4, 0, .22, 1) infinite;
}

.triad-bridge--two .triad-bridge__sweep {
  animation-delay: 2.7s;
  filter: drop-shadow(0 0 6px rgba(255, 185, 46, .82));
}

.triad-step {
  --step-accent: #00c8f0;
  position: relative;
  display: grid;
  width: 100%;
  min-height: 118px;
  box-sizing: border-box;
  align-self: stretch;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  border: 1px solid var(--step-accent);
  border-radius: 18px;
  background: rgba(5, 29, 54, .94);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .17);
  color: #fff;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.triad-step::before {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 0;
  width: 4px;
  border-radius: 3px;
  background: var(--step-accent);
  content: '';
}

.triad-step--danger { --step-accent: #ffb92e; }
.triad-step--choose { --step-accent: #f2384f; }

.triad-step:hover,
.triad-step:focus-visible {
  background: rgba(8, 43, 73, .98);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .24);
  transform: translateY(-2px);
}

.triad-step__number {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--step-accent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--step-accent) 18%, transparent);
  color: var(--step-accent);
  font-size: 13px;
  font-weight: 900;
}

.triad-step__copy,
.triad-step__copy strong,
.triad-step__copy small {
  display: block;
}

.triad-step__copy strong {
  font-size: 16px;
  line-height: 1.2;
}

.triad-step__copy small {
  margin-top: 9px;
  color: #b9ccda;
  font-size: 13px;
  line-height: 1.35;
}

.triad-path__pulse {
  display: none;
  position: absolute;
  z-index: 3;
  top: 38px;
  left: 0;
  width: 110px;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .92), #64e7ff, transparent);
  filter: drop-shadow(0 0 8px rgba(100, 231, 255, .78));
  opacity: 0;
  pointer-events: none;
}

.site-header__mobile-cta {
  display: none;
}

/* Keep the homepage hero in normal flow while the navigation remains sticky. */
.site-natural-scroll .site-header__inner { padding-bottom: 0; }
.home-header-content {
  max-width: none;
  background: radial-gradient(circle at 92% -10%, rgba(0, 200, 240, .32), transparent 31%),
    linear-gradient(110deg, #061a33 0%, #082442 58%, #07566c 100%);
}
.home-header-content .site-header__expanded {
  max-width: 1440px;
  max-height: none;
  margin: 0 auto;
  padding: 0 48px 44px;
  overflow: visible;
  opacity: 1;
  transition: none;
}

.site-header.is-compact::after {
  bottom: 0;
  right: 0;
  width: 100%;
  height: 4px;
  transform: none;
}

.site-header.is-compact .site-header__inner {
  padding-bottom: 0;
}

.site-header.is-compact .site-header__bar {
  min-height: 92px;
  border-color: transparent;
}

.site-header.is-compact .site-brand__logo {
  width: 54px;
  height: 54px;
  flex-basis: 54px;
}

.site-header.is-compact .site-brand__descriptor {
  color: #00c8f0;
  font-size: 11px;
}

.site-header.is-compact .site-header__expanded {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.method-steps article { scroll-margin-top: 116px; }
.featured-case { scroll-margin-top: 118px; }

@keyframes tcns-bridge-sweep {
  0%, 10% { stroke-dashoffset: 100; opacity: 0; }
  18%, 66% { opacity: .95; }
  88% { stroke-dashoffset: 0; opacity: 0; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

@media (max-width: 1100px) {
  .home-header-content .site-header__expanded { padding-inline: 32px; }
  .site-header__inner { padding-inline: 32px; }
  .site-brand__descriptor { display: none; }
  .primary-nav a { padding-inline: 9px; font-size: 12px; }
  .primary-nav .primary-nav__cta { min-width: 150px; margin-left: 7px; padding-inline: 14px; }
  .site-header__hero { grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 40px; }
  .triad-path__steps { grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr) 48px minmax(0, 1fr); }
  .triad-bridge { height: 76px; }
  .triad-step { grid-template-columns: 46px 1fr; gap: 10px; padding-inline: 15px; }
  .triad-step__copy strong { font-size: 14px; }
}

@media (max-width: 1000px) {
  .home-header-content .site-header__expanded { padding: 0 22px 18px; }
  .site-header::after { display: none; }
  .site-header__inner { padding: 0 22px 18px; }
  .site-header__bar { min-height: 96px; }
  .site-brand { gap: 14px; }
  .site-brand__logo { width: 56px; height: 56px; flex-basis: 56px; }
  .site-brand__name { max-width: 150px; color: #fff; font-size: 14px; line-height: 1.25; white-space: normal; }
  .site-brand__descriptor { display: none; }

  .site-menu {
    display: grid;
    width: 48px;
    height: 48px;
    margin-left: auto;
    place-items: center;
    border: 1px solid rgba(91, 176, 211, .55);
    border-radius: 50%;
    background: rgba(5, 32, 57, .88);
    color: #fff;
    cursor: pointer;
  }

  .site-menu__icon,
  .site-menu__icon::before,
  .site-menu__icon::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    content: '';
    transition: transform .18s ease, opacity .18s ease;
  }

  .site-menu__icon { position: relative; }
  .site-menu__icon::before { position: absolute; top: -6px; }
  .site-menu__icon::after { position: absolute; top: 6px; }
  .site-header.menu-open .site-menu__icon { background: transparent; }
  .site-header.menu-open .site-menu__icon::before { top: 0; transform: rotate(45deg); }
  .site-header.menu-open .site-menu__icon::after { top: 0; transform: rotate(-45deg); }

  .primary-nav {
    position: absolute;
    top: 84px;
    right: 22px;
    z-index: 10;
    display: none;
    width: min(310px, calc(100vw - 44px));
    padding: 12px;
    border: 1px solid #2e6684;
    border-radius: 18px;
    background: rgba(5, 25, 50, .98);
    box-shadow: 0 20px 42px rgba(0, 0, 0, .36);
  }

  .site-header.menu-open .primary-nav { display: grid; }
  .primary-nav a { min-height: 48px; justify-content: flex-start; padding-inline: 16px; font-size: 14px; }
  .primary-nav .primary-nav__cta { min-width: 0; margin: 5px 0 0; justify-content: center; }

  .site-header__expanded { max-height: 700px; }
  .site-header__hero { display: block; padding: 18px 2px 22px; }
  .site-header__eyebrow { margin-bottom: 12px; color: #ffb92e; font-size: 11px; }
  .site-header__headline { font-size: clamp(28px, 8vw, 36px); line-height: 1.03; }
  .site-header__support { margin-top: 13px; font-size: 14px; }

  .site-header__case {
    min-height: 0;
    margin-top: 19px;
    padding: 15px 17px;
    border-radius: 16px;
    box-shadow: none;
  }
  .site-header__case span { font-size: 10px; }
  .site-header__case strong { margin-top: 7px; font-size: 23px; }
  .site-header__case small { margin-top: 8px; font-size: 13px; }

  .triad-path { min-height: 252px; }
  .triad-bridge { display: none; }
  .triad-path__steps { grid-template-columns: 1fr; gap: 12px; padding-left: 37px; }
  .triad-path__steps::before {
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 15px;
    width: 3px;
    border-radius: 99px;
    background: linear-gradient(#00c8f0, #ffb92e 52%, #f2384f);
    content: '';
    opacity: .75;
  }
  .triad-step { min-height: 72px; grid-template-columns: 44px 1fr; padding: 11px 14px; border-radius: 17px; }
  .triad-step::before { display: none; }
  .triad-step__number { width: 44px; height: 44px; }
  .triad-step__copy strong { font-size: 13px; }
  .triad-step__copy small { margin-top: 5px; font-size: 11px; }
  .triad-path__pulse {
    display: block;
    top: 0;
    left: 14px;
    width: 4px;
    height: 54px;
    background: linear-gradient(180deg, transparent, #fff, #64e7ff, transparent);
    animation: tcns-pulse-path-mobile 5.4s cubic-bezier(.4, 0, .22, 1) infinite;
  }

  .site-header__mobile-cta {
    display: flex;
    min-height: 52px;
    margin-top: 15px;
    align-items: center;
    justify-content: center;
    gap: 22px;
    border-radius: 999px;
    background: #f2384f;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .03em;
    text-decoration: none;
  }

  .site-header.is-compact .site-header__bar { min-height: 76px; }
  .site-header.is-compact .site-brand__logo { width: 46px; height: 46px; flex-basis: 46px; }
  .site-header.is-compact .site-header__inner { padding-bottom: 0; }
  .site-header.is-compact::after {
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #00c8f0, #ffb92e 52%, #f2384f);
  }
}

@keyframes tcns-pulse-path-mobile {
  0%, 10% { top: 0; opacity: 0; }
  19% { opacity: .72; }
  78% { opacity: .72; }
  88%, 100% { top: calc(100% - 54px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header__inner,
  .site-header__bar,
  .site-brand__logo,
  .site-header__expanded,
  .triad-step,
  .primary-nav a {
    transition: none;
  }
  .triad-path__pulse { display: none; animation: none; }
  .triad-bridge__sweep { animation: none; opacity: 0; }
}

/* Stable scroll geometry on all routes. */
.site-natural-scroll .site-header__inner,.site-natural-scroll .site-header__bar,.site-natural-scroll .site-brand__logo{transition:none}
#current-case,#guide-library,#teaching-series{scroll-margin-top:128px}
@media(max-width:760px){#current-case,#guide-library,#teaching-series{scroll-margin-top:110px}}
