:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --surface: #fff;
  --panel: rgba(255, 255, 255, .82);
  --line: rgba(15, 23, 42, .12);
  --line-strong: rgba(15, 23, 42, .2);
  --text: #0f172a;
  --muted: #475569;
  --blue: #2563eb;
  --indigo: #4f46e5;
  --violet: #7c3aed;
  --teal: #0f766e;
  --soft-blue: #eaf2ff;
  --soft-violet: #f1edff;
  --soft-teal: #e9f8f6;
  --danger: #9f2d24;
  --max: 1180px;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(15, 23, 42, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 7%, rgba(37, 99, 235, .09), transparent 29rem),
    radial-gradient(circle at 88% 16%, rgba(124, 58, 237, .07), transparent 34rem),
    linear-gradient(180deg, #fbfcff 0, var(--bg) 52%, #fff 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img, svg { display: block; max-width: 100%; }
address { font-style: normal; }
::selection { color: var(--text); background: #dbeafe; }

:focus-visible { outline: 3px solid #0f766e; outline-offset: 3px; }
.skip-link { position: fixed; z-index: 1000; top: -5rem; left: 1rem; padding: .75rem 1rem; border-radius: .7rem; color: white; background: var(--text); }
.skip-link:focus { top: 1rem; }
.noise { position: fixed; z-index: -1; inset: 0; pointer-events: none; opacity: .03; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E"); }
.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.narrow { max-width: 880px; }
.section { padding: clamp(4.4rem, 8vw, 7.5rem) 0; }
.section-compact { padding-top: 2rem; }
.surface { border-block: 1px solid rgba(15, 23, 42, .07); background: rgba(255, 255, 255, .65); }

.eyebrow { display: inline-flex; align-items: center; gap: .55rem; color: var(--blue); font-size: .78rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { width: 1.5rem; height: 1px; background: currentColor; content: ""; }
h1, h2, h3 { text-wrap: balance; }
h1 { margin: .75rem 0 1.25rem; font-size: clamp(3rem, 7vw, 6.9rem); line-height: .95; letter-spacing: -.065em; }
h2 { margin: .65rem 0 1rem; font-size: clamp(2rem, 4.3vw, 3.75rem); line-height: 1.04; letter-spacing: -.045em; }
h3 { margin: 0 0 .55rem; font-size: 1.18rem; line-height: 1.25; }
p { margin: 0 0 1rem; color: var(--muted); }
.lead { max-width: 760px; color: #334155; font-size: clamp(1.08rem, 2vw, 1.32rem); }
.section-title { max-width: 820px; }
.section-intro { max-width: 760px; font-size: 1.08rem; }
.text-link { color: #1d4ed8; font-weight: 750; text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .18em; }
.text-link:hover { color: var(--indigo); }
.note, .microcopy, .form-help { color: #64748b; font-size: .9rem; }

header { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid transparent; background: rgba(255, 255, 255, .78); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); transition: background .2s ease, border-color .2s ease, box-shadow .2s ease; }
header.scrolled { border-color: var(--line); background: rgba(255, 255, 255, .96); box-shadow: 0 8px 30px rgba(15, 23, 42, .05); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .75rem; white-space: nowrap; font-weight: 900; letter-spacing: -.035em; }
.brand-logo { width: 44px; height: 44px; flex: 0 0 44px; filter: drop-shadow(0 8px 18px rgba(37, 99, 235, .16)); }
.logo-frame { fill: #fff; stroke: var(--text); stroke-width: 2.1; }
.logo-face { fill: #eef4ff; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; }
.logo-horn { fill: none; stroke: var(--text); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.logo-eye { fill: none; stroke: var(--text); stroke-width: 2.1; stroke-linejoin: round; }
.logo-core { fill: var(--indigo); }
.logo-circuit { fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; }
.logo-node { fill: var(--teal); }
.logo-bars { fill: none; stroke: rgba(15, 23, 42, .42); stroke-width: 1.35; stroke-linecap: round; }
.brand-wordmark { font-size: 1.02rem; line-height: 1.05; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: .55rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 1.3rem; color: #334155; font-size: .92rem; }
.nav-links > a:not(.btn):hover { color: var(--blue); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: #fff; cursor: pointer; }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { display: block; width: 19px; height: 2px; margin: 4px auto; border-radius: 5px; background: currentColor; content: ""; transition: .2s ease; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 48px; max-width: 100%; padding: .78rem 1.12rem; border: 1px solid var(--line); border-radius: 14px; font-weight: 800; line-height: 1.25; text-align: center; white-space: normal; cursor: pointer; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { border-color: transparent; color: #fff; background: linear-gradient(135deg, var(--blue), var(--indigo)); box-shadow: 0 12px 30px rgba(37, 99, 235, .2); }
.btn-secondary { background: rgba(255, 255, 255, .8); }
.btn-secondary:hover { border-color: rgba(37, 99, 235, .35); background: rgba(37, 99, 235, .05); }

.home-hero { position: relative; overflow: hidden; padding: clamp(5.3rem, 9vw, 8.5rem) 0 clamp(4rem, 7vw, 6rem); }
.hero-grid, .page-hero-grid { display: grid; grid-template-columns: 1.16fr .84fr; gap: clamp(2rem, 5vw, 4.2rem); align-items: center; }
.home-hero h1 { max-width: 940px; font-size: clamp(3rem, 6.6vw, 6.5rem); }
.claim { max-width: 760px; color: var(--text); font-size: clamp(1.35rem, 2.5vw, 2.1rem); line-height: 1.25; letter-spacing: -.025em; }
.claim strong { color: var(--blue); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.7rem; }
.microcopy { margin-top: .8rem; }
.monster-card { position: relative; display: flex; min-height: 500px; flex-direction: column; overflow: hidden; padding: 1.3rem; border: 1px solid var(--line); border-radius: 32px; background: linear-gradient(180deg, rgba(255, 255, 255, .97), rgba(239, 246, 255, .86)); box-shadow: var(--shadow); container-type: inline-size; }
.monster-card::before { position: absolute; top: 12%; right: 7%; width: 250px; aspect-ratio: 1; border-radius: 50%; background: #60a5fa; opacity: .2; filter: blur(90px); content: ""; }
.monster-top { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .75rem; letter-spacing: .11em; text-transform: uppercase; }
.signal { display: inline-flex; align-items: center; gap: .42rem; }
.signal i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(15, 118, 110, .1); }
.time-saved { margin-top: 4.2rem; }
.time-saved strong { display: block; max-width: 100%; font-size: clamp(2.8rem, 14cqw, 6rem); line-height: .9; letter-spacing: -.065em; white-space: nowrap; }
.time-saved p { margin-top: .9rem; }
.flow { display: grid; gap: .6rem; margin-top: auto; padding-top: 2rem; }
.flow-row { display: flex; justify-content: space-between; gap: .75rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .88); box-shadow: 0 8px 22px rgba(15, 23, 42, .04); }
.flow-row strong { color: var(--blue); }

.breadcrumbs { padding-top: 1.2rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; color: #64748b; font-size: .88rem; }
.breadcrumbs li + li::before { margin-right: .4rem; color: #94a3b8; content: "/"; }
.breadcrumbs a:hover { color: var(--blue); }
.page-hero { padding: clamp(4rem, 8vw, 7rem) 0 clamp(4.5rem, 8vw, 7rem); }
.page-hero h1 { font-size: clamp(3rem, 6.2vw, 5.8rem); }
.definition-card { padding: clamp(1.5rem, 3vw, 2.2rem); border: 1px solid rgba(37, 99, 235, .18); border-radius: var(--radius); background: linear-gradient(145deg, var(--soft-blue), #fff 58%, var(--soft-violet)); box-shadow: var(--shadow); }
.definition-card > span { color: var(--blue); font-size: .78rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.definition-card p { margin: 1.5rem 0 0; color: var(--text); font-size: clamp(1.15rem, 2.1vw, 1.55rem); line-height: 1.45; letter-spacing: -.02em; }

.problem-grid, .principle-grid, .mini-grid, .service-grid, .case-fields { display: grid; gap: 1rem; margin-top: 2.3rem; }
.problem-grid { grid-template-columns: repeat(3, 1fr); }
.problem-grid article, .mini-card, .principle-grid article, .case-fields article { padding: 1.45rem; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.problem-grid p, .mini-card p, .principle-grid p, .case-fields p { margin: 0; }
.service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-card { display: flex; min-height: 315px; flex-direction: column; overflow: hidden; padding: 1.45rem; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.service-card:hover { transform: translateY(-5px); border-color: rgba(37, 99, 235, .28); box-shadow: 0 18px 45px rgba(15, 23, 42, .07); }
.service-card > span { color: var(--blue); font-size: .78rem; font-weight: 900; letter-spacing: .12em; }
.service-card h3 { margin-top: 1.4rem; font-size: 1.35rem; }
.service-card strong { margin-top: auto; padding-top: 1.2rem; color: #1d4ed8; font-size: .9rem; }
.service-card p { font-size: .94rem; }
.split, .two-column, .contact-layout { display: grid; grid-template-columns: .88fr 1.12fr; gap: clamp(2rem, 7vw, 6rem); align-items: start; }
.two-column { grid-template-columns: 1fr 1fr; }
.tag-list { display: flex; flex-wrap: wrap; gap: .7rem; }
.tag-list span { padding: .75rem 1rem; border: 1px solid rgba(37, 99, 235, .18); border-radius: 999px; color: #1e3a8a; background: var(--soft-blue); font-weight: 700; }
.check-list, .plain-list, .arrow-list, .number-list { margin: 0; padding: 0; list-style: none; }
.check-list { display: grid; gap: .75rem; }
.check-list li { position: relative; padding: 1rem 1rem 1rem 3rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: #334155; }
.check-list li::before { position: absolute; top: 1rem; left: 1rem; display: grid; width: 1.35rem; height: 1.35rem; place-items: center; border-radius: 50%; color: #fff; background: var(--teal); font-size: .8rem; content: "✓"; }
.check-list.compact li { padding-block: .75rem; }
.plain-list { display: grid; gap: .75rem; }
.plain-list li { position: relative; padding-left: 1.25rem; color: #334155; }
.plain-list li::before { position: absolute; top: .72em; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); content: ""; }
.arrow-list { display: grid; gap: .75rem; }
.arrow-list li { padding: .9rem 1rem; border-bottom: 1px solid var(--line); color: #334155; }
.arrow-list li::before { margin-right: .7rem; color: var(--blue); content: "→"; }
.number-list { display: grid; gap: .75rem; counter-reset: list; }
.number-list li { position: relative; padding: .95rem 1rem .95rem 3.4rem; border: 1px solid var(--line); border-radius: 14px; color: #334155; background: #fff; counter-increment: list; }
.number-list li::before { position: absolute; top: .95rem; left: 1rem; color: var(--blue); font-weight: 900; content: counter(list, decimal-leading-zero); }

.mini-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-block { margin-top: 2rem; }
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.check-grid article { padding: 1.4rem; border-left: 4px solid var(--blue); border-radius: 0 16px 16px 0; background: #fff; box-shadow: 0 10px 35px rgba(15, 23, 42, .05); }
.check-grid p { margin: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 15px 40px rgba(15, 23, 42, .05); }
table { width: 100%; min-width: 680px; border-collapse: collapse; }
th, td { padding: 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { color: #1e3a8a; background: var(--soft-blue); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
tbody th { width: 20%; color: var(--text); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.timeline { display: grid; margin: 0; padding: 0; list-style: none; }
.timeline li { display: grid; grid-template-columns: 52px 1fr; gap: 1rem; padding: 1.15rem 0; border-top: 1px solid var(--line); }
.timeline span { color: var(--blue); font-weight: 900; }
.timeline p { margin: .2rem 0 0; }
.method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 2.3rem 0 0; padding: 0; list-style: none; counter-reset: method; }
.method-grid li { min-height: 235px; padding: 1.45rem; border-top: 2px solid var(--line); }
.method-grid span { color: var(--blue); font-size: .82rem; font-weight: 900; letter-spacing: .12em; }
.method-grid h3 { margin-top: 2rem; font-size: 1.35rem; }
.risk-panel { padding: clamp(1.4rem, 3vw, 2rem); border: 1px solid rgba(159, 45, 36, .18); border-radius: var(--radius); background: #fff8f6; }
.risk-panel .eyebrow { color: var(--danger); }
.risk-panel .plain-list li::before { background: var(--danger); }

.dark-section { color: #f8fafc; background: #0f172a; }
.dark-section .eyebrow { color: #93c5fd; }
.dark-section p { color: #cbd5e1; }
.principle-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dark-section .principle-grid article { border-color: rgba(255, 255, 255, .13); background: rgba(255, 255, 255, .045); }
.principle-grid.light article { background: #fff; }
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.fit-grid article { padding: clamp(1.4rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.fit-yes { border-top: 4px solid var(--teal) !important; }
.fit-no { border-top: 4px solid #d97706 !important; }
.case-callout, .cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(1.6rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(135deg, #edf4ff, #f5f1ff 58%, #eaf8f6); }
.case-callout > div, .cta-panel > div:first-child { max-width: 760px; }
.cta-actions { display: grid; flex: 0 0 260px; gap: .7rem; color: var(--muted); font-size: .88rem; text-align: center; }
.faq-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.answers { display: grid; gap: .75rem; }
details { overflow: clip; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.2rem; font-weight: 800; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { flex: 0 0 auto; color: var(--blue); font-size: 1.4rem; font-weight: 500; content: "+"; transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
.detail-body { padding: 0 1.2rem 1.1rem; }
.detail-body p { margin: 0; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.6rem; }
.related-card { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 1rem; min-height: 100px; padding: 1.2rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow-wrap: anywhere; }
.related-card span { font-weight: 800; }
.related-card strong { color: var(--blue); font-size: .82rem; }
.case-fields { grid-template-columns: repeat(3, 1fr); }
.case-fields > article > span { color: var(--blue); font-size: .8rem; font-weight: 900; }
.case-fields h3 { margin-top: 1rem; }
.case-examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-top: 2.4rem; }
.case-example { min-width: 0; scroll-margin-top: 110px; padding: clamp(1.35rem, 3vw, 2rem); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 22px; background: #fff; box-shadow: 0 14px 38px rgba(15, 23, 42, .05); }
.case-example:nth-child(3n+2) { border-top-color: var(--violet); }
.case-example:nth-child(3n) { border-top-color: var(--teal); }
.case-example-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.case-example-head span { color: var(--blue); font-size: .78rem; font-weight: 900; letter-spacing: .12em; }
.case-example-head p { margin: 0; color: #475569; font-size: .82rem; font-weight: 800; text-align: right; }
.case-example h3 { margin: 1.1rem 0 .8rem; font-size: clamp(1.3rem, 2vw, 1.65rem); }
.case-example .case-context { margin-bottom: 1.4rem; color: #334155; }
.case-example dl { display: grid; grid-template-columns: minmax(130px, .32fr) minmax(0, 1fr); margin: 0 0 1.3rem; border-top: 1px solid var(--line); }
.case-example dt, .case-example dd { margin: 0; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.case-example dt { padding-right: 1rem; color: var(--text); font-size: .84rem; font-weight: 850; }
.case-example dd { color: #475569; font-size: .92rem; }
.case-example > .text-link { display: inline-flex; margin-top: .2rem; font-weight: 800; }

.contact-layout { grid-template-columns: .85fr 1.15fr; }
form { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: .55rem 1rem; padding: clamp(1.3rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
form label { margin-top: .3rem; color: #334155; font-size: .9rem; font-weight: 750; }
form input, form textarea, form select { width: 100%; min-height: 48px; padding: .8rem .9rem; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--text); background: #fff; }
form textarea { min-height: 150px; resize: vertical; }
form label[for="contact-message"], form textarea, form button, form .form-help, form .form-status { grid-column: 1 / -1; }
form input:focus, form textarea:focus, form select:focus { border-color: var(--blue); outline: 3px solid rgba(37, 99, 235, .14); }
form button { margin-top: .6rem; }
form button:disabled { cursor: wait; opacity: .65; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-help, .form-status { margin: 0; }
.form-status[data-state="success"] { color: var(--teal); font-weight: 750; }
.form-status[data-state="error"] { color: var(--danger); font-weight: 750; }
.prose { max-width: 820px; }
.prose h2 { margin-top: 2.5rem; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.notice { margin: 2rem 0; padding: 1.2rem; border: 1px solid #f59e0b; border-radius: 14px; background: #fffbeb; }
.notice p { margin: .4rem 0 0; }

footer { margin-top: clamp(4rem, 8vw, 7rem); border-top: 1px solid var(--line); background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr .8fr 1fr; gap: 2rem; padding-block: 3.5rem; }
.footer-brand p { max-width: 390px; margin-top: 1rem; }
footer h2 { margin: 0 0 1rem; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
footer ul { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .9rem; }
footer li a:hover { color: var(--blue); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.2rem; border-top: 1px solid var(--line); color: #64748b; font-size: .83rem; }

/* Historical Ghost articles share the current site's typography while keeping
   long technical passages readable and safe on narrow screens. */
.archive-index-intro { max-width: 760px; margin-bottom: 2.5rem; }
.archive-year + .archive-year { margin-top: 3.5rem; }
.archive-year > h2 { margin-bottom: 1.2rem; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.archive-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.archive-card { display: flex; flex-direction: column; gap: .7rem; min-height: 100%; padding: 1.35rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(15,23,42,.05); }
.archive-card h3 { margin: 0; font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.25; }
.archive-card h3 a { color: var(--ink); }
.archive-card h3 a:hover { color: var(--blue); }
.archive-card p { margin: 0; color: var(--muted); }
.archive-card .text-link { margin-top: auto; }
.archive-card-meta, .archive-meta { display: flex; flex-wrap: wrap; gap: .55rem 1rem; color: #64748b; font-size: .84rem; }
.archive-card-meta time, .archive-meta time { color: var(--blue); font-weight: 700; }
.archive-article-header { padding: 3.5rem 0 2.3rem; background: linear-gradient(180deg, #f3f7ff 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.archive-article-header h1 { max-width: 900px; margin: .65rem 0 1rem; }
.archive-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .8rem; }
.archive-tags span { display: inline-flex; padding: .25rem .55rem; border: 1px solid #cbd5e1; border-radius: 999px; color: #475569; font-size: .76rem; }
.archive-reading { max-width: 850px; padding-top: 2.2rem; }
.archive-notice { margin-bottom: 2rem; padding: 1rem 1.15rem; border-left: 4px solid var(--blue); border-radius: 0 12px 12px 0; background: #eff6ff; color: #334155; }
.archive-notice strong { color: var(--ink); }
.archive-notice p { margin: .35rem 0 0; }
.archive-content { color: #263449; font-size: 1.03rem; line-height: 1.78; }
.archive-content > :first-child { margin-top: 0; }
.archive-content h2, .archive-content h3, .archive-content h4, .archive-content h5, .archive-content h6 { margin: 2.2rem 0 .75rem; color: var(--ink); line-height: 1.25; }
.archive-content p, .archive-content ul, .archive-content ol, .archive-content blockquote, .archive-content table, .archive-content figure, .archive-content pre { margin: 1.1rem 0; }
.archive-content ul, .archive-content ol { padding-left: 1.35rem; }
.archive-content li + li { margin-top: .35rem; }
.archive-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.archive-content img { display: block; max-width: 100%; height: auto; margin: 1.5rem auto; border-radius: 12px; }
.archive-content figure { margin-inline: 0; }
.archive-content figcaption { color: #64748b; font-size: .86rem; text-align: center; }
.archive-content blockquote { padding: .8rem 1.1rem; border-left: 4px solid #94a3b8; background: #f8fafc; color: #475569; }
.archive-content pre { overflow-x: auto; padding: 1rem 1.15rem; border: 1px solid #1e293b; border-radius: 12px; background: #0f172a; color: #e2e8f0; font: .88rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; }
.archive-content code { padding: .1em .3em; border-radius: 4px; background: #e2e8f0; color: #0f172a; font: .9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.archive-content pre code { padding: 0; background: transparent; color: inherit; font-size: inherit; }
.archive-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.archive-content th, .archive-content td { padding: .55rem .7rem; border: 1px solid #cbd5e1; text-align: left; vertical-align: top; }
.archive-content th { background: #f1f5f9; color: var(--ink); }
.archive-after { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }

.reveal { opacity: 0; transform: translateY(12px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1040px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .principle-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: calc(100% + 1px); right: 1rem; left: 1rem; display: none; align-items: stretch; padding: .9rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
  .nav-links.open { display: grid; }
  .nav-links a { padding: .65rem; }
  .nav-links .btn { margin-top: .25rem; }
  .hero-grid, .page-hero-grid, .split, .two-column, .contact-layout, .faq-layout { grid-template-columns: 1fr; }
  .monster-card { min-height: 430px; }
  .problem-grid, .mini-grid, .case-fields { grid-template-columns: repeat(2, 1fr); }
  .case-examples { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-layout { gap: 2rem; }
  .case-callout, .cta-panel { align-items: flex-start; flex-direction: column; }
  .cta-actions { flex: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :last-child { grid-column: auto; }
  .archive-list { grid-template-columns: 1fr; }
  .archive-after { flex-direction: column; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 1.25rem), var(--max)); }
  .brand small { display: none; }
  .brand-wordmark { font-size: .94rem; }
  h1, .home-hero h1, .page-hero h1 { font-size: clamp(2.65rem, 14vw, 4.4rem); }
  .home-hero { padding-top: 4.2rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .monster-card { min-height: 400px; }
  .monster-top { font-size: .65rem; letter-spacing: .07em; }
  .time-saved { margin-top: 2.5rem; }
  .flow-row { flex-wrap: wrap; }
  .service-grid, .problem-grid, .mini-grid, .case-fields, .method-grid, .principle-grid, .fit-grid, .check-grid, .related-grid, .footer-grid { grid-template-columns: 1fr; }
  .case-example dl { grid-template-columns: 1fr; }
  .case-example dt { padding-bottom: .2rem; border-bottom: 0; }
  .case-example dd { padding-top: .2rem; }
  .service-card { min-height: auto; }
  .method-grid li { min-height: auto; }
  form { grid-template-columns: 1fr; }
  form label, form input, form select { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 390px) {
  .brand-logo { width: 40px; height: 40px; flex-basis: 40px; }
  .nav { min-height: 68px; }
  .monster-card { min-height: 370px; }
  .time-saved strong { font-size: clamp(2.25rem, 13cqw, 3.4rem); }
  .flow-row span, .flow-row strong { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  header, footer, .cta-panel, .noise, .hero-actions { display: none !important; }
  body { background: #fff; }
  .section, .page-hero { padding: 2rem 0; }
  a { text-decoration: underline; }
}
