/* Business home page. Builds on plexus.css (tokens, header, buttons, footer);
   nothing here changes how tech.html or protocol.html look. */

.skip { position: absolute; left: .75rem; top: -4rem; z-index: 50; padding: .6rem 1rem;
        background: var(--accent); color: var(--ground); border-radius: var(--radius);
        font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .84rem; }
.skip:focus { top: .75rem; text-decoration: none; }

/* Home reads the muted tone, not the faint one: faint fails AA on the light ground. */
.home .eyebrow { color: var(--muted); }
.home section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.home .sub { font-size: clamp(1.02rem, 1.6vw, 1.15rem); color: var(--muted); max-width: 54ch; margin: 0; }
.home .head { margin-bottom: 2.4rem; }
.home h2 { font-size: clamp(1.55rem, 3.4vw, 2.2rem); }
.home .btn { padding: .8rem 1.25rem; font-size: .9rem; min-height: 44px; }
.home .btn.primary { font-weight: 600; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* nav: Contact stays visible as the call to action */
header nav .navlink { padding: .5rem .1rem; }
header nav a.btn.nav-cta { padding: .5rem .9rem; min-height: 36px; font-size: .82rem; }
header nav a.navkey { font-weight: 600; color: var(--ink); }
@media (max-width: 860px) { header nav a.navlink.opt { display: none; } }
@media (max-width: 420px) { header nav { gap: .8rem; } header nav a.navlink.hide-xs { display: none; } }

/* ── hero ── */
.home .hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 4rem; } }
.home h1 { font-size: clamp(2.1rem, 6.4vw, 3.6rem); line-height: 1.06; letter-spacing: -.04em; margin-bottom: 1.2rem; }
.home h1 em { font-style: normal; color: var(--accent); }
.hero .sub { font-size: clamp(1.08rem, 2vw, 1.25rem); max-width: 48ch; }
.hero .cta { margin-top: 2rem; }
.hero .assure { margin: 1.6rem 0 0; font-size: .86rem; color: var(--muted); }

.mesh { width: 100%; max-width: 30rem; margin-inline: auto; display: block; color: var(--ink); }
.mesh .wire { stroke: var(--wire); stroke-width: 1.5; fill: none; }
.mesh .flow { stroke: var(--accent); stroke-width: 1.5; fill: none; stroke-dasharray: 3 7; opacity: .9; }
.mesh .node rect { fill: var(--surface); stroke: var(--wire); stroke-width: 1.5; }
.mesh .node text { fill: var(--ink); font: 600 13px ui-monospace, "SF Mono", Menlo, monospace; }
.mesh .core circle { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.mesh .core path { stroke: var(--accent); stroke-width: 5; stroke-linecap: square; fill: none; }
.mesh .dot { fill: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .mesh .flow { animation: flow 2.4s linear infinite; }
  @keyframes flow { to { stroke-dashoffset: -20; } }
}

/* ── proof strip ── */
.strip { border-top: 1px solid var(--wire); border-bottom: 1px solid var(--wire); padding: 1.1rem 0; background: var(--sunk); }
.strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: center;
            font-size: .84rem; color: var(--muted); }
.strip li::before { content: "·"; color: var(--accent); margin-right: .6rem; font-weight: 700; }

/* ── service cards ── */
.svc { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .svc { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .svc { grid-template-columns: repeat(4, 1fr); } }
.svc .card { padding: 1.6rem 1.4rem; display: flex; flex-direction: column; transition: border-color .2s ease, transform .2s ease; }
.svc .card:hover { border-color: var(--accent); }
@media (prefers-reduced-motion: no-preference) { .svc .card:hover { transform: translateY(-3px); } }
.svc .ico { width: 40px; height: 40px; color: var(--accent); margin-bottom: 1.1rem; }
.svc h3 { font-size: 1.1rem; margin: 0 0 .6rem; }
.svc p { font-size: .94rem; line-height: 1.6; }
.svc ul { list-style: none; margin: 1rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--wire); display: grid; gap: .4rem;
          font-size: .86rem; color: var(--muted); }
.svc li { padding-left: 1.1rem; position: relative; }
.svc li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 1.5px; background: var(--accent); }

/* ── work ── */
.work { display: grid; gap: 1.6rem; }
@media (min-width: 820px) { .work { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
.proj { margin: 0; background: var(--surface); border: 1px solid var(--wire); border-radius: 8px; overflow: hidden;
        display: flex; flex-direction: column; }
.proj img { width: 100%; height: auto; aspect-ratio: 1100 / 688; object-fit: cover; border: 0; border-radius: 0; display: block; background: var(--sunk); }
.proj .body { padding: 1.4rem 1.4rem 1.6rem; }
.proj h3 { margin: 0 0 .15rem; font-size: 1.15rem; }
.proj .kind { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
              font-family: ui-monospace, "SF Mono", Menlo, monospace; margin: 0 0 .8rem; }
.proj p { margin: 0 0 1rem; font-size: .94rem; color: var(--muted); }
.proj .visit { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .86rem; font-weight: 600; }

/* ── steps ── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; counter-reset: s; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 0; } }
.steps li { counter-increment: s; position: relative; padding: 1.4rem 1.4rem 0 0; border-top: 1px solid var(--wire); }
@media (min-width: 1100px) { .steps li { padding-right: 2rem; } }
.steps li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; background: var(--accent); }
.steps .n { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .8rem; color: var(--accent); font-weight: 600; letter-spacing: .1em; }
.steps h3 { margin: .5rem 0 .5rem; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ── mesh band ── */
.band { background: var(--sunk); }
.band .inner { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .band .inner { grid-template-columns: 1.1fr .9fr; gap: 4rem; } }
.band .points { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.band .points li { background: var(--surface); border: 1px solid var(--wire); border-radius: 6px; padding: 1rem 1.1rem; font-size: .93rem; color: var(--muted); }
.band .points strong { color: var(--ink); display: block; font-size: .95rem; margin-bottom: .15rem; }

/* ── faq ── */
.faq { max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--wire); }
.faq details:first-child { border-top: 1px solid var(--wire); }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 2.2rem 1.15rem 0; position: relative; font-weight: 600;
               font-size: 1rem; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: 1rem; font-size: 1.4rem; line-height: 1.2; color: var(--accent);
                      font-family: ui-monospace, monospace; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 2.2rem 1.3rem 0; color: var(--muted); max-width: 60ch; }
.faq details > div p { margin: 0 0 .7rem; }

/* ── final cta ── */
.final { text-align: center; }
.final .box { border: 1px solid var(--wire); background: var(--surface); border-radius: 10px; padding: clamp(2.2rem, 6vw, 4rem) 1.4rem; }
.final h2 { max-width: 22ch; margin-inline: auto; }
.final .sub { margin: 0 auto; }
.final .cta { justify-content: center; }
.final .fine { margin: 1.3rem 0 0; font-size: .85rem; color: var(--muted); }

/* ── reveal on scroll (only when JS has run; never hides content otherwise) ── */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .js .rv.in { opacity: 1; transform: none; }
}

footer a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--wire); }
footer a:hover { text-decoration-color: currentColor; }
footer { color: var(--muted); }
footer h4 { color: var(--muted); }

/* ── mesh flagship ── */
.mesh-grid { display: grid; gap: 2.4rem; align-items: center; }
@media (min-width: 900px) { .mesh-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; } }
.mdiag { margin: 0; background: var(--surface); border: 1px solid var(--wire); border-radius: 10px; padding: 1rem; }
.mdiag svg { width: 100%; height: auto; display: block; color: var(--ink); }
.mdiag .wire { stroke: var(--wire); stroke-width: 1.5; fill: none; }
.mdiag .flow { stroke: var(--accent); stroke-width: 2; fill: none; stroke-dasharray: 3 7; }
.mdiag .node rect { fill: var(--sunk); stroke: var(--wire); stroke-width: 1.5; }
.mdiag .core circle { fill: var(--surface); stroke: var(--accent); stroke-width: 2.5; }
.mdiag text { fill: var(--ink); font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.mdiag .t1 { font-size: 17px; font-weight: 700; }
.mdiag .t2 { font-size: 14px; font-weight: 500; fill: var(--muted); }
.mdiag figcaption { margin: .6rem .4rem .2rem; font-size: .86rem; color: var(--muted); text-align: center; }
@media (prefers-reduced-motion: no-preference) { .mdiag .flow { animation: flow 2.4s linear infinite; } }
.mesh-copy h3 { margin: 0 0 .5rem; font-size: 1.1rem; }
.mesh-copy p { color: var(--muted); margin: 0 0 1.5rem; max-width: 54ch; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; color: var(--muted); font-size: .96rem; }
.ticks li { padding-left: 1.2rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 2px; background: var(--accent); }
.ticks strong { color: var(--ink); }
.ex-h { margin: 3.2rem 0 1.2rem; font-size: 1.15rem; }
.ex { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 820px) { .ex { grid-template-columns: repeat(3, 1fr); } }
.ex li { background: var(--surface); border: 1px solid var(--wire); border-radius: 8px; padding: 1.3rem; }
.ex .n { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .8rem; color: var(--accent); font-weight: 600; letter-spacing: .1em; }
.ex h4 { margin: .4rem 0 .5rem; font-size: 1.05rem; }
.ex p { margin: 0; color: var(--muted); font-size: .94rem; }
.mesh-more { margin-top: 2.4rem; }
.mesh-more p { color: var(--muted); max-width: 62ch; margin: 0 0 1.2rem; }
.svc .card.feature { grid-column: 1 / -1; border-color: var(--accent); flex-direction: row; gap: 1.2rem; align-items: flex-start; }
.svc .card.feature .ico { flex: none; margin: 0; }
.svc .card.feature p { max-width: 64ch; }
.svc .visit { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .86rem; font-weight: 600; }

/* ── agents we run ── */
.h3big { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: 0 0 .6rem; }
.acards { display: grid; gap: 1rem; }
@media (min-width: 720px) { .acards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .acards { grid-template-columns: repeat(3, 1fr); } }
.acard { background: var(--surface); border: 1px solid var(--wire); border-radius: 8px; padding: 1.4rem; }
.acard .kind { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-family: ui-monospace, "SF Mono", Menlo, monospace; margin: 0 0 .5rem; }
.acard h4 { margin: 0 0 .2rem; font-size: 1.2rem; }
.acard > p:not(.kind) { margin: 0 0 1rem; color: var(--muted); }
.aflow { margin-top: 1.2rem; }
.aflow .t1 { font-size: 17px; }
.aflow .t2 { font-size: 15px; }
.acard h4 { display: flex; align-items: center; gap: .5rem; }
.aico { width: 22px; height: 22px; color: var(--accent); flex: none; }
.aflow-steps { display: none; }
@media (max-width: 720px) {
  .aflow > svg { display: none; }
  .aflow-steps { display: grid; counter-reset: st; list-style: none; margin: 0; padding: 0; gap: 0; text-align: left; }
  .aflow-steps li { counter-increment: st; position: relative; padding: .2rem 0 1.1rem 3rem; min-width: 0; overflow-wrap: anywhere; }
  .aflow-steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border: 2px solid var(--accent); border-radius: 50%; background: var(--surface); color: var(--ink); font: 700 .9rem ui-monospace, "SF Mono", Menlo, monospace; display: grid; place-items: center; }
  .aflow-steps li:not(:last-child)::after { content: ""; position: absolute; left: calc(1rem - 1px); top: 2.1rem; bottom: .1rem; width: 2px; background: var(--accent); opacity: .6; }
  .aflow-steps strong { display: block; color: var(--ink); font-size: 1.02rem; line-height: 1.35; }
  .aflow-steps span { display: block; color: var(--muted); font-size: .94rem; line-height: 1.45; margin-top: .1rem; }
}
