:root {
  --ink: #11171d;
  --ink-deep: #090d10;
  --ink-soft: #25303a;
  --paper: #f4f1ea;
  --paper-deep: #e8e4dc;
  --line: #c9c6bf;
  --muted: #566068;
  --accent: #e43d3d;
  --accent-soft: #ef7777;
  --warm: #f26b3a;
  --white: #fff;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; color: var(--ink); background: #d2cdc4; font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body { padding: 68px 0 24px; }
h1, h2, h3, p, figure { margin: 0; }
img { max-width: 100%; }

.one-toolbar { position: fixed; top: 0; right: 0; left: 0; z-index: 20; min-height: 52px; padding: 8px max(20px, calc((100vw - 210mm) / 2)); display: flex; justify-content: flex-end; align-items: center; gap: 8px; color: #dfe5e8; background: rgba(9,13,16,.95); }
.one-toolbar a { min-height: 34px; padding: 8px 14px; display: inline-flex; align-items: center; border: 1px solid rgba(244,241,234,.42); color: var(--white); font: 700 10px/1.25 var(--mono); letter-spacing: .06em; text-decoration: none; transition: background .2s ease; }
.one-toolbar a:hover { background: rgba(244,241,234,.1); }
.one-toolbar a:last-child { color: var(--ink-deep); border-color: var(--accent); background: var(--accent); }
.one-toolbar a:last-child:hover { background: var(--accent-soft); }
.one-toolbar a:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 3px; }

.one-sheet { width: 210mm; height: 297mm; margin: 0 auto; overflow: hidden; display: flex; flex-direction: column; color: var(--ink); background: var(--paper); box-shadow: 0 18px 52px rgba(17,23,29,.2); }

/* site-style kicker: mono label with a red square bullet */
.one-code { display: flex; align-items: center; gap: 2mm; color: var(--accent); font: 600 6.8pt/1.4 var(--mono); letter-spacing: .16em; }
.one-code::before { content: ""; width: 1.7mm; height: 1.7mm; flex: 0 0 auto; background: currentColor; box-shadow: 0 0 0 1.2mm rgba(228,61,61,.13); }

/* ---- dark hero, mirrors frontier-hero on the main site ---- */
.one-hero { position: relative; overflow: hidden; padding: 10mm 12mm 11mm; color: var(--white); background: radial-gradient(circle at 82% 18%, rgba(228,61,61,.22), transparent 34%), linear-gradient(135deg, var(--ink-deep) 15%, var(--ink) 72%, #1d252c 100%); isolation: isolate; }
.one-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: linear-gradient(rgba(244,241,234,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(244,241,234,.06) 1px, transparent 1px); background-size: 9mm 9mm; mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.one-hero::after { content: ""; position: absolute; top: -46mm; right: -34mm; z-index: -1; width: 108mm; height: 108mm; border: 1px solid rgba(244,241,234,.14); border-radius: 50%; box-shadow: 0 0 0 9mm rgba(244,241,234,.03), 0 0 0 18mm rgba(228,61,61,.03); }

.one-intro { display: grid; grid-template-columns: .95fr 1.05fr; align-items: end; gap: 10mm; }
.one-intro .one-code { color: #d2d7da; }
.one-intro .one-code::before { background: var(--accent); }
.one-intro h1 { margin-top: 3mm; font: 770 31pt/1.06 var(--serif); letter-spacing: -.045em; }
.one-intro h1 em { color: var(--accent); font-style: normal; }
.one-intro > div:last-child p { color: #c9d0d3; font-size: 8.6pt; line-height: 1.75; }
.one-intro > div:last-child p + p { margin-top: 2mm; color: #9faab0; font-size: 7.4pt; }

.one-definition { margin-top: 6mm; padding-top: 5mm; border-top: 1px solid rgba(244,241,234,.18); }
.one-definition .one-code { color: var(--accent-soft); }
.one-definition h2 { max-width: 168mm; margin-top: 2mm; font: 680 12.5pt/1.52 var(--serif); color: var(--white); }
.one-definition ol { position: relative; margin: 4.5mm 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; }
.one-definition ol::before { content: ""; position: absolute; top: 2.25mm; right: 9%; left: 9%; height: 1px; background: rgba(244,241,234,.28); }
.one-definition li { position: relative; padding-top: 5mm; text-align: center; }
.one-definition li::before { content: ""; position: absolute; top: 1mm; left: 50%; width: 2.5mm; height: 2.5mm; border: 1px solid var(--accent-soft); border-radius: 50%; background: var(--ink-deep); transform: translateX(-50%); }
.one-definition li b { margin-right: 1.5mm; color: var(--accent-soft); font: 650 6pt/1.4 var(--mono); }
.one-definition li span { font-size: 7.5pt; font-weight: 700; color: var(--white); }

/* ---- services on paper, site-style cards ---- */
.one-services { padding: 9mm 12mm 0; }
.one-section-head h2 { margin-top: 1.5mm; font: 710 15pt/1.3 var(--serif); }
.one-service-grid { margin-top: 4mm; display: grid; grid-template-columns: repeat(4, 1fr); gap: 3mm; }
.one-service-grid article { min-height: 57mm; padding: 4mm 3.5mm; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 1mm; background: var(--white); }
.one-service-grid article > span { color: var(--accent); font: 650 6.2pt/1.35 var(--mono); letter-spacing: .08em; }
.one-service-grid h3 { min-height: 13mm; margin: 2.5mm 0 2mm; font: 700 10.5pt/1.4 var(--serif); }
.one-service-grid p { color: var(--muted); font-size: 7.4pt; line-height: 1.62; }
.one-service-grid strong { margin-top: auto; padding-top: 2.5mm; color: var(--accent); border-top: 1px solid var(--line); font: 720 13.5pt/1.2 var(--serif); }
.one-service-grid strong small { display: block; margin-top: 1mm; font-size: 6.9pt; font-weight: 500; line-height: 1.5; color: var(--muted); white-space: normal; }

/* ---- bottom: light chart card + dark research card + white contact card ---- */
.one-bottom { margin-top: 10mm; padding: 0 12mm; display: grid; grid-template-columns: 1.22fr .78fr; gap: 4mm; }
.one-chart { position: relative; padding: 4.5mm 5mm; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 1mm; }
.one-chart figcaption h2 { margin-top: 1.5mm; font: 700 13pt/1.35 var(--serif); }
.one-chart figcaption > p:last-child { margin-top: 1mm; color: var(--muted); font-size: 7.2pt; }
.one-chart svg { width: 100%; height: 60mm; display: block; }
.one-chart-grid path { fill: none; stroke: #d8d2c6; stroke-width: 1; }
.one-chart-grid path:first-child { stroke: #8a8378; stroke-width: 1.5; }
.one-chart-area { fill: url(#one-fill); }
.one-chart-curve { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; }
.one-chart-points circle { fill: var(--white); stroke: var(--accent); stroke-width: 3; }
.one-chart-stages { position: absolute; right: 6mm; bottom: 4mm; left: 13mm; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2mm; }
.one-chart-stages span { color: var(--muted); font-size: 6.5pt; }
.one-chart-stages b { display: block; margin-bottom: .6mm; color: var(--ink); font: 650 7pt/1.3 var(--mono); }

.one-side { display: grid; grid-template-rows: 1fr auto; gap: 4mm; }
.one-research { position: relative; overflow: hidden; min-height: 44mm; padding: 4mm; display: grid; grid-template-columns: 24mm 1fr; align-items: center; gap: 4mm; color: var(--white); background: radial-gradient(circle at 85% 15%, rgba(228,61,61,.28), transparent 42%), linear-gradient(135deg, var(--ink-deep), #10161c 75%); text-decoration: none; border-radius: 1mm; isolation: isolate; }
.one-research img { width: 24mm; height: 34mm; object-fit: cover; }
.one-research .one-code { color: var(--accent-soft); }
.one-research h2 { margin-top: 1.5mm; font: 700 9.2pt/1.45 var(--serif); }
.one-research:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 2mm; }
.one-contact { min-height: 42mm; padding: 4mm; display: grid; grid-template-columns: 29mm 1fr; align-items: center; gap: 4mm; border: 1px solid var(--line); border-radius: 1mm; background: var(--white); }
.one-contact img { width: 29mm; height: 29mm; object-fit: contain; background: var(--white); }
.one-contact strong { display: block; margin: 2mm 0 1mm; font: 720 12pt/1.2 var(--serif); }
.one-contact span { color: var(--muted); font-size: 7pt; }

.one-foot { min-height: 9mm; margin: auto 12mm 0; padding: 3mm 0 6mm; display: flex; justify-content: space-between; align-items: end; gap: 5mm; color: var(--muted); border-top: 1px solid var(--line); font: 550 6.5pt/1.4 var(--mono); }

@media screen and (max-width: 820px) {
  body { padding: 52px 0 0; background: var(--paper); }
  .one-toolbar { min-height: 48px; padding: 7px 12px; justify-content: space-between; }
  .one-sheet { width: 100%; height: auto; min-height: 100svh; box-shadow: none; }
  .one-hero { padding: 30px 22px 26px; }
  .one-hero::after { width: 320px; height: 320px; top: -150px; right: -110px; }
  .one-intro { grid-template-columns: 1fr; gap: 20px; }
  .one-intro h1 { font-size: 42px; }
  .one-intro > div:last-child p { font-size: 15px; }
  .one-intro > div:last-child p + p { font-size: 13px; }
  .one-definition { margin-top: 26px; padding-top: 22px; }
  .one-definition h2 { font-size: 20px; }
  .one-definition ol { width: 100%; overflow-x: visible; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .one-definition li { min-width: 0; }
  .one-definition li b { display: block; margin-right: 0; font-size: 9px; }
  .one-definition li span { white-space: nowrap; font-size: clamp(9px, 2.8vw, 12px); }
  .one-services { padding: 30px 22px 0; }
  .one-section-head h2 { margin-top: 8px; font-size: 25px; }
  .one-service-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .one-service-grid article { min-height: 190px; padding: 20px; }
  .one-service-grid h3 { min-height: 0; font-size: 18px; }
  .one-service-grid p { font-size: 14px; }
  .one-service-grid strong { font-size: 19px; }
  .one-bottom { margin-top: 28px; padding: 0 22px; grid-template-columns: 1fr; }
  .one-chart { min-height: 430px; padding: 24px; }
  .one-chart figcaption h2 { font-size: 22px; }
  .one-chart figcaption > p:last-child { font-size: 13px; }
  .one-chart svg { height: 290px; }
  .one-chart-stages { right: 24px; bottom: 20px; left: 48px; }
  .one-chart-stages span, .one-chart-stages b { font-size: 11px; }
  .one-research { min-height: 170px; grid-template-columns: 105px 1fr; padding: 18px; }
  .one-research img { width: 105px; height: 148px; }
  .one-research h2 { font-size: 20px; }
  .one-contact { min-height: 145px; grid-template-columns: 112px 1fr; padding: 18px; }
  .one-contact img { width: 112px; height: 112px; }
  .one-contact strong { font-size: 24px; }
  .one-contact span { font-size: 13px; }
  .one-foot { margin: 28px 22px 0; padding: 14px 0 22px; flex-wrap: wrap; font-size: 10px; }
}

@media screen and (max-width: 520px) {
  .one-hero { padding-inline: 14px; }
  .one-definition ol::before { right: 8%; left: 8%; }
  .one-services, .one-bottom { padding-inline: 14px; }
  .one-service-grid { grid-template-columns: 1fr; }
  .one-service-grid article { min-height: 0; }
  .one-research { grid-template-columns: 88px 1fr; }
  .one-research img { width: 88px; height: 124px; }
  .one-foot { margin-inline: 14px; }
}

@media print {
  @page { size: A4 portrait; margin: 0; }
  html, body { width: 210mm; margin: 0; padding: 0; background: var(--paper); }
  .one-toolbar { display: none; }
  .one-sheet { margin: 0; box-shadow: none; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .one-hero, .one-research { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* Shared stage coordinates keep labels aligned with their curve markers. */
.one-service-grid [data-service="diagnosis"] h3 { max-width: 7em; }
.one-service-grid strong { min-height: 16mm; }
.one-service-grid .price-unit { margin-left: 1mm; font: 600 8pt/1.4 var(--sans); white-space: nowrap; }
.one-chart .aligned-chart { height: 60mm; margin-top: 3mm; font-family: var(--sans); }
.aligned-chart .stage-labels { font-family: var(--serif); }
.one-foot { gap: 3mm; font-size: 6pt; }
@media screen and (max-width:820px) {
  .one-service-grid [data-service="diagnosis"] h3 { max-width: none; }
  .one-service-grid .price-unit { font-size: 14px; }
  .one-service-grid strong small { font-size: 13px; }
  .one-chart { min-height: 0; }
  .one-chart .aligned-chart { height: auto; margin-top: 16px; }
  .one-foot { font-size: 10px; }
}

/* Contact email, 2026-09-10 */
.one-contact { padding: 3mm; column-gap: 3mm; row-gap: 1.5mm; }
.one-contact > div { min-width: 0; }
.one-contact .one-email { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 2mm; min-width: 0; margin: 0; padding-top: 1mm; border-top: 1px solid var(--line); }
.one-email span { white-space: nowrap; }
.one-email a { color: var(--accent); font: 650 8pt/1.35 Arial,sans-serif; text-decoration: none; overflow-wrap: anywhere; }
@media screen and (max-width: 820px) {
  .one-contact { padding: 18px; gap: 14px; }
  .one-contact .one-email { padding-top: 12px; gap: 10px; }
  .one-contact .one-email a { font-size: 14px; }
}
