:root {
  color-scheme: dark;
  --bg: #07090a;
  --surface: #0b0e10;
  --text: #f4f5f3;
  --muted: #afb4b6;
  --line: rgba(255, 255, 255, .18);
  --amber: #e65f00;
  --green: #3ee6a2;
  --max: 112rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, "Segoe UI", Arial, sans-serif; }
a { color: inherit; }
.skip-link { position: fixed; z-index: 99; top: .75rem; left: .75rem; padding: .8rem 1rem; background: var(--text); color: var(--bg); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: absolute; inset: 0 0 auto; z-index: 10; height: 5.25rem; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(1.25rem, 3vw, 3.5rem); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(0,0,0,.62), transparent); }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; text-transform: uppercase; font-weight: 800; letter-spacing: .23em; font-size: .93rem; line-height: 1.05; }
.primary-nav { display: flex; gap: clamp(1.4rem, 3vw, 3.5rem); }
.primary-nav a { position: relative; padding: 1.9rem 0; color: #e5e7e7; text-decoration: none; font-size: .95rem; }
.primary-nav a::after { content: ""; position: absolute; right: 0; bottom: 1.2rem; left: 0; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.primary-nav a:hover::after, .primary-nav a:focus-visible::after { transform: scaleX(1); }
.nav-toggle { display: none; border: 1px solid var(--line); background: rgba(0,0,0,.4); color: var(--text); padding: .65rem .8rem; font: inherit; text-transform: uppercase; letter-spacing: .12em; }

.hero { min-height: 38rem; height: min(68vh, 48rem); display: grid; align-items: center; background: #060809 url("/assets/generals-command-center.png") center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; height: min(68vh, 48rem); min-height: 38rem; pointer-events: none; background: linear-gradient(90deg, rgba(3,4,5,.96) 0%, rgba(3,4,5,.83) 28%, rgba(3,4,5,.24) 51%, rgba(3,4,5,0) 72%); }
.hero-content { position: relative; z-index: 1; width: min(46rem, 91vw); margin: 4.8rem 0 0 clamp(1.25rem, 3vw, 3.5rem); }
h1, h2, h3 { margin: 0; text-transform: uppercase; }
h1 { width: 135%; max-width: none; white-space: nowrap; transform: scaleX(.74); transform-origin: left center; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: clamp(4rem, 8.1vw, 9.5rem); font-weight: 800; letter-spacing: -.035em; line-height: .88; }
.hero-content > p { max-width: 37rem; margin: 2rem 0 2.5rem; color: #c5c9ca; font-size: clamp(1.05rem, 1.4vw, 1.35rem); line-height: 1.5; }
.hero-actions { display: flex; align-items: center; gap: 2.4rem; }
.button, .text-link { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; text-decoration: none; }
.button { display: inline-flex; min-height: 3.4rem; align-items: center; justify-content: center; padding: .9rem 2rem; border: 1px solid var(--amber); }
.button-primary { background: var(--amber); color: white; }
.button-primary:hover, .button-primary:focus-visible { background: #ff7620; border-color: #ff7620; }
.text-link { padding: .9rem 0; border-bottom: 1px solid var(--amber); font-size: .92rem; }

.status-band { display: grid; grid-template-columns: 13rem 1fr; align-items: stretch; border-block: 1px solid var(--line); text-transform: uppercase; letter-spacing: .16em; font-size: .69rem; }
.status-band > p { margin: 0; display: flex; align-items: center; padding: 1.35rem clamp(1.25rem, 3vw, 3.5rem); white-space: nowrap; }
.status-band ul { display: grid; grid-template-columns: repeat(7, minmax(9.5rem, 1fr)); margin: 0; padding: 0; overflow-x: auto; list-style: none; }
.status-band li { border-left: 1px solid var(--line); }
.status-band a { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: 1.35rem 1.5rem; text-decoration: none; }
.status-band strong { color: var(--muted); font-size: .58rem; font-weight: 600; }
.status-band strong::before { content: ""; display: inline-block; width: .42rem; height: .42rem; margin-right: .55rem; border-radius: 50%; background: #8b9295; }
.status-band strong.live::before { background: var(--green); box-shadow: 0 0 .7rem rgba(62,230,162,.45); }

.projects { max-width: var(--max); margin: 0 auto; padding: clamp(2.8rem, 4vw, 4.5rem) clamp(1.25rem, 3vw, 3.5rem) clamp(4rem, 7vw, 8rem); }
.section-heading { display: flex; align-items: center; gap: 2rem; margin-bottom: 2.8rem; }
.section-heading h2 { font-size: clamp(2rem, 3vw, 3.5rem); letter-spacing: .14em; white-space: nowrap; }
.section-heading span { width: 100%; height: 1px; background: linear-gradient(90deg, var(--line), var(--line) 96%, var(--amber) 96%); }
.project-list { display: grid; grid-template-columns: repeat(5, 1fr); border-block: 1px solid var(--line); }
.project-list-expanded { grid-template-columns: repeat(4, 1fr); }
.project-list a { position: relative; min-height: 17rem; display: grid; align-content: start; padding: 1.4rem; border-right: 1px solid var(--line); text-decoration: none; transition: background .2s ease, transform .2s ease; }
.project-list a:first-child { border-left: 1px solid var(--line); }
.project-list a:hover, .project-list a:focus-visible { background: #101416; transform: translateY(-.35rem); }
.project-list span { color: var(--amber); font-size: .7rem; letter-spacing: .15em; }
.project-list h3 { margin-top: 4.5rem; font-size: 1.25rem; letter-spacing: .12em; }
.project-list p { color: var(--muted); font-size: .86rem; line-height: 1.55; }
.project-list b { position: absolute; right: 1.4rem; bottom: 1.4rem; font-size: 1.4rem; font-weight: 400; }
.fabric { max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.25rem, 3vw, 3.5rem) clamp(4rem, 7vw, 8rem); }
.fabric-intro { max-width: 52rem; margin: -1rem 0 2.5rem; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.fabric-flow { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); }
.fabric-flow li { position: relative; min-height: 12rem; padding: 1.5rem; border-right: 1px solid var(--line); }
.fabric-flow li:last-child { border-right: 0; }
.fabric-flow li:not(:last-child)::after { content: "→"; position: absolute; z-index: 1; top: 50%; right: -.72rem; width: 1.4rem; height: 1.4rem; display: grid; place-items: center; background: var(--bg); color: var(--amber); }
.fabric-flow span { color: var(--green); text-transform: uppercase; letter-spacing: .14em; font-size: .63rem; }
.fabric-flow strong { display: block; margin-top: 2.3rem; text-transform: uppercase; letter-spacing: .1em; }
.fabric-flow p { color: var(--muted); font-size: .82rem; line-height: 1.55; }
footer { padding: 2rem clamp(1.25rem, 3vw, 3.5rem); border-top: 1px solid var(--line); color: var(--muted); text-transform: uppercase; letter-spacing: .16em; font-size: .68rem; }

:focus-visible { outline: 2px solid #ff8b3d; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
@media (max-width: 68rem) {
  .status-band { grid-template-columns: 1fr; }
  .status-band ul { grid-template-columns: repeat(2, 1fr); }
  .project-list, .project-list-expanded { grid-template-columns: repeat(2, 1fr); }
  .fabric-flow { grid-template-columns: repeat(2, 1fr); }
  .fabric-flow li:nth-child(2) { border-right: 0; }
  .fabric-flow li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 48rem) {
  .site-header { height: 4.5rem; }
  .nav-toggle { display: block; }
  .primary-nav { position: absolute; top: 4.5rem; right: 0; left: 0; display: none; flex-direction: column; gap: 0; padding: .6rem 1.25rem 1rem; background: rgba(5,7,8,.98); border-bottom: 1px solid var(--line); }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: .75rem 0; }
  .primary-nav a::after { bottom: .45rem; }
  .hero { min-height: 42rem; height: 84vh; background-position: 61% center; }
  .hero::before { min-height: 42rem; height: 84vh; background: linear-gradient(90deg, rgba(3,4,5,.95), rgba(3,4,5,.63) 73%, rgba(3,4,5,.25)); }
  .hero-content { margin-top: 4rem; }
  h1 { width: auto; max-width: 100%; white-space: normal; transform: none; font-size: clamp(4rem, 20vw, 6.5rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: .7rem; }
  .status-band ul, .project-list { grid-template-columns: 1fr; }
  .fabric-flow { grid-template-columns: 1fr; }
  .fabric-flow li { min-height: 10rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .fabric-flow li:last-child { border-bottom: 0; }
  .fabric-flow li:not(:last-child)::after { top: auto; right: 50%; bottom: -.72rem; transform: rotate(90deg); }
  .status-band li { border-top: 1px solid var(--line); border-left: 0; }
  .section-heading h2 { white-space: normal; }
  .project-list a { min-height: 13rem; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .project-list h3 { margin-top: 2.5rem; }
}
