.defense-skip {
  position: fixed;
  z-index: 1002;
  inset: .75rem auto auto .75rem;
  padding: .55rem .8rem;
  background: var(--ink2);
  transform: translateY(-180%);
}

.defense-skip:focus { transform: none; }
.defense :focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.defense a:not([class]) { text-underline-offset: .18em; text-decoration: underline; }
.defense [id] { scroll-margin-top: 6rem; }

.defense-hero .hero-sub { max-width: 40rem; font-size: clamp(1.1rem, 2vw, 1.35rem); }
.defense-intro { max-width: 48rem; margin-bottom: 2rem; }
.container.defense-intro { max-width: 1200px; margin-bottom: 0; }
.defense-intro p { max-width: 66ch; }
.defense p, .defense dd, .defense label { font-size: 1.0625rem; line-height: 1.65; }
.defense .hero h1 { overflow-wrap: normal; }
.defense-divider { border-block: 1px solid var(--w4); }
.defense h2 { margin-bottom: .9rem; }

.defense-grid, .defense-split {
  display: grid;
  gap: clamp(1.1rem, 3vw, 2.4rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.defense-split { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.defense .card { min-width: 0; padding: clamp(1.35rem, 3vw, 2rem); }
.defense .card h3 { margin-bottom: .6rem; }
.defense-deliverable { margin-top: 1.15rem; padding-top: .9rem; border-top: 1px solid var(--w4); }
.defense-deliverable strong { display: block; color: var(--teal); }
.defense-prose p + p { margin-top: .9rem; }

.defense-method, .defense-system {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.defense-method { counter-reset: defense-step; }
.defense-method li {
  display: grid;
  grid-template-columns: 2rem minmax(11rem, 1fr) 2.5fr;
  gap: .9rem;
  align-items: baseline;
  border-top: 1px solid var(--w4);
  padding: 1.15rem 0;
  counter-increment: defense-step;
}

.defense-method li::before { content: counter(defense-step, decimal-leading-zero); color: var(--teal); font-family: var(--mono); }
.defense-method p { margin: 0; }
.defense-system { border-left: 2px solid var(--teal); }
.defense-system li { position: relative; padding: .4rem 0 .7rem 1.1rem; }
.defense-system li::before { content: ""; position: absolute; left: -.32rem; top: .85rem; width: .5rem; height: .5rem; border-radius: 50%; background: var(--teal); }
.defense-system strong, .defense-system span { display: block; }
.defense-frameworks { margin: 1rem 0 0; }
.defense-frameworks dt { font-weight: 500; }
.defense-frameworks dd { margin: .25rem 0 1rem; color: var(--w2); }
.defense-faq details { border-top: 1px solid var(--w4); padding: .85rem 0; }
.defense-faq summary { cursor: pointer; font-size: 1.08rem; }
.defense-faq details > p { margin: .55rem 0 .2rem; }
.defense-form { padding: clamp(1rem, 3vw, 1.65rem); background: var(--ink2); border: 1px solid var(--w4); }
.defense label span { color: var(--w2); }
.defense-form .form-group label { display: block; }
.defense-form input, .defense-form select, .defense-form textarea { min-width: 0; color-scheme: dark; }

.defense-blog-list .card { display: block; text-decoration: none; }
.defense-blog-list time, .defense-article-time { color: var(--w2); font: .875rem/1.5 var(--mono); }
.defense-blog-list .card h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: .45rem 0; }
.defense-article { max-width: 47rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.defense-article h1 { font-size: clamp(2.6rem, 6vw, 4.65rem); line-height: 1.05; margin: .8rem 0 1.15rem; text-wrap: balance; }
.defense-article .defense-deck { font-size: clamp(1.22rem, 2.5vw, 1.52rem); color: var(--w1); line-height: 1.45; }
.defense-article .defense-article-time { border-bottom: 1px solid var(--w4); padding-bottom: 1.3rem; margin-bottom: 2rem; }
.defense-article :is(p, li) { font-size: clamp(1.06rem, 2vw, 1.19rem); line-height: 1.73; }
.defense-article h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin: 2.25rem 0 .7rem; }
.defense-article h3 { margin: 1.2rem 0 .55rem; }
.defense-article p { margin: .8rem 0; }
.defense-article li + li { margin-top: .35rem; }
.defense-article a { overflow-wrap: anywhere; }
.defense-article-end { margin-top: 2.5rem; padding-top: .85rem; border-top: 1px solid var(--w4); }
.defense-article-nav { display: flex; flex-wrap: wrap; gap: .65rem 1.4rem; font-size: 1rem; }

@media (max-width: 850px) {
  .defense-grid, .defense-split { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .defense-method li { grid-template-columns: 1.6rem 1fr; gap: .25rem .65rem; }
  .defense-method li p { grid-column: 2; }
}

.defense-editorial-header {
  padding: 1rem 0;
  border-bottom: 1px solid var(--w4);
  background: var(--ink2);
}
.defense-editorial-header .defense-article-nav { align-items: center; }
.defense-editorial-header .nav-logo { margin-right: auto; }
.defense-form .form-group label { color: var(--w2); font-size: .875rem; letter-spacing: .06em; }
.defense-form :is(input, select, textarea) { font-size: 1rem; }
.defense .site-nav [aria-current="page"] { color: var(--teal); }

.hero.defense-hero {
  min-height: clamp(37rem, 93svh, 57rem);
  background: #070f15;
}
.defense-hero::before {
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(4, 9, 13, .97) 0%, rgba(4, 9, 13, .83) 31%, rgba(4, 9, 13, .08) 88%);
}
.defense-hero::after { display: none; }
.defense-hero .hero-inner { z-index: 2; padding-block: 3.5rem; }
.defense-hero h1 {
  max-width: 14ch;
  font-size: clamp(3.2rem, 7vw, 7.1rem);
  line-height: .98;
  text-wrap: balance;
}
.defense .defense-lab-name {
  margin-bottom: 1.3rem;
  color: var(--teal);
  font: 500 .9rem/1.3 var(--mono);
  letter-spacing: .07em;
}
.defense-hero .hero-sub { margin-bottom: 1.75rem; color: #d3dde6; }
.defense-warp {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.simulation-story {
  display: grid;
  grid-template-columns: minmax(16rem, .95fr) minmax(0, 1.55fr);
  gap: clamp(1rem, 4vw, 4rem);
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
.simulation-pin {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 5.8rem;
  align-self: start;
  z-index: 2;
  padding: .35rem 0 1rem;
}
.simulation-stage {
  position: relative;
  min-height: 28rem;
  height: min(69svh, 40rem);
  margin: 0;
  overflow: hidden;
  border: 1px solid #28474b;
  background: radial-gradient(ellipse at 55% 52%, #102933, #070f15 70%);
  box-shadow: 0 1.7rem 4rem #0006;
}
.simulation-stage canvas {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: opacity 260ms ease;
}
.simulation-stage[data-scene="system"] #defense-system-view,
.simulation-stage[data-scene="containment"] #defense-system-view,
.simulation-stage[data-scene="globe"] #defense-globe-view { opacity: 1; }
.simulation-stage figcaption {
  position: absolute;
  inset: 1rem 1rem auto;
  color: #abccc9;
  font: .82rem/1.4 var(--mono);
}
.simulation-reading {
  position: absolute;
  inset: auto 1rem 1rem;
  color: #eef9f6;
  pointer-events: none;
  font: .92rem/1.4 var(--mono);
}
.simulation-reading [data-reading] { display: none; }
.simulation-stage[data-scene="system"] [data-reading="system"],
.simulation-stage[data-scene="globe"] [data-reading="globe"],
.simulation-stage[data-scene="containment"] [data-reading="containment"] { display: block; }
.simulation-reading strong { font-weight: 500; }
.simulation-indicator {
  width: .6rem;
  height: .6rem;
  display: inline-block;
  border-radius: 50%;
  background: #32e3bc;
}
.simulation-stage[data-signal="alert"] .simulation-indicator { background: #ff977a; }
.simulation-trend-label { display: block; margin-bottom: .25rem; font-size: .75rem; color: #a9c5c6; }
.simulation-bars { display: flex; align-items: end; gap: .35rem; height: 2rem; margin-top: .6rem; }
.simulation-bars i {
  display: block;
  background: #234049;
  width: .8rem;
  height: var(--bar);
  border-radius: 2px 2px 0 0;
}
.simulation-bars i.is-active { background: #30d9b5; }
.simulation-pause {
  position: absolute;
  right: .8rem;
  top: .6rem;
  z-index: 1;
  min-height: 2.45rem;
  padding-inline: .65rem;
  font: .8rem/1.2 var(--mono);
  color: #deeeeb;
  border: 1px solid #42605f;
  background: #0a151a;
  cursor: pointer;
}
.simulation-pause[hidden] { display: none; }
.simulation-chapters { grid-column: 1; grid-row: 1; }
.simulation-chapter {
  min-height: clamp(28rem, 74svh, 42rem);
  align-content: center;
  padding: clamp(1rem, 3vw, 2rem) 0;
}
.simulation-chapter h2 { max-width: 16ch; font-size: clamp(2.25rem, 4vw, 4.2rem); line-height: 1.03; }
.simulation-chapter p { max-width: 33rem; font-size: clamp(1.06rem, 2vw, 1.24rem); }
.simulation-chapter .simulation-note { margin-top: 1rem; font-size: .92rem; color: #a8b9c0; }
@media (max-width: 800px) {
  .hero.defense-hero { min-height: min(48rem, 89svh); }
  .defense-hero::before {
    background: linear-gradient(180deg, #050b10 12%, #050b10aa 51%, #050b1044 92%);
  }
  .defense-hero h1 { max-width: 12ch; }
  .simulation-story { display: block; }
  .simulation-pin { top: 4rem; padding-top: .4rem; background: var(--ink); }
  .simulation-stage { min-height: 12.5rem; height: clamp(12.5rem, 45svh, 29rem); }
  .simulation-chapter { min-height: clamp(19rem, 49svh, 27rem); align-content: start; }
  .simulation-chapter h2 { max-width: 24ch; }
  .simulation-stage figcaption { right: 7.5rem; }
}
@media (max-width: 365px) {
  .defense-hero h1 { font-size: 2.85rem; }
  .simulation-stage figcaption { font-size: .7rem; left: .6rem; }
  .simulation-pause { right: .55rem; padding-inline: .45rem; }
}
@media (prefers-reduced-motion: reduce) {
  .simulation-stage canvas { transition: none; }
}
