/* ==========================================================
   Wirall — site styles
   ========================================================== */

:root {
  --bg: #000;
  --bg-alt: #0a0a0a;
  --surface: #121212;
  --surface-2: #1a1a1a;
  --border: #262626;
  --text: #fff;
  --muted: #a3a3a3;
  --primary: #b8cf53;
  --primary-ink: #0b0b0b;
  --danger: #f87171;

  --radius: 14px;
  --container: 1200px;
  --header-h: 72px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--primary); }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--primary); color: var(--primary-ink);
  padding: 8px 14px; border-radius: 8px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background-color .2s, box-shadow .2s, border-color .2s, color .2s;
}
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { box-shadow: 0 0 24px rgba(184, 207, 83, .45); }
.btn-primary:disabled { opacity: .6; cursor: progress; box-shadow: none; }
.btn-ghost { border-color: #3a3a3a; color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background-color .2s;
}
.site-header.scrolled { background: rgba(0, 0, 0, .85); border-bottom-color: var(--border); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand img { height: 30px; width: auto; }
.main-nav { display: flex; gap: 28px; margin: 0 auto; }
.main-nav a { text-decoration: none; font-weight: 500; color: #e5e5e5; transition: color .2s; }
.main-nav a:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 16px; }

.lang-switch { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.lang-switch button {
  background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700;
  padding: 6px 10px; cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--surface-2); color: var(--primary); }

.menu-toggle {
  display: none; width: 40px; height: 40px; background: none; border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer; position: relative;
}
.menu-toggle span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text);
  transition: transform .2s, top .2s;
}
.menu-toggle span:first-child { top: 15px; }
.menu-toggle span:last-child { top: 23px; }
.nav-open .menu-toggle span:first-child { top: 19px; transform: rotate(45deg); }
.nav-open .menu-toggle span:last-child { top: 19px; transform: rotate(-45deg); }

@media (max-width: 1200px) {
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .header-actions { margin-left: auto; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0; padding: 8px 24px 24px;
    background: #000; border-bottom: 1px solid var(--border);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 18px; }
  .nav-open .main-nav { transform: none; opacity: 1; visibility: visible; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 80px;
  background: #000 url("../assets/images/IMAGEN1.jpg") center / cover no-repeat;
  overflow: hidden;
}
.hero::after { /* soften the image so text stays readable */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.2) 100%),
              linear-gradient(0deg, #000 0%, transparent 25%);
}
.hero-inner { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(44px, 8vw, 96px); font-weight: 800; letter-spacing: -0.035em; }
.lead { margin-top: 24px; max-width: 560px; font-size: clamp(18px, 2vw, 21px); color: #d4d4d4; }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid #141414; border-bottom: 1px solid #141414; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2, .about h2, .contact h2 { font-size: clamp(34px, 4.5vw, 52px); }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 19px; }

@media (max-width: 700px) { .section { padding: 80px 0; } }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; color: var(--text);
  transition: border-color .2s, transform .2s, background-color .2s;
}
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card p { color: var(--muted); }

.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service .icon {
  width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 24px;
  border-radius: 12px; background: rgba(184, 207, 83, .1); color: var(--primary);
}
.service .icon svg { width: 24px; height: 24px; }
.service:hover { border-color: #3a3a3a; }

.checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.checklist li { position: relative; padding-left: 26px; color: #d4d4d4; font-size: 15px; }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px;
  border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg);
}

.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project { font: inherit; text-align: left; cursor: pointer; display: flex; flex-direction: column; }
.project .project-icon { width: 48px; height: 48px; object-fit: contain; margin-bottom: 24px; }
.project p { flex: 1; }
.project .link { margin-top: 24px; color: var(--primary); font-weight: 700; font-size: 15px; }
.project .link span { display: inline-block; transition: transform .2s; }
.project:hover { border-color: var(--primary); transform: translateY(-2px); }
.project:hover .link span { transform: translateX(4px); }

@media (max-width: 960px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
  .services-grid, .projects-grid { grid-template-columns: 1fr; }
  .card { padding: 26px; }
}

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.about-copy p { margin-top: 20px; font-size: 20px; color: #d4d4d4; max-width: 560px; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 48px; } }

/* ---------- CTA ---------- */
.cta { padding: 0 0 24px; }
.cta-inner {
  text-align: center; padding: 80px 32px; border-radius: 24px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(184, 207, 83, .22), transparent 65%),
    var(--surface);
  border: 1px solid var(--border);
}
.cta h2 { font-size: clamp(30px, 4vw, 46px); max-width: 760px; margin: 0 auto; }
.cta p { margin: 18px auto 32px; color: var(--muted); max-width: 520px; font-size: 18px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.contact-form-wrap > .muted { margin-top: 12px; font-size: 18px; }
.contact-form { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: #e5e5e5; }
.req { color: var(--primary); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 13px 14px; transition: border-color .2s;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a3' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field select:invalid { color: #737373; }
.field option { color: var(--text); background: var(--surface); }
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: #737373; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.form-status { font-size: 15px; }
.form-status.is-success { color: var(--primary); }
.form-status.is-error { color: var(--danger); }

.contact-aside {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; position: sticky; top: calc(var(--header-h) + 24px);
}
.contact-aside h3 { font-size: 22px; }
.contact-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 20px; }
.contact-list .label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.contact-list a { text-decoration: none; font-weight: 600; word-break: break-word; }
.contact-list a:hover { color: var(--primary); }

@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; }
  .contact-aside { position: static; }
}
@media (max-width: 560px) { .contact-form { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 64px 0 32px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-grid img { height: 28px; width: auto; margin-bottom: 16px; }
.footer-grid p { max-width: 320px; }
.footer-grid h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.footer-grid nav a, .footer-grid div a { display: block; text-decoration: none; padding: 4px 0; color: #e5e5e5; }
.footer-grid a:hover { color: var(--primary); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid #161616; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- Project dialog ---------- */
.project-dialog {
  width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
  padding: 0; border: 1px solid var(--border); border-radius: 18px;
  background: var(--bg-alt); color: var(--text); overflow: auto;
}
.project-dialog::backdrop { background: rgba(0, 0, 0, .75); backdrop-filter: blur(4px); }
.project-dialog[open] { animation: pop .2s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.dialog-head {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  padding: 20px 28px; background: rgba(10, 10, 10, .95); border-bottom: 1px solid var(--border);
}
.dialog-head h3 { font-size: 24px; }
.dialog-close {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border);
  background: none; color: var(--text); font-size: 24px; line-height: 1; cursor: pointer;
}
.dialog-close:hover { border-color: var(--primary); color: var(--primary); }
.dialog-body { padding: 28px; display: grid; gap: 40px; }
.tag {
  display: inline-block; margin-bottom: 14px; padding: 4px 12px; border-radius: 999px;
  background: rgba(184, 207, 83, .12); color: var(--primary); font-size: 13px; font-weight: 700;
}
@media (max-width: 760px) {
  .dialog-body, .dialog-head { padding-left: 20px; padding-right: 20px; }
}

/* ==========================================================
   Engagement layer (see js/engage.js)
   ========================================================== */

/* Active nav link */
.main-nav a { position: relative; }
.main-nav a.is-active { color: var(--primary); }
@media (min-width: 1201px) {
  .main-nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
    background: var(--primary); transform: scaleX(0); transition: transform .25s;
  }
  .main-nav a.is-active::after { transform: scaleX(1); }
}

/* Scroll progress */
.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--primary); transform-origin: 0 50%; transform: scaleX(0);
}

/* Hero: entrance, floating glow, parallax */
.hero { --px: 0; --py: 0;
  background-position: calc(50% + var(--px) * -30px) calc(50% + var(--py) * -20px);
  transition: background-position .6s ease-out;
}
.hero-glow {
  position: absolute; z-index: 1; width: 520px; height: 520px; border-radius: 50%;
  left: 55%; top: 20%; pointer-events: none;
  background: radial-gradient(circle, rgba(184, 207, 83, .28), transparent 65%);
  filter: blur(20px);
  transform: translate(calc(var(--px) * 60px), calc(var(--py) * 60px));
  transition: transform .8s ease-out;
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: .55; scale: 1.15; } }
.hero-inner { z-index: 2; }
.hero-inner > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-inner > :nth-child(2) { animation-delay: .1s; }
.hero-inner > :nth-child(3) { animation-delay: .25s; }
.hero-inner > :nth-child(4) { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.hero h1 .accent {
  background: linear-gradient(90deg, var(--primary), #e6f5a0, var(--primary));
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* Card spotlight */
.card { position: relative; overflow: hidden; isolation: isolate; }
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(184, 207, 83, .12), transparent 60%);
}
.card:hover::before { opacity: 1; }
.service .icon { transition: transform .3s, background-color .3s; }
.service:hover .icon { transform: translateY(-3px) rotate(-6deg); background: rgba(184, 207, 83, .2); }

/* Reveal on scroll (only when JS is running) */
.js-engage .reveal:not(.services-grid):not(.projects-grid) {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
.js-engage .reveal.in:not(.services-grid):not(.projects-grid) { opacity: 1; transform: none; }
.js-engage :is(.services-grid, .projects-grid).reveal > * {
  opacity: 0; translate: 0 28px;
  transition: opacity .6s ease var(--d, 0s), translate .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0s),
              border-color .2s, transform .2s, background-color .2s;
}
.js-engage :is(.services-grid, .projects-grid).reveal.in > * { opacity: 1; translate: 0 0; }
.js-engage .reveal > :nth-child(2) { --d: .08s; }
.js-engage .reveal > :nth-child(3) { --d: .16s; }
.js-engage .reveal > :nth-child(4) { --d: .24s; }
.js-engage .reveal > :nth-child(5) { --d: .32s; }
.js-engage .reveal > :nth-child(6) { --d: .40s; }

@media (prefers-reduced-motion: reduce) {
  .js-engage .reveal { opacity: 1 !important; transform: none !important; }
  .js-engage :is(.services-grid, .projects-grid).reveal > * { opacity: 1 !important; translate: none !important; }
}


/* ---------- Ecosystem ---------- */
.main-nav a, .header-cta { white-space: nowrap; }
.services-grid { grid-template-columns: repeat(3, 1fr); }
.eco { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.eco h2 { font-size: clamp(34px, 4.5vw, 52px); }
.eco-text { margin-top: 20px; color: #d4d4d4; font-size: 18px; }
.eco-panel { min-height: 150px; margin: 32px 0 24px; padding-left: 20px; border-left: 2px solid var(--primary); }
.eco-panel h3 { font-size: 21px; color: var(--primary); margin-bottom: 8px; }
.eco-panel p { color: #d4d4d4; font-size: 16px; }
.eco-map { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1; margin: 0 auto;
  background: radial-gradient(circle, rgba(184, 207, 83, .14), transparent 60%); }
.eco-map svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; }
.orbit, .spoke { stroke: #3a3a3a; stroke-width: 1; vector-effect: non-scaling-stroke; }
.spoke { transition: stroke .3s; }
.spoke.on { stroke: var(--primary); stroke-width: 2; stroke-dasharray: 4 6; animation: flow 1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -10; } }
.eco-center, .eco-node { position: absolute; transform: translate(-50%, -50%); display: grid; place-items: center; text-align: center; }
.eco-center { left: 50%; top: 50%; width: 26%; aspect-ratio: 1; padding: 8px; border-radius: 50%;
  background: var(--primary); color: var(--primary-ink); font-weight: 800; line-height: 1.2; font-size: clamp(14px, 1.5vw, 18px); }
.eco-node { padding: 12px 20px; min-height: 48px; border: 1px solid #3a3a3a; border-radius: 999px; background: var(--bg);
  color: var(--text); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: border-color .2s, color .2s; }
.eco-node:hover, .eco-node[aria-pressed="true"] { border-color: var(--primary); color: var(--primary); }
@media (max-width: 960px) { .eco { grid-template-columns: 1fr; gap: 40px; } .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .services-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .eco-node { padding: 8px 12px; min-height: 44px; font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .spoke.on { animation: none; } }
.brand { flex-shrink: 0; }
@media (max-width: 960px) {
  .eco { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
  .eco-copy { display: contents; }
  .eco-text { margin: 0; }
  .eco-map { order: 1; } .eco-panel { order: 2; margin: 0; width: 100%; } .eco .btn { order: 3; }
}
@media (max-width: 560px) { .eco-node { padding: 8px 10px; font-size: 13px; } }

/* ---------- Domain knowledge popup ---------- */
.dialog-body { gap: 24px; }
.domain-intro { font-size: 20px; line-height: 1.5; }
.domain-label { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--primary); }
.domain-clients { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.domain-clients li { padding-left: 20px; border-left: 2px solid var(--primary); }
.domain-clients strong { font-size: 18px; }
.domain-clients p { margin-top: 4px; color: #d4d4d4; font-size: 16px; }

/* ---------- Hub layout ---------- */
.hero { min-height: min(820px, 100svh); padding: calc(var(--header-h) + 96px) 0 96px; align-items: center; background: #000; }
.hero::before { content: ""; position: absolute; inset: 0; /* haze behind the mesh */
  background: radial-gradient(ellipse 36% 52% at 64% 46%, rgba(184, 207, 83, .34), rgba(184, 207, 83, .1) 55%, transparent 100%); }
.hero::after { z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.2) 50%, transparent 100%), linear-gradient(0deg, #000 0%, transparent 22%); }
#mesh, #mesh-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px 64px; align-items: end; }
.hero h1 { grid-row: 2 / 4; }
.hero .lead, .hero-actions { margin: 0; }
#ecosystem .eco { display: block; }
#ecosystem .eco-copy { display: block; max-width: 760px; margin-bottom: 24px; }
.hub { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: start; }
.hub .eco-map { position: sticky; top: max(90px, calc(50vh - 270px)); max-width: 500px; }
.chapter { min-height: 66vh; padding: 60px 0; display: flex; flex-direction: column; justify-content: center; gap: 20px; scroll-margin-top: 60px; }
.chapter > h3 { font-size: clamp(34px, 4vw, 52px); color: var(--primary); }
.chapter > p { font-size: 20px; color: #d4d4d4; }
.area-service { border-top: 1px solid var(--border); padding-top: 22px; }
.area-service h4 { font-size: 23px; margin-bottom: 8px; }
.area-service p { color: var(--muted); }
.area-service .checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
.projects-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.projects-grid > * { grid-column: span 2; }
.projects-grid > :nth-child(-n+2) { grid-column: span 3; }
.projects-grid > :nth-child(-n+2) h3 { font-size: 32px; }
@media (max-width: 960px) {
  .hero-inner, .hub { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { grid-row: auto; }
#ecosystem .eco-text { margin-top: 18px; }
  .hub { gap: 20px; }
  .hub .eco-map { position: relative; top: 0; order: 0; }
  .chapter { min-height: 0; padding: 40px 0; }
  .projects-grid > *, .projects-grid > :nth-child(-n+2) { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .area-service .checklist { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Motion (see js/motion.js) ---------- */
.nav-bar { display: none; }
@media (min-width: 1201px) {
  .main-nav { position: relative; }
  .main-nav a::after { display: none; }
  .nav-bar { display: block; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; opacity: 0; background: var(--primary); }
  .main-nav.has-goal a.is-active:not(.is-goal) { color: #e5e5e5; }
  .main-nav a.is-goal { color: var(--primary); }
}
.eco-beam, .eco-trail { stroke: var(--primary); stroke-width: 2; stroke-linecap: round; fill: none; vector-effect: non-scaling-stroke; }
.eco-trail { opacity: .55; }
.eco-node, .eco-node[aria-pressed="true"] {
  --mix: calc(var(--on, 0) * 100%); transition: none;
  color: color-mix(in srgb, var(--primary) var(--mix), #fff);
  border-color: color-mix(in srgb, var(--primary) var(--mix), #3a3a3a);
}
.eco-node:hover { border-color: var(--primary); color: var(--primary); }
.eco-node { box-shadow: 0 0 calc(var(--on, 0) * 26px) rgba(184, 207, 83, calc(var(--on, 0) * .35)); }

.hero h1 { grid-row: 1 / 3; }
.hero .lead { align-self: end; }
.about { grid-template-columns: minmax(0, 1fr); }
.about-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 24px 64px; align-items: start; }
.about-copy p { margin: 0; max-width: 34em; }
@media (max-width: 960px) { .hero h1 { grid-row: auto; } .about-copy { grid-template-columns: minmax(0, 1fr); } }
.about-copy .about-lead { margin-bottom: 20px; color: var(--text); font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; text-wrap: balance; }

/* Fine grain over the hero canvases: keeps the soft glows from banding */
.hero-inner::before { content: ""; position: absolute; z-index: -1; pointer-events: none; top: -50vh; bottom: -50vh; left: 50%; width: 100vw; margin-left: -50vw; opacity: .022;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* FAQ: plain questions and answers, readable by people and AI assistants alike */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 24px 64px; align-items: start; }
.faq .section-head { margin: 0; text-align: left; }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.4; }
.faq-item summary:hover h3, .faq-item[open] summary h3 { color: var(--primary); }
.faq-item summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 4px; }
.faq-icon { position: relative; flex: none; width: 14px; height: 14px; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; border-radius: 2px; background: var(--primary); transition: transform .25s ease; }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-item p { margin: 0 0 24px; max-width: 40em; color: var(--muted); }
@media (max-width: 960px) { .faq { grid-template-columns: minmax(0, 1fr); } }

/* Office address */
address { font-style: normal; }
.contact-list address { line-height: 1.5; }
.site-footer address { margin-top: 12px; line-height: 1.5; }
