/* W-Enterprises - shared stylesheet for sub-pages.
   The homepage (index.html) keeps its own inline styles and is not affected by this file.
   Tokens mirror the homepage so sub-pages read as the same site.
   Voice rule: plain hyphens only, no em or en dashes, anywhere. */

:root {
  --ink: #0A0A0B;
  --ink-2: #101013;
  --ink-3: #17171B;
  --line: #26262C;
  --line-soft: #1D1D22;
  --fg: #EDEDEF;
  --fg-dim: #A1A1AA;
  --fg-faint: #71717A;
  --red: #DC2626;
  --red-bright: #EF4444;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
  --arabic: 'IBM Plex Sans Arabic', 'Segoe UI', sans-serif;
  --maxw: 1180px;
  --readw: 46rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.75rem; }
/* .read constrains the measure. On a .wrap it constrains the children instead,
   so the text column stays left-aligned with the rest of the page grid rather
   than centring inside the wrap. */
.read { max-width: var(--readw); }
.wrap.read { max-width: var(--maxw); }
.wrap.read > * { max-width: var(--readw); }

a { color: var(--fg); text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { color: var(--red-bright); }

/* Skip link: hidden with a vertical offset, not left:-9999px. A negative left
   offset becomes SCROLLABLE overflow in RTL documents (dir="rtl"), creating a
   10,000px horizontal canvas. Upward overflow is never scrollable, so this is
   safe in both directions. */
.skip {
  position: absolute; left: 0; top: -100%; z-index: 99;
  transform: translateY(-200%);
  background: var(--red); color: #fff; padding: 0.7rem 1.1rem;
  font-family: var(--mono); font-size: 0.8rem;
}
.skip:focus { top: 0; transform: none; }

/* ---------- header ---------- */
.hd {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,11,0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.hd-in {
  max-width: var(--maxw); margin: 0 auto; padding: 0.9rem 1.75rem;
  display: flex; align-items: center; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand .mk {
  width: 30px; height: 30px; display: grid; place-items: center;
  background: var(--red); color: #fff;
  font-family: var(--serif); font-weight: 700; font-size: 1.05rem;
}
.brand .wm {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.19em;
  text-transform: uppercase; color: var(--fg);
}
.hd nav { margin-left: auto; display: flex; gap: 1.4rem; align-items: center; }
.hd nav a {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--fg-dim); text-decoration: none;
}
.hd nav a:hover, .hd nav a[aria-current="page"] { color: var(--fg); }
.hd nav a[aria-current="page"] { border-bottom: 1px solid var(--red); padding-bottom: 2px; }
@media (max-width: 860px) { .hd nav a.opt { display: none; } }

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); letter-spacing: -0.015em; margin-top: 3.4rem; margin-bottom: 1.1rem; }
h3 { font-size: 1.22rem; margin-top: 2.2rem; margin-bottom: 0.7rem; }
h4 { font-size: 1rem; font-family: var(--mono); font-weight: 500; letter-spacing: 0.02em; margin-top: 1.6rem; margin-bottom: 0.5rem; }
em { color: var(--red-bright); font-style: italic; }
p { margin: 0 0 1.15rem; color: var(--fg-dim); }
p.lead { font-size: 1.28rem; line-height: 1.6; color: var(--fg); margin-bottom: 1.8rem; }
strong { color: var(--fg); font-weight: 500; }

.eyebrow {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--red-bright); margin-bottom: 1rem;
}
.kicker {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--fg-faint);
}

ul, ol { color: var(--fg-dim); padding-left: 1.25rem; margin: 0 0 1.3rem; }
li { margin-bottom: 0.55rem; }
li::marker { color: var(--red); }

code {
  font-family: var(--mono); font-size: 0.86em;
  background: var(--ink-3); border: 1px solid var(--line-soft);
  padding: 0.1rem 0.35rem; color: #E4E4E7;
}
pre {
  font-family: var(--mono); font-size: 0.8rem; line-height: 1.65;
  background: var(--ink-2); border: 1px solid var(--line);
  border-left: 2px solid var(--red);
  padding: 1.1rem 1.2rem; overflow-x: auto; margin: 0 0 1.5rem; color: #D4D4D8;
}
pre code { background: none; border: 0; padding: 0; font-size: inherit; }

blockquote {
  margin: 0 0 1.5rem; padding: 0.2rem 0 0.2rem 1.3rem;
  border-left: 2px solid var(--red); color: var(--fg);
  font-style: italic;
}

hr { border: 0; border-top: 1px solid var(--line-soft); margin: 3rem 0; }

/* ---------- layout blocks ---------- */
.hero { padding: 4.5rem 0 2.6rem; border-bottom: 1px solid var(--line-soft); }
.sec { padding: 3rem 0; }
.sec-tight { padding: 1.5rem 0; }

.crumb {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--fg-faint); margin-bottom: 1.5rem;
}
.crumb a { color: var(--fg-faint); text-decoration: none; }
.crumb a:hover { color: var(--red-bright); }
.crumb span { margin: 0 0.5rem; color: var(--line); }

.grid { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.cell { background: var(--ink); padding: 1.5rem 1.4rem; }
.cell h3 { margin-top: 0; font-size: 1.05rem; }
.cell p { font-size: 0.95rem; margin-bottom: 0; }
.cell .n {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--red); margin-bottom: 0.6rem; display: block;
}

.stat { background: var(--ink); padding: 1.5rem 1.4rem; }
.stat .v { font-family: var(--serif); font-size: 1.85rem; color: var(--fg); line-height: 1.1; }
.stat .k {
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--fg-faint); margin-top: 0.45rem;
}

.panel {
  border: 1px solid var(--line); border-left: 2px solid var(--red);
  background: var(--ink-2); padding: 1.6rem 1.6rem 0.6rem; margin: 2rem 0;
}
.panel h3 { margin-top: 0; }

table { width: 100%; border-collapse: collapse; margin: 0 0 1.8rem; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-faint); font-weight: 500;
  border-bottom: 1px solid var(--line);
}
td { color: var(--fg-dim); }
.tw { overflow-x: auto; }

.faq { border-top: 1px solid var(--line-soft); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  cursor: pointer; padding: 1.15rem 0; list-style: none;
  font-family: var(--serif); font-size: 1.08rem; color: var(--fg);
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--red); font-family: var(--mono); }
.faq details[open] summary::after { content: '-'; }
.faq details p { padding-bottom: 0.6rem; font-size: 0.98rem; }

.ar { font-family: var(--arabic); direction: rtl; text-align: right; }

/* ---------- CTA ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.13em;
  text-transform: uppercase; text-decoration: none;
  padding: 0.85rem 1.4rem; border: 1px solid var(--red);
  background: var(--red); color: #fff;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: transparent; color: var(--red-bright); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--red); color: var(--red-bright); }
.btns { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 2rem 0; }

.cta {
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  background: var(--ink-2); padding: 3rem 0; margin-top: 3.5rem;
}
.cta h2 { margin-top: 0; }

/* ---------- footer ---------- */
.ft { border-top: 1px solid var(--line-soft); padding: 2.4rem 0 3rem; margin-top: 0; }
.ft-in { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; }
.ft p, .ft a {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em;
  color: var(--fg-faint); margin: 0; text-decoration: none;
}
.ft a:hover { color: var(--red-bright); }
.ft nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }

.note {
  font-family: var(--mono); font-size: 0.72rem; line-height: 1.7;
  color: var(--fg-faint); border-top: 1px solid var(--line-soft);
  padding-top: 1.2rem; margin-top: 2.5rem;
}
.note a { color: var(--fg-faint); }
