/* Professional services: same brand, more machinery. Every visual here demonstrates a capability. */

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sub { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2.4vw, 27px); color: var(--cyan); margin: -6px 0 18px; line-height: 1.3; }
.svc p + p { margin-top: 12px; }
.svc-copy > p:not(.lede):not(.sub) { color: var(--muted); }
.btn.big { font-size: 15px; padding: 17px 30px; }
.ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.scope { color: var(--dim); font-size: 13.5px; margin-top: 12px; }
.section.alt { background: var(--bg-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Hero */
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.reach { border-left: 3px solid var(--acc); padding: 6px 0 6px 22px; margin-top: 22px; max-width: 640px; }
.reach p { color: var(--muted); }
.reach p b { color: var(--text); font-size: 17px; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 30px; } }

/* Media slots (reusable) */
.media-slot { position: relative; margin: 0; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); aspect-ratio: 10 / 7; }
.media-slot.wide { aspect-ratio: auto; margin-top: 36px; }
.media-slot.tall { aspect-ratio: auto; }
.media-slot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.media-slot.has-video video { opacity: 1; }
.media-slot.has-video .demo { opacity: 0; pointer-events: none; }
.demo { position: absolute; inset: 0; transition: opacity .6s; }
.media-slot.wide .demo, .media-slot.tall .demo { position: relative; }
.demo svg { width: 100%; height: 100%; display: block; }

/* SVG diagram language */
.node .ring { fill: var(--panel-2); stroke: var(--line-bright); stroke-width: 1.5; }
.node text { fill: var(--text); font-family: var(--font-mono); font-size: 10px; font-weight: 700; text-anchor: middle; letter-spacing: 1px; }
.node text.small { fill: var(--muted); font-size: 8px; font-weight: 400; }
.node.core .ring { stroke: var(--acc); fill: rgba(var(--acc-rgb), .12); }
.node.core text { fill: var(--acc); font-size: 13px; }
.flow-line { stroke-dasharray: 5 9; animation: dash 2.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.eco .node .ring { animation: breathe 5s ease-in-out infinite; transform-origin: center; }
@keyframes breathe { 50% { stroke: var(--acc); } }
.mit .dev rect { fill: var(--panel-2); stroke: var(--line-bright); stroke-width: 1.5; }
.mit .dev text, .mit .cloud text { fill: var(--text); font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; text-anchor: middle; letter-spacing: 1px; }
.mit .cloud rect { fill: rgba(91, 197, 238, .08); stroke: var(--cyan); stroke-width: 1.5; }
.mit .cloud text { fill: var(--cyan); }
.mit .status text { fill: var(--muted); font-family: var(--font-mono); font-size: 8.5px; text-anchor: middle; letter-spacing: 1.5px; }

/* Security demo */
.sec .grid-node { fill: var(--panel-2); stroke: var(--line-bright); stroke-width: 1.5; transition: fill .4s, stroke .4s; }
.sec .grid-node.threat { fill: rgba(244, 80, 109, .35); stroke: var(--hot); }
.sec .grid-node.detected { stroke: var(--amber); }
.sec .grid-node.contained { fill: rgba(91, 197, 238, .25); stroke: var(--cyan); }
.sec .pulse { fill: none; stroke: var(--amber); stroke-width: 2; opacity: 0; }
.sec .pulse.on { animation: ping 1s ease-out forwards; }
@keyframes ping { 0% { r: 12; opacity: .9; } 100% { r: 40; opacity: 0; } }
.sec .link { stroke: var(--line); stroke-width: 1; }
.sec .label { fill: var(--muted); font-family: var(--font-mono); font-size: 9px; letter-spacing: 1.5px; text-anchor: middle; }
.sec .legend { position: absolute; left: 14px; bottom: 12px; display: flex; gap: 14px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 1px; color: var(--muted); }
.sec .legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.threat { background: var(--hot); } .dot.detected { background: var(--amber); } .dot.contained { background: var(--cyan); }

/* Score preview */
.score { margin-top: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.score-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; color: var(--muted); }
.score-body { display: grid; grid-template-columns: 110px 1fr; gap: 20px; align-items: center; margin-top: 16px; }
.ring { width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--amber) calc(var(--pct) * 1%), var(--line) 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--panel); }
.ring b, .ring small { position: relative; font-family: var(--font-mono); }
.ring b { font-size: 30px; color: var(--text); }
.ring small { font-size: 11px; color: var(--muted); margin-top: -4px; }
.score ul { list-style: none; padding: 0; margin: 0; }
.score li { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--text); }
.score li:first-child { border-top: 0; }
.sev { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.sev.high { background: var(--hot); } .sev.med { background: var(--amber); } .sev.low { background: var(--cyan); }

/* Cyber Health CTA states */
.scan-cta { margin-top: 22px; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; background: var(--panel); border: 1px dashed var(--line-bright); border-radius: 14px; padding: 20px 22px; }
.scan-title { font-family: var(--font-mono); font-weight: 700; font-size: 13px; letter-spacing: 1px; color: var(--text); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.scan-cta p { color: var(--muted); font-size: 14.5px; margin-top: 8px; }
.scan-cta[data-state="live"] { border-style: solid; border-color: var(--cyan); }
.scan-cta[data-state="live"] .chip { display: none; }
@media (max-width: 640px) { .scan-cta { grid-template-columns: 1fr; } }

/* Service overview cards */
.overview { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 36px; }
.ov { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px 20px; color: var(--text); transition: transform .3s, border-color .3s, box-shadow .3s; }
.ov:hover, .ov:focus-visible { transform: translateY(-6px); border-color: var(--acc-dim); box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.ov .n { font-family: var(--font-mono); font-size: 12px; color: var(--acc); letter-spacing: 2px; }
.ov h3 { font-size: 16.5px; margin: 12px 0 8px; line-height: 1.3; }
.ov p { color: var(--muted); font-size: 14px; }
@media (max-width: 1100px) { .overview { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .overview { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .overview { grid-template-columns: 1fr; } }

/* Service sections */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.svc-grid.flip > :first-child { order: 2; }
.svc-copy.narrow { max-width: 820px; }
@media (max-width: 960px) { .svc-grid { grid-template-columns: 1fr; gap: 28px; } .svc-grid.flip > :first-child { order: 0; } }

details.may { margin-top: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
details.may summary { cursor: pointer; list-style: none; padding: 16px 44px 16px 20px; font-family: var(--font-mono); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; color: var(--acc); position: relative; }
details.may summary::-webkit-details-marker { display: none; }
details.may summary::after { content: "+"; position: absolute; right: 18px; top: 11px; font-size: 22px; color: var(--acc); }
details.may[open] summary::after { content: "–"; }
details.may .cols { list-style: none; padding: 0 20px 6px; margin: 0; columns: 2; column-gap: 24px; }
details.may .cols.three { columns: 3; }
details.may .cols li { break-inside: avoid; padding: 6px 0 6px 18px; position: relative; color: var(--text); font-size: 15px; }
details.may .cols li::before { content: "▸"; position: absolute; left: 0; color: var(--acc); font-family: var(--font-mono); }
details.may .scope { padding: 0 20px 16px; margin: 6px 0 0; }
@media (max-width: 640px) { details.may .cols, details.may .cols.three { columns: 1; } }

/* Workflow (AI) and build (software) toggles */
.wf-toggle { display: flex; gap: 8px; padding: 16px 16px 0; flex-wrap: wrap; }
.wf-btn { font-family: var(--font-mono); font-weight: 700; font-size: 12px; letter-spacing: 1px; min-height: 44px; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--line-bright); background: var(--bg); color: var(--muted); cursor: pointer; }
.wf-btn[aria-pressed="true"] { border-color: var(--acc); color: var(--acc); background: rgba(var(--acc-rgb), .1); }
.wf-panel, .build-panel { display: none; padding: 20px 16px 22px; }
.wf-panel.is-on, .build-panel.is-on { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; animation: fadein .45s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.step { flex: 1 1 180px; background: var(--bg); border: 1px solid var(--line-bright); border-radius: 10px; padding: 14px; font-size: 14px; color: var(--text); min-height: 78px; }
.step .who { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 6px; }
.step.ai { border-color: var(--acc); background: rgba(var(--acc-rgb), .08); }
.step.ai .who { color: var(--acc); }
.arr { color: var(--dim); font-size: 20px; }
.wf-note { flex-basis: 100%; font-family: var(--font-mono); font-size: 12px; letter-spacing: .5px; color: var(--muted); padding-top: 6px; }
.wf-panel.auto .wf-note { color: var(--cyan); }
@media (max-width: 640px) { .arr { display: none; } .step { flex-basis: 100%; } }

/* Build demo: problem vs solution */
.build-panel.problem.is-on { display: block; position: relative; min-height: 300px; }
.note { position: absolute; background: #f4e8a8; color: #3a3420; font-family: "Comic Sans MS", "Segoe Print", cursive; font-size: 14px; padding: 14px 16px; width: 200px; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); transform: rotate(var(--r, -2deg)); }
.note.n1 { left: 4%; top: 18px; --r: -3deg; } .note.n2 { left: 34%; top: 40px; --r: 2deg; background: #dfe9ff; }
.note.n3 { left: 62%; top: 22px; --r: -1deg; } .note.n4 { left: 14%; top: 150px; --r: 3deg; background: #ffd9d9; }
.note.n5 { left: 52%; top: 160px; --r: -2deg; }
.build-panel.solution.is-on { display: block; }
.dash { background: var(--bg); border: 1px solid var(--line-bright); border-radius: 12px; overflow: hidden; }
.dash-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; color: var(--muted); }
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px; }
.dash-stats div { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.dash-stats small { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.5px; color: var(--muted); }
.dash-stats b { font-family: var(--font-mono); font-size: 26px; color: var(--acc); }
.dash-chart { display: flex; align-items: flex-end; gap: 8px; height: 90px; padding: 0 16px 12px; }
.dash-chart i { flex: 1; height: var(--h); background: linear-gradient(180deg, var(--acc), var(--acc-dim)); border-radius: 4px 4px 0 0; animation: grow .8s ease both; transform-origin: bottom; }
@keyframes grow { from { transform: scaleY(0); } }
.dash-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.dash-table th, .dash-table td { text-align: left; padding: 9px 16px; border-top: 1px solid var(--line); }
.dash-table th { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.5px; color: var(--muted); font-weight: 700; }
.pill { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1px; padding: 3px 8px; border-radius: 5px; background: rgba(var(--acc-rgb), .12); color: var(--acc); }
.pill.ok { background: rgba(91, 197, 238, .12); color: var(--cyan); } .pill.warn { background: rgba(255, 180, 84, .12); color: var(--amber); }
@media (max-width: 640px) { .note { position: static; transform: none; width: auto; margin-bottom: 10px; } .build-panel.problem.is-on { min-height: 0; } .dash-stats { grid-template-columns: 1fr; } }

/* Training demo */
.train .session { padding: 22px; }
.s-head { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; color: var(--acc); margin-bottom: 14px; }
.train ol { list-style: none; padding: 0; margin: 0; }
.train li { display: grid; grid-template-columns: 54px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--text); }
.train li span { font-family: var(--font-mono); font-size: 12px; color: var(--muted); padding-top: 2px; }

/* Process */
.process { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.process li { padding: 24px 20px; border-left: 1px solid var(--line); position: relative; }
.process .n { font-family: var(--font-mono); font-weight: 700; font-size: 34px; color: var(--acc); line-height: 1; }
.process h3 { font-family: var(--font-mono); font-size: 13px; letter-spacing: 2px; margin: 12px 0 10px; color: var(--text); }
.process p { color: var(--muted); font-size: 14.5px; }
@media (max-width: 960px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* Impact */
.impact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: start; margin-top: 10px; }
.twice { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); color: var(--text); margin-top: 24px; line-height: 1.3; }
.twice.small { font-size: 18px; color: var(--cyan); }
.student-note { margin-top: 26px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.student-note h3 { font-size: 17px; margin-bottom: 10px; }
.student-note p { color: var(--muted); font-size: 15px; }
.student-note p b { color: var(--text); }
.flows { padding: 26px 22px; display: grid; gap: 22px; }
.flow { display: grid; justify-items: center; gap: 6px; }
.flow .f { width: 100%; text-align: center; font-family: var(--font-mono); font-weight: 700; font-size: 12.5px; letter-spacing: 1.5px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-bright); background: var(--bg); color: var(--text); }
.flow .f.core { border-color: var(--acc); color: var(--acc); background: rgba(var(--acc-rgb), .1); }
.flow .f.accent { border-color: var(--cyan); color: var(--cyan); }
.flow .down { color: var(--dim); font-size: 18px; line-height: 1; }
.flow-sep { height: 1px; background: var(--line); }
@media (max-width: 960px) { .impact-grid { grid-template-columns: 1fr; } }

/* Trust */
.trust-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 36px; }
.t { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px 18px; }
.t h3 { font-size: 15px; margin-bottom: 8px; color: var(--cyan); }
.t p { color: var(--muted); font-size: 13.5px; }
@media (max-width: 1100px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .trust-grid { grid-template-columns: 1fr; } }

/* Case studies */
.cases { margin-top: 30px; display: grid; gap: 18px; }
.case-empty { border: 1px dashed var(--line-bright); border-radius: 14px; padding: 26px 28px; color: var(--muted); max-width: 820px; }
.case { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 36px; }
.case .cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; color: var(--acc); grid-column: 1 / -1; }
.case h3 { font-size: 22px; grid-column: 1 / -1; }
.case .field h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 6px; }
.case .field p { color: var(--text); font-size: 15px; }
.case .tech { display: flex; gap: 8px; flex-wrap: wrap; }
.case blockquote { grid-column: 1 / -1; border-left: 3px solid var(--acc); padding: 6px 0 6px 20px; margin: 0; color: var(--text); font-size: 17px; }
.case blockquote cite { display: block; color: var(--muted); font-size: 13.5px; font-style: normal; margin-top: 8px; }
@media (max-width: 700px) { .case { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-size: 17.5px; font-weight: 600; color: var(--text); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-family: var(--font-mono); font-size: 24px; color: var(--acc); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding: 0 0 18px; max-width: 780px; }

/* Final + form */
.final-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.form-card { min-width: 0; }
.form-card label { display: block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 1.5px; color: var(--acc); margin: 20px 0 8px; line-height: 1.5; }
.form-card input, .form-card select, .form-card textarea { box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-family: var(--font-body); font-size: 15px; padding: 12px 14px; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .18); }
.form-card textarea { resize: vertical; }
.form-card .two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 18px; }
.form-card .two > div { min-width: 0; }
.needs { border: 0; padding: 0; margin: 22px 0 0; }
.needs legend { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 1.5px; color: var(--acc); margin-bottom: 10px; }
.needs legend span { color: var(--dim); letter-spacing: .5px; font-weight: 400; margin-left: 8px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.checks label { display: flex; gap: 10px; align-items: center; margin: 0; font-family: var(--font-body); font-size: 15px; letter-spacing: 0; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; cursor: pointer; }
.checks label:has(:checked) { border-color: var(--acc); background: rgba(var(--acc-rgb), .08); }
.checks input { width: 18px; height: 18px; accent-color: var(--acc); margin: 0; }
@media (max-width: 960px) { .final-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .form-card .two, .checks { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .flow-line, .eco .node .ring, .dash-chart i, .sec .pulse.on, .wf-panel.is-on, .build-panel.is-on { animation: none !important; }
  .ov, .ov:hover { transform: none; }
}

/* Phase 2 additions */
.tagline { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 1.5px; color: var(--cyan); margin-top: 22px; }
.who { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.who li { font-size: 14.5px; color: var(--text); background: var(--panel); border: 1px solid var(--line-bright); border-radius: 999px; padding: 9px 16px; }
.flow-branch { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; color: var(--amber); }
.flow-branch::before, .flow-branch::after { content: ""; flex: 1; height: 1px; background: var(--line-bright); }
.flow-note { font-size: 14px; color: var(--muted); text-align: center; margin-top: 4px; }
.exp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.exp-grid h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; color: var(--cyan); margin-bottom: 8px; }
.exp-grid ul { list-style: none; padding: 0; margin: 0; }
.exp-grid li { font-size: 14px; color: var(--text); padding: 4px 0 4px 16px; position: relative; }
.exp-grid li::before { content: "▸"; position: absolute; left: 0; color: var(--acc); font-family: var(--font-mono); }
.exp-grid ul.never li { color: var(--muted); }
.exp-grid ul.never li::before { content: "×"; color: var(--hot); }
.exp-grid ul.never + h4, .exp-grid div:last-child h4 { color: var(--hot); }
@media (max-width: 600px) { .exp-grid { grid-template-columns: 1fr; } }
