/* Palette adapted from the owner's Ghostty config. Opaque backgrounds for web readability. */
:root {
  --ink: #25282e;
  --muted: #59616d;
  --paper: #f3f4f6;
  --dark: #202020;
  --panel: #292b30;
  --lime: #96cf6d;
  --line: #d8dde5;
  --blue: #57b0f9;
  --purple: #cc6ee7;
  --cyan: #56b6c2;
  --gold: #eec372;
  --terminal-text: #dce0e6;
  --terminal-muted: #abb2bf;
  --logo-font: "JSS Iosevka Term", "Iosevka Term", "SFMono-Regular", Consolas, monospace;
  /* Chrome ignores ui-monospace and cannot resolve SFMono-Regular, falling back to Courier. */
  --mono: "JSS Iosevka Term", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* Text-only identity: terminal typography, no badge or pictogram. */
.terminal-brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0; font-family: var(--logo-font); font-size: 27px; letter-spacing: -.5px; font-weight: 500; }
.terminal-wordmark { display: inline-flex; align-items: baseline; color: var(--terminal-muted); line-height: 1.15; white-space: nowrap; font-variant-ligatures: none; }
.terminal-prompt { color: #a7aab0; margin-right: .28em; font-weight: 400; }
.wordmark-prefix { color: var(--blue); font-weight: 600; }
.terminal-cursor { color: var(--blue); }
.terminal-brand .brand-caption { font-family: var(--logo-font); font-size: 8px; letter-spacing: 1.35px; margin-top: 9px; }
.footer-inner .terminal-brand { font-size: 21px; }
.company-terminal { min-height: 320px; padding: 26px; }
.identity-top, .identity-bottom { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--terminal-muted); font: 10px/1.7 var(--logo-font); }
.identity-top { justify-content: flex-start; border-bottom: 1px solid #3b4048; padding-bottom: 17px; }
.identity-center { position: relative; padding-block: 44px; }
.identity-comment { display: block; color: #929ba9; font: 10px var(--logo-font); margin-bottom: 18px; }
.identity-center .terminal-wordmark { font: 500 clamp(25px, 3.2vw, 43px)/1.2 var(--logo-font); letter-spacing: -.5px; }
.identity-bottom { font-size: 8px; border-top: 1px solid #3b4048; padding-top: 17px; flex-wrap: wrap; }
@media (max-width: 850px) {
  .terminal-brand { font-size: 24px; }
  .company-terminal { padding: 22px; }
  .identity-center .terminal-wordmark { font-size: 27px; }
}
@media (max-width: 650px) {
  .terminal-brand { font-size: 22px; }
  .terminal-brand .brand-caption { font-size: 6px; letter-spacing: 1px; margin-top: 7px; }
  .identity-center .terminal-wordmark { font-size: clamp(27px, 7.4vw, 38px); }
}
@media (max-width: 370px) {
  .terminal-brand { font-size: 19px; }
  .terminal-brand .brand-caption { font-size: 5px; }
}

/* Neutral graphite, instead of green-tinted surfaces. */
.site-header, .hero, .ai-section, .contact, .site-footer { color: #eef0f4; }
.brand-caption, .header-inner nav, .hero .eyebrow, .hero-description,
.text-link, .floating-label div > span, .visual-top, .visual-bottom,
.contact-grid > div > p, .contact-top .eyebrow, .contact-note > span,
.contact-note > p, .footer-inner p, .footer-inner > a:not(.brand) {
  color: var(--terminal-muted);
}
.header-inner nav .nav-contact { border-color: #485244; }
.button-lime:hover { background: #addd88; }
.signal { box-shadow: 0 0 12px #96cf6d44; }
.hero { background: radial-gradient(ellipse at 80% 35%, #57b0f911, transparent 48%), var(--dark); }
.hero::before { background-image: linear-gradient(#abb2bf06 1px, transparent 1px), linear-gradient(90deg, #abb2bf06 1px, transparent 1px); }
.hero-visual { background: radial-gradient(ellipse, #cc6ee711, transparent 65%); }
.hero-bottom, .visual-bottom { border-color: #3b4048; }
.visual-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 10px; letter-spacing: .2px; }
.visual-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.visual-legend > span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.legend-infra { color: var(--blue); }
.legend-security { color: var(--lime); }
.legend-ai { color: var(--purple); }
.visual-top i { border-color: var(--blue); }
.floating-label { background: #292b30f2; border-color: #454b55; }
.floating-label strong { color: #eef0f4; }
.label-ai .label-icon { color: var(--purple); }
.label-infra .label-icon { color: var(--blue); }
.audience-tags span, .scroll-link { border-color: #444a53; }
.audience-tags span { color: #c7ccd5; }
.scroll-link:hover { background: #30343a; }
.proof-strip { background: #e9ecf0; border-color: var(--line); }
.proof-grid > div { border-color: #cdd4df; }
.proof-grid p, .proof-grid strong span { color: var(--muted); }
.proof-grid > div:nth-child(2) strong { color: #49782e; }
.proof-grid > div:nth-child(3) strong { color: #246aa4; }
.proof-grid > div:nth-child(4) strong { color: #8f409f; }
.eyebrow { color: #596577; }
.muted-heading { color: #77818f; }
.card-heading .mono, .deliverable > .mono { color: #647184; }
.infrastructure-card .icon-box { background: #edf5fc; border-color: #d3e4f3; }
.infrastructure-card .icon-box svg, .card-arrow { color: #397cab; stroke: #397cab; }
.security-card { background: #edf3e8; }
.security-card .icon-box { background: #e7efdd; border-color: #ccdcbf; }
.security-card .icon-box svg { stroke: #57833e; }
.service-card li::before { color: #4f7ba3; }
.security-card li::before { color: #57833e; }
.stack-row > .mono, .stack-row > div > span { color: #677487; }

/* AI accent: Ghostty purple. Green stays reserved for primary actions/security. */
.ai-section { background: radial-gradient(ellipse at 80% 45%, #cc6ee708, transparent 60%), var(--dark); }
.ai-section .eyebrow, .scenario-button[aria-pressed="true"], .agent-node > span,
.agent-node strong, .workflow-output span { color: var(--purple); }
.ai-section .section-heading > p, .scenario-caption, .scenario-button small,
.ai-note, .workbench-top, .scenario-panel > p { color: var(--terminal-muted); }
.ai-workbench { border-color: #45404b; background: #242429; }
.ai-scenarios { border-color: #45404b; }
.scenario-button { border-color: #45404b; color: #d7dbe3; }
.scenario-button:hover { background: #322d38; }
.scenario-button[aria-pressed="true"] { border-color: #ac64c0; background: #cc6ee710; }
.scenario-content { background: radial-gradient(ellipse at 50% 27%, #cc6ee70c, transparent 65%); }
.outline-badge { border-color: #615069; color: #d4b3df; }
.workflow-inputs > span { background: #2d2d34; border-color: #4b4654; color: #d1d5df; }
.workflow-lines, .workflow-lines::before { border-color: #93649e; }
.agent-node { border-color: #ac64c0; background: #392b3e; box-shadow: 0 0 32px #cc6ee710; }
.agent-node small { color: #d4b3df; }
.workflow-connector { background: #93649e; }
.workflow-connector::after { background: var(--purple); box-shadow: 0 0 9px #cc6ee744; }
.workflow-output { background: #2d2932; border-color: #615069; color: #dcd4e4; }
.scenario-result { border-color: #514355; color: #d8c6df; }
.scenario-result > span { color: #c1a5cc; }

.company-emblem { background: radial-gradient(ellipse at 50% 48%, #57b0f910, transparent 60%), var(--dark); border-color: #454b55; }
.company-emblem::before { background-image: linear-gradient(#abb2bf08 1px, transparent 1px), linear-gradient(90deg, #abb2bf08 1px, transparent 1px); }
.emblem-top, .emblem-bottom > .mono { color: var(--terminal-muted); }
.emblem-orbit { border-color: #597650; }
.emblem-orbit::before { border-color: #48627a; }
.emblem-orbit::after { box-shadow: 0 0 18px #96cf6d44; }
.emblem-core { box-shadow: 0 0 70px #96cf6d15; }
.emblem-bottom > strong { color: #eef0f4; }
.company-copy > p.company-lead { color: #414b58; }
.profile-badges > span { border-color: #ccd4df; color: #5b6778; }
.case-card { background: #e9edf2; border-color: #7dadcf; }
.case-card:nth-child(3n+2) { border-color: #70adb4; }
.case-card:nth-child(3n) { border-color: #82ab68; }
.case-index { color: #65758b; }
.case-stack { color: #5d6f86; border-color: #cfd8e3; }
.cooperation { background: #e7ecf1; border-color: #d0d9e3; }
.partnership-symbol { color: #497da7; }
.partnership p:not(.eyebrow) { color: var(--muted); }
.contact { background: radial-gradient(ellipse at 80% 100%, #57b0f90a, transparent 55%), var(--dark); }
.contact-top, .contact-email, .site-footer { border-color: #414751; }
.contact-top > .mono { color: #929caa; }
.contact-wordmark { color: #343a42; }
.contact-wordmark > span { color: #769b5b; }

/* Lightweight syntax highlighting: no runtime, external fonts or libraries. */
.service-card { min-width: 0; }
.code-window { margin: 0 0 25px; border: 1px solid #424853; border-radius: 7px; background: #202020; overflow: hidden; min-width: 0; }
.code-window figcaption { display: flex; align-items: center; gap: 12px; padding: 12px 15px; background: #292b30; border-bottom: 1px solid #3b4048; color: #c7cdd6; font: 10px var(--mono); }
.code-caption { margin-left: auto; color: #a7aab0; font-size: 8px; letter-spacing: .4px; }
.window-dots { display: flex; gap: 5px; flex-shrink: 0; }
.window-dots i { width: 6px; height: 6px; border-radius: 50%; background: #eb616c; }
.window-dots i:nth-child(2) { background: #eec372; }
.window-dots i:nth-child(3) { background: #96cf6d; }
.code-window pre { margin: 0; padding: 20px; overflow-x: auto; color: var(--terminal-text); font: 12px/1.9 var(--mono); tab-size: 2; }
.code-window code { font: inherit; }
.code-key { color: var(--blue); }
.code-string { color: var(--lime); }
.code-comment { color: #a7aab0; }
.ai-code { margin: 23px 0 0; border-color: #514355; }
.ai-code figcaption { padding: 10px 12px; gap: 8px; font-size: 9px; }
.ai-code .code-caption { font-size: 7px; }
.ai-code pre { padding: 15px; font-size: 11px; }
.ai-code .code-key { color: var(--purple); }
.ai-code .code-string { color: var(--gold); }

@media (max-width: 850px) {
  .code-window figcaption { flex-wrap: wrap; gap: 8px; }
  .code-caption { font-size: 7px; }
  .code-window pre { font-size: 11px; padding: 16px; }
}
@media (max-width: 650px) {
  .code-window pre { font-size: 11px; padding: 16px; }
  .code-window figcaption { font-size: 9px; }
  .ai-scenarios { border-bottom-color: #45404b; }
  .ai-code pre { font-size: 12px; }
}

/* Readability floor for decorative labels: 12/11/10px tiers, 10px minimum on mobile. */
.mono, .eyebrow, .hero .eyebrow, .audience-tags span, .proof-grid strong span,
.scenario-button small, .workflow-output, .experience-heading > p:last-child,
.footer-inner p, .footer-inner > a:not(.brand), .visual-legend { font-size: 12px; }
.visual-top, .visual-bottom, .floating-label div > span, .card-heading .mono,
.deliverable > .mono, .stack-row > .mono, .scenario-caption, .workbench-top,
.workflow-inputs > span, .scenario-result > span, .portrait-label > .mono, .portrait-corner,
.profile-badges > span, .case-index, .case-stack, .partnership .eyebrow,
.contact-top .eyebrow, .contact-top > .mono, .contact-note > span,
.identity-bottom, .ai-code figcaption { font-size: 11px; }
.code-caption, .ai-code .code-caption, .outline-badge, .agent-node small,
.infra-map span, .process-grid small { font-size: 10px; }
@media (max-width: 650px) {
  .hero .eyebrow, .audience-tags span, .footer-inner p, .footer-inner > a:not(.brand) { font-size: 11px; }
  .visual-top, .visual-bottom, .floating-label strong, .floating-label div > span,
  .workflow-inputs > span, .agent-node small { font-size: 10px; }
}

/* Content sections: process, AI pilot principles, case details, FAQ, contact checklist. */
.process { background: #e9ecf0; border-block: 1px solid var(--line); }
.process-grid > li { border-color: #c3ccd8; }
.process-grid > li > span { color: #397cab; }
.process-grid p { color: var(--muted); font-size: 13px; }
.process-grid small { color: #647184; }
.ai-principles { margin-top: 36px; padding-top: 30px; border-top: 1px solid #45404b; }
.ai-principles > div > span { color: var(--purple); font-size: 11px; }
.ai-principles p { color: var(--terminal-muted); font-size: 13px; }
.ai-principles strong { color: #eef0f4; font-size: 14px; margin-bottom: 6px; }
.case-card dl { margin: 0 0 22px; font-size: 12px; }
.case-card dt { margin-top: 0; font: 600 10px var(--mono); letter-spacing: .8px; text-transform: uppercase; color: #647184; }
.case-card dd { margin-top: 6px; color: var(--ink); line-height: 1.7; }
.faq-list, .faq-list details { border-color: #cdd4df; }
.faq-list summary { color: var(--ink); }
.faq-list summary > span { color: #397cab; }
.contact-checklist { list-style: none; margin: 22px 0 0; padding: 0; color: var(--terminal-muted); font-size: 13px; line-height: 1.7; }
.contact-checklist li { position: relative; padding: 4px 0 4px 20px; }
.contact-checklist li::before { content: "→"; position: absolute; left: 0; color: var(--lime); }
@media (max-width: 650px) {
  .process-grid { grid-template-columns: 1fr; gap: 26px; }
  .process-grid > li > span { margin-bottom: 16px; }
}

/* Problem-led OSS offer; compact spacing keeps the mobile page scannable. */
.problem-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.problem-card { padding: 28px; }
.problem-card .card-heading { gap: 10px; margin-bottom: 22px; }
.problem-card .icon-box { flex-shrink: 0; }
.problem-card h3 { font-size: 26px; }
.problem-card > p { font-size: 14px; margin-block: 18px 24px; }
.recovery-card { background: #edf5fc; }
.recovery-card .icon-box { background: #edf5fc; border-color: #d3e4f3; }
.recovery-card .icon-box svg { stroke: #397cab; }
.engineering-note { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; margin-top: 30px; }
.engineering-note > div { max-width: 430px; }
.engineering-note h3 { font-size: 23px; }
.engineering-note p { color: var(--muted); font-size: 14px; line-height: 1.8; margin-bottom: 0; }
.engineering-note .code-window { margin: 0; }
.process.section { padding-block: 64px; }
.process-grid p { margin-bottom: 0; }
.ai-note { max-width: none; font-size: 12px; }
.terminal-brand .brand-caption { font-size: 10px; letter-spacing: .55px; }
.code-window figcaption, .floating-label strong { font-size: 10px; }
@media (max-width: 1050px) and (min-width: 651px) {
  .problem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .problem-grid .recovery-card { grid-column: 1 / -1; }
}
@media (max-width: 650px) {
  .section { padding-block: 44px; }
  .floating-label { display: none; }
  .problem-grid { grid-template-columns: minmax(0, 1fr); }
  .problem-card { padding: 24px; }
  .problem-card .card-heading { margin-bottom: 18px; }
  .problem-card > p { font-size: 13px; }
  .engineering-note { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 26px; }
  .engineering-note p { font-size: 13px; }
  .process.section { padding-block: 44px; }
  .process-grid > li { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; padding-top: 18px; }
  .process-grid > li > span { grid-row: 1 / 3; margin: 0; font-size: 30px; }
  .process-grid p { grid-column: 2; margin-top: 8px; }
  .company-terminal { min-height: 220px; }
  .identity-center { padding-block: 22px; }
  .experience-heading { margin-top: 36px; }
  .cooperation-compact { padding-block: 32px; }
}
