:root {
  --paper: #f5f7fc;
  --paper-2: #eef2fa;
  --ink: #17233b;
  --ink-soft: #5e6b82;
  --blue: #2b63f1;
  --blue-dark: #1645c7;
  --orange: #ff775f;
  --green: #31b78a;
  --line: #ccd6e8;
  --white: #ffffff;
  --danger: #c93f35;
  --shadow: 0 18px 60px rgba(31, 50, 89, 0.12);
  --display: "Arial Black", "PingFang SC", "Microsoft YaHei", sans-serif;
  --body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "IBM Plex Mono", Consolas, monospace;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.dialog-open { overflow: hidden; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { color: var(--white); background: var(--blue); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 999;
  padding: 10px 16px;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.section-shell { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.section-pad { padding-block: 116px; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 36px;
  padding-inline: max(24px, calc((100vw - 1200px) / 2));
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  transition: transform 260ms cubic-bezier(.2,.8,.2,1), border-color 180ms ease, box-shadow 180ms ease;
}
.site-header.is-scrolled { transform: translateY(calc(-100% - 2px)); border-color: transparent; box-shadow: none; }
.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; font-weight: 850; }
.brand-mark { position: relative; display: inline-flex; align-items: end; gap: 3px; width: 26px; height: 26px; padding: 5px; background: var(--ink); border-radius: 8px; transform: rotate(-3deg); }
.brand-mark span { flex: 1; background: var(--white); border-radius: 2px 2px 0 0; }
.brand-mark span:nth-child(1) { height: 45%; }
.brand-mark span:nth-child(2) { height: 85%; background: var(--orange); }
.brand-mark span:nth-child(3) { height: 62%; }
.brand-mark.mini { width: 34px; height: 34px; flex: 0 0 auto; }
.brand-name { letter-spacing: -0.03em; }
.site-nav { display: flex; align-items: center; gap: 30px; color: var(--ink-soft); font-size: 14px; font-weight: 650; }
.site-nav a, .text-link, .service-card a { position: relative; }
.site-nav a::after, .text-link::after, .service-card a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}
.site-nav a:hover::after, .text-link:hover::after, .service-card a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-cta { justify-self: end; }
.menu-button { display: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 50px;
  padding: 12px 20px;
  color: var(--white);
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 10px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.button span { transition: transform 160ms ease; }
.button:hover { background: var(--blue-dark); box-shadow: 0 9px 24px rgba(43, 99, 241, 0.24); transform: translateY(-2px); }
.button:hover span { transform: translateX(3px); }
.button:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--orange) 72%, white); outline-offset: 3px; }
.button-small { min-height: 42px; padding: 8px 16px; font-size: 14px; }
.button-quiet { color: var(--ink); background: transparent; border-color: var(--line); }
.button-quiet:hover { color: var(--blue); background: var(--white); box-shadow: none; }
.button:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.hero {
  min-height: calc(100svh - var(--header-h));
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  align-items: center;
  gap: clamp(44px, 7vw, 98px);
  padding-block: 74px 88px;
}
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--blue); font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.eyebrow > span { width: 24px; height: 2px; background: currentColor; }
.hero h1, .section-intro h2, .contact h2, .trust h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 1.07;
}
.hero h1 { font-size: clamp(46px, 5.3vw, 76px); }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero-lead { max-width: 650px; margin: 28px 0 0; color: var(--ink-soft); font-size: 18px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 34px; }
.text-link { font-weight: 750; }
.trust-list { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 34px 0 0; padding: 0; color: var(--ink-soft); font-size: 12px; list-style: none; }
.trust-list li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; background: var(--green); border-radius: 50%; vertical-align: 1px; }

.relay-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: var(--shadow); transform: rotate(0.8deg); }
.relay-toolbar, .relay-footer { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 18px; }
.relay-toolbar { border-bottom: 1px solid var(--line); }
.relay-toolbar > div { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.status-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 4px rgba(49, 183, 138, 0.12); }
.relay-toolbar .mono { color: var(--ink-soft); }
.relay-canvas { position: relative; min-height: 480px; overflow: hidden; background: #f8faff; }
.blueprint-grid { position: absolute; inset: 0; opacity: 0.6; background-image: linear-gradient(rgba(43, 99, 241, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(43, 99, 241, 0.055) 1px, transparent 1px); background-size: 28px 28px; }
.flow-node { position: absolute; z-index: 3; display: grid; grid-template-columns: auto 1fr; gap: 0 11px; width: 180px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: 0 10px 30px rgba(23, 35, 59, 0.08); }
.flow-node small { display: block; color: var(--ink-soft); font-size: 10px; line-height: 1.3; }
.flow-node strong { display: block; margin-top: 2px; font-size: 13px; line-height: 1.35; }
.node-icon { grid-row: 1 / 3; width: 30px; height: 30px; border-radius: 8px; background: var(--paper-2); }
.node-meta { grid-column: 2; margin-top: 8px; color: var(--ink-soft); }
.node-meta.waiting { color: #a94738; }
.node-meta.success { color: #197a5e; }
.node-input { top: 48px; left: 7%; }
.node-ai { top: 48px; right: 7%; }
.node-human { bottom: 100px; left: 7%; }
.node-output { right: 7%; bottom: 100px; }
.node-ai .node-icon { background: rgba(43, 99, 241, 0.12); }
.node-human .node-icon { background: rgba(255, 119, 95, 0.15); }
.node-output .node-icon { background: rgba(49, 183, 138, 0.13); }
.icon-inbox::before, .icon-spark::before, .icon-check::before, .icon-arrow::before { display: grid; place-items: center; width: 100%; height: 100%; font-weight: 900; }
.icon-inbox::before { content: "↓"; }
.icon-spark::before { content: "✦"; color: var(--blue); }
.icon-check::before { content: "✓"; color: var(--orange); }
.icon-arrow::before { content: "→"; color: var(--green); }
.flow-line { position: absolute; z-index: 1; border: 1px dashed color-mix(in srgb, var(--blue) 48%, white); }
.line-a { top: 91px; left: 34%; width: 32%; }
.line-b { top: 124px; right: 22%; width: 180px; height: 155px; border-top: 0; border-left: 0; border-radius: 0 0 18px 0; }
.line-c { bottom: 144px; left: 34%; width: 32%; }
.task-ticket { position: absolute; z-index: 5; top: 77px; left: 29%; display: flex; align-items: center; gap: 8px; padding: 7px 10px 7px 7px; color: var(--ink); background: var(--orange); border: 2px solid var(--ink); border-radius: 9px; box-shadow: 4px 4px 0 var(--ink); font-family: var(--mono); font-size: 10px; animation: relay-ticket 6s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
.task-ticket span { display: grid; place-items: center; width: 22px; height: 22px; color: var(--white); background: var(--ink); border-radius: 5px; font-weight: 800; }
.relay-wrap.is-paused .task-ticket { animation-play-state: paused; }
@keyframes relay-ticket {
  0%, 8% { top: 77px; left: 29%; transform: rotate(-2deg); }
  29%, 37% { top: 77px; left: 69%; transform: rotate(2deg); }
  58%, 68% { top: 306px; left: 69%; transform: rotate(-1deg); }
  89%, 100% { top: 306px; left: 29%; transform: rotate(1deg); }
}
.relay-result { position: absolute; right: 7%; bottom: 18px; left: 7%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.relay-result > div:first-child { display: flex; align-items: center; gap: 14px; }
.relay-result > div:last-child { text-align: right; }
.relay-result small { display: block; color: var(--ink-soft); font-size: 10px; }
.relay-result strong { font-size: 13px; }
.relay-footer { min-height: 48px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 11px; }
.relay-footer span { display: flex; align-items: center; gap: 6px; }
.relay-footer i { width: 7px; height: 7px; border-radius: 50%; }
.legend-ai { background: var(--blue); }
.legend-human { background: var(--orange); }
.pause-button { padding: 4px 8px; color: var(--ink-soft); background: transparent; border: 0; cursor: pointer; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }

.friction-strip { color: var(--white); background: var(--ink); }
.friction-strip .section-shell { padding-block: 26px; }
.section-kicker { margin: 0 0 13px; color: #aeb9cf; font-size: 12px; }
.friction-list { display: flex; flex-wrap: wrap; gap: 10px; }
.friction-list span { padding: 7px 10px; border: 1px solid #43516c; border-radius: 7px; font-size: 12px; }

.section-intro { max-width: 680px; }
.section-intro h2, .contact h2, .trust h2 { font-size: clamp(38px, 4.3vw, 58px); }
.section-intro > p:not(.eyebrow), .split-intro > p { margin: 24px 0 0; color: var(--ink-soft); font-size: 17px; }
.section-intro.centered { max-width: 820px; margin-inline: auto; text-align: center; }
.section-intro.centered .eyebrow { justify-content: center; }
.split-intro { max-width: none; display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 64px; align-items: end; }

.assessment { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(48px, 8vw, 120px); align-items: start; }
.assessment-intro { position: sticky; top: calc(var(--header-h) + 44px); }
.assessment-principle { display: grid; grid-template-columns: auto 1fr; gap: 16px; margin-top: 40px; padding: 18px; border-left: 3px solid var(--orange); background: var(--white); }
.assessment-principle .mono { color: var(--orange); font-weight: 800; }
.assessment-principle p { margin: 0; font-size: 13px; }
.quiz-card { min-height: 520px; padding: 30px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: 0 16px 50px rgba(31, 50, 89, 0.08); }
.quiz-topline { display: flex; justify-content: space-between; color: var(--ink-soft); font-size: 12px; }
.quiz-progress { height: 3px; margin: 14px 0 34px; overflow: hidden; background: var(--paper-2); }
.quiz-progress span { display: block; width: 20%; height: 100%; background: var(--blue); transition: width 200ms ease; }
.quiz-step { display: none; margin: 0; padding: 0; border: 0; }
.quiz-step.is-active { display: grid; gap: 10px; }
.quiz-step legend { width: 100%; margin-bottom: 22px; font-size: 25px; font-weight: 800; line-height: 1.4; }
.quiz-step label { cursor: pointer; }
.quiz-step input { position: absolute; opacity: 0; pointer-events: none; }
.quiz-step label span { position: relative; display: flex; align-items: center; min-height: 56px; padding: 12px 16px 12px 50px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink-soft); transition: border-color 150ms ease, background 150ms ease, color 150ms ease; }
.quiz-step label span::before { content: ""; position: absolute; left: 18px; width: 16px; height: 16px; border: 1px solid #9ba9c1; border-radius: 50%; }
.quiz-step input:checked + span { color: var(--ink); border-color: var(--blue); background: rgba(43, 99, 241, 0.055); }
.quiz-step input:checked + span::before { border: 5px solid var(--blue); }
.quiz-step input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--orange) 72%, white); outline-offset: 2px; }
.quiz-error { min-height: 26px; margin: 14px 0 0; color: var(--danger); font-size: 13px; }
.quiz-actions { display: flex; justify-content: space-between; gap: 16px; margin-top: 24px; }
.quiz-result h3 { margin: 22px 0 10px; font-size: 28px; line-height: 1.35; }
.quiz-result > p:not(.eyebrow) { color: var(--ink-soft); }
.result-grade { display: flex; align-items: end; justify-content: space-between; padding: 20px 0; border-bottom: 1px solid var(--line); }
.result-grade strong { color: var(--blue); font-family: var(--display); font-size: 72px; line-height: 1; }
.result-map { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.result-map div { padding: 16px; background: var(--paper); border-radius: 10px; }
.result-map small { display: block; color: var(--ink-soft); }
.result-map strong { display: block; margin-top: 5px; }

.solutions { background: var(--white); }
.scenario-layout { display: grid; grid-template-columns: 0.45fr 1.55fr; gap: 20px; margin-top: 64px; }
.scenario-tabs { display: flex; flex-direction: column; }
.scenario-tabs button { position: relative; padding: 18px 20px 18px 42px; color: var(--ink-soft); background: transparent; border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; }
.scenario-tabs button::before { content: ""; position: absolute; top: 50%; left: 16px; width: 8px; height: 8px; border: 1px solid var(--line); border-radius: 50%; transform: translateY(-50%); }
.scenario-tabs button[aria-selected="true"] { color: var(--ink); font-weight: 800; }
.scenario-tabs button[aria-selected="true"]::before { border-color: var(--orange); background: var(--orange); box-shadow: 0 0 0 5px rgba(255, 119, 95, 0.12); }
.scenario-stage { padding: 36px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.scenario-heading { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px; }
.scenario-heading .mono { color: var(--blue); }
.scenario-heading h3 { margin: 10px 0 0; font-size: 30px; line-height: 1.3; }
.scenario-heading p { margin: 0; color: var(--ink-soft); }
.scenario-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 52px 0 36px; }
.scenario-flow div { position: relative; min-height: 110px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.scenario-flow div:not(:last-child)::after { content: "→"; position: absolute; top: 50%; right: -18px; color: var(--blue); font-family: var(--mono); transform: translateY(-50%); }
.scenario-flow span { display: block; color: var(--ink-soft); font-family: var(--mono); font-size: 10px; }
.scenario-flow strong { display: block; margin-top: 12px; font-size: 14px; line-height: 1.45; }
.scenario-note { display: grid; grid-template-columns: auto 1fr; gap: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.scenario-note .mono { color: var(--orange); }
.scenario-note p { margin: 0; font-size: 13px; }

.principles { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 100px; }
.principle-list { border-top: 1px solid var(--line); }
.principle-list article { display: grid; grid-template-columns: 54px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.principle-mark { display: grid; place-items: center; width: 42px; height: 42px; color: var(--white); background: var(--ink); border-radius: 10px; font-family: var(--display); font-weight: 900; transform: rotate(-3deg); }
.principle-list article:nth-child(2) .principle-mark { background: var(--orange); transform: rotate(2deg); }
.principle-list article:nth-child(3) .principle-mark { background: var(--blue); }
.principle-list h3 { margin: 0; font-size: 20px; }
.principle-list p { margin: 7px 0 0; color: var(--ink-soft); }

.services { background: var(--paper-2); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.service-card { position: relative; display: flex; flex-direction: column; min-height: 430px; padding: 30px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.service-card.featured { border-color: var(--blue); box-shadow: 8px 8px 0 var(--blue); transform: translateY(-8px); }
.service-flag { position: absolute; top: -14px; right: 18px; padding: 4px 9px; color: var(--white); background: var(--orange); border-radius: 5px; font-size: 11px; font-weight: 800; }
.service-card .mono { color: var(--blue); }
.service-card h3 { margin: 20px 0 8px; font-size: 26px; }
.service-card p { margin: 0; color: var(--ink-soft); }
.service-card ul { display: grid; gap: 10px; margin: 28px 0; padding: 0; list-style: none; }
.service-card li { position: relative; padding-left: 19px; font-size: 14px; }
.service-card li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.service-card a { width: max-content; margin-top: auto; color: var(--blue); font-weight: 800; }

.cases { overflow: hidden; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.section-more { display: flex; justify-content: center; margin-top: 34px; }
.case-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.case-preview { position: relative; min-height: 220px; padding: 22px; overflow: hidden; background: var(--paper-2); }
.case-preview::before { content: ""; position: absolute; inset: 0; opacity: 0.7; background-image: linear-gradient(rgba(43, 99, 241, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(43, 99, 241, 0.08) 1px, transparent 1px); background-size: 24px 24px; }
.case-mini-flow { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 38px; }
.case-mini-flow span { display: grid; place-items: center; min-height: 68px; padding: 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); font-size: 11px; font-weight: 750; text-align: center; }
.case-mini-flow span:nth-child(2) { color: var(--white); background: var(--blue); border-color: var(--blue); transform: translateY(-12px); }
.case-mini-flow span:not(:last-child)::after { content: "→"; position: absolute; color: var(--orange); transform: translateX(53px); }
.case-tag { position: relative; z-index: 2; display: inline-block; padding: 4px 8px; color: var(--white); background: var(--ink); border-radius: 5px; font-family: var(--mono); font-size: 9px; }
.case-body { padding: 24px; }
.case-body .mono { color: var(--blue); }
.case-body h3 { margin: 9px 0; font-size: 22px; line-height: 1.35; }
.case-body p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.case-body button { display: flex; justify-content: space-between; width: 100%; margin-top: 24px; padding: 12px 0 0; color: var(--ink); background: transparent; border: 0; border-top: 1px solid var(--line); font-weight: 800; cursor: pointer; }
.case-placeholder { display: grid; place-items: center; min-height: 100%; color: var(--ink-soft); text-align: center; }

.delivery { color: var(--white); background: var(--ink); }
.delivery-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 100px; }
.delivery .eyebrow { color: #91acf9; }
.delivery .section-intro > p:not(.eyebrow) { color: #b6c0d3; }
.delivery-list { margin: 0; padding: 0; border-top: 1px solid #3e4c68; list-style: none; }
.delivery-list li { display: grid; grid-template-columns: 54px 1fr; gap: 24px; padding: 25px 0; border-bottom: 1px solid #3e4c68; }
.delivery-list .mono { color: var(--orange); }
.delivery-list h3 { margin: 0; font-size: 19px; }
.delivery-list p { margin: 4px 0 0; color: #aeb9cf; font-size: 14px; }

.trust-panel { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 76px; padding: 64px; color: var(--white); background: var(--blue); border-radius: 20px; box-shadow: 12px 12px 0 var(--orange); }
.eyebrow.light { color: #d7e2ff; }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255, 255, 255, 0.28); }
.trust-grid article { padding: 22px; background: var(--blue); }
.trust-grid .mono { color: #d7e2ff; }
.trust-grid h3 { margin: 10px 0 4px; }
.trust-grid p { margin: 0; color: #dbe5ff; font-size: 13px; }

.contact { border-top: 1px solid var(--line); background: var(--white); }
.contact-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 90px; }
.contact-copy > p:not(.eyebrow) { max-width: 560px; color: var(--ink-soft); font-size: 17px; }
.contact-note { display: flex; gap: 16px; align-items: center; max-width: 500px; margin-top: 44px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.contact-note p { margin: 0; font-size: 12px; line-height: 1.6; }
.contact-form { display: grid; gap: 20px; padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 7px; font-size: 13px; font-weight: 750; }
.contact-form input, .contact-form textarea { width: 100%; padding: 13px 14px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 8px; outline: 0; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--blue); }
.contact-form .button { width: 100%; }
.form-status { min-height: 24px; margin: -8px 0 0; color: #197a5e; font-size: 13px; }

.site-footer { padding-block: 54px; color: #c0c9db; background: #10192c; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 0.6fr 0.6fr 0.8fr; gap: 60px; }
.footer-brand { color: var(--white); }
.footer-grid > div:first-child p { max-width: 360px; margin: 18px 0 0; font-size: 13px; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 9px; }
.footer-grid .mono { margin-bottom: 6px; color: #7786a3; }
.footer-grid a:not(.brand) { width: max-content; font-size: 13px; }
.footer-meta span:not(.mono) { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.footer-meta i { width: 7px; height: 7px; background: var(--green); border-radius: 50%; }
.footer-meta small { margin-top: auto; color: #7786a3; }

.case-dialog { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; overflow: hidden; border: 0; border-radius: 0; background: var(--white); box-shadow: none; }
.case-dialog::backdrop { background: rgba(10, 17, 31, 0.78); backdrop-filter: blur(8px); }
.dialog-bar { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.dialog-bar > div { display: flex; align-items: center; gap: 14px; }
.dialog-bar .mono { color: var(--blue); }
.dialog-bar button { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 9px; cursor: pointer; font-size: 26px; line-height: 1; }
.case-dialog iframe { width: 100%; height: calc(100% - 64px); border: 0; background: var(--paper); }

/* Inner pages */
.site-nav a.active { color: var(--blue); }
.site-nav a.active::after { transform: scaleX(1); }
.page-hero { padding-block: 108px 72px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 980px; margin: 20px 0 54px; font-size: clamp(54px, 7.5vw, 106px); line-height: .94; letter-spacing: -.065em; }
.page-hero-foot { display: grid; grid-template-columns: minmax(0, 610px) auto; align-items: end; justify-content: space-between; gap: 40px; }
.page-hero-foot p { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.75; }
.page-hero-foot .button { justify-self: end; }
.directory { display: grid; gap: 18px; }
.directory-card { display: grid; grid-template-columns: 80px 1.1fr 1fr 112px; align-items: center; gap: 28px; min-height: 188px; padding: 30px 34px; color: var(--ink); border: 1px solid var(--line); border-radius: 18px; background: var(--white); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.directory-card:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: 8px 8px 0 var(--blue-soft); }
.directory-card h2 { margin: 8px 0 0; font-size: clamp(28px, 3vw, 44px); letter-spacing: -.04em; }
.directory-card p { margin: 0; color: var(--muted); line-height: 1.7; }
.directory-card-top { align-self: start; display: grid; gap: 12px; }
.directory-card > .directory-card-top { grid-column: 1; grid-row: 1 / 3; }
.directory-card > h2 { grid-column: 2; grid-row: 1; }
.directory-card > p { grid-column: 3; grid-row: 1; }
.directory-card > .directory-flow { grid-column: 2 / 4; grid-row: 2; }
.directory-card > strong { grid-column: 4; grid-row: 1 / 3; align-self: center; }
.directory-card-top .mono { font-size: 10px; line-height: 1.35; }
.directory-index { color: var(--blue); font: 700 13px/1 var(--mono); }
.directory-flow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.directory-flow span { padding: 7px 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; font: 600 11px/1 var(--mono); }
.directory-card > strong { color: var(--blue); font-size: 13px; }
.page-cta { padding-block: 58px; color: var(--white); background: var(--blue); }
.page-cta .section-shell { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.page-cta h2 { margin: 8px 0; font-size: clamp(30px, 4vw, 50px); letter-spacing: -.045em; }
.page-cta p { margin: 0; color: #d7e0ff; }
.page-cta .mono { color: #b8c8ff; }
.button.inverse { color: var(--blue); background: var(--white); border-color: var(--white); }
.button.inverse:hover { color: var(--white); background: transparent; }
.back-link { display: inline-block; margin-bottom: 62px; color: var(--blue); font: 700 12px/1 var(--mono); letter-spacing: .04em; }
.detail-hero { padding-block: 54px 94px; }
.detail-hero h1 { max-width: 930px; margin: 20px 0 28px; font-size: clamp(52px, 7vw, 96px); line-height: .96; letter-spacing: -.06em; }
.detail-hero > p:not(.eyebrow) { max-width: 720px; margin: 0; color: var(--muted); font-size: 20px; line-height: 1.75; }
.detail-actions { display: flex; align-items: center; gap: 28px; margin-top: 42px; }
.detail-section { display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; border-top: 1px solid var(--line); }
.detail-label h2 { max-width: 440px; margin: 14px 0 0; font-size: clamp(32px, 4vw, 54px); letter-spacing: -.045em; }
.pain-list, .output-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: deliverable; }
.pain-list li, .output-list li { padding: 24px 0; border-bottom: 1px solid var(--line); font-size: 19px; line-height: 1.55; }
.pain-list li::before { content: "!"; display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 18px; color: var(--orange); border: 1px solid var(--orange); border-radius: 50%; font: 700 12px/1 var(--mono); }
.output-list li { counter-increment: deliverable; }
.output-list li::before { content: "0" counter(deliverable); display: inline-block; width: 54px; color: var(--blue); font: 700 12px/1 var(--mono); }
.detail-flow-section { color: var(--white); background: var(--ink); }
.light-copy h2 { color: var(--white); }
.light-copy .mono { color: #8190ad; }
.detail-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 52px; }
.detail-flow > div { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 180px; padding: 24px; border: 1px solid #3c4961; border-radius: 14px; background: #172238; }
.detail-flow > div:not(:last-child)::after { content: "→"; position: absolute; z-index: 1; top: 50%; right: -20px; color: var(--orange); font-size: 22px; transform: translateY(-50%); }
.detail-flow > div .mono { color: #8493ae; }
.detail-flow > div strong { font-size: 20px; }
.human-callout { display: grid; grid-template-columns: 220px 1fr; gap: 30px; margin-top: 18px; padding: 22px 24px; border-left: 3px solid var(--orange); background: #222f47; }
.human-callout .mono { color: var(--orange); }
.human-callout p { margin: 0; color: #d0d7e4; }
.related { border-top: 1px solid var(--line); }
.related > div { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.related a { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); }
.related a .mono { color: var(--muted); font-size: 10px; }
.related a > span:last-child { color: var(--blue); }
.archive-top { display: grid; grid-template-columns: 1fr minmax(280px, 470px); align-items: end; gap: 50px; margin-bottom: 44px; }
.archive-top h2 { margin: 10px 0 0; font-size: clamp(42px, 5vw, 68px); }
.archive-top p { margin: 0; color: var(--muted); line-height: 1.7; }
.archive-grid { grid-template-columns: repeat(3, 1fr); }
.pagination { display: flex; justify-content: center; gap: 9px; margin-top: 46px; }
.pagination > div { display: flex; gap: 6px; }
.pagination button, .pagination span { display: grid; place-items: center; min-width: 42px; height: 42px; padding-inline: 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); font: 700 12px/1 var(--mono); }
.pagination button { cursor: pointer; }
.pagination button:hover, .pagination .active { color: var(--white); background: var(--blue); border-color: var(--blue); }
.pagination button:disabled { cursor: not-allowed; opacity: .42; }
.service-page-grid { align-items: stretch; }
.service-page-grid .service-card h2 { margin: 22px 0 12px; font-size: 32px; }
.support-band { color: var(--white); background: var(--ink); }
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.support-grid article { padding: 30px; border: 1px solid #3c4961; border-radius: 14px; }
.support-grid article > span { color: var(--orange); font: 700 12px/1 var(--mono); }
.support-grid h3 { margin: 38px 0 10px; font-size: 24px; }
.support-grid p { margin: 0; color: #adb8cb; line-height: 1.65; }
.about-manifesto { color: var(--white); background: var(--blue); }
.about-manifesto .mono { color: #b8c8ff; }
.about-manifesto blockquote { max-width: 1040px; margin: 38px 0 0; font-size: clamp(38px, 6vw, 76px); font-weight: 700; line-height: 1.1; letter-spacing: -.055em; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.values-grid article { min-height: 330px; padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.values-grid h2 { margin: 70px 0 14px; font-size: 27px; }
.values-grid p { color: var(--muted); line-height: 1.7; }
.team-placeholder { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; border-top: 1px solid var(--line); }
.team-placeholder h2 { margin: 18px 0; font-size: clamp(38px, 5vw, 64px); letter-spacing: -.05em; }
.team-placeholder > div:first-child > p:last-child { color: var(--muted); line-height: 1.7; }
.team-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.team-slots span { display: grid; place-items: end start; min-height: 150px; padding: 20px; color: var(--blue); border: 1px dashed #9aabc9; border-radius: 12px; font: 700 12px/1 var(--mono); }

@media (max-width: 1020px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { position: fixed; top: var(--header-h); right: 16px; left: 16px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px; }
  .header-cta { display: none; }
  .menu-button { justify-self: end; display: grid; gap: 6px; width: 42px; height: 42px; padding: 12px 9px; background: transparent; border: 1px solid var(--line); border-radius: 9px; }
  .menu-button span:not(.sr-only) { display: block; width: 22px; height: 2px; background: var(--ink); }
  .hero { grid-template-columns: 1fr; padding-top: 64px; }
  .relay-wrap { max-width: 720px; width: 100%; margin-inline: auto; }
  .assessment, .principles, .delivery-layout, .contact-layout { grid-template-columns: 1fr; gap: 56px; }
  .assessment-intro { position: static; }
  .scenario-layout { grid-template-columns: 1fr; }
  .scenario-tabs { display: grid; grid-template-columns: repeat(5, max-content); overflow-x: auto; }
  .scenario-tabs button { padding-left: 34px; white-space: nowrap; }
  .service-grid, .case-grid { grid-template-columns: 1fr 1fr; }
  .trust-panel { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 0.6fr 0.6fr; }
  .footer-meta { grid-column: 1 / -1; flex-direction: row !important; justify-content: space-between; }
  .directory-card { grid-template-columns: 60px 1fr 1fr 100px; }
  .detail-section { grid-template-columns: 1fr; gap: 40px; }
  .archive-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  :root { --header-h: 66px; }
  .section-shell { width: min(100% - 28px, 1200px); }
  .section-pad { padding-block: 78px; }
  .site-header { height: var(--header-h); padding-inline: 14px; }
  .hero { min-height: auto; padding-block: 56px 64px; gap: 52px; }
  .hero h1 { font-size: clamp(42px, 13vw, 58px); }
  .hero-lead { font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 14px; }
  .hero-actions .button { width: 100%; }
  .hero-actions .text-link { text-align: center; }
  .trust-list { display: grid; gap: 6px; }
  .relay-wrap { transform: none; }
  .relay-canvas { min-height: 522px; }
  .flow-node { width: calc(50% - 25px); }
  .node-input, .node-human { left: 14px; }
  .node-ai, .node-output { right: 14px; }
  .node-input, .node-ai { top: 42px; }
  .node-human, .node-output { bottom: 118px; }
  .line-a, .line-c { left: 46%; width: 8%; }
  .line-b { right: 26%; }
  .task-ticket { display: none; }
  .relay-result { right: 14px; left: 14px; }
  .relay-footer { flex-wrap: wrap; gap: 8px; padding-block: 8px; }
  .friction-list { display: grid; grid-template-columns: 1fr 1fr; }
  .section-intro h2, .contact h2, .trust h2 { font-size: 36px; }
  .split-intro { grid-template-columns: 1fr; gap: 12px; }
  .quiz-card { padding: 22px 16px; }
  .quiz-step legend { font-size: 21px; }
  .quiz-step label span { padding-left: 44px; }
  .quiz-actions { align-items: stretch; flex-direction: column-reverse; }
  .quiz-actions .button { width: 100%; }
  .result-map { grid-template-columns: 1fr; }
  .scenario-heading { grid-template-columns: 1fr; gap: 18px; }
  .scenario-stage { padding: 24px 16px; }
  .scenario-flow { grid-template-columns: 1fr; margin-top: 34px; }
  .scenario-flow div { min-height: auto; }
  .scenario-flow div:not(:last-child)::after { top: auto; right: 50%; bottom: -22px; transform: translateX(50%) rotate(90deg); }
  .scenario-note { grid-template-columns: 1fr; gap: 8px; }
  .service-grid, .case-grid { grid-template-columns: 1fr; }
  .service-card.featured { transform: none; }
  .trust-panel { padding: 38px 24px; border-radius: 14px; box-shadow: 7px 7px 0 var(--orange); }
  .trust-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form { padding: 22px 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-meta { flex-direction: column !important; align-items: start; }
  .case-dialog { width: 100vw; height: 100dvh; border-radius: 0; }
  .dialog-bar .mono { display: none; }
  .page-hero { padding-block: 64px 52px; }
  .page-hero h1 { margin-bottom: 38px; font-size: clamp(44px, 14vw, 64px); }
  .page-hero-foot, .archive-top, .team-placeholder { grid-template-columns: 1fr; gap: 26px; }
  .page-hero-foot .button { justify-self: stretch; width: 100%; }
  .directory-card { grid-template-columns: 1fr; gap: 14px; padding: 24px 18px; }
  .directory-card > .directory-card-top { grid-column: 1; grid-row: auto; display: flex; align-items: center; justify-content: space-between; }
  .directory-card > h2, .directory-card > p, .directory-card > .directory-flow, .directory-card > strong { grid-column: 1; grid-row: auto; }
  .page-cta .section-shell { align-items: stretch; flex-direction: column; }
  .page-cta .button { width: 100%; }
  .back-link { margin-bottom: 44px; }
  .detail-hero { padding-block: 36px 68px; }
  .detail-hero h1 { font-size: 48px; }
  .detail-actions { align-items: stretch; flex-direction: column; }
  .detail-actions .button { width: 100%; }
  .detail-flow { grid-template-columns: 1fr; }
  .detail-flow > div { min-height: 130px; }
  .detail-flow > div:not(:last-child)::after { top: auto; right: 50%; bottom: -22px; transform: translateX(50%) rotate(90deg); }
  .human-callout { grid-template-columns: 1fr; gap: 12px; }
  .archive-grid, .support-grid, .values-grid { grid-template-columns: 1fr; }
  .team-slots { grid-template-columns: 1fr 1fr; }
  .pagination { flex-wrap: wrap; }
  .pagination > span { order: -1; width: 100%; border: 0; background: transparent; }
}

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