/* =========================================================
   문맥AI — Munmaek AI Consulting
   Static landing page styles
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --ink: #17201b;
  --ink-soft: #2d3a32;
  --ink-mute: #5b6760;
  --paper: #f6f3ec;
  --paper-warm: #fbf8f1;
  --fog: #e8e2d5;
  --fog-deep: #ddd5c2;
  --sage: #6f8a76;
  --sage-soft: #b8c8bc;
  --signal: #e5663f;
  --signal-soft: #f0b89c;

  --rule: rgba(23, 32, 27, 0.10);
  --rule-strong: rgba(23, 32, 27, 0.20);
  --shadow-doc: 0 28px 60px -28px rgba(23, 32, 27, 0.38),
                0 2px 6px -2px rgba(23, 32, 27, 0.10);
  --shadow-lift: 0 14px 36px -18px rgba(23, 32, 27, 0.28);

  --font-sans: 'Pretendard Variable', 'Pretendard',
               -apple-system, BlinkMacSystemFont,
               'Apple SD Gothic Neo', 'Noto Sans KR',
               'Malgun Gothic', 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;

  --container: 1180px;
  --pad-x: clamp(20px, 4vw, 40px);

  --t-fast: 180ms cubic-bezier(.2, .7, .25, 1);
  --t-base: 320ms cubic-bezier(.2, .7, .25, 1);
  --t-slow: 540ms cubic-bezier(.2, .7, .25, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01", "ss02", "tnum" 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast);
}
button { font: inherit; }
:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.brk-sm { display: none; }
.brk-md { display: none; }
@media (min-width: 560px) { .brk-sm { display: inline; } }
@media (min-width: 880px) { .brk-md { display: inline; } }

.kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 18px;
}
.kicker.on-ink { color: var(--signal-soft); }

.section-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-title {
  font-size: clamp(1.6rem, 2.4vw + 0.9rem, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.28;
  color: var(--ink);
}
.section-lead {
  margin-top: 18px;
  color: var(--ink-mute);
  font-size: 16px;
  line-height: 1.7;
}

/* ---------- Buttons / CTA ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: background var(--t-fast), color var(--t-fast),
              border-color var(--t-fast), transform var(--t-fast),
              box-shadow var(--t-fast);
  white-space: nowrap;
  cursor: pointer;
  text-align: center;
}
.cta-primary {
  background: var(--ink);
  color: var(--paper);
}
.cta-primary:hover { background: #0e1612; transform: translateY(-1px); }

.cta-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(23, 32, 27, 0.22);
}
.cta-ghost:hover {
  border-color: var(--ink);
  background: rgba(23, 32, 27, 0.04);
}
.cta-ghost .cta-arrow {
  transition: transform var(--t-fast);
}
.cta-ghost:hover .cta-arrow { transform: translateX(3px); }

.cta-ghost-light {
  background: transparent;
  color: var(--paper);
  border-color: rgba(246, 243, 236, 0.30);
  padding: 12px 18px;
  font-size: 14px;
}
.cta-ghost-light:hover {
  border-color: var(--paper);
  background: rgba(246, 243, 236, 0.06);
}

.cta-sm { padding: 9px 16px; font-size: 14px; }
.cta-lg { padding: 18px 28px; font-size: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 243, 236, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), background var(--t-base);
}
.site-header.is-scrolled {
  border-bottom-color: var(--rule);
  background: rgba(246, 243, 236, 0.92);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.brand-mark {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}
.brand-mark .bm {
  position: absolute;
  border-radius: 2px;
  transition: transform var(--t-base);
}
.brand-mark .bm-back {
  inset: 1px 6px 5px 0;
  background: var(--fog-deep);
}
.brand-mark .bm-front {
  inset: 5px 0 1px 5px;
  background: var(--ink);
}
.brand-mark .bm-mark {
  position: absolute;
  left: 7px;
  top: 12px;
  width: 8px;
  height: 2px;
  background: var(--signal);
  border-radius: 1px;
}
.brand:hover .bm-front { transform: translate(-1px, -1px); }
.brand:hover .bm-back { transform: translate(1px, 1px); }

.brand-text {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1;
  white-space: nowrap;
}
.brand-en {
  color: var(--sage);
  margin-left: 2px;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  margin-right: 8px;
}
.nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 2px;
  height: 1px;
  background: var(--ink);
  transition: right var(--t-base);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { right: 0; }

@media (max-width: 720px) {
  .nav { display: none; }
  .header-inner { gap: 12px; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 18% 14%, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(900px 500px at 88% 90%, rgba(232, 226, 213, 0.7), transparent 65%),
    var(--paper);
  padding: clamp(100px, 8vw + 40px, 140px) 0 clamp(80px, 10vw, 140px);
  min-height: min(900px, 92vh);
  isolation: isolate;
}
section[id] { scroll-margin-top: 80px; }
.hero::before {
  /* Soft top vignette toward header */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(246, 243, 236, 0.9), transparent);
  z-index: 1;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 760px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}
.eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(229, 102, 63, 0.12);
}

.hero-title {
  margin-top: 26px;
  font-size: clamp(2rem, 4.6vw + 0.4rem, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--ink);
}
.hero-title .line-a,
.hero-title .line-b {
  display: block;
}
.hero-title .line-b {
  color: var(--ink);
  background-image: linear-gradient(transparent 72%, rgba(229, 102, 63, 0.25) 72%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  padding: 0 2px;
  transition: background-size 900ms cubic-bezier(.2, .7, .25, 1) 500ms;
}
.is-loaded .hero-title .line-b { background-size: 100% 100%; }

.hero-sub {
  margin-top: 22px;
  max-width: 560px;
  font-size: clamp(15.5px, 0.9vw + 14px, 18px);
  line-height: 1.75;
  color: var(--ink-soft);
}

.hero-cta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-meta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px 28px;
  font-size: 13.5px;
  color: var(--ink-mute);
  letter-spacing: -0.005em;
}
.hero-meta li {
  position: relative;
  padding-left: 16px;
}
.hero-meta li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sage);
}

/* ---------- HERO SCENE ---------- */
.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* Ruled lanes — paper feel */
.rules {
  position: absolute;
  inset: 0;
}
.rules .rule {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--rule);
}
.rules .rule:nth-child(1) { top: 18%; }
.rules .rule:nth-child(2) { top: 32%; }
.rules .rule:nth-child(3) { top: 46%; }
.rules .rule:nth-child(4) { top: 60%; }
.rules .rule:nth-child(5) { top: 74%; }
.rules .rule:nth-child(6) { top: 88%; }
.rules .rule {
  /* fade the lines: visible only on the right side */
  background: linear-gradient(to right,
    transparent 0%, transparent 38%,
    var(--rule) 60%, var(--rule) 100%);
}

/* Documents */
.doc {
  position: absolute;
  background: #fffefa;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  box-shadow: var(--shadow-doc);
}
.doc-back {
  width: clamp(220px, 22vw, 320px);
  aspect-ratio: 3 / 4;
  right: clamp(180px, 22vw, 320px);
  top: clamp(80px, 11vw, 150px);
  transform: rotate(-7deg);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0.92;
  background: var(--paper-warm);
}
.doc-front {
  width: clamp(280px, 28vw, 400px);
  aspect-ratio: 4 / 5;
  right: clamp(-30px, 4vw, 60px);
  top: clamp(60px, 8vw, 110px);
  transform: rotate(3deg);
  padding: 26px 28px 28px;
  display: flex;
  flex-direction: column;
}
.doc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 22px;
}
.doc-tag {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--sage);
  background: rgba(111, 138, 118, 0.08);
  border: 1px solid var(--sage-soft);
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.doc-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(229, 102, 63, 0.12);
}
.doc-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

/* Document text lines */
.ln {
  height: 6px;
  background: rgba(23, 32, 27, 0.14);
  border-radius: 2px;
  display: block;
}
.ln.short { width: 58%; }
.ln.hl-sage {
  background: rgba(111, 138, 118, 0.32);
  height: 10px;
  position: relative;
}
.ln.hl-signal {
  background: rgba(229, 102, 63, 0.30);
  height: 10px;
  position: relative;
}

.doc-back .ln {
  background: rgba(23, 32, 27, 0.10);
}

/* Annotation connector + tag — sits left of doc, line points right toward a highlight */
.annot {
  position: absolute;
  right: clamp(180px, 22vw, 380px);
  top: clamp(170px, 17vw, 230px);
  display: inline-flex;
  align-items: center;
  gap: 0;
  z-index: 4;
}
.annot-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: var(--shadow-lift);
}
.annot-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--signal);
  flex: 0 0 6px;
}
.annot-line {
  width: clamp(28px, 4vw, 64px);
  height: 1px;
  background: var(--ink);
  position: relative;
}
.annot-line::after {
  content: "";
  position: absolute;
  right: -3px; top: -3px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ink);
}

/* Procedural flow strip at bottom-right */
.flow {
  position: absolute;
  right: clamp(20px, 4vw, 60px);
  bottom: clamp(36px, 5vw, 60px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--paper-warm);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  box-shadow: var(--shadow-lift);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  white-space: nowrap;
  z-index: 4;
}
.flow-step {
  padding: 0 2px;
}
.flow-edge {
  width: 18px;
  height: 1px;
  background: var(--rule-strong);
  position: relative;
}
.flow-edge::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -2px;
  width: 5px; height: 5px;
  border-right: 1px solid var(--ink-soft);
  border-top: 1px solid var(--ink-soft);
  transform: rotate(45deg);
}

/* Hide some scene elements on smaller screens for clarity */
@media (max-width: 960px) {
  .doc-back { display: none; }
  .doc-front {
    width: clamp(220px, 42vw, 320px);
    right: clamp(-40px, -2vw, 0px);
    top: clamp(60px, 10vw, 100px);
    transform: rotate(4deg);
    opacity: 0.95;
  }
  .annot { display: none; }
  .flow { display: none; }
  .rules .rule { opacity: 0.5; }
  .hero-inner { max-width: 100%; }
}
@media (max-width: 640px) {
  .doc-front {
    width: 220px;
    right: -60px;
    top: auto;
    bottom: -40px;
    opacity: 0.55;
    transform: rotate(8deg);
  }
  .hero { padding-bottom: 180px; }
  .hero-meta { gap: 14px 22px; }
}

/* ---------- PROBLEM ---------- */
.problem {
  padding: clamp(72px, 9vw, 120px) 0;
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
.problem .container { max-width: 1080px; }
.problem-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
  margin-top: 8px;
}
.problem-list li {
  padding-top: 22px;
  border-top: 1px solid var(--rule-strong);
}
.pnum {
  display: inline-block;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--sage);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.problem-list p {
  font-size: clamp(17px, 1vw + 13px, 21px);
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.psub {
  display: block;
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--ink-mute);
  line-height: 1.7;
}
@media (max-width: 820px) {
  .problem-list { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- SERVICES ---------- */
.services {
  padding: clamp(72px, 9vw, 120px) 0;
  background: var(--fog);
  border-top: 1px solid var(--rule);
}
.svc-list {
  max-width: 980px;
  margin: 0 auto;
  border-top: 1px solid var(--rule-strong);
}
.svc {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: start;
  gap: clamp(16px, 2vw, 32px);
  padding: clamp(24px, 3vw, 36px) clamp(8px, 1.5vw, 16px);
  border-bottom: 1px solid var(--rule-strong);
  position: relative;
  transition: background var(--t-base);
}
.svc::before {
  /* hover accent rail */
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--signal);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--t-base);
}
.svc:hover { background: rgba(255, 255, 255, 0.45); }
.svc:hover::before { transform: scaleY(1); }

.svc-no {
  font-size: 14px;
  font-weight: 700;
  color: var(--sage);
  letter-spacing: 0.08em;
  padding-top: 4px;
}
.svc h3 {
  font-size: clamp(20px, 1.4vw + 12px, 26px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.35;
}
.svc-meta {
  margin-top: 10px;
  color: var(--ink-mute);
  font-size: 15px;
  line-height: 1.7;
  max-width: 620px;
}
.svc-out {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--sage);
  font-weight: 600;
  letter-spacing: -0.005em;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-4px);
  transition: max-height var(--t-base), opacity var(--t-base), transform var(--t-base);
}
.svc:hover .svc-out,
.svc:focus-within .svc-out {
  max-height: 60px;
  opacity: 1;
  transform: translateY(0);
}
.svc-arrow {
  font-size: 20px;
  color: var(--ink-mute);
  padding-top: 4px;
  transition: transform var(--t-base), color var(--t-base);
}
.svc:hover .svc-arrow {
  color: var(--ink);
  transform: translateX(6px);
}

@media (max-width: 720px) {
  .svc {
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto;
    gap: 6px 14px;
    padding: 22px 4px;
  }
  .svc-arrow { display: none; }
  .svc-out {
    /* On touch/no-hover, always show outcome */
    max-height: 80px;
    opacity: 1;
    transform: none;
  }
  .svc::before { display: none; }
}

/* ---------- METHOD ---------- */
.method {
  padding: clamp(72px, 9vw, 120px) 0;
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2vw, 32px);
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
}
.steps::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 22px;
  height: 1px;
  background: var(--rule-strong);
  z-index: 0;
}
.step {
  position: relative;
  padding-top: 56px;
  z-index: 1;
}
.step-no {
  position: absolute;
  top: 0; left: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}
.step:first-child .step-no { background: var(--ink); color: var(--paper); }
.step h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.step p {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-mute);
}
@media (max-width: 820px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .steps::before { display: none; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- CASES ---------- */
.cases {
  padding: clamp(72px, 9vw, 120px) 0;
  background: var(--fog);
  border-top: 1px solid var(--rule);
}
.case-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule-strong);
  border: 1px solid var(--rule-strong);
  max-width: 980px;
  margin: 0 auto;
}
.case-list li {
  background: var(--paper);
  padding: clamp(24px, 3vw, 36px);
  transition: background var(--t-base);
  position: relative;
}
.case-list li:hover { background: var(--paper-warm); }
.case-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--sage);
  padding: 4px 10px;
  border: 1px solid var(--sage-soft);
  border-radius: 999px;
  margin-bottom: 18px;
}
.case-list h3 {
  font-size: clamp(18px, 1vw + 12px, 22px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.4;
}
.case-list p {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--ink-mute);
  line-height: 1.7;
}
@media (max-width: 700px) {
  .case-list { grid-template-columns: 1fr; }
}

/* ---------- FINAL CTA ---------- */
.final {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(80px, 11vw, 140px) 0;
  border-top: 1px solid var(--ink);
}
.final-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.final-bg .fb-line {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: rgba(246, 243, 236, 0.05);
}
.final-bg .fb-line:nth-child(1) { top: 24%; }
.final-bg .fb-line:nth-child(2) { top: 50%; }
.final-bg .fb-line:nth-child(3) { top: 76%; }
.final-bg::before {
  /* soft glow */
  content: "";
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 102, 63, 0.16), transparent 65%);
}
.final-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
}
.final-title {
  margin-top: 16px;
  font-size: clamp(1.8rem, 3vw + 0.8rem, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--paper);
}
.final-sub {
  margin-top: 22px;
  color: rgba(246, 243, 236, 0.78);
  font-size: 16px;
  line-height: 1.75;
}
.final-cta {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.final .cta-primary {
  background: var(--signal);
  color: #fff;
}
.final .cta-primary:hover { background: #d65a36; }

.final-meta {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 13px;
  color: rgba(246, 243, 236, 0.6);
  letter-spacing: -0.005em;
}
.final-meta li {
  position: relative;
  padding-left: 14px;
}
.final-meta li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--signal);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  padding: 40px 0 52px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: baseline;
  justify-content: space-between;
}
.foot-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.foot-en {
  font-size: 12.5px;
  color: var(--ink-mute);
  letter-spacing: -0.005em;
}
.foot-meta {
  font-size: 13px;
  color: var(--ink-mute);
}
.foot-fine {
  width: 100%;
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: -0.005em;
  border-top: 1px solid var(--rule);
  padding-top: 18px;
  margin-top: 8px;
}

/* =========================================================
   MOTION
   ========================================================= */

/* ---- Hero entrance (CSS) ---- */
[data-hero] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms cubic-bezier(.2, .7, .25, 1),
              transform 700ms cubic-bezier(.2, .7, .25, 1);
}
[data-hero].eyebrow      { transition-delay: 80ms; }
[data-hero].hero-title   { transition-delay: 160ms; }
[data-hero].hero-sub     { transition-delay: 260ms; }
[data-hero].hero-cta     { transition-delay: 340ms; }
[data-hero].hero-meta    { transition-delay: 420ms; }

.is-loaded [data-hero] {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Hero scene entrance ----
   Each scene element overrides its own resting transform on .is-loaded.
   The pre-loaded state nudges down + fades. */
[data-scene] {
  opacity: 0;
  transition: opacity 900ms cubic-bezier(.2, .7, .25, 1),
              transform 900ms cubic-bezier(.2, .7, .25, 1);
}
[data-scene].doc-back  { transform: translateY(18px) rotate(0deg); transition-delay: 200ms; }
[data-scene].doc-front { transform: translateY(18px) rotate(0deg); transition-delay: 320ms; }
[data-scene].annot     { transform: translateY(10px); transition-delay: 560ms; }
[data-scene].flow      { transform: translateY(12px); transition-delay: 680ms; }

.is-loaded [data-scene] { opacity: 1; }
.is-loaded [data-scene].doc-back  { transform: translateY(0) rotate(-7deg); }
.is-loaded [data-scene].doc-front { transform: translateY(0) rotate(3deg); }
.is-loaded [data-scene].annot     { transform: translateY(0); }
.is-loaded [data-scene].flow      { transform: translateY(0); }

@media (max-width: 960px) {
  .is-loaded [data-scene].doc-front { transform: translateY(0) rotate(4deg); }
}
@media (max-width: 640px) {
  .is-loaded [data-scene].doc-front {
    transform: translateY(0) rotate(8deg);
    opacity: 0.55;
  }
}

/* ---- Rules entrance ---- */
.rules .rule {
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 1100ms cubic-bezier(.2, .7, .25, 1);
}
.rules .rule:nth-child(1) { transition-delay: 80ms; }
.rules .rule:nth-child(2) { transition-delay: 160ms; }
.rules .rule:nth-child(3) { transition-delay: 240ms; }
.rules .rule:nth-child(4) { transition-delay: 320ms; }
.rules .rule:nth-child(5) { transition-delay: 400ms; }
.rules .rule:nth-child(6) { transition-delay: 480ms; }
.is-loaded .rules .rule { transform: scaleX(1); }

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms cubic-bezier(.2, .7, .25, 1),
              transform 700ms cubic-bezier(.2, .7, .25, 1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
  [data-hero],
  [data-scene],
  .rules .rule,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .is-loaded [data-scene].doc-back  { transform: translateY(0) rotate(-7deg) !important; }
  .is-loaded [data-scene].doc-front { transform: translateY(0) rotate(3deg) !important; }
  .is-loaded [data-scene].annot     { transform: translateY(0) !important; }
  .is-loaded [data-scene].flow      { transform: translateY(0) !important; }
  .hero-title .line-b { background-size: 100% 100% !important; }
}
