/* page.css — internal editorial pages ("menu screen" layer: same world, no gameplay) */

body.doc {
  background: var(--void);
  color: var(--body-ink);
  font-size: 16px; line-height: 1.8;
}
/* a whisper of CRT over the whole document */
body.doc::after {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.14) 0 1px, transparent 1px 4px);
  opacity: .5;
}

/* ============================================================
   INTERNAL PAGES — header rail, full-bleed image bands, big footer
   ============================================================ */

/* header: bar + horizontal service rail, sticky together */
.doc-head { position: sticky; top: 0; z-index: 50; }
.doc-head .doc-bar { position: static; }
.doc-subnav {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 9px clamp(16px, 4vw, 56px) 10px;
  background: rgba(7, 11, 18, 0.92);
  border-bottom: 1px solid #1d2940;
  backdrop-filter: blur(6px);
  scrollbar-width: none;
}
.doc-subnav::-webkit-scrollbar { display: none; }
.svc-tab {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  padding: 8px 13px; border: 1px solid #1d2940; background: rgba(10,15,23,.5);
  color: var(--ink-dim); text-decoration: none;
  font-size: 9.5px; letter-spacing: 1.2px; text-transform: uppercase;
  transition: color .15s, border-color .15s, background .15s;
}
.svc-tab:hover { color: var(--ink); border-color: var(--teal); background: rgba(13,20,30,.7); }
.svc-tab.active { color: var(--amber); border-color: var(--amber); box-shadow: inset 0 0 12px rgba(231,169,79,.14); }

/* full-bleed hero: scene image + title overlay */
/* hero — one full-bleed background-image style for every internal page */
.doc-hero {
  position: relative; margin: 0;
  min-height: clamp(340px, 56vh, 580px);
  display: flex; align-items: flex-end;
  padding: clamp(40px, 8vh, 90px) clamp(20px, 5vw, 72px);
  background-size: cover; background-position: center bottom; background-repeat: no-repeat;
  image-rendering: pixelated;
}
.doc-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,8,15,.35) 0%, transparent 32%,
    rgba(5,8,15,.5) 68%, rgba(5,8,15,.94) 100%);
}
.doc-hero .hero-inner { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; width: 100%; }
.doc-hero h1 {
  margin: 0; font-size: clamp(22px, 3.2vw, 48px); line-height: 1.35;
  color: #f4f7fb; text-shadow: 0 4px 0 rgba(0,0,0,.85), 0 0 40px rgba(56,214,194,.16);
  overflow-wrap: anywhere;
}
.doc-hero .hero-sub { margin: 16px 0 0; max-width: 54ch; font-size: clamp(15px, 1.5vw, 18px); color: var(--ink); }

/* full-bleed quote band (mid-page) */
.doc-band {
  position: relative; width: 100vw; margin-left: calc(50% - 50vw);
  margin-top: clamp(48px, 9vh, 110px); margin-bottom: clamp(48px, 9vh, 110px);
  min-height: clamp(280px, 44vh, 440px);
  display: flex; align-items: center; justify-content: center;
  padding: 8vh clamp(20px, 6vw, 80px);
  background-size: cover; background-position: center; background-repeat: no-repeat;
  image-rendering: pixelated;
}
.doc-band::after { content: ""; position: absolute; inset: 0; background: rgba(5,8,15,.64); }
.doc-band blockquote { position: relative; z-index: 1; margin: 0; max-width: 900px; text-align: center; }
.doc-band blockquote p {
  margin: 0; font-size: clamp(18px, 2.4vw, 30px); line-height: 1.8;
  color: var(--amber); text-shadow: 0 0 26px rgba(231,169,79,.3);
}

/* ---- big footer (internal pages only) ---- */
.site-footer {
  position: relative; margin-top: clamp(56px, 11vh, 130px);
  background-size: cover; background-position: center; background-repeat: no-repeat;
  image-rendering: pixelated; border-top: 1px solid #1d2940;
}
.site-footer::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,8,15,.8) 0%, rgba(5,8,15,.9) 100%);
}
.site-footer .foot-inner {
  position: relative; z-index: 1; max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 72px);
  padding: clamp(48px, 9vh, 110px) clamp(20px, 5vw, 56px) clamp(32px, 5vh, 52px);
  align-items: start;
}
.foot-cta .kicker { margin-bottom: 14px; }
.foot-cta h2 {
  font-family: var(--font-pixel); font-weight: 400; margin: 0 0 14px;
  font-size: clamp(24px, 3.2vw, 44px); line-height: 1.3; color: #f4f7fb;
  overflow-wrap: anywhere; text-shadow: 0 0 30px rgba(56,214,194,.18);
}
.foot-cta > p { margin: 0 0 22px; max-width: 42ch; color: var(--ink-dim); }
.foot-cta .btn {
  display: inline-block; padding: 16px 30px; background: var(--accent); color: #0a0610;
  text-decoration: none; font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 50%, transparent);
}
.foot-cta .btn:hover { filter: brightness(1.12); }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.foot-col { display: flex; flex-direction: column; gap: 7px; }
.foot-h { margin: 0 0 8px; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-dim); }
.foot-col a, .foot-col span { color: var(--body-ink); text-decoration: none; font-size: 13px; }
.foot-col a:hover { color: var(--teal); }
.foot-base {
  position: relative; z-index: 1; max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px clamp(20px, 5vw, 56px) 22px; border-top: 1px solid #141c2a;
  color: var(--ink-dim); font-size: 12px;
}
.foot-base .pixel { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; }
.foot-legal { display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); flex-wrap: wrap; justify-content: flex-end; }
.foot-legal a { color: var(--ink-dim); text-decoration: none; }
.foot-legal a:hover { color: var(--teal); }
.foot-base .pixel b { color: var(--amber); font-weight: 400; }

@media (prefers-reduced-motion: reduce) { .doc-hero { background-attachment: scroll; } }

@media (max-width: 820px) {
  .site-footer .foot-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .foot-base { flex-direction: column; align-items: flex-start; }
}

/* ---- top bar ---- */
.doc-bar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(20px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(5, 8, 15, 0.78), transparent);
}
.doc-bar a { text-decoration: none; }
.doc-bar .brand { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--ink-dim); }
.doc-bar .brand b { color: var(--amber); font-weight: 400; }
.brand-logo { display: inline-flex; align-items: center; }
.brand-logo img { height: 26px; width: auto; display: block; }
.foot-base .brand-logo-img { height: 30px; width: auto; display: block; }
.doc-bar .back { font-size: 11px; letter-spacing: 2px; color: var(--teal); }
.doc-bar .back:hover { color: var(--ink); }

/* site menu (header, all internal pages) */
.doc-nav { display: flex; align-items: center; gap: clamp(14px, 1.5vw, 22px); flex-wrap: wrap; justify-content: flex-end; }
.doc-navlink {
  font-family: var(--font-pixel); font-size: 11px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--ink-dim); text-decoration: none;
}
.doc-navlink:hover { color: var(--ink); text-decoration: none; }
.doc-navlink.active { color: var(--amber); }
@media (max-width: 640px) {
  .doc-bar { flex-wrap: wrap; gap: 10px 0; }
  .doc-nav { width: 100%; justify-content: flex-start; gap: 14px; }
  .doc-navlink { font-size: 9px; letter-spacing: 1px; }
}

.kicker {
  font-family: var(--font-pixel); font-size: 11px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--teal); margin: 0 0 16px;
}

/* ---- article container ---- */
.doc-body { max-width: 1100px; margin: 0 auto; padding: 64px clamp(20px, 4vw, 40px) 0; }

/* legal / privacy policy */
.doc-body.legal { max-width: 820px; }
.legal-sec { margin-top: 36px; }
.legal-sec h2 { font-size: clamp(16px, 2vw, 22px); color: #f4f7fb; margin: 0 0 12px; }
.legal-sec p { margin: 0 0 10px; line-height: 1.7; color: var(--body-ink); }
.legal-list { list-style: none; margin: 4px 0 12px; padding: 0; display: grid; gap: 8px; }
.legal-list li { line-height: 1.65; color: var(--body-ink); }

/* intro: oversized lead + dossier card */
.doc-intro {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(260px, 4fr);
  gap: clamp(28px, 5vw, 72px); align-items: start;
  margin-bottom: 24px;
}
.doc-intro .lead { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.65; color: var(--ink); margin: 0; }
.doc-meta {
  border: 1px solid #1d2940; background: rgba(11, 18, 30, 0.6);
  padding: 22px 24px; position: relative;
}
.doc-meta::before, .doc-meta::after {
  content: ""; position: absolute; width: 10px; height: 10px;
  border: 2px solid var(--teal);
}
.doc-meta::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.doc-meta::after { bottom: -2px; right: -2px; border-left: none; border-top: none; }
.doc-meta-h { font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--ink-dim); margin: 0 0 14px; }
.doc-meta dl { margin: 0; }
.doc-meta dl div { display: flex; justify-content: space-between; gap: 16px;
  border-top: 1px dashed #1d2940; padding: 9px 0; }
.doc-meta dt { color: var(--ink-dim); font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; }
.doc-meta dd { margin: 0; color: var(--ink); font-size: 13.5px; text-align: right; }
.doc-meta dd.ok { color: var(--teal); }

/* numbered sections: sticky label left, text right */
.doc-sec {
  display: grid; grid-template-columns: minmax(140px, 3fr) minmax(0, 8fr);
  gap: clamp(24px, 4vw, 64px);
  margin: 72px 0 0;
}
.sec-label { position: sticky; top: 86px; align-self: start;
  display: flex; align-items: baseline; gap: 12px;
  border-top: 2px solid var(--teal); padding-top: 14px; }
.sec-label .num { font-size: 12px; color: var(--teal); }
.sec-label .name { font-size: 14px; color: #f4f7fb; letter-spacing: 1px; }
.sec-text p { margin: 0 0 18px; max-width: 62ch; }
.doc-sec > .doc-steps, .doc-sec > .doc-principles { grid-column: 2; }

/* figures */
.doc-figure { margin: 0; }
.doc-figure img { display: block; width: 100%; image-rendering: pixelated; border: 1px solid #141c2a; }
.doc-figure figcaption {
  margin-top: 12px; font-size: 9px; letter-spacing: 1.5px;
  color: var(--ink-dim); text-transform: uppercase; line-height: 1.8;
}
.doc-figure.breakout {
  width: min(100vw - 32px, 1240px);
  margin: 72px 0 0 calc(50% - min(100vw - 32px, 1240px) / 2);
}
.doc-figure.breakout img { max-height: 58vh; object-fit: cover; }

/* staggered duo */
.doc-duo {
  display: grid; grid-template-columns: 6fr 5fr; gap: clamp(20px, 3vw, 44px);
  align-items: start; margin: 64px 0 0;
}
.doc-duo .doc-figure:last-child { margin-top: 56px; }

/* steps: file-table */
.doc-steps { list-style: none; margin: 16px 0 0; padding: 0; }
.doc-steps li {
  display: grid; grid-template-columns: 44px 140px 1fr; gap: 14px; align-items: baseline;
  border-top: 1px solid #141c2a; padding: 13px 0;
}
.doc-steps .num { font-size: 12px; color: var(--teal); }
.doc-steps b { color: var(--ink); font-size: 15px; }
.doc-steps li > span:last-child { color: var(--ink-dim); font-size: 13.5px; }

/* pull quote: the loud moment */
.doc-quote { margin: 96px auto; max-width: 880px; text-align: center; }
.doc-quote p {
  font-size: clamp(17px, 2.2vw, 26px); line-height: 1.9; color: var(--amber); margin: 0;
  text-shadow: 0 0 24px rgba(231, 169, 79, 0.25);
}

/* principles: 2x2 cards */
.doc-principles {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px;
}
.doc-principles article {
  border: 1px solid #1d2940; background: rgba(11, 18, 30, 0.5);
  padding: 22px 24px;
}
.doc-principles .num { display: block; font-size: 10px; color: var(--teal); margin-bottom: 12px; }
.doc-principles b { display: block; color: var(--ink); font-size: 15.5px; margin-bottom: 8px; }
.doc-principles p { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--ink-dim); }

/* CTA */
.doc-cta {
  margin: 96px 0 0; padding: 48px 40px;
  border: 1px solid #1d2940; background: rgba(11, 18, 30, 0.6);
  text-align: center;
}
.doc-cta p { margin: 0 0 10px; }
.doc-cta .kicker { margin-bottom: 12px; }
.doc-cta .btn {
  display: inline-block; margin-top: 18px; padding: 16px 30px;
  background: var(--accent); color: #0a0610; text-decoration: none;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 50%, transparent);
}
.doc-cta .btn:hover { filter: brightness(1.12); }

/* footer */
.doc-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1100px; margin: 72px auto 0; padding: 26px clamp(20px, 4vw, 40px) 36px;
  border-top: 1px solid #141c2a;
  color: var(--ink-dim); font-size: 12.5px;
}
.doc-footer .pixel { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; }
.doc-footer .pixel b { color: var(--amber); font-weight: 400; }

@media (max-width: 820px) {
  .doc-intro { grid-template-columns: 1fr; }
  .doc-sec { grid-template-columns: 1fr; gap: 18px; margin-top: 56px; }
  .sec-label { position: static; }
  .doc-sec > .doc-steps, .doc-sec > .doc-principles { grid-column: 1; }
  .doc-duo { grid-template-columns: 1fr; }
  .doc-duo .doc-figure:last-child { margin-top: 0; }
  .doc-principles { grid-template-columns: 1fr; }
  .doc-steps li { grid-template-columns: 36px 1fr; }
  .doc-steps li > span:last-child { grid-column: 2; }
  .doc-quote { margin: 64px auto; }
  .doc-cta { padding: 28px 18px; }
  .doc-footer { flex-direction: column; align-items: flex-start; }
}

/* ---- services hub: numbered manifest ---- */
.kicker-link { color: var(--teal); text-decoration: none; }
.kicker-link:hover { color: var(--ink); }
.doc-hub .doc-body .lead { max-width: 60ch; }
.svc-index { list-style: none; margin: clamp(28px,5vw,52px) 0 0; padding: 0; border-top: 1px solid #1d2940; }
.svc-index li { margin: 0; }
.svc-row {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: clamp(16px, 3vw, 40px); align-items: center;
  padding: clamp(20px, 3vw, 32px) 10px; border-bottom: 1px solid #1d2940;
  text-decoration: none; color: var(--ink);
  transition: background .15s, padding-left .18s;
}
.svc-row .num { font-size: 13px; color: var(--ink-dim); }
.svc-text { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.svc-name { font-size: clamp(17px, 2vw, 26px); line-height: 1.3; color: #f4f7fb; transition: color .15s; }
.svc-desc { font-size: 13.5px; line-height: 1.5; color: var(--ink-dim); }
.svc-go { font-size: 9.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--teal); white-space: nowrap; transition: color .15s; }
.svc-row:hover { background: rgba(13,20,30,.6); padding-left: 20px; }
.svc-row:hover .svc-name, .svc-row:hover .svc-go { color: var(--amber); }

@media (max-width: 640px) {
  .svc-go { display: none; }
}

/* ---- list pages (services + industries): compact hero so the whole list sits
   on a 1280×720 viewport (1920 @ 150%), then a generously spaced list ---- */
.doc-hub .doc-hero {
  min-height: clamp(82px, 12vh, 140px);
  padding: clamp(14px, 2.2vh, 26px) clamp(20px, 5vw, 72px);
}
.doc-hub .doc-body { padding-top: clamp(12px, 2vh, 22px); padding-bottom: clamp(22px, 3.5vh, 48px); }
.doc-hub .svc-index { margin-top: 0; }
/* tighter row rhythm so the whole list clears a 1280×720 viewport, still airy */
.doc-hub .svc-row { padding-top: clamp(13px, 2.2vh, 26px); padding-bottom: clamp(13px, 2.2vh, 26px); }

/* industries reuses the services list; rows are static (no detail pages),
   each <li> carries an #ind-<id> anchor for the homepage deep-links */
.ind-index li { scroll-margin-top: 96px; }
.svc-row--static { cursor: default; }
.svc-row--static:hover { background: none; padding-left: 10px; }
.svc-row--static:hover .svc-name { color: #f4f7fb; }

/* ---- contact page: details + form (no map) ---- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px,5vw,72px); align-items: start; }
.contact-info .lead { margin: 0 0 clamp(24px,4vh,36px); font-size: clamp(16px,1.7vw,20px); line-height: 1.7; color: var(--ink); }
.contact-list { margin: 0; }
.contact-list div { display: flex; justify-content: space-between; gap: 18px;
  border-top: 1px solid #1d2940; padding: 13px 0; }
.contact-list dt { color: var(--ink-dim); text-transform: uppercase; letter-spacing: 1.5px; font-size: 11px; }
.contact-list dd { margin: 0; color: var(--ink); font-size: 14px; text-align: right; }
.contact-list a { color: var(--accent-2); text-decoration: none; }
.contact-list a:hover { color: var(--ink); }

.cf-form .cf-field { margin-bottom: 18px; }
.cf-field label { display: block; margin-bottom: 8px; font-size: 11px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--ink-dim); }
.cf-field .req { color: var(--magenta); }
.cf-field input, .cf-field textarea {
  width: 100%; padding: 13px 14px; font-family: var(--font-body); font-size: 15px;
  color: var(--ink); background: rgba(8,13,21,.7);
  border: 1px solid; border-color: #2c3a50 #131c2a #131c2a #2c3a50;
  border-radius: 0; outline: none; transition: border-color .15s, box-shadow .15s;
}
.cf-field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.cf-field input:focus, .cf-field textarea:focus {
  border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal), 0 0 16px rgba(56,214,194,.2);
}
.cf-field.invalid input, .cf-field.invalid textarea { border-color: var(--magenta); }
.cf-err { display: block; margin-top: 6px; min-height: 1em; font-size: 12px; color: var(--magenta); }
.cf-consent label { display: flex; align-items: flex-start; gap: 10px;
  text-transform: none; letter-spacing: 0; font-size: 13px; line-height: 1.6; color: var(--ink-dim); margin: 0; }
.cf-consent input { width: auto; margin-top: 3px; flex: 0 0 auto; accent-color: var(--teal); }
.cf-consent a { color: var(--accent-2); }
.cf-form .btn {
  display: inline-block; margin-top: 8px; padding: 16px 32px; cursor: pointer;
  background: var(--accent); color: #0a0610; border: none;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-family: var(--font-pixel);
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 50%, transparent);
}
.cf-form .btn:hover { filter: brightness(1.12); }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-formerr { margin: 14px 0 0; color: var(--magenta); font-size: 13px; line-height: 1.5; }

/* cookie consent banner (site-wide) */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center; gap: clamp(10px, 1.6vw, 22px);
  flex-wrap: wrap; padding: 9px clamp(16px, 4vw, 40px);
  background: rgba(7, 11, 18, 0.97); border-top: 1px solid var(--border, #1d2940);
  backdrop-filter: blur(4px);
}
.cookie-banner[hidden] { display: none; }
.cookie-text { margin: 0; max-width: 86ch; font-size: 12px; line-height: 1.45; color: var(--ink-dim); }
.cookie-text a { color: var(--teal); }
.cookie-ok {
  flex: 0 0 auto; cursor: pointer;
  background: var(--amber); color: #0a0610; border: none;
  padding: 8px 20px; font-family: var(--font-pixel); font-size: 10px;
  letter-spacing: 1.5px; text-transform: uppercase;
}
.cookie-ok:hover { filter: brightness(1.12); }
@media (max-width: 600px) { .cookie-banner { justify-content: space-between; gap: 8px 14px; } }

.cf-success { border: 1px solid var(--teal); background: rgba(11,18,30,.6); padding: clamp(28px,4vw,40px); }
.cf-success .cf-tick { margin: 0 0 12px; font-size: clamp(16px,2vw,22px); color: var(--teal); text-shadow: 0 0 16px rgba(56,214,194,.4); }
.cf-success p { margin: 0; color: var(--body-ink); line-height: 1.7; }

@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
