:root {
  --paper: #F1F4F9;
  --surface: #FFFFFF;
  --ink: #0F1C26;
  --muted: #566573;
  --line: #D5DEE8;
  --line-soft: #E4EAF1;
  --signal: #EB5E28;
  --signal-tint: rgba(235, 94, 40, 0.10);
  --maxw: 1140px;
  --pad: clamp(20px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 200; }
.skip:focus { left: 12px; top: 12px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---- type helpers ---- */
.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
}
.eyebrow::before { content: ""; width: 9px; height: 9px; background: var(--signal); border-radius: 2px; flex: none; }

h1, h2, h3 { font-family: "Archivo", sans-serif; font-weight: 800; line-height: 1.04; letter-spacing: -0.02em; margin: 0; }

.lead { color: var(--muted); font-size: clamp(17px, 2vw, 20px); max-width: 56ch; }

/* ---- nav ---- */
header.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(241, 244, 249, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand .mark { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -0.03em; }
.brand .mark b { color: var(--signal); font-weight: 800; }
.brand .sub { font-family: "IBM Plex Mono", monospace; font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
nav.links { display: flex; align-items: center; gap: 30px; }
nav.links a { font-size: 14.5px; color: var(--muted); position: relative; padding: 4px 0; transition: color .18s ease; }
nav.links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--signal); transition: width .2s ease; }
nav.links a:hover { color: var(--ink); }
nav.links a:hover::after { width: 100%; }
nav.links a.active { color: var(--ink); }
nav.links a.active::after { width: 100%; }

.btn {
  font-family: "IBM Plex Sans", sans-serif; font-size: 14.5px; font-weight: 600;
  padding: 11px 18px; border-radius: 6px; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .18s ease, border-color .18s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary { background: var(--signal); color: var(--ink); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.nav-cta { display: inline-flex; }

/* ---- sections ---- */
.section { padding-top: clamp(72px, 10vw, 130px); padding-bottom: clamp(72px, 10vw, 130px); }
.section + .section { border-top: 1px solid var(--line); }
[id] { scroll-margin-top: 90px; }

.sec-head { max-width: 60ch; margin-bottom: 56px; }
.sec-head h2 { font-size: clamp(30px, 4.4vw, 48px); margin-bottom: 18px; }

/* ---- page hero (subpages) ---- */
.page-hero { padding-top: clamp(54px, 8vw, 92px); padding-bottom: clamp(36px, 5vw, 60px); }
.page-hero h1 { font-size: clamp(34px, 6vw, 64px); max-width: 19ch; }
.page-hero .lead { margin-top: 24px; }

/* ---- home hero ---- */
.hero { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(64px, 9vw, 112px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(36px, 6vw, 76px); align-items: center; }
.hero h1 { font-size: clamp(40px, 7vw, 78px); }
.hero h1 .hl { color: var(--signal); }
.hero .lead { margin: 26px 0 34px; font-size: clamp(17px, 2.1vw, 21px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.chart { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 26px 26px 20px; box-shadow: 0 1px 0 rgba(15,28,38,0.03); }
.chart-cap { font-family: "IBM Plex Mono", monospace; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; margin-bottom: 20px; }
.chart-cap .now { color: var(--signal); }
.bars { display: flex; align-items: flex-end; gap: 9px; height: 210px; border-bottom: 2px solid var(--ink); }
.bar { flex: 1; background: var(--line); border-radius: 3px 3px 0 0; transform: scaleY(0); transform-origin: bottom; animation: grow .7s cubic-bezier(.2,.8,.2,1) forwards; position: relative; }
.bar.signal { background: var(--signal); }
.bar.signal::after { content: ""; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); width: 9px; height: 9px; background: var(--signal); border: 2px solid var(--surface); border-radius: 50%; box-shadow: 0 0 0 2px var(--signal); }
.bar.signal .tag { position: absolute; top: -42px; left: 50%; transform: translateX(-50%); font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--ink); background: var(--signal-tint); padding: 3px 7px; border-radius: 4px; white-space: nowrap; }
@keyframes grow { to { transform: scaleY(1); } }
.chart-x { display: flex; justify-content: space-between; font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--muted); margin-top: 10px; }

/* ---- principles ---- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.principle { background: var(--surface); padding: 30px 28px; }
.principle .k { font-family: "Archivo", sans-serif; font-weight: 700; font-size: 19px; margin-bottom: 8px; display: flex; align-items: center; gap: 9px; }
.principle .k .dot { width: 7px; height: 7px; background: var(--signal); border-radius: 2px; }
.principle p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---- cards ---- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 32px 30px; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: 0 12px 30px -18px rgba(15,28,38,0.4); }
.card .num { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--signal); letter-spacing: 0.08em; }
.card h3 { font-size: 22px; font-weight: 700; margin: 14px 0 10px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---- feature list ---- */
.feature-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 11px; }
.feature-list li { position: relative; padding-left: 26px; color: var(--muted); font-size: 15.5px; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 10px; background: var(--signal-tint); border: 2px solid var(--signal); border-radius: 3px; }

/* ---- detailed service block ---- */
.svc { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(20px, 4vw, 56px); padding: 40px 0; border-top: 1px solid var(--line); align-items: start; }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc .svc-no { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 32px; color: var(--ink); }
.svc .svc-no::after { content: ""; display: block; width: 22px; height: 4px; background: var(--signal); margin-top: 12px; }
.svc h3 { font-size: 25px; font-weight: 700; margin: 10px 0 12px; }
.svc > div > p { margin: 0; color: var(--muted); max-width: 56ch; }

/* ---- process ---- */
.steps { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 92px 1fr; gap: clamp(20px, 4vw, 48px); padding: 30px 0; border-top: 1px solid var(--line); align-items: start; }
.step:last-child { border-bottom: 1px solid var(--line); }
.step .idx { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 34px; color: var(--ink); line-height: 1; position: relative; }
.step .idx::after { content: ""; display: block; width: 22px; height: 4px; background: var(--signal); margin-top: 12px; }
.step h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); max-width: 62ch; }

/* ---- tags ---- */
.tags { display: flex; flex-wrap: wrap; gap: 11px; }
.tag { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 11px 19px; font-size: 15px; color: var(--ink); transition: border-color .18s ease, color .18s ease; }
.tag:hover { border-color: var(--signal); color: var(--signal); }
.tags.sm .tag { font-size: 13px; padding: 7px 13px; }
.tags.sm .tag:hover { transform: none; }

/* ---- industry rows ---- */
.ind { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(18px, 4vw, 48px); padding: 36px 0; border-top: 1px solid var(--line); align-items: start; }
.ind:last-child { border-bottom: 1px solid var(--line); }
.ind .lead-col h3 { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.ind .lead-col p { margin: 0; color: var(--muted); font-size: 15.5px; max-width: 42ch; }
.ind .data-col .label { font-family: "IBM Plex Mono", monospace; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 13px; }

/* ---- manifesto ---- */
.manifesto-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.manifesto h2 { font-size: clamp(30px, 5vw, 56px); }
.manifesto p { font-size: clamp(17px, 2vw, 20px); color: var(--ink); margin: 0 0 22px; max-width: 60ch; }
.manifesto p.muted-p { color: var(--muted); }
.manifesto .quietline { font-family: "IBM Plex Mono", monospace; font-size: 13px; letter-spacing: 0.06em; color: var(--muted); border-left: 3px solid var(--signal); padding-left: 16px; }

/* ---- faq ---- */
.faq { display: grid; gap: 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-family: "Archivo", sans-serif; font-weight: 700; font-size: 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--signal); font-family: "IBM Plex Mono", monospace; font-size: 22px; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq .ans { padding: 0 0 24px; color: var(--muted); max-width: 72ch; margin: 0; }

/* ---- contact (home) ---- */
.contact-card { background: var(--ink); color: #fff; border-radius: 16px; padding: clamp(36px, 6vw, 64px); position: relative; overflow: hidden; }
.contact-card::before, .cta-card::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 34px 34px; pointer-events: none; }
.contact-card > *, .cta-card > * { position: relative; }
.contact-card .eyebrow { color: rgba(255,255,255,0.6); }
.contact-card h2 { font-size: clamp(30px, 5vw, 52px); color: #fff; margin-bottom: 16px; }
.contact-card .lead { color: rgba(255,255,255,0.72); margin-bottom: 34px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 640px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: "IBM Plex Mono", monospace; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.field input, .field textarea { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); border-radius: 8px; padding: 13px 14px; color: #fff; font-family: inherit; font-size: 15.5px; transition: border-color .18s ease, background .18s ease; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.4); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--signal); background: rgba(255,255,255,0.09); }
.field textarea { resize: vertical; min-height: 96px; }
.form .actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form .or { color: rgba(255,255,255,0.5); font-size: 14px; }
.form .or a { color: var(--signal); border-bottom: 1px solid transparent; }
.form .or a:hover { border-color: var(--signal); }

/* ---- cta band (subpages) ---- */
.cta-card { background: var(--ink); color: #fff; border-radius: 16px; padding: clamp(40px, 6vw, 72px); position: relative; overflow: hidden; text-align: center; }
.cta-card h2 { color: #fff; font-size: clamp(28px, 4.5vw, 46px); margin-bottom: 14px; }
.cta-card p { color: rgba(255,255,255,0.72); max-width: 52ch; margin: 0 auto 30px; }
.cta-card .hero-cta { justify-content: center; }

/* ---- footer ---- */
footer.foot { border-top: 1px solid var(--line); padding: 54px 0 40px; }
.foot-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.foot .brand .mark { font-size: 20px; }
.foot .blurb { color: var(--muted); max-width: 34ch; margin: 16px 0 0; font-size: 14.5px; }
.foot-links { display: flex; gap: 40px; flex-wrap: wrap; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col span { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.foot-col a { font-size: 14.5px; color: var(--ink); }
.foot-col a:hover { color: var(--signal); }
.foot-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--muted); }

/* ---- reveal ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- responsive ---- */
@media (max-width: 900px) {
  nav.links { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .chart { order: 2; }
  .manifesto-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; gap: 16px; }
  .ind { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav-cta .btn span.long { display: none; }
  .form { grid-template-columns: 1fr; }
  .step { grid-template-columns: 64px 1fr; }
  .step .idx { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bar { animation: none; transform: scaleY(1); }
  .reveal { opacity: 1 !important; transform: none !important; }
  * { transition: none !important; }
}
