/* Binary2 — site styles. Colours are sampled from the logo. */
:root {
  --blue: #0052ff;
  --sky: #009aff;
  --ink: #071a3d;
  --text: #33415c;
  --muted: #5d6b85;
  --line: #d5deee;
  --tint: #f1f5fd;
  --paper: #ffffff;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1.0625rem/1.65 var(--sans); }
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2 { font-family: var(--serif); font-weight: 500; color: var(--ink); letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 3.9rem); line-height: 1.08; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); line-height: 1.18; }
h3 { font: 600 1.0625rem/1.35 var(--sans); color: var(--ink); }
p { text-wrap: pretty; }
a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.narrow { max-width: 44rem; }
.lead { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem); line-height: 1.55; color: var(--text); max-width: 40rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.75rem 1rem; z-index: 20; }
.skip:focus { left: 0; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); font: 600 1.3rem/1 var(--sans); letter-spacing: 0.01em; }
.brand img { width: auto; height: 2.5rem; }
#nav ul { display: flex; gap: 1.9rem; align-items: center; }
#nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.98rem; padding: 0.4rem 0; border-bottom: 2px solid transparent; }
#nav a:hover, #nav a[aria-current="page"] { border-bottom-color: var(--blue); }
.menu-btn { display: none; font: 500 0.98rem var(--sans); color: var(--ink); background: none; border: 1px solid var(--line); border-radius: 4px; padding: 0.5rem 0.9rem; cursor: pointer; }

/* hero */
.hero { padding: clamp(3rem, 2rem + 5vw, 6.5rem) 0 clamp(3rem, 2rem + 4vw, 5.5rem); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { max-width: 19ch; }
.hero .lead { margin-top: 1.6rem; }
.hero-sub { padding-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.hero-sub h1 { max-width: 22ch; font-size: clamp(2rem, 1.3rem + 2.8vw, 3.2rem); }
.actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }

.btn { display: inline-block; background: var(--blue); color: #fff; text-decoration: none; font-weight: 600; padding: 0.9rem 1.6rem; border-radius: 4px; }
.btn:hover { background: #0041cc; }
.btn-light { background: #fff; color: var(--ink); white-space: nowrap; }
.btn-light:hover { background: var(--tint); }
.link { font-weight: 600; }

.bits-fig { justify-self: end; width: min(100%, 21rem); }
.bits .on { fill: var(--blue); }
.bits .on.alt { fill: var(--sky); }
.bits .off { fill: none; stroke: var(--line); stroke-width: 1.5; }
.bits-ch { font: 500 17px var(--sans); fill: var(--muted); }
.bits-fig figcaption { margin-top: 1.1rem; font-size: 0.9rem; color: var(--muted); padding-left: 2.7rem; }

/* bands */
.band { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0; border-top: 1px solid var(--line); }
.tint { background: var(--tint); }
.band h2 { max-width: 22ch; }
.band > .wrap > h2 { margin-bottom: 2.2rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(1.5rem, 5vw, 5rem); }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { margin-top: 2.5rem; font-size: 1.5rem; }
.prose h2:first-child { margin-top: 0; }
.note { font-size: 0.92rem; color: var(--muted); border-left: 3px solid var(--sky); padding-left: 1rem; }

/* row list (services index, article index) */
.rows { border-top: 1px solid var(--ink); }
.rows li { border-bottom: 1px solid var(--line); }
.rows a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 0.4rem 3rem; padding: 1.35rem 0; text-decoration: none; color: inherit; }
.row-t { font: 500 clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem)/1.25 var(--serif); color: var(--ink); }
.row-d { color: var(--muted); font-size: 1rem; }
.rows a:hover .row-t { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.rows-tight { margin-top: 2.5rem; }
.rows-tight a { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
.rows-tight .row-d { text-align: right; }

.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.2rem 3rem; margin-bottom: 2.2rem; }
.three:last-child { margin-bottom: 0; }
.three > div { border-top: 2px solid var(--blue); padding-top: 1.1rem; }
.three p { margin-top: 0.5rem; font-size: 1rem; }

.ticks li { position: relative; padding-left: 1.5rem; }
.ticks li + li { margin-top: 0.55rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--sky); }

/* services page */
.jump { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 0.6rem 0.7rem; }
.jump a { display: block; padding: 0.45rem 0.95rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: 0.95rem; font-weight: 500; }
.jump a:hover { border-color: var(--blue); color: var(--blue); }
.svc { padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0; border-top: 1px solid var(--line); }
.svc:nth-of-type(odd) { background: var(--tint); }
.svc-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(1.5rem, 5vw, 5rem); }
.svc-head .lead { margin-top: 1rem; font-size: 1.1rem; }
.svc-body h3 { margin-bottom: 0.8rem; }
.svc-body h3:not(:first-child) { margin-top: 1.8rem; }

/* steps (a true sequence, so numbered) */
.steps { counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 2.2rem 3.6rem; border-left: 1px solid var(--line); margin-left: 1.1rem; }
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before { content: counter(s); position: absolute; left: -1.15rem; top: -0.2rem; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--blue); color: #fff; font: 600 1rem/2.3rem var(--sans); text-align: center; }
.step-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 1rem; }
.step-h h3 { font: 500 1.45rem/1.2 var(--serif); }
.step-h span { color: var(--muted); font-size: 0.95rem; }
.steps p { margin-top: 0.5rem; }
.steps-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.steps-row li { border-left: 0; margin-left: 0; padding: 3.2rem 0 0; }
.steps-row li::before { left: 0; top: 0; }

/* insights */
.kicker { color: var(--blue); font-weight: 600; font-size: 0.95rem; margin-bottom: 0.5rem; }
.post + .post { margin-top: 4rem; padding-top: 4rem; border-top: 1px solid var(--line); }
.post h2 { margin-bottom: 1.4rem; max-width: none; }
.post p + p { margin-top: 1.1rem; }

.big-mail { margin-top: 2.2rem; }
.big-mail a { font: 500 clamp(1.3rem, 1rem + 2vw, 2.3rem)/1.2 var(--serif); overflow-wrap: anywhere; }

/* closing call to action + footer */
.cta { background: var(--blue); color: #fff; padding: clamp(3rem, 2rem + 3vw, 4.5rem) 0; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 2rem 4rem; flex-wrap: wrap; }
.cta h2 { color: #fff; max-width: 24ch; }
.cta p { margin-top: 0.9rem; max-width: 38rem; color: #e3ecff; }

.foot { background: var(--ink); color: #b9c5dc; padding: 3.5rem 0 2rem; font-size: 0.95rem; }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 2rem; }
.foot-name { font: 600 1.25rem var(--sans); color: #fff; margin-bottom: 0.5rem; }
.foot a { color: #dfe7f7; text-decoration: none; overflow-wrap: anywhere; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot li + li { margin-top: 0.5rem; }
.foot-legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #1d3360; color: #8f9dba; font-size: 0.875rem; }

@media (max-width: 56rem) {
  .hero-in, .split, .svc-in, .three, .steps-row { grid-template-columns: minmax(0, 1fr); }
  .bits-fig { justify-self: start; width: min(100%, 16rem); }
  .rows a, .rows-tight a { grid-template-columns: minmax(0, 1fr); }
  .rows-tight .row-d { text-align: left; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-in > div { grid-column: 1 / -1; }
  .steps-row { gap: 2rem; }
}
@media (max-width: 46rem) {
  .menu-btn { display: block; }
  #nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); }
  #nav.open { display: block; }
  #nav ul { flex-direction: column; align-items: stretch; gap: 0; width: min(100% - 2rem, 72rem); margin-inline: auto; padding: 0.5rem 0 1rem; }
  #nav a { display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
  #nav li:last-child a { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .top, .cta, .foot, .skip { display: none; } }
