/* Instrument Sans (SIL Open Font License 1.1, see fonts/OFL.txt) — self-hosted */
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('fonts/instrument-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('fonts/instrument-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root, [data-theme="light"] {
  --bg: #F2F0EA; --ink: #0F1714; --ink-2: #2B3530; --ink-3: #48534D;
  --line: #D6D2C6; --rule: #0F1714;
  --band: #0F1714; --band-ink: #F2F0EA; --band-ink-2: #C9D1CC; --band-ink-3: #A9B4AE; --band-line: #2C3833;
  --card: #17221D; --track: #26312C;
  --accent: #1F4D3A; --on-accent: #F2F0EA; --pop: #C6E052; --on-pop: #0F1714;
  --panel: #0F1714; --panel-ink: #F2F0EA; --panel-ink-3: #A9B4AE;
  --field: #FFFFFF; --field-line: #BDB6A6; --focus: #1F4D3A;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0B0F12; --ink: #E8ECEF; --ink-2: #B4BCC4; --ink-3: #8A949E;
  --line: #232B33; --rule: #3A4550;
  --band: #12171C; --band-ink: #E8ECEF; --band-ink-2: #B4BCC4; --band-ink-3: #8A949E; --band-line: #232B33;
  --card: #1A2129; --track: #232B33;
  --accent: #7CB342; --on-accent: #0B0F12; --pop: #9CCC65; --on-pop: #0B0F12;
  --panel: #0B0F12; --panel-ink: #E8ECEF; --panel-ink-3: #8A949E;
  --field: #12171C; --field-line: #3A4550; --focus: #9CCC65;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Instrument Sans', system-ui, -apple-system, sans-serif; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.06; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 16px; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 clamp(20px, 5.6vw, 80px); }
.label { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.band .label, .panel-ciso .label { color: var(--pop); }
.muted { color: var(--ink-2); }

/* Wordmark: a 180° rotational ambigram */
.wm circle { fill: none; stroke: currentColor; stroke-width: 14; }
.wm line { stroke: currentColor; stroke-width: 14; stroke-linecap: round; }
.wm .l { stroke: var(--accent); }
@keyframes flip { 0%, 44% { transform: rotate(0deg); } 50%, 94% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } }
.flip { transform-origin: 50% 50%; animation: flip 14s cubic-bezier(.75, 0, .25, 1) infinite; }
@media (prefers-reduced-motion: reduce) { .flip { animation: none; } html { scroll-behavior: auto; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .wrap { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand .wm { width: 80px; height: 33px; }
.brand span { font-size: 15px; font-weight: 500; color: var(--ink-3); }
.nav { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 22px; border-radius: 4px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; }
.btn svg { flex-shrink: 0; }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-pop { background: var(--pop); color: var(--on-pop); }
.btn-line { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn-accent:hover, .btn-ink:hover, .btn-pop:hover { filter: brightness(1.08); }
.btn-line:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; padding: 0; }
.icon-btn:hover { border-color: var(--rule); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }
.menu-btn { display: none; }
.header-tools { display: flex; align-items: center; gap: 12px; }

/* Hero */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 120px); }
.hero .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
.hero-main { grid-column: span 8; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: clamp(40px, 5.4vw, 78px); line-height: 1.02; letter-spacing: -0.035em; }
.hl { background: var(--pop); color: var(--on-pop); padding: 0 0.12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero-side { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 24px; }
.hero-side p { font-size: 19px; line-height: 1.55; color: var(--ink-2); }
.stack { display: flex; flex-direction: column; gap: 10px; }
.stack .btn { min-height: 58px; font-size: 17px; }

/* Outcomes band */
.band { background: var(--band); color: var(--band-ink); border-top: 1px solid var(--band-line); border-bottom: 1px solid var(--band-line); padding: clamp(64px, 8vw, 104px) 0; }
.section-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 20px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head > div { grid-column: span 7; display: flex; flex-direction: column; gap: 20px; }
.section-head > p { grid-column: 9 / span 4; font-size: 18px; }
.section-head h2 { font-size: clamp(30px, 3.9vw, 56px); letter-spacing: -0.035em; }
.band .section-head > p { color: var(--band-ink-2); }
.outcomes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.outcomes li { border-top: 3px solid var(--pop); padding-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.outcomes h3 { font-size: 23px; line-height: 1.2; letter-spacing: -0.02em; }
.outcomes p { font-size: 16px; line-height: 1.55; color: var(--band-ink-2); }

/* Services */
.services { padding: clamp(80px, 9vw, 128px) 0 0; }
.services .section-head > div { grid-column: span 8; }
.panel-ciso { position: relative; overflow: hidden; background: var(--band); color: var(--band-ink); border: 1px solid var(--band-line); border-radius: 8px; padding: clamp(28px, 5vw, 72px); display: flex; flex-direction: column; gap: 44px; }
.panel-ciso .ghost { position: absolute; right: -60px; bottom: -40px; width: 760px; max-width: 90%; height: auto; transform: rotate(180deg); opacity: 0.07; color: var(--band-ink); pointer-events: none; }
.panel-ciso .ghost .l { stroke: currentColor; }
.panel-top { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.panel-top > div { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
.panel-ciso h3 { font-size: clamp(40px, 5.6vw, 80px); letter-spacing: -0.04em; line-height: 1; }
.panel-ciso p { font-size: 19px; color: var(--band-ink-2); }
.gets { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.gets > div { background: var(--card); border-radius: 6px; padding: 28px; }
.gets ul { list-style: none; margin: 14px 0 0; padding: 0; }
.gets li { border-top: 1px solid var(--band-line); padding: 12px 0; font-size: 17px; line-height: 1.45; }
.gets li:last-child { padding-bottom: 0; }
.fit { position: relative; font-size: 15px; color: var(--band-ink-3); }

.it-card { margin-top: 24px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 16px; align-items: center; border: 1.5px solid var(--rule); border-radius: 8px; padding: clamp(24px, 3.5vw, 44px) clamp(22px, 3.5vw, 48px); }
.it-card > div:first-child { grid-column: span 5; display: flex; flex-direction: column; gap: 14px; }
.it-card h3 { font-size: clamp(28px, 2.9vw, 40px); letter-spacing: -0.03em; }
.it-card > div:nth-child(2) { grid-column: span 5; display: flex; flex-direction: column; gap: 10px; }
.it-card > a { grid-column: span 2; justify-self: end; font-weight: 600; color: var(--accent); }
[data-theme="dark"] .it-card > a, [data-theme="dark"] .text-link { color: var(--pop); }
.tags { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }

.svc-list { list-style: none; margin: 64px 0 0; padding: 0; }
.svc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 10px; padding: 36px 0; border-top: 1px solid var(--line); }
.svc:first-child { border-top: 1.5px solid var(--rule); }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc .num { grid-column: span 1; font-size: 14px; font-weight: 600; color: var(--accent); padding-top: 8px; }
[data-theme="dark"] .svc .num { color: var(--pop); }
.svc h3 { grid-column: span 5; font-size: clamp(22px, 2.2vw, 31px); line-height: 1.15; letter-spacing: -0.025em; }
.svc > div { grid-column: span 6; display: flex; flex-direction: column; gap: 12px; }
.svc p { color: var(--ink-2); }

.csf { margin-top: 64px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; align-items: center; background: var(--pop); color: var(--on-pop); border-radius: 8px; padding: clamp(28px, 4.5vw, 56px) clamp(22px, 4.5vw, 64px); text-decoration: none; }
.csf:hover { filter: brightness(1.03); }
.csf-copy { grid-column: span 6; display: flex; flex-direction: column; gap: 18px; }
.csf .label { color: var(--on-pop); }
.csf-title { font-size: clamp(28px, 3.1vw, 45px); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; }
.csf-copy .go { font-weight: 600; }
.csf-report { grid-column: 8 / span 5; background: var(--panel); color: var(--panel-ink); border-radius: 6px; padding: 28px 30px; display: flex; flex-direction: column; gap: 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.csf-report .meta { display: flex; justify-content: space-between; color: var(--panel-ink-3); }
.csf-report .meta .url { text-transform: none; letter-spacing: 0; }
.bar { display: grid; grid-template-columns: 82px 1fr 40px; gap: 14px; align-items: center; }
.bar .track { height: 8px; background: var(--track); }
.bar .fill { height: 100%; background: var(--pop); }
.bar .v { text-align: right; }
.w82 { width: 82%; } .w68 { width: 68%; } .w74 { width: 74%; } .w55 { width: 55%; } .w61 { width: 61%; } .w70 { width: 70%; }

/* How we work */
.model { padding: clamp(80px, 9vw, 128px) 0 0; }
.model .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; align-items: center; }
.model-copy { grid-column: span 6; display: flex; flex-direction: column; gap: 24px; }
.model-copy h2 { font-size: clamp(30px, 3.6vw, 54px); letter-spacing: -0.035em; }
.model-copy p { font-size: 18px; color: var(--ink-2); }
.model-copy p.small { font-size: 16px; color: var(--ink-3); }
.model-fig { grid-column: 8 / span 5; margin: 0; }
.model-fig svg { width: 100%; height: auto; }
.model-fig .spoke { stroke: var(--line); stroke-width: 2; }
.model-fig .hub { fill: var(--accent); }
.model-fig .hub-t { fill: var(--on-accent); font-family: 'Instrument Sans', sans-serif; font-weight: 700; font-size: 20px; }
.model-fig .node { fill: var(--bg); stroke: var(--rule); stroke-width: 2; }
.model-fig .node-t { fill: var(--ink-2); font-family: 'Instrument Sans', sans-serif; font-weight: 600; font-size: 14px; letter-spacing: 0.06em; }

/* Engage */
.engage { padding: clamp(80px, 9vw, 128px) 0; }
.engage .section-head > div { grid-column: span 9; }
.ways { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ways li { border-top: 1.5px solid var(--rule); padding-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.ways .big { font-size: 58px; font-weight: 500; line-height: 1; letter-spacing: -0.04em; color: var(--accent); }
[data-theme="dark"] .ways .big { color: var(--pop); }
.ways h3 { font-size: 26px; letter-spacing: -0.02em; }
.ways p { font-size: 16px; color: var(--ink-2); }
.ways .terms { font-size: 15px; font-weight: 600; }
.engage-note { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 16px; }

/* Contact */
.contact { background: var(--band); color: var(--band-ink); border-top: 1px solid var(--band-line); padding: clamp(72px, 9vw, 120px) 0; }
.contact .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; }
.contact-copy { grid-column: span 5; display: flex; flex-direction: column; gap: 24px; }
.contact-copy h2 { font-size: clamp(32px, 3.9vw, 56px); letter-spacing: -0.035em; }
.contact-copy p { color: var(--band-ink-2); font-size: 18px; }
.contact-copy .where { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--band-ink-3); }
.form { grid-column: 7 / span 6; background: var(--card); border: 1px solid var(--band-line); border-radius: 8px; padding: clamp(24px, 3vw, 40px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--band-ink-2); }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--band-ink); background: var(--panel); border: 1.5px solid var(--band-line); border-radius: 4px; padding: 12px 14px; min-height: 48px; width: 100%; }
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--band-ink-3); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--pop); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { grid-column: 1 / -1; min-height: 54px; font-size: 16px; }
.form-note { grid-column: 1 / -1; font-size: 14px; color: var(--band-ink-3); text-align: center; }
.form-status { grid-column: 1 / -1; font-size: 16px; font-weight: 600; color: var(--pop); min-height: 1em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: 14px; color: var(--ink-3); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.site-footer .brand .wm { width: 64px; height: 26px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer nav a { text-decoration: none; color: var(--ink-2); }
.site-footer nav a:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 1100px) {
  .nav { gap: 22px; }
  .outcomes { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
}
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; top: 88px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px clamp(20px, 5.6vw, 80px) 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a.btn { margin-top: 16px; border-bottom: 0; justify-content: center; }
  .hero-main, .hero-side, .section-head > div, .section-head > p, .services .section-head > div, .engage .section-head > div,
  .model-copy, .model-fig, .contact-copy, .form, .csf-copy, .csf-report { grid-column: 1 / -1; }
  .hero-side { margin-top: 32px; }
  .panel-top { flex-direction: column; }
  .gets { grid-template-columns: 1fr; }
  .it-card > div:first-child, .it-card > div:nth-child(2), .it-card > a { grid-column: 1 / -1; justify-self: start; }
  .svc .num { grid-column: 1 / -1; padding-top: 0; }
  .svc h3, .svc > div { grid-column: 1 / -1; }
  .ways { grid-template-columns: 1fr; gap: 32px; }
  .model-fig { max-width: 460px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header .wrap { height: 72px; }
  .nav { top: 72px; }
  .brand .wm { width: 66px; height: 27px; }
  .brand span { font-size: 13px; }
  .theme-toggle { width: 44px; }
  .hero-side p, .model-copy p, .contact-copy p, .section-head > p { font-size: 17px; }
  .outcomes { grid-template-columns: 1fr; }
  .panel-ciso { gap: 28px; }
  .panel-ciso p, .gets li { font-size: 16px; }
  .gets > div { padding: 20px; }
  .svc { padding: 26px 0; }
  .form { grid-template-columns: 1fr; }
  .bar { grid-template-columns: 70px 1fr 36px; gap: 10px; }
  .csf-report { padding: 20px; }
}

/* Label consistency (kept last so it wins over section paragraph styles) */
.nav a.btn { color: var(--bg); }
.wrap .label { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.4; color: var(--accent); }
.wrap .tags { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.5; color: var(--ink-3); }
[data-theme="dark"] .wrap .label { color: var(--pop); }
.band .wrap .label, .contact .wrap .label, .wrap .panel-ciso .label { color: var(--pop); }
.wrap .csf .label { color: var(--on-pop); }
.it-card > a { white-space: nowrap; }

/* Anchor targets clear the sticky header */
#top, section[id] { scroll-margin-top: 96px; }
@media (max-width: 640px) { #top, section[id] { scroll-margin-top: 80px; } }

/* Credibility line */
.lead-by { font-size: 16px; color: var(--ink-2); border-left: 3px solid var(--pop); padding-left: 16px; }
.lead-by strong { color: var(--ink); }
.lead-by a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lead-by a:hover { color: var(--accent); }
[data-theme="dark"] .lead-by a:hover { color: var(--pop); }

/* Labs page */
.labs-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); }
.labs-hero .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 24px; align-items: end; }
.labs-hero .wrap > div { grid-column: span 8; display: flex; flex-direction: column; gap: 24px; }
.labs-hero h1 { font-size: clamp(40px, 5.4vw, 78px); line-height: 1.02; letter-spacing: -0.035em; }
.labs-hero .wrap > p { grid-column: 9 / span 4; font-size: 18px; color: var(--ink-2); }
.projects { list-style: none; margin: 0; padding: 0 0 clamp(80px, 9vw, 128px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.project { display: flex; flex-direction: column; border: 1.5px solid var(--rule); border-radius: 8px; overflow: hidden; background: var(--bg); }
.project img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-bottom: 1.5px solid var(--rule); background: var(--band); }
.project-body { padding: clamp(22px, 2.6vw, 36px); display: flex; flex-direction: column; gap: 14px; flex-grow: 1; }
.project h2 { font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -0.03em; }
.project .domain { font-size: 15px; font-weight: 600; color: var(--ink-3); }
.project p { color: var(--ink-2); }
.project .note { font-size: 15px; font-weight: 600; color: var(--ink); }
.project .visit { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--accent); text-decoration: none; }
.project .visit:hover { text-decoration: underline; }
[data-theme="dark"] .project .visit { color: var(--pop); }
@media (max-width: 960px) { .labs-hero .wrap > div, .labs-hero .wrap > p { grid-column: 1 / -1; } .projects { grid-template-columns: 1fr; } }
