/* ============================================================
   RishitX V2 — dark editorial design system.
   Derived from the reference design (gemini-code-*.html): warm
   slate/obsidian palette, cyan accent, big gradient display type,
   rounded cards. Extended here to cover every page/component the
   real site content needs (nav, forms, FAQ, work case studies,
   industry grid, step chains, etc.) that the reference only sketched
   for the homepage.
   ============================================================ */

:root {
  --bg-dark: #0f1115;
  --bg-card: #161920;
  --bg-editorial: #13151b;
  --bg-contrast: #090a0c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-faint: #6b7280;
  --accent: #38bdf8;
  --accent-deep: #0ea5e9;
  --accent-ink: #06212f;
  --accent-glow: rgba(56, 189, 248, 0.12);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.1);
  --success: #4ade80;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 90px 24px; max-width: 1200px; margin: 0 auto; }
section.tight { padding-top: 72px; padding-bottom: 72px; }

.editorial-bg { background-color: var(--bg-editorial); max-width: 100%; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.editorial-container { max-width: 1200px; margin: 0 auto; padding: 90px 24px; }
.editorial-container.tight { padding: 72px 24px; }

.eyebrow { text-transform: uppercase; letter-spacing: 0.25em; font-size: 0.85rem; color: var(--accent); margin-bottom: 24px; font-weight: 600; }
.section-title { font-size: clamp(2rem, 3.6vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 20px; line-height: 1.15; }
.section-sub { font-size: 1.1rem; color: var(--text-muted); max-width: 640px; margin-bottom: 56px; }
.section-head { margin-bottom: 56px; }
.section-head .section-title, .section-head .section-sub { margin-bottom: 12px; }
.section-head .section-sub { margin-bottom: 0; }

/* ---------- NAV ---------- */
header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  background: rgba(15, 17, 21, 0.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-container { max-width: 1200px; margin: 0 auto; padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.nav-left { display: flex; align-items: center; gap: 44px; }
.logo { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link { font-size: 14px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; transition: color 0.15s ease; }
.nav-link:hover, .nav-link.is-active { color: #fff; }
.nav-link .caret { width: 9px; height: 9px; transition: transform 0.2s ease; }
.nav-dropdown { position: relative; }
.nav-dropdown.is-open .caret { transform: rotate(180deg); }
.dropdown-panel {
  position: absolute; top: calc(100% + 18px); left: 50%; transform: translate(-50%, 6px);
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  padding: 26px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease; z-index: 30;
}
.nav-dropdown.is-open .dropdown-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.dropdown-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.dropdown-tagline { font-size: 13px; color: var(--text-faint); margin-bottom: 18px; }
.dropdown-cta { display: inline-block; margin-top: 6px; font-size: 13.5px; font-weight: 700; color: var(--accent); }
.solutions-panel { width: 520px; }
.solutions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 34px; }
.solutions-group h4 { font-size: 13.5px; font-weight: 700; color: #fff; margin-bottom: 5px; }
.solutions-group p { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }
.industries-panel { width: 260px; }
.industries-list { display: flex; flex-direction: column; gap: 10px; }
.industries-list a { font-size: 13.5px; color: var(--text-muted); }
.industries-list a:hover { color: #fff; }
.industries-note { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 12px; line-height: 1.55; color: var(--text-faint); }

/* ---------- BUTTONS ---------- */
.cta-button {
  display: inline-flex; align-items: center; gap: 8px;
  background: #f3f4f6; color: #0f1115; padding: 10px 20px; border-radius: 99px;
  font-weight: 600; font-size: 0.9rem; transition: all 0.25s ease; border: 1px solid transparent;
}
.cta-button:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(56, 189, 248, 0.18); background: #ffffff; }
.cta-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #fff; padding: 10px 20px; border-radius: 99px;
  font-weight: 600; font-size: 0.9rem; border: 1px solid var(--border-strong); transition: all 0.25s ease;
}
.cta-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }

/* ---------- HOME HERO ---------- */
.hero { min-height: auto; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 110px 24px 50px; }
.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #9ca3af 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero h1 b { -webkit-text-fill-color: var(--accent); background: none; font-weight: 800; }
.hero p { font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--text-muted); max-width: 640px; margin: 0 auto 24px; }
.hero-visual {
  width: 100%; max-width: 720px; height: 180px; margin-top: 28px; border-radius: 20px; border: 1px solid var(--border);
  display: flex; justify-content: center; align-items: center; position: relative; overflow: hidden;
}
/* The glow lives entirely on ::before, starting invisible and tiny. While
   .is-drawing is active it grows in step with the X being drawn (same ~1.6s
   span), then holds at its end state — no looping animation after that. */
.hero-visual::before {
  content: ""; position: absolute; inset: 0; border-radius: 20px;
  background: radial-gradient(circle at center, var(--accent-glow) 0%, rgba(15, 17, 21, 0) 65%);
  opacity: 0; transform: scale(0.4);
}
.hero-visual.is-drawing::before {
  animation: heroGlowReveal 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes heroGlowReveal {
  from { opacity: 0; transform: scale(0.4); }
  to { opacity: 0.8; transform: scale(1); }
}

.x-svg { width: 90px; height: 90px; position: relative; z-index: 1; overflow: visible; }
.x-svg line {
  stroke: var(--accent); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 128; stroke-dashoffset: 128;
}
.hero-visual.is-drawing .x-svg .x-line-1 { animation: heroXDraw 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.15s forwards; }
.hero-visual.is-drawing .x-svg .x-line-2 { animation: heroXDraw 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.45s forwards; }
@keyframes heroXDraw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .hero-visual::before { opacity: 0.75; transform: scale(1); animation: none !important; }
  .x-svg line { stroke-dashoffset: 0 !important; animation: none !important; }
}

/* ---------- PAGE HERO (interior pages) ---------- */
.page-hero { padding: 176px 24px 90px; text-align: left; border-bottom: 1px solid var(--border); }
.page-hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08;
  margin: 18px 0 20px; max-width: 720px;
  background: linear-gradient(180deg, #ffffff 0%, #9ca3af 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.page-hero p { font-size: 1.1rem; color: var(--text-muted); max-width: 620px; }

/* ---------- EDITORIAL GRID (homepage "you focus / we take care") ---------- */
.editorial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.editorial-lines { font-size: 1.4rem; color: var(--text-muted); line-height: 1.8; }
.editorial-lines p { margin-bottom: 10px; }
.editorial-statement { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; color: #fff; border-left: 2px solid var(--accent); padding-left: 32px; }

/* ---------- BUILD LIST (simple 4-item method/what-we-build list) ---------- */
.build-footer-line { font-size: 1.05rem; color: var(--accent); margin-top: 36px; font-style: italic; }

/* ---------- METHOD STEPS (numbered, home "How We Work") ---------- */
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.method-step { background: var(--bg-card); padding: 32px 28px; }
.method-step h3 { font-size: 1.15rem; font-weight: 600; color: #fff; margin-bottom: 8px; }
.method-step p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }

/* ---------- ENGINEERING DEPTH (icon + chip cards) ---------- */
.depth-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.depth-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 14px; transition: border-color 0.2s ease, transform 0.2s ease; }
.depth-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.depth-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-glow); color: var(--accent); }
.depth-card h3 { font-size: 1.2rem; font-weight: 600; color: #fff; }
.depth-card h3 a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.depth-card:hover h3 a { border-bottom-color: var(--accent); }
.depth-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.depth-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.depth-chip { font-size: 12.5px; font-weight: 500; color: var(--text-muted); background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 8px; padding: 6px 11px; }

/* ---------- INTERSECTION (X concept) ---------- */
.intersection-container { text-align: center; }
.intersections-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 56px; }
.intersection-pair { background: var(--bg-card); border: 1px solid var(--border); padding: 22px; border-radius: 14px; font-weight: 500; font-size: 1.05rem; color: var(--text-muted); }
.intersection-pair span { color: var(--accent); margin: 0 8px; }

/* ---------- DOMAIN / INDUSTRY CARDS ---------- */
.domain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.domain-card { background: var(--bg-card); border: 1px solid var(--border); padding: 30px; border-radius: 18px; display: flex; flex-direction: column; gap: 12px; transition: border-color 0.2s ease, transform 0.2s ease; }
.domain-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.domain-card h4 { font-size: 1.2rem; color: #fff; font-weight: 600; }
.domain-card p { color: var(--text-muted); font-size: 0.95rem; }
.domain-card ul { display: flex; flex-direction: column; gap: 7px; margin-top: 2px; }
.domain-card li { font-size: 13px; color: var(--text-muted); padding-left: 14px; position: relative; }
.domain-card li::before { content: ""; position: absolute; left: 0; top: 9px; width: 5px; height: 1.5px; background: var(--accent); }
.domain-card-link { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--accent); }
.domain-custom { margin-top: 8px; padding: 26px 30px; border: 1px dashed var(--border-strong); border-radius: 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.domain-custom h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; color: #fff; }
.domain-custom p { font-size: 13.5px; color: var(--text-muted); }

/* ---------- WORK SHOWCASE ---------- */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.work-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 32px; transition: transform 0.25s ease, border-color 0.25s ease; }
.work-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.work-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.work-card h3 { font-size: 1.35rem; color: #fff; font-weight: 600; margin: 10px 0 18px; }
.work-row { margin-bottom: 14px; }
.work-row:last-of-type { margin-bottom: 0; }
.work-row .work-label { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 4px; }
.work-row p { font-size: 13.5px; line-height: 1.6; color: var(--text-muted); }
.work-link { display: inline-block; margin-top: 16px; font-size: 13.5px; font-weight: 700; color: var(--accent); }

/* ---------- PHILOSOPHY (statement + list) ---------- */
.philosophy-section { background: var(--bg-contrast); text-align: center; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.philosophy-core { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 32px; }
.philosophy-sub { font-size: 1.1rem; color: var(--text-muted); max-width: 640px; margin: 0 auto 40px; }
.philosophy-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 44px; max-width: 620px; margin: 0 auto; text-align: left; }
.philosophy-list li { font-size: 1.05rem; font-weight: 500; color: var(--text-main); padding-left: 22px; position: relative; }
.philosophy-list li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 2px; background: var(--accent); }

/* ---------- HOW WE THINK — escalating questions ---------- */
.think-questions { list-style: none; max-width: 660px; margin: 0 auto; text-align: left; display: flex; flex-direction: column; gap: 18px; }
.think-questions li { letter-spacing: -0.01em; border-left: 2px solid var(--border); padding-left: 20px; color: var(--text-muted); }
.think-questions li:nth-child(1) { font-size: 1.05rem; font-weight: 300; margin-left: 0; }
.think-questions li:nth-child(2) { font-size: 1.2rem; font-weight: 300; margin-left: 18px; }
.think-questions li:nth-child(3) { font-size: 1.35rem; font-weight: 400; margin-left: 36px; }
.think-questions li:nth-child(4) { font-size: 1.5rem; font-weight: 500; color: #fff; margin-left: 54px; border-left-color: var(--accent); }
.think-questions li:nth-child(5) { font-size: 1.75rem; font-weight: 600; color: #fff; margin-left: 72px; border-left-color: var(--accent); border-left-width: 3px; }
@media (max-width: 700px) { .think-questions li { margin-left: 0 !important; } }

/* ---------- COMPLEXITY STACK ---------- */
.complexity-stack { display: flex; flex-direction: column; align-items: center; max-width: 460px; margin: 48px auto 0; }
.complexity-node { width: 100%; text-align: center; padding: 18px 22px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-card); }
.complexity-node.is-human { border: none; padding: 2px 0; font-weight: 700; font-size: 15px; color: #fff; }
.complexity-node.is-accent { border-color: var(--accent); background: var(--accent-glow); }
.complexity-node h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.complexity-node p { font-size: 12.5px; color: var(--text-muted); }
.complexity-arrow { color: var(--text-faint); font-size: 16px; padding: 8px 0; }

/* ---------- WHY / VALUE GRID ---------- */
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.value-item { background: var(--bg-card); padding: 30px 26px; }
.value-item h3 { font-weight: 600; font-size: 1.05rem; margin-bottom: 8px; color: #fff; }
.value-item p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }

/* ---------- STEP CHAIN ---------- */
.step-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.step-chain span:not(.step-arrow) { font-size: 13.5px; font-weight: 600; color: var(--text-main); padding: 10px 16px; border: 1px solid var(--border-strong); border-radius: 10px; }
.step-arrow { color: var(--text-faint); font-size: 16px; }

/* ---------- MANIFESTO (Rishi x X) ---------- */
.manifesto { text-align: center; background: var(--bg-contrast); padding: 96px 24px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.manifesto-inner { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; }
.manifesto-side { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.manifesto-word { font-weight: 800; font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.02em; color: #fff; }
.manifesto-tags { font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-faint); }
.manifesto-x { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 300; color: var(--accent); }
.manifesto-arrow { font-size: 1.4rem; color: var(--text-faint); margin: 32px 0 4px; }
.manifesto-brand { display: block; font-weight: 800; font-size: clamp(2rem, 4.6vw, 3rem); letter-spacing: -0.02em; margin-bottom: 12px; color: #fff; }
.manifesto-tagline { font-size: 1.05rem; color: var(--text-muted); max-width: 520px; margin: 0 auto; }
@media (max-width: 800px) { .manifesto-inner { flex-direction: column; gap: 24px; } .manifesto-x { transform: rotate(90deg); } }

/* ---------- ABOUT-BLOCK (essay paragraphs) ---------- */
.about-block { max-width: 760px; }
.about-block + .about-block { margin-top: 64px; }
.about-block h2 { font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.015em; margin-bottom: 16px; color: #fff; }
.about-block p { font-size: 1.02rem; color: var(--text-muted); line-height: 1.75; }
.about-block p + p { margin-top: 14px; }

/* ---------- INSIGHTS ---------- */
.insight-categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 40px; }
.insight-category h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; color: #fff; }
.insight-category p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }
.insights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.insight-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.tag-pill { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.insight-card h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.4; color: #fff; }
.insight-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; max-width: 780px; }
.faq-item { padding: 26px 0; border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; color: #fff; }
.faq-item p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ---------- CONTACT ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info h2 { font-weight: 700; font-size: clamp(1.6rem, 2.6vw, 2rem); letter-spacing: -0.02em; margin-bottom: 18px; color: #fff; }
.contact-detail { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--text-muted); margin-bottom: 12px; }
.contact-detail svg { color: var(--accent); flex-shrink: 0; }
.contact-detail a { color: inherit; }
.contact-detail a:hover { color: #fff; }
.contact-next { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--border); }
.contact-next p { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 14px; }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-heading { font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 2px; }
.field { position: relative; border: 1.5px solid var(--border-strong); border-radius: 12px; padding: 15px 14px 9px; transition: border-color 0.15s; background: var(--bg-card); }
.field:focus-within { border-color: var(--accent); }
.field-notch { position: absolute; top: -8px; left: 12px; background: var(--bg-dark); font-size: 11px; font-weight: 700; color: var(--text-faint); padding: 0 6px; line-height: 1.3; }
.field:focus-within .field-notch { color: var(--accent); }
.field input, .field textarea { display: block; border: none; outline: none; width: 100%; font-family: inherit; font-size: 14px; line-height: 1.4; padding: 3px 0 2px; background: transparent; color: var(--text-main); }
.field textarea { resize: vertical; }
.field.has-error { border-color: var(--danger); background-color: var(--danger-soft); }
.field.has-error .field-notch { color: var(--danger); background: var(--bg-dark); }
.required-mark { color: var(--danger); }

.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.human-check-row { padding: 2px 0; }
.human-check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text-muted); cursor: pointer; }
.human-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.human-check-row.has-error .human-check span { color: var(--danger); }

.error-toast {
  position: fixed; top: 22px; right: 22px; z-index: 60; width: 320px;
  background: var(--bg-card); border: 1px solid var(--border-strong); border-left: 3px solid var(--danger);
  border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  padding: 16px 16px 16px 18px; display: flex; gap: 12px; align-items: flex-start;
  animation: toastIn 0.2s ease-out;
}
.error-toast[hidden] { display: none; }
.error-toast.is-leaving { animation: toastOut 0.2s ease-in forwards; }
.error-toast-icon { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--danger); color: #0f1115; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; margin-top: 1px; }
.error-toast-body { flex: 1; }
.error-toast-title { font-size: 13.5px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.error-toast-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.error-toast-list li { font-size: 12.5px; color: var(--text-muted); position: relative; padding-left: 12px; }
.error-toast-list li::before { content: "•"; position: absolute; left: 0; color: var(--danger); }
.error-toast-close { flex-shrink: 0; background: none; border: none; color: var(--text-faint); font-size: 16px; line-height: 1; cursor: pointer; padding: 2px; }
.error-toast-close:hover { color: #fff; }
.error-toast.is-success { border-color: var(--border-strong); border-left-color: var(--success); }
.error-toast.is-success .error-toast-icon { background: var(--success); }
.error-toast.is-success .error-toast-list li::before { color: var(--success); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-8px); } }

/* ---------- CLOSING CTA ---------- */
.closing-section { text-align: center; padding: 80px 24px 140px; }
.closing-statement { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 700; line-height: 1.18; margin-bottom: 36px; letter-spacing: -0.02em; }
.closing-statement b { color: var(--accent); }
.closing-sub { font-size: 1.05rem; color: var(--text-muted); max-width: 480px; margin: 0 auto 32px; }

/* ---------- FOOTER ---------- */
footer { background: var(--bg-contrast); border-top: 1px solid var(--border); padding: 64px 24px 40px; }
.footer-row { max-width: 1200px; margin: 0 auto; display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; max-width: 320px; }
.footer-desc { font-size: 13.5px; line-height: 1.6; color: var(--text-faint); }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { font-size: 13.5px; color: var(--text-muted); }
.footer-links a:hover { color: #fff; }
.footer-copy { max-width: 1200px; margin: 28px auto 0; font-size: 12px; color: var(--text-faint); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .editorial-grid, .work-grid, .depth-grid, .contact-grid, .method-grid, .solutions-grid { grid-template-columns: 1fr !important; }
  .nav-links { display: none; }
}
@media (max-width: 768px) {
  .philosophy-list { grid-template-columns: 1fr; }
  section { padding: 80px 20px; }
  .editorial-container { padding: 80px 20px; }
  .closing-section { padding: 60px 20px 90px; }
}
