/* site.css — Thiên Cơ Thủy Tạ · shared UI
   Division of labour (§30.2): background = heritage/atmosphere (chronoscape.js), panels = rigour/computation.
   The UI never changes with season or hour (§40); only the scene behind it does. */

:root {
  color-scheme: light;
  --ivory: #F6F1E7; --ivory-2: #EDE6D8; --ivory-3: #E2D9C6;
  --ink: #1D1B18; --ink-2: #47433C; --ink-3: #6F6A61; --gray: #7B8088; --line: #D8CFBC; --line-2: #EAE3D3;
  --gold: #B48F3B; --gold-2: #D6B76A; --gold-3: #F1E5C2; --cinnabar: #A8392B; --cinnabar-2: #8C2E22; --blue: #3F5B84;
  /* Semantic colours: relationship state only, never element identity (§19). */
  --s-self: #B48F3B; --s-good: #3B7A4F; --s-bad: #B23A2E; --s-neutral: #4D6A94; --s-mixed: #C7882A;
  --scene-ink: #F4EFE6;
  --font-ui: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", "Noto Serif", Georgia, "Times New Roman", serif;
  --font-han: "Noto Serif TC", "Songti TC", "PingFang TC", "Noto Serif CJK TC", serif;
  --radius: 8px;
  --shadow: 0 30px 80px rgba(4, 8, 18, .38), 0 4px 14px rgba(4, 8, 18, .18);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.3 0 0 0 0 0.2 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body { font-family: var(--font-ui); font-size: 16px; line-height: 1.6; color: var(--scene-ink); background: #0b1020;
       -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ivory); color: var(--ink); padding: 8px 12px; z-index: 100; border-radius: 4px; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.tc-header { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; gap: 18px;
             padding: 14px clamp(16px, 3vw, 40px) 26px; background: linear-gradient(rgba(4, 8, 18, .72), rgba(4, 8, 18, .28) 70%, rgba(4, 8, 18, 0));
             color: var(--scene-ink); pointer-events: none; }
.tc-header > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 30px; height: 30px; border-radius: 3px; background: var(--cinnabar); color: var(--ivory); display: grid; place-items: center;
               font-family: var(--font-han); font-size: 14px; letter-spacing: 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__vi { font-family: var(--font-serif); font-size: 15px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; white-space: nowrap; }
.brand__han { font-family: var(--font-han); font-size: 11px; letter-spacing: .3em; opacity: .75; margin-top: 3px; }
.tc-nav { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.tc-nav a { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; padding: 8px 8px; border-radius: 4px; opacity: .82; white-space: nowrap; }
.tc-nav a:hover { opacity: 1; background: rgba(255, 255, 255, .08); }
.tc-nav a[aria-current="page"] { opacity: 1; box-shadow: inset 0 -2px 0 var(--gold-2); }
.tc-util { display: flex; gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 6px; border: 1px solid transparent; white-space: nowrap;
       font: 500 14px/1.2 var(--font-ui); letter-spacing: .04em; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.btn--primary { background: var(--cinnabar); color: var(--ivory); box-shadow: 0 8px 20px rgba(168, 57, 43, .28); }
.btn--primary:hover { background: var(--cinnabar-2); transform: translateY(-1px); }
.btn--ghost { border-color: var(--gold); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--gold-3); }
.btn--scene { border-color: rgba(255, 255, 255, .45); color: var(--scene-ink); background: rgba(4, 8, 18, .25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--scene:hover { background: rgba(4, 8, 18, .45); }
.btn--small { padding: 7px 12px; font-size: 12px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Page rhythm ---------- */
main { display: block; padding-top: 88px; }
section { padding: 6vh 0; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.wrap--reading { width: min(820px, calc(100% - 32px)); }
.hero { min-height: 100svh; display: grid; place-items: center; padding: 96px 0 72px; position: relative; }
.hero__scroll-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; opacity: .7; }

/* ---------- Scroll panels (§31): smooth ivory, gold rails, seal accents, no parchment ---------- */
.scroll { position: relative; background: var(--ivory); background-image: var(--grain); color: var(--ink); border-radius: var(--radius);
          box-shadow: var(--shadow); padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 52px); }
.scroll::before, .scroll::after { content: ""; position: absolute; left: 16px; right: 16px; height: 2px; pointer-events: none;
          background: linear-gradient(90deg, transparent, var(--gold) 6%, var(--gold-2) 50%, var(--gold) 94%, transparent); }
.scroll::before { top: 9px; } .scroll::after { bottom: 9px; }
.wrap > .scroll + .scroll { margin-top: 28px; }
/* Rod variant: bronze rods with gold knobs and a compass medallion, for the primary scroll on a page. */
.scroll--rod { border-radius: 3px; margin-top: 22px; margin-bottom: 22px; }
.scroll--rod::before, .scroll--rod::after { left: -22px; right: -22px; height: 38px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='17.5' fill='%232d2516' stroke='%23d6b76a' stroke-width='1.6'/%3E%3Ccircle cx='20' cy='20' r='11.5' fill='none' stroke='%23d6b76a' stroke-width='.8'/%3E%3Cpath d='M20 4.5v31M4.5 20h31M9 9l22 22M31 9L9 31' stroke='%23d6b76a' stroke-width='.8'/%3E%3Cpath d='M20 9l2.4 8.6L31 20l-8.6 2.4L20 31l-2.4-8.6L9 20l8.6-2.4z' fill='%23b48f3b'/%3E%3Ccircle cx='20' cy='20' r='3.2' fill='%23a8392b'/%3E%3C/svg%3E") center / 36px 36px no-repeat,
    radial-gradient(circle at 11px 50%, #f0dc9c 0 2px, #d6b76a 3px 6px, #7d6330 7px 8px, transparent 9px) left center / 24px 100% no-repeat,
    radial-gradient(circle at calc(100% - 11px) 50%, #f0dc9c 0 2px, #d6b76a 3px 6px, #7d6330 7px 8px, transparent 9px) right center / 24px 100% no-repeat,
    linear-gradient(180deg, #8c7648 0%, #3b3121 38%, #221b10 62%, #9a8452 100%) center / calc(100% - 32px) 10px no-repeat; }
.scroll--rod::before { top: -19px; } .scroll--rod::after { bottom: -19px; }
.scroll--center { text-align: center; }
.scroll--tight { padding: 22px 24px; }
.scroll--muted { background-color: rgba(246, 241, 231, .92); }

.kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.scroll--center .kicker { justify-content: center; }
.seal-mark { width: 22px; height: 22px; border-radius: 2px; background: var(--cinnabar); color: var(--ivory); display: inline-grid; place-items: center;
             font-family: var(--font-han); font-size: 11px; line-height: 1; flex: none; letter-spacing: 0; }
.seal-mark--lg { width: 44px; height: 44px; font-size: 20px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 500; line-height: 1.15; margin: 0 0 14px; color: var(--ink); letter-spacing: .01em; text-wrap: balance; }
h1 { font-size: clamp(34px, 5.4vw, 60px); letter-spacing: .06em; text-transform: uppercase; }
h2 { font-size: clamp(26px, 3.6vw, 38px); }
h3 { font-size: 21px; margin-top: 6px; }
h4 { font-size: 16px; font-family: var(--font-ui); font-weight: 600; margin-bottom: 8px; }
.han { font-family: var(--font-han); }
.han--title { font-size: clamp(20px, 2.6vw, 28px); letter-spacing: .4em; color: var(--ink-2); margin: -4px 0 18px; }
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }
.lead { font-size: 18px; line-height: 1.65; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.credo { font-family: var(--font-serif); font-style: italic; font-size: clamp(19px, 2.4vw, 24px); color: var(--ink-2); margin: 10px 0 22px; }
.credo b { font-style: normal; font-weight: 500; color: var(--cinnabar); }
.positioning { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; font-weight: 500; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }
.rule--gold { border-top-color: var(--gold-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.scroll--center .actions { justify-content: center; }
.moment { margin-top: 26px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); display: inline-flex; gap: 10px; align-items: center; }
.moment::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.on-scene { color: var(--scene-ink); text-shadow: 0 2px 12px rgba(0, 0, 0, .55); }

blockquote { margin: 22px 0; padding: 6px 0 6px 20px; border-left: 2px solid var(--gold-2); font-family: var(--font-serif); font-style: italic; font-size: 18px; color: var(--ink-2); }
ul, ol { margin: 0 0 14px 22px; padding: 0; }
li { margin-bottom: 6px; }
code, .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .92em; }
pre { background: var(--ivory-2); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; overflow-x: auto; font-size: 13px; line-height: 1.5; margin: 0 0 14px; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 18px; }
.grid > *, .years > *, .week > *, .hours > *, .pillars > *, .systems > *, .bar-row > * { min-width: 0; }
.chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--seal { grid-template-columns: minmax(0, 480px) minmax(0, 1fr); align-items: start; gap: 32px; }
.card { border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; background: rgba(255, 255, 255, .35); }
.card--flat { background: transparent; }
.card h3 { font-size: 19px; }
.card h4 { margin-top: 0; }
.card__foot { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--ink-3); }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 10px 0 6px; }
.pillar { border: 1px solid var(--line); border-radius: 6px; padding: 14px 8px 12px; text-align: center; background: rgba(255, 255, 255, .4); position: relative; }
.pillar--self { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold-3); }
.pillar--self::after { content: "Nhật Chủ"; position: absolute; top: -9px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--ivory); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.pillar--empty { border-style: dashed; color: var(--ink-3); }
.pillar__label { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.pillar__han { font-family: var(--font-han); font-size: 36px; line-height: 1.05; color: var(--ink); }
.pillar__vi { font-size: 14px; font-weight: 500; margin-top: 6px; }
.pillar__sub { font-size: 11px; color: var(--ink-3); margin-top: 4px; }
.pillar__gods { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: 8px; }
.tag { display: inline-block; padding: 2px 7px; border-radius: 3px; background: var(--ivory-2); border: 1px solid var(--line); font-size: 10.5px; letter-spacing: .04em; color: var(--ink-2); white-space: nowrap; }
.tag--gold { background: var(--gold-3); border-color: var(--gold-2); }

/* ---------- Semantic state chips (colour + glyph + text: never colour alone) ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 500; letter-spacing: .02em;
        border: 1px solid; white-space: nowrap; line-height: 1.5; }
.chip__glyph { font-size: 9px; }
.chip--self { color: var(--s-self); border-color: var(--s-self); background: rgba(180, 143, 59, .12); }
.chip--favorable { color: var(--s-good); border-color: var(--s-good); background: rgba(59, 122, 79, .1); }
.chip--adverse { color: var(--s-bad); border-color: var(--s-bad); background: rgba(178, 58, 46, .09); }
.chip--neutral { color: var(--s-neutral); border-color: var(--s-neutral); background: rgba(77, 106, 148, .08); }
.chip--mixed { color: var(--s-mixed); border-color: var(--s-mixed); background: rgba(199, 136, 42, .12); }
.state-bar { height: 4px; border-radius: 2px; background: var(--ivory-3); }
.state-bar--self { background: var(--s-self); } .state-bar--favorable { background: var(--s-good); } .state-bar--adverse { background: var(--s-bad); }
.state-bar--neutral { background: var(--s-neutral); } .state-bar--mixed { background: var(--s-mixed); }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ---------- Data tables ---------- */
.data { width: 100%; border-collapse: collapse; font-size: 14px; }
.data th, .data td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.data th { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.data td.num { font-variant-numeric: tabular-nums; }
.data tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; font-size: 14px; }
dl.kv dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
dl.kv dd { margin: 0; font-variant-numeric: tabular-nums; }

/* ---------- Bars (career) ---------- */
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 180px 1fr 44px; gap: 12px; align-items: center; font-size: 14px; }
.bar { height: 8px; background: var(--ivory-3); border-radius: 4px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 4px; }
.bar-row .num { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }

/* ---------- Timing strip ---------- */
.years { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.year { border: 1px solid var(--line); border-radius: 6px; padding: 12px 10px 10px; background: rgba(255, 255, 255, .4); border-top-width: 4px; }
.year--favorable { border-top-color: var(--s-good); } .year--adverse { border-top-color: var(--s-bad); }
.year--mixed { border-top-color: var(--s-mixed); } .year--neutral { border-top-color: var(--s-neutral); }
.year__y { font-family: var(--font-serif); font-size: 20px; }
.year__p { font-size: 12px; color: var(--ink-2); }
.year__l { font-size: 11.5px; margin-top: 8px; line-height: 1.4; }
.year__t { font-size: 11px; color: var(--ink-3); margin-top: 4px; }

/* ---------- Hours strip ---------- */
.hours { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.hour { border: 1px solid var(--line); border-radius: 5px; padding: 8px 4px 6px; text-align: center; background: rgba(255, 255, 255, .4); }
.hour--now { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold-3); }
.hour__han { font-family: var(--font-han); font-size: 18px; line-height: 1; }
.hour__vi { font-size: 11px; margin-top: 4px; }
.hour__t { font-size: 10px; color: var(--ink-3); }
.hour .state-bar { margin-top: 6px; }

/* ---------- Week strip ---------- */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.day { border: 1px solid var(--line); border-radius: 6px; padding: 10px 8px; text-align: center; background: rgba(255, 255, 255, .4); }
.day--today { border-color: var(--gold); }
.day__d { font-family: var(--font-serif); font-size: 18px; }
.day__w { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.day__p { font-size: 12px; margin-top: 4px; }
.day .state-bar { margin-top: 8px; }
.day__t { font-size: 10.5px; color: var(--ink-3); margin-top: 6px; line-height: 1.3; }

/* ---------- Actionables ---------- */
.action-list { display: grid; gap: 12px; }
.action { display: grid; grid-template-columns: 6px 1fr; gap: 14px; border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px 14px 12px; background: rgba(255, 255, 255, .4); }
.action > i { border-radius: 3px; }
.action--favorable > i { background: var(--s-good); } .action--adverse > i { background: var(--s-bad); }
.action--neutral > i { background: var(--s-neutral); } .action--mixed > i { background: var(--s-mixed); }
.action h4 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.action p { font-size: 14px; color: var(--ink-2); }
details.evidence { margin-top: 8px; font-size: 13px; }
details.evidence summary { cursor: pointer; color: var(--blue); font-weight: 500; list-style: none; display: inline-flex; gap: 6px; align-items: center; }
details.evidence summary::before { content: "▸"; font-size: 10px; }
details[open].evidence summary::before { content: "▾"; }
details.evidence ul { margin-top: 8px; font-size: 12.5px; color: var(--ink-2); }
details.evidence .mono { color: var(--ink-3); }

/* ---------- Forms (onboarding) ---------- */
.field { display: grid; gap: 6px; }
.field label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.field input, .field select { font: 15px var(--font-ui); padding: 10px 12px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--ink); width: 100%; }
.field input:focus, .field select:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px var(--gold-3); }
.field .why { font-size: 12px; color: var(--ink-3); }
.fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fields--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field--wide { grid-column: 1 / -1; }
.step { border-top: 1px solid var(--line); padding: 22px 0; display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.step:first-of-type { border-top: 0; }
.step__n { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; font-family: var(--font-serif); font-size: 15px; }
.step--done .step__n { background: var(--gold); color: var(--ivory); }
.step h3 { margin-top: 2px; font-size: 19px; }
.reveal { margin-top: 14px; border-left: 2px solid var(--gold-2); padding: 8px 14px; background: rgba(255, 255, 255, .45); border-radius: 0 6px 6px 0; font-size: 14px; }
.reveal:empty { display: none; }
.reveal b { font-weight: 600; }
.notice { border: 1px solid var(--s-mixed); background: rgba(199, 136, 42, .1); border-radius: 6px; padding: 10px 14px; font-size: 13px; margin-top: 12px; }
.notice--bad { border-color: var(--s-bad); background: rgba(178, 58, 46, .08); }
.notice--info { border-color: var(--s-neutral); background: rgba(77, 106, 148, .08); }
.radio-row { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-row label { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 13px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; background: #fff; letter-spacing: 0; text-transform: none; color: var(--ink); white-space: nowrap; }
.radio-row input { margin: 0; accent-color: var(--cinnabar); }
.radio-row input:checked + span { font-weight: 600; }

/* ---------- Seal figure ---------- */
.seal-figure { position: relative; }
.seal-figure svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .12)); }
.seal-id { text-align: center; font-family: ui-monospace, Menlo, monospace; font-size: 12px; letter-spacing: .2em; color: var(--ink-3); margin-top: 10px; }
.seal-caption { font-size: 12.5px; color: var(--ink-3); text-align: center; margin-top: 6px; }

/* ---------- Lá số tổng quan (hero scroll) + scene captions ---------- */
.hero--overview { padding: 84px 0 64px; overflow: hidden; }
.wrap--overview { width: min(780px, calc(100% - 72px)); }
.overview { padding: 34px clamp(22px, 4vw, 44px) 28px; }
.overview__head { text-align: center; margin-bottom: 18px; }
.overview__title { font-size: clamp(22px, 2.8vw, 30px); letter-spacing: .1em; text-transform: uppercase; display: inline-flex; gap: 12px; align-items: center; margin: 0 0 6px; }
.overview__sub { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); margin: 0; }
.overview__body { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 24px; align-items: center; }
.overview__kv { border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; background: rgba(255, 255, 255, .38); gap: 7px 16px; font-size: 13.5px; }
.overview__kv dt { padding-top: 2px; }
.overview__kv dd { line-height: 1.45; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.tile { border: 1px solid var(--line); border-radius: 6px; padding: 16px 8px 14px; text-align: center; background: rgba(255, 255, 255, .38); }
.tile svg { width: 26px; height: 26px; stroke: var(--gold); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tile__l { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); margin-top: 8px; font-weight: 500; }
.tile__v { font-family: var(--font-serif); font-size: 26px; line-height: 1.2; margin-top: 2px; }
.tile__v small { font-family: var(--font-ui); font-size: 12px; color: var(--ink-3); }
.conclusion { position: relative; margin-top: 18px; border: 1px solid var(--line); border-radius: 6px; padding: 16px 70px 14px 22px; background: rgba(255, 255, 255, .38); }
.conclusion::before { content: ""; position: absolute; left: -1px; top: 18px; width: 3px; height: 22px; background: var(--cinnabar); border-radius: 0 2px 2px 0; }
.conclusion h3 { font-family: var(--font-ui); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; }
.conclusion p { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.conclusion__stamp { position: absolute; right: 18px; top: 16px; width: 36px; height: 36px; border: 1.5px solid var(--cinnabar); color: var(--cinnabar); border-radius: 3px;
                     display: grid; place-items: center; font-size: 17px; opacity: .85; transform: rotate(-6deg); }
.overview__actions { display: flex; justify-content: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.overview__note { text-align: center; margin: 14px 0 0; }
.hero-cap { position: absolute; max-width: 240px; text-shadow: 0 1px 3px rgba(0, 0, 0, .9), 0 3px 18px rgba(0, 0, 0, .85), 0 0 40px rgba(0, 0, 0, .5); color: var(--scene-ink); z-index: 1; }
.hero-cap--tl { left: clamp(16px, 3vw, 52px); top: 104px; }
.hero-cap--tr { right: clamp(16px, 3vw, 52px); top: 104px; text-align: right; }
.hero-cap--bl, .hero-cap--br { bottom: 56px; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; line-height: 1.8; }
.hero-cap--bl { left: clamp(16px, 3vw, 52px); }
.hero-cap--br { right: clamp(16px, 3vw, 52px); text-align: right; }
.hero-cap__brand { font-family: var(--font-serif); font-size: 31px; line-height: 1.12; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; color: var(--scene-ink); font-weight: 500; }
.hero-cap__credo { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; line-height: 1.75; margin-bottom: 14px; }
.hero-cap__line { font-family: var(--font-serif); font-size: 19px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.4; color: var(--gold-2); margin-bottom: 10px; }
.hero-cap__en { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; line-height: 1.8; opacity: .85; }
.hero-cap .seal-mark--lg { margin-bottom: 12px; box-shadow: 0 6px 18px rgba(0, 0, 0, .4); }
.hero-cap--tr .seal-mark--lg { margin-left: auto; }
.hero__foot { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; text-align: center; opacity: .8; }
.hero__foot::before { content: "▾"; display: block; font-size: 14px; margin-bottom: 2px; color: var(--gold-2); }

/* ---------- Feature list / systems ---------- */
.systems { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.system { border: 1px solid var(--line); border-radius: 6px; padding: 16px 14px; background: rgba(255, 255, 255, .4); }
.system__han { font-family: var(--font-han); font-size: 22px; color: var(--ink-2); }
.system h4 { margin: 6px 0 6px; font-size: 15px; }
.system p { font-size: 12.5px; color: var(--ink-2); margin: 0; }
.system__phase { display: inline-block; margin-top: 10px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }

.price { font-family: var(--font-serif); font-size: 44px; line-height: 1; }
.price small { font-family: var(--font-ui); font-size: 14px; color: var(--ink-3); }
.check { list-style: none; margin-left: 0; }
.check li { padding-left: 22px; position: relative; }
.check li::before { content: "◆"; position: absolute; left: 0; top: 1px; font-size: 9px; color: var(--gold); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { font: 13px var(--font-ui); padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; }
.chips button:hover { border-color: var(--gold); }
textarea.ask { width: 100%; min-height: 96px; font: 15px/1.5 var(--font-ui); padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); resize: vertical; }

/* ---------- Footer ---------- */
.tc-footer { padding: 30px 0 110px; color: var(--scene-ink); text-shadow: 0 1px 8px rgba(0, 0, 0, .6); font-size: 12.5px; }
.tc-footer .wrap { display: grid; gap: 18px; }
.tc-footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.tc-footer a { text-decoration: none; opacity: .85; }
.tc-footer a:hover { opacity: 1; text-decoration: underline; }
.tc-footer .legal { opacity: .8; line-height: 1.55; max-width: 80ch; }
.tc-footer .versions { font-family: ui-monospace, Menlo, monospace; font-size: 11px; opacity: .7; }

/* ---------- Mobile tab bar (§43) ---------- */
.tc-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: none; grid-template-columns: repeat(5, 1fr); background: var(--ivory);
             border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px rgba(0, 0, 0, .25); }
.tc-tabbar a { display: grid; justify-items: center; gap: 3px; text-decoration: none; color: var(--ink-3); font-size: 10px; letter-spacing: .06em; padding: 4px 0; }
.tc-tabbar a svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tc-tabbar a[aria-current="page"] { color: var(--cinnabar); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid--seal { grid-template-columns: 1fr; }
  .systems { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .years { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hours { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .hero-cap--tr, .hero-cap--bl, .hero-cap--br { display: none; }
  .hero--overview { display: block; padding-top: 96px; }
  .hero-cap--tl { position: static; max-width: none; text-align: center; margin: 0 auto 26px; }
  .hero-cap--tl .seal-mark--lg { display: none; }
  .hero-cap__brand { font-size: 28px; }
}
@media (max-width: 1100px) {
  .tc-nav { display: none; }
  .tc-tabbar { display: grid; }
  body { padding-bottom: 64px; }
  .tc-header { padding-bottom: 20px; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  main { padding-top: 76px; }
  h1 { font-size: 29px; letter-spacing: .04em; }
  .scroll { padding: 26px 20px; border-radius: 6px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .systems { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fields, .fields--2 { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 120px 1fr 40px; font-size: 13px; }
  .years { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hours { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .step { grid-template-columns: 1fr; }
  .step__n { display: none; }
  .wrap--overview { width: calc(100% - 48px); }
  .overview { padding: 26px 18px 22px; }
  .overview__body { grid-template-columns: 1fr; gap: 16px; }
  .overview__seal { max-width: 320px; margin: 0 auto; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .conclusion { padding: 14px 16px 14px 18px; }
  .conclusion__stamp { position: static; display: inline-grid; margin-top: 10px; transform: none; }
  .hero-cap__brand { font-size: 24px; }
  .hero__foot { display: none; }
  dl.kv { grid-template-columns: 1fr; gap: 2px 0; }
  dl.kv dd { margin-bottom: 8px; }
  .brand__han { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
