/* AI Wired Right. Ink, paper and copper: an electrician's schematic, not a chatbot. */
@font-face { font-family: 'Space Grotesk'; src: url('/assets/fonts/space-grotesk-latin-wght-normal.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('/assets/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('/assets/fonts/ibm-plex-sans-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('/assets/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/assets/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --ink: #0f2236; --ink-2: #1a324c; --ink-3: #2a4664;
  --copper: #c4682a; --copper-d: #9e4f1a; --copper-l: #f0c9a8;
  --paper: #f5f2ec; --line: #dcd5c8; --text: #18222e; --muted: #56616d; --white: #fff;
  --wire: #8fa3b8;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --wrap: 1180px; --gutter: clamp(20px, 4vw, 40px);
  --r: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--white); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--copper-d); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 600; max-width: 22ch; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--copper); color: var(--white); padding: 8px 14px; z-index: 10; border-radius: 6px; }
.skip:focus { left: 8px; }
.kicker { font-family: var(--mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-d); margin: 0 0 1rem; }
.lead { font-size: 1.22rem; line-height: 1.55; color: var(--text); }
.narrow { max-width: 62ch; }
.standfirst { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; max-width: 60ch; }

/* Header */
.site-header { background: var(--ink); color: var(--white); position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--ink-3); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand-name { font-family: var(--display); font-weight: 500; font-size: 1.2rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand-name b { font-weight: 700; color: var(--copper); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { color: #d7e0ea; text-decoration: none; font-size: .95rem; padding: 8px 12px; border-radius: 6px; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--white); background: var(--ink-2); }
.site-nav .nav-cta a { background: var(--copper); color: var(--white); font-weight: 600; }
.site-nav .nav-cta a:hover { background: var(--copper-d); }
@media (max-width: 760px) {
  .header-inner { flex-direction: column; align-items: flex-start; padding-top: 12px; padding-bottom: 10px; gap: 6px; }
  .site-header { position: static; }
  .site-nav ul { justify-content: flex-start; margin-left: -12px; }
  .site-nav a { padding: 6px 10px; font-size: .9rem; }
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 8px; font-family: var(--display); font-weight: 600; font-size: 1.02rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-copper { background: var(--copper); color: var(--white); }
.btn-copper:hover { background: var(--copper-d); color: var(--white); }
.btn-line { border-color: #49637f; color: var(--white); }
.btn-line:hover { border-color: var(--white); color: var(--white); }
.btn-line-dark { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-line-dark:hover { border-color: var(--ink); color: var(--ink); }
.arrow { font-family: var(--display); font-weight: 600; text-decoration: none; }
.arrow::after { content: ' \2192'; }

/* Hero */
.hero { background: var(--ink); color: #dfe7ef; padding: clamp(48px, 8vw, 96px) 0 0; overflow: hidden; }
.hero h1 { color: var(--white); max-width: 15ch; }
.hero .kicker { color: var(--copper-l); }
.hero .standfirst { color: #c9d4df; }
.hero-figure { margin: clamp(32px, 5vw, 56px) 0 0; padding-bottom: clamp(24px, 4vw, 48px); }
.schematic .grid path { stroke: #1d3954; stroke-width: 1; }
.schematic .wire { stroke: var(--wire); stroke-width: 2; stroke-linejoin: round; }
.schematic .wire.out { stroke: var(--copper); stroke-width: 2.4; }
.schematic .term { fill: var(--ink); stroke: var(--wire); stroke-width: 2; }
.schematic .node { fill: var(--copper); }
.schematic .breaker { fill: var(--ink-2); stroke: var(--copper); stroke-width: 2; }
.schematic .lbl { font-family: var(--mono); font-size: 14px; letter-spacing: .08em; fill: #a9b8c8; }
.schematic .lbl-out { fill: #f1e2d4; }
.schematic .core rect { fill: var(--ink-2); stroke: var(--copper); stroke-width: 2.5; }
.schematic .core-name { font-family: var(--display); font-weight: 600; font-size: 40px; fill: var(--white); }
.schematic .core-sub { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; fill: var(--copper-l); }
.schematic-tall { display: none; max-width: 420px; }
@media (max-width: 760px) { .schematic-wide { display: none; } .schematic-tall { display: block; } .schematic-tall .lbl { font-size: 16px; } }
@media (prefers-reduced-motion: no-preference) {
  .schematic .wire { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s ease-out forwards; }
  .schematic .wire.out { animation-delay: .7s; }
  .schematic .o2 { animation-delay: .8s; } .schematic .o3 { animation-delay: .9s; } .schematic .o4 { animation-delay: 1s; } .schematic .o5 { animation-delay: 1.1s; } .schematic .o6 { animation-delay: 1.2s; }
  .schematic .core rect { animation: glow 2.4s ease-in-out 1.8s 2; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes glow { 50% { stroke: #f0a26b; } }

/* Bands */
.band { padding: clamp(56px, 8vw, 104px) 0; }
.band-paper { background: var(--paper); }
.band-ink { background: var(--ink); color: #dfe7ef; }
.band-ink h2 { color: var(--white); }
.band-ink .lead { color: #dfe7ef; }
.band-ink .kicker { color: var(--copper-l); }
.band-cta h2 { max-width: 26ch; }
.page-head { background: var(--paper); padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 20ch; font-size: clamp(2.1rem, 4.4vw, 3.4rem); }

/* Lists and grids */
.symptoms { list-style: none; padding: 0; margin: 2rem 0 2.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.symptoms li { border: 1px solid var(--line); border-top: 4px solid var(--copper); border-radius: var(--r); padding: 22px; background: var(--white); }
.symptoms p { color: var(--muted); margin: 0; }
.panel { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 0; border: 2px solid var(--ink); border-radius: var(--r); background: var(--white); overflow: hidden; }
.panel li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.panel a { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; padding: 18px 20px; text-decoration: none; color: inherit; height: 100%; }
.panel a:hover { background: #fbf4ed; }
.panel .no { grid-row: span 2; font-family: var(--mono); font-size: .85rem; color: var(--white); background: var(--ink); border-radius: 4px; padding: 4px 7px; align-self: start; }
.panel .pn { font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 1.12rem; }
.panel .ps { color: var(--muted); font-size: .95rem; line-height: 1.45; }
.steps { list-style: none; padding: 0; margin: 2rem 0 1.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; counter-reset: s; }
.steps li { position: relative; padding-top: 8px; }
.step-no { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--copper); color: var(--copper-d); font-family: var(--mono); font-weight: 500; margin-bottom: 12px; }
.steps p { color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 64px); margin-top: 1.5rem; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: .7em; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .5em; width: 14px; height: 14px; border: 2px solid var(--copper); border-radius: 3px; background: linear-gradient(var(--copper), var(--copper)) center / 6px 6px no-repeat; }
.ticks.cross li::before { background: none; border-color: var(--muted); }
.ticks.cross li::after { content: ''; position: absolute; left: 4px; top: calc(.5em + 7px); width: 10px; height: 2px; background: var(--muted); }
.circuit-grid { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: clamp(20px, 5vw, 64px); }
@media (max-width: 860px) { .circuit-grid { grid-template-columns: 1fr; } }
.circuit-label .no { font-family: var(--mono); color: var(--white); background: var(--ink); border-radius: 4px; padding: 4px 8px; font-size: .9rem; display: inline-block; margin-bottom: 14px; }
.circuit-label h2 { margin-bottom: .3em; }
.circuit-label .ps { color: var(--copper-d); font-family: var(--display); font-weight: 500; font-size: 1.1rem; }
.timeline { list-style: none; margin: 2rem 0 0; padding: 0 0 0 28px; border-left: 2px solid var(--copper); max-width: 74ch; }
.timeline li { position: relative; margin-bottom: 2rem; }
.timeline li::before { content: ''; position: absolute; left: -37px; top: 6px; width: 16px; height: 16px; border-radius: 3px; background: var(--white); border: 2px solid var(--copper); }
.timeline p { color: var(--muted); }
.deliverables { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.deliverables li { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.deliverables p { color: var(--muted); margin: 0; }

/* FAQ */
.faq { margin-top: 1.5rem; border-top: 1px solid var(--line); max-width: 80ch; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 14px; font-family: var(--mono); font-size: 1.5rem; color: var(--copper); }
.faq details[open] summary::after { content: '\2212'; }
.faq summary h3 { margin: 0; display: inline; font-size: 1.15rem; }
.faq-a { padding: 0 0 18px; color: var(--muted); max-width: 70ch; }

/* Forms */
.form-wrap { max-width: 760px; }
.form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; color: var(--ink); padding: 0; }
.opt { font-weight: 400; color: var(--muted); font-size: .9em; }
.field-hint { color: var(--muted); font-size: .95rem; margin: 0; }
input[type=text], input[type=email], select, textarea { width: 100%; font: inherit; color: var(--text); background: var(--white); border: 1.5px solid #b9b1a3; border-radius: 8px; padding: 12px 14px; min-height: 48px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--copper); outline: 2px solid var(--copper-l); outline-offset: 0; }
[aria-invalid=true] { border-color: #b3261e; }
.choices { display: grid; gap: 8px; margin-top: 6px; }
.choice { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; border: 1.5px solid var(--line); border-radius: 8px; padding: 12px 14px; cursor: pointer; }
.choice:hover { border-color: var(--copper); }
.choice input { margin-top: 5px; accent-color: var(--copper); }
.field-error { color: #b3261e; font-size: .95rem; margin: 2px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { color: var(--muted); font-size: .92rem; margin: 0; }
.form-status { padding: 12px 14px; border-radius: 8px; margin: 0; }
.form-status.is-error { background: #fbeceb; color: #8c1d18; }
.address { font-family: var(--display); font-size: 1.4rem; font-weight: 600; }

/* Footer */
.site-footer { background: var(--ink); color: #b9c6d3; padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: #e7edf3; }
.site-footer a:hover { color: var(--copper-l); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand { color: var(--white); margin-bottom: 12px; }
.footer-heading { font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-l); margin: 0 0 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-legal { border-top: 1px solid var(--ink-3); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline; }
.footer-legal p { margin: 0; }
.footer-legal ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; }
.footer-legal .tm { flex-basis: 100%; font-size: .85rem; color: #8597a9; }
.not-found { min-height: 50vh; }
