/* Light sub-pages (/services/...): homepage tokens and type, no shader, no scroll scenes. */
/* Self-hosted Latin variable fonts (OFL, from Google Fonts). */
@font-face { font-family: 'Archivo'; src: url('/fonts/archivo-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('/fonts/cormorant-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono-var.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }
:root {
  --light: #e9edf2; --bg: #050507; --text: #e9edf2; --dim: #98a2ae; --line: #2a2f36;
  --accent: #8fb0ff;
  --display: 'Archivo', sans-serif; --serif: 'Cormorant Garamond', serif; --mono: 'JetBrains Mono', monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --measure: 1240px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--text); font-family: var(--display); }
body { -webkit-font-smoothing: antialiased; line-height: 1.55; }
a { color: inherit; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -.01em; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: var(--gutter); top: -60px; background: var(--accent); color: var(--bg); padding: 10px 14px; z-index: 10; }
.skip:focus { top: 12px; }

.sp-head, .crumbs, main, .sp-contact { padding-inline: var(--gutter); }
.sp-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 24px; max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; }
.sp-head .brand { line-height: 0; }
.sp-head .brand img { height: 56px; width: auto; filter: invert(1); }   /* dark logo on the dark header */
.sp-nav { display: flex; gap: clamp(16px, 3vw, 36px); }
.sp-nav a { text-decoration: none; color: var(--dim); }
.sp-nav a:hover, .sp-nav a[aria-current] { color: var(--text); }

.crumbs, main { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; color: var(--dim); }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }

.kicker { color: var(--dim); margin-bottom: 18px; }
.btn { display: inline-block; padding: 16px 24px; background: var(--light); color: var(--bg); border: 1px solid var(--light); text-decoration: none;
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover, .btn:focus-visible { background: var(--accent); border-color: var(--accent); }

.sp-hero { padding: clamp(56px, 12vh, 140px) 0 clamp(56px, 10vh, 110px); border-bottom: 1px solid var(--line); }
.sp-hero h1 { font-size: clamp(44px, 8.4vw, 132px); font-weight: 800; line-height: .9; letter-spacing: -.04em; text-transform: uppercase; max-width: 14ch; text-wrap: balance; }
.sp-hero .lede { margin: 36px 0 32px; max-width: 620px; font-size: clamp(17px, 1.5vw, 20px); color: #c6ccd4; }

.sp-block { padding: clamp(56px, 10vh, 110px) 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 40px; }
.sp-block > .kicker { grid-column: 1; }
.sp-block > :not(.kicker) { grid-column: 2; }
.sp-block > .kicker { grid-row: 1 / span 3; }
.sp-block h2 { font-size: clamp(30px, 4vw, 56px); font-weight: 800; line-height: .98; letter-spacing: -.03em; margin-bottom: 32px; text-wrap: balance; }
.sp-problem h2 { text-transform: none; font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; font-size: clamp(34px, 4.6vw, 64px); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; color: #c6ccd4; }

.inc { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.inc > div { padding: 22px 24px 24px 0; border-bottom: 1px solid var(--line); }
.inc > div:nth-child(odd) { border-right: 1px solid var(--line); }
.inc > div:nth-child(even) { padding-left: 24px; }
.inc dt { font-weight: 600; font-size: 18px; margin-bottom: 6px; }
.inc dd { color: var(--dim); }

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps li { border-top: 1px solid var(--text); padding-top: 18px; }
.steps .mono { color: var(--accent); }
.steps h3 { font-size: 20px; margin: 10px 0 8px; }
.steps p { color: var(--dim); }

.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.fit h3 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; color: var(--accent); }
.fit > div + div h3 { color: var(--dim); }
.fit p { color: #c6ccd4; }

.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font-size: clamp(17px, 1.6vw, 21px); font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 4px; top: 18px; font-family: var(--mono); font-size: 22px; color: var(--dim); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 40px 26px 0; color: #c6ccd4; max-width: 720px; }

.rel-intro { color: #c6ccd4; max-width: 620px; margin: -12px 0 28px; }
.rel { list-style: none; border-top: 1px solid var(--line); }
.rel a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: color .15s; }
.rel a > span:first-child { font-size: clamp(24px, 3vw, 40px); font-weight: 800; letter-spacing: -.03em; }
.rel a::after { content: '→'; grid-column: 2; grid-row: 1; font-family: var(--mono); color: var(--dim); }
.rel a .mono { grid-column: 1; color: var(--dim); text-transform: none; letter-spacing: .02em; font-size: 13px; }
.rel a:hover > span:first-child, .rel a:focus-visible > span:first-child { color: var(--accent); }
.rel-hub .rel-lede { grid-column: 1; color: #c6ccd4; max-width: 680px; }
.rel-hub { grid-column: 1 / -1 !important; }

.sp-contact { background: var(--light); color: var(--bg); padding-top: clamp(64px, 14vh, 160px); padding-bottom: 32px; margin-top: clamp(40px, 8vh, 96px); }
.sp-contact > * { max-width: var(--measure); margin-inline: auto; }
.sp-contact .kicker { color: #4c545e; }
.sp-contact h2 { font-size: clamp(44px, 8vw, 132px); font-weight: 800; line-height: .9; letter-spacing: -.045em; text-transform: uppercase; }
.sp-contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; margin-top: 7vh; }
.sp-contact-intro { font-size: 18px; color: #3a414a; max-width: 440px; }
.sp-contact-mail { margin-top: 18px; font-size: 15px; color: #3a414a; }
.sp-contact-mail a { font-weight: 600; }
.call-form { display: grid; gap: 22px; }
.cf-field { display: grid; gap: 6px; }
.cf-field .mono { color: #4c545e; }
.cf-field i { font-style: normal; text-transform: none; letter-spacing: 0; }
.cf-field input, .cf-field textarea { font: inherit; font-size: 17px; color: var(--bg); background: transparent; border: 0; border-bottom: 1px solid #7d8794; padding: 8px 0; border-radius: 0; resize: vertical; }
.cf-field input:focus, .cf-field textarea:focus { outline: none; border-bottom-color: var(--bg); box-shadow: 0 1px 0 var(--bg); }
.call-form .btn { justify-self: start; background: var(--bg); color: var(--light); border-color: var(--bg); }
.call-form .btn:hover, .call-form .btn:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.sp-foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 14vh; padding-top: 20px; border-top: 1px solid #c6ccd4; color: #4c545e; }
.sp-foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.sp-foot a { text-decoration: none; }
.sp-foot a:hover { text-decoration: underline; }

@media (max-width: 820px) {
  .sp-block { grid-template-columns: 1fr; }
  .sp-block > .kicker, .sp-block > :not(.kicker) { grid-column: 1; grid-row: auto; }
  .cols, .inc, .steps, .fit, .sp-contact-grid { grid-template-columns: 1fr; }
  .inc > div:nth-child(odd) { border-right: 0; }
  .inc > div:nth-child(even) { padding-left: 0; }
  .sp-head .brand img { height: 42px; }
}

/* articles */
.post-head h1 { font-size: clamp(38px, 6vw, 92px); max-width: 18ch; }
.byline { color: var(--dim); }
.prose { max-width: 720px; margin: 0 auto; padding: clamp(48px, 9vh, 96px) 0; font-size: 18px; color: #c6ccd4; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { color: var(--text); font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin-top: 2.2em; }
.prose strong { color: var(--text); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 1.6em; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
.prose thead th { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-weight: 500; }
.post-rel { border-top: 1px solid var(--line); }
@media (max-width: 820px) { .prose { font-size: 17px; } .prose table { display: block; overflow-x: auto; } }
