/* ============================================================
   CWE INVESTMENT I, LLC — "Engraved Certificate" design system
   Ink black, indigo + certificate-bone accents, Libre Baskerville
   display, guilloche borders, coupon edges, register rows
   ============================================================ */

:root {
  --bg: #0a0c12;
  --bg2: #0e111a;
  --panel: #141823;
  --panel-hi: #1a2030;
  --edge: #2a3350;
  --edge-soft: #181d2c;
  --in: #8a97e8;
  --in-hi: #aeb8f2;
  --in-deep: #525fa8;
  --bn: #d8c89e;
  --bn-deep: #8a7c56;
  --txt: #eef0f6;
  --sub: #a6abc0;
  --dim: #5e637a;
  --disp: "Libre Baskerville", Georgia, serif;
  --body-f: "Heebo", "Segoe UI", Arial, sans-serif;
  --mono: "Xanh Mono", "Consolas", monospace;
  --head-h: 80px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--sub);
  font-family: var(--body-f);
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--in); color: var(--bg); }

a { color: var(--in); text-decoration: none; }
a:hover { color: var(--in-hi); }

h1, h2, h3, h4 {
  font-family: var(--disp);
  color: var(--txt);
  font-weight: 700;
  line-height: 1.18;
}

.wrap { max-width: 1220px; margin: 0 auto; padding: 0 44px; }

.k-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 3.2px;
  text-transform: uppercase;
  color: var(--in);
}
.k-label.bn { color: var(--bn); }

/* ---------------- Header ---------------- */

.vhead {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--head-h);
  z-index: 300;
  background: var(--bg);
  border-bottom: 1px solid var(--edge-soft);
}

.vhead .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.vlogo { display: flex; align-items: center; gap: 14px; }

/* certificate seal logo */
.vlogo-seal {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 2px solid var(--in);
  display: grid;
  place-items: center;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 12px;
  color: var(--in);
  position: relative;
}

/* inner engraved ring */
.vlogo-seal::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid var(--bn-deep);
}

.vlogo-name {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 19px;
  color: var(--txt);
  line-height: 1.15;
}

.vlogo-name small {
  display: block;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--dim);
  margin-top: 4px;
  text-transform: uppercase;
}

.vnav { display: flex; align-items: center; gap: 4px; }

.vnav a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--sub);
  padding: 10px 14px;
  transition: color .2s;
}

.vnav a:hover { color: var(--txt); }
.vnav a.active { color: var(--in); }

.vnav .cert-cta {
  color: var(--bg) !important;
  background: var(--bn);
  font-weight: 700;
  margin-left: 10px;
  padding: 12px 22px;
  border-radius: 3px;
}

.vnav .cert-cta:hover { background: var(--in); }

.burger {
  display: none;
  background: none;
  border: 1px solid var(--edge);
  color: var(--txt);
  width: 44px; height: 44px;
  font-size: 18px;
  cursor: pointer;
}

.m-nav {
  display: none;
  position: fixed;
  top: var(--head-h);
  left: 0; right: 0;
  z-index: 290;
  background: var(--bg2);
  border-bottom: 1px solid var(--edge);
  padding: 8px 24px 22px;
}

.m-nav.open { display: block; }

.m-nav a {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sub);
  padding: 14px 0;
  border-bottom: 1px solid var(--edge-soft);
}
.m-nav a.active { color: var(--in); }

main { padding-top: var(--head-h); }

/* ---------------- Hero — certificate ---------------- */

.hero {
  position: relative;
  border-bottom: 1px solid var(--edge-soft);
  overflow: hidden;
}

/* guilloche rings */
.hero::before {
  content: "";
  position: absolute;
  right: -180px; top: 50%;
  transform: translateY(-50%);
  width: 560px; height: 560px;
  border-radius: 50%;
  border: 1px solid var(--edge);
  box-shadow: 0 0 0 24px var(--edge-soft), 0 0 0 48px var(--edge-soft), 0 0 0 72px var(--edge-soft), 0 0 0 96px var(--edge-soft);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 112px 0 88px;
  max-width: 720px;
}

.hero .v-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}

.hero .v-eyebrow::before {
  content: "";
  width: 34px; height: 2px;
  background: var(--bn);
}

.hero h1 { font-size: clamp(42px, 5.8vw, 78px); }
.hero h1 em { font-style: italic; color: var(--in); }
.hero h1 .b { color: var(--bn); font-style: normal; }

.hero .lede { margin-top: 28px; font-size: 17px; max-width: 580px; }

.hero-cta { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 3px;
  transition: background .2s, color .2s, border-color .2s;
}

.btn-fill { background: var(--in); color: var(--bg); }
.btn-fill:hover { background: var(--in-hi); color: var(--bg); }
.btn-line { border: 1px solid var(--edge); color: var(--txt); }
.btn-line:hover { border-color: var(--in); color: var(--in); }

/* certificate card */

.certcard {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--edge);
  padding: 10px;
}

/* engraved double border */
.certcard::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--bn-deep);
  pointer-events: none;
}

.certcard .cc-body { position: relative; padding: 22px 26px 14px; }

.certcard .cc-head {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--bn);
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.certcard .cc-head .ser { color: var(--in); }

.certcard .cc-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px dotted var(--edge-soft);
  font-size: 14px;
}

.certcard .cc-row:last-child { border-bottom: 0; }

.certcard .cc-row .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dim);
  padding-top: 3px;
}

.certcard .cc-row .v { color: var(--txt); text-align: right; }

/* coupon strip */
.coupon-strip {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--edge);
  background: var(--bg2);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.coupon-strip .cp {
  padding: 20px 18px;
  text-align: center;
  border-right: 1px dashed var(--edge);
}

.coupon-strip .cp:last-child { border-right: 0; }

.coupon-strip .cp b {
  display: block;
  font-family: var(--disp);
  font-size: 16px;
  color: var(--txt);
}

.coupon-strip .cp span {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------------- Sections ---------------- */

.section { padding: 96px 0; border-bottom: 1px solid var(--edge-soft); }

.sec-seal {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.sec-seal::before {
  content: "";
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--in);
}

.sec-seal::after { content: ""; flex: 1; height: 1px; background: var(--edge-soft); }

.sec-head { margin-bottom: 56px; }
.sec-head h2 { font-size: clamp(30px, 4.2vw, 52px); }
.sec-head h2 em { font-style: italic; color: var(--in); }
.sec-head h2 .b { color: var(--bn); font-style: normal; }
.sec-head .sub { margin-top: 18px; max-width: 620px; font-size: 16px; }

/* ---------------- Division cards (certificate panels) ---------------- */

.div-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.div {
  border: 1px solid var(--edge);
  background: var(--panel);
  padding: 36px 32px;
  transition: transform .25s, border-color .25s, background .25s;
  position: relative;
}

/* corner seal notch */
.div::before {
  content: "";
  position: absolute;
  top: 16px; right: 16px;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid var(--bn-deep);
}

.div:hover { transform: translateY(-5px); border-color: var(--in-deep); background: var(--panel-hi); }

.div .d-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--in);
  padding: 6px 12px;
  font-weight: 700;
}

.div .d-tag.bn { background: var(--bn); }

.div h3 { font-size: 22px; margin: 18px 0 12px; }
.div p { font-size: 14px; }

.div .d-line {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dotted var(--edge);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  color: var(--dim);
  line-height: 2;
}

/* ---------------- Register rows ---------------- */

.register { border-top: 1px solid var(--edge); }

.reg-row {
  display: grid;
  grid-template-columns: 140px 1.2fr 1.7fr;
  gap: 36px;
  padding: 30px 8px;
  border-bottom: 1px solid var(--edge-soft);
  align-items: baseline;
}

.reg-row .r-code {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--in);
}

.reg-row .r-code.bn { color: var(--bn); }

.reg-row h3 { font-size: 21px; }
.reg-row p { font-size: 14.5px; }

/* ---------------- Split ---------------- */

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.duo h2 { font-size: clamp(28px, 3.6vw, 44px); }
.duo h2 em { font-style: italic; color: var(--in); }
.duo h2 .b { color: var(--bn); font-style: normal; }
.duo > div > p { margin-top: 18px; font-size: 15.5px; }

/* Ledger card */

.ledgercard {
  border: 1px solid var(--edge);
  background: var(--panel);
}

.ledgercard .lc-head {
  padding: 18px 30px;
  border-bottom: 2px solid var(--bn);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--bn);
  display: flex;
  justify-content: space-between;
}

.ledgercard .lc-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 30px;
  border-bottom: 1px dotted var(--edge-soft);
  font-size: 14px;
}

.ledgercard .lc-row:last-child { border-bottom: 0; }

.ledgercard .lc-row .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--dim);
  padding-top: 4px;
  white-space: nowrap;
}

.ledgercard .lc-row .v { color: var(--txt); text-align: right; }

/* ---------------- Stats ---------------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat {
  border: 1px solid var(--edge);
  background: var(--bg2);
  padding: 40px 26px;
  text-align: center;
  position: relative;
}

.stat::before {
  content: "";
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid var(--bn);
}

.stat .n {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 44px;
  color: var(--txt);
  line-height: 1;
  margin-top: 10px;
}

.stat .n i { font-style: normal; color: var(--in); }
.stat .n b { font-weight: 400; color: var(--bn); font-style: normal; }

.stat .c {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 14px;
}

/* ---------------- Quote ---------------- */

.quote-zone { padding: 96px 0; text-align: center; }

.quote-zone .qt {
  font-family: var(--disp);
  font-size: clamp(23px, 2.9vw, 36px);
  font-weight: 700;
  font-style: italic;
  color: var(--txt);
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.45;
}

.quote-zone cite {
  display: block;
  margin-top: 30px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--bn);
}

/* ---------------- CTA ---------------- */

.cta-zone {
  padding: 104px 0;
  text-align: center;
  border-top: 1px solid var(--edge);
  background: var(--bg2);
  position: relative;
  overflow: hidden;
}

.cta-zone::before {
  content: "";
  position: absolute;
  left: -160px; top: 50%;
  transform: translateY(-50%);
  width: 460px; height: 460px;
  border-radius: 50%;
  border: 1px solid var(--edge);
  box-shadow: 0 0 0 22px var(--edge-soft), 0 0 0 44px var(--edge-soft), 0 0 0 66px var(--edge-soft);
}

.cta-zone .inner { position: relative; }
.cta-zone .k-label { display: inline-block; margin-bottom: 22px; }
.cta-zone h2 { font-size: clamp(30px, 4.4vw, 56px); }
.cta-zone h2 em { font-style: italic; color: var(--in); }
.cta-zone h2 .b { color: var(--bn); font-style: normal; }
.cta-zone p { margin: 22px auto 40px; max-width: 560px; font-size: 16px; }

/* ---------------- Footer ---------------- */

.v-foot {
  border-top: 1px solid var(--edge);
  background: var(--bg2);
  padding: 68px 0 34px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.9fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--edge-soft);
}

.foot-grid h4 {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 20px;
}

.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 11px; font-size: 14px; }
.foot-grid li a { color: var(--sub); }
.foot-grid li a:hover { color: var(--in); }

.foot-desc { margin-top: 16px; font-size: 13.5px; max-width: 360px; color: var(--dim); }

.foot-bar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 26px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 1px;
  color: var(--dim);
}

.foot-bar a { color: var(--sub); }
.foot-bar a:hover { color: var(--in); }

/* ---------------- Page hero ---------------- */

.page-hero {
  padding: 88px 0 64px;
  border-bottom: 1px solid var(--edge-soft);
  background: var(--bg2);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  right: -140px; top: 50%;
  transform: translateY(-50%);
  width: 380px; height: 380px;
  border-radius: 50%;
  border: 1px solid var(--edge-soft);
  box-shadow: 0 0 0 20px var(--edge-soft), 0 0 0 40px var(--edge-soft);
}

.page-hero .wrap { position: relative; }

.crumb {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 26px;
}

.crumb a { color: var(--in); }

.page-hero h1 { font-size: clamp(36px, 5.2vw, 64px); }
.page-hero h1 em { font-style: italic; color: var(--in); }
.page-hero h1 .b { color: var(--bn); font-style: normal; }
.page-hero .lede { margin-top: 24px; max-width: 640px; font-size: 17px; }

/* ---------------- Contact ---------------- */

.contact-cols {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 62px;
  padding: 84px 0;
}

.reg-card {
  border: 1px solid var(--edge);
  background: var(--panel);
  padding: 22px 28px;
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 20px;
  align-items: start;
}

.reg-card .fld {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--bn);
  padding-top: 5px;
}

.reg-card .val {
  font-family: var(--disp);
  font-size: 19px;
  font-weight: 700;
  color: var(--txt);
  line-height: 1.3;
}

.reg-card .val a { color: var(--txt); }
.reg-card .val a:hover { color: var(--in); }

.reg-card .nt { grid-column: 2; font-size: 13px; color: var(--dim); }

.mandate-form {
  border: 1px solid var(--edge);
  background: var(--panel);
  padding: 46px;
  position: relative;
}

.mandate-form::before {
  content: "Engagement · CWE-899";
  position: absolute;
  top: 0; left: 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--bg);
  background: var(--in);
  padding: 7px 14px;
}

.mandate-form h2 { font-size: 26px; margin-bottom: 8px; margin-top: 10px; }
.mandate-form > p { font-size: 13px; color: var(--dim); margin-bottom: 30px; font-family: var(--mono); }

.f-field { margin-bottom: 20px; }

.f-field label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 9px;
}

.f-field input,
.f-field select,
.f-field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--edge);
  color: var(--txt);
  font-family: var(--body-f);
  font-size: 15px;
  padding: 14px 16px;
  outline: none;
  transition: border-color .2s;
  border-radius: 3px;
}

.f-field textarea { min-height: 140px; resize: vertical; }

.f-field input:focus,
.f-field select:focus,
.f-field textarea:focus { border-color: var(--in); }

.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.f-note { font-size: 12px; color: var(--dim); margin-top: 16px; font-family: var(--mono); }

/* ---------------- Legal prose ---------------- */

.prose { max-width: 840px; padding: 76px 0 100px; }

.prose .policy-head {
  border: 1px solid var(--edge);
  border-left: 4px solid var(--bn);
  background: var(--panel);
  padding: 30px 34px;
  margin-bottom: 44px;
  font-size: 15.5px;
}

.prose .upd {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--in);
  border: 1px solid var(--in-deep);
  padding: 7px 14px;
  margin-bottom: 26px;
}

.prose h2 {
  font-size: 25px;
  margin: 54px 0 18px;
  padding-top: 38px;
  border-top: 1px solid var(--edge-soft);
}

.prose h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 44px; }
.prose h3 { font-size: 19px; margin: 30px 0 10px; }
.prose p { margin-bottom: 15px; font-size: 15.5px; }
.prose ul { margin: 0 0 15px 22px; font-size: 15.5px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--txt); }

/* ---------------- Reveal ---------------- */

.rv { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */

@media (max-width: 1080px) {
  .vnav { display: none; }
  .burger { display: block; }
  .div-grid { grid-template-columns: 1fr; }
  .duo, .contact-cols { grid-template-columns: 1fr; gap: 48px; }
  .reg-row { grid-template-columns: 110px 1fr; }
  .reg-row p { grid-column: 2; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .coupon-strip { grid-template-columns: 1fr 1fr; }
  .coupon-strip .cp { border-bottom: 1px dashed var(--edge-soft); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .wrap { padding: 0 26px; }
  .mandate-form { padding: 36px 24px; }
  .f-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .stat-grid, .coupon-strip { grid-template-columns: 1fr; }
}
