/* MasterSpiders public site.
   Palette taken from the official logo: blue #275e8c, deep band #123f60, web-line tint #5584a9, white spider.
   Change a colour here and the whole site follows. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2"); }

:root {
  --navy: #0b2c46; --ink: #123f60; --brand: #275e8c; --brand-600: #1f4f78; --sky: #5584a9; --sky-200: #a9c8e3; --sky-100: #dbe8f4;
  --tint: #eef4fa; --paper: #f6f9fc; --white: #fff; --line: #d8e3ee; --text: #0e2437; --muted: #4a5f73;
  --ok: #166534; --bad: #991b1b;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px; --max: 1200px;
  --shadow-sm: 0 1px 2px rgba(14,36,55,.05), 0 6px 20px rgba(14,36,55,.05);
  --shadow-md: 0 2px 4px rgba(14,36,55,.06), 0 16px 40px rgba(14,36,55,.12);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16.5px/1.65 var(--font); color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-600); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; color: var(--text); }
h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3, .h3 { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--sky-100); color: var(--navy); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; color: var(--text); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.plain { list-style: none; margin: 0; padding: 0; }
.muted { color: var(--muted); }
.ico { width: 22px; height: 22px; flex: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 .76rem var(--font-head); letter-spacing: .18em; text-transform: uppercase; color: var(--brand); margin: 0 0 1rem; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow.light { color: var(--sky-200); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; border: 0; border-radius: 999px; padding: 13px 26px; font: 600 .95rem var(--font); text-decoration: none; cursor: pointer; background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(39,94,140,.28); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover { background: var(--brand-600); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(39,94,140,.34); }
.btn .ico { width: 18px; height: 18px; }
.btn.primary, .btn.light { background: #fff; color: var(--ink); box-shadow: 0 10px 28px rgba(0,0,0,.22); }
.btn.primary:hover, .btn.light:hover { background: var(--sky-100); color: var(--navy); }
.btn.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); box-shadow: none; }
.btn.ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn.outline { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); box-shadow: none; }
.btn.outline:hover { background: var(--brand); color: #fff; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand); text-decoration: none; margin-top: .4rem; }
.more .ico { width: 18px; height: 18px; transition: transform .18s ease; }
a:hover .more .ico, .more:hover .ico { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); background: rgba(18,63,96,.94); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); transition: box-shadow .2s ease; }
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(6,24,40,.35); }
.site-header a { color: #fff; text-decoration: none; }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font: 700 1.2rem var(--font-head); letter-spacing: -.01em; }
.brand img { width: 42px; height: 42px; border-radius: 11px; display: block; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.brand-name b { font-weight: 800; }
.brand-name span { font-weight: 300; margin-left: .22em; }
.nav-toggle { display: none; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 999px; padding: 8px 16px; font: 600 .85rem var(--font); cursor: pointer; }
.primary ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.primary > ul > li > a, .primary > ul > li > .sub-toggle { display: inline-block; padding: 9px 14px; border-radius: 999px; color: rgba(255,255,255,.88); font: 500 .93rem var(--font); transition: background .15s ease, color .15s ease; }
.primary > ul > li > a:hover, .primary > ul > li > .sub-toggle:hover, .has-sub.open > .sub-toggle { background: rgba(255,255,255,.1); color: #fff; }
.sub-toggle { background: none; border: 0; cursor: pointer; }
.sub-toggle::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); }
.has-sub { position: relative; }
.primary .sub { display: none; position: absolute; left: 0; top: calc(100% + 8px); min-width: 240px; background: #fff; padding: 8px; border-radius: 16px; box-shadow: var(--shadow-md); border: 1px solid var(--line); flex-direction: column; gap: 2px; align-items: stretch; }
.primary .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; } /* keeps hover while moving the pointer down */
.primary .sub a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--text); font-size: .92rem; }
.primary .sub a:hover { background: var(--tint); color: var(--brand); }
/* Closed by default; opens on hover (mouse) or when toggled (click / tap / keyboard Enter). */
.primary .has-sub:hover > .sub, .primary .has-sub.open > .sub { display: flex; }

/* ---------- hero slider ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(900px 500px at 88% -5%, rgba(85,132,169,.5), transparent 62%), linear-gradient(135deg, var(--navy) 0%, var(--ink) 52%, #1d5381 100%); }
.hero::before, .page-hero::before, .cta-band::before, .story::before { content: ""; position: absolute; right: -200px; bottom: -260px; width: 920px; height: 920px; background: url("../img/web-pattern.svg") center / contain no-repeat; opacity: .12; pointer-events: none; }
.slide { display: none; position: relative; padding: 92px 0 70px; min-height: 34rem; }
.slide.is-active { display: block; }
.slide.is-active .wrap { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.slide .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.slide h1, .slide h2 { color: #fff; font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.04; letter-spacing: -.03em; }
.slide .l2 { display: block; color: var(--sky-200); }
.slide p { font-size: 1.2rem; color: rgba(255,255,255,.86); max-width: 52ch; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-visual { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 28px; padding: 28px; box-shadow: 0 30px 70px rgba(4,20,34,.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.slide-img { display: block; border-radius: 24px; width: 100%; max-height: 400px; object-fit: cover; box-shadow: 0 30px 70px rgba(4,20,34,.4); }
.hero-controls { position: relative; display: flex; align-items: center; gap: 12px; padding-bottom: 28px; }
.hero-controls button { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.4); color: #fff; border-radius: 999px; padding: 5px 16px; font: 600 .8rem var(--font); cursor: pointer; }
.hero-controls .dot { width: 34px; height: 8px; padding: 0; border-radius: 999px; border: 0; background: rgba(255,255,255,.28); transition: background .2s ease, width .2s ease; }
.hero-controls .dot.on { background: var(--sky-200); width: 52px; }

/* ---------- network illustration ---------- */
.net { color: var(--brand); width: 100%; max-width: 520px; margin: 0 auto; display: block; }
.hero .net, .section.dark .net { color: var(--sky-200); }
.net line { stroke: currentColor; stroke-opacity: .45; stroke-width: 1.1; stroke-dasharray: 4 6; animation: flow 6s linear infinite; }
.net circle { fill: currentColor; transform-box: fill-box; transform-origin: center; animation: pulse 3.2s ease-in-out infinite; }
.net text { fill: currentColor; font: 11px var(--font); opacity: .9; }
.net line:nth-of-type(5n+2) { animation-delay: -1s; } .net line:nth-of-type(5n+3) { animation-delay: -2s; } .net line:nth-of-type(5n+4) { animation-delay: -3s; } .net line:nth-of-type(5n) { animation-delay: -4s; }
.net circle:nth-of-type(3n+2) { animation-delay: -1s; } .net circle:nth-of-type(3n) { animation-delay: -2s; }
@keyframes flow { to { stroke-dashoffset: -100; } }
@keyframes pulse { 50% { transform: scale(1.35); opacity: .7; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- sections ---------- */
.section { position: relative; padding: 96px 0; }
.section.white { background: #fff; }
.section.tint { background: var(--tint); }
.section.dark { background: linear-gradient(135deg, var(--navy), var(--ink) 60%, #1d5381); color: #fff; overflow: hidden; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.center { text-align: center; }
.section-head { max-width: 720px; margin: 0 0 48px; }
.section.center .section-head, .section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: .8rem; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 66ch; }
.section.dark .lead { color: rgba(255,255,255,.82); }
.grid { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.span-2, .span-2-form { grid-column: span 2; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.card h2, .card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
a.card { display: block; color: inherit; text-decoration: none; }
a.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #b4cde3; color: inherit; }
.ico-badge { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--tint); color: var(--brand); margin-bottom: 20px; transition: background .22s ease, color .22s ease; }
.ico-badge .ico { width: 26px; height: 26px; }
a.card:hover .ico-badge { background: var(--brand); color: #fff; }
.num { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font: 700 .95rem var(--font-head); margin-bottom: 16px; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; background: var(--tint); border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 3px 11px; letter-spacing: .01em; }
.pill.lc-operational, .pill.live { background: #ecfdf3; border-color: #a7e3bd; color: var(--ok); }
.pill.lc-in_development { background: var(--sky-100); border-color: #b9d2e8; color: var(--brand-600); }
.pill.lc-coming_soon { background: #eef0fb; border-color: #c9cef0; color: #3b3f8f; }
.pill.lc-legacy, .pill.lc-archived { background: #f1f1f1; color: #555; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips .pill { font-size: .85rem; padding: 7px 16px; }
a.pill { text-decoration: none; }
a.pill:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

.section-more { margin-top: 32px; }
.notice { background: #fff8e6; border: 1px solid #f3d98a; color: #6b4a00; border-radius: 12px; padding: 14px 18px; font-size: .94rem; }

/* flagship panel */
.flagship { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; background: linear-gradient(135deg, var(--navy), var(--ink) 55%, #1d5381); color: #fff; border-radius: 28px; padding: 56px; overflow: hidden; position: relative; box-shadow: var(--shadow-md); }
.flagship::before { content: ""; position: absolute; right: -160px; top: -200px; width: 640px; height: 640px; background: url("../img/web-pattern.svg") center / contain no-repeat; opacity: .1; }
.flagship > * { position: relative; }
.flagship h2, .flagship h3 { color: #fff; }
.flagship .tag { color: var(--sky-200); font-weight: 600; margin-bottom: .6em; }
.flagship p { color: rgba(255,255,255,.85); }
.mini { display: block; text-decoration: none; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); border-radius: 16px; padding: 18px 22px; color: #fff; margin-bottom: 14px; transition: background .2s ease, transform .2s ease; }
.mini:hover { background: rgba(255,255,255,.14); transform: translateX(4px); color: #fff; }
.mini strong { font-family: var(--font-head); font-size: 1.05rem; }
.mini .muted { color: rgba(255,255,255,.72); margin: 4px 0 0; font-size: .9rem; }
.mini .pill { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.25); color: #fff; margin-left: 8px; }

/* approach / process */
.approach { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 28px; }
.approach div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 16px 18px; }
.approach b { display: block; font-family: var(--font-head); color: #fff; margin-bottom: 2px; }
.approach span { font-size: .88rem; color: rgba(255,255,255,.78); line-height: 1.45; display: block; }
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.process li { counter-increment: step; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px 22px 22px; box-shadow: var(--shadow-sm); font: 700 1.05rem var(--font-head); }
.process li::before { content: counter(step, decimal-leading-zero); display: block; font: 800 2rem var(--font-head); color: var(--sky-200); line-height: 1; margin-bottom: 14px; }
.steps { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--brand); color: #fff; border-radius: 999px; padding: 9px 20px; font-size: .92rem; font-weight: 600; }

/* story + cta bands */
.story { position: relative; overflow: hidden; color: #fff; text-align: center; padding: 110px 0; background: linear-gradient(135deg, var(--brand) 0%, var(--ink) 100%); }
.story::before { right: 50%; bottom: 50%; transform: translate(50%, 50%); width: 1100px; height: 1100px; opacity: .14; }
.story > .wrap { position: relative; }
.story h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.3rem); max-width: 18ch; margin: 0 auto .5em; }
.story p { color: rgba(255,255,255,.88); font-size: 1.2rem; max-width: 52ch; margin: 0 auto 2rem; }
.cta-band { position: relative; overflow: hidden; color: #fff; text-align: center; padding: 88px 0; background: linear-gradient(135deg, var(--navy), var(--ink) 60%, #1d5381); }
.cta-band > .wrap { position: relative; }
.cta-band h2 { color: #fff; max-width: 22ch; margin: 0 auto .6em; }

/* ---------- inner pages ---------- */
.page-hero { position: relative; overflow: hidden; color: #fff; padding: 84px 0 76px; background: radial-gradient(800px 400px at 90% 0%, rgba(85,132,169,.45), transparent 60%), linear-gradient(135deg, var(--navy), var(--ink) 58%, #1d5381); }
.page-hero > .wrap { position: relative; }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero .lead { color: rgba(255,255,255,.84); }
.breadcrumbs { font-size: .85rem; margin-bottom: 22px; color: rgba(255,255,255,.7); }
.breadcrumbs a { color: rgba(255,255,255,.88); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; color: #fff; }
.prose { max-width: 72ch; }
.prose p, .prose li { color: #2e4458; font-size: 1.06rem; }
.prose ul { padding-left: 1.2em; }
.prose h2, .prose h3 { margin-top: 1.7em; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.checks li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 14px 46px; font-size: .96rem; box-shadow: var(--shadow-sm); }
.checks li::before { content: ""; position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; border-radius: 50%; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23275e8c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 30px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--sky-200), var(--brand)); border-radius: 2px; }
.timeline li { position: relative; margin: 0 0 34px; }
.timeline li::before { content: ""; position: absolute; left: -30px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--brand); }
.timeline .when { display: inline-block; font: 700 .8rem var(--font-head); letter-spacing: .08em; color: var(--brand); text-transform: uppercase; margin-bottom: 4px; }
.person { display: flex; gap: 18px; align-items: center; margin-bottom: 16px; }
.avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; background: var(--tint); display: flex; align-items: center; justify-content: center; font: 800 1.2rem var(--font-head); color: var(--brand); flex: none; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--sky-200); }
.cover { width: 100%; height: auto; border-radius: 14px; margin: 0 0 20px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 22px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font: 700 1.02rem var(--font-head); }
.faq details[open] { border-color: #b4cde3; }
.pager { display: flex; align-items: center; gap: 14px; margin-top: 36px; }

/* ---------- forms ---------- */
.form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 18px; color: var(--text); }
.form input, .form select, .form textarea { display: block; width: 100%; margin-top: 7px; padding: 12px 14px; border: 1.5px solid #c3d3e3; border-radius: 12px; font: 400 1rem var(--font); background: #fff; color: var(--text); transition: border-color .15s ease, box-shadow .15s ease; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(39,94,140,.16); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form.card { padding: 34px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 12px; padding: 16px 18px; margin-bottom: 22px; font-size: .96rem; }
.alert.ok { background: #ecfdf3; border: 1px solid #a7e3bd; color: var(--ok); }
.alert.bad { background: #fef2f2; border: 1px solid #fecaca; color: var(--bad); }
.alert ul { margin: 0; padding-left: 1.2em; }
.field-error { display: block; color: var(--bad); font-weight: 500; font-size: .85rem; margin-top: 6px; }
.contact-lines p { display: flex; gap: 12px; align-items: flex-start; margin-bottom: .8em; }
.contact-lines .ico { color: var(--brand); margin-top: 3px; }

/* ---------- footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--navy); color: rgba(255,255,255,.78); font-size: .94rem; }
.site-footer::before { content: ""; position: absolute; right: -240px; bottom: -300px; width: 800px; height: 800px; background: url("../img/web-pattern.svg") center / contain no-repeat; opacity: .07; pointer-events: none; }
.site-footer a { color: rgba(255,255,255,.86); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { position: relative; grid-template-columns: 1.7fr 1fr 1.2fr; gap: 48px; padding-top: 72px; padding-bottom: 40px; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; font: 700 1.25rem var(--font-head); color: #fff; margin-bottom: 14px; }
.footer-brand img { width: 46px; height: 46px; border-radius: 12px; }
.footer-brand b { font-weight: 800; } .footer-brand span { font-weight: 300; margin-left: .22em; }
.footer-name { color: #fff; font-weight: 600; margin-bottom: .4em; }
.site-footer address { font-style: normal; }
.legal { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; padding-bottom: 28px; font-size: .84rem; }
.legal nav a { margin-left: 18px; }
.social a { margin-right: 16px; }

/* ---------- scroll reveal (only applied to content below the fold, so nothing flashes) ---------- */
[data-reveal] { transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].reveal-pending { opacity: 0; transform: translateY(22px); }
[data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .cols-4, .process { grid-template-columns: repeat(2, 1fr); }
  .flagship { grid-template-columns: 1fr; padding: 36px 28px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .primary { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); padding: 8px 24px 20px; border-bottom: 1px solid rgba(255,255,255,.12); box-shadow: 0 20px 40px rgba(6,24,40,.35); }
  .primary.open { display: block; }
  .primary ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary > ul > li > a, .primary > ul > li > .sub-toggle { display: block; padding: 13px 4px; width: 100%; text-align: left; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .primary .sub { position: static; display: none; box-shadow: none; background: transparent; border: 0; padding: 0 0 0 14px; }
  .primary .sub::before { display: none; }
  .primary .sub a { color: rgba(255,255,255,.85); padding: 11px 4px; }
  .primary .sub a:hover { background: transparent; color: #fff; }
  .primary .has-sub:hover > .sub { display: none; }
  .primary .has-sub.open > .sub { display: flex; }
  .slide .wrap, .cols-2, .cols-3, .footer-grid, .form .row, .checks { grid-template-columns: 1fr; }
  .span-2, .span-2-form { grid-column: auto; }
  .slide { padding: 52px 0 32px; min-height: 0; }
  .slide .wrap { gap: 32px; }
  .hero-visual { padding: 18px; }
  .section { padding: 60px 0; }
  .story { padding: 72px 0; }
  .cta-band { padding: 64px 0; }
}
@media (max-width: 560px) { .cols-4, .process, .approach { grid-template-columns: 1fr; } .form.card { padding: 22px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .net line, .net circle, .slide.is-active .wrap { animation: none; }
  * { transition-duration: .01ms !important; }
  [data-reveal].reveal-pending { opacity: 1; transform: none; }
}
