/* Mastek Enterprises — 2026 redesign. Dark cinematic base, editorial type, one sky accent. */
:root {
  --void: #03080f;
  --void-2: #06111d;
  --panel: #081624;
  --ink: #eef3f8;
  --silver: #a9b8c8;
  --muted: #71849a;
  --line: rgba(219, 229, 239, .12);
  --line-2: rgba(219, 229, 239, .22);
  --sky: #7dd3fc;
  --blue: #2f6fd6;
  --navy: #061525;
  --paper: #eef3f8;
  --paper-2: #e2e9f1;
  --paper-ink: #061525;
  --paper-muted: #4a5d72;
  --amber: #f5b14c;
  --radius: 28px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --display: 'Archivo', 'Manrope', system-ui, sans-serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--void); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--void); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: geometricPrecision; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--sky); color: var(--navy); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--silver); }
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 4px rgba(125, 211, 252, .14); }
.on-paper .eyebrow { color: var(--paper-muted); }
.on-paper .eyebrow::before { background: var(--blue); box-shadow: 0 0 0 4px rgba(47, 111, 214, .14); }

/* Type */
.display { font-family: var(--display); font-weight: 600; letter-spacing: -.035em; line-height: .98; font-stretch: 100%; }
.gradient-text { background: linear-gradient(180deg, #8fa3b8 0%, #f2f7fb 70%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.h-xl { font-size: clamp(2.5rem, 5.2vw, 5rem); }
.h-lg { font-size: clamp(2.1rem, 4.6vw, 4.2rem); }
.h-md { font-size: clamp(1.6rem, 2.8vw, 2.5rem); line-height: 1.08; }
.h-giant { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -.045em; line-height: .86; font-size: clamp(3.2rem, 13vw, 11rem); }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.28rem); line-height: 1.6; color: var(--silver); max-width: 640px; }
.on-paper .lede { color: var(--paper-muted); }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 16px; letter-spacing: -.005em; white-space: nowrap; transition: transform .35s var(--ease), background .3s, color .3s, border-color .3s; }
.btn:hover { transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--void); }
.btn-light:hover { background: var(--sky); }
.btn-dark { background: var(--paper-ink); color: #fff; }
.btn-dark:hover { background: var(--blue); }
.btn-ghost { height: auto; padding: 0; color: #fff; }
.btn-ghost .arrow { transition: transform .35s var(--ease); }
.btn-ghost:hover .arrow { transform: translateX(4px); }
.btn-line { border: 1.5px solid var(--line-2); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--sky); color: var(--sky); }
.on-paper .btn-line { border-color: rgba(6, 21, 37, .25); color: var(--paper-ink); }
.on-paper .btn-line:hover { border-color: var(--blue); color: var(--blue); }
.arrow { width: 18px; height: 18px; flex: none; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .4s, border-color .4s, backdrop-filter .4s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(3, 8, 15, .9); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand svg { width: 34px; height: 34px; }
/* The 3D mark (logo3d.js) replaces the SVG once it draws */
.brand .brand-3d { display: none; width: 46px; height: 46px; margin: -6px; }
.brand.is-3d svg { display: none; }
.brand.is-3d .brand-3d { display: block; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word b { font-family: var(--display); font-weight: 700; letter-spacing: .14em; font-size: 15px; font-stretch: 112%; }
.brand-word span { font-size: 9.5px; letter-spacing: .3em; color: var(--silver); margin-top: 5px; }
.links { display: flex; gap: 34px; font-size: 15.5px; color: var(--silver); }
.links a { position: relative; transition: color .25s; }
.links a:hover, .links a[aria-current="page"] { color: #fff; }
.links a[aria-current="page"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 1.5px; background: var(--sky); }
.nav .btn { height: 44px; padding: 0 20px; font-size: 15px; }
.burger { display: none; width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05); backdrop-filter: blur(10px); cursor: pointer; position: relative; }
.burger i { position: absolute; left: 14px; right: 14px; height: 1.5px; background: #fff; transition: transform .4s var(--ease), top .4s var(--ease); }
.burger i:first-child { top: 19px; } .burger i:last-child { top: 26px; }
.menu-open .burger i:first-child { top: 22.5px; transform: rotate(45deg); }
.menu-open .burger i:last-child { top: 22.5px; transform: rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 40; background: linear-gradient(180deg, rgba(3, 8, 15, .97), rgba(6, 17, 29, .98)); backdrop-filter: blur(18px); opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s; display: flex; flex-direction: column; justify-content: center; padding: 100px var(--gutter) 40px; }
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a.big { display: block; font-family: var(--display); font-size: clamp(30px, 8vw, 44px); font-weight: 600; letter-spacing: -.03em; padding: 10px 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.menu-open .mobile-menu a.big { opacity: 1; transform: none; }
.menu-open .mobile-menu a.big:nth-child(2) { transition-delay: .05s; } .menu-open .mobile-menu a.big:nth-child(3) { transition-delay: .1s; }
.menu-open .mobile-menu a.big:nth-child(4) { transition-delay: .15s; } .menu-open .mobile-menu a.big:nth-child(5) { transition-delay: .2s; }
.mobile-menu .sub { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 28px 0; color: var(--silver); font-size: 15px; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; }
.hero canvas.net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(3, 8, 15, .92) 0%, rgba(3, 8, 15, .6) 38%, rgba(3, 8, 15, .05) 70%),
  linear-gradient(180deg, rgba(3, 8, 15, .5) 0%, rgba(3, 8, 15, 0) 22%, rgba(3, 8, 15, 0) 62%, rgba(3, 8, 15, .92) 88%, var(--void) 100%); }
.emblem { position: absolute; z-index: -1; right: max(0px, calc((100vw - var(--max)) / 2 - 30px)); top: 54%; width: min(36vw, 540px); aspect-ratio: 1; transform: translateY(-50%); opacity: 0; transition: opacity 1.2s var(--ease); pointer-events: none; }
.emblem canvas { width: 100%; height: 100%; }
.emblem.is-3d { opacity: 1; }
.emblem::before { content: ''; position: absolute; inset: 4%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(3, 8, 15, .9), rgba(3, 8, 15, .7) 55%, rgba(3, 8, 15, 0)); }
.emblem::after { content: ''; position: absolute; inset: 22%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(47, 111, 214, .26), rgba(125, 211, 252, .07) 60%, transparent); filter: blur(10px); }
.hero-body { padding-top: 128px; padding-bottom: clamp(36px, 6vh, 70px); }
.hero h1 { margin: 22px 0 24px; max-width: 18ch; }
.hero .lede { margin-bottom: 36px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }
.strip { border-top: 1px solid var(--line); }
.strip .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; padding-top: 22px; padding-bottom: 26px; }
.strip a { display: inline-flex; align-items: baseline; gap: 10px; color: #8b9aab; font-family: var(--display); font-weight: 600; font-size: clamp(15px, 1.5vw, 19px); letter-spacing: -.01em; transition: color .25s; }
.strip a small { font-family: var(--body); font-weight: 500; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #56687c; }
.strip a:hover { color: #fff; }

.page-hero { min-height: 88svh; }
.page-hero .hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; padding-top: 130px; padding-bottom: 70px; }
.page-hero h1 { max-width: 16ch; }
.page-hero .hero-grid h1 { font-size: clamp(2.2rem, 4.1vw, 3.8rem); max-width: 18ch; }
.page-hero .visual { border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(120% 90% at 70% 10%, rgba(47, 111, 214, .14), rgba(3, 8, 15, 0) 60%), rgba(8, 22, 36, .55); backdrop-filter: blur(6px); aspect-ratio: 1.08; padding: 6%; }

/* Sections */
section { position: relative; }
.pad { padding: clamp(80px, 12vw, 160px) 0; }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(44px, 6vw, 80px); max-width: 860px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; justify-items: center; }
.on-paper { background: var(--paper); color: var(--paper-ink); }
.rounded-top { border-radius: clamp(36px, 5vw, 64px) clamp(36px, 5vw, 64px) 0 0; }
.pull-up { margin-top: clamp(-64px, -5vw, -36px); z-index: 2; }

/* Marquee */
.marquee { padding: clamp(40px, 6vw, 80px) 0 clamp(20px, 3vw, 40px); display: grid; gap: 12px; overflow: hidden; }
.marquee .row { display: flex; gap: 12px; width: max-content; will-change: transform; }
.chip { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line); background: rgba(8, 22, 36, .6); color: var(--silver); font-size: 16px; white-space: nowrap; }
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); opacity: .8; }
.chip.alt::before { background: var(--blue); }

/* Statement — words fill grey → white while scrolling */
.statement { text-align: center; }
.statement p.fill { font-family: var(--display); font-weight: 500; font-size: clamp(1.7rem, 3.7vw, 3.4rem); line-height: 1.22; letter-spacing: -.028em; max-width: 1040px; margin: 0 auto; }
.fill .w { color: #2b3a4b; transition: color .25s linear; }
.fill .w.on { color: var(--ink); }
.on-paper .fill .w { color: #b6c3d1; } .on-paper .fill .w.on { color: var(--paper-ink); }
.statement .sub { margin: clamp(40px, 6vw, 72px) auto 0; font-size: clamp(1.05rem, 1.7vw, 1.4rem); color: var(--silver); max-width: 640px; line-height: 1.5; }
.statement .sub em { font-style: normal; color: var(--muted); }

/* Products — sticky stacking cards */
.stack { display: grid; }
.stack-item { height: 92vh; min-height: 640px; }
.stack-item:last-child { height: auto; min-height: 0; }
.card { position: sticky; top: 110px; border-radius: clamp(28px, 4vw, 48px); border: 1px solid var(--line-2); background: linear-gradient(160deg, #0a1928 0%, #06101b 60%); padding: clamp(22px, 3.5vw, 48px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); transform-origin: 50% 0; will-change: transform; box-shadow: 0 -30px 60px -40px rgba(0, 0, 0, .8); }
.card .num { font-family: var(--display); font-weight: 800; font-size: clamp(3.4rem, 8vw, 7rem); line-height: .8; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px rgba(219, 229, 239, .28); }
.card .cat { margin: 26px 0 10px; }
.card h3 { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 3.8vw, 3.4rem); letter-spacing: -.035em; line-height: 1; }
.card p { margin: 18px 0 22px; color: var(--silver); max-width: 520px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.tag { font-size: 13.5px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); color: var(--silver); }
.card .visual svg { max-height: 44vh; }
.card .visual { border-radius: clamp(20px, 3vw, 36px); background: radial-gradient(110% 90% at 80% 0%, rgba(47, 111, 214, .16), rgba(3, 8, 15, 0) 60%), #040b14; border: 1px solid var(--line); min-height: 320px; padding: 7%; display: grid; place-items: center; }

/* Numbered list (approach / capabilities) */
.numbered { border-top: 1px solid rgba(6, 21, 37, .15); }
.numbered li { list-style: none; display: grid; grid-template-columns: minmax(110px, 260px) minmax(0, 1fr); gap: 24px; align-items: start; padding: clamp(28px, 4vw, 48px) 0; border-bottom: 1px solid rgba(6, 21, 37, .15); }
.numbered .n { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 9vw, 8.5rem); line-height: .78; letter-spacing: -.05em; }
.numbered h3 { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: -.01em; font-size: clamp(1.1rem, 2.2vw, 2rem); margin-bottom: 10px; }
.numbered p { font-size: clamp(.98rem, 1.5vw, 1.2rem); opacity: .7; max-width: 640px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(6, 21, 37, .15); }
.grid-3 > div { padding: 34px 28px 38px 0; border-bottom: 1px solid rgba(6, 21, 37, .15); }
.grid-3 > div:not(:nth-child(3n)) { border-right: 1px solid rgba(6, 21, 37, .15); }
.grid-3 > div:not(:nth-child(3n+1)) { padding-left: 28px; }
.grid-3 .k { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--blue); letter-spacing: .04em; }
.grid-3 h3 { font-family: var(--display); font-weight: 600; font-size: 1.3rem; letter-spacing: -.02em; margin: 14px 0 8px; line-height: 1.2; }
.grid-3 p { color: var(--paper-muted); font-size: 15.5px; }

/* Steps rail */
.rail { position: relative; display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 18px; }
.rail::before, .rail::after { content: ''; position: absolute; left: 0; right: 0; top: 23px; height: 1.5px; background: var(--line-2); }
.rail::after { background: linear-gradient(90deg, var(--blue), var(--sky)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.rail li { list-style: none; position: relative; z-index: 1; }
.rail .dot { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--void); border: 1.5px solid var(--line-2); font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--silver); transition: border-color .4s, color .4s, background .4s; }
.rail li.on .dot { border-color: var(--sky); color: var(--void); background: var(--sky); }
.rail h3 { font-family: var(--display); font-weight: 600; font-size: 1.25rem; letter-spacing: -.02em; margin: 22px 0 8px; }
.rail p { color: var(--silver); font-size: 15px; line-height: 1.55; }

/* Panels / trust */
.panel { border: 1px solid var(--line-2); border-radius: 20px; padding: clamp(24px, 4vw, 52px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: stretch; }
.panel h2 { font-family: var(--display); font-weight: 500; font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.035em; line-height: 1.02; }
.panel .lines { margin-top: 26px; display: grid; gap: 6px; }
.panel .lines span { font-family: var(--display); font-size: clamp(1.05rem, 1.8vw, 1.45rem); color: #3c4d60; transition: color .5s; }
.panel .lines span.on { color: var(--ink); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { border-radius: 14px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; min-height: 190px; transition: transform .4s var(--ease); }
.stat:hover { transform: translateY(-6px); }
.stat b { font-family: var(--display); font-weight: 600; font-size: clamp(3rem, 6vw, 4.6rem); letter-spacing: -.05em; line-height: .9; }
.stat span { font-size: 14.5px; }
.stat.light { background: #dbe5ef; color: var(--paper-ink); }
.stat.dark { background: #13212f; }
.stat.dark span { color: var(--silver); }
.stat.wide { grid-column: 1 / -1; min-height: 0; justify-content: flex-start; background: rgba(125, 211, 252, .07); border: 1px solid rgba(125, 211, 252, .18); gap: 12px; }
.stat.wide ul { display: grid; gap: 6px; } .stat.wide li { list-style: none; display: flex; gap: 10px; color: var(--ink); font-size: 15px; }
.stat.wide li::before { content: '→'; color: var(--sky); }

/* Audiences */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.aud { border-radius: 22px; border: 1px solid var(--line); background: var(--panel); padding: clamp(24px, 3.4vw, 40px); }
.aud h3 { font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: -.03em; }
.aud p { color: var(--silver); margin-top: 10px; }
.aud ul { margin-top: 22px; display: grid; gap: 0; }
.aud li { list-style: none; padding: 13px 0; border-top: 1px solid var(--line); display: flex; gap: 12px; color: var(--ink); font-size: 15.5px; }
.aud li::before { content: ''; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--sky); flex: none; }

/* Impact chips (RegIntel) */
.impact { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.impact span { padding: 16px 24px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--panel); font-family: var(--display); font-weight: 600; font-size: clamp(1rem, 1.6vw, 1.25rem); }

/* Product index rows (about) */
.rows { border-top: 1px solid var(--line); }
.rows a { display: grid; grid-template-columns: 60px minmax(0, 260px) minmax(0, 1fr) 30px; gap: 24px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); transition: background .3s, padding .4s var(--ease); }
.rows a:hover { background: rgba(125, 211, 252, .04); padding-left: 14px; padding-right: 14px; }
.rows .k { font-family: var(--display); font-weight: 700; color: var(--muted); }
.rows h3 { font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -.03em; }
.rows p { color: var(--silver); font-size: 15.5px; }
.rows .arrow { color: var(--sky); transition: transform .35s var(--ease); }
.rows a:hover .arrow { transform: translateX(5px); }

/* CTA */
.cta { text-align: center; }
.cta .box { border: 1px solid var(--line-2); border-radius: clamp(28px, 4vw, 48px); padding: clamp(48px, 8vw, 110px) var(--gutter); position: relative; overflow: hidden; isolation: isolate; }
.cta canvas.net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .55; }
.cta .box::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 80% at 50% 50%, rgba(3, 8, 15, .4), var(--void) 100%); }
.cta h2 { max-width: 18ch; margin: 18px auto 20px; }
.cta .lede { margin: 0 auto 34px; }
.cta .actions { justify-content: center; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.prod-list { margin-top: 28px; border-top: 1px solid var(--line); }
.prod-list li { list-style: none; padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; }
.prod-list b { font-family: var(--display); font-weight: 600; }
.prod-list span { color: var(--silver); font-size: 14.5px; text-align: right; }
.form-card { border-radius: 26px; background: var(--paper); color: var(--paper-ink); padding: clamp(24px, 4vw, 48px); }
.form-card h2 { font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -.03em; line-height: 1.1; }
.form-card > p { color: var(--paper-muted); margin: 10px 0 26px; font-size: 15.5px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--paper-ink); }
.field input, .field select, .field textarea { width: 100%; border: 1.5px solid #c9d5e2; background: #fff; border-radius: 12px; padding: 13px 14px; font-size: 15.5px; color: var(--paper-ink); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 111, 214, .15); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 22px; }
.form-foot p { font-size: 13px; color: var(--paper-muted); max-width: 360px; }
.form-msg { margin-top: 18px; padding: 16px 18px; border-radius: 14px; font-weight: 600; display: none; }
.form-msg.ok { display: block; background: #dff3e7; color: #135c35; }
.form-msg.err { display: block; background: #fde8e8; color: #8a1f1f; }
.nx-form-thanks, .nx-form-error { padding: 18px; border-radius: 14px; background: #dff3e7; color: #135c35; font-weight: 600; }
.nx-form-error { background: #fde8e8; color: #8a1f1f; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 40px; }
.foot { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.foot h4 { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; font-weight: 600; }
.foot ul { display: grid; gap: 10px; } .foot li { list-style: none; } .foot li a { color: var(--silver); transition: color .25s; } .foot li a:hover { color: #fff; }
.foot .about { color: var(--silver); max-width: 360px; margin-top: 18px; font-size: 15px; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }

/* Diagrams */
.diagram { width: 100%; height: auto; overflow: visible; }
.diagram text { font-family: var(--body); }
.d-line { stroke: rgba(219, 229, 239, .2); stroke-width: 1.2; fill: none; }
.d-flow { stroke: var(--sky); stroke-width: 1.6; fill: none; stroke-dasharray: 5 9; animation: flow 1.6s linear infinite; }
.d-node { fill: #0b1b2c; stroke: rgba(219, 229, 239, .35); stroke-width: 1.2; }
.d-hot { fill: var(--sky); }
.d-warn { fill: var(--amber); }
.d-label { fill: var(--silver); font-size: 11px; letter-spacing: .06em; }
.d-strong { fill: var(--ink); font-size: 12.5px; font-weight: 600; }
.pulse { animation: pulse 2.4s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
.spin { animation: spin 18s linear infinite; transform-box: view-box; transform-origin: 50% 50%; }
.draw { stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw 3.2s var(--ease) infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }
@keyframes pulse { 0%, 100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { 0% { stroke-dashoffset: 300; } 45%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -300; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.rise { opacity: 0; transform: translateY(18px); animation: rise .95s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Responsive */
@media (max-width: 1080px) {
  .emblem { top: 104px; transform: none; width: min(44vw, 400px); }
  .links, .nav > .btn { display: none; }
  .burger { display: block; }
  .page-hero .hero-grid { grid-template-columns: 1fr; padding-top: 120px; }
  .page-hero .visual { max-width: 560px; width: 100%; }
  .card { grid-template-columns: 1fr; top: 96px; }
  .card .visual { min-height: 240px; }
  .stack-item { height: auto; min-height: 0; margin-bottom: 18px; }
  .rail { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .rail::before, .rail::after { display: none; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-3 > div { padding: 28px 20px 30px 0 !important; border-right: 0 !important; }
  .grid-3 > div:nth-child(odd) { border-right: 1px solid rgba(6, 21, 37, .15) !important; }
  .grid-3 > div:nth-child(even) { padding-left: 20px !important; }
  .panel, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { height: 72px; }
  .brand-word span { display: none; }
  .emblem { width: min(72vw, 280px); top: 78px; right: 50%; transform: translateX(50%); }
  .emblem + .hero-body { padding-top: min(72vw, 280px); margin-top: 78px; }
  .hero::before { background: linear-gradient(180deg, rgba(3, 8, 15, .55) 0%, rgba(3, 8, 15, .35) 30%, rgba(3, 8, 15, .85) 70%, var(--void) 100%); }
  .strip .wrap { display: grid; grid-template-columns: 1fr 1fr; }
  .strip a small { display: none; }
  .numbered li { grid-template-columns: 1fr; gap: 10px; }
  .rail, .grid-3, .duo, .stats, .fields { grid-template-columns: 1fr; }
  .grid-3 > div:nth-child(n) { border-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }
  .rows a { grid-template-columns: 40px minmax(0, 1fr) 24px; }
  .rows p { display: none; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: 1 / -1; }
  .chip { height: 46px; font-size: 14.5px; padding: 0 18px; }
  .card { position: relative; top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .reveal, .rise { opacity: 1; transform: none; }
  .fill .w { color: var(--ink); }
}
