:root {
  --bg: #070a0f;
  --bg-2: #0b1019;
  --panel: #101826;
  --panel-2: #121d2d;
  --ink: #eef4ff;
  --muted: #aab8cd;
  --soft: #dce8fb;
  --line: #26364e;
  --line-2: #344761;
  --blue: #2366d8;
  --blue-2: #80b7ff;
  --green: #7de2b8;
  --warn: #ffd36b;
  --shadow: 0 28px 90px rgba(0, 0, 0, .38);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(76, 145, 255, .18), transparent 34rem),
    linear-gradient(180deg, #070a0f 0%, #0a0f18 38%, #070a0f 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}
a { color: inherit; }
img { max-width: 100%; height: auto; border-radius: 18px; }
.sr-only { position: absolute!important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 12px; z-index: 99; background: #fff; color: #000; padding: .7rem 1rem; border-radius: 999px; }
.skip:focus { left: 12px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(7, 10, 15, .84); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(38,54,78,.9); }
.nav-shell { max-width: 1180px; margin: auto; min-height: 74px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; min-width: 0; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 14px; background: #e9f3ff; color: #07111f; font-weight: 950; letter-spacing: -.08em; box-shadow: 0 12px 34px rgba(76,145,255,.18); }
.brand strong { display: block; line-height: 1.1; color: #fff; }
.brand small { display: block; color: var(--muted); font-size: .78rem; }
.nav-links { display: flex; align-items: center; gap: 1.05rem; font-size: .93rem; }
.nav-links a, .mobile-nav a { text-decoration: none; color: #c0ccdd; font-weight: 750; }
.nav-links a:hover, .nav-links a[aria-current="page"], .mobile-nav a:hover, .mobile-nav a[aria-current="page"] { color: #fff; }
.nav-cta, .button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 1px solid #6ba5ff; border-radius: 999px; padding: .84rem 1.08rem; background: var(--blue); color: #fff!important; text-decoration: none; font-weight: 900; line-height: 1.1; box-shadow: 0 14px 40px rgba(76,145,255,.28); }
.button.secondary, .nav-cta.secondary { background: transparent; border-color: var(--line-2); color: #dce8fb!important; box-shadow: none; }
.button:hover, .nav-cta:hover { transform: translateY(-1px); }
.menu-button { display: none; min-height: 44px; border: 1px solid var(--line); border-radius: 999px; padding: .62rem .85rem; color: #fff; background: rgba(255,255,255,.06); font-weight: 850; }
.mobile-nav { display: none; max-width: 1180px; margin: 0 auto; padding: 0 24px 18px; }
.mobile-nav.open { display: grid; gap: 8px; }
.mobile-nav a { padding: .78rem .9rem; border: 1px solid rgba(255,255,255,.06); border-radius: 16px; background: rgba(255,255,255,.035); }
.mobile-nav .nav-cta { width: 100%; margin-top: 4px; }

.hero, .page-hero { position: relative; border-bottom: 1px solid rgba(38,54,78,.74); }
.hero-inner, .section, .footer-grid, .footer-bottom { max-width: 1180px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.hero-inner { min-height: 650px; padding-top: 84px; padding-bottom: 84px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); gap: 42px; align-items: center; }
.hero-copy { min-width: 0; }
.eyebrow, .kicker, .pill { font: 900 .76rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-2); }
.copy-mobile { display: none; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 18px 0; font-size: clamp(3.1rem, 7.6vw, 6rem); line-height: .88; letter-spacing: -.075em; }
h2 { margin: 0 0 14px; font-size: clamp(2rem, 3.8vw, 3.35rem); line-height: .96; letter-spacing: -.06em; }
h3 { margin: 12px 0 10px; font-size: clamp(1.22rem, 2vw, 1.55rem); line-height: 1.06; letter-spacing: -.035em; }
p { color: var(--muted); margin: 0 0 1rem; }
.lead, .page-hero p { font-size: clamp(1.05rem, 2.2vw, 1.34rem); max-width: 700px; color: #b8c5d8; }
.role-target { max-width: 720px; color: #d7e3f5; font-size: 1rem; }
.cred-strip { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; max-width: 760px; }
.cred-strip li { border: 1px solid rgba(128,183,255,.32); border-radius: 999px; padding: .48rem .72rem; background: rgba(76,145,255,.1); color: #dce8fb; font-weight: 800; font-size: .9rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.terminal-card, .receipt-ledger, .operator-note, .cta-panel, .card, .case-file { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(17,24,38,.96), rgba(10,15,24,.96)); border-radius: var(--radius); box-shadow: var(--shadow); }
.terminal-card { overflow: hidden; transform: rotate(.6deg); border-color: rgba(64,86,118,.78); background: linear-gradient(180deg, rgba(18,27,42,.96), rgba(8,13,22,.98)); box-shadow: 0 22px 58px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255,255,255,.045); }
.terminal-bar { height: 43px; border-bottom: 1px solid rgba(64,86,118,.62); display: flex; gap: 8px; align-items: center; padding: 0 22px; background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018)); }
.terminal-bar span { width: 10px; height: 10px; border-radius: 50%; background: #5d6e87; opacity: .82; }
.terminal-body { padding: 26px 28px 28px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: clamp(.9rem, 1.15vw, .98rem); line-height: 1.52; font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; display: grid; gap: 15px; color: #cbd6e7; }
.terminal-row { display: grid; align-items: start; min-width: 0; }
.terminal-command { grid-template-columns: 4.2rem minmax(0, 1fr); column-gap: .9rem; }
.terminal-status { grid-template-columns: 1.25rem minmax(0, 1fr); column-gap: .65rem; }
.terminal-label { color: var(--blue-2); font-weight: 820; }
.terminal-value { color: #d8e3f3; font-weight: 560; }
.terminal-symbol { font-weight: 820; }
.terminal-message { font-weight: 680; }
.terminal-value, .terminal-message { min-width: 0; white-space: nowrap; overflow-wrap: normal; }
.terminal-status.ok { color: var(--green); }
.terminal-status.warn { color: var(--warn); }

.section { padding-top: 84px; padding-bottom: 84px; }
.page-hero .section { padding-top: 76px; padding-bottom: 70px; }
.hero-narrow { max-width: 980px; }
.section-head { display: flex; justify-content: space-between; gap: 28px; align-items: end; margin-bottom: 28px; }
.section-head.compact { display: block; max-width: 820px; }
.section-lede { max-width: 660px; }
.grid { display: grid; gap: 18px; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { padding: 26px; min-width: 0; }
.card p:last-child { margin-bottom: 0; }
.diagnostic-card { min-height: 250px; }
.step { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 15px; background: rgba(76,145,255,.14); color: var(--blue-2); font-weight: 950; }
.split-section { display: grid; grid-template-columns: minmax(0, .88fr) minmax(320px, 1.12fr); gap: 34px; align-items: start; }
.receipt-ledger { overflow: hidden; }
.ledger-row { display: grid; grid-template-columns: .75fr 1.1fr .8fr; gap: 14px; padding: 18px 20px; border-top: 1px solid var(--line); align-items: center; }
.ledger-row:first-child { border-top: 0; }
.ledger-head { background: #e9f3ff; color: #07111f; font-weight: 900; }
.ledger-row strong { color: #fff; }
.ledger-row em { color: var(--blue-2); font-style: normal; }
.stacked-cards { display: grid; gap: 16px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: item; }
.timeline li { border: 1px solid var(--line); background: rgba(255,255,255,.04); border-radius: 22px; padding: 18px 20px; display: grid; gap: 4px; }
.timeline strong { color: #fff; }
.timeline span { color: var(--muted); }
.cta-panel { padding: clamp(28px, 5vw, 52px); background: linear-gradient(135deg, rgba(76,145,255,.22), rgba(17,24,38,.96) 50%, rgba(125,226,184,.12)); }
.final-cta { padding-top: 40px; }

.case-file-list { display: grid; gap: 18px; }
.case-file { display: grid; grid-template-columns: 76px 1fr; gap: 22px; padding: 28px; }
.case-index { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 20px; background: #e9f3ff; color: #07111f; font-weight: 950; }
.pill { display: inline-flex; width: fit-content; padding: .48rem .7rem; border: 1px solid rgba(128,183,255,.36); border-radius: 999px; background: rgba(76,145,255,.1); letter-spacing: .08em; }
.impact-list { margin: .9rem 0 0; padding-left: 1.1rem; color: #cbd6e7; }
.impact-list li { margin: .38rem 0; }
.detail-button, .detail-link { display: inline-flex; align-items: center; justify-content: center; margin-top: 1rem; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255,255,255,.04); color: #dce8fb; font-weight: 850; padding: .68rem .9rem; min-height: 44px; cursor: pointer; text-decoration: none; }
.detail-button:hover, .detail-link:hover { border-color: var(--blue-2); color: #fff; }
.service-grid, .engagement-grid { align-items: start; }
.service-card, .engagement-card { display: flex; flex-direction: column; align-items: flex-start; }
.service-card h3, .engagement-card h3 { max-width: 16rem; }
.ways-to-work { border-top: 1px solid rgba(38,54,78,.42); border-bottom: 1px solid rgba(38,54,78,.42); }
.engagement-card { background: linear-gradient(180deg, rgba(18,29,45,.98), rgba(10,15,24,.96)); }
.best-for { margin-top: .35rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.08); }
.best-for p { margin: .45rem 0 0; color: #cbd6e7; }
.process-list li { background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.025)); }
.site-dialog { width: min(92vw, 680px); border: 0; border-radius: 28px; padding: 0; background: transparent; color: var(--ink); }
.site-dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(8px); }
.dialog-card { position: relative; background: #0d1420; border: 1px solid var(--line-2); border-radius: 28px; padding: 30px; box-shadow: var(--shadow); }
.dialog-card h2 { margin-right: 42px; }
.dialog-next { padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.04); color: #cbd6e7; }
.dialog-close { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.06); color: #fff; font-size: 1.45rem; line-height: 1; cursor: pointer; }
.about-hero { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 34px; align-items: center; }
.operator-note { padding: 28px; transform: rotate(1deg); }
.profile-note { display: grid; grid-template-columns: 140px 1fr; gap: 22px; align-items: center; transform: none; }
.profile-note img { width: 140px; height: 140px; object-fit: cover; border-radius: 28px; border: 1px solid var(--line-2); margin: 0; }
.profile-note h3 { margin-top: 0; }
.about-profile-note { transform: none; display: grid; gap: 20px; align-self: center; max-width: 420px; }
.about-profile-note img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; border-radius: 24px; border: 1px solid var(--line-2); margin: 0; background: #101826; }
.about-profile-note h2 { font-size: clamp(1.55rem, 2.4vw, 2rem); line-height: 1.02; margin-bottom: 10px; }
.about-profile-note p:last-child { margin-bottom: 0; }
.about-page .page-hero h1 { font-size: clamp(2.9rem, 4.5vw, 4.1rem); line-height: .94; }
.about-working-style h2 { font-size: clamp(1.8rem, 2.6vw, 2.35rem); line-height: 1.02; }
.about-page main > .section { padding-top: 68px; padding-bottom: 68px; }
.about-page .page-hero .section { padding-top: 70px; padding-bottom: 64px; }
.about-page .about-experience,
.about-page .about-good-fit,
.about-page .about-direct-work { padding-top: 66px; padding-bottom: 66px; }
.about-page .final-cta { padding-top: 30px; padding-bottom: 70px; }
.about-page .card p,
.about-page .section-lede,
.about-page .page-hero p,
.about-page .cta-panel p { color: #b8c5d8; }
.working-principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.working-principles .card, .compact-card-grid .card { padding: 22px; }
.about-project-grid .project-card { min-height: 100%; }
.about-project-grid .pill { margin-bottom: 4px; }
.avatar-card { width: 72px; height: 72px; border-radius: 24px; display: grid; place-items: center; background: #e9f3ff; color: #07111f; font-size: 1.6rem; font-weight: 950; margin-bottom: 22px; }
.contact-card h3 { overflow-wrap: anywhere; }

.blog-feature { padding-bottom: 34px; }
.blog-hero .section { padding-top: 58px; padding-bottom: 56px; }
.blog-hero h1 { max-width: 840px; font-size: clamp(2.75rem, 6.2vw, 4.7rem); overflow-wrap: normal; word-break: normal; }
.blog-hero p { max-width: 780px; }
.topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.topic-card { text-decoration: none; color: inherit; }
.topic-card h3, .featured-guide h3, .post-card h3, .article-header h1 { overflow-wrap: normal; word-break: normal; }
.featured-guide { display: flex; flex-direction: column; text-decoration: none; color: inherit; min-height: 100%; }
.featured-guide .card-link { margin-top: auto; width: fit-content; }
.feature-reason { margin-top: .2rem; padding-top: .95rem; border-top: 1px solid rgba(255,255,255,.08); color: #cbd6e7; font-size: .94rem; }
.topic-sections { margin-top: 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.topic-index { border: 1px solid var(--line); border-radius: 24px; background: rgba(17,24,38,.66); padding: 22px; min-width: 0; }
.topic-index h3 { margin-top: 0; }
.topic-index ul { margin: 14px 0 0; padding-left: 1.1rem; color: #cbd6e7; }
.topic-index li { margin: .45rem 0; }
.topic-index a { color: #e6eefb; font-weight: 780; text-decoration-color: rgba(128,183,255,.45); }
.topic-index time { color: #8190a8; font-size: .86rem; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.filter-button { min-width: 44px; min-height: 44px; border: 1px solid var(--line-2); border-radius: 999px; padding: .62rem .85rem; background: rgba(255,255,255,.045); color: #dce8fb; font-weight: 850; cursor: pointer; }
.filter-button[aria-pressed="true"], .filter-button:hover, .filter-button:focus-visible { background: rgba(35,102,216,.38); color: #fff; border-color: var(--blue-2); }
.blog-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.post-card { display: grid; grid-template-columns: 180px 1fr; gap: 18px; border: 1px solid var(--line); border-radius: 24px; padding: 16px; background: rgba(17,24,38,.82); text-decoration: none; color: inherit; min-width: 0; }
.post-card:hover, .post-card:focus-visible, .card:hover, .card:focus-visible, .case-file:hover, .case-file:focus-visible { border-color: var(--line-2); }
.project-card { display: flex; flex-direction: column; align-items: flex-start; }
.project-card .card-link { margin-top: auto; }
.card-link { display: inline-flex; align-items: center; gap: .35rem; color: var(--blue-2); font-weight: 900; text-decoration: none; border-bottom: 1px solid rgba(128,183,255,.55); padding-bottom: .12rem; }
.card-link::after { content: "→"; transition: transform .18s ease; }
.card-link:hover, .card-link:focus-visible { color: #f7fbff; border-bottom-color: #f7fbff; }
.card-link:hover::after, .card-link:focus-visible::after { transform: translateX(3px); }
.project-card:focus-within, .project-index-card:focus-within { border-color: var(--line-2); box-shadow: var(--shadow), 0 0 0 3px rgba(128,183,255,.16); }
.project-index-card h3 { margin-top: .55rem; }
.visual-disclaimer, figure figcaption { color: var(--muted); font-size: .9rem; line-height: 1.45; margin: 14px 0 0; }
.case-nav { padding-top: 36px; padding-bottom: 36px; }
.case-nav-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.case-nav-card { border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(180deg, rgba(17,24,38,.96), rgba(10,15,24,.96)); box-shadow: var(--shadow); color: inherit; text-decoration: none; padding: 22px; min-width: 0; }
.case-nav-card strong { display: block; margin-top: 8px; color: #f7fbff; font-size: 1.05rem; line-height: 1.2; }
.case-nav-card:hover, .case-nav-card:focus-visible { border-color: var(--line-2); transform: translateY(-1px); }
.case-nav-card.cta-card { background: linear-gradient(135deg, rgba(35,102,216,.28), rgba(18,27,42,.96)); }
.post-card img { width: 180px; height: 120px; object-fit: cover; border-radius: 18px; background: #101826; }
.post-card h2, .post-card h3 { font-size: 1.22rem; letter-spacing: -.035em; line-height: 1.08; margin: 10px 0 8px; }
.post-card p { font-size: .94rem; }
.post-meta { display: block; color: #7f8ca3; font-size: .88rem; margin-top: .35rem; }
.article-route { text-decoration: none; color: inherit; }

.article-shell { max-width: 920px; margin: 0 auto; padding: 70px 24px; }
.article-page { max-width: 980px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 24px; color: #93a4bb; font-size: .92rem; }
.breadcrumbs a { color: #cbd6e7; text-decoration-color: rgba(128,183,255,.45); }
.article-header { max-width: 820px; }
.article-shell h1 { font-size: clamp(2.35rem, 5.8vw, 4.2rem); line-height: .96; }
.article-intro { color: #d3dfef; font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 760px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: #9fb0c6; margin-top: 12px; }
.article-featured-image { margin: 34px 0; }
.article-featured-image img { width: 100%; max-height: 460px; object-fit: cover; border: 1px solid var(--line); box-shadow: var(--shadow); }
.post-content { max-width: 780px; color: #dce8fb; font-size: 1.07rem; line-height: 1.78; }
.post-content h2 { font-size: clamp(1.7rem, 3.5vw, 2.35rem); margin-top: 2.35rem; overflow-wrap: normal; word-break: normal; }
.post-content h3 { margin-top: 1.8rem; overflow-wrap: normal; word-break: normal; }
.post-content p, .post-content li { color: #bdc9dc; }
.post-content a { color: var(--blue-2); font-weight: 780; text-decoration-thickness: .08em; text-underline-offset: .18em; }
.post-content figure { margin: 2rem 0; }
.post-content blockquote { margin: 2rem 0; padding: 1rem 1.2rem; border-left: 4px solid var(--blue-2); background: rgba(255,255,255,.045); border-radius: 0 18px 18px 0; color: #dce8fb; }
.post-content pre, .code-scroll { max-width: 100%; overflow-x: auto; padding: 1rem; border: 1px solid var(--line); border-radius: 18px; background: #090f18; color: #e6eefb; }
.post-content code { font-size: .94em; background: rgba(255,255,255,.07); border-radius: 7px; padding: .08rem .24rem; }
.post-content pre code { background: transparent; padding: 0; }
.table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 18px; }
.article-table { border-collapse: collapse; width: 100%; min-width: 560px; }
.article-table th, .article-table td { border-bottom: 1px solid rgba(255,255,255,.1); padding: .75rem; text-align: left; vertical-align: top; }
.article-table th { color: #fff; background: rgba(255,255,255,.055); }
.related-articles { margin-top: 54px; }
.article-cta { margin-top: 52px; }
.post-nav { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }

.site-footer { border-top: 1px solid var(--line); background: rgba(5,8,13,.74); }
.footer-grid { padding-top: 48px; padding-bottom: 34px; display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 28px; }
.footer-grid h2 { font-size: 1rem; letter-spacing: 0; margin: 0 0 12px; }
.footer-grid a { display: block; text-decoration: none; color: #c0ccdd; margin: 8px 0; }
.footer-brand { display: inline-flex!important; margin: 0 0 16px!important; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px; padding-bottom: 22px; display: flex; justify-content: space-between; gap: 16px; color: #7f8ca3; font-size: .9rem; }

@media (min-width: 981px) {
  .hero-home .hero-inner { min-height: 610px; padding-top: 74px; padding-bottom: 74px; grid-template-columns: minmax(0, 1.36fr) minmax(320px, .64fr); gap: 38px; }
  .hero-home h1 { font-size: clamp(4.2rem, 5.8vw, 4.85rem); line-height: .9; letter-spacing: -.072em; }
  .hero-home .lead { font-size: clamp(1.05rem, 1.7vw, 1.22rem); max-width: 680px; }
  .hero-home .role-target { max-width: 660px; }
  .hero-home .cta-row { margin-top: 24px; }
  .hero-home .terminal-card { align-self: center; transform: translateY(-14px); }
  .hero-home .terminal-body { padding: 25px 28px 27px; font-size: clamp(.9rem, 1.05vw, .96rem); gap: 15px; }
  .section { padding-top: 78px; padding-bottom: 78px; }
  .section-head { margin-bottom: 24px; }
  .split-section { grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr); }
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .menu-button { display: inline-flex; }
  .hero-inner, .split-section, .about-hero { grid-template-columns: 1fr; }
  .hero-inner { min-height: auto; padding-top: 60px; padding-bottom: 64px; }
  .terminal-card, .operator-note { transform: none; }
  .working-principles { grid-template-columns: 1fr; }
  .grid.four, .grid.three, .blog-list, .topic-grid, .topic-sections { grid-template-columns: 1fr; }
  .case-nav-grid { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .hero-inner { gap: 30px; padding-top: 58px; padding-bottom: 72px; }
  h1, h2 { text-wrap: balance; }
  h1 { font-size: clamp(3rem, 6.4vw, 3.75rem); line-height: .94; letter-spacing: -.065em; }
  h2 { font-size: clamp(2.3rem, 5.2vw, 2.95rem); line-height: .98; }
  .section { padding-top: 74px; padding-bottom: 74px; }
  .section-head { margin-bottom: 22px; }
  .card { padding: 24px; }
  .terminal-body { padding: 24px; }
}
@media (max-width: 640px) {
  .copy-desktop { display: none; }
  .copy-mobile { display: inline; }
  .nav-shell { min-height: 64px; padding: 0 18px; gap: 12px; }
  .brand { gap: .62rem; }
  .brand-mark { width: 38px; height: 38px; flex-basis: 38px; border-radius: 13px; }
  .brand strong { white-space: nowrap; font-size: .98rem; }
  .brand small { display: none; }
  .menu-button { flex: 0 0 auto; padding: .58rem .82rem; }
  .mobile-nav { padding: 0 18px 16px; }
  .mobile-nav.open { gap: 7px; }
  .section, .hero-inner, .footer-grid, .footer-bottom { padding-left: 20px; padding-right: 20px; }
  .section { padding-top: 68px; padding-bottom: 68px; }
  .page-hero .section { padding-top: 44px; padding-bottom: 44px; }
  .about-page main > .section { padding-top: 58px; padding-bottom: 58px; }
  .about-page .page-hero .section { padding-top: 42px; padding-bottom: 42px; }
  .about-page .about-experience,
  .about-page .about-good-fit,
  .about-page .about-direct-work { padding-top: 56px; padding-bottom: 56px; }
  .about-page .final-cta { padding-top: 28px; padding-bottom: 58px; }
  .hero-inner { padding-top: 52px; padding-bottom: 70px; gap: 24px; align-items: start; }
  .eyebrow, .kicker, .pill { font-size: clamp(.64rem, 2.9vw, .69rem); letter-spacing: .08em; line-height: 1.12; }
  h1, h2, h3 { overflow-wrap: normal; word-break: normal; text-wrap: balance; }
  p { text-wrap: pretty; }
  h1 { margin: 14px 0 14px; font-size: clamp(2.2rem, 11vw, 2.75rem); line-height: .98; letter-spacing: -.058em; }
  h2 { margin-bottom: 10px; font-size: clamp(1.75rem, 8.4vw, 2.13rem); line-height: 1.04; letter-spacing: -.052em; }
  h3 { margin: 9px 0 8px; font-size: clamp(1.19rem, 5.2vw, 1.32rem); line-height: 1.12; }
  p { font-size: 1rem; line-height: 1.58; }
  .lead, .page-hero p { font-size: 1.05rem; }
  .services-hero h1 { font-size: clamp(2rem, 9.4vw, 2.35rem); line-height: 1; max-width: none; }
  .about-page .page-hero h1 { font-size: clamp(1.78rem, 8vw, 1.9rem); line-height: 1.02; max-width: 19rem; }
  .blog-hero h1 { font-size: clamp(2.08rem, 9.4vw, 2.55rem); line-height: 1.02; max-width: 19rem; letter-spacing: -.055em; }
  .article-shell { padding: 46px 20px 58px; }
  .article-shell h1 { font-size: clamp(2rem, 9.4vw, 2.55rem); line-height: 1.04; letter-spacing: -.055em; }
  .article-intro, .post-content { font-size: 1rem; line-height: 1.68; }
  .article-featured-image { margin: 24px 0; }
  .article-featured-image img { max-height: 260px; }
  .filter-bar { gap: 8px; }
  .filter-button { width: auto; font-size: .88rem; padding: .55rem .72rem; }
  .topic-index { padding: 18px; border-radius: 20px; }
  .about-page main h2 { font-size: clamp(1.48rem, 6.4vw, 1.82rem); line-height: 1.08; text-wrap: pretty; }
  .about-working-style h2 { font-size: clamp(1.38rem, 5.8vw, 1.62rem); }
  .services-page main h2 { font-size: clamp(1.58rem, 7vw, 1.9rem); line-height: 1.06; text-wrap: pretty; }
  .role-target { font-size: 1rem; margin-bottom: 0; }
  .cta-row { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 22px; }
  .button, .nav-cta { width: 100%; min-height: 48px; padding: .78rem 1rem; font-size: .95rem; }
  .cred-strip { margin-top: 16px; gap: 8px; }
  .cred-strip li { padding: .38rem .58rem; font-size: .78rem; line-height: 1.15; }
  .terminal-card { transform: none; border-radius: 22px; }
  .terminal-bar { height: 36px; padding: 0 18px; gap: 7px; }
  .terminal-bar span { width: 9px; height: 9px; }
  .terminal-body { padding: 20px 21px 22px; font-size: clamp(.79rem, 3.35vw, .86rem); line-height: 1.5; gap: 13px; }
  .terminal-command { grid-template-columns: 3.7rem minmax(0, 1fr); column-gap: .65rem; }
  .terminal-status { grid-template-columns: 1.08rem minmax(0, 1fr); column-gap: .55rem; }
  .section-head { margin-bottom: 18px; }
  .section-head .section-lede { margin-top: 4px; }
  .section-lede { margin-bottom: .72rem; }
  .split-section { gap: 18px; }
  .grid, .stacked-cards { gap: 15px; }
  .card, .case-file, .dialog-card { padding: 21px; border-radius: 22px; }
  .diagnostic-card { min-height: auto; }
  #proof .card p + p { margin-top: 13px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); }
  .step { width: 38px; height: 38px; border-radius: 13px; font-size: .9rem; }
  .cta-panel { padding: 24px; border-radius: 22px; }
  .final-cta { padding-top: 34px; }
  .profile-note { grid-template-columns: 1fr; }
  .profile-note img { width: 96px; height: 96px; border-radius: 22px; }
  .about-profile-note img { aspect-ratio: 16 / 11; max-height: 220px; }
  .working-principles .card, .compact-card-grid .card { padding: 21px; }
  .case-file { grid-template-columns: 1fr; }
  .case-nav-card { padding: 20px; border-radius: 22px; }
  .ledger-row { grid-template-columns: 1fr; }
  .post-card { grid-template-columns: 1fr; }
  .case-nav-grid { grid-template-columns: 1fr; }
  .post-card img { width: 100%; height: auto; max-height: 220px; }
  .footer-bottom { display: grid; }
}
@media (max-width: 340px) {
  .section, .hero-inner, .footer-grid, .footer-bottom { padding-left: 18px; padding-right: 18px; }
  h2 { font-size: 1.65rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto!important; transition: none!important; }
  .button:hover { transform: none; }
}

/* Guided user provisioning case study */
:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 3px; }
.case-study-page { background: linear-gradient(180deg, rgba(35,102,216,.06), transparent 22rem); }
.case-study-hero { border-bottom: 1px solid rgba(38,54,78,.74); }
.case-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, 390px); gap: 34px; align-items: start; padding-top: 76px; padding-bottom: 70px; }
.case-study-hero h1 { font-size: clamp(2.75rem, 6vw, 5.35rem); }
.snapshot-card, .journey-card, .guardrail-panel, .mock-console, .checklist-card, .lesson-card { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(17,24,38,.96), rgba(10,15,24,.96)); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; min-width: 0; }
.snapshot-card dl { margin: 18px 0 0; display: grid; gap: 14px; }
.snapshot-card dl div { padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.snapshot-card dt { color: var(--blue-2); font-weight: 900; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.snapshot-card dd { margin: 4px 0 0; color: #e6eefb; font-weight: 750; }
.case-section { padding-top: 68px; padding-bottom: 68px; }
.reading-column { max-width: 820px; }
.reading-column p { font-size: 1.05rem; }
.case-list { font-size: 1.02rem; }
.evidence-grid .card, .guardrail-grid .card { min-height: 210px; }
.mini-steps { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 10px; }
.mini-steps li { counter-increment: step; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: start; color: #cbd6e7; }
.mini-steps li::before { content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 11px; background: rgba(128,183,255,.15); color: var(--blue-2); font-weight: 950; font-size: .84rem; }
.guardrail-panel h3, .mock-console h3, .checklist-card h3 { margin-top: 10px; }
.state-grid { display: grid; gap: 10px; margin-top: 18px; }
.state-card { border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 14px; background: rgba(255,255,255,.035); }
.state-card strong { display: block; color: #fff; }
.state-card span { display: block; color: #cbd6e7; font-size: .94rem; }
.state-card.ready, .status-label.ready { border-color: rgba(125,226,184,.58); background: rgba(125,226,184,.12); }
.state-card.blocked, .status-label.blocked { border-color: rgba(255,211,107,.6); background: rgba(255,211,107,.12); }
.state-card.waiting, .status-label.waiting { border-color: rgba(128,183,255,.62); background: rgba(128,183,255,.12); }
.state-card.complete, .status-label.complete { border-color: rgba(220,232,251,.4); background: rgba(220,232,251,.09); }
.status-label { display: inline-flex; width: fit-content; border: 1px solid var(--line-2); border-radius: 999px; padding: .38rem .62rem; color: #eef4ff; font: 900 .73rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.workflow-diagram { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; align-items: stretch; margin-top: 26px; }
.flow-node { min-width: 0; border: 1px solid var(--line); border-radius: 22px; padding: 16px; background: rgba(255,255,255,.04); display: grid; gap: 7px; }
.flow-node.confirmed { border-color: rgba(125,226,184,.34); }
.flow-node.separate { border-color: rgba(128,183,255,.34); }
.flow-node span { color: var(--blue-2); font: 900 .68rem/1.1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-transform: uppercase; letter-spacing: .07em; }
.flow-node strong { color: #fff; line-height: 1.15; }
.flow-node em { color: #b8c5d8; font-style: normal; font-size: .9rem; }
.flow-arrow { display: none; color: var(--blue-2); align-self: center; justify-self: center; font-weight: 950; }
.console-window { margin-top: 18px; border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden; background: #0b111b; }
.console-topbar { min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.045); }
.console-topbar span { width: 9px; height: 9px; border-radius: 50%; background: #687792; }
.console-topbar strong { margin-left: 8px; color: #e6eefb; font-size: .93rem; }
.console-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.console-tabs span { padding: 12px 8px; background: #111b2a; color: #cbd6e7; font-weight: 850; font-size: .88rem; text-align: center; }
.console-tabs .active { background: rgba(35,102,216,.38); color: #fff; }
.console-body { padding: 18px; display: grid; gap: 12px; }
.console-body label { color: var(--blue-2); font-weight: 900; }
.mock-input, .mock-check { border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 12px; background: rgba(255,255,255,.04); color: #e6eefb; }
.mock-check.ok { border-color: rgba(125,226,184,.38); color: #d6ffee; }
.console-body button { min-height: 44px; border: 1px solid #6ba5ff; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 900; }
.comparison-journey { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.verification-list { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.verification-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; color: #dce8fb; align-items: start; }
.verification-list span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; background: rgba(125,226,184,.14); color: var(--green); font-weight: 950; }

@media (max-width: 980px) {
  .case-hero-grid { grid-template-columns: 1fr; }
  .comparison-journey { grid-template-columns: 1fr; }
  .workflow-diagram { grid-template-columns: 1fr; }
  .flow-arrow { display: grid; transform: rotate(90deg); }
}
@media (min-width: 641px) and (max-width: 900px) {
  .case-study-hero h1 { font-size: clamp(3rem, 6.4vw, 3.75rem); line-height: .94; }
}
@media (max-width: 640px) {
  .snapshot-card, .journey-card, .guardrail-panel, .mock-console, .checklist-card, .lesson-card { padding: 21px; border-radius: 22px; }
  .case-hero-grid { padding-top: 44px; padding-bottom: 44px; }
  .case-study-hero h1 { font-size: clamp(2.25rem, 10.6vw, 2.85rem); line-height: .98; letter-spacing: -.058em; }
  .case-section { padding-top: 56px; padding-bottom: 56px; }
  .evidence-grid .card, .guardrail-grid .card { min-height: auto; }
  .workflow-diagram { gap: 8px; margin-top: 20px; }
  .flow-node { border-radius: 18px; padding: 14px; gap: 5px; }
  .flow-node span { font-size: .66rem; }
  .console-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .console-tabs span { font-size: .86rem; padding: 11px 7px; }
  .mock-input, .mock-check { font-size: .96rem; overflow-wrap: anywhere; }
  .status-label { font-size: .7rem; }
  .state-card { padding: 13px; }
}
@media (max-width: 340px) {
  .case-study-hero h1 { font-size: 2.12rem; }
}


/* Pipeline target rollups case study */
.case-study-page .case-hero .section { max-width: 1080px; }
.case-study-page .case-hero h1 { max-width: 920px; font-size: clamp(2.75rem, 6.4vw, 5.4rem); line-height: .92; }
.case-study-page .case-hero p { max-width: 820px; }
.case-study-page main { background: transparent; }
.case-snapshot { margin-top: 30px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.case-snapshot div { min-width: 0; border: 1px solid var(--line); border-radius: 20px; padding: 16px; background: rgba(255,255,255,.035); }
.case-snapshot span { display: block; color: var(--blue-2); font: 850 .7rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.case-snapshot strong { display: block; color: #eef4ff; font-size: .96rem; line-height: 1.24; }
.case-section { padding-top: 70px; padding-bottom: 70px; }
.wide-section { padding-top: 62px; padding-bottom: 62px; }
.narrative-column { max-width: 760px; }
.narrative-column p { font-size: 1.06rem; color: #c2cede; }
.compact-column { max-width: 650px; }
.case-two-column { display: grid; grid-template-columns: minmax(0, .96fr) minmax(320px, .86fr); gap: 28px; align-items: start; }
.case-two-column .card h3, .outcome-card h3 { margin-top: 10px; }
.evidence-card { background: linear-gradient(180deg, rgba(18,29,45,.98), rgba(10,15,24,.98)); }
.visual-card { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(17,24,38,.96), rgba(8,13,22,.98)); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(14px, 2.8vw, 26px); overflow: hidden; }
.visual-card svg { display: block; width: 100%; height: auto; min-width: 0; }
.visual-card figcaption { margin-top: 14px; color: #b7c5d9; font-size: .98rem; max-width: 900px; }
.inspection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.change-list { display: grid; gap: 18px; }
.verification-panel { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.verification-panel > div { border: 1px solid var(--line); border-radius: 24px; padding: 20px; background: rgba(255,255,255,.04); min-width: 0; }
.status-dot { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: rgba(125,226,184,.12); border: 1px solid rgba(125,226,184,.45); color: var(--green); font-weight: 950; margin-bottom: 14px; }
.verification-panel strong { display: block; color: #fff; line-height: 1.15; margin-bottom: 8px; }
.verification-panel p { margin: 0; font-size: .94rem; }
.outcome-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .68fr); gap: 28px; align-items: start; }
.rollout-checklist { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(17,24,38,.96), rgba(10,15,24,.96)); box-shadow: var(--shadow); overflow: hidden; }
.check-row { display: grid; grid-template-columns: 72px 1fr; gap: 18px; padding: 20px 24px; border-top: 1px solid rgba(255,255,255,.08); align-items: start; }
.check-row:first-child { border-top: 0; }
.check-row > span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: #e9f3ff; color: #07111f; font-weight: 950; }
.check-row strong { color: #fff; font-size: 1.05rem; }
.check-row p { margin: 4px 0 0; }
.related-grid .card { min-height: 185px; }
.capability-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.capability-tags span { border: 1px solid rgba(128,183,255,.32); border-radius: 999px; padding: .55rem .75rem; background: rgba(76,145,255,.1); color: #dce8fb; font-weight: 850; font-size: .92rem; }
@media (max-width: 980px) {
  .case-snapshot, .inspection-grid, .verification-panel, .outcome-grid, .case-two-column { grid-template-columns: 1fr; }
  .reverse-on-mobile .evidence-card { order: 2; }
  .reverse-on-mobile .narrative-column { order: 1; }
  .case-study-page .case-hero h1 { max-width: 760px; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .case-snapshot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inspection-grid, .verification-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .visual-card { overflow-x: auto; }
  .visual-card svg { min-width: 700px; }
}
@media (max-width: 640px) {
  .case-study-page .case-hero h1 { font-size: clamp(2.02rem, 10vw, 2.42rem); line-height: 1.02; letter-spacing: -.055em; max-width: 18rem; }
  .case-snapshot { gap: 10px; margin-top: 22px; }
  .case-snapshot div { padding: 14px; border-radius: 18px; }
  .case-snapshot strong { font-size: .92rem; }
  .case-section, .wide-section { padding-top: 54px; padding-bottom: 54px; }
  .narrative-column p { font-size: 1rem; }
  .visual-card { border-radius: 22px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 14px; }
  .visual-card svg { min-width: 680px; }
  .hierarchy-visual svg, .decision-visual svg { min-width: 620px; }
  .architecture-visual svg { min-width: 760px; }
  .visual-card figcaption { font-size: .92rem; }
  .check-row { grid-template-columns: 1fr; gap: 10px; padding: 18px; }
  .check-row > span { width: 42px; height: 42px; border-radius: 14px; }
  .verification-panel > div { border-radius: 20px; padding: 18px; }
  .capability-tags span { font-size: .86rem; }
}
@media (max-width: 340px) {
  .case-study-page .case-hero h1 { font-size: 1.92rem; max-width: 17rem; }
  .visual-card svg { min-width: 620px; }
}


.flow-visual { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: 32px; align-items: center; padding: clamp(18px, 3vw, 34px); position: relative; }
.flow-visual span, .tree-node { border: 1px solid var(--line-2); border-radius: 18px; background: rgba(9,16,27,.9); color: #eef4ff; min-height: 78px; display: grid; place-items: center; text-align: center; padding: 14px; font-weight: 850; line-height: 1.15; }
.flow-visual i { position: absolute; color: var(--blue-2); font-style: normal; font-size: 2rem; font-weight: 900; }
.flow-visual i:nth-of-type(1) { left: 19%; }
.flow-visual i:nth-of-type(2) { left: 38.5%; }
.flow-visual i:nth-of-type(3) { left: 58%; }
.flow-visual i:nth-of-type(4) { left: 77.5%; }
.decision-flow { grid-template-columns: repeat(4, minmax(120px, 1fr)); }
.decision-flow i:nth-of-type(1) { left: 23%; }
.decision-flow i:nth-of-type(2) { left: 48%; }
.decision-flow i:nth-of-type(3) { left: 73%; }
.decision-flow i:nth-of-type(4), .decision-flow i:nth-of-type(5), .decision-flow i:nth-of-type(6) { display: none; }
.tree-visual { padding: clamp(20px, 4vw, 42px); display: grid; gap: 26px; justify-items: center; }
.tree-split { width: min(100%, 660px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.tree-split.offices { width: min(100%, 820px); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tree-node { width: 100%; min-height: 68px; }
.tree-node.root { width: min(260px, 70%); border-color: var(--blue-2); }
.tree-node small { color: var(--blue-2); font-weight: 800; }
.tree-node.warn small { color: var(--warn); }
.tree-node.ok small { color: var(--green); }
@media (max-width: 900px) {
  .flow-visual, .decision-flow { grid-template-columns: 1fr; gap: 12px; }
  .flow-visual i { position: static; display: block; text-align: center; line-height: 1; }
  .decision-flow i:nth-of-type(4), .decision-flow i:nth-of-type(5), .decision-flow i:nth-of-type(6) { display: block; }
  .tree-split, .tree-split.offices { grid-template-columns: 1fr; width: 100%; }
}

/* Inactive-user cleanup dashboard case study */
:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 4px; }
.case-study-page { --case-reading: 820px; }
.case-hero-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(300px, 380px); gap: 34px; align-items: start; padding-top: 76px; padding-bottom: 70px; }
.case-study-hero h1 { max-width: 860px; font-size: clamp(2.45rem, 4.5vw, 3.9rem); line-height: .97; }
.case-hero-copy { min-width: 0; }
.snapshot-card, .dashboard-mockup, .case-study-page .flow-visual, .classification-card, .verification-panel { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(17,24,38,.96), rgba(10,15,24,.96)); border-radius: var(--radius); box-shadow: var(--shadow); }
.snapshot-card { padding: 26px; }
.snapshot-card h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.snapshot-list { margin: 20px 0 0; display: grid; gap: 12px; }
.snapshot-list div { display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.snapshot-list dt { color: var(--blue-2); font-weight: 900; }
.snapshot-list dd { margin: 0; color: var(--soft); }
.case-reading { max-width: var(--case-reading); }
.case-reading p, .case-reading li { font-size: 1.04rem; color: #c4d0e2; }
.case-reading h2 { max-width: 760px; }
.case-wide { max-width: 1240px; }
.dashboard-mockup { padding: clamp(18px, 3vw, 30px); overflow: hidden; }
.mockup-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.1); color: #dce8fb; font-weight: 900; }
.mockup-top span:last-child { color: var(--green); font-size: .92rem; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.metric-grid article { min-width: 0; padding: 18px; border: 1px solid rgba(128,183,255,.24); border-radius: 20px; background: rgba(76,145,255,.08); }
.metric-grid strong { display: block; color: #fff; line-height: 1.18; }
.metric-grid span { display: block; margin: 12px 0 4px; color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1; letter-spacing: -.06em; font-weight: 950; }
.metric-grid em { color: #aab8cd; font-style: normal; font-size: .92rem; }
.dashboard-mockup figcaption { margin-top: 16px; color: #9fb0c7; }
.case-study-page .flow-visual { display: block; padding: clamp(18px, 3vw, 28px); position: static; }
.flow-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.flow-steps li { position: relative; display: grid; gap: 10px; align-content: start; min-height: 132px; padding: 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: rgba(255,255,255,.04); }
.flow-steps li:not(:last-child)::after { content: "→"; position: absolute; right: -12px; top: 46%; color: var(--blue-2); font-weight: 950; z-index: 2; }
.flow-steps span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: rgba(128,183,255,.16); color: var(--blue-2); font-weight: 950; }
.flow-steps strong { color: #f4f8ff; font-size: .95rem; line-height: 1.18; }
.compact-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.compact-flow li { min-height: 112px; }
.compact-flow li:nth-child(4)::after { display: none; }
.case-split .card h3 { margin-top: 0; }
.classification-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.classification-card { padding: 24px; box-shadow: none; }
.classification-card h3 { margin-top: 12px; }
.status-label { display: inline-flex; border-radius: 999px; padding: .42rem .62rem; font-weight: 950; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.classification-card.safe .status-label { color: #07111f; background: var(--green); }
.classification-card.excluded .status-label { color: #07111f; background: var(--warn); }
.classification-card.blocked .status-label { color: #fff; background: var(--blue); }
.verification-panel { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; overflow: hidden; }
.verification-panel div { padding: 20px; border-right: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
.verification-panel strong { display: block; color: #fff; margin-bottom: 6px; }
.verification-panel span { color: #aab8cd; }
.case-lessons { display: grid; gap: 12px; padding-left: 1.1rem; }
.case-lessons li::marker { color: var(--blue-2); }
@media (max-width: 980px) {
  .case-hero-grid { grid-template-columns: 1fr; }
  .metric-grid, .classification-grid, .verification-panel { grid-template-columns: 1fr; }
  .flow-steps, .compact-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-steps li:not(:last-child)::after { display: none; }
}
@media (max-width: 640px) {
  .case-study-hero h1 { font-size: clamp(1.48rem, 7.2vw, 1.86rem); line-height: 1.06; letter-spacing: -.048em; max-width: none; }
  .case-reading p, .case-reading li { font-size: 1rem; }
  .snapshot-card, .dashboard-mockup, .case-study-page .flow-visual, .classification-card { border-radius: 22px; }
  .snapshot-list div { grid-template-columns: 1fr; gap: 2px; }
  .mockup-top { display: grid; }
  .metric-grid article { padding: 16px; }
  .metric-grid span { font-size: 2.25rem; }
  .flow-steps, .compact-flow { grid-template-columns: 1fr; }
  .flow-steps li { min-height: auto; }
}

body.case-study-page {
  background:
    radial-gradient(circle at 80% 0%, rgba(76, 145, 255, .18), transparent 34rem),
    linear-gradient(180deg, #070a0f 0%, #0a0f18 38%, #070a0f 100%);
  color: var(--ink);
}


/* Pipeline case-study final overrides */
body.case-study-page .flow-visual { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: 32px; align-items: center; padding: clamp(18px, 3vw, 34px); position: relative; margin-top: 0; }
body.case-study-page .decision-flow { grid-template-columns: repeat(4, minmax(120px, 1fr)); }
body.case-study-page .flow-visual span { border: 1px solid var(--line-2); border-radius: 18px; background: rgba(9,16,27,.9); color: #eef4ff; min-height: 78px; display: grid; place-items: center; text-align: center; padding: 14px; font-weight: 850; line-height: 1.15; }
body.case-study-page .flow-visual i { position: static; display: grid; place-items: center; color: var(--blue-2); font-style: normal; font-size: 1.7rem; font-weight: 900; }
body.case-study-page .tree-visual { padding: clamp(20px, 4vw, 42px); display: grid; gap: 26px; justify-items: center; }
body.case-study-page .tree-split { width: min(100%, 660px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
body.case-study-page .tree-split.offices { width: min(100%, 820px); grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.case-study-page .tree-node { border: 1px solid var(--line-2); border-radius: 18px; background: rgba(9,16,27,.9); color: #eef4ff; min-height: 68px; display: grid; place-items: center; text-align: center; padding: 14px; font-weight: 850; line-height: 1.15; width: 100%; }
body.case-study-page .tree-node.root { width: min(260px, 70%); border-color: var(--blue-2); }
body.case-study-page .tree-node small { color: var(--blue-2); font-weight: 800; }
body.case-study-page .tree-node.warn small { color: var(--warn); }
body.case-study-page .tree-node.ok small { color: var(--green); }
@media (max-width: 900px) {
  body.case-study-page .flow-visual, body.case-study-page .decision-flow { grid-template-columns: 1fr; gap: 12px; }
  body.case-study-page .tree-split, body.case-study-page .tree-split.offices { grid-template-columns: 1fr; width: 100%; }
}


/* Pipeline case-study mobile readability fixes */
body.case-study-page p, body.case-study-page li { font-size: 1rem; }
@media (max-width: 640px) {
  body.case-study-page .case-hero h1 { font-size: clamp(1.48rem, 6.8vw, 1.86rem) !important; line-height: 1.06 !important; letter-spacing: -.048em !important; max-width: none !important; }
}
@media (max-width: 340px) {
  body.case-study-page .case-hero h1 { font-size: 1.44rem !important; }
}
