/* =============================================================
   MAJ 12 Official — page styles
   Used only by /maj12.html. The studio's styles.css is not loaded
   on this page, so nothing here affects the rest of the site.
============================================================= */

:root {
  --bg:        #0c0e0b;   /* charcoal */
  --bg-2:      #10130e;
  --surface:   #151912;
  --surface-2: #1b2017;
  --line:      #2a3122;   /* olive-grey rules */
  --line-2:    #3c4530;
  --olive:     #5d6b3b;
  --olive-2:   #8a9a5b;
  --amber:     #c99232;   /* muted amber */
  --amber-2:   #e2aa4b;
  --amber-ink: #1a1408;
  --bone:      #e0d9c4;   /* main text, like the skull */
  --bone-2:    #b9b29d;
  --muted:     #8d8875;

  --font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --wrap: 1160px;
  --bar-h: 64px;

  /* Film grain, drawn by the browser (no image download) */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .88 0 0 0 0 .85 0 0 0 0 .76 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* Worn-ink mask for the stamp and big headline */
  --grit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.32' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -17 12.4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");

  color-scheme: dark;
}

html { background: var(--bg); }

body.maj12 {
  min-height: 100vh;
  overflow-x: clip;
  background:
    radial-gradient(1100px 680px at 82% -8%, rgba(93,107,59,.20), transparent 62%),
    radial-gradient(900px 640px at -10% 38%, rgba(201,146,50,.05), transparent 60%),
    var(--bg);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

/* Grain sits over everything, very faintly */
body.maj12::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background-image: var(--noise);
  opacity: .05;
}

::selection { background: rgba(201,146,50,.35); color: #fff; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 300;
  padding: .55rem .9rem;
  background: var(--amber);
  color: var(--amber-ink);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.wrap { width: min(var(--wrap), calc(100% - 2.5rem)); margin-inline: auto; }

h1, h2, h3 {
  font-family: var(--font-head);
  text-transform: uppercase;
  line-height: 1;
  color: var(--bone);
  text-wrap: balance;
}
body.maj12 p { text-wrap: pretty; }
h2 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); font-weight: 800; letter-spacing: .01em; }
h3 { font-size: 1.4rem; font-weight: 700; letter-spacing: .04em; }
strong { color: var(--bone); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn svg { width: 1.3em; height: 1.3em; flex: none; }
.btn-lg { font-size: 1.15rem; padding: 1rem 1.55rem; }
.btn-sm { font-size: .95rem; padding: .62rem 1rem; }

.btn-discord {
  background: var(--amber);
  color: var(--amber-ink);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.25), 0 12px 32px -14px rgba(201,146,50,.75);
}
.btn-discord:hover { background: var(--amber-2); transform: translateY(-1px); }

.btn-ghost {
  background: rgba(93,107,59,.12);
  border-color: var(--line-2);
  color: var(--bone);
}
.btn-ghost:hover { background: rgba(93,107,59,.24); border-color: var(--olive-2); }

/* For later, once a real support link exists */
.btn-support {
  background: transparent;
  border-color: var(--amber);
  color: var(--amber);
}
.btn-support:hover { background: rgba(201,146,50,.12); color: var(--amber-2); }

.btn-disabled,
.btn[disabled] {
  cursor: not-allowed;
  color: var(--muted);
  border: 1px dashed var(--line-2);
  background: repeating-linear-gradient(-45deg, rgba(201,146,50,.07) 0 10px, transparent 10px 20px);
  box-shadow: none;
  transform: none;
}

/* ---------- "Coming soon" tag ---------- */
.tag-soon {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .34rem .6rem .34rem .5rem;
  border: 1px solid rgba(201,146,50,.45);
  background: rgba(201,146,50,.07);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
}
.tag-soon::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  background: repeating-linear-gradient(-45deg, var(--amber) 0 2px, transparent 2px 4px);
}

.text-link,
.inline-link { color: var(--amber); border-bottom: 1px solid rgba(201,146,50,.45); transition: color .15s, border-color .15s; }
.text-link:hover,
.inline-link:hover { color: var(--amber-2); border-color: var(--amber-2); }
.text-link {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding-bottom: 2px;
}

/* ---------- Panels with HUD corner ticks ---------- */
.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(27,32,23,.92), rgba(21,25,18,.92));
  border: 1px solid var(--line);
}
.panel::before,
.panel::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 0 solid var(--amber);
  pointer-events: none;
}
.panel::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.panel::after { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12,14,11,.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background-color .2s, border-color .2s;
}
.topbar.is-scrolled { background: rgba(12,14,11,.92); border-bottom-color: var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 1.75rem; height: var(--bar-h); }
.topbar-brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; }
.topbar-brand img { width: 40px; height: 40px; }
.topbar-name {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.topbar-name span { margin-left: .2em; color: var(--amber); font-size: .78em; font-weight: 600; letter-spacing: .16em; }
.topbar-nav { display: flex; gap: 1.6rem; }
.topbar-nav a {
  padding-block: .4rem;
  border-bottom: 1px solid transparent;
  color: var(--bone-2);
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: color .15s, border-color .15s;
}
.topbar-nav a:hover { color: var(--amber-2); border-bottom-color: var(--amber); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(3.5rem, 8vw, 7rem);
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(138,154,91,.08) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(138,154,91,.08) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 75% at 72% 45%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 75% at 72% 45%, #000 15%, transparent 72%);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.readout {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  padding: .45rem .75rem;
  border: 1px solid var(--line-2);
  background: rgba(21,25,18,.75);
  color: var(--bone-2);
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.readout > span:not(.status-dot) { white-space: nowrap; }
.readout .sep { color: var(--olive-2); }
.status-dot {
  width: 8px;
  height: 8px;
  margin-right: .2rem;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(201,146,50,.18), 0 0 12px rgba(201,146,50,.8);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.hero-title {
  margin-top: 1.5rem;
  font-size: clamp(4.4rem, 12.5vw, 8.8rem);
  font-weight: 800;
  line-height: .84;
  letter-spacing: .01em;
  text-shadow: 0 3px 0 rgba(0,0,0,.45);
}
.hero-title-main {
  display: block;
  -webkit-mask-image: var(--grit);
  mask-image: var(--grit);
}
.hero-title-sub {
  display: block;
  margin-top: .32em;
  padding-left: .06em;
  color: var(--amber);
  font-size: .34em;
  font-weight: 600;
  letter-spacing: .44em;
}
.hero-lead {
  max-width: 32ch;
  margin-top: 1.7rem;
  font-size: clamp(1.18rem, 2.1vw, 1.42rem);
  line-height: 1.5;
}
.hero-note { max-width: 46ch; margin-top: .9rem; color: var(--bone-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 2.4rem;
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px dashed var(--line-2);
}
.hero-meta dt,
.spec dt {
  margin-bottom: .5rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero-emblem { display: grid; justify-items: center; }
.emblem { position: relative; width: min(100%, 440px); aspect-ratio: 1; }
.emblem::before {                      /* amber glow behind the badge */
  content: "";
  position: absolute;
  inset: 6%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,146,50,.30), rgba(201,146,50,0) 66%);
  filter: blur(28px);
}
.emblem::after {                       /* range ring */
  content: "";
  position: absolute;
  inset: -7%;
  border: 1px dashed rgba(138,154,91,.35);
  border-radius: 50%;
  pointer-events: none;
}
.emblem-sweep {                        /* slow radar sweep around the ring */
  position: absolute;
  inset: -7%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg 290deg, rgba(201,146,50,.05) 320deg, rgba(201,146,50,.32) 359deg, transparent 360deg);
  -webkit-mask-image: radial-gradient(circle, transparent 60%, #000 61%);
  mask-image: radial-gradient(circle, transparent 60%, #000 61%);
  animation: sweep 9s linear infinite;
}
@keyframes sweep { to { transform: rotate(1turn); } }
.emblem-img {
  position: relative;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 28px 44px rgba(0,0,0,.65));
}
.emblem-caption {
  margin-top: 2.6rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.emblem-caption span { color: var(--olive-2); }

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding-block: clamp(4rem, 9vw, 7.5rem);
  border-top: 1px solid rgba(42,49,34,.7);
  scroll-margin-top: var(--bar-h);
}
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.kicker {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.1rem;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.kicker::after {
  content: "";
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, rgba(201,146,50,.6), transparent);
}
.kicker-num {
  padding: .2rem .45rem;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--bone);
}
.kicker-chip {
  padding: .18rem .45rem;
  border: 1px solid var(--line-2);
  color: var(--bone-2);
  letter-spacing: .14em;
}
.section-text { max-width: 58ch; margin-top: 1rem; color: var(--bone-2); }

/* 01 Briefing */
.briefing {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.briefing .section-head { margin-bottom: 0; }
.briefing-text p { color: var(--bone-2); font-size: 1.1rem; }
.briefing-text p:first-child { color: var(--bone); font-size: 1.2rem; }
.briefing-text p + p { margin-top: 1.1rem; }

.focus-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.focus-card { padding: 1.5rem 1.5rem 1.6rem; }
.focus-code {
  display: block;
  margin-bottom: 1.1rem;
  color: var(--olive-2);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.focus-card p { margin-top: .55rem; color: var(--bone-2); }

/* 02 Server information */
.doc-head,
.dossier-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1rem;
  padding: .85rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: rgba(12,14,11,.5);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.dossier-head b { color: var(--amber); font-weight: 600; }
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);   /* shows through the gaps as cell borders */
}
.spec { padding: 1.15rem 1.25rem 1.3rem; background: var(--surface); }
.spec dd {
  color: var(--bone);
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.1;
  text-transform: uppercase;
}
.spec dd.is-amber { color: var(--amber); }
.spec dd a { color: var(--amber); border-bottom: 1px solid rgba(201,146,50,.4); }
.spec dd a:hover { color: var(--amber-2); }

/* 03 Rules + 04 Mods */
.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split .section-head { margin-bottom: 0; }
.split-reverse { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.split-reverse > :first-child { order: 2; }

.redacted { overflow: hidden; }
.redacted-lines { display: grid; gap: .9rem; padding: 1.5rem 1.4rem 1.9rem; }
.redacted-lines p { display: flex; align-items: center; gap: .9rem; }
.ln { color: var(--muted); font-family: var(--font-mono); font-size: .72rem; }
.bar {
  display: block;
  width: var(--w);
  height: .85rem;
  background: #050605;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}
.stamp {
  position: absolute;
  top: 56%;
  left: 50%;
  padding: .45rem 1.1rem .35rem;
  border: 3px solid var(--amber);
  outline: 1px solid rgba(201,146,50,.55);
  outline-offset: 4px;
  background: rgba(12,14,11,.6);
  color: var(--amber);
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 4.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(-7deg);
  -webkit-mask-image: var(--grit);
  mask-image: var(--grit);
}

.terminal { overflow: hidden; }
.led {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: .6rem;
  border-radius: 50%;
  background: var(--olive-2);
  box-shadow: 0 0 8px rgba(138,154,91,.9);
  vertical-align: 1px;
}
.terminal-body {
  margin: 0;
  padding: 1.5rem 1.4rem 1.7rem;
  overflow-x: auto;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px);
  color: var(--bone-2);
  font-family: var(--font-mono);
  font-size: clamp(.82rem, 1.5vw, .95rem);
  line-height: 2;
  white-space: pre;
}
.terminal-body b { color: var(--bone); font-weight: 600; }
.terminal-body b.soon { color: var(--amber); }
.terminal-body .k { color: var(--olive-2); }
.cursor {
  display: inline-block;
  width: .6em;
  height: 1.15em;
  background: var(--amber);
  vertical-align: text-bottom;
  animation: blink 1.1s steps(2, jump-none) infinite;
}

/* 05 How to join */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.step { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; padding: 1.5rem 1.4rem 1.6rem; }
.step-num {
  color: transparent;
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  -webkit-text-stroke: 1px var(--olive-2);
}
.step.is-ready .step-num { -webkit-text-stroke-color: var(--amber); }
.step p { flex: 1; color: var(--bone-2); font-size: 1rem; }
.step .btn,
.step .tag-soon,
.step .text-link { margin-top: .35rem; }

/* 06 Support */
.supply {
  position: relative;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(760px 380px at 0% 0%, rgba(201,146,50,.09), transparent 62%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}
.supply-stripe {
  height: 8px;
  background: repeating-linear-gradient(-45deg, var(--amber) 0 12px, #14110a 12px 24px);
  opacity: .85;
}
.supply-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(1.75rem, 4.5vw, 3.25rem);
}
.supply-copy > p:not(.kicker):not(.supply-note) { max-width: 50ch; margin-top: 1.1rem; color: var(--bone-2); }
.supply-action { margin-top: 1.9rem; }
.supply-note {
  margin-top: .8rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .08em;
}
.terms {
  display: grid;
  align-self: start;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}
.terms li { padding: 1.15rem 1.3rem 1.25rem; background: var(--bg-2); }
.terms h3 { display: flex; align-items: center; gap: .65rem; font-size: 1.15rem; }
.terms h3::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--amber);
  transform: rotate(45deg);
}
.terms p { margin-top: .4rem; color: var(--bone-2); font-size: .98rem; }

/* Closing call to action */
.cta-band {
  padding-block: clamp(3.75rem, 8vw, 6.25rem);
  border-top: 1px solid var(--line);
  background: radial-gradient(720px 320px at 50% 100%, rgba(201,146,50,.13), transparent 70%);
  text-align: center;
}
.cta-inner h2 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
.cta-inner h2 span { display: block; margin-top: .15em; color: var(--amber); }
.cta-inner p { margin: 1rem auto 2rem; color: var(--bone-2); }

/* ---------- Footer ---------- */
.footer {
  padding-block: 2.5rem 2.25rem;
  border-top: 1px solid var(--line);
  background: #090b08;
  color: var(--muted);
  font-size: .9rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--bone);
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.footer-brand img { width: 44px; height: 44px; }
.footer-brand em { color: var(--amber); font-size: .78em; font-style: normal; font-weight: 600; letter-spacing: .16em; }
.footer-links { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.footer-links a,
.footer-links button {
  color: var(--bone-2);
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: color .15s;
}
.footer-links a:hover,
.footer-links button:hover { color: var(--amber-2); }
.brs-link {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  margin-top: 1.6rem;
  padding: .45rem .95rem .45rem .45rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  color: var(--bone-2);
  transition: border-color .15s, color .15s;
}
.brs-link:hover { border-color: var(--line-2); color: var(--bone); }
.brs-link img { width: auto; height: 28px; border-radius: 3px; }
.footer-legal { max-width: 82ch; margin-top: 1.3rem; font-size: .82rem; }
.footer-copy { margin-top: .45rem; font-size: .82rem; }

/* ---------- Cookie banner (built by /consent.js), restyled for this page ---------- */
.cookie-banner {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 200;
  border-top: 1px solid var(--line-2);
  background: rgba(16,19,14,.97);
  box-shadow: 0 -10px 40px rgba(0,0,0,.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: cookie-up .35s ease-out;
}
.cookie-banner::before {
  content: "";
  display: block;
  height: 3px;
  background: repeating-linear-gradient(-45deg, var(--amber) 0 8px, transparent 8px 16px);
  opacity: .7;
}
@keyframes cookie-up { from { transform: translateY(100%); } to { transform: none; } }
.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
  padding-block: 1rem;
}
.cookie-banner p { flex: 1; min-width: 260px; color: var(--bone-2); font-size: .9rem; line-height: 1.5; }
.cookie-banner a { color: var(--amber); text-decoration: underline; }
.cookie-banner-buttons { display: flex; gap: .6rem; }
.cookie-btn {
  padding: .6rem 1.2rem;
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background-color .15s, border-color .15s, color .15s;
}
.cookie-btn-accept { background: var(--amber); color: var(--amber-ink); }
.cookie-btn-accept:hover { background: var(--amber-2); }
.cookie-btn-decline { border: 1px solid var(--line-2); color: var(--bone-2); }
.cookie-btn-decline:hover { border-color: var(--olive-2); color: var(--bone); }

/* ---------- Scroll reveal (only when JS runs and motion is welcome) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
  }
  html.js .reveal.in-view { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .topbar-nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-emblem { order: -1; }
  .emblem { width: min(62vw, 340px); }
  .emblem-caption { display: none; }
  .hero-title { margin-top: 1.25rem; }
}
@media (max-width: 860px) {
  .briefing,
  .split,
  .supply-grid { grid-template-columns: 1fr; }
  .briefing { align-items: start; }
  .split-reverse > :first-child { order: 0; }
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .focus-grid { grid-template-columns: 1fr; }
}

/* ---------- Phone ---------- */
@media (max-width: 560px) {
  body.maj12 { font-size: 1rem; }
  .readout { gap: .35rem; padding: .45rem .6rem; font-size: .62rem; letter-spacing: .08em; }
  .emblem { width: min(62vw, 300px); }
  .hero-cta .btn { flex: 1 1 100%; }
  .steps { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .spec {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem;
  }
  .spec dt { margin-bottom: 0; }
  .spec dd { font-size: 1.15rem; text-align: right; }
  .dossier-head { padding-inline: 1rem; }
  .briefing-text p:first-child { font-size: 1.12rem; }
  .briefing-text p { font-size: 1.02rem; }
  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
  .cookie-banner-buttons { justify-content: flex-end; }
}
@media (max-width: 380px) {
  .topbar-name span { display: none; }
  .btn-sm { padding-inline: .8rem; }
}
