:root {
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --paper: #ffffff;
  --parchment: #f5f5f7;
  --pearl: #fafafc;
  --line: #d2d2d7;
  --line-dark: rgba(255, 255, 255, 0.16);
  --void: #000000;
  --tile: #272729;
  --tile-2: #202022;
  --blue: #0066cc;
  --blue-dark: #2997ff;
  --max: 1120px;
  --serif: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.5 var(--sans); letter-spacing: -0.015em; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.18em; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.pointer-halo { position: fixed; z-index: 1; top: 0; left: 0; width: 360px; aspect-ratio: 1; pointer-events: none; border-radius: 50%; opacity: 0; background: radial-gradient(circle, rgba(115, 183, 255, 0.13) 0, rgba(115, 183, 255, 0.07) 34%, rgba(115, 183, 255, 0) 72%); transform: translate3d(-580px, -580px, 0); transition: opacity 260ms ease; will-change: transform; }
.pointer-halo[data-ready="true"] { opacity: 0.78; }
:focus-visible { outline: 3px solid var(--blue-dark); outline-offset: 3px; }

.skip-link { position: fixed; z-index: 20; top: 8px; left: 8px; transform: translateY(-160%); padding: 10px 16px; color: #fff; background: var(--blue); border-radius: 999px; transition: transform 160ms ease; }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 10; min-height: 48px; color: #fff; background: rgba(0, 0, 0, 0.94); backdrop-filter: saturate(180%) blur(18px); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; width: min(var(--max), calc(100% - 40px)); min-height: 48px; margin: auto; }
.brand { color: #fff; font-size: 15px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { color: #f5f5f7; font-size: 13px; letter-spacing: -0.01em; text-decoration: none; }
.site-nav a:hover { color: var(--blue-dark); }
.nav-toggle { display: none; width: 44px; height: 44px; color: #fff; background: transparent; border: 0; }

.container { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 48px)); margin: 0 auto; }
.eyebrow { margin: 0 0 14px; color: var(--ink-soft); font-size: 14px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
.on-dark .eyebrow { color: #a1a1a6; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: inherit; font-weight: 600; line-height: 1.08; letter-spacing: -0.045em; }
h1 { max-width: 840px; margin-bottom: 22px; font-size: clamp(42px, 7vw, 80px); }
h2 { margin-bottom: 16px; font-size: clamp(34px, 4.5vw, 52px); }
h3 { margin-bottom: 10px; font-size: 24px; }
.lede { max-width: 740px; color: var(--ink-soft); font-size: clamp(20px, 2.6vw, 29px); line-height: 1.27; letter-spacing: -0.025em; }
.on-dark .lede { color: #d6d6dc; }
.prose { color: #424245; font-size: 18px; line-height: 1.6; }
.on-dark .prose { color: #d6d6dc; }
.section { padding: 112px 0; }
.section-tight { padding: 80px 0; }
.parchment { background: var(--parchment); }
.dark { color: #fff; background: var(--tile); }
.void { color: #fff; background: var(--void); }
.tile-2 { color: #fff; background: var(--tile-2); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 48px; }
.section-head .lede { margin-bottom: 0; font-size: 20px; }
.js-motion .motion-reveal { opacity: 0; transform: translate3d(0, 18px, 0); }
.js-motion .motion-reveal.is-visible { animation: reveal-up 620ms cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: calc(var(--motion-index, 0) * 65ms); }
.js-motion .hero-copy > .motion-reveal.is-visible { animation-delay: calc(var(--motion-index, 0) * 58ms); }
.js-motion .hero-network-frame.motion-reveal.is-visible { animation-delay: 190ms; }
.js-motion .work-card.motion-reveal { scale: 0.98; }
.js-motion .work-card.motion-reveal.is-visible { scale: 1; transition: scale 620ms cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes reveal-up { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 21px; border: 1px solid transparent; border-radius: 999px; font-size: 16px; font-weight: 400; text-align: center; text-decoration: none; transition: transform 200ms ease, background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, color 200ms ease; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: scale(0.96); }
.button-primary { color: #fff; background: var(--blue); box-shadow: 0 8px 20px rgba(0, 102, 204, 0.22); }
.button-primary:hover { background: #0071e3; }
.button-secondary { color: var(--blue); background: transparent; border-color: var(--blue); }
.dark .button-secondary, .void .button-secondary { color: var(--blue-dark); border-color: var(--blue-dark); }

.hero { position: relative; overflow: hidden; padding: 124px 0 78px; }
.hero::before { position: absolute; inset: 0; content: ""; background-image: linear-gradient(rgba(115, 183, 255, 0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(115, 183, 255, 0.09) 1px, transparent 1px); background-size: 36px 36px; mask-image: radial-gradient(circle at 68% 46%, #000, transparent 58%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, 0.72fr); align-items: end; gap: 48px; }
.hero-copy { position: relative; z-index: 2; }
.hero-visual { position: relative; display: grid; justify-items: end; align-items: end; min-height: 460px; isolation: isolate; }
.hero-network-frame { position: relative; z-index: 1; width: min(100%, 360px); aspect-ratio: 4 / 5; margin: 0; overflow: hidden; background: #080a10 url('/assets/hero-network-flow-poster.jpg') center / cover no-repeat; border: 1px solid rgba(115, 183, 255, 0.34); border-radius: 18px; box-shadow: 0 28px 82px rgba(0, 0, 0, 0.46); isolation: isolate; }
.hero-network-frame::after { position: absolute; z-index: 1; inset: 0; content: ""; background: linear-gradient(180deg, rgba(3, 7, 15, 0.08) 34%, rgba(3, 7, 15, 0.8) 100%); pointer-events: none; }
.hero-network-video { position: absolute; z-index: 0; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-network-frame figcaption { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; padding: 30px 16px 14px; color: rgba(255, 255, 255, 0.84); font-size: 12px; line-height: 1.35; letter-spacing: -0.01em; }
.hero-network-frame figcaption a { color: inherit; text-decoration-color: rgba(115, 183, 255, 0.7); }
.hero-network-frame figcaption a:hover { color: #fff; }
.availability { display: inline-flex; gap: 9px; align-items: flex-start; margin-top: 38px; color: #b7f7c8; font-size: 14px; }
.availability-indicator { display: grid; flex: 0 0 8px; place-items: center; width: 8px; height: 1.5em; }
.availability-indicator::before { grid-area: 1 / 1; width: 8px; height: 8px; content: ""; background: #35d064; border-radius: 50%; box-shadow: 0 0 0 4px rgba(53, 208, 100, 0.14); }
.availability-indicator::after { grid-area: 1 / 1; box-sizing: border-box; width: 18px; height: 18px; content: ""; border: 1px solid rgba(53, 208, 100, 0.8); border-radius: 50%; animation: availability-ripple 2.4s ease-out infinite; }
@keyframes travel { to { stroke-dashoffset: -128; } }
@keyframes availability-ripple { 0% { opacity: 0.9; transform: scale(0.65); } 70%, 100% { opacity: 0; transform: scale(1.5); } }

.metrics { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.metric { min-height: 172px; padding: 26px 22px; border-right: 1px solid var(--line-dark); }
.metric:last-child { border-right: 0; }
.metric-value { display: block; margin-bottom: 10px; color: #fff; font-size: clamp(27px, 3.1vw, 39px); font-weight: 600; line-height: 1.05; letter-spacing: -0.05em; }
.metric p { margin: 0; color: #cccccc; font-size: 14px; line-height: 1.35; }

.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.work-card { position: relative; min-height: 405px; padding: 34px; overflow: hidden; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: 18px; isolation: isolate; text-decoration: none; transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease; }
.work-card:hover { border-color: var(--blue); box-shadow: 0 18px 42px rgba(29, 29, 31, 0.09); transform: translateY(-6px); }
.dark .work-card { background: #303033; border-color: #505055; }
.work-card > :not(.work-card-visual) { position: relative; z-index: 1; }
.work-card-visual { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: linear-gradient(145deg, rgba(0, 102, 204, 0.08), transparent 46%); }
.cover-node, .cover-link, .cover-packet { position: absolute; display: block; }
.cover-node { width: 88px; height: 88px; border: 1px solid rgba(0, 102, 204, 0.42); border-radius: 50%; box-shadow: inset 0 0 0 10px rgba(0, 102, 204, 0.04); }
.cover-link { height: 1px; background: linear-gradient(90deg, rgba(0, 102, 204, 0), rgba(0, 102, 204, 0.45), rgba(0, 102, 204, 0)); transform-origin: left center; }
.cover-packet { width: 11px; height: 11px; background: var(--blue); border-radius: 50%; box-shadow: 0 0 0 7px rgba(0, 102, 204, 0.1); }
.work-card[data-topology="decisioning"] .cover-node { top: 34px; right: 36px; }
.work-card[data-topology="decisioning"] .cover-link { top: 78px; right: -6px; width: 220px; transform: rotate(164deg); }
.work-card[data-topology="decisioning"] .cover-packet { top: 132px; right: 118px; }
.work-card[data-topology="search"] .work-card-visual { background: repeating-linear-gradient(90deg, rgba(0, 102, 204, 0.055) 0 1px, transparent 1px 32px), linear-gradient(180deg, rgba(0, 102, 204, 0.08), transparent 48%); }
.work-card[data-topology="search"] .cover-node { top: 54px; right: 46px; width: 72px; height: 72px; border-radius: 14px; }
.work-card[data-topology="search"] .cover-link { top: 89px; right: -16px; width: 180px; }
.work-card[data-topology="search"] .cover-packet { top: 84px; right: 126px; }
.work-card[data-topology="reliability"] .work-card-visual { background: radial-gradient(circle at 86% 22%, rgba(255, 149, 0, 0.15), transparent 23%), linear-gradient(145deg, rgba(0, 102, 204, 0.08), transparent 44%); }
.work-card[data-topology="reliability"] .cover-node { top: 34px; right: 44px; width: 104px; height: 104px; border-style: dashed; }
.work-card[data-topology="reliability"] .cover-link { top: 86px; right: -12px; width: 210px; transform: rotate(150deg); }
.work-card[data-topology="reliability"] .cover-packet { top: 142px; right: 134px; background: #ff9500; box-shadow: 0 0 0 7px rgba(255, 149, 0, 0.11); }
.work-card[data-topology="performance"] .work-card-visual { background: linear-gradient(145deg, rgba(48, 209, 88, 0.13), transparent 46%); }
.work-card[data-topology="performance"] .cover-node { top: 38px; right: 40px; width: 76px; height: 76px; border-radius: 7px; transform: rotate(45deg); }
.work-card[data-topology="performance"] .cover-link { top: 92px; right: -14px; width: 196px; transform: rotate(171deg); }
.work-card[data-topology="performance"] .cover-packet { top: 120px; right: 138px; background: #30d158; box-shadow: 0 0 0 7px rgba(48, 209, 88, 0.12); }
.work-card .number { color: var(--blue); font-size: 14px; font-weight: 600; letter-spacing: 0.06em; }
.work-card p { max-width: 430px; color: var(--ink-soft); }
.dark .work-card p { color: #cccccc; }
.work-card .arrow { position: absolute; right: 28px; bottom: 26px; color: var(--blue); font-size: 25px; transition: transform 220ms ease; }
.work-card:hover .arrow { transform: translate3d(4px, -4px, 0); }
.card-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.tag { padding: 5px 9px; color: var(--ink-soft); background: var(--parchment); border-radius: 999px; font-size: 12px; letter-spacing: 0; }
.dark .tag { color: #d6d6dc; background: #444448; }

.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.expertise-card { padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 18px; transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease; }
.expertise-card:hover { border-color: #b4d7fb; box-shadow: 0 14px 30px rgba(29, 29, 31, 0.06); transform: translateY(-4px); }
.expertise-card h3 { margin-bottom: 15px; }
.expertise-card ul, .services-list, .case-list { padding: 0; margin: 0; list-style: none; }
.expertise-card li { padding: 7px 0; color: var(--ink-soft); border-top: 1px solid #ededf0; font-size: 15px; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.service { padding-top: 22px; border-top: 1px solid var(--line-dark); }
.service p { color: #cccccc; }
.service li { padding: 7px 0; color: #f5f5f7; border-bottom: 1px solid var(--line-dark); font-size: 15px; }
.service-index { display: block; margin-bottom: 22px; color: var(--blue-dark); font-size: 14px; font-weight: 600; letter-spacing: 0.06em; }

.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.article-card { display: flex; flex-direction: column; min-height: 286px; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 18px; transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease; }
.article-card:hover { border-color: #b4d7fb; box-shadow: 0 14px 30px rgba(29, 29, 31, 0.06); transform: translateY(-4px); }
.article-card .meta, .article-meta { color: var(--ink-soft); font-size: 14px; }
.article-card h3 { margin-top: 22px; }
.article-card a { margin-top: auto; color: var(--blue); font-size: 15px; font-weight: 600; text-decoration: none; }
.lab-card { position: relative; display: flex; flex-direction: column; min-height: 286px; padding: 26px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 18px; isolation: isolate; transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease; }
.lab-card::before { position: absolute; inset: 0; z-index: -1; content: ""; pointer-events: none; }
.lab-card:hover { border-color: #b4d7fb; box-shadow: 0 14px 30px rgba(29, 29, 31, 0.06); transform: translateY(-4px); }
.lab-card .meta { color: var(--ink-soft); font-size: 14px; }
.lab-card h3 { max-width: 78%; margin-top: 22px; }
.lab-card p { max-width: 88%; color: var(--ink-soft); }
.lab-card a { margin-top: auto; color: var(--blue); font-size: 15px; font-weight: 600; text-decoration: none; }
.lab-career::before { background: radial-gradient(circle at 91% 15%, rgba(0, 102, 204, 0.18) 0 2px, transparent 3px), linear-gradient(135deg, rgba(0, 102, 204, 0.1), transparent 48%); background-size: 24px 24px, auto; }
.lab-pacman::before { background: radial-gradient(circle at 89% 18%, #ffe36c 0 24px, transparent 25px), radial-gradient(circle at 72% 62%, #ff5b5b 0 6px, transparent 7px), radial-gradient(circle at 90% 62%, #56c8ff 0 6px, transparent 7px), linear-gradient(135deg, #171735, #28285c); }
.lab-pacman { color: #fff; border-color: #45457b; }
.lab-pacman .meta, .lab-pacman p { color: #d2d3f0; }
.lab-pacman a { color: #ffe36c; }
.lab-language::before { background: repeating-linear-gradient(0deg, transparent 0 28px, rgba(0, 102, 204, 0.08) 29px 30px), radial-gradient(circle at 86% 18%, rgba(48, 209, 88, 0.2), transparent 30%); }
.source-note { margin: 20px 0 0; color: var(--ink-soft); font-size: 13px; }
.source-note a { color: var(--blue); }

.about-strip { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 84px; align-items: center; }
.portrait { aspect-ratio: 1 / 1; overflow: hidden; background: var(--parchment); border-radius: 18px; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.quote { max-width: 690px; font-family: var(--serif); font-size: clamp(26px, 3vw, 40px); line-height: 1.2; letter-spacing: -0.035em; }

.page-hero { padding: 95px 0 70px; }
.work-canvas { max-width: 760px; height: 150px; margin-top: 42px; overflow: hidden; }
.work-canvas svg { width: 100%; height: 100%; }
.work-canvas-link { fill: none; stroke: rgba(0, 102, 204, 0.22); stroke-width: 1.2; }
.work-canvas-trace { fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-dasharray: 8 9; opacity: 0.68; animation: travel 14s linear infinite; }
.work-canvas-node { fill: var(--paper); stroke: var(--blue); stroke-width: 1.2; }
.breadcrumbs { display: flex; gap: 8px; margin-bottom: 34px; color: var(--ink-soft); font-size: 14px; }
.breadcrumbs a { color: inherit; }
.case-study { display: grid; grid-template-columns: 0.77fr 1.23fr; gap: 64px; }
.case-study aside { align-self: start; padding: 20px 0; border-top: 1px solid var(--line); }
.case-study aside p { margin-bottom: 22px; color: var(--ink-soft); font-size: 14px; }
.case-study section { padding: 0 0 46px; }
.case-study h2 { font-size: 31px; }
.case-study h3 { font-size: 19px; }
.case-study .diagram { padding: 26px; margin: 28px 0; color: #fff; background: var(--tile); border-radius: 18px; }
.case-study .diagram svg { width: 100%; min-height: 190px; }
.case-study .diagram text { fill: #d6d6dc; font: 12px var(--sans); }
.case-study .diagram .d-line { fill: none; stroke: #70b7ff; stroke-width: 1.4; }
.case-study .diagram .d-node { fill: #3b3b3e; stroke: #a1a1a6; }
.case-study .diagram .d-node-accent { fill: var(--blue); stroke: #a9d5ff; }
.note { padding: 18px 20px; color: #424245; background: var(--parchment); border-left: 3px solid var(--blue); font-size: 15px; }

.service-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-detail { padding: 28px; border: 1px solid var(--line); border-radius: 18px; transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease; }
.service-detail:hover { border-color: #b4d7fb; box-shadow: 0 14px 30px rgba(29, 29, 31, 0.06); transform: translateY(-4px); }
.service-detail ul { padding-left: 19px; color: var(--ink-soft); }
.service-detail li { padding-bottom: 8px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; color: var(--ink); background: #fff; border: 1px solid #bcbcc2; border-radius: 8px; }
.field textarea { min-height: 142px; resize: vertical; }
.form-note { margin: 16px 0 0; color: var(--ink-soft); font-size: 14px; }
.honeypot { position: absolute; left: -10000px; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 245px; gap: 74px; }
.article-content { max-width: 760px; }
.article-content h2 { margin-top: 56px; font-size: 31px; }
.article-content h3 { margin-top: 35px; font-size: 22px; }
.article-content p, .article-content li { color: #424245; line-height: 1.65; }
.article-content li { margin-bottom: 9px; }
.article-content pre { overflow-x: auto; padding: 20px; color: #e8e8ed; background: var(--tile); border-radius: 12px; font: 14px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.article-content pre .code-key { color: #79c0ff; }
.toc { position: sticky; top: 82px; align-self: start; padding: 20px; background: var(--parchment); border-radius: 12px; }
.toc strong { display: block; margin-bottom: 12px; font-size: 14px; }
.toc a { display: block; padding: 5px 0; color: var(--ink-soft); font-size: 14px; text-decoration: none; }
.toc a:hover { color: var(--blue); }
.article-nav { display: flex; justify-content: space-between; gap: 24px; padding-top: 30px; margin-top: 55px; border-top: 1px solid var(--line); }
.article-nav a { max-width: 48%; color: var(--blue); font-size: 15px; text-decoration: none; }

.contact-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 84px; }
.contact-links { display: grid; gap: 16px; margin-top: 28px; }
.contact-links a { color: var(--blue); }
.contact-form { padding: 32px; background: var(--parchment); border-radius: 18px; }

.site-footer { padding: 56px 0 24px; background: var(--parchment); }
.footer-grid { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); gap: 30px; padding-bottom: 52px; }
.footer-grid h2 { margin-bottom: 13px; font-size: 17px; }
.footer-grid h3 { margin-bottom: 12px; font-size: 14px; letter-spacing: -0.02em; }
.footer-grid a { display: block; padding: 4px 0; color: var(--ink-soft); font-size: 14px; text-decoration: none; transition: color 180ms ease, transform 180ms ease; }
.footer-grid a:hover { color: var(--blue); transform: translateX(3px); }
.legal { display: flex; justify-content: space-between; gap: 16px; padding-top: 17px; color: var(--ink-soft); border-top: 1px solid var(--line); font-size: 12px; }

@media (max-width: 1200px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-network-frame { width: min(100%, 430px); }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
}

@media (max-width: 900px) {
  .site-nav { position: absolute; top: 48px; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 18px; background: rgba(0, 0, 0, 0.98); }
  .site-nav[data-open="true"] { display: flex; }
  .site-nav a { padding: 12px 0; font-size: 16px; }
  .site-nav[data-open="true"] a { animation: nav-reveal 260ms cubic-bezier(0.22, 1, 0.36, 1) both; }
  .site-nav[data-open="true"] a:nth-child(2) { animation-delay: 35ms; }
  .site-nav[data-open="true"] a:nth-child(3) { animation-delay: 70ms; }
  .site-nav[data-open="true"] a:nth-child(4) { animation-delay: 105ms; }
  .site-nav[data-open="true"] a:nth-child(5) { animation-delay: 140ms; }
  .site-nav[data-open="true"] a:nth-child(6) { animation-delay: 175ms; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .hero-grid, .about-strip, .contact-grid, .case-study, .article-layout { grid-template-columns: 1fr; gap: 38px; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-content { min-width: 0; }
  .js-motion .hero-copy > .motion-reveal, .js-motion .hero-network-frame.motion-reveal { opacity: 1; transform: none; animation: none; }
  .hero-visual { grid-template-columns: 1fr; justify-items: stretch; gap: 28px; min-height: 0; }
  .hero-network-frame { width: min(100%, 430px); justify-self: end; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .metric:last-child { grid-column: span 2; }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .articles { grid-template-columns: 1fr; }
  .toc { position: static; order: -1; }
}
@media (max-width: 650px) {
  body { font-size: 16px; }
  .container, .narrow { width: min(100% - 32px, var(--max)); }
  .section { padding: 72px 0; }
  .section-tight { padding: 56px 0; }
  .hero { padding: 80px 0 54px; }
  .hero-grid { gap: 20px; }
  .hero-visual { gap: 18px; }
  .hero-network-frame { width: 100%; justify-self: stretch; }
  .section-head { display: block; margin-bottom: 32px; }
  .section-head .lede { margin-top: 8px; }
  .work-grid, .services-grid, .expertise-grid, .service-detail-grid { grid-template-columns: 1fr; }
  .work-card { min-height: 310px; padding: 25px; }
  .work-card-visual { inset: 0 0 auto; height: 46%; opacity: 0.78; }
  .lab-card { min-height: 260px; }
  .work-canvas { height: 108px; margin-top: 30px; }
  .metrics { grid-template-columns: 1fr; }
  .metric, .metric:nth-child(2), .metric:last-child { grid-column: auto; border-right: 0; border-top: 1px solid var(--line-dark); }
  .metric:first-child { border-top: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .contact-form { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .legal { display: block; }
  .legal span { display: block; margin-bottom: 6px; }
  .article-nav { display: block; }
  .article-nav a { display: block; max-width: none; margin-bottom: 14px; }
}
@keyframes nav-reveal { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }
@media (hover: none), (pointer: coarse) {
  .pointer-halo { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js-motion .motion-reveal { opacity: 1; transform: none; }
  .hero-network-video { display: none; }
  .availability-indicator::after, .work-canvas-trace { animation: none; }
  .pointer-halo { display: none; }
}
