/* ==========================================================================
   System_Thread — core stylesheet
   Dark, minimal, thin green "thread" lines taken from the logo.
   ========================================================================== */

:root {
  --bg: #0a0b0a;
  --bg-2: #0e100f;
  --panel: #111412;
  --panel-2: #151916;
  --line: #1e2621;
  --line-2: #2a352e;
  --green: #39e991;
  --green-2: #2bc579;
  --green-soft: rgba(57, 233, 145, 0.12);
  --green-glow: rgba(57, 233, 145, 0.35);
  --text: #e8ece9;
  --muted: #8a948e;
  --dim: #5d6761;

  --font-head: "Manrope", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --radius: 10px;
  --radius-lg: 16px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(72px, 10vw, 128px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }

:lang(el) h1, :lang(el) h2 { letter-spacing: -0.015em; }

::selection { background: var(--green); color: #04130b; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--green); color: #04130b; padding: 10px 16px; border-radius: 6px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Mono labels: the "code" detail from the System_Thread wordmark ---------- */
.mono {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--green);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--green);
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 20px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--green);
  box-shadow: 0 0 8px var(--green-glow);
}

.accent { color: var(--green); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.98rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s, color .25s;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--green); color: #04130b; }
.btn-primary:hover { background: #5ff0a8; box-shadow: 0 0 0 4px var(--green-soft), 0 8px 30px -8px var(--green-glow); }
.btn-ghost { border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 11, 10, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 84px; }

.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand-mark { width: 58px; height: auto; }
.brand-word { width: 200px; height: auto; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 12px; border-radius: 6px; font-size: 0.94rem; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--green); border-radius: 0; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 6px; padding: 6px 10px;
  transition: color .2s, border-color .2s;
}
.lang-switch:hover { color: var(--green); border-color: var(--green); }
.header-cta { padding: 10px 16px; font-size: 0.9rem; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-2); border-radius: 8px;
  width: 42px; height: 42px; color: var(--text); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s var(--ease), background .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .header-actions { margin-left: auto; }
  .nav {
    position: fixed; inset: 84px 0 auto 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; color: var(--text); }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--green); }
  .nav-open .nav { opacity: 1; transform: none; visibility: visible; }
}
@media (max-width: 420px) {
  .brand-word { width: 150px; }
  .brand-mark { width: 44px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(64px, 10vw, 120px) 0 clamp(72px, 10vw, 128px);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(57, 233, 145, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(57, 233, 145, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero h1 .accent { display: block; }
.hero-sub { font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: var(--muted); max-width: 54ch; margin-bottom: 36px; }
.hero-punch {
  font-family: var(--font-mono); font-size: 0.9rem; color: var(--text);
  display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 28px;
}
.hero-punch span::before { content: "> "; color: var(--green); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 460px; justify-self: end; width: 100%; }
.hero-visual svg { width: 100%; height: 100%; overflow: visible; }
.thread-path {
  fill: none; stroke: var(--green); stroke-width: 1.2;
  stroke-dasharray: var(--len, 1); stroke-dashoffset: var(--len, 1);
  animation: draw 2.4s var(--ease) forwards;
}
.thread-path.faint { stroke: var(--line-2); animation-duration: 3s; }
.thread-node { fill: var(--bg); stroke: var(--green); stroke-width: 1.4; opacity: 0; animation: pop .5s var(--ease) forwards; }
.thread-node.core { fill: var(--green); filter: drop-shadow(0 0 10px var(--green-glow)); }
.thread-label { font-family: var(--font-mono); font-size: 11px; fill: var(--muted); opacity: 0; animation: pop .6s ease forwards; letter-spacing: .04em; }
.pulse { fill: var(--green); filter: drop-shadow(0 0 6px var(--green)); }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; } }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { justify-self: center; max-width: 320px; margin-top: 8px; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-alt { background: var(--bg-2); }

/* the vertical "thread" that runs down the page */
.thread-rail { position: relative; }
.thread-rail::before {
  content: ""; position: absolute; left: max(calc((100% - var(--wrap)) / 2 - 28px), 8px); top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, transparent, var(--line-2) 8%, var(--line-2) 92%, transparent);
}
@media (max-width: 1280px) { .thread-rail::before { display: none; } }

/* ---------- Pain points ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.pain { background: var(--bg); padding: 32px 28px; }
.pain .mono { display: block; margin-bottom: 18px; color: var(--dim); }
.pain h3 { margin-bottom: 10px; }
.pain p { color: var(--muted); font-size: 0.97rem; margin: 0; }
@media (max-width: 1000px) { .pain-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pain-grid { grid-template-columns: 1fr; } }

/* ---------- Service cards ---------- */
.services-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.service-card { grid-column: span 2; }
.service-card:nth-child(4), .service-card:nth-child(5) { grid-column: span 3; }
.service-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; transition: border-color .3s, transform .3s var(--ease), background .3s;
  overflow: hidden;
}
.service-card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 1px; width: 100%;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  transform: scaleX(0); transition: transform .5s var(--ease);
}
.service-card:hover { border-color: var(--line-2); background: var(--panel-2); transform: translateY(-3px); }
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
  width: 52px; height: 52px; border-radius: 12px; border: 1px solid var(--line-2);
  display: grid; place-items: center; margin-bottom: 24px; color: var(--green);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.3rem; }
.service-card p { color: var(--muted); font-size: 0.98rem; flex: 1; }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-family: var(--font-mono); font-size: 0.82rem; color: var(--green); }
.card-link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.service-card:hover .card-link svg { transform: translateX(4px); }
.stretched::before { content: ""; position: absolute; inset: 0; }
@media (max-width: 1000px) { .services-grid { grid-template-columns: 1fr 1fr; } .service-card, .service-card:nth-child(4), .service-card:nth-child(5) { grid-column: span 1; } .service-card:last-child:nth-child(odd) { grid-column: span 2; } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } .service-card:last-child:nth-child(odd) { grid-column: span 1; } .service-card { padding: 26px; } }

/* ---------- Process ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; counter-reset: step; }
.process::before {
  content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 1px;
  background: linear-gradient(90deg, var(--green), var(--line-2) 70%, transparent);
  transform-origin: left; transform: scaleX(var(--progress, 0)); transition: transform 1.6s var(--ease);
}
.process.is-visible { --progress: 1; }
.step { position: relative; padding-top: 44px; }
.step::before {
  content: ""; position: absolute; top: 4px; left: 0; width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--green); box-shadow: 0 0 0 4px var(--bg);
}
.step:first-child::before { background: var(--green); box-shadow: 0 0 0 4px var(--bg), 0 0 16px var(--green-glow); }
.step .mono { display: block; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.97rem; }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; gap: 0; padding-left: 36px; }
  .process::before { left: 7px; right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; transform: scaleY(var(--progress, 0)); transform-origin: top; background: linear-gradient(180deg, var(--green), var(--line-2)); }
  .step { padding: 0 0 36px; }
  .step::before { left: -36px; top: 4px; }
}

/* ---------- Why us ---------- */
.why { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.why-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.why-item { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.why-item svg { width: 24px; height: 24px; color: var(--green); margin-top: 3px; }
.why-item h3 { margin-bottom: 6px; }
.why-item p { color: var(--muted); margin: 0; font-size: 0.98rem; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative;
  font-family: var(--font-head); font-weight: 700; font-size: 1.12rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); color: var(--green); font-size: 1.3rem; transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--green); }
.faq .answer { padding: 0 0 24px; color: var(--muted); max-width: 70ch; }

/* ---------- CTA band ---------- */
.cta-band { padding: var(--section) 0; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.cta-box {
  position: relative; border: 1px solid var(--line-2); border-radius: 20px;
  padding: clamp(36px, 6vw, 72px); background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(57, 233, 145, 0.10), transparent 60%),
    var(--panel);
  display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
}
.cta-box::before {
  content: ""; position: absolute; top: -1px; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
}
.cta-box h2 { margin-bottom: 12px; }
.cta-box p { color: var(--muted); margin: 0; max-width: 56ch; }
.cta-contact { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cta-contact .mono a:hover { text-decoration: underline; }
@media (max-width: 800px) { .cta-box { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 32px; background: var(--bg-2); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand .brand-word { width: 170px; margin: 16px 0 8px; }
.footer-brand p { color: var(--muted); max-width: 34ch; }
.site-footer h2 { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; color: var(--dim); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--muted); transition: color .2s; }
.site-footer a:hover { color: var(--green); }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  color: var(--dim); font-size: 0.85rem;
}
.footer-bottom .mono { color: var(--dim); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .pulse { display: none; }
}
.footer-mark { width: 56px; height: auto; }
.pulse { opacity: 0; animation: pop .4s 2.4s forwards; }
.thread-path.d1 { animation-delay: .15s; } .thread-path.d2 { animation-delay: .3s; }
.thread-path.d3 { animation-delay: .45s; } .thread-path.d4 { animation-delay: .6s; }
.thread-node { animation-delay: 1.1s; } .thread-node.core { animation-delay: .2s; } .thread-label { animation-delay: 1.4s; }
.no-js .process { --progress: 1; }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero {
  position: relative; overflow: hidden;
  padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px);
  border-bottom: 1px solid var(--line);
}
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); max-width: 20ch; margin-bottom: 20px; }
.page-hero .lead { margin-bottom: 32px; }
.page-hero-tall { min-height: 62vh; display: flex; align-items: center; }
.page-hero-icon {
  width: 56px; height: 56px; border-radius: 14px; border: 1px solid var(--line-2);
  display: grid; place-items: center; color: var(--green); margin-bottom: 24px;
  box-shadow: 0 0 40px -12px var(--green-glow);
}
.page-hero-icon svg { width: 28px; height: 28px; }

.breadcrumb { margin-bottom: 36px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--dim); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb [aria-current] { color: var(--text); }

.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.feature-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.feature { background: var(--bg); padding: 32px 28px; transition: background .3s; }
.section-alt .feature { background: var(--bg-2); }
.feature:hover { background: var(--panel); }
.feature .mono { display: block; margin-bottom: 16px; color: var(--dim); }
.feature h3 { margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 0.97rem; margin: 0; }
@media (max-width: 1000px) { .feature-grid, .feature-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid, .feature-grid.cols-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split .section-head { margin-bottom: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.check-list { display: grid; border-top: 1px solid var(--line); }
.check-list li {
  position: relative; padding: 20px 0 20px 40px; border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
}
.check-list li::before {
  content: ""; position: absolute; left: 4px; top: 27px; width: 14px; height: 7px;
  border-left: 1.5px solid var(--green); border-bottom: 1.5px solid var(--green); transform: rotate(-45deg);
}

.related { grid-template-columns: repeat(4, 1fr); }
.related .service-card, .related .service-card:nth-child(n) { grid-column: auto; padding: 26px; }
@media (max-width: 1000px) { .related { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .related { grid-template-columns: 1fr; } }

.inline-link { margin: 40px 0 0; color: var(--muted); }
.inline-link a { color: var(--green); border-bottom: 1px solid transparent; transition: border-color .2s; }
.inline-link a:hover { border-bottom-color: var(--green); }

.deliverable { font-size: 0.92rem !important; color: var(--text) !important; border-left: 1px solid var(--green); padding-left: 12px; }
.deliverable .mono { display: inline !important; margin: 0 !important; }

.prose { max-width: 72ch; }
.prose p { color: var(--muted); font-size: 1.08rem; }
.prose a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.legal h2:first-of-type { margin-top: 24px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px); display: grid; gap: 20px;
}
.contact-form h2, .contact-side h2 { font-size: 1.5rem; margin: 0 0 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.9rem; color: var(--muted); }
.req { color: var(--green); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px;
  padding: 13px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--green) 50%), linear-gradient(135deg, var(--green) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #ff6b6b; }
.field-check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 0.92rem; color: var(--muted); }
.field-check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--green); }
.field-check a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.contact-form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 8px; padding: 14px 16px; font-size: 0.95rem; }
.notice-error { border: 1px solid rgba(255, 107, 107, 0.5); background: rgba(255, 107, 107, 0.08); color: #ffb3b3; }
.notice a { color: inherit; text-decoration: underline; }
.contact-side { padding-top: 8px; }
.contact-side dl { margin: 24px 0 0; border-top: 1px solid var(--line); }
.contact-side dl > div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-side dt { margin-bottom: 6px; color: var(--dim); }
.contact-side dd { margin: 0; font-size: 1.1rem; }
.contact-side dd a:hover { color: var(--green); }
.dd-note { display: block; color: var(--muted); font-size: 0.92rem; margin-top: 6px; }
.site-footer li { color: var(--muted); }
.nav a, .header-cta { white-space: nowrap; }
.core-chip { fill: var(--bg); stroke: var(--line-2); stroke-width: 1; opacity: 0; animation: pop .6s ease forwards; animation-delay: 1.4s; }
.core-label { fill: var(--text); }
.company-details { margin: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.company-details > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.company-details dt { color: var(--dim); margin-bottom: 4px; }
.company-details dd { margin: 0; font-size: 1.05rem; }
.company-details a:hover { color: var(--green); }
@media (max-width: 560px) { .company-details { grid-template-columns: 1fr; } }

/* ---------- Business-size tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tier {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; display: flex; flex-direction: column; transition: border-color .3s, transform .3s var(--ease);
}
.tier:hover { border-color: var(--line-2); transform: translateY(-3px); }
.tier-art { width: 80px; height: 56px; margin-bottom: 22px; overflow: visible; }
.tier-art path { fill: none; stroke: var(--green); stroke-opacity: .45; stroke-width: 1.2; transition: stroke-opacity .3s; }
.tier:hover .tier-art path { stroke-opacity: .9; }
.tier-art .n { fill: var(--bg); stroke: var(--green); stroke-width: 1.4; }
.tier-art .n.core { fill: var(--green); }
.tier-art .ring { fill: none; stroke: var(--green); stroke-width: 1; opacity: .4; }
.tier-size { display: block; margin-bottom: 8px; }
.tier h3 { font-size: 1.35rem; }
.tier p { color: var(--muted); font-size: 0.98rem; }
.tier ul { margin-top: auto; border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 10px; }
.tier li { position: relative; padding-left: 24px; font-size: 0.95rem; }
.tier li::before {
  content: ""; position: absolute; left: 2px; top: 8px; width: 10px; height: 5px;
  border-left: 1.5px solid var(--green); border-bottom: 1.5px solid var(--green); transform: rotate(-45deg);
}
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } }

/* ---------- Clickable hero diagram ---------- */
.node-link { cursor: pointer; outline: none; }
.node-link .hit { fill: transparent; stroke: none; }
.node-link .thread-label, .node-link .thread-node { transition: fill .25s, stroke .25s, filter .25s; }
.node-link:hover .thread-label, .node-link:focus-visible .thread-label { fill: var(--green); }
.node-link:hover .thread-node:not(.core), .node-link:focus-visible .thread-node:not(.core) { fill: var(--green); filter: drop-shadow(0 0 8px var(--green-glow)); }
.node-link:focus-visible .hit { stroke: var(--green); stroke-width: 1; stroke-dasharray: 3 3; }
.core-link:hover .core-chip, .core-link:focus-visible .core-chip { stroke: var(--green); }
.core-link:hover .thread-node:not(.core) { fill: var(--bg); }
