/* ============================================================
   红影Agent — 纸本 · 朱批
   A paper-and-vermilion design system for an AI digital aide.
   ============================================================ */

:root {
  --paper: #f3ede1;
  --paper-2: #eae1cf;
  --paper-card: #faf6ec;
  --ink: #17140f;
  --ink-2: #2a241b;
  --muted: #6f6759;
  --line: rgba(23, 20, 15, .16);
  --line-strong: rgba(23, 20, 15, .32);
  --red: #c23b2b;
  --red-deep: #8e2418;
  --red-soft: rgba(194, 59, 43, .08);
  --jade: #2f6456;
  --gold: #9c7a33;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", "Songti SC", serif;
  --font-serif: "Noto Serif SC", "Songti SC", Georgia, serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-latin: "Cormorant Garamond", Georgia, serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-card: 0 24px 60px -30px rgba(23, 20, 15, .5);
  --head-h: 78px;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* paper grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='180' height='180' filter='url(%23n)' opacity='0.75'/></svg>");
}

img { max-width: 100%; height: auto; }

a { color: var(--red-deep); }

::selection { background: var(--red); color: #fff8ee; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

[id] { scroll-margin-top: calc(var(--head-h) + 16px); }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  text-decoration: none;
}
.skip:focus { left: 16px; }

/* ---------- Topbar ---------- */

.topbar {
  background: var(--ink);
  color: rgba(243, 237, 225, .8);
  font-size: 11.5px;
  letter-spacing: .12em;
  padding: 8px 0;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-left { display: inline-flex; align-items: center; gap: 9px; }
.topbar .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(194, 59, 43, .28);
  animation: blink 3.2s ease-in-out infinite;
}
.sep { opacity: .4; margin: 0 5px; }
.topbar-right { color: rgba(243, 237, 225, .55); }

/* ---------- Header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(243, 237, 225, .9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-strong);
  transition: box-shadow .3s var(--ease);
}
body.scrolled .site-head {
  box-shadow: 0 14px 34px -24px rgba(23, 20, 15, .5);
}
.head-inner {
  display: flex;
  align-items: center;
  gap: 34px;
  height: var(--head-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}

.brand-logo {
  display: block;
  height: 50px;
  width: auto;
}

.seal-brand {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #f7f0e2;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 1px;
  border-radius: 3px;
  transform: rotate(-2.5deg);
  box-shadow:
    inset 0 0 0 2px rgba(247, 240, 226, .6),
    inset 0 0 0 4px var(--red);
}

.brand-text strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .03em;
  line-height: 1.2;
}
.brand-text .en {
  font-family: var(--font-latin);
  font-style: italic;
  font-weight: 600;
  font-size: 21px;
  margin-left: 3px;
  letter-spacing: 0;
}
.brand-text small {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--muted);
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 27px;
}
.nav a {
  position: relative;
  padding: 6px 0;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  letter-spacing: .03em;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--red-deep); }
.nav a:hover::after { transform: scaleX(1); }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 15px;
  letter-spacing: .05em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border-radius: 2px;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease),
              box-shadow .25s var(--ease);
}
.btn-ink {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 12px 26px -18px rgba(23, 20, 15, .8);
}
.btn-ink:hover {
  background: var(--red-deep);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -18px rgba(142, 36, 24, .7);
}
.btn-line {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn-line:hover {
  border-color: var(--ink);
  background: rgba(250, 246, 236, .7);
  transform: translateY(-2px);
}
.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.head-cta { flex: none; margin-left: 4px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex: none;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- Type ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-latin);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .cn {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: none;
  color: var(--red);
}
.eyebrow i {
  display: block;
  width: 36px;
  height: 1px;
  background: var(--red);
  opacity: .7;
}

h1, h2, h3 { margin: 0; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(52px, 7.5vw, 104px) 0 clamp(70px, 8vw, 110px);
  overflow: hidden;
}
.hero-ink {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(85% 70% at 82% 8%, rgba(194, 59, 43, .11), transparent 60%),
    radial-gradient(70% 55% at 4% 96%, rgba(156, 122, 51, .09), transparent 62%);
}
.hero-ink::before {
  content: "";
  position: absolute;
  top: -20vw;
  right: -12vw;
  width: 58vw;
  height: 58vw;
  border: 1px solid rgba(194, 59, 43, .16);
  border-radius: 50%;
}
.hero-ink::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 142px,
    rgba(23, 20, 15, .035) 142px 143px
  );
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 88%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 88%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  margin: 22px 0 24px;
  font-family: var(--font-serif);
  font-size: clamp(38px, 4.4vw, 58px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: .01em;
}
.hero h1 .brush {
  position: relative;
  color: var(--red-deep);
  background-image: linear-gradient(
    91deg,
    rgba(194, 59, 43, 0),
    rgba(194, 59, 43, .42) 8%,
    rgba(194, 59, 43, .5) 55%,
    rgba(194, 59, 43, .38) 92%,
    rgba(194, 59, 43, 0)
  );
  background-repeat: no-repeat;
  background-size: 100% .13em;
  background-position: 0 96%;
  padding-bottom: .06em;
}

.lead {
  max-width: 35em;
  margin: 0;
  font-size: clamp(15px, 1.3vw, 17.5px);
  line-height: 1.95;
  color: var(--ink-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 38px;
}

.hero-meta {
  display: flex;
  gap: clamp(22px, 4vw, 48px);
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-meta div { min-width: 0; }
.hero-meta dt {
  font-family: var(--font-latin);
  font-size: 31px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}
.hero-meta dd {
  margin: 7px 0 0;
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--muted);
}

/* dossier card */
.hero-dossier {
  position: relative;
  padding: 14px 6px 18px;
}
.hero-dossier::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 128px;
  height: 24px;
  transform: translate(-50%, -2px) rotate(-2deg);
  background: rgba(156, 122, 51, .18);
  border-left: 1px dashed rgba(156, 122, 51, .35);
  border-right: 1px dashed rgba(156, 122, 51, .35);
}
.dossier {
  position: relative;
  padding: 28px 28px 18px;
  background: var(--paper-card);
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--red);
  box-shadow: var(--shadow-card);
  transform: rotate(1.1deg);
}
.dossier-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.dossier-no {
  font-family: var(--font-latin);
  font-size: 13.5px;
  letter-spacing: .12em;
  color: var(--muted);
}
.dossier-title {
  margin: 16px 0 4px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: .05em;
}
.dossier-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.dossier-list li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.d-time {
  font-family: var(--font-latin);
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--muted);
}
.d-label { font-size: 14px; }
.dossier-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--muted);
}
.dossier-sign {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--red-deep);
}

/* stamps */
.stamp {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid currentColor;
  font-family: var(--font-display);
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: .08em;
  white-space: nowrap;
  transform: rotate(-3deg);
}
.s-done { color: var(--jade); }
.s-work { color: var(--red); }
.s-wait { color: var(--gold); }
.stamp-live {
  color: var(--red);
  border-width: 1.5px;
  animation: pulse 2.6s ease-in-out infinite;
}

.seal-float {
  position: absolute;
  right: -14px;
  bottom: -22px;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.18;
  letter-spacing: .06em;
  color: var(--red);
  border: 2px solid var(--red);
  border-radius: 50%;
  background: rgba(194, 59, 43, .06);
  box-shadow: inset 0 0 0 4px rgba(194, 59, 43, .12);
  transform: rotate(-12deg);
  animation: stampIn .9s var(--ease) .55s both;
  mix-blend-mode: multiply;
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding: clamp(64px, 8.5vw, 116px) 0;
}
.sec-head {
  max-width: 780px;
  margin-bottom: clamp(34px, 4.5vw, 60px);
}
.sec-head h2 {
  margin: 18px 0 16px;
  font-family: var(--font-serif);
  font-size: clamp(29px, 3.5vw, 45px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: .01em;
}
.sec-lead {
  max-width: 48em;
  margin: 0;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--muted);
}

/* ---------- 01 ledger ---------- */

.ledger { border-top: 2px solid var(--ink); }
.ledger-row {
  position: relative;
  display: grid;
  grid-template-columns: 60px minmax(0, 1.45fr) minmax(0, 1fr) 128px;
  align-items: center;
  gap: clamp(16px, 3vw, 38px);
  padding: 26px 4px;
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease), padding .3s var(--ease);
}
.ledger-row::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 18%;
  bottom: 18%;
  width: 3px;
  background: var(--red);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.ledger-row:hover {
  background: rgba(250, 246, 236, .75);
  padding-left: 14px;
}
.ledger-row:hover::before { opacity: 1; }

.ledger-no {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(194, 59, 43, .45);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--red);
}
.ledger-main h3 {
  margin-bottom: 6px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
}
.ledger-main p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}
.ledger-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ledger-tags span {
  padding: 4px 10px;
  border: 1px solid var(--line);
  background: rgba(250, 246, 236, .55);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--ink-2);
}
.ledger-cadence {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.ledger-cadence b {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  color: var(--red-deep);
}
.ledger-cadence span {
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--muted);
}
.ledger-note {
  margin: 26px 0 0;
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--muted);
}

/* ---------- 02 flow ---------- */

.flow {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--line-strong);
}
.flow-step {
  position: relative;
  padding: 34px 26px 42px;
  border-right: 1px solid var(--line-strong);
  background: rgba(250, 246, 236, .35);
  transition: background .3s var(--ease);
}
.flow-step:hover { background: var(--paper-card); }
.f-no {
  display: block;
  margin-bottom: 20px;
  font-family: var(--font-latin);
  font-size: 54px;
  font-weight: 500;
  line-height: 1;
  color: rgba(23, 20, 15, .16);
  transition: color .3s var(--ease);
}
.flow-step:hover .f-no { color: rgba(194, 59, 43, .45); }
.flow-step h3 {
  margin-bottom: 10px;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
}
.flow-step p {
  min-height: 6.4em;
  margin: 0 0 26px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}
.f-stamp {
  display: inline-block;
  padding: 4px 10px;
  border: 1.5px solid rgba(194, 59, 43, .5);
  font-family: var(--font-display);
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--red);
  transform: rotate(-2deg);
  opacity: .85;
}

/* ---------- 03 daily ---------- */

.daily {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.daily::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 46vw;
  height: 46vw;
  border: 1px solid rgba(243, 237, 225, .08);
  border-radius: 50%;
}
.daily-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}
.daily .eyebrow { color: rgba(243, 237, 225, .5); }
.daily .eyebrow .cn { color: #de6a56; }
.daily .eyebrow i { background: #de6a56; }
.daily h2 {
  margin: 18px 0 16px;
  font-family: var(--font-serif);
  font-size: clamp(29px, 3.4vw, 44px);
  font-weight: 900;
  line-height: 1.32;
}
.daily .sec-lead { color: rgba(243, 237, 225, .62); }

.daily-notes {
  display: grid;
  gap: 14px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.daily-notes li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(243, 237, 225, .72);
}
.daily-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 6px;
  height: 6px;
  background: var(--red);
  transform: rotate(45deg);
}
.daily-notes b {
  font-weight: 500;
  color: var(--paper);
}

.report-wrap { position: relative; padding-bottom: 10px; }
.report {
  position: relative;
  padding: 26px 26px 18px;
  background: var(--paper-card);
  color: var(--ink);
  border-top: 3px solid var(--red);
  box-shadow: 0 34px 70px -30px rgba(0, 0, 0, .65);
  transform: rotate(-.7deg);
}
.report-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}
.report-title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: .06em;
}
.report-date {
  font-family: var(--font-latin);
  font-size: 14px;
  letter-spacing: .16em;
  color: var(--muted);
}
.report-list {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.report-list li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13.5px;
}
.r-time {
  font-family: var(--font-latin);
  letter-spacing: .04em;
  color: var(--muted);
}
.r-text { line-height: 1.65; }
.report-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--muted);
}
.report-sign {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--red-deep);
}
.report-stamp {
  position: absolute;
  right: 16px;
  bottom: -20px;
  padding: 8px 12px;
  border: 2px solid var(--red);
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .1em;
  color: var(--red);
  background: rgba(250, 246, 236, .92);
  box-shadow: 0 0 0 3px rgba(194, 59, 43, .1);
  transform: rotate(-7deg);
  animation: stampIn .8s var(--ease) both;
}

/* ---------- 04 fit ---------- */

.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
}
.fit-panel {
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid var(--line-strong);
  background: var(--paper-card);
}
.fit-panel h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
}
.fit-panel .mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
}
.fit-panel.good { border-top: 3px solid var(--jade); }
.fit-panel.good .mark { color: var(--jade); }
.fit-panel.bad { border-top: 3px solid rgba(23, 20, 15, .45); background: transparent; }
.fit-panel.bad .mark { color: var(--muted); }
.fit-panel ul {
  display: grid;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fit-panel li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}
.fit-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 8px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}
.fit-panel li b { font-weight: 500; color: var(--ink); }

/* ---------- 05 boundary ---------- */

.boundary {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}
.boundary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 32px);
}
.boundary-card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--paper-card);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.boundary-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 44px -30px rgba(23, 20, 15, .55);
}
.b-no {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  border: 1px solid rgba(194, 59, 43, .55);
  border-radius: 2px;
  background: var(--red-soft);
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--red);
}
.boundary-card h3 {
  margin-bottom: 12px;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
}
.boundary-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--muted);
}
.boundary-card a {
  color: var(--red-deep);
  text-underline-offset: 3px;
}

/* ---------- 06 faq ---------- */

.faq-list {
  max-width: 880px;
  border-top: 2px solid var(--ink);
}
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-latin);
  font-size: 25px;
  line-height: 1;
  color: var(--red);
  transition: transform .3s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details[open] summary { color: var(--red-deep); }
.faq-body {
  max-width: 64ch;
  padding: 0 4px 24px;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--muted);
}
.faq-body p { margin: 0; }

/* ---------- contact ---------- */

.contact { padding-bottom: clamp(64px, 8.5vw, 116px); }
.contact-panel {
  display: grid;
  grid-template-columns: 1.35fr .92fr;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--paper-card);
  box-shadow: var(--shadow-card);
}
.contact-main { padding: clamp(28px, 4vw, 56px); }
.contact-main h2 {
  margin: 18px 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 900;
  line-height: 1.32;
}
.contact-lead {
  max-width: 38em;
  margin: 0 0 30px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--muted);
}

.lead-form label {
  display: block;
  font-size: 12.5px;
  letter-spacing: .05em;
  color: var(--ink-2);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
}
.req { margin-left: 3px; color: var(--red); }

.lead-form input[type="text"],
.lead-form input[type="tel"],
.lead-form textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: rgba(243, 237, 225, .55);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  transition: border-color .2s var(--ease), background .2s var(--ease),
              box-shadow .2s var(--ease);
}
.lead-form input::placeholder,
.lead-form textarea::placeholder { color: rgba(111, 103, 89, .72); }
.lead-form input:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--red);
  background: #fffdf7;
  box-shadow: 0 0 0 3px rgba(194, 59, 43, .1);
}
.lead-form textarea { min-height: 112px; resize: vertical; }

.form-full { margin-top: 18px; }

label.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}
label.form-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex: none;
  margin: 3px 0 0;
  accent-color: var(--red);
}
label.form-consent a { color: var(--red-deep); }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}
.form-hint { font-size: 12px; color: var(--muted); }
.form-status {
  min-height: 1.3em;
  margin: 14px 0 0;
  font-size: 13px;
}
.form-status.is-ok { color: var(--jade); }
.form-status.is-err { color: var(--red); }

.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: clamp(28px, 4vw, 48px);
  background: var(--ink);
  color: var(--paper);
}
.side-label {
  display: block;
  margin-bottom: 9px;
  font-family: var(--font-latin);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(243, 237, 225, .48);
}
.side-phone {
  display: inline-block;
  font-family: var(--font-latin);
  font-size: 29px;
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--paper);
  text-decoration: none;
  transition: color .25s var(--ease);
}
.side-phone:hover { color: #e27662; }
.side-block p {
  margin: 9px 0 0;
  font-size: 12.5px;
  line-height: 1.8;
  color: rgba(243, 237, 225, .6);
}
.side-qr {
  width: 156px;
  padding: 10px;
  background: #fff;
}
.side-qr img { display: block; width: 100%; height: auto; }

/* ---------- footer ---------- */

.site-foot {
  padding: clamp(44px, 6vw, 72px) 0 36px;
  background: var(--ink);
  color: rgba(243, 237, 225, .68);
  border-top: 1px solid rgba(243, 237, 225, .1);
}
.foot-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(243, 237, 225, .14);
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.foot-logo {
  display: inline-flex;
  flex: none;
  padding: 8px 12px;
  background: var(--paper);
  border-radius: 2px;
}
.foot-logo img {
  display: block;
  height: 30px;
  width: auto;
}
.foot-brand .seal-brand { width: 42px; height: 42px; font-size: 15px; }
.foot-brand p {
  margin: 0;
  font-size: 13.5px;
  letter-spacing: .03em;
  color: rgba(243, 237, 225, .78);
}
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
}
.foot-nav a {
  font-size: 13px;
  color: rgba(243, 237, 225, .68);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.foot-nav a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
.foot-disclaimer {
  max-width: 72em;
  margin: 22px 0 0;
  font-size: 11.5px;
  line-height: 1.85;
  color: rgba(243, 237, 225, .42);
}
.foot-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 16px 0 0;
  font-size: 12px;
  color: rgba(243, 237, 225, .58);
}
.foot-legal a { color: inherit; }
.foot-legal a:hover { color: var(--paper); }
.foot-copy {
  margin: 14px 0 0;
  font-size: 11.5px;
  letter-spacing: .12em;
  color: rgba(243, 237, 225, .32);
}

/* ---------- Motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@keyframes stampIn {
  0%   { opacity: 0; transform: scale(1.55) rotate(-18deg); }
  62%  { opacity: 1; transform: scale(.96) rotate(-11deg); }
  100% { opacity: 1; transform: scale(1) rotate(-12deg); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .42; }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 54px; }
  .hero-dossier { max-width: 580px; }
  .hero h1 { font-size: clamp(36px, 6vw, 58px); }

  .ledger-row {
    grid-template-columns: 52px minmax(0, 1fr);
    row-gap: 12px;
  }
  .ledger-no { grid-column: 1; grid-row: 1; }
  .ledger-main { grid-column: 2; }
  .ledger-tags { grid-column: 2; }
  .ledger-cadence {
    grid-column: 2;
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
    padding-left: 0;
    border-left: 0;
  }

  .flow-grid { grid-template-columns: 1fr 1fr; }
  .flow-step { border-bottom: 1px solid var(--line-strong); }
  .flow-step p { min-height: 0; }

  .daily-grid { grid-template-columns: 1fr; }
  .report-wrap { max-width: 620px; }

  .contact-panel { grid-template-columns: 1fr; }
  .contact-side { flex-direction: row; flex-wrap: wrap; gap: 32px; }
  .side-block { flex: 1 1 200px; }
}

@media (max-width: 860px) {
  :root { --head-h: 68px; }

  .head-inner { justify-content: space-between; gap: 18px; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    background: var(--paper-card);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 28px 44px -30px rgba(23, 20, 15, .5);
  }
  .nav.open { display: flex; }
  .nav a {
    padding: 14px clamp(20px, 4vw, 48px);
    font-size: 16px;
    border-bottom: 1px solid rgba(23, 20, 15, .06);
  }
  .nav a::after { display: none; }
  .nav-toggle { display: inline-flex; }
  .head-cta { display: none; }

  .fit-grid { grid-template-columns: 1fr; }
  .boundary-grid { grid-template-columns: 1fr; }

  .foot-top { flex-direction: column; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }

  .topbar-right { display: none; }

  .brand-logo { height: 44px; }
  .foot-logo { padding: 7px 10px; }
  .foot-logo img { height: 26px; }
  .seal-brand { width: 40px; height: 40px; font-size: 15px; }
  .brand-text strong { font-size: 18px; }
  .brand-text .en { font-size: 19px; }

  .hero { padding-top: 44px; }
  .hero h1 { font-size: clamp(32px, 9vw, 44px); }
  .hero-actions { margin: 26px 0 32px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero-meta { gap: 24px; flex-wrap: wrap; }
  .hero-meta dt { font-size: 25px; }

  .hero-dossier { padding: 12px 0 16px; }
  .dossier { padding: 22px 18px 15px; transform: rotate(.6deg); }
  .dossier-title { font-size: 21px; }
  .dossier-list li { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px; }
  .d-label { font-size: 13px; }
  .seal-float {
    width: 74px;
    height: 74px;
    right: -2px;
    bottom: -16px;
    font-size: 14px;
  }

  .flow-grid { grid-template-columns: 1fr; }
  .flow-step { padding: 26px 22px 32px; }
  .f-no { font-size: 44px; margin-bottom: 14px; }

  .daily-notes li { font-size: 13.5px; }
  .report { transform: none; padding: 20px 18px 15px; }
  .report-stamp { right: 10px; bottom: -16px; font-size: 13px; }
  .report-foot { flex-direction: column; gap: 4px; }

  .form-grid { grid-template-columns: 1fr; }
  .contact-side { flex-direction: column; padding: 28px 22px; }
  .side-qr { width: 148px; }

  .faq-list summary { font-size: 15.5px; padding: 18px 2px; }

  .sec-head h2 br { display: none; }
  .hero h1 br { display: none; }
  .contact-main h2 br { display: none; }
  .daily h2 br { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
  }
  .reveal { opacity: 1; transform: none; }
}
