/* Signalane depth redesign — additive layer. Load after /css/style.css. */

.signal-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.34;
  pointer-events: none;
}

body {
  isolation: isolate;
}

body > main,
.site-footer {
  position: relative;
  z-index: 1;
}

body {
  background:
    radial-gradient(circle at 72% 12%, rgba(71, 184, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 18% 28%, rgba(143, 214, 255, 0.12), transparent 24rem),
    linear-gradient(180deg, #03060a 0%, #070b12 46%, #020409 100%);
}

body::before {
  background:
    radial-gradient(circle at 70% 18%, rgba(71, 184, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 18% 34%, rgba(143, 214, 255, 0.10), transparent 24rem),
    linear-gradient(90deg, rgba(3, 6, 10, 0.90), rgba(3, 6, 10, 0.50) 52%, rgba(3, 6, 10, 0.84));
}

body:has(.signalane-depth) .signal-field {
  opacity: 0.82;
}

body:has(.article-page) .signal-field {
  opacity: 0.16;
}

.content-hero .hero-inner,
.article-library,
.branch-page,
.article-directory,
.article,
.article-after,
.contact-form,
.projects-hero .hero-inner {
  position: relative;
  z-index: 1;
}

.branch-page .article-row,
.article-directory .article-row,
.reading-path-card,
.latest-strip-item,
.article-search-result,
.method-stack div,
.path-item,
.article-preview,
.article-item,
.risk-item,
.principle-item {
  transform-style: preserve-3d;
  transition: transform 240ms var(--ease), border-color 240ms var(--ease), background 240ms var(--ease), box-shadow 240ms var(--ease);
}

.branch-page .article-row:hover,
.article-directory .article-row:hover,
.reading-path-card:hover,
.latest-strip-item:hover,
.article-search-result:hover,
.path-item:hover,
.article-preview:hover,
.article-item:hover {
  transform: translateY(-2px) translateZ(12px);
  border-color: rgba(143, 214, 255, 0.26);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.content-hero {
  position: relative;
}

.content-hero::before {
  content: "";
  position: absolute;
  inset: 12% auto auto 52%;
  width: min(34rem, 52vw);
  height: min(34rem, 52vw);
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(71, 184, 255, 0.12), transparent 64%);
  filter: blur(2px);
}

body:has(.nav-links a[href="/ai-governance/"].is-active) .branch-hero h1 {
  font-size: clamp(1.32rem, 1.8vw, 1.88rem);
}

body:has(.nav-links a[href="/agents/"].is-active) .branch-hero h1 {
  font-size: clamp(1.32rem, 1.8vw, 1.88rem);
}

body:has(.nav-links a[href="/agentic-ai/"].is-active) .branch-hero h1 {
  font-size: clamp(1.32rem, 1.8vw, 1.88rem);
}

body:has(.nav-links a[href="/guardrails/"].is-active) .branch-hero h1 {
  font-size: clamp(1.32rem, 1.8vw, 1.88rem);
}

body:has(.nav-links a[href="/method/"].is-active) .branch-hero h1 {
  font-size: clamp(1.32rem, 1.8vw, 1.88rem);
}

body:has(.nav-links a[href="/articles/"].is-active) .article-library-hero h1 {
  font-size: clamp(1.4875rem, 2.38vw, 2.2525rem);
}

body:has(.nav-links a[href="/contact/"].is-active) .content-hero h1 {
  font-size: clamp(1.4rem, 2.24vw, 2.12rem);
}

body:has(.nav-links a[href="/contact/"].is-active) .split-line h2 {
  font-size: clamp(1.08rem, 1.68vw, 1.72rem);
}

body:has(.nav-links a[href="/contact/"].is-active) #message {
  background: transparent;
}

body:has(.nav-links a[href="/contact/"].is-active) .contact-form {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.article-page .article {
  background: linear-gradient(180deg, rgba(3, 6, 10, 0.18), transparent 18rem);
}

.article-page .article > * {
  position: relative;
  z-index: 1;
}

.article-page .article p,
.article-page .article li {
  text-shadow: 0 1px 0 rgba(3, 6, 10, 0.28);
}

.article-after .article-row-next,
.quote-box,
.contact-form {
  border: 1px solid rgba(167, 216, 255, 0.14);
  background: linear-gradient(145deg, rgba(9, 16, 27, 0.68), rgba(12, 26, 42, 0.38));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
}

.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  background: rgba(4, 8, 14, 0.68);
  border-bottom-color: rgba(167, 216, 255, 0.13);
}

.brand-lockup {
  transform: scale(1.15);
  filter: drop-shadow(0 0 18px rgba(71, 184, 255, 0.34)) drop-shadow(0 14px 30px rgba(0, 0, 0, 0.46));
}

.glass {
  border: 1px solid rgba(167, 216, 255, 0.16);
  background: linear-gradient(145deg, rgba(9, 16, 27, 0.72), rgba(12, 26, 42, 0.42));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
}

.signalane-depth {
  position: relative;
}

.signalane-depth .reveal {
  opacity: 0;
  transform: translateY(22px) translateZ(0);
}

.signalane-depth .reveal.is-visible {
  opacity: 1;
  transform: translateY(0) translateZ(0);
}

.tilt {
  transform-style: preserve-3d;
  transition: transform 350ms var(--ease), border-color 350ms var(--ease), background 350ms var(--ease);
}

.tilt:hover {
  transform: translateY(-6px) rotateX(4deg) rotateY(-5deg);
  border-color: rgba(143, 214, 255, 0.44);
}

.scanline {
  position: relative;
  overflow: hidden;
}

.scanline::after {
  content: "";
  position: absolute;
  inset: -40% -20%;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 38%, rgba(143, 214, 255, 0.12) 50%, transparent 62%);
  transform: translateX(-70%);
  animation: signalane-scan 6.5s var(--ease) infinite;
}

.depth-hero {
  position: relative;
  min-height: min(760px, calc(100svh - 98.8px));
  align-items: center;
}

.depth-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -18% -10%;
  height: 58%;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(143, 214, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 214, 255, 0.14) 1px, transparent 1px);
  background-size: 54px 54px;
  transform: perspective(700px) rotateX(64deg);
  transform-origin: bottom;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 78%);
}

.depth-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}

.page .home-hero .depth-copy h1 {
  max-width: 720px;
  margin-bottom: 1.25rem;
  font-size: clamp(1.47rem, 2.82vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.depth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.depth-button {
  border-color: rgba(143, 214, 255, 0.34);
  background: linear-gradient(145deg, rgba(71, 184, 255, 0.16), rgba(143, 214, 255, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 50px rgba(71, 184, 255, 0.08);
}

.depth-core-wrap {
  position: relative;
  min-height: 560px;
  transform-style: preserve-3d;
}

.depth-core-halo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(143, 214, 255, 0.18);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(71, 184, 255, 0.16), transparent 62%);
  box-shadow: 0 0 90px rgba(71, 184, 255, 0.18);
  transform: translate(-50%, -50%);
}

.depth-core-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 250px;
  height: 250px;
  object-fit: contain;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 22px rgba(71, 184, 255, 0.42)) drop-shadow(0 18px 42px rgba(0, 0, 0, 0.5));
  animation: signalane-depth-breathe 5s var(--ease) infinite;
}

.orbit-card {
  position: absolute;
  width: 178px;
  padding: 14px;
  border-radius: 16px;
  transform: translateZ(34px);
}

.orbit-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.orbit-card strong {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.25;
}

.orbit-governance { left: 4%; top: 9%; }
.orbit-evidence { right: 2%; top: 22%; }
.orbit-handoffs { bottom: 24%; left: 8%; }
.orbit-recovery { bottom: 6%; right: 12%; }

.depth-conversation {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(18px, 3vw, 28px);
  width: min(var(--max), calc(100% - 40px));
}

.depth-card {
  padding: clamp(24px, 4vw, 38px);
  border-radius: 28px;
}

.depth-card h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.105rem, 1.95vw, 1.755rem);
  line-height: 1.05;
}

.depth-card-offset {
  transform: translateY(40px);
}

.depth-card-offset:hover {
  transform: translateY(34px) rotateX(4deg) rotateY(-5deg);
}

.depth-map {
  width: min(var(--max), calc(100% - 40px));
}

.depth-branch-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(26px, 4vw, 42px);
}

.depth-branch {
  min-height: 210px;
  padding: 20px;
  border-radius: 22px;
  color: inherit;
  text-decoration: none;
}

.depth-branch .kicker {
  margin-bottom: 1rem;
}

.depth-branch strong {
  display: block;
  color: var(--text);
  font-size: clamp(1.02rem, 1.2vw, 1.22rem);
  line-height: 1.22;
}

.depth-branch p {
  margin: 1rem 0 0;
  color: rgba(237, 246, 255, 0.68);
  font-size: 0.9rem;
  line-height: 1.48;
}

.depth-signals {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(26px, 5vw, 64px);
  width: min(var(--max), calc(100% - 40px));
}

.depth-signals-copy {
  max-width: 520px;
}

.depth-signals-copy h2,
.depth-position h2 {
  font-size: clamp(1.3rem, 2.6vw, 2.21rem);
  line-height: 1.02;
}

.depth-row-list {
  border: 0;
  background: transparent;
  gap: 12px;
  overflow: visible;
}

.depth-row {
  border: 1px solid rgba(167, 216, 255, 0.12);
  border-radius: 16px;
  background: rgba(7, 13, 23, 0.78);
}

.depth-row:hover {
  transform: translateX(4px) translateZ(18px);
  border-color: rgba(143, 214, 255, 0.32);
}

.depth-not-is {
  border-radius: 26px;
  overflow: hidden;
}

.depth-not-is > div:last-child {
  background:
    linear-gradient(145deg, rgba(71, 184, 255, 0.12), transparent 58%),
    rgba(8, 14, 24, 0.78);
}

@keyframes signalane-scan {
  0%, 22% { transform: translateX(-70%); }
  58%, 100% { transform: translateX(70%); }
}

@keyframes signalane-depth-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(0.985); }
  50% { transform: translate(-50%, -50%) scale(1.035); }
}

@media (max-width: 1180px) {
  .depth-branch-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .depth-core-wrap {
    display: none;
  }

  .depth-hero-grid,
  .depth-conversation,
  .depth-signals {
    grid-template-columns: 1fr;
  }

  .depth-hero {
    min-height: auto;
    padding-top: clamp(46px, 8vw, 84px);
  }

  .depth-card-offset,
  .depth-card-offset:hover {
    transform: none;
  }
}

@media (max-width: 920px) {
  body:has(.nav-links a[href="/articles/"].is-active) .article-library-hero h1 {
    font-size: clamp(1.207rem, 4.08vw, 1.615rem);
  }

  body:has(.nav-links a[href="/contact/"].is-active) .content-hero h1 {
    font-size: clamp(1.136rem, 3.84vw, 1.52rem);
  }
}

@media (max-width: 760px) {
  body:has(.nav-links a[href="/ai-governance/"].is-active) .branch-hero h1 {
    font-size: clamp(1.088rem, 3.84vw, 1.424rem);
  }

  body:has(.nav-links a[href="/agents/"].is-active) .branch-hero h1 {
    font-size: clamp(1.088rem, 3.84vw, 1.424rem);
  }

  body:has(.nav-links a[href="/agentic-ai/"].is-active) .branch-hero h1 {
    font-size: clamp(1.088rem, 3.84vw, 1.424rem);
  }

  body:has(.nav-links a[href="/guardrails/"].is-active) .branch-hero h1 {
    font-size: clamp(1.088rem, 3.84vw, 1.424rem);
  }

  body:has(.nav-links a[href="/method/"].is-active) .branch-hero h1 {
    font-size: clamp(1.088rem, 3.84vw, 1.424rem);
  }

  body:has(.nav-links a[href="/articles/"].is-active) .article-library-hero h1 {
    font-size: clamp(1.156rem, 4.08vw, 1.513rem);
  }

  body:has(.nav-links a[href="/contact/"].is-active) .content-hero h1 {
    font-size: clamp(1.088rem, 3.84vw, 1.424rem);
  }

  .page .home-hero .depth-copy h1 {
    font-size: clamp(1.32rem, 5.64vw, 1.83rem);
    letter-spacing: -0.055em;
  }

  .depth-branch-grid {
    grid-template-columns: 1fr;
  }

  .depth-branch {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .signal-field {
    opacity: 0.38;
  }

  .scanline::after,
  .depth-core-logo {
    animation: none;
  }

  .signalane-depth .reveal,
  .signalane-depth .reveal.is-visible,
  .tilt,
  .tilt:hover,
  .depth-card-offset,
  .depth-card-offset:hover {
    opacity: 1;
    transform: none;
  }
}
