@font-face { font-family: "Barlow"; src: url("/fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* Drawing-paper palette: cool paper, navy ink, Sparkx maroon */
:root {
  --paper: #F3F5F8;
  --grid: #E1E7EF;
  --surface: #FFFFFF;
  --ink: #14213A;
  --ink-soft: #4B5B76;
  --rule: #C9D2DF;
  --wire: #8E9DB4;
  --brand: #8A1C2B;
  --brand-tint: #F6E6E8;
  --focus: #2F6FB0;
  --on-brand: #FFFFFF;

  --condensed: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  /* Blueprint: the same drawing, inverted */
  :root {
    --paper: #0F1A2E;
    --grid: #17253F;
    --surface: #13203A;
    --ink: #E6ECF5;
    --ink-soft: #A3B3CB;
    --rule: #2A3B5A;
    --wire: #5B7096;
    --brand: #E8798A;
    --brand-tint: #2B1F33;
    --focus: #7FB2E8;
    --on-brand: #0F1A2E;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
a { color: var(--brand); text-underline-offset: 3px; }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--surface); padding: 8px 12px; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.wordmark {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--condensed); font-weight: 600; font-size: 1.5rem; letter-spacing: 0.01em;
  color: var(--ink); text-decoration: none;
}
.mark { width: 22px; height: 22px; fill: var(--brand); }
.header-link { font-weight: 500; color: var(--ink-soft); text-decoration: none; }
.header-link:hover { color: var(--brand); }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
h1 {
  font-family: var(--condensed); font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 1.02; letter-spacing: -0.01em;
  margin: 0 0 24px; max-width: 12ch;
}
.lead { color: var(--ink-soft); font-size: 1.2rem; line-height: 1.55; margin: 0 0 32px; max-width: 46ch; }
.button {
  display: inline-block; padding: 12px 22px;
  background: var(--brand); color: var(--on-brand);
  font-weight: 600; text-decoration: none; border-radius: 3px;
}
.button:hover { filter: brightness(1.12); }

/* Diagram */
.diagram { margin: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 12px; }
.diagram svg { display: block; width: 100%; height: auto; }
.zone { fill: none; stroke: var(--wire); stroke-width: 1; stroke-dasharray: 5 5; }
.zone-label { font-family: var(--condensed); font-weight: 600; font-size: 15px; fill: var(--ink-soft); }
.link { fill: none; stroke: var(--wire); stroke-width: 1.6; }
.link-ai { stroke: var(--brand); stroke-width: 2; }
.link-label { font-family: var(--condensed); font-weight: 500; font-size: 13px; fill: var(--ink-soft); }
.node rect { fill: var(--surface); stroke: var(--ink); stroke-width: 1.4; }
.node-title { font-family: var(--condensed); font-weight: 600; font-size: 17px; fill: var(--ink); }
.node-sub { font-family: var(--body); font-size: 12px; fill: var(--ink-soft); }
.node-hub rect { stroke-width: 2.2; }
.node-ai rect { fill: var(--brand-tint); stroke: var(--brand); stroke-width: 2; }
.node-ai .node-title { fill: var(--brand); }

/* One orchestrated moment: the diagram draws itself, ending on the AI node */
@media (prefers-reduced-motion: no-preference) {
  .link { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 0.55s ease-out forwards; }
  .node, .zone, .zone-label, .link-label { opacity: 0; animation: appear 0.4s ease-out forwards; }
  .n1 { animation-delay: 0.1s; }
  .l1 { animation-delay: 0.35s; }
  .n4, .zone, .zone-label { animation-delay: 0.7s; }
  .l2 { animation-delay: 0.5s; }
  .n2 { animation-delay: 0.9s; }
  .l3, .link-label { animation-delay: 1.0s; }
  .n3 { animation-delay: 1.4s; }
  .l4 { animation-delay: 1.15s; }
  .n5 { animation-delay: 1.55s; }
  .l5 { animation-delay: 1.3s; }
  .n6 { animation-delay: 1.7s; }
  .l6 { animation-delay: 1.6s; animation-duration: 0.8s; }
  .n7 { animation-delay: 2.25s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

/* Content blocks */
.block { border-top: 1px solid var(--rule); background: var(--paper); padding: 64px 0; }
.block-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 40px; }
h2 { font-family: var(--condensed); font-weight: 600; font-size: 2rem; line-height: 1.1; margin: 0; }
h3 { font-family: var(--condensed); font-weight: 600; font-size: 1.45rem; line-height: 1.2; margin: 0 0 8px; }

.services { margin: 0; }
.service { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 5fr); gap: 24px; padding: 20px 0; border-top: 1px solid var(--rule); }
.service:first-child { border-top: 0; padding-top: 4px; }
.service dt { font-family: var(--condensed); font-weight: 600; font-size: 1.35rem; line-height: 1.3; }
.service dd { margin: 0; color: var(--ink-soft); max-width: 60ch; }

.team { display: grid; gap: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.person p { margin: 0; color: var(--ink-soft); max-width: 60ch; }

/* Footer as a drawing title block */
.titleblock-wrap { border-top: 1px solid var(--rule); background: var(--paper); padding: 48px 0 56px; }
.titleblock { width: 100%; border-collapse: collapse; background: var(--surface); border: 2px solid var(--ink); font-size: 0.98rem; }
.titleblock th, .titleblock td { border: 1px solid var(--ink); padding: 10px 14px; text-align: left; vertical-align: top; }
.titleblock th { font-family: var(--condensed); font-weight: 500; color: var(--ink-soft); width: 1%; white-space: nowrap; }

/* Responsive */
@media (max-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .block-grid { grid-template-columns: 1fr; gap: 20px; }
  .team { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .header-link { display: none; }
  .service { grid-template-columns: 1fr; gap: 4px; }
  .titleblock, .titleblock tbody, .titleblock tr, .titleblock th, .titleblock td { display: block; width: 100%; }
  .titleblock th { border-bottom: 0; padding-bottom: 0; }
  .titleblock td { border-top: 0; }
}
