:root {
  --cin-paper: #f6f0e5;
  --cin-paper-deep: #ece3d3;
  --cin-ink: #2a241c;
  --cin-muted: #776d5e;
  --cin-faint: #9d927f;
  --cin-line: #d9cdb9;
  --cin-gold: #c6a15b;
  --cin-gold-light: #e4cb99;
  --cin-dark: #211a12;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", "Iowan Old Style", Palatino, Georgia, serif;
  --mono: "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
  --paper: var(--cin-paper);
  --paper-2: #fbf7ee;
  --ink: var(--cin-ink);
  --ink-2: #493f32;
  --muted: var(--cin-muted);
  --faint: var(--cin-faint);
  --line: var(--cin-line);
  --line-strong: #c6b79e;
  --accent: var(--cin-gold);
  --accent-deep: #9e7b3e;
}

html, body { background: var(--cin-paper); color: var(--cin-ink); }
#app { padding-left: 0; }
.side-rail, .mobile-bar { display: none; }
body { font-family: var(--sans); }

.site-nav {
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1400px, calc(100% - 72px));
  margin: 0 auto;
  padding: 18px 0;
}
.site-nav.nav-overlay {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 250, 240, 0.92);
}
.site-nav.nav-paper {
  position: sticky;
  top: 0;
  color: var(--cin-ink);
  background: rgba(246, 240, 229, 0.94);
  border-bottom: 1px solid var(--cin-line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; }
.nav-seal {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--cin-gold-light);
  font-size: 13px;
}
.nav-paper .nav-seal { color: var(--cin-gold); }
.nav-brand-text { display: flex; flex-direction: column; gap: 0; }
.nav-brand-text strong { color: inherit; font-family: var(--serif); font-size: 17px; font-weight: 500; letter-spacing: 0.04em; }
.nav-brand-text small { color: currentColor; opacity: 0.55; font-family: var(--mono); font-size: 7px; letter-spacing: 0.18em; }

.nav-center { display: flex; align-items: center; gap: 3px; justify-self: center; }
.nav-center a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  min-width: 70px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: inherit;
  opacity: 0.72;
}
.nav-center a span { font-size: 12px; line-height: 1.4; }
.nav-center a small { font-family: var(--mono); font-size: 6px; letter-spacing: 0.14em; opacity: 0.72; }
.nav-center a.is-active {
  border-color: rgba(228, 203, 153, 0.54);
  background: rgba(198, 161, 91, 0.14);
  color: var(--cin-gold-light);
  opacity: 1;
}
.nav-paper .nav-center a.is-active { background: rgba(198, 161, 91, 0.14); color: #8d6a2f; }
.nav-right { display: flex; align-items: center; justify-self: end; gap: 16px; }
.nav-text { color: inherit; opacity: 0.7; font-size: 10px; }
.nav-cta {
  padding: 8px 17px;
  border: 1px solid rgba(228, 203, 153, 0.65);
  border-radius: 999px;
  background: rgba(234, 211, 167, 0.16);
  color: #fff8e9;
  font-size: 10px;
}
.nav-paper .nav-cta { border-color: #bfa06a; background: #b89554; color: #fffaf0; }

/* home */
.cin-page { overflow: hidden; }
.cin-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 720px;
  height: 100vh;
  max-height: 980px;
  overflow: hidden;
  background: #2a2117;
}
.cin-hero-bg, .cin-hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.cin-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  filter: saturate(0.72) sepia(0.16) brightness(0.82) contrast(0.96);
}
.cin-hero-shade {
  background:
    linear-gradient(180deg, rgba(24, 17, 10, 0.55) 0%, rgba(24, 17, 10, 0.12) 26%, rgba(24, 17, 10, 0.15) 58%, rgba(246, 240, 229, 0.92) 90%, var(--cin-paper) 100%),
    linear-gradient(90deg, rgba(24, 17, 10, 0.32), rgba(24, 17, 10, 0.02) 45%, rgba(24, 17, 10, 0.24));
}
.cin-hero-content {
  position: relative;
  z-index: 2;
  width: min(800px, calc(100% - 48px));
  margin-top: -34px;
  text-align: center;
  color: #fffaf0;
}
.cin-kicker {
  display: block;
  color: #e8d2a8;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  line-height: 1.8;
  text-transform: uppercase;
}
.cin-hero h1 {
  margin: 20px 0 0;
  color: #fffaf0;
  font-family: var(--sans);
  font-size: clamp(54px, 7.4vw, 98px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-shadow: 0 4px 30px rgba(30, 20, 10, 0.24);
}
.cin-hero-content > p {
  max-width: 590px;
  margin: 20px auto 0;
  color: rgba(255, 249, 237, 0.8);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.9;
}
.cin-cta { display: flex; justify-content: center; gap: 12px; margin-top: 31px; }
.cin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 42px;
  padding: 0 23px;
  border: 1px solid rgba(232, 211, 170, 0.8);
  border-radius: 999px;
  background: rgba(244, 228, 194, 0.12);
  color: #fff9ec;
  font-size: 12px;
  backdrop-filter: blur(7px);
  transition: background 160ms ease, color 160ms ease;
}
.cin-btn:hover { background: #e6c98f; color: #2b2114; }
.cin-scroll {
  position: absolute;
  bottom: 42px;
  left: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  transform: translateX(-50%);
  color: rgba(255, 249, 237, 0.72);
  font-size: 9px;
  letter-spacing: 0.12em;
}
.cin-scroll i { font-style: normal; font-size: 16px; animation: cin-bob 1.8s ease-in-out infinite; }
@keyframes cin-bob { 50% { transform: translateY(4px); } }

.cin-about, .cin-features, .cin-people, .cin-foot-note {
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
}
.cin-about { padding: 96px 0 88px; border-bottom: 1px solid var(--cin-line); }
.cin-label {
  display: block;
  color: var(--cin-gold);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  line-height: 1.7;
}
.cin-about-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 80px; align-items: start; margin-top: 20px; }
.cin-about h2 {
  margin: 0;
  color: var(--cin-ink);
  font-family: var(--serif);
  font-size: clamp(34px, 4.3vw, 54px);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.03em;
}
.cin-about p { max-width: 450px; margin: 10px 0 0; color: var(--cin-muted); font-size: 13px; line-height: 2; }

.cin-features { padding: 4px 0 8px; border-bottom: 1px solid var(--cin-line); }
.cin-feature {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding: 34px 0;
  border-bottom: 1px solid var(--cin-line);
  transition: padding-left 160ms ease, background 160ms ease;
}
.cin-feature:last-child { border-bottom: 0; }
.cin-feature:hover { padding-left: 9px; background: rgba(255, 255, 255, 0.26); }
.cin-feature-num { padding-top: 3px; color: var(--cin-gold); font-family: var(--mono); font-size: 10px; }
.cin-feature h3 { margin: 8px 0 0; color: var(--cin-ink); font-family: var(--serif); font-size: 34px; font-weight: 400; line-height: 1.2; }
.cin-feature p { max-width: 540px; margin: 7px 0 13px; color: var(--cin-muted); font-size: 12px; line-height: 1.8; }
.cin-link { color: var(--cin-gold); font-size: 10px; letter-spacing: 0.04em; }
.cin-link i { font-style: normal; margin-left: 4px; }

.cin-people { padding: 72px 0 60px; }
.cin-section-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--cin-line); }
.cin-note { color: var(--cin-faint); font-family: var(--mono); font-size: 8px; letter-spacing: 0.12em; }
.cin-people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.cin-person { display: block; }
.cin-person-img { height: 260px; overflow: hidden; background: #d9cbb5; }
.cin-person-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.72) sepia(0.08); transition: transform 600ms ease; }
.cin-person:hover .cin-person-img img { transform: scale(1.035); }
.cin-person-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; color: var(--cin-faint); font-family: var(--mono); font-size: 7px; letter-spacing: 0.08em; }
.cin-person h3 { margin: 5px 0 0; color: var(--cin-ink); font-family: var(--serif); font-size: 24px; font-weight: 400; }
.cin-person p { margin: 3px 0 0; color: var(--cin-muted); font-size: 11px; line-height: 1.7; }

.cin-foot-note { padding: 16px 0 40px; border-top: 1px solid var(--cin-line); color: var(--cin-faint); font-size: 9px; }

/* inner pages */
.site-nav.nav-paper + div, .site-nav.nav-paper + .shell-wide { padding-top: 0; }
.shell-wide { width: min(1120px, calc(100% - 64px)); }
.p-home { display: none; }
.page-head { padding-top: 50px; }
.blind-setup { background: #fbf7ee; border-color: var(--cin-line); box-shadow: none; }
.page-head h1, .blind-title, .life-name, .script-headline, .legal-title, .section-title {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--cin-ink);
}
.blind-lede, .page-lede, .life-one-line { color: var(--cin-muted); }
.btn-primary { background: var(--cin-ink); color: var(--cin-paper); }
.btn-primary:hover { background: var(--cin-gold); color: var(--cin-dark); }
.btn-ghost { border-color: var(--cin-line-strong); color: var(--cin-ink); }
.form-card { background: #fbf7ee; border-color: var(--cin-line); }
.field input, .field select, .field textarea { background: var(--cin-paper); border-color: var(--cin-line-strong); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cin-gold); }
.chart-pillar, .six-row, .six-grid, .chart-grid { border-color: var(--cin-line); }
.section-title { font-size: 26px; }
.prose { color: var(--cin-ink); }
.home-footer { width: min(1120px, calc(100% - 64px)); border-color: var(--cin-line); }
.bottom-nav { border-color: var(--cin-line-strong); background: rgba(250, 246, 238, 0.96); }
.bottom-nav a.is-active { color: #9e7b3e; }
.bottom-nav a.is-active .icon { color: #b89554; }

@media (max-width: 900px) {
  #app { padding-left: 0; padding-bottom: 0; }
  .site-nav { width: calc(100% - 32px); grid-template-columns: 1fr auto; padding: 13px 0; }
  .nav-center { display: none; }
  .nav-right { gap: 0; }
  .nav-text { display: none; }
  .nav-cta { padding: 7px 13px; }
  .nav-brand-text strong { font-size: 15px; }
  .nav-brand-text small { font-size: 6px; }
  .nav-seal { width: 26px; height: 26px; font-size: 11px; }
  .cin-hero { min-height: 660px; height: 100svh; max-height: 820px; }
  .cin-hero-content { margin-top: -20px; }
  .cin-hero h1 { font-size: clamp(46px, 12vw, 62px); }
  .cin-hero-content > p { font-size: 12px; max-width: 340px; }
  .cin-cta { margin-top: 23px; }
  .cin-btn { min-width: 112px; min-height: 39px; padding: 0 15px; font-size: 11px; }
  .cin-scroll { bottom: 25px; }
  .cin-about { padding: 56px 0 44px; }
  .cin-about-grid { grid-template-columns: 1fr; gap: 20px; }
  .cin-about p { margin-top: 0; }
  .cin-features { padding-top: 0; }
  .cin-feature { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 24px 0; }
  .cin-feature h3 { font-size: 27px; }
  .cin-people { padding: 44px 0 34px; }
  .cin-people-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cin-person-img { height: 190px; }
  .cin-person:last-child { display: none; }
  .cin-person h3 { font-size: 20px; }
  .cin-person p { display: none; }
  .bottom-nav { display: flex; }
  body { padding-bottom: 78px; }
  .page-head { padding-top: 26px; }
  .shell-wide, .home-footer { width: calc(100% - 32px); }
  .site-nav.nav-paper { position: sticky; top: 0; }
}

@media (max-width: 420px) {
  .cin-hero h1 { font-size: 47px; }
  .cin-hero-content > p { max-width: 300px; }
  .cin-cta { gap: 8px; }
  .cin-btn { min-width: 106px; padding: 0 12px; }
  .cin-person-img { height: 165px; }
}

.cin-scroll { color: #6f604b; }
.cin-scroll i { color: #8d7a5d; }
