.bitwy-page { overflow: hidden; }
.bitwy-page .section { position: relative; }
.bitwy-page a:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }

.bitwy-hero { position: relative; min-height: 40rem; display: grid; overflow: hidden; background: var(--color-primary-deep); color: var(--color-surface); }
.bitwy-hero__image, .bitwy-hero__shade, .bitwy-hero__content { grid-area: 1 / 1; }
.bitwy-hero__image { width: 100%; max-width: none; height: 100%; object-fit: cover; object-position: 72% 50%; }
.bitwy-hero__shade { background: linear-gradient(90deg, rgba(16,43,72,.96) 0%, rgba(16,43,72,.86) 42%, rgba(16,43,72,.30) 70%, rgba(16,43,72,.22) 100%); }
.bitwy-hero__content { width: min(100% - (2 * var(--gutter)), var(--container-wide)); min-width: 0; margin-inline: auto; padding-block: var(--space-9); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: var(--space-6); }
.bitwy-hero__panel { width: 100%; max-width: 43.75rem; min-width: 0; padding: var(--space-6); border-inline-start: 3px solid var(--color-terracotta); background: rgba(16,43,72,.86); display: flex; flex-direction: column; gap: var(--space-4); }
.bitwy-hero__panel > * { margin: 0; min-width: 0; }
.bitwy-hero h1 { color: var(--color-surface); font-size: var(--text-hero); line-height: var(--leading-tight); }
.bitwy-hero__eyebrow { color: #ead9af; }
.bitwy-hero__lead { max-width: 42rem; font-size: var(--text-lead); line-height: 1.55; }
.bitwy-hero__actions { display: flex; min-width: 0; }
.bitwy-hero__actions > * { min-width: 0; }
.bitwy-hero__caption { justify-self: end; align-self: end; width: min(100%, 18.75rem); padding: var(--space-4); border-inline-start: 1px solid var(--color-gold); background: rgba(16,43,72,.82); display: flex; flex-direction: column; gap: var(--space-2); }
.bitwy-hero__caption > * { margin: 0; }
.bitwy-hero__caption p { font-size: var(--text-sm); line-height: 1.5; }
.bitwy-hero__caption a { color: var(--color-surface); font-size: var(--text-xs); font-weight: 700; letter-spacing: .07em; }

.bitwy-compass__heading { width: 100%; max-width: 38.75rem; }
.bitwy-compass__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.bitwy-compass__card { min-width: 0; padding: var(--space-5); border: var(--border); border-radius: var(--radius-card); background: var(--color-surface); display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
.bitwy-compass__card > * { min-width: 0; margin: 0; }
.bitwy-card__roman { color: var(--color-gold); font-family: var(--font-heading); font-size: 2rem; font-weight: 700; line-height: 1; }
.bitwy-card__roman--risk { color: var(--color-terracotta); }
.bitwy-compass__card a { margin-top: auto; font-size: var(--text-sm); font-weight: 700; }

.bitwy-sequence { background: var(--color-surface-muted); }
.bitwy-sequence__intro { width: 100%; max-width: 41.25rem; }
.bitwy-sequence__layout { display: grid; grid-template-columns: minmax(0, 8fr) minmax(13.75rem, 3fr); gap: var(--space-7); align-items: start; }
.bitwy-sequence__steps { min-width: 0; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-5); }
.bitwy-step { min-width: 0; display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: var(--space-4); position: relative; }
.bitwy-step:not(:last-child)::before { content: ""; position: absolute; top: 3.4rem; bottom: calc(var(--space-5) * -1); left: 1.6rem; width: 1px; background: var(--color-line); }
.bitwy-step__number { z-index: 1; width: 3.25rem; height: 3.25rem; display: grid; place-items: center; border: 1px solid var(--color-terracotta); border-radius: 50%; background: var(--color-surface); color: var(--color-terracotta); font-weight: 700; }
.bitwy-step__number--blue { border-color: var(--color-primary); color: var(--color-primary); }
.bitwy-step__number--jade { border-color: var(--color-jade); color: var(--color-jade); }
.bitwy-step__copy { min-width: 0; width: 100%; max-width: 41.25rem; }
.bitwy-step__example, .bitwy-step__close-label { padding: var(--space-3); border-inline-start: 2px solid var(--color-primary); background: var(--color-surface); color: var(--color-primary-deep); font-size: var(--text-sm); font-weight: 600; }
.bitwy-step__copy--close { padding: var(--space-4); border: 1px solid #9fcabb; background: #e7f1ed; }
.bitwy-step__close-label { margin-bottom: 0; border-color: var(--color-jade); color: var(--color-jade); }
.bitwy-sequence__questions { min-width: 0; padding: var(--space-5); border: var(--border); border-radius: var(--radius-card); background: var(--color-surface); display: flex; flex-direction: column; gap: var(--space-3); }
.bitwy-sequence__questions > * { min-width: 0; margin: 0; }
.bitwy-sequence__questions a { font-size: var(--text-sm); font-weight: 600; }

.bitwy-terrain__heading { width: 100%; max-width: 40.625rem; margin-inline: auto; }
.bitwy-terrain__map { position: relative; width: 100%; min-width: 0; aspect-ratio: 16 / 7; overflow: hidden; border: var(--border); background: var(--color-primary-deep); }
.bitwy-terrain__map > img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.bitwy-map-point { position: absolute; width: min(16rem, 24%); min-width: 0; padding: var(--space-4); border: var(--border-gold); background: rgba(255,253,247,.94); display: flex; flex-direction: column; gap: var(--space-2); transition: border-color var(--transition-fast), transform var(--transition-fast); }
.bitwy-map-point > * { margin: 0; min-width: 0; }
.bitwy-map-point > span, .bitwy-terrain__exit > span { color: var(--color-gold); font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; }
.bitwy-map-point h3 { font-size: 1.35rem; }
.bitwy-map-point p { font-size: var(--text-sm); line-height: 1.5; }
.bitwy-map-point--one { top: 12%; left: 6%; }
.bitwy-map-point--two { right: 7%; bottom: 13%; }
.bitwy-map-point:hover, .bitwy-map-point:focus { border-color: var(--color-primary); transform: translateY(-2px); }
.bitwy-map-line { position: absolute; height: 1px; background: var(--color-gold); transform-origin: left center; opacity: .7; transition: opacity var(--transition-base), background-color var(--transition-base); }
.bitwy-map-line--one { width: 18%; left: 22%; top: 37%; transform: rotate(12deg); }
.bitwy-map-line--two { width: 20%; right: 22%; bottom: 37%; transform: rotate(-18deg); }
.bitwy-terrain__map.is-highlight-one .bitwy-map-line--one, .bitwy-terrain__map.is-highlight-two .bitwy-map-line--two { height: 2px; opacity: 1; background: var(--color-terracotta); }
.bitwy-terrain__exit { width: min(100%, 45rem); min-width: 0; margin-top: var(--space-4); padding: var(--space-5); border-inline-start: 3px solid var(--color-terracotta); background: #f5dfd9; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-4); }
.bitwy-terrain__exit > * { min-width: 0; }
.bitwy-terrain__exit h3, .bitwy-terrain__exit p { margin: 0; }

.bitwy-principles__heading { width: 100%; max-width: 41.875rem; }
.bitwy-principles__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-4); }
.bitwy-principle { min-width: 0; padding: var(--space-5); border: var(--border); border-radius: var(--radius-card); background: var(--color-surface); display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); transition: border-color var(--transition-fast), transform var(--transition-fast); }
.bitwy-principle > * { min-width: 0; margin: 0; }
.bitwy-principle > span { color: var(--color-gold); font-family: var(--font-heading); font-size: 2rem; font-weight: 700; line-height: 1; }
.bitwy-principle--one, .bitwy-principle--two, .bitwy-principle--three { grid-column: span 4; }
.bitwy-principle--four, .bitwy-principle--five { grid-column: span 4; }
.bitwy-principle:hover, .bitwy-principle:focus-within { border-color: var(--color-gold); transform: translateY(-2px); }

.bitwy-defense { background: var(--color-surface-muted); }
.bitwy-defense__heading { width: 100%; max-width: 41.25rem; }
.bitwy-defense__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.bitwy-defense__module { min-width: 0; padding: var(--space-5); border-inline-start: 3px solid var(--color-terracotta); background: var(--color-surface); display: flex; flex-direction: column; gap: var(--space-3); }
.bitwy-defense__module:nth-child(2) { border-color: var(--color-primary); }
.bitwy-defense__module:nth-child(3) { border-color: var(--color-jade); }
.bitwy-defense__module > * { min-width: 0; margin: 0; }
.bitwy-defense__module > span { color: var(--color-terracotta); font-family: var(--font-heading); font-size: 1.75rem; font-weight: 700; }
.bitwy-defense__report { width: min(100%, 45rem); margin: var(--space-6) auto 0; padding: var(--space-5); border-inline-start-color: var(--color-jade); background: var(--color-primary-deep); color: var(--color-surface); display: flex; flex-direction: column; gap: var(--space-3); }
.bitwy-defense__report > * { margin: 0; }
.bitwy-defense__report .eyebrow { color: #ead9af; }

.bitwy-alliance__heading { width: 100%; max-width: 38.75rem; }
.bitwy-alliance__layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-6); align-items: start; }
.bitwy-alliance__figure { min-width: 0; margin: 0; }
.bitwy-alliance__figure img { width: 100%; max-width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 45%; border: var(--border); }
.bitwy-alliance__roles { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.bitwy-alliance__roles > article { min-width: 0; padding: var(--space-4); border: var(--border); border-radius: var(--radius-card); background: var(--color-surface); display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
.bitwy-alliance__roles > article > * { min-width: 0; margin: 0; }

.bitwy-after { background: var(--color-surface-muted); }
.bitwy-after__heading { width: 100%; max-width: 38rem; }
.bitwy-after__list { display: flex; flex-direction: column; gap: var(--space-3); }
.bitwy-after__list > article { min-width: 0; padding: var(--space-5); border: var(--border); border-radius: var(--radius-card); background: var(--color-surface); display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--space-5); }
.bitwy-after__list > article > div { min-width: 0; }
.bitwy-after__list h3, .bitwy-after__list p { margin: 0; }
.bitwy-after__list span { display: block; margin-bottom: var(--space-2); color: var(--color-gold); font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; }
.bitwy-after__list > article > div:last-child { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
.bitwy-after__links { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.bitwy-after__list a, .bitwy-paths__grid a { font-size: var(--text-sm); font-weight: 700; letter-spacing: .03em; }

.bitwy-paths__heading { width: 100%; max-width: 37.5rem; }
.bitwy-paths__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.bitwy-paths__grid > article { min-width: 0; padding: var(--space-5); border: var(--border); border-radius: var(--radius-card); background: var(--color-surface); display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
.bitwy-paths__grid > article > * { min-width: 0; margin: 0; }
.bitwy-paths__grid > article > a { margin-top: auto; min-height: 2.75rem; display: inline-flex; align-items: center; }

.bitwy-editorial { background: var(--color-surface-muted); }
.bitwy-editorial__layout { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--space-7); align-items: start; }
.bitwy-editorial__copy { width: 100%; max-width: 43.75rem; min-width: 0; }
.bitwy-editorial__note { min-width: 0; padding: var(--space-5); border: 1px solid var(--color-terracotta); background: var(--color-surface); display: flex; flex-direction: column; gap: var(--space-3); }
.bitwy-editorial__note > * { min-width: 0; margin: 0; }

.bitwy-closing { padding-top: var(--space-7); }
.bitwy-closing__panel { padding: var(--space-7); border: var(--border-gold); background: var(--color-primary-deep); color: var(--color-surface); }
.bitwy-closing__copy { width: 100%; max-width: 43.75rem; margin-inline: auto; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.bitwy-closing__copy > * { min-width: 0; margin: 0; }
.bitwy-closing h2 { color: var(--color-surface); }
.bitwy-closing .eyebrow { color: #ead9af; }
.bitwy-closing__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.bitwy-closing__actions > * { min-width: 0; }
.bitwy-closing .button--secondary { background: transparent; color: var(--color-surface); border-color: var(--color-gold); }
.bitwy-closing .button--secondary:hover { background: var(--color-surface); color: var(--color-primary); }

@media (max-width: 67.5rem) {
  .bitwy-compass__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bitwy-terrain__map { aspect-ratio: auto; overflow: visible; border: 0; background: transparent; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
  .bitwy-terrain__map > img { grid-column: 1 / -1; height: auto; aspect-ratio: 16 / 7; border: var(--border); }
  .bitwy-map-point { position: static; width: auto; border: var(--border); background: var(--color-surface); transform: none; }
  .bitwy-map-line { display: none; }
  .bitwy-principle--one, .bitwy-principle--two, .bitwy-principle--three, .bitwy-principle--four { grid-column: span 6; }
  .bitwy-principle--five { grid-column: span 6; }
}

@media (max-width: 62.5rem) {
  .bitwy-hero { min-height: auto; }
  .bitwy-hero { display: flex; flex-direction: column; }
  .bitwy-hero__image { position: relative; height: auto; aspect-ratio: 16 / 10; object-position: 60% 45%; }
  .bitwy-hero__shade { position: absolute; inset: 0 auto auto 0; width: 100%; height: 100%; background: linear-gradient(180deg, rgba(16,43,72,.05) 0%, rgba(16,43,72,.6) 100%); }
  .bitwy-hero__content { width: 100%; margin: 0; padding: var(--space-6) var(--gutter); background: var(--color-primary-deep); grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .bitwy-hero__panel { max-width: 43.75rem; padding: 0; border: 0; background: transparent; }
  .bitwy-hero__caption { justify-self: start; align-self: auto; width: 100%; max-width: 18.75rem; }
  .bitwy-sequence__layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .bitwy-sequence__questions { order: -1; flex-direction: row; overflow-x: auto; white-space: nowrap; }
  .bitwy-sequence__questions .eyebrow { width: 100%; flex-basis: 100%; }
  .bitwy-sequence__questions a { flex: 0 0 auto; }
  .bitwy-alliance__layout { grid-template-columns: minmax(0, 1fr); }
  .bitwy-alliance__figure { width: min(100%, 37.5rem); }
}

@media (max-width: 60rem) {
  .bitwy-defense__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .bitwy-editorial__layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .bitwy-editorial__note { width: 100%; }
}

@media (max-width: 52.5rem) {
  .bitwy-paths__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 47.5rem) {
  .bitwy-after__list > article { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .bitwy-after__list > article { padding: var(--space-4); }
}

@media (max-width: 42.5rem) {
  .bitwy-principles__grid { grid-template-columns: minmax(0, 1fr); }
  .bitwy-principle--one, .bitwy-principle--two, .bitwy-principle--three, .bitwy-principle--four, .bitwy-principle--five { grid-column: 1; }
  .bitwy-alliance__roles { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 37.5rem) {
  .bitwy-hero h1 { font-size: clamp(3.25rem, 14vw, 3.75rem); }
  .bitwy-hero__lead { font-size: var(--text-lead); }
  .bitwy-compass__grid, .bitwy-paths__grid { grid-template-columns: minmax(0, 1fr); }
  .bitwy-terrain__map { grid-template-columns: minmax(0, 1fr); }
  .bitwy-terrain__map > img { aspect-ratio: 4 / 3; object-position: 55% 50%; }
  .bitwy-terrain__exit { padding: var(--space-4); grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
  .bitwy-step { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .bitwy-step__number { width: 2.5rem; height: 2.5rem; }
  .bitwy-step:not(:last-child)::before { top: 2.6rem; left: 1.25rem; }
  .bitwy-defense__report, .bitwy-closing__panel { padding: var(--space-5); }
  .bitwy-closing__actions { width: 100%; flex-direction: column; }
  .bitwy-closing__actions > .button { width: 100%; min-height: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .bitwy-map-point:hover, .bitwy-map-point:focus, .bitwy-principle:hover, .bitwy-principle:focus-within { transform: none; }
}
