/* Tavyaan — Compass calling card. Scoped styles.
   Paper-on-desk visual family with statement.html, denser content,
   borrowing structural cadence from the product itself. */

body.compass-body {
  background: #E9E3D3;
  background-image: radial-gradient(rgba(0,0,0,0.022) 1px, transparent 1px);
  background-size: 18px 18px;
  background-attachment: fixed;
  color: #2C2823;
}

/* Topbar — matches statement.html */
body.compass-body .st-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(16px, 3vw, 36px);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #57534B;
  background: rgba(233, 227, 211, 0.78);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
}
body.compass-body .st-topbar a { color: inherit; }
body.compass-body .st-topbar .st-brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #1F1B17;
}
body.compass-body .st-topbar .st-brand img { width: 18px; height: 18px; display: block; }
body.compass-body .st-topbar .st-brand b {
  font-weight: 500; letter-spacing: 0.04em; text-transform: none;
  font-family: var(--sans); font-size: 13.5px; color: #1F1B17;
}
body.compass-body .st-topbar .st-actions {
  display: inline-flex; align-items: center; gap: 22px;
}
body.compass-body .st-topbar .st-actions .sep { color: rgba(0,0,0,0.25); }
body.compass-body .st-topbar .st-actions a:hover { color: #1F1B17; }

/* Paper wrapper + paper */
.cp-paper-wrap {
  padding: clamp(20px, 3.5vw, 56px) clamp(16px, 3vw, 48px) clamp(56px, 6vw, 96px);
}
.cp-paper {
  position: relative;
  background: #FBF9F4;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 88px) clamp(28px, 5vw, 96px) clamp(56px, 6vw, 112px);
  border: 1px solid rgba(31,27,23,0.08);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 18px 48px rgba(0,0,0,0.08),
    0 36px 96px rgba(0,0,0,0.14);
}

/* Letterhead */
.cp-letterhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: clamp(18px, 2.4vw, 28px);
  margin-bottom: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid #E5DECF;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #76706A;
}
.cp-letterhead .cp-mark {
  display: inline-flex; align-items: center; gap: 12px;
  color: #1F1B17;
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 500;
}
.cp-letterhead .cp-mark img { width: 22px; height: 22px; display: block; }
.cp-letterhead .cp-mark span { white-space: nowrap; }
.cp-letterhead .cp-mark span { font-weight: 500; }
.cp-letterhead .cp-meta { text-align: right; line-height: 1.6; }
.cp-letterhead .cp-meta .cp-meta-strong { color: #1F1B17; }

/* Eyebrow + hero */
.cp-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #76706A;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.cp-eyebrow .num { color: var(--accent-deep); }
.cp-eyebrow .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

.cp-hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(38px, 5.4vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: #1F1B17;
  margin: 0 0 0.4em;
  max-width: 22ch;
  text-wrap: balance;
}
.cp-hero h1 em { font-style: italic; }
.cp-hero .cp-sub {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.25;
  color: #2C2823;
  max-width: 36ch;
  margin: 0 0 clamp(28px, 3vw, 44px);
}

/* Recognition lead-in */
.cp-recognise {
  margin: 0 0 clamp(24px, 2.4vw, 32px);
  padding: clamp(24px, 2.6vw, 32px) clamp(26px, 3vw, 38px);
  background: #F4F0E6;
  border-left: 3px solid var(--accent);
  max-width: 64ch;
}
.cp-recognise p {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: #2C2823;
}
.cp-recognise p strong { color: #1F1B17; font-weight: 600; }
.cp-recognise p + p { margin-top: 0.8em; }

/* Status line — design partner cadence */
.cp-status {
  margin: 0 0 clamp(48px, 5vw, 72px);
  padding: 14px 0 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #57534B;
  max-width: 64ch;
}
.cp-status .cp-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
  transform: translateY(0.5px);
}
.cp-status .cp-status-label {
  color: #1F1B17;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10.5px;
  font-weight: 500;
}
.cp-status strong { color: #1F1B17; font-weight: 600; font-family: var(--sans); font-size: 13px; letter-spacing: 0; }

/* Section structure */
.cp-section {
  padding: clamp(40px, 4.6vw, 64px) 0;
  border-top: 1px solid #E5DECF;
}
.cp-section:first-of-type { border-top: 0; padding-top: 0; }

.cp-section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: clamp(22px, 2.6vw, 32px);
}
.cp-section-code {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  flex-shrink: 0;
  min-width: 4ch;
}
.cp-section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.1;
  color: #1F1B17;
  margin: 0;
  text-wrap: balance;
  max-width: 28ch;
}
.cp-section-title em { font-style: italic; }

.cp-section-body { max-width: 64ch; }
.cp-section-body p {
  margin: 0 0 0.95em;
  color: #2C2823;
  font-size: 16.5px;
  line-height: 1.6;
}
.cp-section-body p strong { color: #1F1B17; font-weight: 600; }
.cp-section-body p em { color: #1F1B17; font-style: italic; }
.cp-section-body p:last-child { margin-bottom: 0; }

/* Domain strip — what's inside the bank */
.cp-domains {
  margin: clamp(22px, 2.6vw, 32px) 0 0;
  border-top: 1px solid #E5DECF;
  border-bottom: 1px solid #E5DECF;
  padding: 18px 0;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 2vw, 28px);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #57534B;
}
.cp-domains span { display: inline-flex; align-items: center; }
.cp-domains span::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--accent);
  margin-right: 9px;
  display: inline-block;
}

/* Structured row blocks — engagements + steps */
.cp-rows { margin: 0; }
.cp-row {
  display: grid;
  grid-template-columns: 14ch 1fr;
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(22px, 2.4vw, 32px) 0;
  border-top: 1px solid #E5DECF;
  align-items: baseline;
}
.cp-row:first-child { border-top: 0; padding-top: 4px; }
.cp-row:last-child { padding-bottom: 4px; }

.cp-row-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  line-height: 1.5;
}
.cp-row-tag .cp-row-id { display: block; color: #1F1B17; margin-top: 4px; }

.cp-row-body h3 {
  font-family: var(--display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.15;
  color: #1F1B17;
  margin: 0 0 12px;
  max-width: 28ch;
}
.cp-row-body p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #2C2823;
  max-width: 60ch;
}
.cp-row-body p + p { margin-top: 0.6em; }
.cp-row-body p strong { color: #1F1B17; font-weight: 600; }

/* Pull-line between sections */
.cp-pull {
  margin: clamp(36px, 4vw, 56px) 0;
  padding: clamp(24px, 2.6vw, 36px) 0;
  border-top: 1px solid #1F1B17;
  border-bottom: 1px solid #1F1B17;
  text-align: center;
}
.cp-pull p {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.25;
  color: #1F1B17;
  margin: 0;
  text-wrap: balance;
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
}

/* Lineage card */
.cp-lineage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 48px);
  align-items: baseline;
}
.cp-lineage-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #76706A;
  margin-bottom: 10px;
}
.cp-lineage-step {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.25;
  color: #1F1B17;
  margin: 0;
}
.cp-lineage-note {
  font-size: 15.5px;
  line-height: 1.6;
  color: #2C2823;
  margin: 0;
  max-width: 36ch;
}
.cp-lineage-note strong { color: #1F1B17; font-weight: 600; }

/* CTA */
.cp-cta {
  margin: clamp(56px, 6vw, 88px) 0 0;
  padding: clamp(36px, 4vw, 56px) clamp(28px, 3vw, 44px);
  background: #1F1B17;
  color: #FBF9F4;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: end;
}
.cp-cta .cp-cta-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(251,249,244,0.55);
  margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 10px;
}
.cp-cta .cp-cta-eyebrow .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.cp-cta h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.08;
  margin: 0 0 18px;
  color: #FBF9F4;
  max-width: 18ch;
  text-wrap: balance;
}
.cp-cta h2 em { font-style: italic; }
.cp-cta p {
  margin: 0 0 0.8em;
  color: rgba(251,249,244,0.78);
  font-size: 16px;
  line-height: 1.55;
  max-width: 40ch;
}
.cp-cta-card {
  background: #2A2521;
  padding: clamp(22px, 2.4vw, 28px);
  border: 1px solid #3A332D;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cp-cta-card .cp-cta-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(251,249,244,0.5);
}
.cp-cta-card .cp-cta-mail {
  font-family: var(--mono);
  font-size: clamp(16px, 1.6vw, 20px);
  color: #FBF9F4;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 1px solid rgba(251,249,244,0.3);
  padding-bottom: 6px;
  align-self: flex-start;
}
.cp-cta-card .cp-cta-mail:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
}
.cp-cta-card .cp-cta-fineprint {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(251,249,244,0.55);
  line-height: 1.5;
}

/* Footer */
.cp-footer {
  max-width: 1080px;
  margin: clamp(40px, 4vw, 56px) auto 0;
  padding: 18px clamp(16px, 3vw, 32px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #76706A;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.cp-footer a { color: inherit; }
.cp-footer a:hover { color: #1F1B17; }

/* Responsive */
@media (max-width: 960px) {
  .cp-letterhead { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cp-letterhead .cp-meta { text-align: left; }
  .cp-section-head { flex-direction: column; gap: 6px; }
  .cp-row { grid-template-columns: 1fr; gap: 8px; }
  .cp-row-tag .cp-row-id { display: inline; margin-left: 8px; margin-top: 0; }
  .cp-lineage { grid-template-columns: 1fr; gap: 6px; }
  .cp-lineage + .cp-lineage { margin-top: 24px; }
  .cp-cta { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body.compass-body .st-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  body.compass-body .st-topbar .st-actions {
    width: 100%;
    flex-wrap: wrap;
    gap: 14px;
  }
}

/* Print */
@media print {
  body.compass-body { background: #fff; background-image: none; }
  .st-topbar, .cp-footer { display: none; }
  .cp-paper-wrap { padding: 0; }
  .cp-paper { box-shadow: none; border: 0; max-width: none; }
  .cp-cta { background: #FBF9F4; color: #1F1B17; border: 1px solid #1F1B17; }
  .cp-cta h2, .cp-cta-card .cp-cta-mail { color: #1F1B17; }
  .cp-cta p { color: #2C2823; }
  .cp-cta-card { background: transparent; border-color: #1F1B17; }
  .cp-cta-card .cp-cta-label, .cp-cta-card .cp-cta-fineprint { color: #57534B; }
}
