/* ==========================================================================
   Novesis Systems — shared stylesheet
   Upload this file next to every .html file (same folder).
   ========================================================================== */

:root {
  --bg: #08090c;
  --bg-raised: #0d0f14;
  --fg: 236, 238, 244;                 /* rgb triplet, used with alpha below */
  --accent: #8194f5;                   /* fallback */
  --accent: oklch(0.72 0.15 268);
  --accent-hi: #a9b6ff;                /* fallback */
  --accent-hi: oklch(0.82 0.09 255);
  --ok: #5fd6a4;

  --text: rgba(var(--fg), 0.94);
  --text-2: rgba(var(--fg), 0.72);
  --text-3: rgba(var(--fg), 0.56);
  --text-4: rgba(var(--fg), 0.42);
  --line: rgba(var(--fg), 0.1);
  --line-2: rgba(var(--fg), 0.18);
  --line-3: rgba(var(--fg), 0.34);
  --panel: rgba(var(--fg), 0.04);
  --panel-2: rgba(var(--fg), 0.07);

  --sans: 'Space Grotesk', Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; background: var(--bg); }
body {
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
/* subtle vertical grid, same as the original design */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: linear-gradient(to right, rgba(var(--fg), 0.045) 1px, transparent 1px);
  background-size: 96px 100%;
  z-index: 0;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--accent-hi); text-decoration: none; transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease, filter 0.3s ease; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #08090c; }

.wrap { position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #08090c; padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; }
main { position: relative; z-index: 1; display: block; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(8, 9, 12, 0.78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { color: #fff; }
.brand-mark { width: 11px; height: 11px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 18px var(--accent); }
.brand-name { font-family: var(--mono); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 34px; font-size: 14px; }
.nav-links a { color: var(--text-3); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav-links a.nav-cta {
  border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 18px;
  color: var(--text); white-space: nowrap;
}
.nav-links a.nav-cta:hover { border-color: var(--line-3); color: #fff; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-2); color: var(--text);
  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: 16px; height: 1.5px; background: currentColor; position: relative; transition: transform 0.3s var(--ease), background 0.2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; }
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Buttons & small elements ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 14.5px; font-weight: 600;
  padding: 13px 24px; border-radius: var(--radius-sm); cursor: pointer; border: 1px solid transparent; line-height: 1.2;
}
.btn-primary { background: var(--accent); color: #08090c; }
.btn-primary:hover { color: #08090c; filter: brightness(1.12); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--line-3); color: #fff; }
.link-arrow { font-size: 14.5px; color: var(--text-2); }
.link-arrow:hover { color: #fff; }
.btn-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.badge {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(var(--fg), 0.75);
}
.badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: block; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.mono { font-family: var(--mono); }
.tag {
  display: inline-block; font-family: var(--mono); font-size: 11.5px; padding: 4px 10px; border: 1px solid var(--line-2);
  border-radius: 6px; color: var(--text-2); white-space: nowrap;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Hero / page header ---------- */
.hero { padding: 70px 0; max-width: 840px; animation: rise 0.7s var(--ease) both; }
.hero h1 { margin-top: 26px; font-size: clamp(40px, 6vw, 64px); line-height: 1.03; letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { margin-top: 24px; max-width: 600px; font-size: 17px; line-height: 1.6; color: var(--text-3); }
.hero .btn-row { margin-top: 32px; }
.hero .meta { margin-top: 20px; font-family: var(--mono); font-size: 12px; color: var(--text-4); }
.page-hero { padding: 56px 0 64px; max-width: 800px; animation: rise 0.7s var(--ease) both; }
.page-hero h1 { margin-top: 22px; font-size: clamp(34px, 5vw, 54px); line-height: 1.05; letter-spacing: -0.03em; }
.page-hero p.lead { margin-top: 20px; max-width: 600px; font-size: 17px; line-height: 1.6; color: var(--text-3); }
.page-hero .btn-row { margin-top: 28px; }
.crumbs { font-family: var(--mono); font-size: 12px; color: var(--text-4); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--text-3); }
.crumbs a:hover { color: #fff; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Sections ---------- */
.section { padding: 0 0 100px; }
.section.ruled { border-top: 1px solid var(--line); padding-top: 64px; }
.section-head { margin-bottom: 34px; }
.section-head h2 { margin-top: 12px; font-size: 28px; letter-spacing: -0.01em; max-width: 600px; line-height: 1.2; }
.section-head p { margin-top: 14px; max-width: 560px; color: var(--text-3); font-size: 15.5px; }

.stats { border-top: 1px solid var(--line); padding: 40px 0 90px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat b { display: block; font-family: var(--mono); font-size: 26px; font-weight: 600; color: var(--accent); }
.stat span { display: block; margin-top: 6px; font-size: 13px; color: var(--text-3); }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.card {
  display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; color: var(--text);
  transition: border-color 0.3s ease, background 0.3s ease;
}
a.card:hover { border-color: var(--line-3); background: var(--panel); color: var(--text); }
.card h3 { font-size: 16px; margin-bottom: 8px; letter-spacing: -0.005em; line-height: 1.3; }
.card p { font-size: 14px; line-height: 1.55; color: var(--text-3); }
.card .more { margin-top: 16px; display: inline-block; font-size: 13.5px; color: var(--accent-hi); }
.card .kicker { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 14px; display: block; }
.card-lg { padding: 32px; }
.card-lg h3 { font-size: 20px; margin-bottom: 12px; }
.card-lg p { font-size: 15px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 36px; }

/* Ordered process (only used where content is truly a sequence) */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; counter-reset: step; }
.step { padding: 28px 26px; border-right: 1px solid var(--line); counter-increment: step; }
.step:last-child { border-right: 0; }
.step::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--accent); display: block; margin-bottom: 18px; }
.step h3 { font-size: 16px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-3); line-height: 1.55; }

.checks li { position: relative; padding: 9px 0 9px 28px; font-size: 14.5px; color: var(--text-2); border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks li::before { content: ''; position: absolute; left: 2px; top: 17px; width: 9px; height: 5px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split.wide-left { grid-template-columns: 1.15fr 0.85fr; }
.split h2 { font-size: 28px; letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 16px; }
.split p.body { color: var(--text-3); font-size: 15.5px; margin-bottom: 14px; max-width: 520px; }

/* Terminal-style block */
.term { border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg-raised); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; color: var(--text-4); }
.term-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(var(--fg), 0.16); }
.term-bar span { margin-left: 8px; }
.term pre { margin: 0; padding: 20px 22px; font-family: var(--mono); font-size: 12.5px; line-height: 1.85; color: var(--text-2); overflow-x: auto; }
.term .c { color: var(--text-4); }
.term .a { color: var(--accent-hi); }
.term .g { color: var(--ok); }

/* Testimonial / CTA */
.quote { margin-bottom: 90px; padding: 40px 36px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; text-align: center; }
.quote blockquote { margin: 0 auto; max-width: 660px; font-size: 19px; line-height: 1.55; font-weight: 500; color: rgba(var(--fg), 0.92); }
.quote figcaption { margin-top: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--text-3); }
.quote { margin-left: 0; margin-right: 0; }

.cta-band {
  margin-bottom: 90px; padding: 56px 44px; border: 1px solid var(--line-2); border-radius: 22px;
  background: radial-gradient(120% 140% at 100% 0%, rgba(129, 148, 245, 0.16), transparent 55%), var(--panel);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(26px, 3.4vw, 34px); max-width: 520px; line-height: 1.15; }
.cta-band p { margin-top: 12px; color: var(--text-3); max-width: 480px; font-size: 15.5px; }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.08em; color: var(--text-3); background: var(--panel); }
td { color: var(--text-2); }
td:first-child { color: var(--text); font-weight: 500; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-size: 16.5px; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 16px; font-family: var(--mono); font-size: 22px; color: var(--accent); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 22px 0; color: var(--text-3); font-size: 15px; max-width: 720px; }

/* Forms */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--panel); border: 1px solid var(--line-2); color: var(--text); font-family: var(--sans); font-size: 15px;
  padding: 13px 14px; border-radius: var(--radius-sm); transition: border-color 0.25s ease, background 0.25s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: #12141a; color: #eceef4; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--panel-2); }
.field .hint { font-size: 12.5px; color: var(--text-4); margin-top: 6px; }
.form-note { font-size: 13px; color: var(--text-4); }
.form-status { display: none; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14px; border: 1px solid var(--line-2); }
.form-status.show { display: block; }
.form-status.ok { border-color: rgba(95, 214, 164, 0.5); color: var(--ok); }
.form-status.err { border-color: rgba(255, 140, 120, 0.5); color: #ff9b88; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* Team */
.person { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.avatar { width: 64px; height: 64px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 15px; color: var(--accent-hi); margin-bottom: 18px; }
.person h3 { font-size: 17px; }
.person .role { font-family: var(--mono); font-size: 12px; color: var(--accent); margin: 6px 0 12px; }
.person p { font-size: 14px; color: var(--text-3); line-height: 1.55; }

.roles li { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.roles li:first-child { border-top: 1px solid var(--line); }
.roles h3 { font-size: 17px; margin-bottom: 4px; }
.roles p { font-size: 13.5px; color: var(--text-3); }

/* Insights */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.filters button {
  background: transparent; border: 1px solid var(--line-2); color: var(--text-2); font-family: var(--sans); font-size: 13.5px;
  padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: all 0.25s ease;
}
.filters button:hover { border-color: var(--line-3); color: #fff; }
.filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #08090c; font-weight: 600; }
.post { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.post h3 { font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; }
.post p { font-size: 14px; color: var(--text-3); line-height: 1.55; }
.post .meta { margin-top: auto; padding-top: 10px; font-family: var(--mono); font-size: 11.5px; color: var(--text-4); }
.post[hidden] { display: none; }
.featured { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0; border: 1px solid var(--line-2); border-radius: 20px; overflow: hidden; margin-bottom: 40px; color: var(--text); }
.featured:hover { color: var(--text); border-color: var(--line-3); }
.featured .body { padding: 40px; }
.featured h2 { font-size: 28px; margin: 14px 0 14px; line-height: 1.15; }
.featured p { color: var(--text-3); font-size: 15.5px; }
.featured .art { background: radial-gradient(90% 90% at 70% 30%, rgba(129, 148, 245, 0.28), transparent 60%), var(--bg-raised); border-left: 1px solid var(--line); min-height: 240px; display: flex; align-items: center; justify-content: center; }

/* Architecture doc layout */
.doc { display: grid; grid-template-columns: 230px 1fr; gap: 64px; align-items: start; padding-bottom: 100px; }
.toc { position: sticky; top: 100px; font-size: 14px; }
.toc p { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-4); margin-bottom: 14px; }
.toc a { display: block; padding: 7px 0 7px 14px; color: var(--text-3); border-left: 1px solid var(--line); }
.toc a:hover, .toc a.active { color: #fff; border-left-color: var(--accent); }
.prose { max-width: 720px; }
.prose h2 { font-size: 26px; margin: 56px 0 16px; letter-spacing: -0.015em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 30px 0 10px; }
.prose p { color: var(--text-2); margin-bottom: 16px; font-size: 16px; line-height: 1.7; }
.prose ul { margin: 0 0 18px; }
.prose ul li { position: relative; padding-left: 20px; margin-bottom: 8px; color: var(--text-2); font-size: 15.5px; }
.prose ul li::before { content: ''; position: absolute; left: 2px; top: 11px; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.prose code { font-family: var(--mono); font-size: 0.88em; padding: 2px 6px; border-radius: 5px; background: var(--panel-2); color: var(--accent-hi); }
.prose .term { margin: 22px 0 26px; }
.callout { border: 1px solid var(--line-2); border-left: 2px solid var(--accent); background: var(--panel); border-radius: 10px; padding: 18px 22px; margin: 24px 0; color: var(--text-2); font-size: 15px; }
.diagram { margin: 28px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raised); padding: 20px; overflow-x: auto; }
.diagram svg { min-width: 640px; width: 100%; height: auto; }
.dg-box { fill: rgba(var(--fg), 0.05); stroke: rgba(var(--fg), 0.22); stroke-width: 1; }
.dg-core { fill: rgba(129, 148, 245, 0.14); stroke: var(--accent); stroke-width: 1.2; }
.dg-line { stroke: rgba(var(--fg), 0.3); stroke-width: 1.2; fill: none; }
.dg-dash { stroke: var(--accent); stroke-width: 1.2; fill: none; stroke-dasharray: 4 4; }
.dg-t { fill: rgba(var(--fg), 0.92); font-family: var(--sans); font-size: 14px; font-weight: 500; }
.dg-s { fill: rgba(var(--fg), 0.55); font-family: var(--mono); font-size: 11px; }

/* Contact */
.contact-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list li:first-child { border-top: 1px solid var(--line); }
.contact-list .k { font-family: var(--mono); font-size: 11.5px; color: var(--text-4); letter-spacing: 0.08em; margin-bottom: 4px; display: block; }

/* Footer */
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 64px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid p.blurb { margin-top: 18px; max-width: 300px; font-size: 14px; color: var(--text-3); line-height: 1.6; }
.foot-grid h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-4); margin-bottom: 16px; font-weight: 500; }
.foot-grid li { margin-bottom: 10px; font-size: 14px; }
.foot-grid li a { color: var(--text-3); }
.foot-grid li a:hover { color: #fff; }
.foot-bottom { margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--text-4); }
.foot-bottom .brand-name { font-size: 12px; letter-spacing: 0.14em; color: var(--text-3); }
.foot-bottom a { color: var(--text-3); }
.foot-bottom a:hover { color: #fff; }

/* 404 */
.center-page { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 80px 0; }
.center-page .code { font-family: var(--mono); font-size: clamp(72px, 14vw, 140px); color: var(--accent); line-height: 1; letter-spacing: -0.04em; }

/* Scroll reveal — only when JS is on; content is always visible without JS */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .split.wide-left { grid-template-columns: 1fr; gap: 36px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .doc { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 6px 18px; }
  .toc p { width: 100%; margin-bottom: 4px; }
  .toc a { border-left: 0; padding: 4px 0; }
  .featured { grid-template-columns: 1fr; }
  .featured .art { border-left: 0; border-top: 1px solid var(--line); min-height: 180px; order: -1; }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(8, 9, 12, 0.97); border-bottom: 1px solid var(--line); padding: 8px 40px 22px;
    display: none;
  }
  .nav-open .nav-links { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-links a.nav-cta { margin-top: 16px; text-align: center; border-bottom: 1px solid var(--line-2); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 22px; }
  .nav-links { padding-left: 22px; padding-right: 22px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 56px; }
  .page-hero { padding: 36px 0 48px; }
  .section { padding-bottom: 72px; }
  .panel, .card-lg { padding: 24px; }
  .cta-band { padding: 36px 26px; }
  .featured .body { padding: 26px; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
