/* ============================================================
   Extreme Overkill Ltd — shared site stylesheet
   Company No. 17266165 · formerly WillsWay Collective Ltd
   ------------------------------------------------------------
   Palette:  Light theme: white base · Crimson #E0183C · Obsidian #0D0F12 text
   Type:     Space Grotesk (display/body) · JetBrains Mono (labels)
   ============================================================ */

:root {
  --ob:    #FFFFFF;   /* page background */
  --ob-2:  #F5F6F8;   /* alternate section / soft surface */
  --ob-3:  #FFFFFF;   /* cards */
  --line:  #E3E6EB;   /* hairlines */
  --line-2:#CBD1DA;
  --cr:    #E0183C;   /* extreme crimson (darkened slightly so text passes contrast on white) */
  --cr-d:  #B80F2E;   /* crimson hover */
  --cr-g:  rgba(224, 24, 60, 0.12);
  --wh:    #0D0F12;   /* strongest text: obsidian */
  --tx:    #2B3039;   /* body text */
  --mu:    #5A6270;   /* muted text */
  --ok:    #10864F;   /* status green */
  --radius: 14px;
  --max:   1140px;
  --mono:  'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans:  'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans); background: var(--ob); color: var(--tx);
  line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--cr); color: #fff; }
:focus-visible { outline: 2px solid var(--cr); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--cr); color: #fff; padding: .5rem 1rem; border-radius: 8px; text-decoration: none; }
.skip:focus { left: 8px; }

/* Faint engineering grid behind everything */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--ob-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--ob-2) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 0%, #000 0%, transparent 70%);
}

/* ── Type helpers ── */
.mono { font-family: var(--mono); }
.stag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--cr); margin-bottom: 1rem;
}
.stag::before { content: '//'; color: var(--mu); letter-spacing: 0; }
h1, h2, h3 { color: var(--wh); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.3rem); letter-spacing: -0.045em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); margin-bottom: 1rem; }
h3 { font-size: 1.1rem; letter-spacing: -0.01em; line-height: 1.3; }
.cr { color: var(--cr); }
.lede { font-size: clamp(1.02rem, 1.4vw, 1.16rem); color: var(--mu); line-height: 1.75; max-width: 60ch; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans); font-size: .92rem; font-weight: 600;
  padding: .82rem 1.35rem; border-radius: 10px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: background .18s, border-color .18s, transform .18s, color .18s;
}
.btn-p { background: var(--cr); color: #fff; }
.btn-p:hover { background: var(--cr-d); transform: translateY(-1px); }
.btn-o { background: transparent; color: var(--wh); border-color: var(--line-2); }
.btn-o:hover { border-color: var(--cr); color: var(--cr); }
.btn .arr { font-family: var(--mono); }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 68px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(16px, 5vw);
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s;
}
.nav.scrolled { border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand-wm { font-weight: 700; font-size: 1.02rem; letter-spacing: -0.04em; color: var(--wh); line-height: 1; text-transform: uppercase; }
.brand-sub { font-family: var(--mono); font-size: .6rem; letter-spacing: .3em; color: var(--mu); margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 1.9rem; list-style: none; }
.nav-links a { font-size: .88rem; color: var(--mu); text-decoration: none; transition: color .18s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--wh); }
.nav-links .btn { color: #fff; padding: .55rem 1rem; font-size: .84rem; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-2); color: var(--wh);
  width: 42px; height: 42px; border-radius: 10px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s, background .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav.open .nav-toggle span { background: transparent; }
.nav.open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ── HERO ── */
.hero { padding: 150px max(16px, 5vw) 96px; position: relative; overflow: hidden; }
.hero::after {
  content: ''; position: absolute; width: 620px; height: 620px; right: -160px; top: -120px;
  background: radial-gradient(circle, rgba(224, 24, 60, .10), transparent 62%); pointer-events: none; z-index: -1;
}
.hero-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.15fr .85fr; gap: 4rem; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; color: var(--mu);
  border: 1px solid var(--line); background: var(--ob-2); border-radius: 12px; padding: .45rem .9rem; margin-bottom: 1.8rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cr); box-shadow: 0 0 0 4px var(--cr-g); flex: none; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 4px rgba(16, 134, 79, .14); }
.hero h1 { margin-bottom: 1.6rem; }
.hero h1 .l2 { display: block; color: var(--cr); }
.hero .lede { margin-bottom: 2.2rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* Terminal status card */
.term {
  background: var(--ob-2); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(13, 15, 18, .18);
  overflow: hidden; font-family: var(--mono); font-size: .8rem;
}
/* The terminal card is deliberately dark: it's meant to look like a screen */
.term { --ob-2: #13161B; --ob-3: #1A1E25; --line: #262B34; --line-2: #343A45; --tx: #E8EAEE; --wh: #FFFFFF; --mu: #9BA2AE; --ok: #3DDC97; --cr: #FF3355; color: var(--tx); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: .7rem 1rem; border-bottom: 1px solid var(--line); background: var(--ob-3); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.term-bar i:first-child { background: var(--cr); }
.term-bar b { margin-left: auto; font-weight: 400; color: var(--mu); font-size: .7rem; letter-spacing: .06em; }
.term-body { padding: 1.2rem 1.25rem 1.35rem; line-height: 1.95; color: var(--tx); }
.term-body .pr { color: var(--cr); }
.term-body .k { color: var(--mu); display: inline-block; min-width: 11ch; }
.term-body .v { color: var(--wh); }
.term-body .g { color: var(--ok); }
.term-body .cm { color: #5E6674; }
.caret { display: inline-block; width: .6em; height: 1.05em; background: var(--cr); vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ── Ticker strip ── */
.strip { border-block: 1px solid var(--line); background: var(--ob-2); overflow: hidden; }
.strip-track { display: flex; gap: 3rem; width: max-content; padding: .95rem 0; animation: slide 38s linear infinite; }
.strip-track span { font-family: var(--mono); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mu); white-space: nowrap; }
.strip-track span::before { content: '■'; color: var(--cr); margin-right: 1rem; font-size: .6rem; vertical-align: 2px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ── Sections ── */
section { padding: 6.5rem max(16px, 5vw); }
.inner { max-width: var(--max); margin: 0 auto; }
.sec-head { max-width: 700px; margin-bottom: 3rem; }
.sec-head .lede { margin-top: .4rem; }
.alt { background: var(--ob-2); border-block: 1px solid var(--line); }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.card {
  position: relative; background: var(--ob-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .7rem;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--cr); transform: translateY(-3px); }
.card .num { font-family: var(--mono); font-size: .7rem; color: var(--cr); letter-spacing: .1em; }
.card p { font-size: .9rem; color: var(--mu); line-height: 1.65; }
.card .via { margin-top: auto; padding-top: .6rem; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mu); }
.card .via a { color: var(--wh); text-decoration: none; border-bottom: 1px solid var(--cr); }

/* Split layout */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 4.5rem; align-items: start; }
.prose p { color: var(--mu); line-height: 1.85; margin-bottom: 1.1rem; font-size: 1rem; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--wh); font-weight: 600; }
.prose a { color: var(--cr); text-decoration: none; font-weight: 500; }
.prose a:hover { text-decoration: underline; }

/* Spec sheet (key/value list) */
.spec { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--ob-3); }
.spec-head { padding: .9rem 1.2rem; font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mu); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: .6rem; }
.spec-row { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: .85rem 1.2rem; border-bottom: 1px solid var(--line); align-items: baseline; }
.spec-row:last-child { border-bottom: 0; }
.spec-row dt { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mu); }
.spec-row dd { font-size: .92rem; color: var(--wh); line-height: 1.5; }
.spec-row dd a { color: var(--wh); text-decoration: none; border-bottom: 1px solid var(--cr); }
.spec-row dd small { display: block; color: var(--mu); font-size: .8rem; }

/* Brand tiles */
.brands { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.brand-tile {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem;
  background: linear-gradient(160deg, var(--ob-3), var(--ob-2)); display: flex; flex-direction: column; gap: .8rem;
}
.brand-tile .tag { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cr); }
.brand-tile h3 { font-size: 1.6rem; letter-spacing: -0.03em; }
.brand-tile p { color: var(--mu); font-size: .95rem; line-height: 1.7; }
.brand-tile .btn { align-self: flex-start; margin-top: .4rem; }
.brand-tile .legal { font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; color: var(--mu); margin-top: auto; padding-top: .8rem; border-top: 1px dashed var(--line); }

/* Book panel */
.book { display: grid; grid-template-columns: 190px 1fr; gap: 2.4rem; align-items: start; border: 1px solid var(--line); border-radius: 18px; background: var(--ob-3); padding: 2rem; position: relative; overflow: hidden; }
.book::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--cr), transparent 70%); }
.book figure img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 16px 36px rgba(13, 15, 18, .22); }
.book figcaption { font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mu); text-align: center; margin-top: .8rem; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ok); border: 1px solid rgba(16, 134, 79, .35); border-radius: 999px; padding: .28rem .8rem; margin-bottom: 1rem; }
.book-title { font-size: 1.75rem; color: var(--wh); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
.book-sub { color: var(--mu); margin-top: .35rem; }
.book-by { color: var(--tx); margin-top: .6rem; font-size: .92rem; }
.book-by span { color: var(--mu); }
.book .spec { margin: 1.4rem 0; }
.book .spec-row { grid-template-columns: 7.5rem 1fr; }
.book-links { display: flex; gap: .7rem; flex-wrap: wrap; }
.note { margin-top: 1.2rem; font-size: .86rem; color: var(--mu); border-left: 2px solid var(--cr); padding: .2rem 0 .2rem 1rem; }
.note a { color: var(--wh); }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.principle { padding: 1.6rem 1.4rem; border-right: 1px solid var(--line); background: var(--ob-3); }
.principle:last-child { border-right: 0; }
.principle .code { font-family: var(--mono); font-size: .7rem; color: var(--cr); letter-spacing: .1em; margin-bottom: .7rem; }
.principle p { color: var(--mu); font-size: .9rem; line-height: 1.65; margin-top: .5rem; }

.founder { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; padding: 1.1rem 1.3rem; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.founder img { width: 40px; height: 40px; flex: none; }
.founder .lab { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mu); }
.founder p { font-size: .95rem; color: var(--tx); }
.founder strong { color: var(--wh); }

/* Contact */
.contact { text-align: left; }
.contact-box { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.6rem, 4vw, 3rem); background: radial-gradient(circle at 100% 0%, rgba(224, 24, 60, .07), transparent 55%), var(--ob-3); }
.contact-box h2 { margin-bottom: .8rem; }
.contact-box .lede { margin-bottom: 1.8rem; }

/* ── Footer ── */
footer { border-top: 1px solid var(--line); padding: 3rem max(16px, 5vw) 2.4rem; background: var(--ob-2); }
.foot { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; }
.foot .brand { margin-bottom: 1rem; }
.foot-meta { font-size: .8rem; color: var(--mu); line-height: 1.85; }
.foot-meta a { color: var(--mu); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.foot-meta a:hover { color: var(--wh); }
.foot-right { display: flex; flex-direction: column; align-items: flex-end; gap: 1rem; text-align: right; }
.foot-tag { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cr); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem 1.3rem; }
.foot-links a { font-size: .8rem; color: var(--mu); text-decoration: none; }
.foot-links a:hover { color: var(--wh); }
.foot-bottom { max-width: var(--max); margin: 2rem auto 0; padding-top: 1.2rem; border-top: 1px solid var(--line); font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; color: var(--mu); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ── Inner pages (publishing / legal) ── */
.page-hero { padding: 140px max(16px, 5vw) 3rem; border-bottom: 1px solid var(--line); }
.page-hero .inner { max-width: 820px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 1rem; }
.page-meta { font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; color: var(--mu); }
.page-body { max-width: 820px; margin: 0 auto; padding: 3.5rem max(16px, 5vw) 5rem; }
.page-body > .lede { margin-bottom: 2.5rem; }
.page-body h2 { font-size: 1.35rem; letter-spacing: -0.02em; margin: 2.8rem 0 .8rem; padding-bottom: .55rem; border-bottom: 1px solid var(--line); display: flex; gap: .7rem; align-items: baseline; }
.page-body h2 .n { font-family: var(--mono); font-size: .75rem; color: var(--cr); font-weight: 400; }
.page-body p, .page-body li { color: var(--mu); line-height: 1.85; font-size: .98rem; }
.page-body p { margin-bottom: .95rem; }
.page-body ul { margin: .4rem 0 1.1rem 1.2rem; }
.page-body li { margin-bottom: .35rem; }
.page-body li::marker { color: var(--cr); }
.page-body strong { color: var(--wh); font-weight: 600; }
.page-body a { color: var(--cr); text-decoration: none; }
.page-body a:hover { text-decoration: underline; }
.page-body .book { margin: 1.5rem 0 1rem; }
.callout { border: 1px solid var(--line); border-left: 3px solid var(--cr); background: var(--ob-2); border-radius: 0 10px 10px 0; padding: 1rem 1.2rem; margin: 1.5rem 0; color: var(--tx); font-size: .93rem; line-height: 1.75; }
.page-body .spec { margin: 1.5rem 0; }

/* ── Error / notice pages ── */
.center-main { min-height: calc(100vh - 68px); display: flex; align-items: center; justify-content: center; padding: 120px max(16px, 5vw) 4rem; }
.panel { width: 100%; max-width: 620px; border: 1px solid var(--line); border-radius: 18px; background: var(--ob-2); overflow: hidden; box-shadow: 0 20px 60px rgba(13, 15, 18, .10); }
.panel-body { padding: 2.2rem clamp(1.3rem, 4vw, 2.6rem) 2.4rem; }
.panel h1 { font-size: clamp(2rem, 5vw, 2.9rem); margin: .4rem 0 1rem; }
.panel .lede { margin-bottom: 1.8rem; }
.panel .actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.panel .small { margin-top: 1.6rem; font-size: .84rem; color: var(--mu); }
.panel .small a { color: var(--wh); }
.countdown { margin-top: 1.6rem; font-family: var(--mono); font-size: .72rem; color: var(--mu); letter-spacing: .06em; }
.countdown-track { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; margin-top: .5rem; }
.countdown-bar { height: 100%; width: 100%; background: var(--cr); transition: width 1s linear; }

/* ── Reveal on scroll ── */
.r { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.r.on { opacity: 1; transform: none; }
.no-js .r { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .r { opacity: 1; transform: none; transition: none; }
  .strip-track, .caret { animation: none; }
}

/* ── Responsive ── */
@media (max-width: 980px) {
  .hero-grid, .split, .contact-box { grid-template-columns: 1fr; gap: 2.5rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .principles { grid-template-columns: 1fr 1fr; }
  .principle:nth-child(2) { border-right: 0; }
  .principle:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 16px 1rem; display: none;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links li a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child a { border: 0; margin-top: .8rem; justify-content: center; }
  .hero { padding: 116px 16px 64px; }
  section { padding: 4.5rem 16px; }
  .cards, .brands, .principles { grid-template-columns: 1fr; }
  .principle { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .principle:last-child { border-bottom: 0; }
  .book { grid-template-columns: 1fr; padding: 1.4rem; }
  .book figure { max-width: 160px; margin: 0 auto; }
  .spec-row, .book .spec-row { grid-template-columns: 1fr; gap: .2rem; }
  .foot { grid-template-columns: 1fr; }
  .foot-right { align-items: flex-start; text-align: left; }
  .foot-links { justify-content: flex-start; }
  .page-hero { padding: 116px 16px 2.2rem; }
  .page-body { padding: 2.5rem 16px 4rem; }
  .term { font-size: .74rem; }
}

/* Hero emblem (full logo) */
.emblem { margin: 0; justify-self: center; width: 100%; max-width: 540px; }
.emblem img { width: 100%; height: auto; }
@media (max-width: 980px) { .emblem { max-width: 380px; order: -1; margin-bottom: -1rem; } }

/* Buttons inside text pages keep their own colours */
.page-body a.btn, .page-body a.btn:hover { text-decoration: none; }
.page-body a.btn-p { color: #fff; }
.page-body a.btn-o { color: var(--wh); }
.page-body a.btn-o:hover { color: var(--cr); }
