/* ============================================================
   OPW PRIVATE HOLDINGS, LLC — ownership-tree design system
   Palette: umber-black / vellum / amethyst
   All text uses solid colors — no transparency.
   ============================================================ */

:root {
  --bg: #0d0a0f;
  --bg-2: #120e15;
  --panel: #171219;
  --panel-2: #1e1821;
  --ink: #f3eef4;
  --muted: #b3a8b6;
  --faint: #6f6472;
  --accent: #b77fd6;
  --accent-deep: #9a5cb8;
  --accent-ink: #1f0e2a;
  --line: #211a26;
  --line-2: #382f3e;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Hanken Grotesk", "Segoe UI", sans-serif;
  --mono: "Spline Sans Mono", Consolas, monospace;
  --wrap: 1220px;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--accent-ink); }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 36px; }

/* ================= HEADER ================= */
.hdr {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.hdr-in {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 36px;
  height: 88px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.hdr-brand { display: flex; align-items: center; gap: 16px; }
.hdr-brand .seal {
  width: 52px; height: 52px;
  border: 2px solid var(--accent);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 17px;
  color: var(--accent);
  letter-spacing: .02em;
  flex: 0 0 auto;
}
.hdr-brand .nm {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.15;
}
.hdr-brand .nm small {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .3em;
  color: var(--faint);
  font-weight: 400;
  margin-top: 6px;
  text-transform: uppercase;
}
.hdr-nav { display: flex; margin-left: auto; gap: 6px; }
.hdr-nav a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 16px;
  position: relative;
}
.hdr-nav a:hover { color: var(--ink); }
.hdr-nav a.on { color: var(--accent); }
.hdr-nav a.on::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 6px;
  height: 2px;
  background: var(--accent);
}
.hdr-cta {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--accent-ink) !important;
  padding: 15px 26px;
  margin-left: 8px;
}
.hdr-cta:hover { background: var(--accent-deep); }
.hdr-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line-2);
  width: 48px; height: 48px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.hdr-toggle span { width: 22px; height: 2px; background: var(--ink); display: block; }

/* ================= HERO ================= */
.hero { border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero-in { max-width: var(--wrap); margin: 0 auto; padding: 104px 36px 88px; position: relative; z-index: 2; }
.hero-tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 36px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(52px, 7vw, 100px);
  line-height: 1.02;
  letter-spacing: 0;
  max-width: 900px;
}
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 800; }
.hero-lede {
  margin-top: 36px;
  max-width: 580px;
  font-size: 18px;
  color: var(--muted);
}
.hero-cta { margin-top: 44px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ownership tree */
.tree { margin-top: 64px; }
.tree-root {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 13px 22px;
  border-radius: 4px;
}
.tree-trunk {
  width: 2px; height: 34px;
  background: var(--line-2);
  margin-left: 60px;
}
.tree-branches { display: flex; flex-wrap: wrap; gap: 0; position: relative; }
.tree-branches::before {
  content: "";
  position: absolute;
  top: 0; left: 60px; right: 22px;
  height: 2px;
  background: var(--line-2);
}
.tb {
  padding-top: 34px;
  position: relative;
  flex: 0 0 auto;
}
.tb::before {
  content: "";
  position: absolute;
  top: 0; left: 22px;
  width: 2px; height: 34px;
  background: var(--line-2);
}
.tb .node {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--line-2);
  background: var(--panel);
  padding: 10px 18px;
  border-radius: 4px;
  margin-right: 14px;
  display: inline-block;
  transition: border-color .2s ease, color .2s ease;
}
.tb .node:hover { border-color: var(--accent); color: var(--accent); }
.tb .node b { color: var(--accent); font-weight: 700; margin-right: 8px; }

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 18px 34px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 4px;
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: var(--accent-deep); color: var(--accent-ink); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; transform: translateY(-2px); }

/* ================= SECTION HEADS ================= */
.sect { border-bottom: 1px solid var(--line); padding: 92px 0; }
.shead {
  display: flex;
  align-items: baseline;
  gap: 26px;
  margin-bottom: 58px;
  flex-wrap: wrap;
}
.shead .res {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  white-space: nowrap;
}
.shead h2 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(38px, 5.4vw, 66px);
  line-height: 1.02;
}
.shead h2 em { font-style: italic; color: var(--accent); }
.shead .sub {
  margin-left: auto;
  max-width: 360px;
  color: var(--muted);
  font-size: 15px;
}

/* ================= NODE CARDS ================= */
.nodes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.nd {
  border: 1px solid var(--line-2);
  background: var(--panel);
  padding: 32px 34px 38px;
  transition: border-color .2s ease, transform .2s ease;
  position: relative;
  border-radius: 4px;
}
.nd::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--accent);
  opacity: 1;
}
.nd:hover { border-color: var(--accent); transform: translateY(-3px); }
.nd .pct {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 20px;
}
.nd h3 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 31px;
  line-height: 1.05;
  margin-bottom: 12px;
}
.nd p { color: var(--muted); font-size: 14.5px; }
.nd .meta {
  display: block;
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ================= RESOLUTION TABLE ================= */
.spec-t { border: 1px solid var(--line-2); border-radius: 4px; overflow: hidden; }
.sr {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.sr:last-child { border-bottom: 0; }
.sr:nth-child(odd) { background: var(--bg-2); }
.sr:hover { background: var(--panel-2); }
.sr .sc {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--accent);
}
.sr .ss {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.sr.hd {
  background: var(--panel-2);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ================= FIGURES ================= */
.figs { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line-2); border-radius: 4px; overflow: hidden; }
.fig {
  padding: 44px 30px;
  border-right: 1px solid var(--line);
  background: var(--panel);
}
.fig:last-child { border-right: 0; }
.fig:nth-child(even) { background: var(--bg-2); }
.fig .fl {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}
.fig b {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 60px;
  line-height: .98;
}
.fig b i { color: var(--accent); font-style: normal; }
.fig span {
  display: block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ================= SPLIT / PROSE / QUOTE ================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.prose p { color: var(--muted); margin-bottom: 20px; }
.prose p strong { color: var(--ink); font-weight: 700; }

.reso-note {
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--panel);
  padding: 44px 40px;
  position: relative;
}
.reso-note::before {
  content: "§";
  position: absolute;
  top: 26px; right: 30px;
  font-family: var(--serif);
  font-size: 26px;
  color: var(--accent);
}
.reso-note .rt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
  display: block;
}
.reso-note p {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.22;
}
.reso-note p em { color: var(--accent); font-style: italic; }
.reso-note span.sig {
  display: block;
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ================= FILE ================= */
.file { border: 1px solid var(--line-2); border-radius: 4px; background: var(--panel); overflow: hidden; }
.file-row {
  display: grid;
  grid-template-columns: 210px 1fr;
  border-bottom: 1px solid var(--line);
}
.file-row:last-child { border-bottom: 0; }
.file-row .k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 20px 24px;
  border-right: 1px solid var(--line);
  background: var(--bg-2);
}
.file-row .v { padding: 20px 24px; font-size: 15px; }
.file-row .v a { color: var(--accent); }
.file-row .v a:hover { color: var(--ink); }

/* ================= REGISTER ACCORDION ================= */
.register { border-top: 2px solid var(--line-2); }
.reg { border-bottom: 1px solid var(--line-2); }
.reg-head {
  width: 100%;
  background: none;
  border: 0;
  color: var(--ink);
  font-family: var(--sans);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 26px;
  text-align: left;
  padding: 28px 12px;
}
.reg-head .rtag {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 4px;
  padding: 8px 15px;
  white-space: nowrap;
  min-width: 92px;
  text-align: center;
}
.reg-head h3 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 30px;
  flex: 1;
}
.reg-head .n { font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: .16em; text-transform: uppercase; }
.reg-head .pm { font-size: 26px; color: var(--accent); font-weight: 300; transition: transform .25s ease; width: 30px; text-align: center; }
.reg.open .reg-head .pm { transform: rotate(45deg); }
.reg-body { display: none; padding: 4px 12px 46px 12px; }
.reg.open .reg-body { display: block; }
.reg-body .desc {
  color: var(--muted);
  max-width: 780px;
  margin-bottom: 26px;
  font-size: 15px;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
}
.subs { display: flex; flex-wrap: wrap; gap: 9px; }
.sub {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--bg-2);
  padding: 9px 16px;
  transition: border-color .2s ease, color .2s ease;
}
.sub:hover { border-color: var(--accent); color: var(--accent); }

/* ================= RESOLUTION STEPS ================= */
.resos { border: 1px solid var(--line-2); border-radius: 4px; overflow: hidden; }
.res {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 1px solid var(--line);
}
.res:last-child { border-bottom: 0; }
.res .rl {
  border-right: 1px solid var(--line-2);
  padding: 34px 24px;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.res .rl b {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 32px;
  color: var(--accent);
  line-height: 1;
}
.res .rl i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
}
.res .rr { padding: 32px 40px; }
.res h3 { font-family: var(--serif); font-weight: 800; font-size: 28px; margin-bottom: 9px; }
.res p { color: var(--muted); font-size: 15px; max-width: 720px; }

/* ================= FORM ================= */
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  padding: 15px 18px;
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { min-height: 150px; resize: vertical; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-note { font-size: 12px; color: var(--faint); margin-top: 16px; font-family: var(--mono); }

/* ================= LEGAL ================= */
.legal { max-width: 860px; }
.legal h2 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 34px;
  margin: 54px 0 16px;
  padding-top: 42px;
  border-top: 1px solid var(--line-2);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.legal h3 { font-size: 16px; margin: 26px 0 10px; font-weight: 700; }
.legal p { color: var(--muted); margin-bottom: 15px; font-size: 15px; }
.legal ul { margin: 0 0 15px 22px; color: var(--muted); font-size: 15px; }
.legal li { margin-bottom: 7px; }
.legal li::marker { color: var(--accent); }
.legal strong { color: var(--ink); font-weight: 700; }
.legal a { color: var(--accent); }
.legal a:hover { color: var(--ink); }
.stamp {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: 10px 18px;
  margin-bottom: 46px;
}

/* ================= PAGE HEAD ================= */
.pagehead { padding: 112px 0 82px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.crumbs {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 34px;
}
.crumbs a { color: var(--faint); }
.crumbs a:hover { color: var(--accent); }
.pagehead h1 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(50px, 6.6vw, 96px);
  line-height: 1;
}
.pagehead h1 em { color: var(--accent); font-style: italic; }
.pagehead .lede { margin: 34px 0 0; max-width: 700px; color: var(--muted); font-size: 18px; }

/* ================= CTA ================= */
.cta-band { padding: 96px 0; }
.cta-band h2 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(44px, 6.2vw, 80px);
  line-height: 1.02;
}
.cta-band h2 em { color: var(--accent); font-style: italic; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 28px 0 42px; font-size: 16.5px; }

/* ================= FOOTER ================= */
.foot { background: var(--bg-2); border-top: 1px solid var(--line); }
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding: 62px 0 50px;
}
.foot-word {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.02;
  margin-bottom: 20px;
}
.foot-word span { color: var(--accent); font-style: italic; }
.foot-brand p { color: var(--muted); font-size: 14px; max-width: 340px; }
.foot-col h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 700;
  margin-bottom: 20px;
}
.foot-col a, .foot-col p { display: block; color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.foot-col a:hover { color: var(--accent); }
.foot-col p b {
  display: block;
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.foot-base {
  border-top: 1px solid var(--line);
  padding: 24px 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
}
.foot-base a { color: var(--faint); margin-left: 20px; }
.foot-base a:hover { color: var(--accent); }

/* ================= REVEAL ================= */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1020px) {
  .tree-branches { flex-direction: column; }
  .tree-branches::before { display: none; }
  .tb::before { display: none; }
  .tb { padding-top: 0; padding-bottom: 12px; padding-left: 60px; }
  .tb { border-left: 2px solid var(--line-2); padding-left: 26px; margin-left: 60px; }
  .tree-trunk { margin-left: 60px; }
  .nodes { grid-template-columns: 1fr; }
  .figs { grid-template-columns: 1fr 1fr; }
  .fig:nth-child(2) { border-right: 0; }
  .fig:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .res { grid-template-columns: 1fr; }
  .res .rl { border-right: 0; border-bottom: 1px solid var(--line-2); flex-direction: row; align-items: center; gap: 14px; padding: 18px 24px; }
  .sr { grid-template-columns: 1fr; gap: 8px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .wrap, .hdr-in, .hero-in { padding-left: 20px; padding-right: 20px; }
  .hdr-nav {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
    transform: translateY(-100%);
    transition: transform .35s ease;
    z-index: 90;
  }
  .hdr-nav.open { transform: none; }
  .hdr-nav a { font-size: 18px; }
  .hdr-cta { display: none; }
  .hdr-toggle { display: flex; }
  .sect { padding: 64px 0; }
  .frow { grid-template-columns: 1fr; }
  .file-row { grid-template-columns: 1fr; }
  .file-row .k { border-right: 0; border-bottom: 1px solid var(--line); }
  .reg-head .n { display: none; }
  .reg-head .rtag { min-width: 70px; }
  .foot-grid { grid-template-columns: 1fr; }
}
