/* Lanes of Fire: field-orders look. Olive, cream and soot, with tracer orange kept for the few things that move or matter. */
:root {
  --soot: #0d0e0b;
  --soot-2: #15170f;
  --panel: #1b1d14;
  --olive: #6b6a3d;
  --olive-deep: #3c3d22;
  --cream: #e8e3cf;
  --dim: #a9a58f;
  --rule: rgba(232, 227, 207, .16);
  --tracer: #ff7a2f;
  --display: "Saira Stencil One", "Arial Black", sans-serif;
  --body: "Barlow Condensed", "Arial Narrow", sans-serif;
  --gut: clamp(18px, 4.5vw, 72px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--soot); color: var(--cream);
  font: 400 clamp(18px, 1.25vw + 12px, 22px)/1.5 var(--body); letter-spacing: .01em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
:focus-visible { outline: 2px solid var(--tracer); outline-offset: 3px; }

/* paper grain over everything */
.grain {
  position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: 60px; padding: 0 var(--gut);
  display: flex; align-items: center; gap: 28px;
  background: linear-gradient(rgba(13, 14, 11, .92), rgba(13, 14, 11, .72)); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}
.bar__mark img { height: 20px; width: auto; }
.bar__nav { display: flex; gap: clamp(14px, 2.2vw, 34px); margin-left: auto; }
.bar__nav a {
  text-decoration: none; text-transform: uppercase; font-weight: 600; font-size: 15px; letter-spacing: .16em; color: var(--dim);
  padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.bar__nav a:hover { color: var(--cream); border-color: var(--olive); }
.bar__status { font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.bar__status i { display: inline-block; width: 8px; height: 8px; margin-right: 9px; background: var(--tracer); border-radius: 50%; animation: pulse 2.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(100svh, 1200px); display: grid; align-items: end; padding: 120px var(--gut) clamp(70px, 10vh, 120px); overflow: hidden; isolation: isolate; }
.hero__art { position: absolute; inset: 0; z-index: -3; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; animation: drift 38s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.04) translate3d(-1%, 0, 0); } to { transform: scale(1.12) translate3d(1.5%, -1%, 0); } }
.hero__shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(13, 14, 11, .92) 0%, rgba(13, 14, 11, .62) 38%, rgba(13, 14, 11, 0) 70%),
    linear-gradient(0deg, var(--soot) 0%, rgba(13, 14, 11, 0) 34%),
    linear-gradient(180deg, rgba(13, 14, 11, .7) 0%, rgba(13, 14, 11, 0) 22%);
}
.hero__ticks {
  position: absolute; right: var(--gut); top: 92px; display: flex; flex-direction: column; gap: 4px; text-align: right;
  font-size: 13px; font-weight: 600; letter-spacing: .24em; color: rgba(232, 227, 207, .55);
}
.hero__ticks span::after { content: ""; display: inline-block; width: 22px; height: 1px; margin-left: 10px; vertical-align: middle; background: currentColor; }
.hero__body { max-width: 760px; }
.stamp { display: inline-block; padding: 5px 14px 4px; border: 1px solid var(--olive); color: var(--cream); background: rgba(60, 61, 34, .55); font-weight: 600; font-size: 15px; letter-spacing: .3em; text-transform: uppercase; }
.hero h1 { margin: 22px 0 26px; max-width: min(640px, 86vw); filter: drop-shadow(0 6px 26px rgba(0, 0, 0, .7)); }
.hero__line { font-family: var(--display); font-size: clamp(26px, 3.3vw, 46px); line-height: 1.08; text-transform: uppercase; letter-spacing: .02em; text-shadow: 0 2px 18px rgba(0, 0, 0, .8); }
.hero__sub { margin-top: 18px; max-width: 30em; color: var(--dim); font-size: clamp(18px, 1.4vw + 10px, 23px); }
.hero__row { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.btn {
  position: relative; display: inline-block; padding: 14px 30px 13px; background: var(--cream); color: var(--soot); text-decoration: none;
  font-family: var(--display); font-size: 19px; letter-spacing: .08em; text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)); transition: background .2s, transform .2s;
}
.btn:hover { background: var(--tracer); transform: translateY(-2px); }
.chip { font-weight: 600; font-size: 15px; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); padding-left: 18px; border-left: 2px solid var(--olive); }
.hero__down { position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px; margin-left: -13px; border: 1px solid var(--rule); border-radius: 14px; }
.hero__down span { position: absolute; left: 50%; top: 8px; width: 2px; height: 9px; margin-left: -1px; background: var(--cream); animation: drop 1.8s infinite; }
@keyframes drop { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }

/* tracer fire crossing the picture */
.tracers { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.tracers i {
  position: absolute; left: -30%; width: 22vw; max-width: 340px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 122, 47, 0), rgba(255, 150, 70, .95) 70%, #fff3d6);
  box-shadow: 0 0 12px rgba(255, 122, 47, .8); opacity: 0; transform: rotate(-7deg); animation: tracer 7s linear infinite;
}
.tracers i:nth-child(1) { top: 58%; animation-delay: 1.2s; }
.tracers i:nth-child(2) { top: 61%; animation-delay: 1.45s; }
.tracers i:nth-child(3) { top: 44%; animation-delay: 4.1s; transform: rotate(-4deg); }
.tracers i:nth-child(4) { top: 66%; animation-delay: 5.3s; transform: rotate(-10deg); }
.tracers i:nth-child(5) { top: 47%; animation-delay: 4.3s; transform: rotate(-4deg); }
@keyframes tracer { 0% { left: -30%; opacity: 0; } 2% { opacity: 1; } 11% { left: 115%; opacity: 1; } 12%, 100% { left: 115%; opacity: 0; } }

/* load-in */
.rise { opacity: 0; transform: translateY(18px); animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- sections ---------- */
.sec { position: relative; padding: clamp(70px, 11vw, 150px) var(--gut); border-top: 1px solid var(--rule); }
.sec::before { /* map-grid ticks down the left margin */
  content: ""; position: absolute; left: calc(var(--gut) / 2 - 4px); top: 0; bottom: 0; width: 8px; opacity: .5;
  background: repeating-linear-gradient(180deg, var(--rule) 0 1px, transparent 1px 46px);
}
.sec__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px 22px; margin-bottom: clamp(30px, 5vw, 64px); }
.num { font-family: var(--display); font-size: clamp(54px, 9vw, 132px); line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--olive); }
.sec h2 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 5.4vw, 76px); line-height: .95; text-transform: uppercase; letter-spacing: .02em; }
.sec__note { margin-left: auto; font-size: 15px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.lead { font-size: clamp(22px, 1.6vw + 14px, 31px); line-height: 1.3; color: var(--cream); }
.sec p + p { margin-top: 1em; }
.sec p { color: var(--dim); }
.sec p.lead { color: var(--cream); }

.plate { position: relative; }
.plate img { width: 100%; filter: saturate(.92) contrast(1.04); }
.plate::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(232, 227, 207, .28); pointer-events: none; }
.plate figcaption, .shot span {
  position: absolute; left: 22px; bottom: 20px; padding: 3px 10px 2px; background: rgba(13, 14, 11, .78);
  font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--cream);
}

/* 01 */
.ground__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.ground .plate { transform: rotate(1.2deg); box-shadow: 0 30px 60px rgba(0, 0, 0, .55); }
.facts { margin-top: 34px; display: grid; grid-template-columns: repeat(3, auto); gap: 8px 30px; justify-content: start; border-top: 1px solid var(--rule); padding-top: 20px; }
.facts dt { font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--olive); }
.facts dd { font-weight: 600; font-size: 20px; }

/* 02 */
.command { background: linear-gradient(180deg, var(--soot-2), var(--soot)); }
.orders { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--rule); }
.orders li { position: relative; padding: 34px 28px 38px; border-right: 1px solid var(--rule); transition: background .3s; }
.orders li:last-child { border-right: 0; }
.orders li:hover { background: rgba(107, 106, 61, .14); }
.orders li::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--tracer); transition: width .45s; }
.orders li:hover::after { width: 100%; }
.orders__n { display: grid; place-items: center; width: 44px; height: 34px; margin-bottom: 22px; background: var(--olive-deep); border: 2px solid var(--cream); font-family: var(--display); font-size: 20px; }
.orders h3 { font-family: var(--display); font-weight: 400; font-size: clamp(21px, 1.5vw + 8px, 27px); line-height: 1.1; text-transform: uppercase; margin-bottom: 12px; }

/* 03 */
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 14px; }
.shot { position: relative; display: block; overflow: hidden; background: var(--panel); aspect-ratio: 16 / 9; }
.shot--wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1), filter .4s; filter: saturate(.9); }
.shot:hover img { transform: scale(1.06); filter: saturate(1.05); }
.shot::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(232, 227, 207, .18); transition: inset .3s, border-color .3s; pointer-events: none; }
.shot:hover::after { inset: 8px; border-color: var(--tracer); }
.shot span { left: 14px; bottom: 14px; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.shot:hover span, .shot:focus-visible span { opacity: 1; transform: none; }

/* 04 */
.forces__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); margin-bottom: clamp(30px, 5vw, 70px); }
.army { background: var(--panel); border-top: 5px solid var(--olive); }
.army--ge { border-top-color: #6c7074; }
.army header { display: flex; align-items: center; gap: 14px; padding: 22px 26px 18px; border-bottom: 1px solid var(--rule); }
.army__star { font-size: 26px; line-height: 1; color: var(--cream); }
.army h3 { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 2.4vw, 36px); text-transform: uppercase; }
.army li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 26px; border-bottom: 1px dashed var(--rule); }
.army li:last-child { border-bottom: 0; }
.army b { font-weight: 600; font-size: 21px; }
.army i { font-style: normal; font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.plate--band img { aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 62%; }

/* 05 */
.series__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 6vw, 90px); align-items: center; }
.tags { display: flex; gap: clamp(18px, 3vw, 44px); }
.tags figure { text-align: center; }
.tags img { width: clamp(120px, 15vw, 210px); filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .6)); transition: transform .4s; }
.tags figure:hover img { transform: rotate(-4deg) translateY(-6px); }
.tags figcaption { margin-top: 14px; font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.tags b { display: block; font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: .04em; color: var(--cream); }
.tags .is-later img { opacity: .5; filter: grayscale(.6) drop-shadow(0 14px 22px rgba(0, 0, 0, .6)); }

/* ---------- footer ---------- */
.foot { padding: 70px var(--gut) 60px; text-align: center; border-top: 1px solid var(--rule); background: var(--soot-2); color: var(--dim); }
.foot img { width: 96px; height: auto; margin: 0 auto 18px; }
.foot__name { font-family: var(--display); font-size: 26px; text-transform: uppercase; color: var(--cream); }
.foot__small { margin-top: 18px; font-size: 15px; line-height: 1.6; opacity: .8; }

/* ---------- picture viewer ---------- */
.box { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 60px 16px 28px; background: rgba(8, 9, 7, .95); }
.box[hidden] { display: none; }
.box figure { justify-self: center; max-width: min(1600px, 100%); }
.box img { max-height: calc(100svh - 150px); width: auto; margin: 0 auto; border: 1px solid var(--rule); }
.box figcaption { margin-top: 14px; text-align: center; font-size: 15px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); }
.box button { font: 600 16px var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--cream); background: none; border: 1px solid var(--rule); padding: 12px 16px; cursor: pointer; transition: border-color .2s, color .2s; }
.box button:hover { border-color: var(--tracer); color: var(--tracer); }
.box__x { position: absolute; right: 16px; top: 14px; }

/* scroll reveal (only when the script is running: without it everything simply shows) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .ground .plate.reveal { transform: rotate(1.2deg) translateY(26px); }
.js .ground .plate.reveal.in { transform: rotate(1.2deg); }

/* ---------- smaller screens ---------- */
@media (max-width: 1000px) {
  .bar__nav { display: none; }
  .bar__status { margin-left: auto; }
  .ground__grid, .series__grid { grid-template-columns: 1fr; }
  .orders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .orders li:nth-child(2) { border-right: 0; }
  .orders li:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shot span { opacity: 1; transform: none; }
}
@media (max-width: 700px) {
  .hero { padding-top: 100px; }
  .hero__shade { background: linear-gradient(0deg, var(--soot) 4%, rgba(13, 14, 11, .72) 48%, rgba(13, 14, 11, .25) 100%); }
  .hero__ticks { display: none; }
  .hero__art img { object-position: 62% 30%; }
  .sec::before { display: none; }
  .sec__note { margin-left: 0; width: 100%; }
  .orders, .forces__grid { grid-template-columns: 1fr; }
  .orders li { border-right: 0; border-bottom: 1px solid var(--rule); }
  .orders li:last-child { border-bottom: 0; }
  .shots { grid-template-columns: 1fr; gap: 10px; }
  .shot--wide { grid-column: auto; grid-row: auto; aspect-ratio: 16 / 9; }
  .facts { grid-template-columns: 1fr; }
  .ground .plate, .js .ground .plate.reveal, .js .ground .plate.reveal.in { transform: none; }
  .box { grid-template-columns: 1fr 1fr; padding: 60px 10px 16px; }
  .box figure { grid-column: 1 / -1; grid-row: 1; }
  .army li { padding: 12px 18px; }
  .army b { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise, .js .reveal { opacity: 1; transform: none; }
  .tracers { display: none; }
}

/* 03 the campaign: the map on the left this time, so the page swings from side to side */
.campaign__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.campaign .plate { transform: rotate(-1deg); box-shadow: 0 30px 60px rgba(0, 0, 0, .55); }
.js .campaign .plate.reveal { transform: rotate(-1deg) translateY(26px); }
.js .campaign .plate.reveal.in { transform: rotate(-1deg); }
.shot--plain { aspect-ratio: 16 / 9; }
.shot--plain span { opacity: 1; transform: none; }
@media (max-width: 1000px) { .campaign__grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .campaign .plate, .js .campaign .plate.reveal, .js .campaign .plate.reveal.in { transform: none; } }
